browserstack-node-sdk 1.35.1 → 1.35.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) 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/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -2
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a80_0x58096e=a80_0x1844;function a80_0x1844(_0x3d7eba,_0xe5b19f){const _0x5c889b=a80_0x5c88();return a80_0x1844=function(_0x1844c7,_0x3693e9){_0x1844c7=_0x1844c7-0xd0;let _0x21b1ab=_0x5c889b[_0x1844c7];return _0x21b1ab;},a80_0x1844(_0x3d7eba,_0xe5b19f);}function a80_0x5c88(){const _0x1d94f2=['gsJFW','isEnabled','mark','Error\x20in\x20doing\x20csv\x20operations:\x20','getPerformance','measures','jvrJV','210505HvLkiH','Ipdqq','readFile','browserStackCwd','format','24FwQaEu','vfZIt','pushPerfMeasures','QCdmD','function','jsonReportDirName','7088WgyFnQ','eventsMap','SSLDb','BPmbs','join','push','../processHelper','stopAndGenerate','fs/promises','lYYiW','all','perf_hooks','readFileSync','forEach','Error\x20in\x20writing\x20html\x20','errorFile','stringify','tJVcV','existsSync','-start','worker','../logger','start','debug','oJdoy','readdir','splice','concat','2993080DDhSVK','generateJSON','env','_events','apply','_errorEvents','</td><td>','buffered','message','zRQkQ','observe','tXgPK','writeFile','PNJRm','lyLGj','parse','readdirSync','calculateTimeFromEvents','assign','.json','jsonReportFileName','toJSON','MDevB','reduce','slice','NvFpG','finalizeErrors','wlanX','map','89740GUrprc','exports','false','brJkr','22DwLulY','HYiyI','orUWO','<h1>Performance\x20Report</h1>','utf-8','failure','IPukV','jsonReportDirPath','1340280yysjaD','disconnect','errorReportDirName','4vsofik','generateHTMLReport','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','measure','code','cwd','started','EsMHE','appendFileSync','PYQcK','end','EFPEW','log','_measureEvents','IpAxl','toString','flat','agVzN','pushErrors','mkdirSync','<tr><td>','/performance-report-','jFQeN','platform','YYisX','157749XTmSsd','Error\x20while\x20removing\x20files:\x20','VbiAp','error-report','details','resolve','finalizePerfMeasures','NtIIe','name','vvqni','/error-report-','KgJha','then','stack','duration','__platformCaps','getEventsFromJSON','performance-report','match','1429911uukYXy','rJDYI','meta','errorReportFileName','path','unlinkSync','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','JYGJk','measureWrapper','stopMonitoring','UKtnx','Zsqvr','length','2UslIDd','kiSYd','errors','vgZOr','WnKsT','_observer','index','getCleanedPerfEvents','Time\x20for\x20','util','entryType','CxavO'];a80_0x5c88=function(){return _0x1d94f2;};return a80_0x5c88();}(function(_0x42c8a4,_0x5db2d6){const _0x4003c1=a80_0x1844,_0x4ab282=_0x42c8a4();while(!![]){try{const _0x67f4c8=-parseInt(_0x4003c1(0x116))/0x1*(parseInt(_0x4003c1(0x134))/0x2)+-parseInt(_0x4003c1(0xf6))/0x3*(-parseInt(_0x4003c1(0xdd))/0x4)+-parseInt(_0x4003c1(0x129))/0x5*(parseInt(_0x4003c1(0x12e))/0x6)+-parseInt(_0x4003c1(0x16d))/0x7+-parseInt(_0x4003c1(0xda))/0x8+-parseInt(_0x4003c1(0x109))/0x9+parseInt(_0x4003c1(0x150))/0xa*(parseInt(_0x4003c1(0xd2))/0xb);if(_0x67f4c8===_0x5db2d6)break;else _0x4ab282['push'](_0x4ab282['shift']());}catch(_0x3b4a30){_0x4ab282['push'](_0x4ab282['shift']());}}}(a80_0x5c88,0x21519));const fs=require('fs'),fsPromise=require(a80_0x58096e(0x13c)),{performance,PerformanceObserver}=require(a80_0x58096e(0x13f)),path=require(a80_0x58096e(0x10d)),util=require(a80_0x58096e(0x11f)),logger=require(a80_0x58096e(0x149))['winstonLogger'],{getProcessId,sleep,debug,getTestName}=require(a80_0x58096e(0x13a));class PerformanceTester{static [a80_0x58096e(0x11b)];static [a80_0x58096e(0x153)]=[];static [a80_0x58096e(0xea)]=[];static [a80_0x58096e(0x155)]=[];static ['started']=![];static [a80_0x58096e(0x133)]=a80_0x58096e(0x107);static [a80_0x58096e(0xd9)]=process['env'][a80_0x58096e(0x12c)]?path[a80_0x58096e(0x138)](process[a80_0x58096e(0x152)][a80_0x58096e(0x12c)],this[a80_0x58096e(0x133)]):path['join'](process[a80_0x58096e(0xe2)](),a80_0x58096e(0xe9),this['jsonReportDirName']);static [a80_0x58096e(0xdc)]=process[a80_0x58096e(0x152)][a80_0x58096e(0x12c)]?path['join'](process[a80_0x58096e(0x152)][a80_0x58096e(0x12c)],a80_0x58096e(0xf9)):path[a80_0x58096e(0x138)](process['cwd'](),'error-report');static ['jsonReportFileName']=this[a80_0x58096e(0xd9)]+a80_0x58096e(0xf2)+getProcessId()+'.json';static [a80_0x58096e(0x10c)]=this[a80_0x58096e(0xdc)]+'/error-report-'+getProcessId()+a80_0x58096e(0x163);static [a80_0x58096e(0xfa)]={};static [a80_0x58096e(0x135)]={};static['startMonitoring'](_0x288bdc=this['jsonReportDirPath']+a80_0x58096e(0xf2)+getProcessId()+'.json',_0x20298e=this['errorReportDirName']+a80_0x58096e(0x100)+getProcessId()+a80_0x58096e(0x163)){const _0x173bad=a80_0x58096e,_0x58ca05={};_0x58ca05[_0x173bad(0xd8)]=function(_0x4cfa1e,_0x3678b8){return _0x4cfa1e===_0x3678b8;},_0x58ca05[_0x173bad(0x166)]=_0x173bad(0xe0),_0x58ca05[_0x173bad(0x14c)]=function(_0x598a72,_0x17f947){return _0x598a72+_0x17f947;},_0x58ca05[_0x173bad(0x121)]=_0x173bad(0xdf),_0x58ca05[_0x173bad(0x159)]=_0x173bad(0x132);const _0x3a9c48=_0x58ca05;try{!fs[_0x173bad(0x146)](this[_0x173bad(0xd9)])&&fs[_0x173bad(0xf0)](this[_0x173bad(0xd9)]);}catch(_0x529a9f){logger[_0x173bad(0x14b)](_0x3a9c48[_0x173bad(0x14c)](_0x3a9c48[_0x173bad(0x121)],_0x529a9f));}if(this['started']||!this[_0x173bad(0x123)]())return;this['_observer']=new PerformanceObserver(_0x4a405b=>{const _0x242956=_0x173bad,_0x131172={'Wqkms':function(_0x31e362,_0xcfbba8){return _0x3a9c48['IPukV'](_0x31e362,_0xcfbba8);},'brJkr':_0x3a9c48[_0x242956(0x166)]};_0x4a405b['getEntries']()[_0x242956(0x141)](_0x5ea6f2=>{const _0x178e1b=_0x242956;if(_0x131172['Wqkms'](_0x5ea6f2[_0x178e1b(0x120)],_0x131172[_0x178e1b(0xd1)])){let _0x3fb60e={};if(_0x5ea6f2[_0x178e1b(0x165)])_0x3fb60e=_0x5ea6f2[_0x178e1b(0x165)]();else for(const _0x17d97a in _0x5ea6f2){_0x3fb60e[_0x17d97a]=_0x5ea6f2[_0x17d97a];}this[_0x178e1b(0xfa)][_0x5ea6f2['name']]&&(_0x3fb60e=Object[_0x178e1b(0x162)](_0x3fb60e,this['details'][_0x5ea6f2['name']])),delete this['details'][_0x5ea6f2['name']],this[_0x178e1b(0xea)][_0x178e1b(0x139)](_0x3fb60e);}else this[_0x178e1b(0x153)][_0x178e1b(0x139)](_0x5ea6f2);});});const _0x434aab={};_0x434aab[_0x173bad(0x157)]=!![],_0x434aab['entryTypes']=[_0x3a9c48[_0x173bad(0x159)],_0x3a9c48[_0x173bad(0x166)]],this['_observer'][_0x173bad(0x15a)](_0x434aab),this[_0x173bad(0xe3)]=!![],this[_0x173bad(0x164)]=_0x288bdc,this[_0x173bad(0x10c)]=_0x20298e;}static[a80_0x58096e(0x126)](){return performance;}static[a80_0x58096e(0x161)](_0x3da13c,_0x12596a){const _0x2112f7=a80_0x58096e,_0x16bca6={};_0x16bca6[_0x2112f7(0x169)]=function(_0x43a2cd,_0x2346b6){return _0x43a2cd+_0x2346b6;},_0x16bca6[_0x2112f7(0x10a)]=function(_0x21bd17,_0x463620){return _0x21bd17||_0x463620;},_0x16bca6[_0x2112f7(0x13d)]=function(_0x322874,_0x1537b6){return _0x322874===_0x1537b6;};const _0xa903dc=_0x16bca6,_0x3736b1={};if(!_0x3da13c||_0xa903dc[_0x2112f7(0x13d)](_0x3da13c[_0x2112f7(0x115)],0x0))return;_0x3da13c[_0x2112f7(0x16c)](_0x3acb75=>{const _0x5948dd=_0x2112f7;!_0x3736b1[_0x3acb75[_0x5948dd(0xfe)]]&&(_0x3736b1[_0x3acb75['name']]=0x0),_0x3736b1[_0x3acb75[_0x5948dd(0xfe)]]+=_0x3acb75[_0x5948dd(0x104)];});const _0x4e6f87=_0x12596a['reduce']((_0x5bec53,_0x211d6e)=>{const _0x1e14f0=_0x2112f7;return _0xa903dc['NvFpG'](_0x3736b1[_0x211d6e],_0xa903dc[_0x1e14f0(0x10a)](_0x5bec53,0x0));},0x0);return _0x4e6f87;}static async['calculateTimesFromMultipleFiles'](_0x31f273,_0x50f3b5){const _0x495da0=a80_0x58096e,_0x1c2966={'RmHMK':function(_0x1c9e1d,_0x2dbe7d){return _0x1c9e1d+_0x2dbe7d;},'Zsqvr':function(_0x3aea4c,_0x550dfb){return _0x3aea4c||_0x550dfb;},'VbiAp':function(_0x4db843,_0x1564d0){return _0x4db843===_0x1564d0;},'sIdgk':function(_0x5da1b5,_0x2e4258){return _0x5da1b5(_0x2e4258);},'EFPEW':function(_0x5d9dcd,_0x525bfa){return _0x5d9dcd(_0x525bfa);}};if(!_0x31f273||_0x1c2966[_0x495da0(0xf8)](_0x31f273[_0x495da0(0x115)],0x0))return 0x0;const _0x2fa988=[];for(const _0x6ddbdf of _0x31f273){const _0xbb4c92=path[_0x495da0(0x138)]('.',_0x6ddbdf);try{const _0x81bf05=this[_0x495da0(0x106)](_0xbb4c92);_0x81bf05['map'](_0x1fee4b=>{const _0x251090=_0x495da0;!_0x2fa988[_0x1fee4b[_0x251090(0xfe)]]&&(_0x2fa988[_0x1fee4b['name']]=0x0),_0x2fa988[_0x1fee4b[_0x251090(0xfe)]]+=_0x1fee4b[_0x251090(0x104)];});}catch(_0x14bbcb){_0x1c2966['sIdgk'](debug,_0x495da0(0x125)+_0x14bbcb[_0x495da0(0xec)]());}}const _0x3a8d71=_0x50f3b5[_0x495da0(0x167)]((_0x5be8a0,_0x588105)=>{const _0x373c03=_0x495da0;return _0x1c2966['RmHMK'](_0x2fa988[_0x588105],_0x1c2966[_0x373c03(0x114)](_0x5be8a0,0x0));},0x0);return _0x1c2966[_0x495da0(0xe8)](debug,_0x495da0(0x11e)+_0x50f3b5+'\x20for\x20all\x20processes\x20is\x20'+_0x3a8d71),_0x3a8d71;}static[a80_0x58096e(0x106)](_0x35755b){const _0x747a27=a80_0x58096e;if(_0x35755b){if(!fs[_0x747a27(0x146)](_0x35755b))return[];return JSON[_0x747a27(0x15f)](fs[_0x747a27(0x140)](_0x35755b)['toString']());}}static async[a80_0x58096e(0x13b)](_0x71e1de='performance-own.html',_0x4f4af7=null){const _0x5e6bff=a80_0x58096e,_0x4e5b81={'BPmbs':function(_0x201adf,_0x4d50f5){return _0x201adf(_0x4d50f5);},'CZLok':function(_0x16d39d,_0x54b6f7){return _0x16d39d(_0x54b6f7);}};if(!this[_0x5e6bff(0xe3)])return;await _0x4e5b81['CZLok'](sleep,0x1e),this['_observer'][_0x5e6bff(0xdb)](),this['started']=![],this[_0x5e6bff(0x151)](this['_events']);const _0x1950f9=this[_0x5e6bff(0xde)](this[_0x5e6bff(0x153)]),_0x49ed15=path[_0x5e6bff(0x138)](process[_0x5e6bff(0xe2)](),_0x71e1de);fs[_0x5e6bff(0x15c)](_0x49ed15,_0x1950f9,_0x431b7c=>{const _0x37fd51=_0x5e6bff;if(_0x431b7c){_0x4e5b81[_0x37fd51(0x137)](debug,_0x37fd51(0x142)+_0x431b7c[_0x37fd51(0xec)]());return;}_0x4e5b81['CZLok'](debug,'Performance\x20report\x20is\x20at\x20'+_0x49ed15);});if(_0x4f4af7)return this['calculateTimeFromEvents'](this['_events'],_0x4f4af7);}static['generateHTMLReport'](_0x405865){const _0xeb19a7=a80_0x58096e,_0x166e22={};_0x166e22['RGQzY']=_0xeb19a7(0x10f),_0x166e22[_0xeb19a7(0xfd)]=_0xeb19a7(0xd5),_0x166e22[_0xeb19a7(0x113)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x166e22[_0xeb19a7(0x131)]='</tbody></table></body></html>';const _0x393cf1=_0x166e22;let _0x2fcd24=_0x393cf1['RGQzY'];return _0x2fcd24+=_0x393cf1['NtIIe'],_0x2fcd24+=_0x393cf1[_0xeb19a7(0x113)],_0x405865['forEach'](_0x432c3a=>{const _0x20b00b=_0xeb19a7;_0x2fcd24+=_0x20b00b(0xf1)+_0x432c3a[_0x20b00b(0xfe)]+_0x20b00b(0x156)+_0x432c3a[_0x20b00b(0x104)]+'</td></tr>';}),_0x2fcd24+=_0x393cf1[_0xeb19a7(0x131)],_0x2fcd24;}static['generateJSON'](_0x2962e1){const _0x16bc3b=a80_0x58096e;if(!this[_0x16bc3b(0x164)])return;const _0x28cdfb={};_0x2962e1['map'](_0x560af3=>{const _0x5b1b3e=_0x16bc3b;!_0x28cdfb[_0x560af3[_0x5b1b3e(0xfe)]]&&(_0x28cdfb[_0x560af3['name']]=0x0),_0x28cdfb[_0x560af3[_0x5b1b3e(0xfe)]]+=_0x560af3[_0x5b1b3e(0x104)];});const _0x5d71e9=Object['entries'](_0x28cdfb)[_0x16bc3b(0x16c)](([_0x5a94fa,_0x410377])=>{const _0x3d504d=_0x16bc3b,_0x5ae59d={};return _0x5ae59d[_0x3d504d(0xfe)]=_0x5a94fa,_0x5ae59d[_0x3d504d(0x104)]=_0x410377,_0x5ae59d;});fs['writeFileSync'](this['jsonReportFileName'],JSON[_0x16bc3b(0x144)](_0x5d71e9));}static[a80_0x58096e(0x123)](){const _0x21a9e2=a80_0x58096e,_0x291259={};_0x291259[_0x21a9e2(0x16b)]=function(_0x583d8c,_0x56126b){return _0x583d8c===_0x56126b;},_0x291259[_0x21a9e2(0xf5)]=_0x21a9e2(0xd0);const _0x4d7afb=_0x291259;return!_0x4d7afb[_0x21a9e2(0x16b)](process[_0x21a9e2(0x152)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x4d7afb['YYisX']);}static[a80_0x58096e(0xe0)](_0x4c10dd,_0x531dad,_0x2db766=null,_0x3ef299={},_0x25deeb=null){const _0x3a5651=a80_0x58096e,_0x1f27f1={'WnKsT':function(_0x262680,_0x4418dc){return _0x262680(_0x4418dc);},'vfZIt':function(_0x4eae5c,_0x3b7e0c){return _0x4eae5c instanceof _0x3b7e0c;}};try{if(this['started']&&this['isEnabled']()){let _0xd39a51=_0x4c10dd;_0x2db766&&(_0xd39a51=_0x4c10dd+'['+JSON['stringify'](_0x2db766)+']');PerformanceTester[_0x3a5651(0x14a)](_0xd39a51),this[_0x3a5651(0xfa)]&&(this[_0x3a5651(0xfa)][_0xd39a51]=_0x3ef299);try{const _0xc84a7e=_0x531dad[_0x3a5651(0x154)](null,_0x25deeb);if(_0x1f27f1[_0x3a5651(0x12f)](_0xc84a7e,Promise))return new Promise((_0x5196fc,_0x5d1f92)=>{const _0x437e6e=_0x3a5651,_0x1df587={'SSLDb':function(_0x4b5cf2,_0x52f297){const _0x5ec566=a80_0x1844;return _0x1f27f1[_0x5ec566(0x11a)](_0x4b5cf2,_0x52f297);}};_0xc84a7e[_0x437e6e(0x102)](_0x22bf9c=>{const _0x53bfc0=_0x437e6e;PerformanceTester['end'](_0xd39a51),_0x1df587[_0x53bfc0(0x136)](_0x5196fc,_0x22bf9c);})['catch'](_0x1001c2=>{const _0x3c3b38=_0x437e6e;PerformanceTester['end'](_0xd39a51,![],util[_0x3c3b38(0x12d)](_0x1001c2)),_0x1f27f1[_0x3c3b38(0x11a)](_0x5d1f92,_0x1001c2);});});;return PerformanceTester[_0x3a5651(0xe7)](_0xd39a51),_0xc84a7e;}catch(_0x131f52){PerformanceTester[_0x3a5651(0xe7)](_0xd39a51,![],util[_0x3a5651(0x12d)](_0x131f52));throw _0x131f52;}};return _0x531dad[_0x3a5651(0x154)](null,_0x25deeb);}catch(_0x2c9949){return _0x531dad['apply'](null,_0x25deeb);}}static[a80_0x58096e(0x111)](_0x28180a,_0x45ad72,_0x483164={}){const _0x59cc7e=a80_0x58096e,_0x3dfc19={'agVzN':function(_0x1e321f){return _0x1e321f();},'gsJFW':function(_0x14f085){return _0x14f085();}},_0x299dd8=this;return _0x483164[_0x59cc7e(0x148)]=_0x3dfc19[_0x59cc7e(0xee)](getProcessId),_0x483164['testName']=_0x3dfc19[_0x59cc7e(0x122)](getTestName),_0x483164[_0x59cc7e(0xf4)]=global[_0x59cc7e(0x105)]&&global[_0x59cc7e(0x105)]['index'],function(){const _0x2005fd=_0x59cc7e,_0x939dd7=[_0x28180a,_0x45ad72,null,_0x483164][_0x2005fd(0x14f)](arguments);return _0x299dd8[_0x2005fd(0xe0)][_0x2005fd(0x154)](_0x299dd8,_0x939dd7);};}static[a80_0x58096e(0x11d)](){const _0x43f423=a80_0x58096e,_0xa709d=/(^.*)\[(.*)\]$/,_0x1f1478={},_0x53e96b={},_0x535c1c=[],_0x53c9e6=this[_0x43f423(0xea)][_0x43f423(0x14e)](0x0,this['_measureEvents']['length']);for(const _0x1d279f of _0x53c9e6){const _0x3058f6=_0x1d279f[_0x43f423(0xfe)][_0x43f423(0x108)](_0xa709d),_0x13b45e=Object[_0x43f423(0x162)]({},_0x1d279f);_0x3058f6&&(_0x13b45e[_0x43f423(0xfe)]=_0x3058f6[0x1],_0x13b45e[_0x43f423(0x10b)]=JSON[_0x43f423(0x15f)](_0x3058f6[0x2])),_0x535c1c['push'](_0x13b45e);}return _0x535c1c;}static[a80_0x58096e(0x130)](){const _0x3e097d=a80_0x58096e,_0x361631={};_0x361631[_0x3e097d(0x15e)]=function(_0x319f4d,_0x425f26){return _0x319f4d+_0x425f26;},_0x361631[_0x3e097d(0x15d)]=_0x3e097d(0xf7),_0x361631[_0x3e097d(0x110)]=function(_0x491911,_0x5bba89){return _0x491911===_0x5bba89;},_0x361631['Ipdqq']=function(_0x575bbd,_0x1e5688){return _0x575bbd+_0x1e5688;};const _0x1f33ce=_0x361631;try{if(fs[_0x3e097d(0x146)](this[_0x3e097d(0xd9)])){const _0x10f3be=fs[_0x3e097d(0x160)](this[_0x3e097d(0xd9)]);for(const _0x4bf90a of _0x10f3be){fs[_0x3e097d(0x10e)](path[_0x3e097d(0x138)](this[_0x3e097d(0xd9)],_0x4bf90a));}}}catch(_0xc2907c){logger[_0x3e097d(0x14b)](_0x1f33ce[_0x3e097d(0x15e)](_0x1f33ce[_0x3e097d(0x15d)],_0xc2907c));}if(_0x1f33ce[_0x3e097d(0x110)](this[_0x3e097d(0xea)][_0x3e097d(0x115)],0x0))return;const _0x58cd7e=this['getCleanedPerfEvents'](),_0x55f4eb=JSON['stringify'](_0x58cd7e),_0x414eb2=_0x1f33ce[_0x3e097d(0x12a)](_0x55f4eb['slice'](0x1,-0x1),',');fs[_0x3e097d(0xe5)](this['jsonReportFileName'],_0x414eb2);}static async[a80_0x58096e(0xfc)](){const _0x414992=a80_0x58096e,_0x2cecf1={};_0x2cecf1[_0x414992(0x101)]=function(_0x87072d,_0x2771e2){return _0x87072d===_0x2771e2;},_0x2cecf1[_0x414992(0x145)]=function(_0x1dbc43,_0x2667a1){return _0x1dbc43>_0x2667a1;};const _0x109685=_0x2cecf1;if(!this['started']||_0x109685[_0x414992(0x101)](this[_0x414992(0xea)][_0x414992(0x115)],0x0))return[];if(!fs['existsSync'](this[_0x414992(0xd9)]))return this[_0x414992(0xea)];const _0x246178=(await fsPromise[_0x414992(0x14d)](this[_0x414992(0xd9)]))[_0x414992(0x16c)](_0x1b7400=>path[_0x414992(0xfb)](this[_0x414992(0xd9)],_0x1b7400));let _0x5eb018=(await Promise[_0x414992(0x13e)](_0x246178[_0x414992(0x16c)](_0x17d1ac=>fsPromise[_0x414992(0x12b)](_0x17d1ac,_0x414992(0xd6)))))[_0x414992(0x16c)](_0x45c55f=>'['+_0x45c55f['slice'](0x0,-0x1)+']')[_0x414992(0x16c)](_0x13d16f=>JSON['parse'](_0x13d16f))[_0x414992(0xed)]();return _0x109685[_0x414992(0x145)](this[_0x414992(0xea)][_0x414992(0x115)],0x0)&&(_0x5eb018=_0x5eb018[_0x414992(0x14f)](this[_0x414992(0x11d)]())),this[_0x414992(0x11b)]['disconnect'](),_0x5eb018;}static['pushErrors'](){const _0xa5d26f=a80_0x58096e,_0x5eb44e={};_0x5eb44e[_0xa5d26f(0xff)]=function(_0x1385c2,_0x248acf){return _0x1385c2===_0x248acf;},_0x5eb44e['jvrJV']=function(_0x363edb,_0x5845ba){return _0x363edb+_0x5845ba;};const _0x1a0abe=_0x5eb44e;if(_0x1a0abe[_0xa5d26f(0xff)](this[_0xa5d26f(0x155)][_0xa5d26f(0x115)],0x0))return;const _0x466a14=JSON[_0xa5d26f(0x144)](this[_0xa5d26f(0x155)]),_0x4d82bd=_0x1a0abe[_0xa5d26f(0x128)](_0x466a14[_0xa5d26f(0x168)](0x1,-0x1),',');fs[_0xa5d26f(0xe5)](this[_0xa5d26f(0x143)],_0x4d82bd);}static[a80_0x58096e(0x16a)](){const _0x4ad94b=a80_0x58096e,_0x409cc8={};_0x409cc8[_0x4ad94b(0xf3)]=function(_0x1fe1b6,_0x2aa22f){return _0x1fe1b6>_0x2aa22f;};const _0xc05164=_0x409cc8;if(this['errorReportFileName']){if(!fs[_0x4ad94b(0x146)](this[_0x4ad94b(0x10c)]))return this['_errorEvents'];let _0x4d2e44=fs[_0x4ad94b(0x140)](this['errorReportFileName'])[_0x4ad94b(0xec)]();_0x4d2e44='['+_0x4d2e44[_0x4ad94b(0x168)](0x0,-0x1)+']';let _0x20701f=JSON[_0x4ad94b(0x15f)](_0x4d2e44);return _0xc05164[_0x4ad94b(0xf3)](this[_0x4ad94b(0x155)][_0x4ad94b(0x115)],0x0)&&(_0x20701f=_0x20701f[_0x4ad94b(0x14f)](this['_errorEvents'])),fs[_0x4ad94b(0x10e)](this[_0x4ad94b(0x10c)]),_0x20701f;}}static['captureError'](_0x720169){const _0x230ce9=a80_0x58096e;if(!this[_0x230ce9(0x123)]())return;this['_errorEvents'][_0x230ce9(0x139)]({'message':_0x720169[_0x230ce9(0x158)],'trace':_0x720169[_0x230ce9(0x103)],'code':_0x720169[_0x230ce9(0xe1)]||null,'time':new Date()});}static[a80_0x58096e(0x112)](){const _0x152869=a80_0x58096e;try{if(!this[_0x152869(0x123)]())return;this[_0x152869(0x11b)]['disconnect'](),this['pushPerfMeasures'](),this[_0x152869(0xef)]();}catch(_0x3980d9){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x152869(0x12d)](_0x3980d9));}}static async['finalize'](){const _0x1341a8=a80_0x58096e,_0x3e0b51={'IpAxl':function(_0x31d61a,_0x175e2e){return _0x31d61a(_0x175e2e);}};await _0x3e0b51[_0x1341a8(0xeb)](sleep,0x1e);const _0x26b32b=await this['finalizePerfMeasures'](),_0x1405ff=this[_0x1341a8(0x16a)]();if(!this[_0x1341a8(0x123)]()){const _0xadea60={};return _0xadea60[_0x1341a8(0x127)]=[],_0xadea60[_0x1341a8(0x118)]=[],_0xadea60;}const _0x21cf71={};return _0x21cf71[_0x1341a8(0x127)]=_0x26b32b,_0x21cf71[_0x1341a8(0x118)]=_0x1405ff,_0x21cf71;}static[a80_0x58096e(0x14a)](_0x47eeeb){const _0xf2b160=a80_0x58096e,_0x2e1110={};_0x2e1110[_0xf2b160(0xd4)]=function(_0x4bab47,_0x733a54){return _0x4bab47+_0x733a54;},_0x2e1110['tXgPK']='-start';const _0x4a8458=_0x2e1110,_0x21669e=_0x4a8458[_0xf2b160(0xd4)](_0x47eeeb,_0x4a8458[_0xf2b160(0x15b)]);if(this[_0xf2b160(0x135)][_0x21669e])return;performance[_0xf2b160(0x124)](_0x21669e),this[_0xf2b160(0x135)][_0x21669e]=0x1;}static[a80_0x58096e(0xe7)](_0xe76cf,_0x7b4cba=!![],_0x1adc47=null,_0x3be5ea={}){const _0x2c74f4=a80_0x58096e,_0xeaceca={'rIUPx':function(_0x238412,_0x4e497c){return _0x238412+_0x4e497c;},'EsMHE':'-end','vgZOr':function(_0x4551c8,_0xcc910d){return _0x4551c8+_0xcc910d;},'HYiyI':_0x2c74f4(0x147),'PYQcK':function(_0x159425,_0x1e9464){return _0x159425+_0x1e9464;},'kiSYd':function(_0xcc99d0){return _0xcc99d0();}};performance['mark'](_0xeaceca['rIUPx'](_0xe76cf,_0xeaceca[_0x2c74f4(0xe4)])),performance['measure'](_0xe76cf,_0xeaceca[_0x2c74f4(0x119)](_0xe76cf,_0xeaceca[_0x2c74f4(0xd3)]),_0xeaceca[_0x2c74f4(0xe6)](_0xe76cf,_0xeaceca[_0x2c74f4(0xe4)]));const _0x49705e={};_0x49705e['success']=_0x7b4cba,_0x49705e[_0x2c74f4(0xd7)]=_0x1adc47,this[_0x2c74f4(0xfa)][_0xe76cf]=Object[_0x2c74f4(0x162)](_0x49705e,Object['assign'](Object['assign']({'worker':_0xeaceca[_0x2c74f4(0x117)](getProcessId),'platform':global[_0x2c74f4(0x105)]&&global[_0x2c74f4(0x105)][_0x2c74f4(0x11c)],'testName':_0xeaceca[_0x2c74f4(0x117)](getTestName)},_0x3be5ea),this['details'][_0xe76cf]||{}));}}module[a80_0x58096e(0x16e)]=PerformanceTester;
1
+ const a80_0x2a8ef2=a80_0x5148;(function(_0x498ddd,_0x41350a){const _0x4346c8=a80_0x5148,_0x4c9b37=_0x498ddd();while(!![]){try{const _0x343107=-parseInt(_0x4346c8(0x1dc))/0x1+-parseInt(_0x4346c8(0x1dd))/0x2+-parseInt(_0x4346c8(0x1bd))/0x3+-parseInt(_0x4346c8(0x1c1))/0x4*(-parseInt(_0x4346c8(0x179))/0x5)+parseInt(_0x4346c8(0x1a5))/0x6+parseInt(_0x4346c8(0x167))/0x7+parseInt(_0x4346c8(0x1ec))/0x8;if(_0x343107===_0x41350a)break;else _0x4c9b37['push'](_0x4c9b37['shift']());}catch(_0x8260bf){_0x4c9b37['push'](_0x4c9b37['shift']());}}}(a80_0x4074,0xb662c));const fs=require('fs'),fsPromise=require(a80_0x2a8ef2(0x1e4)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a80_0x2a8ef2(0x194)),util=require(a80_0x2a8ef2(0x17d)),logger=require(a80_0x2a8ef2(0x173))[a80_0x2a8ef2(0x1b0)],{getProcessId,sleep,debug,getTestName}=require(a80_0x2a8ef2(0x162));class PerformanceTester{static [a80_0x2a8ef2(0x1a8)];static ['_events']=[];static [a80_0x2a8ef2(0x1d9)]=[];static ['_errorEvents']=[];static [a80_0x2a8ef2(0x1eb)]=![];static [a80_0x2a8ef2(0x1b8)]=a80_0x2a8ef2(0x165);static ['jsonReportDirPath']=process[a80_0x2a8ef2(0x1d7)][a80_0x2a8ef2(0x1b2)]?path[a80_0x2a8ef2(0x1a6)](process['env'][a80_0x2a8ef2(0x1b2)],this[a80_0x2a8ef2(0x1b8)]):path[a80_0x2a8ef2(0x1a6)](process[a80_0x2a8ef2(0x16d)](),a80_0x2a8ef2(0x1e3),this[a80_0x2a8ef2(0x1b8)]);static [a80_0x2a8ef2(0x15c)]=process[a80_0x2a8ef2(0x1d7)][a80_0x2a8ef2(0x1b2)]?path['join'](process[a80_0x2a8ef2(0x1d7)]['browserStackCwd'],a80_0x2a8ef2(0x1e7)):path['join'](process['cwd'](),'error-report');static [a80_0x2a8ef2(0x1ed)]=this[a80_0x2a8ef2(0x1c2)]+a80_0x2a8ef2(0x188)+getProcessId()+a80_0x2a8ef2(0x1d3);static ['errorReportFileName']=this[a80_0x2a8ef2(0x15c)]+a80_0x2a8ef2(0x1bf)+getProcessId()+a80_0x2a8ef2(0x1d3);static [a80_0x2a8ef2(0x1bc)]={};static [a80_0x2a8ef2(0x183)]={};static['startMonitoring'](_0x4f73c1=this[a80_0x2a8ef2(0x1c2)]+a80_0x2a8ef2(0x188)+getProcessId()+a80_0x2a8ef2(0x1d3),_0x4b15cc=this[a80_0x2a8ef2(0x15c)]+a80_0x2a8ef2(0x1bf)+getProcessId()+a80_0x2a8ef2(0x1d3)){const _0x3e56dc=a80_0x2a8ef2,_0x171c88={};_0x171c88[_0x3e56dc(0x198)]=function(_0x402083,_0x206fe2){return _0x402083===_0x206fe2;},_0x171c88[_0x3e56dc(0x1c4)]=_0x3e56dc(0x19f),_0x171c88[_0x3e56dc(0x185)]=function(_0x3c3c5b,_0x40d270){return _0x3c3c5b+_0x40d270;},_0x171c88[_0x3e56dc(0x168)]=_0x3e56dc(0x1b4),_0x171c88[_0x3e56dc(0x1aa)]=_0x3e56dc(0x1de);const _0x27d13e=_0x171c88;try{!fs[_0x3e56dc(0x15d)](this['jsonReportDirPath'])&&fs[_0x3e56dc(0x166)](this[_0x3e56dc(0x1c2)]);}catch(_0x251341){logger[_0x3e56dc(0x186)](_0x27d13e[_0x3e56dc(0x185)](_0x27d13e[_0x3e56dc(0x168)],_0x251341));}if(this[_0x3e56dc(0x1eb)]||!this['isEnabled']())return;this[_0x3e56dc(0x1a8)]=new PerformanceObserver(_0x53e257=>{const _0x49d9d3=_0x3e56dc;_0x53e257[_0x49d9d3(0x182)]()['forEach'](_0x53711f=>{const _0x57f6de=_0x49d9d3;if(_0x27d13e['nuIhu'](_0x53711f[_0x57f6de(0x1b9)],_0x27d13e['CCDmb'])){let _0x7fed92={};if(_0x53711f[_0x57f6de(0x17b)])_0x7fed92=_0x53711f[_0x57f6de(0x17b)]();else for(const _0x1793b1 in _0x53711f){_0x7fed92[_0x1793b1]=_0x53711f[_0x1793b1];}this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]]&&(_0x7fed92=Object['assign'](_0x7fed92,this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]])),delete this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]],this[_0x57f6de(0x1d9)][_0x57f6de(0x1a0)](_0x7fed92);}else this[_0x57f6de(0x1a9)][_0x57f6de(0x1a0)](_0x53711f);});});const _0x1494b2={};_0x1494b2[_0x3e56dc(0x175)]=!![],_0x1494b2[_0x3e56dc(0x1d1)]=[_0x27d13e[_0x3e56dc(0x1aa)],_0x27d13e[_0x3e56dc(0x1c4)]],this[_0x3e56dc(0x1a8)]['observe'](_0x1494b2),this['started']=!![],this[_0x3e56dc(0x1ed)]=_0x4f73c1,this[_0x3e56dc(0x1cc)]=_0x4b15cc;}static[a80_0x2a8ef2(0x1da)](){return performance;}static[a80_0x2a8ef2(0x18a)](_0x3daa63,_0x2cb8e9){const _0x5c6d02=a80_0x2a8ef2,_0x2cdbba={};_0x2cdbba[_0x5c6d02(0x1c0)]=function(_0xeee23,_0x2ec55f){return _0xeee23+_0x2ec55f;},_0x2cdbba[_0x5c6d02(0x160)]=function(_0x59b798,_0x57465a){return _0x59b798||_0x57465a;},_0x2cdbba['weQqp']=function(_0x51e101,_0x1df73b){return _0x51e101===_0x1df73b;};const _0x4e4493=_0x2cdbba,_0xb8e9b9={};if(!_0x3daa63||_0x4e4493[_0x5c6d02(0x196)](_0x3daa63[_0x5c6d02(0x1e8)],0x0))return;_0x3daa63[_0x5c6d02(0x18f)](_0x370d02=>{const _0x1bde2e=_0x5c6d02;!_0xb8e9b9[_0x370d02[_0x1bde2e(0x1c5)]]&&(_0xb8e9b9[_0x370d02[_0x1bde2e(0x1c5)]]=0x0),_0xb8e9b9[_0x370d02['name']]+=_0x370d02['duration'];});const _0x4f2933=_0x2cb8e9['reduce']((_0x38a997,_0x345860)=>{const _0x5a1840=_0x5c6d02;return _0x4e4493[_0x5a1840(0x1c0)](_0xb8e9b9[_0x345860],_0x4e4493[_0x5a1840(0x160)](_0x38a997,0x0));},0x0);return _0x4f2933;}static async['calculateTimesFromMultipleFiles'](_0x152856,_0x4443d7){const _0x5df05f=a80_0x2a8ef2,_0x3d52af={'hKOXG':function(_0x4cfbec,_0x143cd3){return _0x4cfbec+_0x143cd3;},'FDNBM':function(_0x5a88fe,_0xd3c107){return _0x5a88fe||_0xd3c107;},'LOGsB':function(_0x174172,_0x342ab2){return _0x174172===_0x342ab2;},'SHQfe':function(_0x415c5b,_0x353f58){return _0x415c5b(_0x353f58);}};if(!_0x152856||_0x3d52af['LOGsB'](_0x152856['length'],0x0))return 0x0;const _0x3275bb=[];for(const _0x5d8f3a of _0x152856){const _0x4d3d4b=path[_0x5df05f(0x1a6)]('.',_0x5d8f3a);try{const _0x57b7db=this[_0x5df05f(0x1df)](_0x4d3d4b);_0x57b7db['map'](_0x298980=>{const _0xec749c=_0x5df05f;!_0x3275bb[_0x298980[_0xec749c(0x1c5)]]&&(_0x3275bb[_0x298980['name']]=0x0),_0x3275bb[_0x298980[_0xec749c(0x1c5)]]+=_0x298980[_0xec749c(0x1ab)];});}catch(_0x26d7b4){_0x3d52af['SHQfe'](debug,_0x5df05f(0x1d8)+_0x26d7b4[_0x5df05f(0x1e1)]());}}const _0x5088ca=_0x4443d7[_0x5df05f(0x19c)]((_0x106c74,_0x3a4670)=>{const _0x3cbc1b=_0x5df05f;return _0x3d52af['hKOXG'](_0x3275bb[_0x3a4670],_0x3d52af[_0x3cbc1b(0x176)](_0x106c74,0x0));},0x0);return _0x3d52af['SHQfe'](debug,'Time\x20for\x20'+_0x4443d7+'\x20for\x20all\x20processes\x20is\x20'+_0x5088ca),_0x5088ca;}static[a80_0x2a8ef2(0x1df)](_0x3558ba){const _0x545984=a80_0x2a8ef2;if(_0x3558ba){if(!fs[_0x545984(0x15d)](_0x3558ba))return[];return JSON[_0x545984(0x1bb)](fs[_0x545984(0x17f)](_0x3558ba)[_0x545984(0x1e1)]());}}static async[a80_0x2a8ef2(0x199)](_0x13d558=a80_0x2a8ef2(0x16a),_0x85f7c2=null){const _0x4b59ae=a80_0x2a8ef2,_0xcac448={'WmFcN':function(_0x412f73,_0x399e6c){return _0x412f73(_0x399e6c);},'cDUkN':function(_0x48d4da,_0x25c2e2){return _0x48d4da(_0x25c2e2);}};if(!this[_0x4b59ae(0x1eb)])return;await _0xcac448['cDUkN'](sleep,0x1e),this[_0x4b59ae(0x1a8)][_0x4b59ae(0x1a3)](),this[_0x4b59ae(0x1eb)]=![],this[_0x4b59ae(0x16c)](this['_events']);const _0x1450e6=this[_0x4b59ae(0x19e)](this['_events']),_0x100c92=path['join'](process[_0x4b59ae(0x16d)](),_0x13d558);fs['writeFile'](_0x100c92,_0x1450e6,_0x1ca012=>{const _0x58b31f=_0x4b59ae;if(_0x1ca012){_0xcac448[_0x58b31f(0x17c)](debug,_0x58b31f(0x197)+_0x1ca012[_0x58b31f(0x1e1)]());return;}_0xcac448[_0x58b31f(0x17c)](debug,_0x58b31f(0x19d)+_0x100c92);});if(_0x85f7c2)return this['calculateTimeFromEvents'](this[_0x4b59ae(0x1a9)],_0x85f7c2);}static[a80_0x2a8ef2(0x19e)](_0x11d9ac){const _0x349440=a80_0x2a8ef2,_0x4d5d36={};_0x4d5d36[_0x349440(0x1b6)]=_0x349440(0x181),_0x4d5d36[_0x349440(0x1d2)]='<h1>Performance\x20Report</h1>',_0x4d5d36['uZfIC']=_0x349440(0x17e),_0x4d5d36[_0x349440(0x1a2)]='</tbody></table></body></html>';const _0x4dd4fc=_0x4d5d36;let _0x10b713=_0x4dd4fc['DGGPC'];return _0x10b713+=_0x4dd4fc[_0x349440(0x1d2)],_0x10b713+=_0x4dd4fc[_0x349440(0x171)],_0x11d9ac[_0x349440(0x1a7)](_0x215e40=>{const _0x24d155=_0x349440;_0x10b713+=_0x24d155(0x169)+_0x215e40[_0x24d155(0x1c5)]+_0x24d155(0x16e)+_0x215e40[_0x24d155(0x1ab)]+'</td></tr>';}),_0x10b713+=_0x4dd4fc[_0x349440(0x1a2)],_0x10b713;}static[a80_0x2a8ef2(0x16c)](_0x8cefa8){const _0x6093f2=a80_0x2a8ef2;if(!this[_0x6093f2(0x1ed)])return;const _0x47e9d5={};_0x8cefa8[_0x6093f2(0x18f)](_0xf4fd40=>{const _0x1ad4ef=_0x6093f2;!_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]&&(_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]=0x0),_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]+=_0xf4fd40[_0x1ad4ef(0x1ab)];});const _0x2cd5dd=Object[_0x6093f2(0x18c)](_0x47e9d5)[_0x6093f2(0x18f)](([_0x19f6d8,_0x52f6cf])=>{const _0xf7d32=_0x6093f2,_0x1ac800={};return _0x1ac800[_0xf7d32(0x1c5)]=_0x19f6d8,_0x1ac800[_0xf7d32(0x1ab)]=_0x52f6cf,_0x1ac800;});fs[_0x6093f2(0x189)](this[_0x6093f2(0x1ed)],JSON[_0x6093f2(0x1af)](_0x2cd5dd));}static[a80_0x2a8ef2(0x1be)](){const _0x5d603e=a80_0x2a8ef2,_0x15d266={};_0x15d266['TGHcq']=function(_0x396cc9,_0x498178){return _0x396cc9===_0x498178;},_0x15d266[_0x5d603e(0x192)]='false';const _0x566147=_0x15d266;return!_0x566147[_0x5d603e(0x15f)](process[_0x5d603e(0x1d7)][_0x5d603e(0x1ce)],_0x566147[_0x5d603e(0x192)]);}static['measure'](_0x1db904,_0x2aa2e7,_0xe10f73=null,_0x218774={},_0x3bf646=null){const _0x1c00c7=a80_0x2a8ef2,_0x5be477={'jwPWc':function(_0x1fea96,_0xe92897){return _0x1fea96(_0xe92897);},'cNMEl':function(_0x18461b,_0x160a82){return _0x18461b(_0x160a82);},'bZDPA':function(_0x2567df,_0xde33bb){return _0x2567df instanceof _0xde33bb;}};try{if(this['started']&&this[_0x1c00c7(0x1be)]()){let _0x55f8af=_0x1db904;_0xe10f73&&(_0x55f8af=_0x1db904+'['+JSON[_0x1c00c7(0x1af)](_0xe10f73)+']');PerformanceTester[_0x1c00c7(0x193)](_0x55f8af),this[_0x1c00c7(0x1bc)]&&(this[_0x1c00c7(0x1bc)][_0x55f8af]=_0x218774);try{const _0x1bc33d=_0x2aa2e7[_0x1c00c7(0x170)](null,_0x3bf646);if(_0x5be477[_0x1c00c7(0x1cd)](_0x1bc33d,Promise))return new Promise((_0x541b1b,_0x30848d)=>{const _0x403249={'NOHwu':function(_0x57833f,_0x1ccdef){const _0x261199=a80_0x5148;return _0x5be477[_0x261199(0x1e2)](_0x57833f,_0x1ccdef);}};_0x1bc33d['then'](_0x490ed1=>{PerformanceTester['end'](_0x55f8af),_0x403249['NOHwu'](_0x541b1b,_0x490ed1);})['catch'](_0x191740=>{const _0x1987e0=a80_0x5148;PerformanceTester[_0x1987e0(0x1c7)](_0x55f8af,![],util[_0x1987e0(0x1b3)](_0x191740)),_0x5be477[_0x1987e0(0x180)](_0x30848d,_0x191740);});});;return PerformanceTester[_0x1c00c7(0x1c7)](_0x55f8af),_0x1bc33d;}catch(_0x2d50ae){PerformanceTester['end'](_0x55f8af,![],util[_0x1c00c7(0x1b3)](_0x2d50ae));throw _0x2d50ae;}};return _0x2aa2e7['apply'](null,_0x3bf646);}catch(_0x4fd776){return _0x2aa2e7['apply'](null,_0x3bf646);}}static['measureWrapper'](_0x58eaaf,_0x454d56,_0x45d9c5={}){const _0x5f09aa=a80_0x2a8ef2,_0x1c5a84={'SXdwB':function(_0x34f8cc){return _0x34f8cc();},'iYRDM':function(_0x30f028){return _0x30f028();}},_0x553e9f=this;return _0x45d9c5['worker']=_0x1c5a84[_0x5f09aa(0x190)](getProcessId),_0x45d9c5[_0x5f09aa(0x1ae)]=_0x1c5a84[_0x5f09aa(0x15e)](getTestName),_0x45d9c5['platform']=global[_0x5f09aa(0x1e9)]&&global[_0x5f09aa(0x1e9)][_0x5f09aa(0x177)],function(){const _0x42538a=_0x5f09aa,_0x39e74d=[_0x58eaaf,_0x454d56,null,_0x45d9c5][_0x42538a(0x1b1)](arguments);return _0x553e9f[_0x42538a(0x19f)][_0x42538a(0x170)](_0x553e9f,_0x39e74d);};}static['getCleanedPerfEvents'](){const _0x174717=a80_0x2a8ef2,_0x1d94c8=/(^.*)\[(.*)\]$/,_0x40b281={},_0x1b224d={},_0x41454f=[],_0x1a122b=this[_0x174717(0x1d9)][_0x174717(0x1d5)](0x0,this['_measureEvents']['length']);for(const _0x3c5fe9 of _0x1a122b){const _0xb6de53=_0x3c5fe9['name']['match'](_0x1d94c8),_0x252f05=Object['assign']({},_0x3c5fe9);_0xb6de53&&(_0x252f05[_0x174717(0x1c5)]=_0xb6de53[0x1],_0x252f05[_0x174717(0x1cb)]=JSON[_0x174717(0x1bb)](_0xb6de53[0x2])),_0x41454f[_0x174717(0x1a0)](_0x252f05);}return _0x41454f;}static[a80_0x2a8ef2(0x172)](){const _0x430f21=a80_0x2a8ef2,_0x43ccfa={};_0x43ccfa[_0x430f21(0x1ea)]=function(_0x5a02e6,_0xdc6610){return _0x5a02e6+_0xdc6610;},_0x43ccfa[_0x430f21(0x1d4)]=_0x430f21(0x1d0),_0x43ccfa[_0x430f21(0x1db)]=function(_0x3f74ad,_0x384953){return _0x3f74ad===_0x384953;};const _0x42be6d=_0x43ccfa;try{if(fs[_0x430f21(0x15d)](this[_0x430f21(0x1c2)])){const _0xdd69cd=fs[_0x430f21(0x19a)](this[_0x430f21(0x1c2)]);for(const _0x3caf07 of _0xdd69cd){fs['unlinkSync'](path['join'](this[_0x430f21(0x1c2)],_0x3caf07));}}}catch(_0x50a7e){logger[_0x430f21(0x186)](_0x42be6d[_0x430f21(0x1ea)](_0x42be6d[_0x430f21(0x1d4)],_0x50a7e));}if(_0x42be6d[_0x430f21(0x1db)](this[_0x430f21(0x1d9)][_0x430f21(0x1e8)],0x0))return;const _0x175bc3=this['getCleanedPerfEvents'](),_0xdb939c=JSON['stringify'](_0x175bc3),_0x4ff6a3=_0x42be6d[_0x430f21(0x1ea)](_0xdb939c[_0x430f21(0x1ad)](0x1,-0x1),',');fs['appendFileSync'](this[_0x430f21(0x1ed)],_0x4ff6a3);}static async['finalizePerfMeasures'](){const _0x451f68=a80_0x2a8ef2,_0x740b6e={};_0x740b6e['ZkhWk']=function(_0x4feb2c,_0x263119){return _0x4feb2c===_0x263119;},_0x740b6e[_0x451f68(0x1c9)]=function(_0x379b32,_0x4621a6){return _0x379b32>_0x4621a6;};const _0x4c9000=_0x740b6e;if(!this[_0x451f68(0x1eb)]||_0x4c9000[_0x451f68(0x1d6)](this[_0x451f68(0x1d9)][_0x451f68(0x1e8)],0x0))return[];if(!fs[_0x451f68(0x15d)](this[_0x451f68(0x1c2)]))return this[_0x451f68(0x1d9)];const _0x3e7f22=(await fsPromise['readdir'](this['jsonReportDirPath']))['map'](_0x294feb=>path[_0x451f68(0x1cf)](this[_0x451f68(0x1c2)],_0x294feb));let _0x2c90f6=(await Promise[_0x451f68(0x1ef)](_0x3e7f22[_0x451f68(0x18f)](_0x890069=>fsPromise[_0x451f68(0x18d)](_0x890069,_0x451f68(0x178)))))['map'](_0x4d70ca=>'['+_0x4d70ca['slice'](0x0,-0x1)+']')[_0x451f68(0x18f)](_0x55fef6=>JSON[_0x451f68(0x1bb)](_0x55fef6))[_0x451f68(0x1c8)]();return _0x4c9000[_0x451f68(0x1c9)](this[_0x451f68(0x1d9)]['length'],0x0)&&(_0x2c90f6=_0x2c90f6['concat'](this[_0x451f68(0x1a4)]())),this[_0x451f68(0x1a8)]['disconnect'](),_0x2c90f6;}static[a80_0x2a8ef2(0x161)](){const _0x460c11=a80_0x2a8ef2,_0x728f5f={};_0x728f5f[_0x460c11(0x19b)]=function(_0x5c09a4,_0xa521ff){return _0x5c09a4===_0xa521ff;},_0x728f5f['XawUv']=function(_0x5cae39,_0x6ced2){return _0x5cae39+_0x6ced2;};const _0x109636=_0x728f5f;if(_0x109636[_0x460c11(0x19b)](this[_0x460c11(0x18e)][_0x460c11(0x1e8)],0x0))return;const _0x5d7621=JSON['stringify'](this['_errorEvents']),_0x135671=_0x109636[_0x460c11(0x163)](_0x5d7621['slice'](0x1,-0x1),',');fs[_0x460c11(0x1c3)](this['errorFile'],_0x135671);}static[a80_0x2a8ef2(0x184)](){const _0x3e65f9=a80_0x2a8ef2,_0x5490e9={};_0x5490e9[_0x3e65f9(0x191)]=function(_0x30bfec,_0x49ffa5){return _0x30bfec>_0x49ffa5;};const _0x4897f7=_0x5490e9;if(this[_0x3e65f9(0x1cc)]){if(!fs['existsSync'](this[_0x3e65f9(0x1cc)]))return this[_0x3e65f9(0x18e)];let _0x1abaa3=fs[_0x3e65f9(0x17f)](this['errorReportFileName'])[_0x3e65f9(0x1e1)]();_0x1abaa3='['+_0x1abaa3[_0x3e65f9(0x1ad)](0x0,-0x1)+']';let _0xab625=JSON[_0x3e65f9(0x1bb)](_0x1abaa3);return _0x4897f7['EfCri'](this[_0x3e65f9(0x18e)][_0x3e65f9(0x1e8)],0x0)&&(_0xab625=_0xab625[_0x3e65f9(0x1b1)](this[_0x3e65f9(0x18e)])),fs['unlinkSync'](this[_0x3e65f9(0x1cc)]),_0xab625;}}static['captureError'](_0x4112f8){const _0x283bd3=a80_0x2a8ef2;if(!this[_0x283bd3(0x1be)]())return;this[_0x283bd3(0x18e)][_0x283bd3(0x1a0)]({'message':_0x4112f8[_0x283bd3(0x187)],'trace':_0x4112f8[_0x283bd3(0x1b5)],'code':_0x4112f8['code']||null,'time':new Date()});}static[a80_0x2a8ef2(0x1e0)](){const _0x17d2cf=a80_0x2a8ef2;try{if(!this[_0x17d2cf(0x1be)]())return;this[_0x17d2cf(0x1a8)][_0x17d2cf(0x1a3)](),this[_0x17d2cf(0x172)](),this[_0x17d2cf(0x161)]();}catch(_0x3adda2){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x17d2cf(0x1b3)](_0x3adda2));}}static async['finalize'](){const _0x1621ea=a80_0x2a8ef2,_0x22fce6={'aCZlv':function(_0x457a9f,_0x2d6f61){return _0x457a9f(_0x2d6f61);}};await _0x22fce6[_0x1621ea(0x1ee)](sleep,0x1e);const _0x4f8613=await this[_0x1621ea(0x16f)](),_0x48ef2c=this[_0x1621ea(0x184)]();if(!this[_0x1621ea(0x1be)]()){const _0x21f9d8={};return _0x21f9d8['measures']=[],_0x21f9d8[_0x1621ea(0x1a1)]=[],_0x21f9d8;}const _0x5b696d={};return _0x5b696d['measures']=_0x4f8613,_0x5b696d['errors']=_0x48ef2c,_0x5b696d;}static[a80_0x2a8ef2(0x193)](_0x4e0b19){const _0xad0821=a80_0x2a8ef2,_0x59c457={};_0x59c457['vJcBs']=function(_0x357e21,_0x29a311){return _0x357e21+_0x29a311;},_0x59c457[_0xad0821(0x16b)]=_0xad0821(0x195);const _0x13ab69=_0x59c457,_0x48fdf5=_0x13ab69['vJcBs'](_0x4e0b19,_0x13ab69[_0xad0821(0x16b)]);if(this['eventsMap'][_0x48fdf5])return;performance[_0xad0821(0x1b7)](_0x48fdf5),this[_0xad0821(0x183)][_0x48fdf5]=0x1;}static[a80_0x2a8ef2(0x1c7)](_0x11aac2,_0x42efe6=!![],_0x41f5b0=null,_0x4d4188={}){const _0x3b1564=a80_0x2a8ef2,_0x364f41={'xzUZj':function(_0x109b8f,_0x39ec57){return _0x109b8f+_0x39ec57;},'eTHwl':_0x3b1564(0x1e6),'fpigm':function(_0x2e3d2d,_0x505fd5){return _0x2e3d2d+_0x505fd5;},'fzmbL':_0x3b1564(0x195),'cIIII':function(_0x5f55aa,_0x17f930){return _0x5f55aa+_0x17f930;},'LTIFl':function(_0x462e7e){return _0x462e7e();},'SWdLa':function(_0x2d4b4a){return _0x2d4b4a();}};performance[_0x3b1564(0x1b7)](_0x364f41[_0x3b1564(0x1e5)](_0x11aac2,_0x364f41[_0x3b1564(0x1c6)])),performance['measure'](_0x11aac2,_0x364f41[_0x3b1564(0x174)](_0x11aac2,_0x364f41[_0x3b1564(0x18b)]),_0x364f41[_0x3b1564(0x17a)](_0x11aac2,_0x364f41[_0x3b1564(0x1c6)]));const _0xd42b20={};_0xd42b20['success']=_0x42efe6,_0xd42b20[_0x3b1564(0x164)]=_0x41f5b0,this[_0x3b1564(0x1bc)][_0x11aac2]=Object[_0x3b1564(0x1ca)](_0xd42b20,Object[_0x3b1564(0x1ca)](Object['assign']({'worker':_0x364f41['LTIFl'](getProcessId),'platform':global[_0x3b1564(0x1e9)]&&global[_0x3b1564(0x1e9)][_0x3b1564(0x177)],'testName':_0x364f41[_0x3b1564(0x1ba)](getTestName)},_0x4d4188),this[_0x3b1564(0x1bc)][_0x11aac2]||{}));}}function a80_0x5148(_0x18d650,_0x56d596){const _0x40749c=a80_0x4074();return a80_0x5148=function(_0x514814,_0x1ae54b){_0x514814=_0x514814-0x15c;let _0x70c662=_0x40749c[_0x514814];return _0x70c662;},a80_0x5148(_0x18d650,_0x56d596);}function a80_0x4074(){const _0x21b563=['/error-report-','Xeopn','180OoyyUU','jsonReportDirPath','appendFileSync','CCDmb','name','eTHwl','end','flat','yRVgq','assign','meta','errorReportFileName','bZDPA','BROWSERSTACK_SDK_INSTRUMENTATION','resolve','Error\x20while\x20removing\x20files:\x20','entryTypes','qhOss','.json','qGnUQ','splice','ZkhWk','env','Error\x20in\x20doing\x20csv\x20operations:\x20','_measureEvents','getPerformance','OHdFp','977148kdGwyl','1533040TAmrJa','function','getEventsFromJSON','stopMonitoring','toString','cNMEl','log','fs/promises','xzUZj','-end','error-report','length','__platformCaps','YrWZu','started','11654424gyymSr','jsonReportFileName','aCZlv','all','errorReportDirName','existsSync','iYRDM','TGHcq','tKvHB','pushErrors','../processHelper','XawUv','failure','performance-report','mkdirSync','8674750WqlVTt','NVmjD','<tr><td>','performance-own.html','RkMIP','generateJSON','cwd','</td><td>','finalizePerfMeasures','apply','uZfIC','pushPerfMeasures','../logger','fpigm','buffered','FDNBM','index','utf-8','97105JMjdpP','cIIII','toJSON','WmFcN','util','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','readFileSync','jwPWc','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','getEntries','eventsMap','finalizeErrors','PkCFy','debug','message','/performance-report-','writeFileSync','calculateTimeFromEvents','fzmbL','entries','readFile','_errorEvents','map','SXdwB','EfCri','uaVxc','start','path','-start','weQqp','Error\x20in\x20writing\x20html\x20','nuIhu','stopAndGenerate','readdirSync','NibJO','reduce','Performance\x20report\x20is\x20at\x20','generateHTMLReport','measure','push','errors','Ccgta','disconnect','getCleanedPerfEvents','419400BFiIgS','join','forEach','_observer','_events','SRYxK','duration','exports','slice','testName','stringify','winstonLogger','concat','browserStackCwd','format','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','stack','DGGPC','mark','jsonReportDirName','entryType','SWdLa','parse','details','3447534PkOhqU','isEnabled'];a80_0x4074=function(){return _0x21b563;};return a80_0x4074();}module[a80_0x2a8ef2(0x1ac)]=PerformanceTester;
@@ -1 +1 @@
1
- const a81_0x8c165a=a81_0x31d4;(function(_0x165006,_0x4080b6){const _0x502704=a81_0x31d4,_0x18a543=_0x165006();while(!![]){try{const _0x4762e4=parseInt(_0x502704(0x108))/0x1+parseInt(_0x502704(0x107))/0x2+parseInt(_0x502704(0x116))/0x3+-parseInt(_0x502704(0x112))/0x4+-parseInt(_0x502704(0x109))/0x5+parseInt(_0x502704(0x10d))/0x6*(parseInt(_0x502704(0x100))/0x7)+-parseInt(_0x502704(0x106))/0x8*(-parseInt(_0x502704(0x103))/0x9);if(_0x4762e4===_0x4080b6)break;else _0x18a543['push'](_0x18a543['shift']());}catch(_0x1dbb29){_0x18a543['push'](_0x18a543['shift']());}}}(a81_0x510f,0x4b890));const worker=require('worker_threads'),{fileLogger}=require(a81_0x8c165a(0x10f)),{consoleHolder}=require(a81_0x8c165a(0x113)),globals=require('./globals');function a81_0x510f(){const _0x51d61a=['./logger','pid','BROWSERSTACK_OBSERVABILITY_DEBUG','2255772nNJaYC','./test-observability/constants','true','browserstackTestName','219966anxPlD','][\x20OBSERVABILITY\x20]\x20','427ZAZPcW','CBtXj','threadId','27rYHpHl','getTestName','getGlobal','858848RQlXXZ','359342drMWWB','449313LODUPq','2253660IVVZss','trXLE','toISOString','env','29478FcNcUX','pBCsA'];a81_0x510f=function(){return _0x51d61a;};return a81_0x510f();}function a81_0x31d4(_0x11cd41,_0x481ee0){const _0x510f18=a81_0x510f();return a81_0x31d4=function(_0x31d469,_0x7692e4){_0x31d469=_0x31d469-0xff;let _0x2dbebc=_0x510f18[_0x31d469];return _0x2dbebc;},a81_0x31d4(_0x11cd41,_0x481ee0);}exports['getProcessId']=()=>{const _0x1ee694=a81_0x8c165a;return process[_0x1ee694(0x110)]+'-'+worker[_0x1ee694(0x102)];},exports[a81_0x8c165a(0x104)]=()=>{const _0x5792e0=a81_0x8c165a,_0x5e9b6e={};_0x5e9b6e[_0x5792e0(0x101)]=_0x5792e0(0x115);const _0x217582=_0x5e9b6e;return globals[_0x5792e0(0x105)](_0x217582[_0x5792e0(0x101)]);},exports['sleep']=(_0xd93f6a=0x64)=>new Promise(_0x59739e=>setTimeout(_0x59739e,_0xd93f6a)),exports['debug']=_0x5a780a=>{const _0x388946=a81_0x8c165a,_0x7d02f5={};_0x7d02f5['trXLE']=function(_0x5746e8,_0x17d6bf){return _0x5746e8===_0x17d6bf;},_0x7d02f5[_0x388946(0x10e)]=_0x388946(0x114);const _0x2a5c7e=_0x7d02f5;fileLogger['debug']('['+new Date()[_0x388946(0x10b)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x5a780a),(_0x2a5c7e[_0x388946(0x10a)](process[_0x388946(0x10c)][_0x388946(0x111)],_0x2a5c7e['pBCsA'])||_0x2a5c7e[_0x388946(0x10a)](process[_0x388946(0x10c)][_0x388946(0x111)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x388946(0x10b)]()+_0x388946(0xff)+_0x5a780a+'\x0a');};
1
+ const a81_0x22a4c1=a81_0x39d2;function a81_0x2cc0(){const _0x5679f9=['1406490flGttB','threadId','env','sleep','703846qPxzIM','true','6SYUmrS','VQZao','58540gfjNZx','2387581MwyEeG','5506SOKxpm','getProcessId','][\x20OBSERVABILITY\x20]\x20','72Hjbmlm','browserstackTestName','149casbVb','debug','./test-observability/constants','unfBo','56KvnTlj','log','worker_threads','93980PZRjfA','76GaYOBi','getTestName','BROWSERSTACK_OBSERVABILITY_DEBUG','./globals','./logger','toISOString','22jEtFWh','353151dpdwgi','getGlobal','sFdyS'];a81_0x2cc0=function(){return _0x5679f9;};return a81_0x2cc0();}(function(_0x327088,_0x5321f5){const _0x5acdf8=a81_0x39d2,_0x12216e=_0x327088();while(!![]){try{const _0x34cf2f=parseInt(_0x5acdf8(0x1da))/0x1*(parseInt(_0x5acdf8(0x1f6))/0x2)+parseInt(_0x5acdf8(0x1ec))/0x3+parseInt(_0x5acdf8(0x1e2))/0x4*(-parseInt(_0x5acdf8(0x1e1))/0x5)+-parseInt(_0x5acdf8(0x1f2))/0x6*(-parseInt(_0x5acdf8(0x1f5))/0x7)+parseInt(_0x5acdf8(0x1de))/0x8*(-parseInt(_0x5acdf8(0x1e9))/0x9)+-parseInt(_0x5acdf8(0x1f4))/0xa*(-parseInt(_0x5acdf8(0x1e8))/0xb)+parseInt(_0x5acdf8(0x1d8))/0xc*(-parseInt(_0x5acdf8(0x1f0))/0xd);if(_0x34cf2f===_0x5321f5)break;else _0x12216e['push'](_0x12216e['shift']());}catch(_0x1a1a8d){_0x12216e['push'](_0x12216e['shift']());}}}(a81_0x2cc0,0x432e1));function a81_0x39d2(_0x173738,_0x5260df){const _0x2cc08e=a81_0x2cc0();return a81_0x39d2=function(_0x39d2b4,_0x174bdd){_0x39d2b4=_0x39d2b4-0x1d8;let _0x3a3bcf=_0x2cc08e[_0x39d2b4];return _0x3a3bcf;},a81_0x39d2(_0x173738,_0x5260df);}const worker=require(a81_0x22a4c1(0x1e0)),{fileLogger}=require(a81_0x22a4c1(0x1e6)),{consoleHolder}=require(a81_0x22a4c1(0x1dc)),globals=require(a81_0x22a4c1(0x1e5));exports[a81_0x22a4c1(0x1f7)]=()=>{const _0x4794d7=a81_0x22a4c1;return process['pid']+'-'+worker[_0x4794d7(0x1ed)];},exports[a81_0x22a4c1(0x1e3)]=()=>{const _0x35fe09=a81_0x22a4c1,_0x561217={};_0x561217[_0x35fe09(0x1dd)]=_0x35fe09(0x1d9);const _0x3237db=_0x561217;return globals[_0x35fe09(0x1ea)](_0x3237db[_0x35fe09(0x1dd)]);},exports[a81_0x22a4c1(0x1ef)]=(_0x280f00=0x64)=>new Promise(_0x495cd0=>setTimeout(_0x495cd0,_0x280f00)),exports['debug']=_0x3db40a=>{const _0xbcd298=a81_0x22a4c1,_0x5be7ed={};_0x5be7ed['VQZao']=function(_0x157d9c,_0x4e5e4f){return _0x157d9c===_0x4e5e4f;},_0x5be7ed[_0xbcd298(0x1eb)]=_0xbcd298(0x1f1);const _0x274f5f=_0x5be7ed;fileLogger[_0xbcd298(0x1db)]('['+new Date()[_0xbcd298(0x1e7)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x3db40a),(_0x274f5f[_0xbcd298(0x1f3)](process[_0xbcd298(0x1ee)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x274f5f[_0xbcd298(0x1eb)])||_0x274f5f['VQZao'](process['env'][_0xbcd298(0x1e4)],'1'))&&consoleHolder[_0xbcd298(0x1df)]('\x0a['+new Date()[_0xbcd298(0x1e7)]()+_0xbcd298(0x1f8)+_0x3db40a+'\x0a');};
@@ -1 +1 @@
1
- function a82_0x2aad(){const _0x24f3ab=['now','iTeJn','https','duration_ms','once','1158993KyzpnK','end','hostname','sPiQs','url','spy','9todHZT','http','slice','2zsPhDS','exports','restore','call','2485wQieZx','status_code','1125325sqiSZC','monkeypatch','QlWKA','ytRhh','3627180ohlOmc','yAzFX','forEach','statusCode','DWVUW','royAP','request','3342UtiVGf','vEzvD','39335BpgGfi','host','1421648TKEgjw','lfhjz','99NlxiHs','socket','removeListener','9314830qXqEYU','response','pathname','path','536SBbAUE','amqBK','method','unpatch','TmphT','assign','headers','error'];a82_0x2aad=function(){return _0x24f3ab;};return a82_0x2aad();}function a82_0x2e7b(_0x98f8b5,_0x3b7618){const _0x2aadc5=a82_0x2aad();return a82_0x2e7b=function(_0x2e7b5c,_0x20734a){_0x2e7b5c=_0x2e7b5c-0x1e6;let _0x48acf5=_0x2aadc5[_0x2e7b5c];return _0x48acf5;},a82_0x2e7b(_0x98f8b5,_0x3b7618);}const a82_0x423e5e=a82_0x2e7b;(function(_0x4ad68f,_0x39443a){const _0x26b691=a82_0x2e7b,_0x420cb0=_0x4ad68f();while(!![]){try{const _0x52577e=parseInt(_0x26b691(0x1f7))/0x1*(parseInt(_0x26b691(0x1f1))/0x2)+parseInt(_0x26b691(0x1e8))/0x3+-parseInt(_0x26b691(0x20f))/0x4*(-parseInt(_0x26b691(0x204))/0x5)+parseInt(_0x26b691(0x202))/0x6*(-parseInt(_0x26b691(0x1f5))/0x7)+parseInt(_0x26b691(0x206))/0x8+-parseInt(_0x26b691(0x1ee))/0x9*(-parseInt(_0x26b691(0x20b))/0xa)+-parseInt(_0x26b691(0x208))/0xb*(parseInt(_0x26b691(0x1fb))/0xc);if(_0x52577e===_0x39443a)break;else _0x420cb0['push'](_0x420cb0['shift']());}catch(_0x56cb62){_0x420cb0['push'](_0x420cb0['shift']());}}}(a82_0x2aad,0xb8ca7));const http=require(a82_0x423e5e(0x1ef)),https=require(a82_0x423e5e(0x219)),monkeypatch=require(a82_0x423e5e(0x1f8));function spy(_0x4f5e56){const _0x4e3035=a82_0x423e5e,_0x1eb929={'BOZiB':function(_0xbbcbc7,_0x4ddf4a){return _0xbbcbc7-_0x4ddf4a;},'GKipu':function(_0x1ee42c,_0x58a347,_0x3679a5){return _0x1ee42c(_0x58a347,_0x3679a5);},'lfhjz':_0x4e3035(0x216),'TrTnk':function(_0x147c21,..._0x4d11e7){return _0x147c21(..._0x4d11e7);},'EagSD':function(_0x55b829,_0x4b6423){return _0x55b829 instanceof _0x4b6423;},'iTeJn':function(_0x4e9458,_0x53475a){return _0x4e9458===_0x53475a;},'TmphT':'object','royAP':function(_0x4e342b,_0x3ab81a,_0x5bf643){return _0x4e342b(_0x3ab81a,_0x5bf643);},'yAzFX':_0x4e3035(0x20c),'WniAd':_0x4e3035(0x209),'sPiQs':function(_0x41e493,_0x46454d,_0x55856f,_0x54b5be){return _0x41e493(_0x46454d,_0x55856f,_0x54b5be);},'DWVUW':_0x4e3035(0x1e9),'vEzvD':'request'},_0x43c3fa=function(){const _0x1e7c0f=_0x4e3035,_0x122cf2={'ytRhh':function(_0x213676,_0x44c4ca){return _0x1eb929['EagSD'](_0x213676,_0x44c4ca);},'QlWKA':function(_0x4c4936,_0x47d093){const _0x2fcbca=a82_0x2e7b;return _0x1eb929[_0x2fcbca(0x218)](_0x4c4936,_0x47d093);},'AUDKc':_0x1eb929[_0x1e7c0f(0x213)],'amqBK':function(_0x543473,_0x5d66c6,_0x470644){const _0x2e1471=_0x1e7c0f;return _0x1eb929[_0x2e1471(0x200)](_0x543473,_0x5d66c6,_0x470644);},'PyKth':_0x1eb929['lfhjz']},_0x41e5ea=arguments[0x0],_0x8019d4=Array['prototype'][_0x1e7c0f(0x1f0)][_0x1e7c0f(0x1f4)](arguments,0x1),_0x145196=_0x41e5ea['apply'](this,_0x8019d4);let _0x56846f=Date[_0x1e7c0f(0x217)](),_0x2bdca4;const _0x4a96ee={};_0x8019d4[_0x1e7c0f(0x1fd)](_0x190042=>{const _0x231b4c=_0x1e7c0f;if(_0x122cf2[_0x231b4c(0x1fa)](_0x190042,URL)){const _0x4733d2={};_0x4733d2[_0x231b4c(0x1ec)]=_0x190042,Object[_0x231b4c(0x214)](_0x4a96ee,_0x4733d2);}else _0x122cf2[_0x231b4c(0x1f9)](typeof _0x190042,_0x122cf2['AUDKc'])&&Object[_0x231b4c(0x214)](_0x4a96ee,_0x190042);});const _0x65e596=_0x43f9f7=>{const _0x5473a4=_0x1e7c0f,_0x19a8e2={};_0x19a8e2[_0x5473a4(0x205)]=_0x4a96ee[_0x5473a4(0x205)]||_0x4a96ee[_0x5473a4(0x1ea)]||_0x4a96ee[_0x5473a4(0x1ec)]&&(_0x4a96ee['url'][_0x5473a4(0x205)]||_0x4a96ee[_0x5473a4(0x1ec)][_0x5473a4(0x1ea)]),_0x19a8e2[_0x5473a4(0x20e)]=_0x4a96ee[_0x5473a4(0x20e)]||_0x4a96ee[_0x5473a4(0x1ec)]&&_0x4a96ee[_0x5473a4(0x1ec)][_0x5473a4(0x20d)],_0x19a8e2[_0x5473a4(0x211)]=_0x4a96ee[_0x5473a4(0x211)],_0x19a8e2[_0x5473a4(0x215)]=_0x4a96ee[_0x5473a4(0x215)],_0x122cf2[_0x5473a4(0x210)](_0x4f5e56,_0x43f9f7,_0x19a8e2);};return _0x145196[_0x1e7c0f(0x1e7)](_0x1eb929[_0x1e7c0f(0x1fc)],_0x524048=>{const _0x3cc3d1=_0x1e7c0f,_0x37113b=_0x1eb929['BOZiB'](Date['now'](),_0x56846f),_0x3767e5={};_0x3767e5[_0x3cc3d1(0x1ea)]=_0x4a96ee['host']||_0x4a96ee[_0x3cc3d1(0x1ea)]||_0x4a96ee[_0x3cc3d1(0x1ec)]&&(_0x4a96ee['url'][_0x3cc3d1(0x205)]||_0x4a96ee['url']['hostname']),_0x3767e5['path']=_0x4a96ee[_0x3cc3d1(0x20e)]||_0x4a96ee[_0x3cc3d1(0x1ec)]&&_0x4a96ee[_0x3cc3d1(0x1ec)][_0x3cc3d1(0x20d)],_0x3767e5[_0x3cc3d1(0x211)]=_0x4a96ee['method'],_0x3767e5['headers']=_0x4a96ee[_0x3cc3d1(0x215)],_0x3767e5[_0x3cc3d1(0x1f6)]=_0x524048[_0x3cc3d1(0x1fe)],_0x3767e5[_0x3cc3d1(0x1e6)]=_0x37113b,_0x1eb929['GKipu'](_0x4f5e56,null,_0x3767e5),_0x2bdca4[_0x3cc3d1(0x20a)](_0x1eb929[_0x3cc3d1(0x207)],_0x65e596);}),_0x145196['on'](_0x1eb929['WniAd'],_0xbc407f=>{const _0x4903dc=_0x1e7c0f;_0x2bdca4=_0xbc407f,_0xbc407f[_0x4903dc(0x1e7)](_0x122cf2['PyKth'],_0x65e596);}),_0x1eb929[_0x1e7c0f(0x1eb)](monkeypatch,_0x145196,_0x1eb929[_0x1e7c0f(0x1ff)],(_0x226285,..._0x4731c4)=>{const _0x3d425b=_0x1e7c0f;_0x56846f=Date[_0x3d425b(0x217)](),_0x1eb929['TrTnk'](_0x226285,..._0x4731c4);}),_0x145196;};_0x1eb929['sPiQs'](monkeypatch,http,_0x1eb929[_0x4e3035(0x203)],_0x43c3fa),_0x1eb929[_0x4e3035(0x1eb)](monkeypatch,https,_0x1eb929[_0x4e3035(0x203)],_0x43c3fa);}function restore(){const _0x47a28d=a82_0x423e5e;http[_0x47a28d(0x201)]['unpatch'](),https[_0x47a28d(0x201)][_0x47a28d(0x212)]();}const a82_0x72be9f={};a82_0x72be9f[a82_0x423e5e(0x1ed)]=spy,a82_0x72be9f[a82_0x423e5e(0x1f3)]=restore,module[a82_0x423e5e(0x1f2)]=a82_0x72be9f;
1
+ const a82_0x43e3c0=a82_0x16f2;function a82_0x5159(){const _0x5d43d4=['haMBS','28211410ywHDlp','once','end','12262908ufUMiP','object','request','path','msCNg','status_code','TgAWV','hostname','eJUWO','lrfOi','677856kxKyPH','2136819SzvuMr','fBhbU','11pHEWZZ','3655832qCfjuU','tIGXC','statusCode','https','method','host','apply','HILjj','assign','1mEsGqZ','yLtAH','now','monkeypatch','unpatch','error','duration_ms','url','pathname','6BQuOen','ZGRCU','slice','3645510wSYETQ','ljbdF','YvXbe','9bbXikd','2919972kLQmUD','dznjw','eXAls','exports','headers','TCqFh'];a82_0x5159=function(){return _0x5d43d4;};return a82_0x5159();}(function(_0x19d7b3,_0x5083f6){const _0x2c858e=a82_0x16f2,_0x3de368=_0x19d7b3();while(!![]){try{const _0x1269fb=-parseInt(_0x2c858e(0x1bb))/0x1*(parseInt(_0x2c858e(0x1df))/0x2)+parseInt(_0x2c858e(0x1e0))/0x3+-parseInt(_0x2c858e(0x1cb))/0x4+-parseInt(_0x2c858e(0x1c7))/0x5*(-parseInt(_0x2c858e(0x1c4))/0x6)+-parseInt(_0x2c858e(0x1d5))/0x7+parseInt(_0x2c858e(0x1b2))/0x8*(-parseInt(_0x2c858e(0x1ca))/0x9)+parseInt(_0x2c858e(0x1d2))/0xa*(parseInt(_0x2c858e(0x1b1))/0xb);if(_0x1269fb===_0x5083f6)break;else _0x3de368['push'](_0x3de368['shift']());}catch(_0x4ab1fb){_0x3de368['push'](_0x3de368['shift']());}}}(a82_0x5159,0xf06c4));const http=require('http'),https=require(a82_0x43e3c0(0x1b5)),monkeypatch=require(a82_0x43e3c0(0x1be));function spy(_0x44b8b2){const _0x515ff8=a82_0x43e3c0,_0x302863={'qbIYL':function(_0x155d38,_0x555c69){return _0x155d38 instanceof _0x555c69;},'peVhP':function(_0x2f293a,_0x1a2944){return _0x2f293a===_0x1a2944;},'YvXbe':_0x515ff8(0x1d6),'yLtAH':function(_0x43aa57,..._0x3f4521){return _0x43aa57(..._0x3f4521);},'eXAls':function(_0x199232,_0x564258,_0x107f68){return _0x199232(_0x564258,_0x107f68);},'TgAWV':function(_0x25ffd8,_0x43da41){return _0x25ffd8-_0x43da41;},'ZGRCU':function(_0x10a58a,_0x20967e,_0x2814d9){return _0x10a58a(_0x20967e,_0x2814d9);},'lrfOi':_0x515ff8(0x1c0),'haMBS':'response','tIGXC':'socket','ljbdF':function(_0x5eac5f,_0x21e025,_0x8e9b23,_0x203a9d){return _0x5eac5f(_0x21e025,_0x8e9b23,_0x203a9d);},'eJUWO':_0x515ff8(0x1d4),'msCNg':function(_0x22b0ec,_0x53cffe,_0x3e3c35,_0x26b77e){return _0x22b0ec(_0x53cffe,_0x3e3c35,_0x26b77e);},'HILjj':'request'},_0xb2001c=function(){const _0xc9139a=_0x515ff8,_0x4d6d5e={'TCqFh':function(_0x414df0,_0x1392c0,_0x41f091){const _0x4d188f=a82_0x16f2;return _0x302863[_0x4d188f(0x1cd)](_0x414df0,_0x1392c0,_0x41f091);},'fBhbU':function(_0x2fb042,_0x18a33d){const _0x38367d=a82_0x16f2;return _0x302863[_0x38367d(0x1db)](_0x2fb042,_0x18a33d);},'hQFRc':function(_0x4d5194,_0xcb7c58,_0x47d7b0){const _0x2dea15=a82_0x16f2;return _0x302863[_0x2dea15(0x1c5)](_0x4d5194,_0xcb7c58,_0x47d7b0);},'dznjw':_0x302863[_0xc9139a(0x1de)]},_0x44ab9b=arguments[0x0],_0x526fb6=Array['prototype'][_0xc9139a(0x1c6)]['call'](arguments,0x1),_0x1357d1=_0x44ab9b[_0xc9139a(0x1b8)](this,_0x526fb6);let _0x141cdd=Date['now'](),_0x3341b3;const _0x4f22fc={};_0x526fb6['forEach'](_0x501a71=>{const _0x222ce7=_0xc9139a;if(_0x302863['qbIYL'](_0x501a71,URL)){const _0x1efe0f={};_0x1efe0f[_0x222ce7(0x1c2)]=_0x501a71,Object[_0x222ce7(0x1ba)](_0x4f22fc,_0x1efe0f);}else _0x302863['peVhP'](typeof _0x501a71,_0x302863[_0x222ce7(0x1c9)])&&Object[_0x222ce7(0x1ba)](_0x4f22fc,_0x501a71);});const _0x4b86ba=_0x35d1ef=>{const _0x21f644=_0xc9139a,_0xa7bf9b={};_0xa7bf9b[_0x21f644(0x1b7)]=_0x4f22fc[_0x21f644(0x1b7)]||_0x4f22fc[_0x21f644(0x1dc)]||_0x4f22fc[_0x21f644(0x1c2)]&&(_0x4f22fc[_0x21f644(0x1c2)][_0x21f644(0x1b7)]||_0x4f22fc['url'][_0x21f644(0x1dc)]),_0xa7bf9b[_0x21f644(0x1d8)]=_0x4f22fc[_0x21f644(0x1d8)]||_0x4f22fc[_0x21f644(0x1c2)]&&_0x4f22fc[_0x21f644(0x1c2)][_0x21f644(0x1c3)],_0xa7bf9b[_0x21f644(0x1b6)]=_0x4f22fc[_0x21f644(0x1b6)],_0xa7bf9b[_0x21f644(0x1cf)]=_0x4f22fc['headers'],_0x4d6d5e[_0x21f644(0x1d0)](_0x44b8b2,_0x35d1ef,_0xa7bf9b);};return _0x1357d1[_0xc9139a(0x1d3)](_0x302863[_0xc9139a(0x1d1)],_0x111695=>{const _0xa81beb=_0xc9139a,_0x3ca5f0=_0x4d6d5e[_0xa81beb(0x1b0)](Date[_0xa81beb(0x1bd)](),_0x141cdd),_0x31eb8c={};_0x31eb8c[_0xa81beb(0x1dc)]=_0x4f22fc[_0xa81beb(0x1b7)]||_0x4f22fc[_0xa81beb(0x1dc)]||_0x4f22fc[_0xa81beb(0x1c2)]&&(_0x4f22fc[_0xa81beb(0x1c2)]['host']||_0x4f22fc[_0xa81beb(0x1c2)][_0xa81beb(0x1dc)]),_0x31eb8c[_0xa81beb(0x1d8)]=_0x4f22fc[_0xa81beb(0x1d8)]||_0x4f22fc['url']&&_0x4f22fc[_0xa81beb(0x1c2)][_0xa81beb(0x1c3)],_0x31eb8c[_0xa81beb(0x1b6)]=_0x4f22fc[_0xa81beb(0x1b6)],_0x31eb8c['headers']=_0x4f22fc[_0xa81beb(0x1cf)],_0x31eb8c[_0xa81beb(0x1da)]=_0x111695[_0xa81beb(0x1b4)],_0x31eb8c[_0xa81beb(0x1c1)]=_0x3ca5f0,_0x4d6d5e['hQFRc'](_0x44b8b2,null,_0x31eb8c),_0x3341b3['removeListener'](_0x4d6d5e[_0xa81beb(0x1cc)],_0x4b86ba);}),_0x1357d1['on'](_0x302863[_0xc9139a(0x1b3)],_0x49c865=>{const _0x577120=_0xc9139a;_0x3341b3=_0x49c865,_0x49c865[_0x577120(0x1d3)](_0x4d6d5e[_0x577120(0x1cc)],_0x4b86ba);}),_0x302863[_0xc9139a(0x1c8)](monkeypatch,_0x1357d1,_0x302863[_0xc9139a(0x1dd)],(_0x260aba,..._0x45854c)=>{const _0x18d81b=_0xc9139a;_0x141cdd=Date[_0x18d81b(0x1bd)](),_0x302863[_0x18d81b(0x1bc)](_0x260aba,..._0x45854c);}),_0x1357d1;};_0x302863['msCNg'](monkeypatch,http,_0x302863[_0x515ff8(0x1b9)],_0xb2001c),_0x302863[_0x515ff8(0x1d9)](monkeypatch,https,_0x302863[_0x515ff8(0x1b9)],_0xb2001c);}function restore(){const _0x176266=a82_0x43e3c0;http[_0x176266(0x1d7)]['unpatch'](),https[_0x176266(0x1d7)][_0x176266(0x1bf)]();}function a82_0x16f2(_0x3565ab,_0x32ed3e){const _0x5159d8=a82_0x5159();return a82_0x16f2=function(_0x16f291,_0x4d7d65){_0x16f291=_0x16f291-0x1b0;let _0x2b7a1f=_0x5159d8[_0x16f291];return _0x2b7a1f;},a82_0x16f2(_0x3565ab,_0x32ed3e);}const a82_0x2beb1f={};a82_0x2beb1f['spy']=spy,a82_0x2beb1f['restore']=restore,module[a82_0x43e3c0(0x1ce)]=a82_0x2beb1f;
@@ -1 +1 @@
1
- function a83_0x5632(_0x58f641,_0x47e60a){const _0x1c4a8f=a83_0x1c4a();return a83_0x5632=function(_0x563283,_0x5f1cba){_0x563283=_0x563283-0x16a;let _0x407d4f=_0x1c4a8f[_0x563283];return _0x407d4f;},a83_0x5632(_0x58f641,_0x47e60a);}const a83_0x2d33ec=a83_0x5632;(function(_0x1a4980,_0x38dd99){const _0x44889c=a83_0x5632,_0x5d4061=_0x1a4980();while(!![]){try{const _0x5c2028=parseInt(_0x44889c(0x17f))/0x1*(-parseInt(_0x44889c(0x17c))/0x2)+parseInt(_0x44889c(0x179))/0x3*(parseInt(_0x44889c(0x16c))/0x4)+-parseInt(_0x44889c(0x17e))/0x5*(parseInt(_0x44889c(0x18b))/0x6)+parseInt(_0x44889c(0x173))/0x7*(-parseInt(_0x44889c(0x180))/0x8)+parseInt(_0x44889c(0x18a))/0x9*(-parseInt(_0x44889c(0x17a))/0xa)+-parseInt(_0x44889c(0x187))/0xb+parseInt(_0x44889c(0x172))/0xc;if(_0x5c2028===_0x38dd99)break;else _0x5d4061['push'](_0x5d4061['shift']());}catch(_0x36d607){_0x5d4061['push'](_0x5d4061['shift']());}}}(a83_0x1c4a,0x4a746));const PerformanceTester=require(a83_0x2d33ec(0x170)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');function a83_0x1c4a(){const _0x1ce805=['keepAliveMsecs','hasOwnProperty','143385opzdNW','dHMfW','https','45MGvpIT','324UfAhxS','measureWrapper','KEEP_ALIVE','http','globalAgent','8CanNPc','XBvOG','https:','tmgIW','./performance/performance-tester','keepAlive','19090032BdSbCO','3902836scLBdu','bhYGq','agent','noyvj','ESigK','Agent','615684tlqKnT','784390FhJmaQ','krUhZ','2780IdoQnL','PPInZ','32785JMJjcJ','273scWgnS','8ZbXGBB','yWeBK','eJchC','call','request'];a83_0x1c4a=function(){return _0x1ce805;};return a83_0x1c4a();}module['exports']=PerformanceTester[a83_0x2d33ec(0x18c)](PerformanceEvents[a83_0x2d33ec(0x18d)],function(){const _0x54f6d6=a83_0x2d33ec,_0x3c33c8={'dHMfW':function(_0x433f4e,_0x26cea5){return _0x433f4e===_0x26cea5;},'PPInZ':_0x54f6d6(0x16e),'ESigK':_0x54f6d6(0x175),'tmgIW':function(_0x28fa76,_0x46c17b,_0x34848c){return _0x28fa76(_0x46c17b,_0x34848c);},'krUhZ':function(_0x32c93e,_0x4f54f3,_0x5de313){return _0x32c93e(_0x4f54f3,_0x5de313);},'yWeBK':function(_0x511d1b,_0x54ea85){return _0x511d1b(_0x54ea85);},'noyvj':_0x54f6d6(0x16a),'eJchC':_0x54f6d6(0x189),'XBvOG':function(_0x17bd5e,_0x6ca5a7){return _0x17bd5e*_0x6ca5a7;},'bhYGq':_0x54f6d6(0x171)},_0x5709ad=_0x3c33c8[_0x54f6d6(0x181)](require,_0x3c33c8[_0x54f6d6(0x176)]),_0x4d1938=_0x3c33c8[_0x54f6d6(0x181)](require,_0x3c33c8[_0x54f6d6(0x182)]),_0x118309=_0x3c33c8[_0x54f6d6(0x16d)](0x1e,0x3e8);if(_0x5709ad[_0x54f6d6(0x16b)]&&Object['prototype'][_0x54f6d6(0x186)][_0x54f6d6(0x183)](_0x5709ad[_0x54f6d6(0x16b)],_0x3c33c8[_0x54f6d6(0x174)]))_0x5709ad[_0x54f6d6(0x16b)]['keepAlive']=!![],_0x4d1938[_0x54f6d6(0x16b)][_0x54f6d6(0x171)]=!![],_0x5709ad[_0x54f6d6(0x16b)][_0x54f6d6(0x185)]=_0x118309,_0x4d1938[_0x54f6d6(0x16b)][_0x54f6d6(0x185)]=_0x118309;else{const _0x3fceb2={};_0x3fceb2[_0x54f6d6(0x171)]=!![],_0x3fceb2[_0x54f6d6(0x185)]=_0x118309;const _0x52e46a=new _0x5709ad[(_0x54f6d6(0x178))](_0x3fceb2),_0x3ae59b={};_0x3ae59b['keepAlive']=!![],_0x3ae59b[_0x54f6d6(0x185)]=_0x118309;const _0x2db255=new _0x4d1938[(_0x54f6d6(0x178))](_0x3ae59b),_0x3583f0=_0x5709ad['request'],_0x538a3c=_0x4d1938[_0x54f6d6(0x184)];_0x5709ad[_0x54f6d6(0x184)]=function(_0x334cd5,_0x2322c0){const _0x376a28=_0x54f6d6;if(_0x3c33c8[_0x376a28(0x188)](_0x334cd5['protocol'],_0x3c33c8[_0x376a28(0x17d)]))return _0x334cd5[_0x3c33c8[_0x376a28(0x177)]]=_0x2db255,_0x3c33c8[_0x376a28(0x16f)](_0x538a3c,_0x334cd5,_0x2322c0);return _0x334cd5[_0x3c33c8[_0x376a28(0x177)]]=_0x52e46a,_0x3c33c8[_0x376a28(0x17b)](_0x3583f0,_0x334cd5,_0x2322c0);};}});
1
+ const a83_0x3f7c28=a83_0x56db;(function(_0x38a598,_0x108393){const _0x4689f0=a83_0x56db,_0x37e27d=_0x38a598();while(!![]){try{const _0x5e5d0d=-parseInt(_0x4689f0(0x1c9))/0x1*(parseInt(_0x4689f0(0x1bf))/0x2)+-parseInt(_0x4689f0(0x1b2))/0x3+parseInt(_0x4689f0(0x1b5))/0x4+-parseInt(_0x4689f0(0x1ad))/0x5*(-parseInt(_0x4689f0(0x1c0))/0x6)+parseInt(_0x4689f0(0x1ac))/0x7*(parseInt(_0x4689f0(0x1c6))/0x8)+-parseInt(_0x4689f0(0x1b8))/0x9+-parseInt(_0x4689f0(0x1cd))/0xa;if(_0x5e5d0d===_0x108393)break;else _0x37e27d['push'](_0x37e27d['shift']());}catch(_0x3e1867){_0x37e27d['push'](_0x37e27d['shift']());}}}(a83_0x461b,0xe53f0));function a83_0x461b(){const _0x545a9b=['10717zlzgai','5065395giVtsF','keepAlive','ATnyn','Agent','exports','3978288zmelOO','http','qvCeJ','5395516MXpgio','GBvqG','https:','2425905XXjxEX','keepAliveMsecs','call','whqza','agent','./performance/constants','XcFkt','22298wMOvEZ','6Bpifcm','protocol','./performance/performance-tester','fHOuY','globalAgent','request','9176eZhIBX','measureWrapper','prototype','59RcZeVI','hasOwnProperty','qFgmp','https','9255910jtOCBQ'];a83_0x461b=function(){return _0x545a9b;};return a83_0x461b();}const PerformanceTester=require(a83_0x3f7c28(0x1c2)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x3f7c28(0x1bd));function a83_0x56db(_0x63c39e,_0x612018){const _0x461b2e=a83_0x461b();return a83_0x56db=function(_0x56db1b,_0x5e22f0){_0x56db1b=_0x56db1b-0x1ac;let _0x2dcd95=_0x461b2e[_0x56db1b];return _0x2dcd95;},a83_0x56db(_0x63c39e,_0x612018);}module[a83_0x3f7c28(0x1b1)]=PerformanceTester[a83_0x3f7c28(0x1c7)](PerformanceEvents['KEEP_ALIVE'],function(){const _0x419a8f=a83_0x3f7c28,_0x2a40f7={'yMKFZ':function(_0x535cc7,_0x2f5831){return _0x535cc7===_0x2f5831;},'XcFkt':_0x419a8f(0x1b7),'GBvqG':_0x419a8f(0x1bc),'qvCeJ':function(_0xe4eaf9,_0x32d066,_0x3d9eaa){return _0xe4eaf9(_0x32d066,_0x3d9eaa);},'qFgmp':function(_0x37d754,_0x20f932){return _0x37d754(_0x20f932);},'ATnyn':_0x419a8f(0x1b3),'xsFUD':function(_0x3bbea1,_0xe9c39f){return _0x3bbea1(_0xe9c39f);},'fHOuY':_0x419a8f(0x1cc),'whqza':function(_0x500c0c,_0x5bb24a){return _0x500c0c*_0x5bb24a;},'dXkDY':_0x419a8f(0x1ae)},_0x54e6aa=_0x2a40f7[_0x419a8f(0x1cb)](require,_0x2a40f7[_0x419a8f(0x1af)]),_0x4924d9=_0x2a40f7['xsFUD'](require,_0x2a40f7[_0x419a8f(0x1c3)]),_0x1a4dc5=_0x2a40f7[_0x419a8f(0x1bb)](0x1e,0x3e8);if(_0x54e6aa[_0x419a8f(0x1c4)]&&Object[_0x419a8f(0x1c8)][_0x419a8f(0x1ca)][_0x419a8f(0x1ba)](_0x54e6aa[_0x419a8f(0x1c4)],_0x2a40f7['dXkDY']))_0x54e6aa[_0x419a8f(0x1c4)]['keepAlive']=!![],_0x4924d9[_0x419a8f(0x1c4)][_0x419a8f(0x1ae)]=!![],_0x54e6aa[_0x419a8f(0x1c4)][_0x419a8f(0x1b9)]=_0x1a4dc5,_0x4924d9[_0x419a8f(0x1c4)][_0x419a8f(0x1b9)]=_0x1a4dc5;else{const _0x52881f={};_0x52881f['keepAlive']=!![],_0x52881f[_0x419a8f(0x1b9)]=_0x1a4dc5;const _0xbd26b4=new _0x54e6aa[(_0x419a8f(0x1b0))](_0x52881f),_0x4d8963={};_0x4d8963['keepAlive']=!![],_0x4d8963['keepAliveMsecs']=_0x1a4dc5;const _0x5307d7=new _0x4924d9['Agent'](_0x4d8963),_0x5b8531=_0x54e6aa[_0x419a8f(0x1c5)],_0x71ca05=_0x4924d9['request'];_0x54e6aa['request']=function(_0x217e3c,_0x2cc3d3){const _0x2fa642=_0x419a8f;if(_0x2a40f7['yMKFZ'](_0x217e3c[_0x2fa642(0x1c1)],_0x2a40f7[_0x2fa642(0x1be)]))return _0x217e3c[_0x2a40f7[_0x2fa642(0x1b6)]]=_0x5307d7,_0x2a40f7['qvCeJ'](_0x71ca05,_0x217e3c,_0x2cc3d3);return _0x217e3c[_0x2a40f7[_0x2fa642(0x1b6)]]=_0xbd26b4,_0x2a40f7[_0x2fa642(0x1b4)](_0x5b8531,_0x217e3c,_0x2cc3d3);};}});
@@ -1 +1 @@
1
- var a84_0x206cb9=a84_0x5ee6;(function(_0x8992c4,_0x1a309d){var _0x1746c=a84_0x5ee6,_0x2c442c=_0x8992c4();while(!![]){try{var _0x471721=parseInt(_0x1746c(0x12e))/0x1*(-parseInt(_0x1746c(0x135))/0x2)+parseInt(_0x1746c(0x142))/0x3*(-parseInt(_0x1746c(0x13c))/0x4)+parseInt(_0x1746c(0x12f))/0x5+-parseInt(_0x1746c(0x13b))/0x6*(parseInt(_0x1746c(0x12b))/0x7)+parseInt(_0x1746c(0x140))/0x8*(-parseInt(_0x1746c(0x131))/0x9)+-parseInt(_0x1746c(0x13f))/0xa+parseInt(_0x1746c(0x143))/0xb;if(_0x471721===_0x1a309d)break;else _0x2c442c['push'](_0x2c442c['shift']());}catch(_0x1320db){_0x2c442c['push'](_0x2c442c['shift']());}}}(a84_0xac12,0x5954d));function a84_0x5ee6(_0x5e4219,_0x4d7a3d){var _0xac125f=a84_0xac12();return a84_0x5ee6=function(_0x5ee65c,_0x2f1f78){_0x5ee65c=_0x5ee65c-0x12a;var _0x3f3131=_0xac125f[_0x5ee65c];return _0x3f3131;},a84_0x5ee6(_0x5e4219,_0x4d7a3d);}var a84_0x54d10a={};a84_0x54d10a['PLAYWRIGHT']='Playwright',a84_0x54d10a[a84_0x206cb9(0x138)]=a84_0x206cb9(0x136),a84_0x54d10a[a84_0x206cb9(0x137)]=a84_0x206cb9(0x12d),a84_0x54d10a[a84_0x206cb9(0x133)]=a84_0x206cb9(0x139),a84_0x54d10a[a84_0x206cb9(0x13d)]=a84_0x206cb9(0x130),a84_0x54d10a[a84_0x206cb9(0x132)]='cucumber',module[a84_0x206cb9(0x13a)]={'consoleHolder':Object[a84_0x206cb9(0x13e)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x206cb9(0x12a),'OBSERVABILITY_UPLOAD_API_URL':a84_0x206cb9(0x134),'EVENT_ENDPOINT':a84_0x206cb9(0x12c),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x206cb9(0x144),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x206cb9(0x141),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a84_0x54d10a};function a84_0xac12(){var _0x14208a=['91044VaOChc','JEST','assign','2534140eeRBpd','8yoLBxb','upload-attachments','96oWlylg','30544635PtqJHU','api/v1/screenshots','https://collector-observability.browserstack.com','171745KQLQog','api/v1/event','codeceptjs','18wFxQlK','1575815hJsKoM','jest','3720312rqxHLd','CUCUMBER','CODECEPT_CUCUMBER','https://upload-observability.browserstack.com','68822PmWghU','mocha','CODECEPT','MOCHA','codeceptjs-cucumber','exports','174JGIOzU'];a84_0xac12=function(){return _0x14208a;};return a84_0xac12();}
1
+ var a84_0x4909cc=a84_0x32f5;(function(_0x5a653f,_0x5cbe6b){var _0xbdf4c9=a84_0x32f5,_0x13609a=_0x5a653f();while(!![]){try{var _0x37d692=-parseInt(_0xbdf4c9(0x1ce))/0x1+parseInt(_0xbdf4c9(0x1c2))/0x2*(-parseInt(_0xbdf4c9(0x1c5))/0x3)+parseInt(_0xbdf4c9(0x1bf))/0x4*(parseInt(_0xbdf4c9(0x1cc))/0x5)+parseInt(_0xbdf4c9(0x1c9))/0x6+parseInt(_0xbdf4c9(0x1c1))/0x7+parseInt(_0xbdf4c9(0x1c4))/0x8*(-parseInt(_0xbdf4c9(0x1cf))/0x9)+parseInt(_0xbdf4c9(0x1bb))/0xa;if(_0x37d692===_0x5cbe6b)break;else _0x13609a['push'](_0x13609a['shift']());}catch(_0x27df9a){_0x13609a['push'](_0x13609a['shift']());}}}(a84_0x2179,0xc56a1));function a84_0x32f5(_0x371db1,_0x35e79c){var _0x2179ab=a84_0x2179();return a84_0x32f5=function(_0x32f5fd,_0x13812d){_0x32f5fd=_0x32f5fd-0x1b9;var _0x5cb056=_0x2179ab[_0x32f5fd];return _0x5cb056;},a84_0x32f5(_0x371db1,_0x35e79c);}var a84_0x10fc1c={};function a84_0x2179(){var _0x1006e3=['CODECEPT_CUCUMBER','Playwright','1044fgvGDI','cucumber','4457936laMSPr','143854QzIHAe','api/v1/screenshots','12910864lHUSGR','54HyHHyf','https://upload-observability.browserstack.com','upload-attachments','jest','6919062bDfXui','assign','codeceptjs','18235oHxWvo','CODECEPT','307137FMezhj','9GppmBt','api/v1/event','PLAYWRIGHT','mocha','.obs_test_details','JEST','api/v1/batch','CUCUMBER','12823980GmQmQS','https://collector-observability.browserstack.com'];a84_0x2179=function(){return _0x1006e3;};return a84_0x2179();}a84_0x10fc1c[a84_0x4909cc(0x1d1)]=a84_0x4909cc(0x1be),a84_0x10fc1c['MOCHA']=a84_0x4909cc(0x1d2),a84_0x10fc1c[a84_0x4909cc(0x1cd)]=a84_0x4909cc(0x1cb),a84_0x10fc1c[a84_0x4909cc(0x1bd)]='codeceptjs-cucumber',a84_0x10fc1c[a84_0x4909cc(0x1d4)]=a84_0x4909cc(0x1c8),a84_0x10fc1c[a84_0x4909cc(0x1ba)]=a84_0x4909cc(0x1c0),module['exports']={'consoleHolder':Object[a84_0x4909cc(0x1ca)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x4909cc(0x1bc),'OBSERVABILITY_UPLOAD_API_URL':a84_0x4909cc(0x1c6),'EVENT_ENDPOINT':a84_0x4909cc(0x1d0),'BATCH_ENDPOINT':a84_0x4909cc(0x1b9),'SCREENSHOT_ENDPOINT':a84_0x4909cc(0x1c3),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x4909cc(0x1c7),'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_0x4909cc(0x1d3),'FRAMEWORKS':a84_0x10fc1c};
@@ -1 +1 @@
1
- const a85_0xc141f=a85_0x152f;function a85_0x152f(_0x3be2f6,_0x4dc91d){const _0x56b8ca=a85_0x56b8();return a85_0x152f=function(_0x152f2c,_0x5d1b9f){_0x152f2c=_0x152f2c-0x133;let _0x401679=_0x56b8ca[_0x152f2c];return _0x401679;},a85_0x152f(_0x3be2f6,_0x4dc91d);}(function(_0x5b0436,_0x2b873c){const _0xc2af4a=a85_0x152f,_0xd915ed=_0x5b0436();while(!![]){try{const _0x1a35aa=-parseInt(_0xc2af4a(0x168))/0x1*(parseInt(_0xc2af4a(0x159))/0x2)+-parseInt(_0xc2af4a(0x176))/0x3+-parseInt(_0xc2af4a(0x171))/0x4*(parseInt(_0xc2af4a(0x15e))/0x5)+parseInt(_0xc2af4a(0x16d))/0x6*(-parseInt(_0xc2af4a(0x138))/0x7)+parseInt(_0xc2af4a(0x146))/0x8+-parseInt(_0xc2af4a(0x147))/0x9*(parseInt(_0xc2af4a(0x175))/0xa)+-parseInt(_0xc2af4a(0x162))/0xb*(-parseInt(_0xc2af4a(0x188))/0xc);if(_0x1a35aa===_0x2b873c)break;else _0xd915ed['push'](_0xd915ed['shift']());}catch(_0x312f6e){_0xd915ed['push'](_0xd915ed['shift']());}}}(a85_0x56b8,0xb06cd));const util=require(a85_0xc141f(0x13c)),PerformanceTester=require(a85_0xc141f(0x172)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0xc141f(0x145)),{getAgentVersion,nestedKeyValue}=require(a85_0xc141f(0x137)),o11yErrorHandler=(_0x2f75b0,_0x559c66='',_0x4c7c28=[''],_0x32b098=![])=>{const _0x3abcf0={'tvMRz':function(_0x595ef5,_0x11db8a){return _0x595ef5(_0x11db8a);},'curzg':function(_0x3ede98,_0x53283f,_0x14a733){return _0x3ede98(_0x53283f,_0x14a733);},'qdzJJ':function(_0x294d93,_0x340250,_0x28749a){return _0x294d93(_0x340250,_0x28749a);},'UjxwE':function(_0x4bad08,_0x409950){return _0x4bad08 instanceof _0x409950;},'hlZFh':function(_0xf597a1,_0x36a0d5,_0x2c5f77,_0x2d9d37,_0x3549cb){return _0xf597a1(_0x36a0d5,_0x2c5f77,_0x2d9d37,_0x3549cb);}};return function(..._0x43421a){const _0x14b8cb=a85_0x152f;try{let _0x2c2407=_0x2f75b0;process[_0x14b8cb(0x193)][_0x14b8cb(0x182)]&&(_0x2c2407=PerformanceTester[_0x14b8cb(0x13d)]()['timerify'](_0x2c2407));_0x32b098&&_0x3abcf0[_0x14b8cb(0x18e)](trace,_0x14b8cb(0x14c)+_0x559c66+_0x14b8cb(0x19c)+process['pid']+_0x14b8cb(0x177)+_0x3abcf0[_0x14b8cb(0x163)](nestedKeyValue,arguments[0x0],_0x4c7c28));const _0x5023f7=_0x2c2407['apply'](null,arguments);_0x32b098&&_0x3abcf0[_0x14b8cb(0x18e)](trace,_0x14b8cb(0x18c)+_0x559c66+_0x14b8cb(0x19c)+process[_0x14b8cb(0x179)]+',\x20Argument\x20-\x20'+_0x3abcf0[_0x14b8cb(0x152)](nestedKeyValue,arguments[0x0],_0x4c7c28));if(_0x3abcf0['UjxwE'](_0x5023f7,Promise))return _0x5023f7['catch'](_0x160bba=>processError(_0x160bba,_0x2f75b0,_0x43421a,_0x559c66));return _0x5023f7;}catch(_0xe6897a){_0x3abcf0[_0x14b8cb(0x140)](processError,_0xe6897a,_0x2f75b0,_0x43421a,_0x559c66);}};},o11yClassErrorHandler=(_0x462f53,_0x259a8d,_0x5b0402='')=>{const _0x61b29=a85_0xc141f,_0x451fec={'RhFsl':function(_0x51e049,_0x2c9db5){return _0x51e049 instanceof _0x2c9db5;},'VAlJd':function(_0x39cea7,_0x196e65,_0x292c9f,_0x4a362b,_0x47585b){return _0x39cea7(_0x196e65,_0x292c9f,_0x4a362b,_0x47585b);},'rybMA':function(_0x1688e1,_0x13f158){return _0x1688e1===_0x13f158;},'hyTjB':'function','zjppF':function(_0x47f0c9,_0xdbd30e){return _0x47f0c9!==_0xdbd30e;},'RnABi':'constructor','nKCoo':function(_0x501e69,_0x1fee43){return _0x501e69<_0x1fee43;}},_0x3b2152=_0x462f53['prototype'];if(_0x451fec['nKCoo'](Object[_0x61b29(0x183)](_0x3b2152)[_0x61b29(0x135)],0x2))return _0x462f53;return Object[_0x61b29(0x183)](_0x3b2152)[_0x61b29(0x141)](_0x28c5d3=>{const _0x4a6c34=_0x61b29;if(!(_0x259a8d&&_0x259a8d[_0x4a6c34(0x180)](_0x28c5d3)))return;const _0x389bdf=_0x3b2152[_0x28c5d3];_0x451fec['rybMA'](typeof _0x389bdf,_0x451fec[_0x4a6c34(0x186)])&&_0x451fec[_0x4a6c34(0x173)](_0x28c5d3,_0x451fec[_0x4a6c34(0x15d)])&&Object['defineProperty'](_0x3b2152,_0x28c5d3,{'writable':!![],'value':function(..._0x311a78){const _0x3a5409=_0x4a6c34;try{const _0x4c87cb=(process[_0x3a5409(0x193)][_0x3a5409(0x182)]?PerformanceTester[_0x3a5409(0x13d)]()[_0x3a5409(0x15b)](_0x389bdf):_0x389bdf)[_0x3a5409(0x134)](this,..._0x311a78);if(_0x451fec[_0x3a5409(0x18b)](_0x4c87cb,Promise))return _0x4c87cb[_0x3a5409(0x169)](_0x362b0a=>processError(_0x362b0a,_0x389bdf,_0x311a78,_0x5b0402));return _0x4c87cb;}catch(_0x1d29b1){_0x451fec[_0x3a5409(0x148)](processError,_0x1d29b1,_0x389bdf,_0x311a78,_0x5b0402);}}});}),_0x462f53;};function processError(_0x309f94,_0x19dd9a,_0x38a748,_0x50903a){const _0x1659b1=a85_0xc141f,_0x2c8bce={'ZcGXs':function(_0xebac7e,_0x2ba6b6){return _0xebac7e(_0x2ba6b6);}};_0x2c8bce['ZcGXs'](debug,_0x1659b1(0x195)+_0x19dd9a['name']+_0x1659b1(0x136)+_0x50903a+_0x1659b1(0x157)+_0x309f94+_0x1659b1(0x17e)+_0x38a748+'.'),PerformanceTester[_0x1659b1(0x158)](_0x309f94);let _0x5daaa6;try{_0x5daaa6=JSON[_0x1659b1(0x16a)](_0x38a748);}catch(_0x529d4f){const _0x506818={};_0x506818[_0x1659b1(0x18a)]=0x2,_0x5daaa6=util[_0x1659b1(0x149)](_0x38a748,_0x506818);}CrashReporter[_0x1659b1(0x197)](_0x1659b1(0x195)+_0x19dd9a[_0x1659b1(0x160)]+_0x1659b1(0x136)+_0x50903a+'.\x20Error\x20-\x20'+_0x309f94+_0x1659b1(0x17e)+_0x5daaa6+'.',_0x309f94&&_0x309f94['stack']);}class CrashReporter{static ['userConfig']={};static [a85_0xc141f(0x17f)];static [a85_0xc141f(0x139)]={};static['initialize'](_0x4cf2a6,_0x3cc574,_0x4e1a9f=null){const _0x56f6dd=a85_0xc141f,_0x1069fc={'FSHMP':function(_0x5e197e,_0x47113c){return _0x5e197e(_0x47113c);},'UdNqK':function(_0x2a10a3,_0x5dcf26){return _0x2a10a3(_0x5dcf26);},'EOlEY':function(_0x1cb2f3,_0x1c82fc){return _0x1cb2f3(_0x1c82fc);}},_0x592bdc=_0x4cf2a6[_0x56f6dd(0x15f)],_0x12fe05=_0x4cf2a6['frameworkVersion'];!_0x4e1a9f&&(_0x4e1a9f=_0x1069fc[_0x56f6dd(0x196)](getBrowserStackConfig,_0x592bdc));!_0x12fe05&&_0x1069fc[_0x56f6dd(0x17c)](getFrameworkVersion,_0x592bdc);const _0x34404e={};_0x34404e[_0x56f6dd(0x15f)]=_0x592bdc,_0x34404e['frameworkVersion']=_0x12fe05,this[_0x56f6dd(0x14f)](_0x34404e,_0x3cc574,_0x1069fc['EOlEY'](getUserCredentials,_0x4e1a9f));}static[a85_0xc141f(0x13b)](_0x50361b,_0x4c5aed){const _0x41ace3=a85_0xc141f,_0x37683f={};_0x37683f[_0x41ace3(0x14b)]=_0x50361b,_0x37683f['accessKey']=_0x4c5aed,this['credentials']=_0x37683f,process['env'][_0x41ace3(0x192)]=JSON[_0x41ace3(0x16a)](this[_0x41ace3(0x17f)]);}static[a85_0xc141f(0x150)](){const _0x460b9a=a85_0xc141f,_0x417389={'lpYtf':function(_0x215afb,_0x390b20){return _0x215afb(_0x390b20);}};if(!this[_0x460b9a(0x17f)]&&process[_0x460b9a(0x193)][_0x460b9a(0x192)])try{this[_0x460b9a(0x17f)]=JSON[_0x460b9a(0x170)](process[_0x460b9a(0x193)][_0x460b9a(0x192)]);}catch(_0x4961ee){_0x417389[_0x460b9a(0x133)](debug,_0x460b9a(0x19b)+_0x4961ee['toString']());}return this[_0x460b9a(0x17f)];}static[a85_0xc141f(0x167)](_0x11c18a){const _0x2c3277=a85_0xc141f;this[_0x2c3277(0x13a)]=this['filterPII'](_0x11c18a),process[_0x2c3277(0x193)][_0x2c3277(0x18d)]=JSON[_0x2c3277(0x16a)](this['userConfig']);}static[a85_0xc141f(0x142)](){const _0x11ca34=a85_0xc141f,_0x5aa022={'nlDlG':function(_0xd7d06,_0x2338eb){return _0xd7d06===_0x2338eb;},'LFlhw':function(_0xdcdc36,_0x1c267d){return _0xdcdc36(_0x1c267d);}};if(_0x5aa022[_0x11ca34(0x19a)](Object['keys'](this[_0x11ca34(0x13a)])[_0x11ca34(0x135)],0x0)&&process['env']['USER_CONFIG_FOR_REPORTING'])try{this[_0x11ca34(0x13a)]=JSON['parse'](process[_0x11ca34(0x193)][_0x11ca34(0x18d)]);}catch(_0x262f5a){_0x5aa022[_0x11ca34(0x144)](debug,_0x11ca34(0x199)+_0x262f5a['toString']()),this[_0x11ca34(0x13a)]={};}return this[_0x11ca34(0x13a)];}static['setFrameworkDetails'](_0x139d65){const _0x4c5aad=a85_0xc141f;this[_0x4c5aad(0x139)]=_0x139d65,process[_0x4c5aad(0x193)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x4c5aad(0x16a)](this[_0x4c5aad(0x139)]);}static[a85_0xc141f(0x15a)](){const _0x44fb1d=a85_0xc141f,_0x28bf9b={'xYaRS':function(_0x44b835,_0xd0320){return _0x44b835===_0xd0320;},'QiDhS':function(_0x3dfecb,_0x4daa35){return _0x3dfecb(_0x4daa35);}};if(_0x28bf9b[_0x44fb1d(0x165)](Object['keys'](this[_0x44fb1d(0x139)])['length'],0x0)&&process[_0x44fb1d(0x193)][_0x44fb1d(0x16c)])try{this[_0x44fb1d(0x139)]=JSON[_0x44fb1d(0x170)](process[_0x44fb1d(0x193)][_0x44fb1d(0x16c)]);}catch(_0x57a4eb){_0x28bf9b['QiDhS'](debug,_0x44fb1d(0x19b)+_0x57a4eb[_0x44fb1d(0x14e)]());}return this['frameworkDetails'];}static['setAllDetails'](_0x203200,_0x179b85,_0x5ee351){const _0x4e5df8=a85_0xc141f;_0x203200&&this[_0x4e5df8(0x191)](_0x203200),_0x179b85&&this['setConfigDetails'](_0x179b85),_0x5ee351&&this['setCredentials'](_0x5ee351[_0x4e5df8(0x14b)],_0x5ee351[_0x4e5df8(0x190)]);}static async[a85_0xc141f(0x197)](_0x1db27f,_0x2e9b80){const _0x52f469=a85_0xc141f,_0xb27220={'USbkC':function(_0x5d6c7d,_0x4c0b60){return _0x5d6c7d(_0x4c0b60);},'MLLis':function(_0xf5f747,_0x413b19){return _0xf5f747(_0x413b19);},'uGRnW':_0x52f469(0x143),'uweim':function(_0x1e5468){return _0x1e5468();},'KQJix':'/api/v1/analytics','ivLuw':_0x52f469(0x151),'vuQzf':_0x52f469(0x184),'cKVhT':function(_0x5653ff,_0x6befb6,_0x547544,_0x457d05,_0x137831,_0x1846b2){return _0x5653ff(_0x6befb6,_0x547544,_0x457d05,_0x137831,_0x1846b2);},'KZBzD':_0x52f469(0x13e)};this['getCredentials']();if(!this[_0x52f469(0x17f)])return _0xb27220[_0x52f469(0x14a)](debug,_0xb27220['uGRnW']);this[_0x52f469(0x142)](),this['getFramework']();const _0x510474={'hashed_id':process['env']['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0xb27220['uweim'](getAgentVersion),'frameworkName':this[_0x52f469(0x139)]['frameworkName'],'frameworkVersion':this[_0x52f469(0x139)][_0x52f469(0x16f)]},'exception':{'error':_0x1db27f[_0x52f469(0x14e)](),'stackTrace':_0x2e9b80},'config':this[_0x52f469(0x13a)]},_0x44ff39=_0xb27220[_0x52f469(0x18f)],_0x1a4980={};_0x1a4980[_0x52f469(0x14b)]=this[_0x52f469(0x17f)][_0x52f469(0x14b)],_0x1a4980[_0x52f469(0x161)]=this[_0x52f469(0x17f)][_0x52f469(0x190)];const _0x3ad6a8={};_0x3ad6a8['Content-Type']=_0xb27220[_0x52f469(0x181)],_0x3ad6a8[_0x52f469(0x156)]=_0xb27220['vuQzf'];const _0x50e596={};_0x50e596[_0x52f469(0x17b)]=_0x1a4980,_0x50e596['headers']=_0x3ad6a8;const _0x4d41f9=_0x50e596;_0xb27220['cKVhT'](nodeRequest,_0xb27220[_0x52f469(0x178)],_0x44ff39,_0x510474,_0x4d41f9,![])['then'](_0x1bdc34=>{const _0x104612=_0x52f469;_0xb27220[_0x104612(0x166)](debug,_0x104612(0x153)+JSON[_0x104612(0x16a)](_0x1bdc34));})[_0x52f469(0x169)](_0x43649a=>{const _0x106161=_0x52f469;_0xb27220['MLLis'](debug,_0x106161(0x14d)+util[_0x106161(0x154)](_0x43649a));});}static[a85_0xc141f(0x17a)](_0x23ba96){const _0x5833c8=a85_0xc141f,_0x4a9fac={};_0x4a9fac[_0x5833c8(0x155)]='user',_0x4a9fac[_0x5833c8(0x17d)]='username',_0x4a9fac[_0x5833c8(0x185)]='key',_0x4a9fac[_0x5833c8(0x16e)]=_0x5833c8(0x190),_0x4a9fac[_0x5833c8(0x187)]=_0x5833c8(0x161),_0x4a9fac[_0x5833c8(0x15c)]=function(_0x4b7ac0,_0x3228c8){return _0x4b7ac0===_0x3228c8;},_0x4a9fac[_0x5833c8(0x164)]=_0x5833c8(0x16b);const _0x2608b1=_0x4a9fac;if(!_0x23ba96)return;const _0x1f8862=[_0x2608b1[_0x5833c8(0x155)],_0x2608b1[_0x5833c8(0x17d)],_0x2608b1[_0x5833c8(0x185)],_0x2608b1[_0x5833c8(0x16e)],_0x2608b1[_0x5833c8(0x187)]];for(const _0x56f25b in _0x23ba96){if(_0x1f8862[_0x5833c8(0x180)](_0x56f25b[_0x5833c8(0x194)]()))delete _0x23ba96[_0x56f25b];else _0x2608b1[_0x5833c8(0x15c)](typeof _0x23ba96[_0x56f25b],_0x2608b1[_0x5833c8(0x164)])&&this[_0x5833c8(0x17a)](_0x23ba96[_0x56f25b]);}}static['filterPII'](_0x1356c0){const _0x114688=a85_0xc141f,_0x1a39ce=JSON[_0x114688(0x170)](JSON[_0x114688(0x16a)](_0x1356c0));return this['recursivelyDeletePIIKeysFromObject'](_0x1a39ce),_0x1a39ce;}}function a85_0x56b8(){const _0x2bea71=['stringify','object','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','6428634hHYYdV','ydwvO','frameworkVersion','parse','4tzfmJI','../performance/performance-tester','zjppF','CrashReporter','30yYBYhu','4283964kBYvel',',\x20Argument\x20-\x20','KZBzD','pid','recursivelyDeletePIIKeysFromObject','auth','UdNqK','YKIND','.\x20Args\x20-\x20','credentials','includes','ivLuw','BROWSERSTACK_O11Y_PERF_MEASUREMENT','getOwnPropertyNames','true','XRFQL','hyTjB','gFIsx','12DdSLgJ','o11yErrorHandler','depth','RhFsl','Finished\x20::\x20','USER_CONFIG_FOR_REPORTING','tvMRz','KQJix','accessKey','setFrameworkDetails','CREDENTIALS_FOR_CRASH_REPORTING','env','toLowerCase','Error\x20in\x20executing\x20','FSHMP','uploadCrashReport','exports','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','nlDlG','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20',',\x20PID\x20-\x20','lpYtf','call','length','\x20--\x20','../helper','7ReSORZ','frameworkDetails','userConfig','setCredentials','util','getPerformance','POST','o11yClassErrorHandler','hlZFh','forEach','getConfig','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','LFlhw','./utils','1311128HRDVWa','1134603xuOPns','VAlJd','inspect','MLLis','username','Started\x20::\x20','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','toString','setAllDetails','getCredentials','application/json','qdzJJ','[Crash_Report_Upload]\x20Success\x20response:\x20','format','EsHvj','X-BSTACK-TESTOPS','.\x20Error\x20-\x20','captureError','158434ybGNqv','getFramework','timerify','iGLWE','RnABi','2671415YTHuBe','frameworkName','name','password','48034162ejpbVc','curzg','KBhGp','xYaRS','USbkC','setConfigDetails','5LXumiK','catch'];a85_0x56b8=function(){return _0x2bea71;};return a85_0x56b8();}const a85_0x5738e5={};a85_0x5738e5[a85_0xc141f(0x189)]=o11yErrorHandler,a85_0x5738e5[a85_0xc141f(0x13f)]=o11yClassErrorHandler,a85_0x5738e5[a85_0xc141f(0x174)]=CrashReporter,module[a85_0xc141f(0x198)]=a85_0x5738e5;
1
+ const a85_0x3a4e12=a85_0x2fc2;(function(_0x37dd50,_0x9ed094){const _0x578d6c=a85_0x2fc2,_0x278b88=_0x37dd50();while(!![]){try{const _0x25384c=parseInt(_0x578d6c(0x1fc))/0x1+-parseInt(_0x578d6c(0x231))/0x2+-parseInt(_0x578d6c(0x20d))/0x3+parseInt(_0x578d6c(0x22b))/0x4+-parseInt(_0x578d6c(0x228))/0x5+-parseInt(_0x578d6c(0x23f))/0x6+parseInt(_0x578d6c(0x1e9))/0x7;if(_0x25384c===_0x9ed094)break;else _0x278b88['push'](_0x278b88['shift']());}catch(_0x238556){_0x278b88['push'](_0x278b88['shift']());}}}(a85_0x28af,0x90f66));const util=require(a85_0x3a4e12(0x222)),PerformanceTester=require(a85_0x3a4e12(0x1ed)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x3a4e12(0x219)),{getAgentVersion,nestedKeyValue}=require(a85_0x3a4e12(0x234)),o11yErrorHandler=(_0x30b291,_0x2da0f2='',_0x20699e=[''],_0x46bd78=![])=>{const _0x5a140e={'hQwaP':function(_0x5388a0,_0x8e2dd1){return _0x5388a0(_0x8e2dd1);},'zFuJD':function(_0x7693c7,_0x2268e2,_0x2cce9f){return _0x7693c7(_0x2268e2,_0x2cce9f);},'oeydb':function(_0x21b28d,_0x4aa02e){return _0x21b28d(_0x4aa02e);},'nCYer':function(_0x485107,_0x4debc1,_0x1b4489){return _0x485107(_0x4debc1,_0x1b4489);},'XnWBL':function(_0x3d34b5,_0x2cc1a3){return _0x3d34b5 instanceof _0x2cc1a3;},'RIakj':function(_0x4575f2,_0xc93344,_0x433be2,_0x1efdb7,_0x1d9cb2){return _0x4575f2(_0xc93344,_0x433be2,_0x1efdb7,_0x1d9cb2);}};return function(..._0x4a4438){const _0x592340=a85_0x2fc2;try{let _0x1f42c6=_0x30b291;process[_0x592340(0x244)][_0x592340(0x202)]&&(_0x1f42c6=PerformanceTester[_0x592340(0x20c)]()[_0x592340(0x1e5)](_0x1f42c6));_0x46bd78&&_0x5a140e['hQwaP'](trace,_0x592340(0x20e)+_0x2da0f2+_0x592340(0x1ff)+process['pid']+_0x592340(0x23a)+_0x5a140e[_0x592340(0x1da)](nestedKeyValue,arguments[0x0],_0x20699e));const _0x3daf91=_0x1f42c6[_0x592340(0x208)](null,arguments);_0x46bd78&&_0x5a140e['oeydb'](trace,_0x592340(0x1e7)+_0x2da0f2+_0x592340(0x1ff)+process[_0x592340(0x1f1)]+_0x592340(0x23a)+_0x5a140e[_0x592340(0x243)](nestedKeyValue,arguments[0x0],_0x20699e));if(_0x5a140e[_0x592340(0x22c)](_0x3daf91,Promise))return _0x3daf91['catch'](_0x472987=>processError(_0x472987,_0x30b291,_0x4a4438,_0x2da0f2));return _0x3daf91;}catch(_0x5945d3){_0x5a140e['RIakj'](processError,_0x5945d3,_0x30b291,_0x4a4438,_0x2da0f2);}};},o11yClassErrorHandler=(_0x47ad3a,_0x3a529c,_0x4c427d='')=>{const _0x3672e0=a85_0x3a4e12,_0x44b84d={'fJIox':function(_0x3cb422,_0x7cb4c0){return _0x3cb422 instanceof _0x7cb4c0;},'DPNch':function(_0xedf3c6,_0x1af304,_0x3e1e39,_0x18df9a,_0x4d09ad){return _0xedf3c6(_0x1af304,_0x3e1e39,_0x18df9a,_0x4d09ad);},'MSRob':function(_0x15e820,_0x1dda65){return _0x15e820===_0x1dda65;},'yKktM':_0x3672e0(0x21b),'GUEQo':function(_0x455322,_0x2a3680){return _0x455322!==_0x2a3680;},'JJQnB':'constructor','BULFe':function(_0x445e9e,_0x3ff042){return _0x445e9e<_0x3ff042;}},_0x1be1a1=_0x47ad3a[_0x3672e0(0x225)];if(_0x44b84d[_0x3672e0(0x20b)](Object['getOwnPropertyNames'](_0x1be1a1)['length'],0x2))return _0x47ad3a;return Object[_0x3672e0(0x215)](_0x1be1a1)[_0x3672e0(0x1f9)](_0x4cba04=>{const _0x10d0ae=_0x3672e0,_0x25408a={'URiJK':function(_0xc53bf7,_0x557a09){const _0x3d03b6=a85_0x2fc2;return _0x44b84d[_0x3d03b6(0x229)](_0xc53bf7,_0x557a09);},'TEYAr':function(_0x45956e,_0x23f047,_0x6420b1,_0x3915e8,_0x4414de){const _0x282b36=a85_0x2fc2;return _0x44b84d[_0x282b36(0x22d)](_0x45956e,_0x23f047,_0x6420b1,_0x3915e8,_0x4414de);}};if(!(_0x3a529c&&_0x3a529c[_0x10d0ae(0x204)](_0x4cba04)))return;const _0x4ceaf4=_0x1be1a1[_0x4cba04];_0x44b84d[_0x10d0ae(0x20f)](typeof _0x4ceaf4,_0x44b84d[_0x10d0ae(0x213)])&&_0x44b84d['GUEQo'](_0x4cba04,_0x44b84d[_0x10d0ae(0x1ec)])&&Object['defineProperty'](_0x1be1a1,_0x4cba04,{'writable':!![],'value':function(..._0xaea1ac){const _0x1babcb=_0x10d0ae;try{const _0x4d89db=(process[_0x1babcb(0x244)][_0x1babcb(0x202)]?PerformanceTester['getPerformance']()[_0x1babcb(0x1e5)](_0x4ceaf4):_0x4ceaf4)[_0x1babcb(0x21f)](this,..._0xaea1ac);if(_0x25408a['URiJK'](_0x4d89db,Promise))return _0x4d89db['catch'](_0xca570e=>processError(_0xca570e,_0x4ceaf4,_0xaea1ac,_0x4c427d));return _0x4d89db;}catch(_0x4fc88e){_0x25408a[_0x1babcb(0x1e1)](processError,_0x4fc88e,_0x4ceaf4,_0xaea1ac,_0x4c427d);}}});}),_0x47ad3a;};function a85_0x2fc2(_0x17897c,_0xbe4c07){const _0x28af92=a85_0x28af();return a85_0x2fc2=function(_0x2fc264,_0x605ba0){_0x2fc264=_0x2fc264-0x1d8;let _0x1252f7=_0x28af92[_0x2fc264];return _0x1252f7;},a85_0x2fc2(_0x17897c,_0xbe4c07);}function a85_0x28af(){const _0x527658=['POST','ERIIX','apply','oKzdQ','suGmp','BULFe','getPerformance','1344387YstqfR','Started\x20::\x20','MSRob','OXJck','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','frameworkVersion','yKktM','\x20--\x20','getOwnPropertyNames','yqQCS','EPUrw','setFrameworkDetails','./utils','initialize','function','KjJqF','recursivelyDeletePIIKeysFromObject','frameworkDetails','call','fhEUS','auth','util','name','setConfigDetails','prototype','hlWhu','EYaOi','2540215DSYjdg','fJIox','kPaeK','1948852ZDpvSr','XnWBL','DPNch','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','oTMIy','format','2115092rsJlcE','user','/api/v1/analytics','../helper','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','toLowerCase','filterPII','CrashReporter','CREDENTIALS_FOR_CRASH_REPORTING',',\x20Argument\x20-\x20','toString','headers','credentials','password','214950tFMebB','true','BS_TESTOPS_BUILD_HASHED_ID','iOcDu','nCYer','env','key','.\x20Error\x20-\x20','zFuJD','parse','username','OtoIP','inspect','uploadCrashReport','setAllDetails','TEYAr','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','BzCew','setCredentials','timerify','cKCfT','Finished\x20::\x20','exports','11696440tkYZBM','.\x20Args\x20-\x20','Error\x20in\x20executing\x20','JJQnB','../performance/performance-tester','REpUm','o11yClassErrorHandler','koPGT','pid','then','getCredentials','USER_CONFIG_FOR_REPORTING','YWTlV','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','kYclU','stringify','forEach','userConfig','Content-Type','485176ndJpMg','getFramework','frameworkName',',\x20PID\x20-\x20','accessKey','depth','BROWSERSTACK_O11Y_PERF_MEASUREMENT','length','includes','o11yErrorHandler'];a85_0x28af=function(){return _0x527658;};return a85_0x28af();}function processError(_0x5df81a,_0x44117f,_0x5cc84a,_0x1dd47a){const _0x30f519=a85_0x3a4e12,_0x5e7e0d={'OtoIP':function(_0x20f71f,_0x29a1a6){return _0x20f71f(_0x29a1a6);}};_0x5e7e0d[_0x30f519(0x1dd)](debug,_0x30f519(0x1eb)+_0x44117f[_0x30f519(0x223)]+'\x20--\x20'+_0x1dd47a+_0x30f519(0x1d9)+_0x5df81a+_0x30f519(0x1ea)+_0x5cc84a+'.'),PerformanceTester['captureError'](_0x5df81a);let _0x299638;try{_0x299638=JSON[_0x30f519(0x1f8)](_0x5cc84a);}catch(_0x101bdc){const _0x4d3b45={};_0x4d3b45[_0x30f519(0x201)]=0x2,_0x299638=util[_0x30f519(0x1de)](_0x5cc84a,_0x4d3b45);}CrashReporter['uploadCrashReport']('Error\x20in\x20executing\x20'+_0x44117f[_0x30f519(0x223)]+_0x30f519(0x214)+_0x1dd47a+_0x30f519(0x1d9)+_0x5df81a+_0x30f519(0x1ea)+_0x299638+'.',_0x5df81a&&_0x5df81a['stack']);}class CrashReporter{static [a85_0x3a4e12(0x1fa)]={};static [a85_0x3a4e12(0x23d)];static [a85_0x3a4e12(0x21e)]={};static[a85_0x3a4e12(0x21a)](_0x5dae14,_0x17f86a,_0x59bb0a=null){const _0x1d4d1e=a85_0x3a4e12,_0x1b1062={'OXJck':function(_0xd98a76,_0x5b0ef7){return _0xd98a76(_0x5b0ef7);},'RyKQD':function(_0x2d8bfb,_0x3c023f){return _0x2d8bfb(_0x3c023f);}},_0xf570bf=_0x5dae14[_0x1d4d1e(0x1fe)],_0x528aa3=_0x5dae14[_0x1d4d1e(0x212)];!_0x59bb0a&&(_0x59bb0a=_0x1b1062[_0x1d4d1e(0x210)](getBrowserStackConfig,_0xf570bf));!_0x528aa3&&_0x1b1062['RyKQD'](getFrameworkVersion,_0xf570bf);const _0x4df9d0={};_0x4df9d0[_0x1d4d1e(0x1fe)]=_0xf570bf,_0x4df9d0[_0x1d4d1e(0x212)]=_0x528aa3,this[_0x1d4d1e(0x1e0)](_0x4df9d0,_0x17f86a,_0x1b1062[_0x1d4d1e(0x210)](getUserCredentials,_0x59bb0a));}static[a85_0x3a4e12(0x1e4)](_0xfc88de,_0x5d6a40){const _0x1e3b0e=a85_0x3a4e12,_0x5daa1a={};_0x5daa1a['username']=_0xfc88de,_0x5daa1a[_0x1e3b0e(0x200)]=_0x5d6a40,this[_0x1e3b0e(0x23d)]=_0x5daa1a,process[_0x1e3b0e(0x244)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](this[_0x1e3b0e(0x23d)]);}static[a85_0x3a4e12(0x1f3)](){const _0x4bc334=a85_0x3a4e12,_0x41fabc={'neRGU':function(_0x52af1f,_0x4df360){return _0x52af1f(_0x4df360);}};if(!this[_0x4bc334(0x23d)]&&process[_0x4bc334(0x244)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x4bc334(0x23d)]=JSON[_0x4bc334(0x1db)](process[_0x4bc334(0x244)][_0x4bc334(0x239)]);}catch(_0x5b06db){_0x41fabc['neRGU'](debug,_0x4bc334(0x235)+_0x5b06db[_0x4bc334(0x23b)]());}return this[_0x4bc334(0x23d)];}static[a85_0x3a4e12(0x224)](_0x3930f6){const _0x12b93a=a85_0x3a4e12;this[_0x12b93a(0x1fa)]=this[_0x12b93a(0x237)](_0x3930f6),process['env'][_0x12b93a(0x1f4)]=JSON[_0x12b93a(0x1f8)](this[_0x12b93a(0x1fa)]);}static['getConfig'](){const _0xb3508d=a85_0x3a4e12,_0x2d26ec={'Eneua':function(_0x3fc78d,_0x4b6644){return _0x3fc78d===_0x4b6644;},'YWTlV':function(_0x9785be,_0x9d6ae8){return _0x9785be(_0x9d6ae8);}};if(_0x2d26ec['Eneua'](Object['keys'](this[_0xb3508d(0x1fa)])['length'],0x0)&&process[_0xb3508d(0x244)][_0xb3508d(0x1f4)])try{this[_0xb3508d(0x1fa)]=JSON[_0xb3508d(0x1db)](process[_0xb3508d(0x244)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x2d6dad){_0x2d26ec[_0xb3508d(0x1f5)](debug,_0xb3508d(0x22e)+_0x2d6dad['toString']()),this[_0xb3508d(0x1fa)]={};}return this['userConfig'];}static[a85_0x3a4e12(0x218)](_0x33f63f){const _0x96b67e=a85_0x3a4e12;this[_0x96b67e(0x21e)]=_0x33f63f,process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x96b67e(0x1f8)](this[_0x96b67e(0x21e)]);}static[a85_0x3a4e12(0x1fd)](){const _0x993cb=a85_0x3a4e12,_0x2bbe0d={'EYaOi':function(_0x5e48a7,_0x4d87d3){return _0x5e48a7===_0x4d87d3;},'suGmp':function(_0x2c50d5,_0x86ae61){return _0x2c50d5(_0x86ae61);}};if(_0x2bbe0d[_0x993cb(0x227)](Object['keys'](this[_0x993cb(0x21e)])[_0x993cb(0x203)],0x0)&&process[_0x993cb(0x244)][_0x993cb(0x1e2)])try{this[_0x993cb(0x21e)]=JSON[_0x993cb(0x1db)](process[_0x993cb(0x244)][_0x993cb(0x1e2)]);}catch(_0x3f96be){_0x2bbe0d[_0x993cb(0x20a)](debug,_0x993cb(0x235)+_0x3f96be[_0x993cb(0x23b)]());}return this[_0x993cb(0x21e)];}static[a85_0x3a4e12(0x1e0)](_0x32dcd9,_0x854d43,_0x51f72d){const _0x13f705=a85_0x3a4e12;_0x32dcd9&&this[_0x13f705(0x218)](_0x32dcd9),_0x854d43&&this[_0x13f705(0x224)](_0x854d43),_0x51f72d&&this[_0x13f705(0x1e4)](_0x51f72d[_0x13f705(0x1dc)],_0x51f72d[_0x13f705(0x200)]);}static async[a85_0x3a4e12(0x1df)](_0x13de50,_0x1ee70d){const _0x4d1aff=a85_0x3a4e12,_0x26e188={'REpUm':function(_0x3a786b,_0x1ff85b){return _0x3a786b(_0x1ff85b);},'oTMIy':function(_0x27b324,_0x1b45dc){return _0x27b324(_0x1b45dc);},'oKzdQ':_0x4d1aff(0x211),'KjJqF':function(_0x40a55c){return _0x40a55c();},'kYclU':_0x4d1aff(0x233),'iOcDu':'application/json','ERIIX':_0x4d1aff(0x240),'JInAK':function(_0x55ae60,_0x388db8,_0x29c85a,_0x27ca0a,_0x5a6121,_0x4163c4){return _0x55ae60(_0x388db8,_0x29c85a,_0x27ca0a,_0x5a6121,_0x4163c4);},'koPGT':_0x4d1aff(0x206)};this[_0x4d1aff(0x1f3)]();if(!this['credentials'])return _0x26e188[_0x4d1aff(0x22f)](debug,_0x26e188[_0x4d1aff(0x209)]);this['getConfig'](),this[_0x4d1aff(0x1fd)]();const _0x3abffd={'hashed_id':process[_0x4d1aff(0x244)][_0x4d1aff(0x241)],'observability_version':{'sdkVersion':_0x26e188[_0x4d1aff(0x21c)](getAgentVersion),'frameworkName':this[_0x4d1aff(0x21e)][_0x4d1aff(0x1fe)],'frameworkVersion':this[_0x4d1aff(0x21e)][_0x4d1aff(0x212)]},'exception':{'error':_0x13de50[_0x4d1aff(0x23b)](),'stackTrace':_0x1ee70d},'config':this[_0x4d1aff(0x1fa)]},_0x5ab3c7=_0x26e188[_0x4d1aff(0x1f7)],_0x3bf84d={};_0x3bf84d[_0x4d1aff(0x1dc)]=this[_0x4d1aff(0x23d)][_0x4d1aff(0x1dc)],_0x3bf84d[_0x4d1aff(0x23e)]=this['credentials'][_0x4d1aff(0x200)];const _0x7d25af={};_0x7d25af[_0x4d1aff(0x1fb)]=_0x26e188[_0x4d1aff(0x242)],_0x7d25af['X-BSTACK-TESTOPS']=_0x26e188[_0x4d1aff(0x207)];const _0xabc025={};_0xabc025[_0x4d1aff(0x221)]=_0x3bf84d,_0xabc025[_0x4d1aff(0x23c)]=_0x7d25af;const _0xac5efc=_0xabc025;_0x26e188['JInAK'](nodeRequest,_0x26e188[_0x4d1aff(0x1f0)],_0x5ab3c7,_0x3abffd,_0xac5efc,![])[_0x4d1aff(0x1f2)](_0x229a0c=>{const _0x236041=_0x4d1aff;_0x26e188[_0x236041(0x1ee)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x236041(0x1f8)](_0x229a0c));})['catch'](_0x568454=>{const _0x5c111e=_0x4d1aff;_0x26e188[_0x5c111e(0x1ee)](debug,_0x5c111e(0x1f6)+util[_0x5c111e(0x230)](_0x568454));});}static[a85_0x3a4e12(0x21d)](_0x5ce488){const _0x3799b5=a85_0x3a4e12,_0x35425e={};_0x35425e[_0x3799b5(0x217)]=_0x3799b5(0x232),_0x35425e[_0x3799b5(0x1e3)]=_0x3799b5(0x1dc),_0x35425e[_0x3799b5(0x1e6)]=_0x3799b5(0x1d8),_0x35425e['fhEUS']='accessKey',_0x35425e['hlWhu']=_0x3799b5(0x23e),_0x35425e[_0x3799b5(0x22a)]=function(_0x56d702,_0x3cc78b){return _0x56d702===_0x3cc78b;},_0x35425e[_0x3799b5(0x216)]='object';const _0x1eed89=_0x35425e;if(!_0x5ce488)return;const _0x1e7202=[_0x1eed89[_0x3799b5(0x217)],_0x1eed89[_0x3799b5(0x1e3)],_0x1eed89[_0x3799b5(0x1e6)],_0x1eed89[_0x3799b5(0x220)],_0x1eed89[_0x3799b5(0x226)]];for(const _0x6ab7c1 in _0x5ce488){if(_0x1e7202['includes'](_0x6ab7c1[_0x3799b5(0x236)]()))delete _0x5ce488[_0x6ab7c1];else _0x1eed89[_0x3799b5(0x22a)](typeof _0x5ce488[_0x6ab7c1],_0x1eed89[_0x3799b5(0x216)])&&this['recursivelyDeletePIIKeysFromObject'](_0x5ce488[_0x6ab7c1]);}}static[a85_0x3a4e12(0x237)](_0x55444a){const _0x28177f=a85_0x3a4e12,_0x5cadc5=JSON[_0x28177f(0x1db)](JSON[_0x28177f(0x1f8)](_0x55444a));return this[_0x28177f(0x21d)](_0x5cadc5),_0x5cadc5;}}const a85_0x1cfbe8={};a85_0x1cfbe8[a85_0x3a4e12(0x205)]=o11yErrorHandler,a85_0x1cfbe8[a85_0x3a4e12(0x1ef)]=o11yClassErrorHandler,a85_0x1cfbe8[a85_0x3a4e12(0x238)]=CrashReporter,module[a85_0x3a4e12(0x1e8)]=a85_0x1cfbe8;
@@ -1 +1 @@
1
- const a86_0x236f61=a86_0x4426;(function(_0x204e69,_0x28f2fc){const _0x1b9478=a86_0x4426,_0x2887b3=_0x204e69();while(!![]){try{const _0x3754fb=-parseInt(_0x1b9478(0x178))/0x1+-parseInt(_0x1b9478(0x13b))/0x2*(-parseInt(_0x1b9478(0x14f))/0x3)+parseInt(_0x1b9478(0x14e))/0x4*(-parseInt(_0x1b9478(0x183))/0x5)+parseInt(_0x1b9478(0x143))/0x6+-parseInt(_0x1b9478(0x17a))/0x7+-parseInt(_0x1b9478(0x13e))/0x8*(-parseInt(_0x1b9478(0x129))/0x9)+-parseInt(_0x1b9478(0x15c))/0xa;if(_0x3754fb===_0x28f2fc)break;else _0x2887b3['push'](_0x2887b3['shift']());}catch(_0x1d176a){_0x2887b3['push'](_0x2887b3['shift']());}}}(a86_0x25f9,0x8a803));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x236f61(0x148)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a86_0x236f61(0x141)),util=require('util');function a86_0x4426(_0xbae2bb,_0x5355b7){const _0x25f912=a86_0x25f9();return a86_0x4426=function(_0x442658,_0x2967cf){_0x442658=_0x442658-0x11c;let _0x552117=_0x25f912[_0x442658];return _0x552117;},a86_0x4426(_0xbae2bb,_0x5355b7);}class RequestQueueHandler{static [a86_0x236f61(0x133)];[a86_0x236f61(0x181)]=0x0;constructor(){const _0x1893fe=a86_0x236f61,_0x3b6be0={};_0x3b6be0[_0x1893fe(0x17c)]='4|1|2|0|3|6|5',_0x3b6be0[_0x1893fe(0x16d)]=_0x1893fe(0x162),_0x3b6be0['HBIWE']=_0x1893fe(0x135),_0x3b6be0[_0x1893fe(0x17e)]=_0x1893fe(0x13f),_0x3b6be0['zlZfW']='LogCreated',_0x3b6be0[_0x1893fe(0x125)]='CBTSessionCreated',_0x3b6be0[_0x1893fe(0x185)]='TestRunFinished',_0x3b6be0[_0x1893fe(0x172)]=_0x1893fe(0x186),_0x3b6be0[_0x1893fe(0x134)]=_0x1893fe(0x15d),_0x3b6be0['mOCoO']=_0x1893fe(0x18e),_0x3b6be0[_0x1893fe(0x16a)]=_0x1893fe(0x173);const _0xfc9a97=_0x3b6be0,_0x3636c5=_0xfc9a97['uxskA'][_0x1893fe(0x156)]('|');let _0x44a9fc=0x0;while(!![]){switch(_0x3636c5[_0x44a9fc++]){case'0':this[_0x1893fe(0x165)]=_0xfc9a97['acZaY'];continue;case'1':this[_0x1893fe(0x18a)]=![];continue;case'2':this[_0x1893fe(0x164)]=_0xfc9a97[_0x1893fe(0x184)];continue;case'3':this[_0x1893fe(0x17b)]=_0xfc9a97['LRvkn'];continue;case'4':this[_0x1893fe(0x149)]=[];continue;case'5':this[_0x1893fe(0x13a)]=null;continue;case'6':this[_0x1893fe(0x18b)]=[_0xfc9a97[_0x1893fe(0x153)],_0xfc9a97[_0x1893fe(0x125)],_0xfc9a97[_0x1893fe(0x185)],_0xfc9a97[_0x1893fe(0x172)],_0xfc9a97[_0x1893fe(0x134)],_0xfc9a97[_0x1893fe(0x163)],_0xfc9a97[_0x1893fe(0x16a)]];continue;}break;}}static[a86_0x236f61(0x158)](){const _0x25c3c4=a86_0x236f61;return!RequestQueueHandler[_0x25c3c4(0x133)]&&(RequestQueueHandler[_0x25c3c4(0x133)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a86_0x236f61(0x142)]=()=>{const _0x37e946=a86_0x236f61;!this[_0x37e946(0x18a)]&&(this[_0x37e946(0x18a)]=!![],this['startEventBatchPolling']());};[a86_0x236f61(0x179)]=_0x2e2447=>{const _0x2adaba=a86_0x236f61,_0x3d8c44={'SJrlt':function(_0x1a158e,_0x257171){return _0x1a158e===_0x257171;},'nkbZD':'TEST_SCREENSHOT','DpheP':function(_0x30ad3b,_0x1b32ff){return _0x30ad3b>_0x1b32ff;},'TMesO':function(_0x279775,_0x521e63){return _0x279775===_0x521e63;},'jAApV':_0x2adaba(0x128),'WGoZy':function(_0xd0190f,_0x51860c){return _0xd0190f!==_0x51860c;},'CwOkE':_0x2adaba(0x12d),'qChic':function(_0x4f1d62,_0x2ed8f0){return _0x4f1d62(_0x2ed8f0);},'LZlil':_0x2adaba(0x13d)};if(this[_0x2adaba(0x18b)][_0x2adaba(0x145)](_0x2e2447[_0x2adaba(0x166)])){if(_0x2e2447['logs']&&_0x2e2447[_0x2adaba(0x11d)][0x0]&&_0x3d8c44[_0x2adaba(0x130)](_0x2e2447[_0x2adaba(0x11d)][0x0][_0x2adaba(0x14c)],_0x3d8c44[_0x2adaba(0x171)])){const _0x3b3bed={};return _0x3b3bed[_0x2adaba(0x15a)]=!![],_0x3b3bed['proceedWithData']=[_0x2e2447],_0x3b3bed[_0x2adaba(0x176)]=this[_0x2adaba(0x165)],_0x3b3bed;}if(_0x2e2447[_0x2adaba(0x11d)]&&_0x3d8c44[_0x2adaba(0x14d)](_0x2e2447[_0x2adaba(0x11d)][_0x2adaba(0x174)],0x0)&&_0x3d8c44[_0x2adaba(0x17f)](_0x2e2447['logs'][0x0][_0x2adaba(0x14c)],_0x3d8c44[_0x2adaba(0x154)])&&_0x3d8c44[_0x2adaba(0x121)](_0x2e2447[_0x2adaba(0x166)],_0x3d8c44[_0x2adaba(0x14a)])){const _0x549656={};return _0x549656[_0x2adaba(0x15a)]=!![],_0x549656[_0x2adaba(0x167)]=[_0x2e2447],_0x549656[_0x2adaba(0x176)]=this[_0x2adaba(0x17b)],_0x549656;}this[_0x2adaba(0x149)][_0x2adaba(0x169)](_0x2e2447);let _0x4e35b2=null;const _0xcd0199=this[_0x2adaba(0x15a)]();_0xcd0199&&(_0x3d8c44[_0x2adaba(0x12a)](trace,_0x3d8c44[_0x2adaba(0x120)]),_0x4e35b2=this[_0x2adaba(0x149)][_0x2adaba(0x187)](0x0,BATCH_SIZE),this[_0x2adaba(0x149)][_0x2adaba(0x122)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x22bc06={};return _0x22bc06[_0x2adaba(0x15a)]=_0xcd0199,_0x22bc06[_0x2adaba(0x167)]=_0x4e35b2,_0x22bc06[_0x2adaba(0x176)]=this[_0x2adaba(0x164)],_0x22bc06;}const _0x57f751={};return _0x57f751[_0x2adaba(0x15a)]=!![],_0x57f751;};[a86_0x236f61(0x12b)]=async()=>{const _0x42dce4=a86_0x236f61,_0xf62626={'VICry':_0x42dce4(0x127),'uqvQW':function(_0xbb10f9,_0x13170a){return _0xbb10f9>_0x13170a;},'ocGDX':_0x42dce4(0x146),'Rfdvg':function(_0x443fa3,_0x465875){return _0x443fa3>_0x465875;},'HCxdZ':function(_0x414bb8,_0x5f586f){return _0x414bb8(_0x5f586f);}};await this[_0x42dce4(0x11e)](),this[_0x42dce4(0x147)](_0xf62626[_0x42dce4(0x12c)]);while(_0xf62626['uqvQW'](this[_0x42dce4(0x149)]['length'],0x0)){const _0x107c26=this[_0x42dce4(0x149)][_0x42dce4(0x187)](0x0,BATCH_SIZE);this['queue'][_0x42dce4(0x122)](0x0,BATCH_SIZE),await this[_0x42dce4(0x177)](this[_0x42dce4(0x164)],_0xf62626[_0x42dce4(0x157)],_0x107c26);}_0xf62626['Rfdvg'](this['pendingUploads'],0x0)&&_0xf62626[_0x42dce4(0x126)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x42dce4(0x181)]);};[a86_0x236f61(0x177)]=async(_0x5c4688,_0x55c3a6,_0x210ba7)=>{const _0x2fd058=a86_0x236f61,_0x29f4c2={'wjZzN':function(_0x465fe9,_0x42c026){return _0x465fe9(_0x42c026);},'HrnFC':_0x2fd058(0x11c),'XHRgr':function(_0x520381,_0x15724){return _0x520381(_0x15724);},'kWdHa':function(_0x41dda9){return _0x41dda9();},'EdVPd':function(_0x59267a,_0x641425,_0x32bda4,_0x226233,_0x511fbc){return _0x59267a(_0x641425,_0x32bda4,_0x226233,_0x511fbc);},'fQwQR':_0x2fd058(0x12e),'CfyLL':function(_0x1bafa2,_0x1e84e5){return _0x1bafa2-_0x1e84e5;},'QzXAX':function(_0x552d71,_0x1bb474){return _0x552d71(_0x1bb474);},'xlsIj':function(_0x240752,_0x88081e){return _0x240752(_0x88081e);},'rDesp':function(_0x31ee01,_0x34f126){return _0x31ee01-_0x34f126;}};let _0x6894cc='';try{_0x6894cc=_0x210ba7[_0x2fd058(0x161)](_0x56ff00=>'\x27'+_0x56ff00[_0x2fd058(0x166)]+'\x27:'+(nestedKeyValue(_0x56ff00,[_0x2fd058(0x124),_0x2fd058(0x160)])||nestedKeyValue(_0x56ff00,['hook_run',_0x2fd058(0x160)])))[_0x2fd058(0x139)](','),_0x29f4c2[_0x2fd058(0x170)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x55c3a6+_0x2fd058(0x137)+Buffer[_0x2fd058(0x168)](util[_0x2fd058(0x13c)]('%j',_0x210ba7),_0x29f4c2[_0x2fd058(0x180)])+'\x20bytes.\x20Events\x20are\x20'+_0x6894cc);}catch(_0x1c5664){_0x29f4c2[_0x2fd058(0x182)](debug,_0x2fd058(0x159)+util[_0x2fd058(0x13c)](_0x1c5664)+'}');}const _0x4cf657={'headers':_0x29f4c2[_0x2fd058(0x138)](getDefaultHeaders)};try{const _0x4ca264=await _0x29f4c2[_0x2fd058(0x140)](nodeRequest,_0x29f4c2[_0x2fd058(0x15b)],_0x5c4688,_0x210ba7,_0x4cf657);if(_0x4ca264[_0x2fd058(0x189)][_0x2fd058(0x188)]){const _0x5139f0={};_0x5139f0[_0x2fd058(0x12f)]=_0x4ca264[_0x2fd058(0x189)][_0x2fd058(0x188)];throw _0x5139f0;}else _0x29f4c2[_0x2fd058(0x170)](debug,_0x55c3a6+'\x20event\x20successful\x20for\x20events\x20'+_0x6894cc+_0x2fd058(0x131)+util[_0x2fd058(0x13c)]('%j',_0x4ca264[_0x2fd058(0x189)])),this[_0x2fd058(0x181)]=Math['max'](0x0,_0x29f4c2['CfyLL'](this[_0x2fd058(0x181)],_0x210ba7['length']));}catch(_0x5b8932){_0x5b8932['response']?_0x29f4c2[_0x2fd058(0x11f)](debug,_0x2fd058(0x16c)+_0x55c3a6+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x5b8932['response'][_0x2fd058(0x175)]+'\x20'+_0x5b8932[_0x2fd058(0x18c)][_0x2fd058(0x16f)]+'\x20'+util[_0x2fd058(0x13c)]('%j',_0x5b8932[_0x2fd058(0x18c)])):_0x29f4c2['xlsIj'](debug,_0x2fd058(0x16c)+_0x55c3a6+_0x2fd058(0x15e)+(_0x5b8932['message']||_0x5b8932)),this['pendingUploads']=Math[_0x2fd058(0x18d)](0x0,_0x29f4c2[_0x2fd058(0x132)](this['pendingUploads'],_0x210ba7[_0x2fd058(0x174)]));}};['startEventBatchPolling']=()=>{const _0x37a664=a86_0x236f61,_0x104cbe={'AzmSl':function(_0x4d0a7d,_0x498c58){return _0x4d0a7d>_0x498c58;},'RjcqW':function(_0x47486c,_0x48245f){return _0x47486c(_0x48245f);},'rUudy':_0x37a664(0x15f),'RuFVC':function(_0x1f8829,_0x5a8133){return _0x1f8829(_0x5a8133);},'LPOkP':function(_0x38bc5c,_0xf06199,_0x9dca5e){return _0x38bc5c(_0xf06199,_0x9dca5e);}};this[_0x37a664(0x13a)]=_0x104cbe[_0x37a664(0x144)](setInterval,async()=>{const _0x1ea42f=_0x37a664;if(_0x104cbe[_0x1ea42f(0x151)](this[_0x1ea42f(0x149)][_0x1ea42f(0x174)],0x0)){_0x104cbe[_0x1ea42f(0x136)](trace,_0x1ea42f(0x16e)+this['queue']['length']);const _0x2191aa=this[_0x1ea42f(0x149)][_0x1ea42f(0x187)](0x0,BATCH_SIZE);this[_0x1ea42f(0x149)][_0x1ea42f(0x122)](0x0,BATCH_SIZE),await this[_0x1ea42f(0x177)](this[_0x1ea42f(0x164)],_0x104cbe[_0x1ea42f(0x150)],_0x2191aa),_0x104cbe['RuFVC'](trace,_0x1ea42f(0x152)+this[_0x1ea42f(0x149)][_0x1ea42f(0x174)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x481248=a86_0x236f61,_0x320f7d={};_0x320f7d[_0x481248(0x155)]='RESETTING';const _0x3d3b5f=_0x320f7d;this[_0x481248(0x147)](_0x3d3b5f[_0x481248(0x155)]),this[_0x481248(0x17d)]();};[a86_0x236f61(0x147)]=_0xd902d3=>{const _0x334982=a86_0x236f61,_0x52f9d9={'OCyDU':function(_0x5d96bb,_0x1a1cc9){return _0x5d96bb(_0x1a1cc9);},'ANmQh':function(_0x388c13,_0x47a627){return _0x388c13===_0x47a627;},'AxlbH':_0x334982(0x127)};this[_0x334982(0x13a)]&&(_0x52f9d9['OCyDU'](clearInterval,this['pollEventBatchInterval']),this['pollEventBatchInterval']=null,_0x52f9d9[_0x334982(0x14b)](_0xd902d3,_0x52f9d9['AxlbH'])&&(this[_0x334982(0x18a)]=![]));};['shouldProceed']=()=>{const _0x130b41=a86_0x236f61,_0x381b8a={};_0x381b8a['eAhEr']=function(_0x33fe43,_0x572e27){return _0x33fe43>=_0x572e27;};const _0x41596f=_0x381b8a;return _0x41596f['eAhEr'](this['queue'][_0x130b41(0x174)],BATCH_SIZE);};async['uploadPending'](_0x4b3745=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x18663a=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x255a78=a86_0x236f61,_0x781c6c={'bytNE':function(_0x4956aa,_0x272d3f){return _0x4956aa<=_0x272d3f;},'ANYHV':function(_0x1dca90,_0x2f6783){return _0x1dca90(_0x2f6783);},'vTGVP':function(_0x48d5b3,_0x1fae30){return _0x48d5b3-_0x1fae30;}};if(_0x781c6c[_0x255a78(0x16b)](this['pendingUploads'],0x0)||_0x781c6c['bytNE'](_0x4b3745,0x0))return;return await _0x781c6c['ANYHV'](sleep,_0x18663a),this[_0x255a78(0x11e)](_0x781c6c['vTGVP'](_0x4b3745,_0x18663a));}}module[a86_0x236f61(0x123)]=RequestQueueHandler;function a86_0x25f9(){const _0x1536ba=['Shutdown-Queue','removeEventBatchPolling','./constants','queue','CwOkE','ANmQh','kind','DpheP','92EqNRse','190005WBBHJu','rUudy','AzmSl','Remaining\x20Queue\x20Length\x20-\x20','zlZfW','jAApV','xqtqZ','split','ocGDX','getInstance','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','shouldProceed','fQwQR','837050mTGjqv','HookRunFinished','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Interval-Queue','uuid','map','api/v1/screenshots','mOCoO','eventUrl','screenshotEventUrl','event_type','proceedWithData','byteLength','push','UURVJ','bytNE','EXCEPTION\x20IN\x20','acZaY','Processing\x20events.\x20Queue\x20Length\x20-\x20','statusText','wjZzN','nkbZD','RXLKg','HookRunStarted','length','status','proceedWithUrl','batchAndPostEvents','586547cnxrdQ','add','1141126fTSHcT','uploadAttachmentUrl','uxskA','startEventBatchPolling','LRvkn','TMesO','HrnFC','pendingUploads','XHRgr','219215GYaCMq','HBIWE','jZDdu','TestRunSkipped','slice','error','data','started','BATCH_EVENT_TYPES','response','max','TestRunStarted','utf8','logs','uploadPending','QzXAX','LZlil','WGoZy','splice','exports','test_run','Ovywg','HCxdZ','REMOVING','TEST_ATTACHMENT','9ymDIGW','qChic','shutdown','VICry','TestRunFinished','POST','message','SJrlt','\x20--\x20','rDesp','instance','UclVv','api/v1/batch','RjcqW','.\x20Request\x20Size\x20-\x20','kWdHa','join','pollEventBatchInterval','30HEVoXF','format','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','3756472xirtxw','upload-attachments','EdVPd','../helper','start','5936244CiQJTS','LPOkP','includes'];a86_0x25f9=function(){return _0x1536ba;};return a86_0x25f9();}
1
+ const a86_0x1817c0=a86_0xc0f0;function a86_0x1931(){const _0x9f0548=['eHQah','MAOKm','EXCEPTION\x20IN\x20','../helper','uuid','FHHXj','splice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','add','qDDlO','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','RWkfy','FRNNA','status','CEHcy','\x20bytes.\x20Events\x20are\x20','MmNJL','QUMKb','LogCreated','data','start','91218DXYnuY','shouldProceed','removeEventBatchPolling','REMOVING','iUfJm','VFEje','slice','byteLength','14995890eDjnHU','resetEventBatchPolling','instance','vkikO','push','exports','api/v1/batch','response','qUIYf','hook_run','utf8','wdQXz','statusText','proceedWithUrl','uploadAttachmentUrl','message','max','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','eventUrl','TestRunStarted','pEDAt','rUyFl','PecOl','6158588DlqOPD','8080268uaXErM','startEventBatchPolling','split','4528488ssadlZ','GueUS','BATCH_EVENT_TYPES','\x20--\x20','shutdown','RdQSK','batchAndPostEvents','btrOm','2|3|1|4|0|5|6','join','mKGGr','event_type','GZIxl','Interval-Queue','GeGIL','queue','pendingUploads','kind','uploadPending','test_run','WjIwW','map','includes','uQqiu','Processing\x20batch\x20events\x20for\x20','TEST_ATTACHMENT','FhRov','Remaining\x20Queue\x20Length\x20-\x20','qNbLe','530291zkKQsi','\x20event\x20successful\x20for\x20events\x20','Processing\x20events.\x20Queue\x20Length\x20-\x20','oZCEY','logs','TIRIE','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','vudgs','length','error','XsLfC','proceedWithData','pollEventBatchInterval','TestRunFinished','./constants','TEST_SCREENSHOT','format','started','AlQTE','HookRunStarted','./utils','YTnRK','ygSFF','saFkf','2199SQvDiq','365FsYOvr','166iJBVpw','nMStv','Qkehg'];a86_0x1931=function(){return _0x9f0548;};return a86_0x1931();}(function(_0x409f49,_0x5980ce){const _0x2df50e=a86_0xc0f0,_0x52e8e1=_0x409f49();while(!![]){try{const _0x50a356=parseInt(_0x2df50e(0xc0))/0x1+-parseInt(_0x2df50e(0xda))/0x2*(parseInt(_0x2df50e(0xd8))/0x3)+parseInt(_0x2df50e(0x111))/0x4+-parseInt(_0x2df50e(0xd9))/0x5*(parseInt(_0x2df50e(0xf2))/0x6)+-parseInt(_0x2df50e(0x112))/0x7+-parseInt(_0x2df50e(0x115))/0x8+parseInt(_0x2df50e(0xfa))/0x9;if(_0x50a356===_0x5980ce)break;else _0x52e8e1['push'](_0x52e8e1['shift']());}catch(_0x3a6f59){_0x52e8e1['push'](_0x52e8e1['shift']());}}}(a86_0x1931,0xce531));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x1817c0(0xce)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x1817c0(0xd4)),{nestedKeyValue}=require(a86_0x1817c0(0xe0)),util=require('util');function a86_0xc0f0(_0x3969c4,_0x703699){const _0x193163=a86_0x1931();return a86_0xc0f0=function(_0xc0f0bc,_0x1b84bd){_0xc0f0bc=_0xc0f0bc-0xba;let _0x1aabd9=_0x193163[_0xc0f0bc];return _0x1aabd9;},a86_0xc0f0(_0x3969c4,_0x703699);}class RequestQueueHandler{static ['instance'];[a86_0x1817c0(0x125)]=0x0;constructor(){const _0x3566a1=a86_0x1817c0,_0x5a554e={};_0x5a554e['TIRIE']=_0x3566a1(0x11d),_0x5a554e[_0x3566a1(0xfd)]='upload-attachments',_0x5a554e[_0x3566a1(0x123)]=_0x3566a1(0x100),_0x5a554e[_0x3566a1(0xd6)]='api/v1/screenshots',_0x5a554e[_0x3566a1(0xde)]=_0x3566a1(0xef),_0x5a554e[_0x3566a1(0xe9)]='CBTSessionCreated',_0x5a554e[_0x3566a1(0xbf)]=_0x3566a1(0xcd),_0x5a554e['uQqiu']='TestRunSkipped',_0x5a554e[_0x3566a1(0x121)]='HookRunFinished',_0x5a554e[_0x3566a1(0xe6)]=_0x3566a1(0x10d),_0x5a554e[_0x3566a1(0xeb)]=_0x3566a1(0xd3);const _0x23e11d=_0x5a554e,_0x5098d=_0x23e11d[_0x3566a1(0xc5)][_0x3566a1(0x114)]('|');let _0x42e74e=0x0;while(!![]){switch(_0x5098d[_0x42e74e++]){case'0':this[_0x3566a1(0x108)]=_0x23e11d['vkikO'];continue;case'1':this['eventUrl']=_0x23e11d[_0x3566a1(0x123)];continue;case'2':this[_0x3566a1(0x124)]=[];continue;case'3':this[_0x3566a1(0xd1)]=![];continue;case'4':this['screenshotEventUrl']=_0x23e11d['ygSFF'];continue;case'5':this[_0x3566a1(0x117)]=[_0x23e11d['MAOKm'],_0x23e11d[_0x3566a1(0xe9)],_0x23e11d[_0x3566a1(0xbf)],_0x23e11d[_0x3566a1(0xba)],_0x23e11d[_0x3566a1(0x121)],_0x23e11d[_0x3566a1(0xe6)],_0x23e11d[_0x3566a1(0xeb)]];continue;case'6':this[_0x3566a1(0xcc)]=null;continue;}break;}}static['getInstance'](){const _0xfbef50=a86_0x1817c0;return!RequestQueueHandler[_0xfbef50(0xfc)]&&(RequestQueueHandler[_0xfbef50(0xfc)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a86_0x1817c0(0xf1)]=()=>{const _0x3ad5cc=a86_0x1817c0;!this['started']&&(this[_0x3ad5cc(0xd1)]=!![],this['startEventBatchPolling']());};[a86_0x1817c0(0xe5)]=_0x11ffe6=>{const _0x596389=a86_0x1817c0,_0x29255e={'YTnRK':function(_0x13779f,_0x46595a){return _0x13779f===_0x46595a;},'iUfJm':_0x596389(0xcf),'saFkf':function(_0x420d2f,_0x51ddff){return _0x420d2f>_0x51ddff;},'nMStv':_0x596389(0xbc),'oZCEY':function(_0x29817e,_0x1b8572){return _0x29817e!==_0x1b8572;},'pEDAt':_0x596389(0xcd),'VFEje':function(_0x1450ed,_0x14f7a7){return _0x1450ed(_0x14f7a7);},'Vdgzl':_0x596389(0xc6)};if(this[_0x596389(0x117)][_0x596389(0x12b)](_0x11ffe6[_0x596389(0x120)])){if(_0x11ffe6[_0x596389(0xc4)]&&_0x11ffe6[_0x596389(0xc4)][0x0]&&_0x29255e[_0x596389(0xd5)](_0x11ffe6[_0x596389(0xc4)][0x0][_0x596389(0x126)],_0x29255e[_0x596389(0xf6)])){const _0x436f25={};return _0x436f25[_0x596389(0xf3)]=!![],_0x436f25[_0x596389(0xcb)]=[_0x11ffe6],_0x436f25[_0x596389(0x107)]=this['screenshotEventUrl'],_0x436f25;}if(_0x11ffe6[_0x596389(0xc4)]&&_0x29255e[_0x596389(0xd7)](_0x11ffe6[_0x596389(0xc4)][_0x596389(0xc8)],0x0)&&_0x29255e[_0x596389(0xd5)](_0x11ffe6[_0x596389(0xc4)][0x0]['kind'],_0x29255e[_0x596389(0xdb)])&&_0x29255e[_0x596389(0xc3)](_0x11ffe6[_0x596389(0x120)],_0x29255e[_0x596389(0x10e)])){const _0x501bae={};return _0x501bae[_0x596389(0xf3)]=!![],_0x501bae[_0x596389(0xcb)]=[_0x11ffe6],_0x501bae[_0x596389(0x107)]=this['uploadAttachmentUrl'],_0x501bae;}this[_0x596389(0x124)][_0x596389(0xfe)](_0x11ffe6);let _0x34d833=null;const _0x9027de=this['shouldProceed']();_0x9027de&&(_0x29255e[_0x596389(0xf7)](trace,_0x29255e['Vdgzl']),_0x34d833=this['queue'][_0x596389(0xf8)](0x0,BATCH_SIZE),this[_0x596389(0x124)][_0x596389(0xe3)](0x0,BATCH_SIZE),this[_0x596389(0xfb)]());const _0x5ab02f={};return _0x5ab02f[_0x596389(0xf3)]=_0x9027de,_0x5ab02f['proceedWithData']=_0x34d833,_0x5ab02f['proceedWithUrl']=this[_0x596389(0x10c)],_0x5ab02f;}const _0x16d5a6={};return _0x16d5a6[_0x596389(0xf3)]=!![],_0x16d5a6;};[a86_0x1817c0(0x119)]=async()=>{const _0x2a2ac0=a86_0x1817c0,_0x5db969={'XsLfC':_0x2a2ac0(0xf5),'Qkehg':function(_0x3c6d75,_0x3b4fff){return _0x3c6d75>_0x3b4fff;},'RdQSK':'Shutdown-Queue','PecOl':function(_0x5e0c4e,_0x10b42d){return _0x5e0c4e(_0x10b42d);}};await this[_0x2a2ac0(0x127)](),this['removeEventBatchPolling'](_0x5db969[_0x2a2ac0(0xca)]);while(_0x5db969['Qkehg'](this[_0x2a2ac0(0x124)][_0x2a2ac0(0xc8)],0x0)){const _0x44fa79=this[_0x2a2ac0(0x124)][_0x2a2ac0(0xf8)](0x0,BATCH_SIZE);this[_0x2a2ac0(0x124)][_0x2a2ac0(0xe3)](0x0,BATCH_SIZE),await this[_0x2a2ac0(0x11b)](this['eventUrl'],_0x5db969[_0x2a2ac0(0x11a)],_0x44fa79);}_0x5db969[_0x2a2ac0(0xdc)](this['pendingUploads'],0x0)&&_0x5db969[_0x2a2ac0(0x110)](debug,_0x2a2ac0(0x10b)+this[_0x2a2ac0(0x125)]);};['batchAndPostEvents']=async(_0x241712,_0x3c89fa,_0x1458eb)=>{const _0x457d26=a86_0x1817c0,_0x52ae7d={'RWkfy':function(_0x35da4c,_0x4edbd4){return _0x35da4c(_0x4edbd4);},'qUIYf':_0x457d26(0x104),'rUyFl':function(_0x3f7a80){return _0x3f7a80();},'OUSCT':function(_0x762ea8,_0x5b8f7e,_0x494ab3,_0x63a65f,_0x3170c0){return _0x762ea8(_0x5b8f7e,_0x494ab3,_0x63a65f,_0x3170c0);},'QUMKb':'POST','FHHXj':function(_0x40bdc2,_0x446a24){return _0x40bdc2(_0x446a24);},'WjIwW':function(_0x5dbc56,_0x120a55){return _0x5dbc56-_0x120a55;}};let _0x6789e0='';try{_0x6789e0=_0x1458eb[_0x457d26(0x12a)](_0x52bbcb=>'\x27'+_0x52bbcb[_0x457d26(0x120)]+'\x27:'+(nestedKeyValue(_0x52bbcb,[_0x457d26(0x128),_0x457d26(0xe1)])||nestedKeyValue(_0x52bbcb,[_0x457d26(0x103),_0x457d26(0xe1)])))[_0x457d26(0x11e)](','),_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xbb)+_0x3c89fa+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x457d26(0xf9)](util[_0x457d26(0xd0)]('%j',_0x1458eb),_0x52ae7d[_0x457d26(0x102)])+_0x457d26(0xec)+_0x6789e0);}catch(_0x153d92){_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xe4)+util[_0x457d26(0xd0)](_0x153d92)+'}');}const _0x1a856e={'headers':_0x52ae7d[_0x457d26(0x10f)](getDefaultHeaders)};try{const _0x572e2c=await _0x52ae7d['OUSCT'](nodeRequest,_0x52ae7d[_0x457d26(0xee)],_0x241712,_0x1458eb,_0x1a856e);if(_0x572e2c[_0x457d26(0xf0)][_0x457d26(0xc9)]){const _0xa13041={};_0xa13041[_0x457d26(0x109)]=_0x572e2c[_0x457d26(0xf0)][_0x457d26(0xc9)];throw _0xa13041;}else _0x52ae7d[_0x457d26(0xe2)](debug,_0x3c89fa+_0x457d26(0xc1)+_0x6789e0+_0x457d26(0x118)+util[_0x457d26(0xd0)]('%j',_0x572e2c[_0x457d26(0xf0)])),this[_0x457d26(0x125)]=Math[_0x457d26(0x10a)](0x0,_0x52ae7d['WjIwW'](this[_0x457d26(0x125)],_0x1458eb[_0x457d26(0xc8)]));}catch(_0x5c5e20){_0x5c5e20[_0x457d26(0x101)]?_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xdf)+_0x3c89fa+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x5c5e20[_0x457d26(0x101)][_0x457d26(0xea)]+'\x20'+_0x5c5e20['response'][_0x457d26(0x106)]+'\x20'+util['format']('%j',_0x5c5e20[_0x457d26(0x101)])):_0x52ae7d[_0x457d26(0xe2)](debug,_0x457d26(0xdf)+_0x3c89fa+_0x457d26(0xe7)+(_0x5c5e20['message']||_0x5c5e20)),this['pendingUploads']=Math[_0x457d26(0x10a)](0x0,_0x52ae7d[_0x457d26(0x129)](this[_0x457d26(0x125)],_0x1458eb[_0x457d26(0xc8)]));}};[a86_0x1817c0(0x113)]=()=>{const _0x38f344=a86_0x1817c0,_0x55ee11={'GueUS':function(_0x53c6db,_0x2a7ea0){return _0x53c6db>_0x2a7ea0;},'wdQXz':function(_0xbd21d6,_0x493892){return _0xbd21d6(_0x493892);},'eHQah':_0x38f344(0x122),'mKGGr':function(_0x3890fd,_0x4c4a03,_0x3523f4){return _0x3890fd(_0x4c4a03,_0x3523f4);}};this[_0x38f344(0xcc)]=_0x55ee11[_0x38f344(0x11f)](setInterval,async()=>{const _0x138155=_0x38f344;if(_0x55ee11[_0x138155(0x116)](this['queue'][_0x138155(0xc8)],0x0)){_0x55ee11[_0x138155(0x105)](trace,_0x138155(0xc2)+this[_0x138155(0x124)][_0x138155(0xc8)]);const _0x17984b=this[_0x138155(0x124)][_0x138155(0xf8)](0x0,BATCH_SIZE);this[_0x138155(0x124)][_0x138155(0xe3)](0x0,BATCH_SIZE),await this[_0x138155(0x11b)](this[_0x138155(0x10c)],_0x55ee11[_0x138155(0xdd)],_0x17984b),_0x55ee11[_0x138155(0x105)](trace,_0x138155(0xbe)+this[_0x138155(0x124)][_0x138155(0xc8)]);}},BATCH_INTERVAL);};[a86_0x1817c0(0xfb)]=()=>{const _0x4d80a1=a86_0x1817c0,_0x38284c={};_0x38284c[_0x4d80a1(0xed)]='RESETTING';const _0x3d7b33=_0x38284c;this['removeEventBatchPolling'](_0x3d7b33[_0x4d80a1(0xed)]),this[_0x4d80a1(0x113)]();};[a86_0x1817c0(0xf4)]=_0x3d4eaf=>{const _0x31fefc=a86_0x1817c0,_0x5216e4={'rvdGj':function(_0x52491e,_0x3ef51d){return _0x52491e(_0x3ef51d);},'lvSgh':function(_0x2b2e6e,_0x418548){return _0x2b2e6e===_0x418548;},'FhRov':_0x31fefc(0xf5)};this[_0x31fefc(0xcc)]&&(_0x5216e4['rvdGj'](clearInterval,this[_0x31fefc(0xcc)]),this[_0x31fefc(0xcc)]=null,_0x5216e4['lvSgh'](_0x3d4eaf,_0x5216e4[_0x31fefc(0xbd)])&&(this[_0x31fefc(0xd1)]=![]));};['shouldProceed']=()=>{const _0x3f0be3=a86_0x1817c0,_0x4ce6d7={};_0x4ce6d7[_0x3f0be3(0xd2)]=function(_0x28191b,_0x4e7e89){return _0x28191b>=_0x4e7e89;};const _0x14bcc5=_0x4ce6d7;return _0x14bcc5['AlQTE'](this[_0x3f0be3(0x124)]['length'],BATCH_SIZE);};async[a86_0x1817c0(0x127)](_0xfe819f=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4c3fa3=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5ba93d=a86_0x1817c0,_0x1f202b={'vudgs':function(_0x2a8f86,_0x71c2fe){return _0x2a8f86<=_0x71c2fe;},'btrOm':function(_0x273ead,_0x1c5ec6){return _0x273ead(_0x1c5ec6);},'tGbGA':function(_0x584466,_0x485e17){return _0x584466-_0x485e17;}};if(_0x1f202b[_0x5ba93d(0xc7)](this[_0x5ba93d(0x125)],0x0)||_0x1f202b['vudgs'](_0xfe819f,0x0))return;return await _0x1f202b[_0x5ba93d(0x11c)](sleep,_0x4c3fa3),this['uploadPending'](_0x1f202b['tGbGA'](_0xfe819f,_0x4c3fa3));}}module[a86_0x1817c0(0xff)]=RequestQueueHandler;
@@ -1 +1 @@
1
- const a87_0x393206=a87_0xf836;function a87_0x3b02(){const _0x3edce3=['true','message','hQAEf','HMFlc','voGlJ','BS_TESTOPS_BUILD_HASHED_ID','max','frameworkName','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','rbfLR','frameworkVersion','4830FAeICc','success','cwd','TBSSH','\x20retry\x20runs\x20exceeded','387DLPUbt','UCDcT','X-BSTACK-TESTOPS','./constants','ZcFmo','EdYTy','getLogTag','allow_screenshots','error','logs','resolve','Hook_End_Upload','DoBBo','../logger','CREDENTIALS_FOR_CRASH_REPORTING','EXCEPTION\x20IN\x20','null','event_type','EHpYu','username','test_run_uuid','jwt','lgPXA','3852796Saudcu','getAccessKey','SxJHD','Retry\x20runs\x20exceeded','Processing\x20event\x20-\x20\x27','nestedKeyValue','util','launch','Log_Upload','IkMMO','OhRUp','Bearer\x20','BS_TESTOPS_BUILD_COMPLETED','TestRunSkipped','start','68jCxmDb','ezuxo','hHKTM','BS_A11Y_JWT','TestRunStarted','BROWSERSTACK_RERUN','projectName','vdnOF','3155682YrFzBm','AnSyg','nHrmm','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','Eamrq','uploadEventData','syCtu','getUserName','rljLZ','CBT_Upload','vlddN','SMOxg','Test_Start_Upload','314770YfqZIi','eventUrl','38129168eUpFjF','ERROR_INVALID_CREDENTIALS','getInstance','VELwm','NoTyL','krDiT','LmlUi','fMilv','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','BROWSERSTACK_TESTHUB_JWT','VqFAS','ALxCj','10807GSthyw','statusText','10792vpnKrc','YeDFk','toString','debug','Quzzm','basename','exports','CarpJ','add','password','sendTraceZip','SzshD','BS_TESTOPS_JWT','wSIvW','winstonLogger','Test_Skipped_Upload','waitForBuildStatus','KMgzt','ITpvW','POST','DHaWs','BSBls','5xZxZsw','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','OkhYv','ekmlA','BROWSERSTACK_TESTHUB_UUID','pendingUploads','./utils','length','format','buildName','hook_run','uuid','ERROR_SDK_DEPRECATED','test_run','application/json','npNEs','hgsCB','qfbPy','requestQueueHandler','json','XgUQE','HookRunStarted','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','150780xeRkiJ','env','Sending\x20trace\x20zip\x20for\x20test:\x20','HookRunFinished','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','TestRunFinished','LogCreated','app','BS_TESTOPS_ALLOW_SCREENSHOTS','pWkyA','MZOyQ','KpZyH','getHostInfo','bkJDf','browserstackAutomation','false','data','IFKKl','ERROR_ACCESS_DENIED','build_hashed_id','hfVqd','response','api/v1/builds','Pecus','dqeFR','status','errorType','JYpOX',']\x20event\x20successful!'];a87_0x3b02=function(){return _0x3edce3;};return a87_0x3b02();}function a87_0xf836(_0x5c4685,_0x51145c){const _0x3b02ce=a87_0x3b02();return a87_0xf836=function(_0xf836e8,_0x46218b){_0xf836e8=_0xf836e8-0x170;let _0x50fda6=_0x3b02ce[_0xf836e8];return _0x50fda6;},a87_0xf836(_0x5c4685,_0x51145c);}(function(_0x20e9e5,_0x57c840){const _0x49f948=a87_0xf836,_0x47bfec=_0x20e9e5();while(!![]){try{const _0x5a1925=parseInt(_0x49f948(0x1b6))/0x1*(parseInt(_0x49f948(0x193))/0x2)+parseInt(_0x49f948(0x1e5))/0x3+parseInt(_0x49f948(0x184))/0x4+parseInt(_0x49f948(0x1ce))/0x5*(parseInt(_0x49f948(0x19b))/0x6)+parseInt(_0x49f948(0x20d))/0x7*(parseInt(_0x49f948(0x1b8))/0x8)+-parseInt(_0x49f948(0x212))/0x9*(-parseInt(_0x49f948(0x1a8))/0xa)+-parseInt(_0x49f948(0x1aa))/0xb;if(_0x5a1925===_0x57c840)break;else _0x47bfec['push'](_0x47bfec['shift']());}catch(_0x402b9f){_0x47bfec['push'](_0x47bfec['shift']());}}}(a87_0x3b02,0xb0f8d));const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x393206(0x1d4)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x393206(0x170)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0x393206(0x17a))[a87_0x393206(0x1c6)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0x393206(0x18a));class SessionHandler{static [a87_0x393206(0x1e0)]=RequestQueueHandler[a87_0x393206(0x1ac)]();static async[a87_0x393206(0x18b)](_0xab2769,_0x1bff91){const _0x2459e5=a87_0x393206,_0x1abff5={'OhRUp':function(_0x5c26c1,_0x371c17){return _0x5c26c1||_0x371c17;},'VqFAS':function(_0x446c5b,_0x232188){return _0x446c5b===_0x232188;},'qfbPy':function(_0x36abd2,_0x4f6337){return _0x36abd2(_0x4f6337);},'nHrmm':_0x2459e5(0x20a),'IdpbA':_0x2459e5(0x1f4),'Eamrq':_0x2459e5(0x1e1),'YeDFk':function(_0x4dced7,_0x2a91fa){return _0x4dced7(_0x2a91fa);},'BSBls':function(_0x6295f8,_0x4d30c0,_0x1679f5,_0x39c59e,_0xdb40e){return _0x6295f8(_0x4d30c0,_0x1679f5,_0x39c59e,_0xdb40e);},'DHaWs':_0x2459e5(0x1cb),'bkJDf':_0x2459e5(0x1fb),'ahoxF':function(_0xd30e8e,_0x2e4e65){return _0xd30e8e(_0x2e4e65);},'XgUQE':'Build\x20creation\x20successful!','XycSj':function(_0x24e444){return _0x24e444();},'rbfLR':_0x2459e5(0x202),'Quzzm':'null','wSIvW':_0x2459e5(0x1ab),'dkNIO':_0x2459e5(0x1f7),'IkMMO':_0x2459e5(0x1da)},_0x4b7ac7=bsSetupHelper[_0x2459e5(0x1a2)](_0xab2769),_0x49108f=bsSetupHelper[_0x2459e5(0x185)](_0xab2769),_0x56dcf3=_0x1abff5[_0x2459e5(0x18e)](_0x4b7ac7,'')+':'+_0x1abff5['OhRUp'](_0x49108f,'');if(_0x1abff5[_0x2459e5(0x1b4)](_0x56dcf3,':'))return _0x1abff5[_0x2459e5(0x1df)](debug,_0x1abff5[_0x2459e5(0x19d)]),process[_0x2459e5(0x1e6)]['BS_TESTOPS_BUILD_COMPLETED']=_0x1abff5['IdpbA'],[null,null];let _0x36e72f=![],_0x501296=![];if(_0xab2769[_0x2459e5(0x1f3)]&&_0xab2769[_0x2459e5(0x1ec)])_0x501296=!![];else _0xab2769['browserstackAutomation']&&(_0x36e72f=!![]);try{const _0x2778b9={'format':_0x1abff5[_0x2459e5(0x19f)],'project_name':_0xab2769[_0x2459e5(0x199)]||'','name':_0xab2769[_0x2459e5(0x1d7)]||path[_0x2459e5(0x1bd)](path[_0x2459e5(0x177)](process[_0x2459e5(0x20f)]())),'build_identifier':_0xab2769['buildIdentifier'],'description':_0xab2769['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x1abff5[_0x2459e5(0x1df)](getCustomTags,_0xab2769),'host_info':bsSetupHelper[_0x2459e5(0x1f1)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x2459e5(0x1e6)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x2459e5(0x1e6)][_0x2459e5(0x198)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x1bff91[_0x2459e5(0x209)],'frameworkVersion':_0x1bff91[_0x2459e5(0x20c)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x1abff5[_0x2459e5(0x1b9)](getProductMap,_0xab2769)},_0x277324={};_0x277324[_0x2459e5(0x180)]=_0x4b7ac7,_0x277324[_0x2459e5(0x1c1)]=_0x49108f;const _0x384f2b={'auth':_0x277324,'headers':_0x1abff5[_0x2459e5(0x1b9)](getDefaultHeaders,![])},_0x359f04=await _0x1abff5[_0x2459e5(0x1cd)](nodeRequest,_0x1abff5[_0x2459e5(0x1cc)],_0x1abff5[_0x2459e5(0x1f2)],_0x2778b9,_0x384f2b);_0x1abff5['ahoxF'](debug,_0x1abff5[_0x2459e5(0x1e2)]);const _0x4b3ad2=_0x359f04[_0x2459e5(0x1f5)];_0x4b3ad2[_0x2459e5(0x1f8)]&&(process[_0x2459e5(0x1e6)][_0x2459e5(0x1d2)]=_0x4b3ad2[_0x2459e5(0x1f8)]);if(_0x1abff5['XycSj'](isTestObservabilitySession)){process['env'][_0x2459e5(0x190)]=_0x1abff5[_0x2459e5(0x20b)];if(_0x4b3ad2[_0x2459e5(0x182)]){process[_0x2459e5(0x1e6)][_0x2459e5(0x1c4)]=_0x4b3ad2[_0x2459e5(0x182)];const _0x2eb4b8={};_0x2eb4b8[_0x2459e5(0x180)]=_0x4b7ac7,_0x2eb4b8[_0x2459e5(0x1c1)]=_0x49108f,process[_0x2459e5(0x1e6)][_0x2459e5(0x17b)]=JSON['stringify'](_0x2eb4b8);}_0x4b3ad2[_0x2459e5(0x1f8)]&&(process['env'][_0x2459e5(0x207)]=_0x4b3ad2[_0x2459e5(0x1f8)]),_0x4b3ad2[_0x2459e5(0x174)]&&(process[_0x2459e5(0x1e6)][_0x2459e5(0x1ed)]=_0x4b3ad2[_0x2459e5(0x174)][_0x2459e5(0x1ba)]());}return[_0x359f04[_0x2459e5(0x1f5)]['jwt'],_0x359f04[_0x2459e5(0x1f5)]['build_hashed_id'],_0x359f04['data'][_0x2459e5(0x174)]];}catch(_0x4671dc){process['env'][_0x2459e5(0x1d2)]=_0x1abff5['Quzzm'],process[_0x2459e5(0x1e6)][_0x2459e5(0x190)]=_0x1abff5['IdpbA'],process[_0x2459e5(0x1e6)][_0x2459e5(0x1c4)]=_0x1abff5[_0x2459e5(0x1bc)],process['env'][_0x2459e5(0x207)]=_0x1abff5['Quzzm'],process[_0x2459e5(0x1e6)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x1abff5[_0x2459e5(0x1bc)];_0x4671dc[_0x2459e5(0x1fa)]?_0x1abff5[_0x2459e5(0x1b9)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x4671dc['response']['status']+'\x20'+_0x4671dc['response'][_0x2459e5(0x1b7)]+'\x20'+JSON['stringify'](_0x4671dc[_0x2459e5(0x1fa)]['data'])):_0x1abff5[_0x2459e5(0x1df)](debug,_0x2459e5(0x1cf)+(_0x4671dc[_0x2459e5(0x203)]||_0x4671dc));if(_0x4671dc&&_0x4671dc[_0x2459e5(0x203)]){const _0x35679c=_0x4671dc[_0x2459e5(0x203)];switch(_0x4671dc[_0x2459e5(0x1ff)]){case _0x1abff5[_0x2459e5(0x1c5)]:logger[_0x2459e5(0x175)](_0x35679c);break;case _0x1abff5['dkNIO']:logger['info'](_0x35679c);break;case _0x1abff5[_0x2459e5(0x18d)]:logger[_0x2459e5(0x175)](_0x35679c);break;default:logger[_0x2459e5(0x175)](_0x35679c);}}else console['info'](_0x2459e5(0x1e9)+_0x4671dc);return[null,null,null];}}static async[a87_0x393206(0x1c8)](){const _0x413f1f=a87_0x393206,_0x29ae1f={'npNEs':_0x413f1f(0x202),'VELwm':_0x413f1f(0x1f4),'UpZcf':function(_0x236e79,_0x1736ef){return _0x236e79(_0x1736ef);}},_0x329140=process[_0x413f1f(0x1e6)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x29ae1f['npNEs'],_0x29ae1f['VELwm']]['includes'](_0x329140))return;while([_0x29ae1f[_0x413f1f(0x1dd)],_0x29ae1f[_0x413f1f(0x1ad)]]['includes'](_0x329140)){await _0x29ae1f['UpZcf'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x393206(0x173)](_0x48e891){const _0x156a0b=a87_0x393206,_0x3b17b5={};_0x3b17b5[_0x156a0b(0x194)]=_0x156a0b(0x1a7),_0x3b17b5[_0x156a0b(0x1a3)]='Test_End_Upload',_0x3b17b5['gmSkN']=_0x156a0b(0x1c7),_0x3b17b5['pWkyA']=_0x156a0b(0x18c),_0x3b17b5[_0x156a0b(0x1af)]='Hook_Start_Upload',_0x3b17b5[_0x156a0b(0x1a5)]=_0x156a0b(0x178),_0x3b17b5[_0x156a0b(0x200)]=_0x156a0b(0x1a4);const _0x304f2e=_0x3b17b5,_0x3b8b23={};return _0x3b8b23[_0x156a0b(0x197)]=_0x304f2e[_0x156a0b(0x194)],_0x3b8b23[_0x156a0b(0x1ea)]=_0x304f2e['rljLZ'],_0x3b8b23[_0x156a0b(0x191)]=_0x304f2e['gmSkN'],_0x3b8b23[_0x156a0b(0x1eb)]=_0x304f2e[_0x156a0b(0x1ee)],_0x3b8b23[_0x156a0b(0x1e3)]=_0x304f2e[_0x156a0b(0x1af)],_0x3b8b23[_0x156a0b(0x1e8)]=_0x304f2e['vlddN'],_0x3b8b23['CBTSessionCreated']=_0x304f2e[_0x156a0b(0x200)],_0x3b8b23[_0x48e891['event_type']];}static async['sendEventData'](_0xeb850c,_0x7afadc=0x0,_0x42d959=null){const _0x6f3823=a87_0x393206,_0x534031={'gObIj':function(_0x59b1d3,_0x3c1b8f){return _0x59b1d3===_0x3c1b8f;},'ekmlA':_0x6f3823(0x1c2),'SzshD':function(_0x3e9574,_0x5ebbc4){return _0x3e9574!==_0x5ebbc4;},'hQAEf':_0x6f3823(0x1dc),'ybPTP':_0x6f3823(0x202),'fMilv':function(_0x47f4dd,_0x2ed95e){return _0x47f4dd===_0x2ed95e;},'LmlUi':function(_0x4f0303,_0xafc12a,_0x2f9ce3,_0x31ed7d,_0xb58860){return _0x4f0303(_0xafc12a,_0x2f9ce3,_0x31ed7d,_0xb58860);},'EHpYu':_0x6f3823(0x1cb),'ZcFmo':function(_0x23dacd,_0x2d7a45){return _0x23dacd(_0x2d7a45);},'ALxCj':function(_0x3a7ef6,_0x1851ae){return _0x3a7ef6!==_0x1851ae;},'voGlJ':'Batch-Queue','mnzUP':function(_0x332a11,_0x23c3ab){return _0x332a11-_0x23c3ab;},'UCDcT':function(_0x25eb67,_0x1e8461){return _0x25eb67===_0x1e8461;},'KpZyH':'api/v1/event','TBSSH':_0x6f3823(0x20e),'KMgzt':function(_0x1f3d6a,_0x1cdb10){return _0x1f3d6a!==_0x1cdb10;},'oqmhB':function(_0x48870b,_0x10e440){return _0x48870b!==_0x10e440;},'DoBBo':function(_0x471918,_0x547680){return _0x471918-_0x547680;},'OkhYv':_0x6f3823(0x175)};_0x534031['gObIj'](_0x42d959,_0x534031[_0x6f3823(0x1d1)])&&logger['debug'](_0x6f3823(0x1e7)+_0xeb850c[_0x6f3823(0x176)][0x0][_0x6f3823(0x181)]);const _0x6715a4=await this[_0x6f3823(0x173)](_0xeb850c);let _0x668760=_0xeb850c,_0x2e468a=EVENT_ENDPOINT;_0x534031[_0x6f3823(0x1c3)](_0x42d959,_0x534031[_0x6f3823(0x1d1)])&&this[_0x6f3823(0x1e0)][_0x6f3823(0x192)]();const {shouldProceed:_0x27aefe,proceedWithData:_0xd43067,proceedWithUrl:_0x476f4f}=this[_0x6f3823(0x1e0)][_0x6f3823(0x1c0)](_0xeb850c);if(!_0x27aefe)return;else _0xd43067&&(_0x668760=_0xd43067,_0x2e468a=_0x476f4f);const _0x7f4a1f={};_0x7f4a1f['Authorization']=_0x6f3823(0x18f)+process[_0x6f3823(0x1e6)]['BROWSERSTACK_TESTHUB_JWT'],_0x7f4a1f['Content-Type']=_0x534031[_0x6f3823(0x204)],_0x7f4a1f[_0x6f3823(0x214)]=_0x534031['ybPTP'];const _0x57aef7={};_0x57aef7['headers']=_0x7f4a1f;const _0x39d6bb=_0x57aef7;let _0xf8d61e;try{_0x534031[_0x6f3823(0x1b1)](_0x42d959,_0x534031[_0x6f3823(0x1d1)])?(logger[_0x6f3823(0x1bb)](_0x6f3823(0x1e4)+_0xeb850c?.[_0x6f3823(0x176)][0x0]?.[_0x6f3823(0x181)]),_0xf8d61e=await _0x534031['LmlUi'](asyncAwaitNodeReq,_0x534031[_0x6f3823(0x17f)],_0x2e468a,_0x668760,_0x39d6bb),logger['debug']('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0xeb850c?.[_0x6f3823(0x176)][0x0]?.[_0x6f3823(0x181)])):_0xf8d61e=await _0x534031[_0x6f3823(0x1b0)](nodeRequest,_0x534031[_0x6f3823(0x17f)],_0x2e468a,_0x668760,_0x39d6bb);if(_0xf8d61e[_0x6f3823(0x1f5)][_0x6f3823(0x175)]){const _0x17d1c4={};_0x17d1c4[_0x6f3823(0x203)]=_0xf8d61e['data']['error'];throw _0x17d1c4;}else{_0x534031['ZcFmo'](debug,(_0x534031[_0x6f3823(0x1b5)](_0x2e468a,this[_0x6f3823(0x1e0)][_0x6f3823(0x1a9)])?_0x6715a4:_0x534031[_0x6f3823(0x206)])+'['+_0x7afadc+_0x6f3823(0x201)),this[_0x6f3823(0x1e0)][_0x6f3823(0x1d3)]=Math['max'](0x0,_0x534031['mnzUP'](this[_0x6f3823(0x1e0)]['pendingUploads'],_0x534031[_0x6f3823(0x213)](_0x2e468a,_0x534031[_0x6f3823(0x1f0)])?0x1:_0x668760['length']));const _0x30c963={};return _0x30c963[_0x6f3823(0x1fe)]=_0x534031[_0x6f3823(0x210)],_0x30c963[_0x6f3823(0x203)]='',_0x30c963;}}catch(_0x3279e4){_0x3279e4[_0x6f3823(0x1fa)]?_0x534031[_0x6f3823(0x171)](debug,_0x6f3823(0x17c)+(_0x534031[_0x6f3823(0x1c9)](_0x2e468a,this[_0x6f3823(0x1e0)][_0x6f3823(0x1a9)])?_0x6715a4:_0x534031[_0x6f3823(0x206)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x3279e4[_0x6f3823(0x1fa)][_0x6f3823(0x1fe)]+'\x20'+_0x3279e4[_0x6f3823(0x1fa)][_0x6f3823(0x1b7)]+'\x20'+util['format'](_0x3279e4[_0x6f3823(0x1fa)][_0x6f3823(0x1f5)])):_0x534031['ZcFmo'](debug,_0x6f3823(0x17c)+(_0x534031['oqmhB'](_0x2e468a,this[_0x6f3823(0x1e0)][_0x6f3823(0x1a9)])?_0x6715a4:_0x534031[_0x6f3823(0x206)])+_0x6f3823(0x1b2)+util[_0x6f3823(0x1d6)](_0x3279e4));this[_0x6f3823(0x1e0)][_0x6f3823(0x1d3)]=Math[_0x6f3823(0x208)](0x0,_0x534031[_0x6f3823(0x179)](this[_0x6f3823(0x1e0)]['pendingUploads'],_0x534031[_0x6f3823(0x213)](_0x2e468a,_0x534031[_0x6f3823(0x1f0)])?0x1:_0x668760[_0x6f3823(0x1d5)]));const _0x266b90={};return _0x266b90[_0x6f3823(0x1fe)]=_0x534031[_0x6f3823(0x1d0)],_0x266b90[_0x6f3823(0x203)]=_0x3279e4[_0x6f3823(0x203)]||(_0x3279e4[_0x6f3823(0x1fa)]?_0x3279e4[_0x6f3823(0x1fa)][_0x6f3823(0x1fe)]+':'+_0x3279e4[_0x6f3823(0x1fa)]['statusText']:_0x3279e4),_0x266b90;}}static async['uploadEventData'](_0x3c8a0c,_0x2eedaa=0x0){const _0xe5df6=a87_0x393206,_0x275bf3={'SMOxg':function(_0x17dc8c,_0x543e2d){return _0x17dc8c+_0x543e2d;},'SxJHD':function(_0x401b7f,_0x139fee){return _0x401b7f(_0x139fee);},'xBIGz':_0xe5df6(0x1db),'syCtu':_0xe5df6(0x1d9),'EdYTy':_0xe5df6(0x1d8),'HMFlc':function(_0x441496,_0x21cf50,_0x294ab6){return _0x441496(_0x21cf50,_0x294ab6);},'vdnOF':_0xe5df6(0x1a0),'lgPXA':function(_0x217dad,_0x30490f){return _0x217dad===_0x30490f;},'hgsCB':function(_0x5b7193,_0x2a5b3b){return _0x5b7193!==_0x2a5b3b;},'dqeFR':_0xe5df6(0x17d),'CarpJ':_0xe5df6(0x202),'MZOyQ':function(_0x351b19){return _0x351b19();},'AnSyg':function(_0x291a2a,_0x4052af){return _0x291a2a===_0x4052af;},'hHKTM':function(_0xe9443,_0x1f9dc1){return _0xe9443-_0x1f9dc1;},'IFKKl':_0xe5df6(0x175),'hfVqd':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','Pecus':function(_0x239d6c,_0x30ae4e){return _0x239d6c>=_0x30ae4e;},'ITpvW':function(_0x2a7955,_0x2b80df){return _0x2a7955!==_0x2b80df;},'DWyvq':function(_0x2a662c,_0x474d1f){return _0x2a662c-_0x474d1f;},'NoTyL':_0xe5df6(0x187),'BYCzP':_0xe5df6(0x1f4)},_0x4fea3c=this['getLogTag'](_0x3c8a0c);_0x275bf3['SxJHD'](trace,_0xe5df6(0x188)+_0x3c8a0c['event_type']+'\x27\x20'+(bsSetupHelper[_0xe5df6(0x189)](_0x3c8a0c,[_0x275bf3['xBIGz'],_0x275bf3['syCtu']])||bsSetupHelper[_0xe5df6(0x189)](_0x3c8a0c,[_0x275bf3[_0xe5df6(0x172)],_0x275bf3[_0xe5df6(0x1a1)]])));if(!_0x275bf3[_0xe5df6(0x205)](shouldProcessEventForTesthub,_0x3c8a0c[_0xe5df6(0x17e)],_0x275bf3[_0xe5df6(0x19a)]))return;_0x275bf3[_0xe5df6(0x183)](_0x2eedaa,0x0)&&process[_0xe5df6(0x1e6)][_0xe5df6(0x1b3)]&&_0x275bf3[_0xe5df6(0x1de)](process[_0xe5df6(0x1e6)][_0xe5df6(0x1b3)],_0x275bf3[_0xe5df6(0x1fd)])&&(this[_0xe5df6(0x1e0)][_0xe5df6(0x1d3)]+=0x1);if(_0x275bf3[_0xe5df6(0x183)](process[_0xe5df6(0x1e6)][_0xe5df6(0x190)],_0x275bf3[_0xe5df6(0x1bf)])||process[_0xe5df6(0x1e6)][_0xe5df6(0x196)]||_0x275bf3[_0xe5df6(0x1ef)](isPercyBuild)){if(_0x275bf3[_0xe5df6(0x19c)](process[_0xe5df6(0x1e6)][_0xe5df6(0x1b3)],_0x275bf3[_0xe5df6(0x1fd)])){_0x275bf3[_0xe5df6(0x186)](debug,_0xe5df6(0x17c)+_0x4fea3c+_0xe5df6(0x19e)),this['requestQueueHandler']['pendingUploads']=Math[_0xe5df6(0x208)](0x0,_0x275bf3[_0xe5df6(0x195)](this[_0xe5df6(0x1e0)][_0xe5df6(0x1d3)],0x1));const _0x24973d={};return _0x24973d['status']=_0x275bf3[_0xe5df6(0x1f6)],_0x24973d[_0xe5df6(0x203)]=_0x275bf3[_0xe5df6(0x1f9)],_0x24973d;}return await this['sendEventData'](_0x3c8a0c,_0x2eedaa);}else{if(_0x275bf3[_0xe5df6(0x1fc)](_0x2eedaa,0x5)){_0x275bf3['SxJHD'](debug,_0xe5df6(0x17c)+_0x4fea3c+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x4fea3c+_0xe5df6(0x211));_0x275bf3[_0xe5df6(0x1ca)](process[_0xe5df6(0x1e6)][_0xe5df6(0x1b3)],_0x275bf3[_0xe5df6(0x1fd)])&&(this[_0xe5df6(0x1e0)][_0xe5df6(0x1d3)]=Math[_0xe5df6(0x208)](0x0,_0x275bf3['DWyvq'](this[_0xe5df6(0x1e0)]['pendingUploads'],0x1)));const _0x4fe6d4={};return _0x4fe6d4[_0xe5df6(0x1fe)]=_0x275bf3[_0xe5df6(0x1f6)],_0x4fe6d4[_0xe5df6(0x203)]=_0x275bf3[_0xe5df6(0x1ae)],_0x4fe6d4;}else _0x275bf3['hgsCB'](process[_0xe5df6(0x1e6)][_0xe5df6(0x190)],_0x275bf3['BYCzP'])&&_0x275bf3[_0xe5df6(0x205)](setTimeout,()=>{const _0x521d81=_0xe5df6;this['uploadEventData'](_0x3c8a0c,_0x275bf3[_0x521d81(0x1a6)](_0x2eedaa,0x1));},0x3e8);}}}module[a87_0x393206(0x1be)]=SessionHandler;
1
+ function a87_0x4685(){const _0x34cf86=['DjVyD','Build\x20creation\x20successful!','oqhBO','EcfvQ','test_run','false','KVsVD','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','JqKCf','3147CBpift','HookRunFinished','Retry\x20runs\x20exceeded','5HCGHZH','info','message','eVnuH','status','Processing\x20event\x20-\x20\x27','username','bJkxo','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','OSgeJ','TestRunFinished','330592VSGinW','inEto','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','968zelCmU','includes','getUserName','hook_run','./requestQueueHandler','CBkQS','Log_Upload','ERROR_ACCESS_DENIED','LMHiz','wpnVv','NEWTK','3122874GlSydv','uvJXi','QTMja','getHostInfo','oLeiJ','getInstance','statusText','eventUrl','./constants','ICgsV','frameworkVersion','getAccessKey','success','getGitMetaData','OtCeL','HookRunStarted','data','json','allow_screenshots','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','QLLzy','EXCEPTION\x20IN\x20','MeOPy','GGdGC','true','\x20retry\x20runs\x20exceeded','viled','BS_TESTOPS_BUILD_COMPLETED','SlESe','test_run_uuid','CBTSessionCreated','build_hashed_id','yzBuK','vWiEq','jwt','lWfgk','cwd','../helper','winstonLogger','../../helpers/testhub/utils','api/v1/builds','start','6462740AhnEBS','buildIdentifier','FtCQh','projectName','uploadEventData','541467dUIXKX','KigCd','NPUkR','BS_TESTOPS_BUILD_HASHED_ID','VzsCX','error','TIQku','QfmCc','TSoGC','headers','TQjIR','null','KZflA','POST','tnZhw','BS_TESTOPS_ALLOW_SCREENSHOTS','length','ERROR_INVALID_CREDENTIALS','qAXsr','cPOFm','frameworkName','BROWSERSTACK_TESTHUB_UUID','ERROR_SDK_DEPRECATED','bkIqQ','Authorization','browserstackAutomation','eQMEc','sendTraceZip','Test_Start_Upload','jIRym','nestedKeyValue','GSpZX','cEpAD','Test_End_Upload','BROWSERSTACK_TESTHUB_JWT','env','BROWSERSTACK_RERUN','Batch-Queue','HUNkz','mnZaL','requestQueueHandler','AVMte','toISOString','gUerP','./utils','CRiHe','jYsDu','IcqtG','../logger','api/v1/event','stringify','BS_TESTOPS_JWT','util','8309nOmJTG','toString','nRlay','basename','pfQDF','iLqSP','logs','cdTTJ','irYQG','exports','456QPPoHS','Mhliw','debug','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Sending\x20trace\x20zip\x20for\x20test:\x20','CBT_Upload','sqgvy','JOlMR','BS_A11Y_JWT','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','launch','getCiInfo','DrLPV','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','pendingUploads','password','event_type','format','response','gDNxO','1985814AplReZ','koCWV','MpYik','dbPnb','sendEventData','NZONt','Hook_End_Upload','waitForBuildStatus','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','getLogTag','max'];a87_0x4685=function(){return _0x34cf86;};return a87_0x4685();}const a87_0x3656f6=a87_0x486c;(function(_0x1ff8f9,_0x12d4a4){const _0x5c9c7a=a87_0x486c,_0xc62f5a=_0x1ff8f9();while(!![]){try{const _0x132223=parseInt(_0x5c9c7a(0x13b))/0x1+parseInt(_0x5c9c7a(0xfe))/0x2+parseInt(_0x5c9c7a(0xf0))/0x3*(parseInt(_0x5c9c7a(0xc8))/0x4)+-parseInt(_0x5c9c7a(0xf3))/0x5*(-parseInt(_0x5c9c7a(0xdc))/0x6)+-parseInt(_0x5c9c7a(0xbe))/0x7*(-parseInt(_0x5c9c7a(0x101))/0x8)+-parseInt(_0x5c9c7a(0x10c))/0x9+-parseInt(_0x5c9c7a(0x136))/0xa;if(_0x132223===_0x12d4a4)break;else _0xc62f5a['push'](_0xc62f5a['shift']());}catch(_0x32bedb){_0xc62f5a['push'](_0xc62f5a['shift']());}}}(a87_0x4685,0x4b1e5));const bsSetupHelper=require(a87_0x3656f6(0x131)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x3656f6(0xb5)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x3656f6(0x114)),RequestQueueHandler=require(a87_0x3656f6(0x105)),logger=require(a87_0x3656f6(0xb9))[a87_0x3656f6(0x132)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x3656f6(0x133)),util=require(a87_0x3656f6(0xbd));function a87_0x486c(_0x57b99f,_0xd98f33){const _0x4685c1=a87_0x4685();return a87_0x486c=function(_0x486c4e,_0x134f43){_0x486c4e=_0x486c4e-0x9a;let _0x5ec59e=_0x4685c1[_0x486c4e];return _0x5ec59e;},a87_0x486c(_0x57b99f,_0xd98f33);}class SessionHandler{static [a87_0x3656f6(0xb1)]=RequestQueueHandler[a87_0x3656f6(0x111)]();static async[a87_0x3656f6(0xd2)](_0x1f0caa,_0x3d6341){const _0x549204=a87_0x3656f6,_0x25fe80={'PbeKL':function(_0x23a70c,_0x9b348e){return _0x23a70c||_0x9b348e;},'FtCQh':function(_0x4ed53f,_0x10cef4){return _0x4ed53f||_0x10cef4;},'CRiHe':function(_0x2c61eb,_0x45afe0){return _0x2c61eb===_0x45afe0;},'lWfgk':function(_0x2f22af,_0x7e3763){return _0x2f22af(_0x7e3763);},'NEWTK':_0x549204(0x100),'AVMte':_0x549204(0xec),'JqKCf':_0x549204(0x11d),'eQMEc':function(_0x15b8fb,_0x99523f){return _0x15b8fb(_0x99523f);},'inEto':function(_0x1347fb,_0x324068,_0x1bb56a,_0x89cea1,_0x181034){return _0x1347fb(_0x324068,_0x1bb56a,_0x89cea1,_0x181034);},'tJjPK':_0x549204(0x148),'uvJXi':_0x549204(0x134),'gDNxO':_0x549204(0xe8),'tnZhw':function(_0x27a8e4){return _0x27a8e4();},'DjVyD':_0x549204(0x124),'QTMja':_0x549204(0x146),'jYsDu':function(_0x5d8d88,_0x85a9f5){return _0x5d8d88(_0x85a9f5);},'RzGci':function(_0x55ae69,_0x26f91f){return _0x55ae69(_0x26f91f);},'yvWCu':_0x549204(0x9a),'SlESe':_0x549204(0x108),'YoXLW':_0x549204(0x9f)},_0x33912b=bsSetupHelper[_0x549204(0x103)](_0x1f0caa),_0x6b789d=bsSetupHelper[_0x549204(0x117)](_0x1f0caa),_0x182b21=_0x25fe80['PbeKL'](_0x33912b,'')+':'+_0x25fe80[_0x549204(0x138)](_0x6b789d,'');if(_0x25fe80[_0x549204(0xb6)](_0x182b21,':'))return _0x25fe80[_0x549204(0x12f)](debug,_0x25fe80[_0x549204(0x10b)]),process[_0x549204(0xac)][_0x549204(0x127)]=_0x25fe80[_0x549204(0xb2)],[null,null];let _0x3b397a=![],_0x3b205d=![];if(_0x1f0caa['browserstackAutomation']&&_0x1f0caa['app'])_0x3b205d=!![];else _0x1f0caa[_0x549204(0xa2)]&&(_0x3b397a=!![]);try{const _0x2769cb={'format':_0x25fe80[_0x549204(0xef)],'project_name':_0x1f0caa[_0x549204(0x139)]||'','name':_0x1f0caa['buildName']||path[_0x549204(0xc1)](path['resolve'](process[_0x549204(0x130)]())),'build_identifier':_0x1f0caa[_0x549204(0x137)],'description':_0x1f0caa['buildDescription']||'','start_time':new Date()[_0x549204(0xb3)](),'tags':_0x25fe80['lWfgk'](getCustomTags,_0x1f0caa),'host_info':bsSetupHelper[_0x549204(0x10f)](),'ci_info':bsSetupHelper[_0x549204(0xd3)](),'build_run_identifier':process[_0x549204(0xac)][_0x549204(0xcb)],'failed_tests_rerun':process[_0x549204(0xac)][_0x549204(0xad)]||![],'version_control':await bsSetupHelper[_0x549204(0x119)](),'observability_version':{'frameworkName':_0x3d6341[_0x549204(0x9d)],'frameworkVersion':_0x3d6341[_0x549204(0x116)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x25fe80[_0x549204(0xa3)](getProductMap,_0x1f0caa)},_0xf038bb={};_0xf038bb['username']=_0x33912b,_0xf038bb[_0x549204(0xd7)]=_0x6b789d;const _0x296fb2={'auth':_0xf038bb,'headers':_0x25fe80[_0x549204(0xa3)](getDefaultHeaders,![])},_0x55176c=await _0x25fe80[_0x549204(0xff)](nodeRequest,_0x25fe80['tJjPK'],_0x25fe80[_0x549204(0x10d)],_0x2769cb,_0x296fb2);_0x25fe80[_0x549204(0xa3)](debug,_0x25fe80[_0x549204(0xdb)]);const _0x2a4adf=_0x55176c[_0x549204(0x11c)];_0x2a4adf['build_hashed_id']&&(process['env'][_0x549204(0x9e)]=_0x2a4adf[_0x549204(0x12b)]);if(_0x25fe80[_0x549204(0x149)](isTestObservabilitySession)){process['env'][_0x549204(0x127)]=_0x25fe80[_0x549204(0xe7)];if(_0x2a4adf['jwt']){process['env'][_0x549204(0xbc)]=_0x2a4adf['jwt'];const _0x56da48={};_0x56da48[_0x549204(0xf9)]=_0x33912b,_0x56da48[_0x549204(0xd7)]=_0x6b789d,process[_0x549204(0xac)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x549204(0xbb)](_0x56da48);}_0x2a4adf['build_hashed_id']&&(process[_0x549204(0xac)][_0x549204(0x13e)]=_0x2a4adf['build_hashed_id']),_0x2a4adf[_0x549204(0x11e)]&&(process[_0x549204(0xac)][_0x549204(0x14a)]=_0x2a4adf[_0x549204(0x11e)][_0x549204(0xbf)]());}return[_0x55176c[_0x549204(0x11c)][_0x549204(0x12e)],_0x55176c[_0x549204(0x11c)][_0x549204(0x12b)],_0x55176c['data'][_0x549204(0x11e)]];}catch(_0x25b2ea){process[_0x549204(0xac)][_0x549204(0x9e)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x127)]=_0x25fe80['AVMte'],process[_0x549204(0xac)][_0x549204(0xbc)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x13e)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x14a)]=_0x25fe80['QTMja'];_0x25b2ea[_0x549204(0xda)]?_0x25fe80[_0x549204(0xb7)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x25b2ea[_0x549204(0xda)][_0x549204(0xf7)]+'\x20'+_0x25b2ea[_0x549204(0xda)]['statusText']+'\x20'+JSON[_0x549204(0xbb)](_0x25b2ea[_0x549204(0xda)]['data'])):_0x25fe80['RzGci'](debug,_0x549204(0xd5)+(_0x25b2ea['message']||_0x25b2ea));if(_0x25b2ea&&_0x25b2ea[_0x549204(0xf5)]){const _0x4a23d4=_0x25b2ea[_0x549204(0xf5)];switch(_0x25b2ea['errorType']){case _0x25fe80['yvWCu']:logger[_0x549204(0x140)](_0x4a23d4);break;case _0x25fe80[_0x549204(0x128)]:logger['info'](_0x4a23d4);break;case _0x25fe80['YoXLW']:logger[_0x549204(0x140)](_0x4a23d4);break;default:logger['error'](_0x4a23d4);}}else console[_0x549204(0xf4)](_0x549204(0xfb)+_0x25b2ea);return[null,null,null];}}static async[a87_0x3656f6(0xe3)](){const _0x35da99=a87_0x3656f6,_0x5b67c6={'MpYik':_0x35da99(0x124),'TSoGC':'false','GhnoM':function(_0x18216d,_0x5afa95){return _0x18216d(_0x5afa95);}},_0x56d126=process['env'][_0x35da99(0x127)];if([_0x5b67c6['MpYik'],_0x5b67c6['TSoGC']]['includes'](_0x56d126))return;while([_0x5b67c6[_0x35da99(0xde)],_0x5b67c6[_0x35da99(0x143)]][_0x35da99(0x102)](_0x56d126)){await _0x5b67c6['GhnoM'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x3656f6(0xe5)](_0x283b83){const _0x32b4a0=a87_0x3656f6,_0xd2f4d3={};_0xd2f4d3[_0x32b4a0(0xaf)]=_0x32b4a0(0xa5),_0xd2f4d3['qAXsr']=_0x32b4a0(0xaa),_0xd2f4d3[_0x32b4a0(0x122)]='Test_Skipped_Upload',_0xd2f4d3[_0x32b4a0(0xfc)]=_0x32b4a0(0x107),_0xd2f4d3[_0x32b4a0(0x13d)]='Hook_Start_Upload',_0xd2f4d3[_0x32b4a0(0xb0)]=_0x32b4a0(0xe2),_0xd2f4d3['irYQG']=_0x32b4a0(0xcd);const _0x17348c=_0xd2f4d3,_0x34fd65={};return _0x34fd65['TestRunStarted']=_0x17348c[_0x32b4a0(0xaf)],_0x34fd65[_0x32b4a0(0xfd)]=_0x17348c[_0x32b4a0(0x9b)],_0x34fd65['TestRunSkipped']=_0x17348c[_0x32b4a0(0x122)],_0x34fd65['LogCreated']=_0x17348c[_0x32b4a0(0xfc)],_0x34fd65[_0x32b4a0(0x11b)]=_0x17348c[_0x32b4a0(0x13d)],_0x34fd65[_0x32b4a0(0xf1)]=_0x17348c['mnZaL'],_0x34fd65[_0x32b4a0(0x12a)]=_0x17348c[_0x32b4a0(0xc6)],_0x34fd65[_0x283b83[_0x32b4a0(0xd8)]];}static async[a87_0x3656f6(0xe0)](_0x170748,_0x123a0f=0x0,_0x3ec1c1=null){const _0x52bac1=a87_0x3656f6,_0x2295a9={'dbPnb':function(_0x3f17a4,_0x4b0e46){return _0x3f17a4===_0x4b0e46;},'CBkQS':_0x52bac1(0xa4),'LMHiz':function(_0x8fb45f,_0x2ca93e){return _0x8fb45f!==_0x2ca93e;},'KZflA':'application/json','Mhliw':_0x52bac1(0x124),'HkgKj':function(_0x43db79,_0x4f6b51,_0x9f251b,_0x3d8d30,_0x4d2564){return _0x43db79(_0x4f6b51,_0x9f251b,_0x3d8d30,_0x4d2564);},'viled':'POST','IcqtG':function(_0x28aea8,_0x270b31,_0x2d17d2,_0x3b7556,_0x23dc10){return _0x28aea8(_0x270b31,_0x2d17d2,_0x3b7556,_0x23dc10);},'iLqSP':function(_0x40cbbd,_0x59ba59){return _0x40cbbd(_0x59ba59);},'KigCd':function(_0x225d6f,_0x10b5f7){return _0x225d6f!==_0x10b5f7;},'TIQku':_0x52bac1(0xae),'EcfvQ':function(_0x1c317f,_0x3acdb1){return _0x1c317f-_0x3acdb1;},'cdTTJ':_0x52bac1(0xba),'ICgsV':_0x52bac1(0x118),'JOlMR':function(_0x5e3617,_0x125c0b){return _0x5e3617(_0x125c0b);},'bkIqQ':function(_0x1e3aa3,_0x58bb12){return _0x1e3aa3!==_0x58bb12;},'vWiEq':function(_0x20bbe0,_0x4caa0b){return _0x20bbe0(_0x4caa0b);},'jIRym':function(_0x58c83e,_0x35d59b){return _0x58c83e!==_0x35d59b;},'GGdGC':function(_0x1c48cf,_0x567648){return _0x1c48cf-_0x567648;},'CIAOo':function(_0x5b51ed,_0x5a6d83){return _0x5b51ed===_0x5a6d83;},'iFcAM':_0x52bac1(0x140)};_0x2295a9[_0x52bac1(0xdf)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])&&logger[_0x52bac1(0xca)](_0x52bac1(0xcc)+_0x170748[_0x52bac1(0xc4)][0x0][_0x52bac1(0x129)]);const _0x24a0c1=await this[_0x52bac1(0xe5)](_0x170748);let _0x37691c=_0x170748,_0x2f8531=EVENT_ENDPOINT;_0x2295a9[_0x52bac1(0x109)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])&&this[_0x52bac1(0xb1)][_0x52bac1(0x135)]();const {shouldProceed:_0x5cacee,proceedWithData:_0x147dc0,proceedWithUrl:_0x295919}=this[_0x52bac1(0xb1)]['add'](_0x170748);if(!_0x5cacee)return;else _0x147dc0&&(_0x37691c=_0x147dc0,_0x2f8531=_0x295919);const _0x294697={};_0x294697[_0x52bac1(0xa1)]='Bearer\x20'+process[_0x52bac1(0xac)][_0x52bac1(0xab)],_0x294697['Content-Type']=_0x2295a9[_0x52bac1(0x147)],_0x294697['X-BSTACK-TESTOPS']=_0x2295a9[_0x52bac1(0xc9)];const _0x1f1cc3={};_0x1f1cc3[_0x52bac1(0x144)]=_0x294697;const _0x2ee8f8=_0x1f1cc3;let _0x366fe8;try{_0x2295a9[_0x52bac1(0xdf)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])?(logger[_0x52bac1(0xca)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x170748?.[_0x52bac1(0xc4)][0x0]?.[_0x52bac1(0x129)]),_0x366fe8=await _0x2295a9['HkgKj'](asyncAwaitNodeReq,_0x2295a9['viled'],_0x2f8531,_0x37691c,_0x2ee8f8),logger[_0x52bac1(0xca)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x170748?.['logs'][0x0]?.[_0x52bac1(0x129)])):_0x366fe8=await _0x2295a9[_0x52bac1(0xb8)](nodeRequest,_0x2295a9[_0x52bac1(0x126)],_0x2f8531,_0x37691c,_0x2ee8f8);if(_0x366fe8['data']['error']){const _0x2bd38f={};_0x2bd38f[_0x52bac1(0xf5)]=_0x366fe8['data'][_0x52bac1(0x140)];throw _0x2bd38f;}else{_0x2295a9[_0x52bac1(0xc3)](debug,(_0x2295a9[_0x52bac1(0x13c)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+'['+_0x123a0f+']\x20event\x20successful!'),this[_0x52bac1(0xb1)]['pendingUploads']=Math['max'](0x0,_0x2295a9[_0x52bac1(0xea)](this[_0x52bac1(0xb1)][_0x52bac1(0xd6)],_0x2295a9[_0x52bac1(0xdf)](_0x2f8531,_0x2295a9['cdTTJ'])?0x1:_0x37691c[_0x52bac1(0x14b)]));const _0x5b9f4b={};return _0x5b9f4b['status']=_0x2295a9[_0x52bac1(0x115)],_0x5b9f4b[_0x52bac1(0xf5)]='',_0x5b9f4b;}}catch(_0x2541a0){_0x2541a0['response']?_0x2295a9[_0x52bac1(0xcf)](debug,_0x52bac1(0x121)+(_0x2295a9[_0x52bac1(0xa0)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+_0x52bac1(0xee)+_0x2541a0[_0x52bac1(0xda)]['status']+'\x20'+_0x2541a0['response'][_0x52bac1(0x112)]+'\x20'+util[_0x52bac1(0xd9)](_0x2541a0[_0x52bac1(0xda)][_0x52bac1(0x11c)])):_0x2295a9[_0x52bac1(0x12d)](debug,_0x52bac1(0x121)+(_0x2295a9[_0x52bac1(0xa6)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+_0x52bac1(0xee)+util['format'](_0x2541a0));this[_0x52bac1(0xb1)][_0x52bac1(0xd6)]=Math[_0x52bac1(0xe6)](0x0,_0x2295a9[_0x52bac1(0x123)](this[_0x52bac1(0xb1)][_0x52bac1(0xd6)],_0x2295a9['CIAOo'](_0x2f8531,_0x2295a9[_0x52bac1(0xc5)])?0x1:_0x37691c[_0x52bac1(0x14b)]));const _0x331179={};return _0x331179[_0x52bac1(0xf7)]=_0x2295a9['iFcAM'],_0x331179[_0x52bac1(0xf5)]=_0x2541a0['message']||(_0x2541a0[_0x52bac1(0xda)]?_0x2541a0[_0x52bac1(0xda)][_0x52bac1(0xf7)]+':'+_0x2541a0[_0x52bac1(0xda)]['statusText']:_0x2541a0),_0x331179;}}static async[a87_0x3656f6(0x13a)](_0x2496c5,_0x190e54=0x0){const _0x569f20=a87_0x3656f6,_0x58da45={'DrLPV':function(_0x37d871,_0x4f64a8){return _0x37d871+_0x4f64a8;},'OtCeL':function(_0x52b1eb,_0x51a415){return _0x52b1eb(_0x51a415);},'UxbyR':_0x569f20(0xeb),'gUerP':'uuid','nRlay':_0x569f20(0x104),'cEpAD':function(_0x17c5f5,_0x19243b,_0xe543a9){return _0x17c5f5(_0x19243b,_0xe543a9);},'QfmCc':'uploadEventData','QLLzy':function(_0x3b1e0a,_0x47dd27){return _0x3b1e0a===_0x47dd27;},'GSpZX':function(_0x169323,_0x500b8e){return _0x169323!==_0x500b8e;},'NZONt':_0x569f20(0x146),'oqhBO':function(_0x1a35c4,_0x358459){return _0x1a35c4===_0x358459;},'sqgvy':_0x569f20(0x124),'koCWV':function(_0x199b47){return _0x199b47();},'pfQDF':function(_0x1ceb5f,_0x2f9b86){return _0x1ceb5f-_0x2f9b86;},'cPOFm':'error','eVnuH':_0x569f20(0x11f),'oLeiJ':function(_0x4971c3,_0x36755e){return _0x4971c3>=_0x36755e;},'TQjIR':function(_0x45d2f5,_0x1f6b8a){return _0x45d2f5(_0x1f6b8a);},'KVsVD':function(_0xd3fc8c,_0x4f1216){return _0xd3fc8c-_0x4f1216;},'wpnVv':_0x569f20(0xf2),'bJkxo':function(_0x3aa360,_0x2957d9){return _0x3aa360!==_0x2957d9;},'VzsCX':_0x569f20(0xec),'yzBuK':function(_0x51b917,_0x3b4575,_0x1dd90b){return _0x51b917(_0x3b4575,_0x1dd90b);}},_0xf37520=this[_0x569f20(0xe5)](_0x2496c5);_0x58da45['OtCeL'](trace,_0x569f20(0xf8)+_0x2496c5['event_type']+'\x27\x20'+(bsSetupHelper[_0x569f20(0xa7)](_0x2496c5,[_0x58da45['UxbyR'],_0x58da45[_0x569f20(0xb4)]])||bsSetupHelper[_0x569f20(0xa7)](_0x2496c5,[_0x58da45[_0x569f20(0xc0)],_0x58da45[_0x569f20(0xb4)]])));if(!_0x58da45[_0x569f20(0xa9)](shouldProcessEventForTesthub,_0x2496c5['event_type'],_0x58da45[_0x569f20(0x142)]))return;_0x58da45[_0x569f20(0x120)](_0x190e54,0x0)&&process[_0x569f20(0xac)][_0x569f20(0xab)]&&_0x58da45[_0x569f20(0xa8)](process[_0x569f20(0xac)]['BROWSERSTACK_TESTHUB_JWT'],_0x58da45[_0x569f20(0xe1)])&&(this[_0x569f20(0xb1)][_0x569f20(0xd6)]+=0x1);if(_0x58da45[_0x569f20(0xe9)](process[_0x569f20(0xac)][_0x569f20(0x127)],_0x58da45[_0x569f20(0xce)])||process[_0x569f20(0xac)][_0x569f20(0xd0)]||_0x58da45[_0x569f20(0xdd)](isPercyBuild)){if(_0x58da45[_0x569f20(0xe9)](process[_0x569f20(0xac)][_0x569f20(0xab)],_0x58da45[_0x569f20(0xe1)])){_0x58da45[_0x569f20(0x11a)](debug,_0x569f20(0x121)+_0xf37520+_0x569f20(0xd1)),this['requestQueueHandler'][_0x569f20(0xd6)]=Math['max'](0x0,_0x58da45[_0x569f20(0xc2)](this['requestQueueHandler'][_0x569f20(0xd6)],0x1));const _0x42d778={};return _0x42d778[_0x569f20(0xf7)]=_0x58da45[_0x569f20(0x9c)],_0x42d778[_0x569f20(0xf5)]=_0x58da45[_0x569f20(0xf6)],_0x42d778;}return await this[_0x569f20(0xe0)](_0x2496c5,_0x190e54);}else{if(_0x58da45[_0x569f20(0x110)](_0x190e54,0x5)){_0x58da45[_0x569f20(0x145)](debug,_0x569f20(0x121)+_0xf37520+_0x569f20(0xe4)+_0xf37520+_0x569f20(0x125));_0x58da45['GSpZX'](process[_0x569f20(0xac)][_0x569f20(0xab)],_0x58da45[_0x569f20(0xe1)])&&(this[_0x569f20(0xb1)][_0x569f20(0xd6)]=Math[_0x569f20(0xe6)](0x0,_0x58da45[_0x569f20(0xed)](this['requestQueueHandler'][_0x569f20(0xd6)],0x1)));const _0x4f63da={};return _0x4f63da[_0x569f20(0xf7)]=_0x58da45[_0x569f20(0x9c)],_0x4f63da['message']=_0x58da45[_0x569f20(0x10a)],_0x4f63da;}else _0x58da45[_0x569f20(0xfa)](process[_0x569f20(0xac)][_0x569f20(0x127)],_0x58da45[_0x569f20(0x13f)])&&_0x58da45[_0x569f20(0x12c)](setTimeout,()=>{const _0x3cfdcc=_0x569f20;this[_0x3cfdcc(0x13a)](_0x2496c5,_0x58da45[_0x3cfdcc(0xd4)](_0x190e54,0x1));},0x3e8);}}}module[a87_0x3656f6(0xc7)]=SessionHandler;