browserstack-node-sdk 1.40.6 → 1.40.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) 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/browserstack.pw.yml.sample +1 -0
  41. package/browserstack.yml.sample +1 -0
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a50_0x216f(){const _0x554c0d=['run','TfZWB','../launcher/launcher','265429qTSvoZ','vanilla','fRxUM','1720344xEGQjz','runVanillaTest','end','stopMonitoring','4lRzYoR','mocha','ioEBW','../../helpers/performance/constants','3830064KleNIC','19846035DhLghK','hQtDZ','mUtNj','mQzEb','1986030iumywz','runCucumberTest','SDK_POST_TEST','2cfNDfC','2724735cUCSJY','3240538lvqCFy'];a50_0x216f=function(){return _0x554c0d;};return a50_0x216f();}const a50_0xc86efc=a50_0x9f9f;(function(_0x5a4fc3,_0x3a45b7){const _0x5182b1=a50_0x9f9f,_0x256297=_0x5a4fc3();while(!![]){try{const _0x3c28be=-parseInt(_0x5182b1(0x201))/0x1*(parseInt(_0x5182b1(0x1fb))/0x2)+-parseInt(_0x5182b1(0x1f8))/0x3+parseInt(_0x5182b1(0x1ef))/0x4*(-parseInt(_0x5182b1(0x1fc))/0x5)+-parseInt(_0x5182b1(0x1f3))/0x6+parseInt(_0x5182b1(0x1fd))/0x7+-parseInt(_0x5182b1(0x1eb))/0x8+parseInt(_0x5182b1(0x1f4))/0x9;if(_0x3c28be===_0x3a45b7)break;else _0x256297['push'](_0x256297['shift']());}catch(_0x253920){_0x256297['push'](_0x256297['shift']());}}}(a50_0x216f,0x53904));function a50_0x9f9f(_0x4795a4,_0xcb25fc){const _0x216f06=a50_0x216f();return a50_0x9f9f=function(_0x9f9f7f,_0x10e1ce){_0x9f9f7f=_0x9f9f7f-0x1ea;let _0x483040=_0x216f06[_0x9f9f7f];return _0x483040;},a50_0x9f9f(_0x4795a4,_0xcb25fc);}const PerformanceEvents=require(a50_0xc86efc(0x1f2))['EVENTS'],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require('../../helpers/test-observability/utils');exports['runTest']=async(_0x79a459,_0x587490)=>{const _0x855418=a50_0xc86efc,_0xc82f={'hQtDZ':function(_0x27b885,_0x354693){return _0x27b885(_0x354693);},'fRxUM':_0x855418(0x200),'mQzEb':_0x855418(0x1f0)};PerformanceTester['startMonitoring']();const _0x2b890a=_0xc82f[_0x855418(0x1f5)](require,_0xc82f[_0x855418(0x1ea)]),_0x30cd89=new _0x2b890a(_0xc82f[_0x855418(0x1f7)],_0x79a459,_0x587490),_0x22ee01=await _0x30cd89['run']();return PerformanceTester[_0x855418(0x1ed)](PerformanceEvents[_0x855418(0x1fa)]),await _0xc82f['hQtDZ'](sleep,0x3e8),PerformanceTester[_0x855418(0x1ee)](),_0x22ee01;},exports[a50_0xc86efc(0x1f9)]=async(_0x546a7e,_0xa1afc4,_0x4976a9,_0x5b8305,_0x130414)=>{const _0xb3d39c=a50_0xc86efc,_0x51af80={'sKKai':function(_0x577a93,_0x3cd442){return _0x577a93(_0x3cd442);},'BxWIx':_0xb3d39c(0x200),'fbKxf':'cucumber-js'},_0x3b864d={'capability':_0x546a7e,..._0xa1afc4},_0x664ed9={};_0x664ed9['configuration']=_0x3b864d,_0x664ed9['formatter']=_0x130414;const _0x14167a=_0x664ed9,_0x56f7ba=_0x51af80['sKKai'](require,_0x51af80['BxWIx']),_0x36a7af=new _0x56f7ba(_0x51af80['fbKxf'],_0x14167a,_0x4976a9,_0x5b8305);return await _0x36a7af[_0xb3d39c(0x1fe)]();},exports[a50_0xc86efc(0x1ec)]=async _0x38d5af=>{const _0x364639=a50_0xc86efc,_0x27a3d4={'ioEBW':function(_0x1c9018,_0x3c7583){return _0x1c9018(_0x3c7583);},'mUtNj':'../launcher/launcher','TfZWB':_0x364639(0x202)},_0x4e60a3=_0x27a3d4[_0x364639(0x1f1)](require,_0x27a3d4[_0x364639(0x1f6)]),_0x3aedd1=new _0x4e60a3(_0x27a3d4[_0x364639(0x1ff)],_0x38d5af);return await _0x3aedd1[_0x364639(0x1fe)]();};
1
+ const a50_0x4d6156=a50_0x18fd;(function(_0x3f345c,_0x242a32){const _0x69bc77=a50_0x18fd,_0x59e7e8=_0x3f345c();while(!![]){try{const _0x597d60=parseInt(_0x69bc77(0x68))/0x1+parseInt(_0x69bc77(0x71))/0x2+parseInt(_0x69bc77(0x7a))/0x3+-parseInt(_0x69bc77(0x80))/0x4+parseInt(_0x69bc77(0x67))/0x5*(parseInt(_0x69bc77(0x6d))/0x6)+-parseInt(_0x69bc77(0x7e))/0x7+-parseInt(_0x69bc77(0x76))/0x8;if(_0x597d60===_0x242a32)break;else _0x59e7e8['push'](_0x59e7e8['shift']());}catch(_0x32f74e){_0x59e7e8['push'](_0x59e7e8['shift']());}}}(a50_0x334e,0x5f2ed));const PerformanceEvents=require(a50_0x4d6156(0x79))[a50_0x4d6156(0x78)],PerformanceTester=require(a50_0x4d6156(0x85)),{sleep}=require(a50_0x4d6156(0x7f));function a50_0x18fd(_0x127799,_0x4f12bd){const _0x334ec5=a50_0x334e();return a50_0x18fd=function(_0x18fd00,_0x2863bd){_0x18fd00=_0x18fd00-0x67;let _0x558f0f=_0x334ec5[_0x18fd00];return _0x558f0f;},a50_0x18fd(_0x127799,_0x4f12bd);}function a50_0x334e(){const _0x973f2=['startMonitoring','rKFTs','nrFzc','66ituafC','configuration','runVanillaTest','run','1092404ACbLJG','AHGQs','runTest','end','vanilla','1533528xQsfCc','QLQyV','EVENTS','../../helpers/performance/constants','278619SPcMRS','MbgZK','syLDO','../launcher/launcher','1379861YAgMfm','../../helpers/test-observability/utils','2085912OCLojJ','stopMonitoring','SDK_POST_TEST','gAFeC','formatter','../../helpers/performance/performance-tester','103745hHWWrh','432847GCjNLg','cucumber-js'];a50_0x334e=function(){return _0x973f2;};return a50_0x334e();}exports[a50_0x4d6156(0x73)]=async(_0xd94f19,_0x879577)=>{const _0x2cd958=a50_0x4d6156,_0x41713d={'atTXG':function(_0x3a81c8,_0x304678){return _0x3a81c8(_0x304678);},'AHGQs':'../launcher/launcher','nrFzc':'mocha','MbgZK':function(_0x522bac,_0x49cb42){return _0x522bac(_0x49cb42);}};PerformanceTester[_0x2cd958(0x6a)]();const _0x557391=_0x41713d['atTXG'](require,_0x41713d[_0x2cd958(0x72)]),_0x401df9=new _0x557391(_0x41713d[_0x2cd958(0x6c)],_0xd94f19,_0x879577),_0x5b2de9=await _0x401df9[_0x2cd958(0x70)]();return PerformanceTester[_0x2cd958(0x74)](PerformanceEvents[_0x2cd958(0x82)]),await _0x41713d[_0x2cd958(0x7b)](sleep,0x3e8),PerformanceTester[_0x2cd958(0x81)](),_0x5b2de9;},exports['runCucumberTest']=async(_0x569b5c,_0x4d0005,_0x12bdda,_0x215803,_0x235f7b)=>{const _0x1a00c7=a50_0x4d6156,_0x4e8477={'gAFeC':function(_0x5ea0ac,_0x414869){return _0x5ea0ac(_0x414869);},'QLQyV':_0x1a00c7(0x7d),'EEoZb':_0x1a00c7(0x69)},_0x377f45={'capability':_0x569b5c,..._0x4d0005},_0x411b06={};_0x411b06[_0x1a00c7(0x6e)]=_0x377f45,_0x411b06[_0x1a00c7(0x84)]=_0x235f7b;const _0x117a0c=_0x411b06,_0xfac33f=_0x4e8477[_0x1a00c7(0x83)](require,_0x4e8477[_0x1a00c7(0x77)]),_0x15e19a=new _0xfac33f(_0x4e8477['EEoZb'],_0x117a0c,_0x12bdda,_0x215803);return await _0x15e19a[_0x1a00c7(0x70)]();},exports[a50_0x4d6156(0x6f)]=async _0x3fdd35=>{const _0x322309=a50_0x4d6156,_0x397c49={'rKFTs':function(_0x1b7b2c,_0x5546d3){return _0x1b7b2c(_0x5546d3);},'skCHb':'../launcher/launcher','syLDO':_0x322309(0x75)},_0x3e8978=_0x397c49[_0x322309(0x6b)](require,_0x397c49['skCHb']),_0x7661e8=new _0x3e8978(_0x397c49[_0x322309(0x7c)],_0x3fdd35);return await _0x7661e8[_0x322309(0x70)]();};
@@ -1 +1 @@
1
- function a51_0x12e2(_0x4accbf,_0x30482a){const _0x3048f1=a51_0x3048();return a51_0x12e2=function(_0x12e2a0,_0x36578e){_0x12e2a0=_0x12e2a0-0xdf;let _0x4820a4=_0x3048f1[_0x12e2a0];return _0x4820a4;},a51_0x12e2(_0x4accbf,_0x30482a);}const a51_0x11b0d9=a51_0x12e2;(function(_0x2c6977,_0x35411e){const _0x1c197a=a51_0x12e2,_0x5ae93c=_0x2c6977();while(!![]){try{const _0x528102=parseInt(_0x1c197a(0xe3))/0x1+parseInt(_0x1c197a(0xe8))/0x2+-parseInt(_0x1c197a(0xea))/0x3+-parseInt(_0x1c197a(0xe1))/0x4*(-parseInt(_0x1c197a(0xeb))/0x5)+parseInt(_0x1c197a(0xe5))/0x6+-parseInt(_0x1c197a(0xe0))/0x7*(parseInt(_0x1c197a(0xec))/0x8)+parseInt(_0x1c197a(0xe4))/0x9;if(_0x528102===_0x35411e)break;else _0x5ae93c['push'](_0x5ae93c['shift']());}catch(_0x21421a){_0x5ae93c['push'](_0x5ae93c['shift']());}}}(a51_0x3048,0xe5040));function a51_0x3048(){const _0x150a76=['568hCQMtb','Eslso','150143tyhgmD','412FqYEnL','RLiEY','1734521AlfZRA','6359391sAGjET','477480igEtec','cucumberWorker','vanillaWorker','1554944bkzZdB','SwkJd','5079834UaXmer','41555XDGDiD'];a51_0x3048=function(){return _0x150a76;};return a51_0x3048();}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports['worker']=async(_0x181d00,_0x4c4e24)=>{const _0x27a6ae=a51_0x12e2,_0x136ef3={'SwkJd':function(_0x362d7b,_0x360e18,_0x42a9d2){return _0x362d7b(_0x360e18,_0x42a9d2);}};return await _0x136ef3[_0x27a6ae(0xe9)](runTest,_0x181d00,_0x4c4e24);},exports[a51_0x11b0d9(0xe6)]=async(_0x3bb525,_0x35f82d,_0x2d3834,_0x4c5b3e,_0x52e1ec)=>{const _0x353bb5=a51_0x11b0d9,_0x4604ae={'RLiEY':function(_0x511c6c,_0x1277b1,_0x3739b0,_0x1518e3,_0x33e7c7,_0x59ea16){return _0x511c6c(_0x1277b1,_0x3739b0,_0x1518e3,_0x33e7c7,_0x59ea16);}};return await _0x4604ae[_0x353bb5(0xe2)](runCucumberTest,_0x3bb525,_0x35f82d,_0x2d3834,_0x4c5b3e,_0x52e1ec);},exports[a51_0x11b0d9(0xe7)]=async _0x1c8b1e=>{const _0x5222c0=a51_0x11b0d9,_0x526a93={'Eslso':function(_0x242fa7,_0x28a4fd){return _0x242fa7(_0x28a4fd);}};return await _0x526a93[_0x5222c0(0xdf)](runVanillaTest,_0x1c8b1e);};
1
+ const a51_0x215b47=a51_0x4b70;(function(_0x11e51,_0x584767){const _0x11d8ad=a51_0x4b70,_0x1162c4=_0x11e51();while(!![]){try{const _0x8c1892=-parseInt(_0x11d8ad(0x185))/0x1+parseInt(_0x11d8ad(0x18f))/0x2+-parseInt(_0x11d8ad(0x181))/0x3+-parseInt(_0x11d8ad(0x184))/0x4*(-parseInt(_0x11d8ad(0x189))/0x5)+parseInt(_0x11d8ad(0x18b))/0x6+-parseInt(_0x11d8ad(0x18a))/0x7*(-parseInt(_0x11d8ad(0x187))/0x8)+-parseInt(_0x11d8ad(0x18d))/0x9*(-parseInt(_0x11d8ad(0x18e))/0xa);if(_0x8c1892===_0x584767)break;else _0x1162c4['push'](_0x1162c4['shift']());}catch(_0x271a9c){_0x1162c4['push'](_0x1162c4['shift']());}}}(a51_0x3d3c,0x6aeea));function a51_0x4b70(_0x52659a,_0x458bb3){const _0x3d3c44=a51_0x3d3c();return a51_0x4b70=function(_0x4b7093,_0x14bef3){_0x4b7093=_0x4b7093-0x180;let _0x1aea17=_0x3d3c44[_0x4b7093];return _0x1aea17;},a51_0x4b70(_0x52659a,_0x458bb3);}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');exports[a51_0x215b47(0x18c)]=async(_0x207df1,_0x5ad669)=>{const _0x16211d=a51_0x215b47,_0x5c49c7={'IlYcj':function(_0x1a0e83,_0x972a30,_0x51bcc5){return _0x1a0e83(_0x972a30,_0x51bcc5);}};return await _0x5c49c7[_0x16211d(0x183)](runTest,_0x207df1,_0x5ad669);},exports[a51_0x215b47(0x180)]=async(_0x5c81f0,_0x1dcbff,_0x2d8c48,_0x154816,_0x52c04f)=>{const _0x3bc3f0=a51_0x215b47,_0x2f93ef={'ddzTw':function(_0x2862be,_0x5d020a,_0x11de63,_0x51a3ab,_0x41d44d,_0x3f5b52){return _0x2862be(_0x5d020a,_0x11de63,_0x51a3ab,_0x41d44d,_0x3f5b52);}};return await _0x2f93ef[_0x3bc3f0(0x182)](runCucumberTest,_0x5c81f0,_0x1dcbff,_0x2d8c48,_0x154816,_0x52c04f);},exports[a51_0x215b47(0x186)]=async _0x1b12db=>{const _0x18f99=a51_0x215b47,_0x437480={'gXFwU':function(_0x296fdf,_0x213eca){return _0x296fdf(_0x213eca);}};return await _0x437480[_0x18f99(0x188)](runVanillaTest,_0x1b12db);};function a51_0x3d3c(){const _0xf99181=['cucumberWorker','164313pHtQex','ddzTw','IlYcj','844OwjwGI','625919eVcYjv','vanillaWorker','32puXfOj','gXFwU','2855HvXhcm','380688oflvQN','512616eRSiQt','worker','3586671qIsrGY','10JftTrP','593424qZtxXD'];a51_0x3d3c=function(){return _0xf99181;};return a51_0x3d3c();}
@@ -1 +1 @@
1
- const a52_0x36b550=a52_0x1479;(function(_0x14dbc9,_0x304acd){const _0x38b297=a52_0x1479,_0x16af38=_0x14dbc9();while(!![]){try{const _0x3770be=parseInt(_0x38b297(0x185))/0x1*(parseInt(_0x38b297(0x1b2))/0x2)+-parseInt(_0x38b297(0x189))/0x3*(-parseInt(_0x38b297(0x1bd))/0x4)+parseInt(_0x38b297(0x149))/0x5*(parseInt(_0x38b297(0x18d))/0x6)+-parseInt(_0x38b297(0x1df))/0x7+parseInt(_0x38b297(0x1b9))/0x8*(-parseInt(_0x38b297(0x14f))/0x9)+parseInt(_0x38b297(0x19d))/0xa+-parseInt(_0x38b297(0x1d4))/0xb*(parseInt(_0x38b297(0x1d2))/0xc);if(_0x3770be===_0x304acd)break;else _0x16af38['push'](_0x16af38['shift']());}catch(_0x6e8cff){_0x16af38['push'](_0x16af38['shift']());}}}(a52_0x4b62,0xaa0ba));const a52_0x359d4a={};a52_0x359d4a[a52_0x36b550(0x142)]=a52_0x36b550(0x139),a52_0x359d4a['HELP']=a52_0x36b550(0x18e);function a52_0x1479(_0x1dba82,_0xb62d7c){const _0x4b622b=a52_0x4b62();return a52_0x1479=function(_0x147933,_0x388f77){_0x147933=_0x147933-0x117;let _0x228ff0=_0x4b622b[_0x147933];return _0x228ff0;},a52_0x1479(_0x1dba82,_0xb62d7c);}const a52_0x5c3b16={};a52_0x5c3b16[a52_0x36b550(0x142)]='Run\x20jest\x20tests\x20on\x20browserstack';const a52_0x4822df={};a52_0x4822df[a52_0x36b550(0x142)]=a52_0x36b550(0x11d);const a52_0x282f9b={};a52_0x282f9b['INFO']=a52_0x36b550(0x129);const a52_0x46bfee={};a52_0x46bfee[a52_0x36b550(0x142)]=a52_0x36b550(0x11b);const a52_0x4007c3={};a52_0x4007c3[a52_0x36b550(0x142)]=a52_0x36b550(0x198);const a52_0x34965c={};a52_0x34965c[a52_0x36b550(0x142)]=a52_0x36b550(0x1a2);const a52_0x544d27={};a52_0x544d27[a52_0x36b550(0x142)]='Run\x20codeceptjs\x20tests\x20on\x20browserstack';function a52_0x4b62(){const _0x444335=['SDKTestInitFailedResponse','PLAYWRIGHT','5YYuatl','SDKTestInvalidTcgAuthResponseWithUserImpact','AUTOLOGCAPTURE_NOTIFICATION','codeceptjs-cucumber','GIT_META_DATA_TRUNCATED','FRAMEWORKS','18gIYesu','BROWSERSTACK_API_URL','exports','https://hub-devtestops.bsstag.com/wd/hub','automate','ERR_CONNECTION_CLOSED','chromeOptions','./browserstack-artifacts/','https://app-automate-preprod.bsstag.com/dashboard/v2/builds/','strictFileInteractability','unhandledPromptBehavior','percyOptions','proxyPass','AUTOMATE_PRODUCTS','AI_PROXY_FAILURE','VANILLA','BSTACK_URL','browserstack.com','https://apidevtestops.bsstag.com','O11Y_URL','SET_TCG_TOKEN_TIMEOUT','HEALING_FAILURE_TIMEOUT','UPGRADE_REQUIRED','https://edsstaging.bsstag.com','userName','ROOT_REGEX','percyCaptureMode','APP_AUTOMATE_PRODUCTS','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','AI_INIT_FAILURE','COMMONJS','BROWSERSTACK_AUTOMATE_URL','POLL_HEALING_RESULT_TIMEOUT','percy','browserstackLocal','uniqueDependency','rerunTests','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','env','NIGHTWATCH','Connect\x20on\x20prem\x20instances\x20to\x20Browserstack','authToken','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','split','PRIVATE_DOMAIN_OR_IP_REGEX','.apk','browserstack.userName','SHAREABLE_ID_REGEX','ERR_CONNECTION_RESET','PLAYWRIGHT_HUB_URL','wss://cdp-devtestops.bsstag.com/playwright?caps=','jest','ERR_CONNECTION_FAILED','wss://cdp.browserstack.com/playwright?caps=','33647PuXboI','ATS_HUB_URL_REGEX','bsstag.com','INTEGRATIONS','1200282HPdHuH','browserstack.overridelocalInfo.userAuthToken','localOptions','PERCY_SUPPORTED_FRAMEWORKS','4244526hmrntM','Specify\x20--help\x20for\x20available\x20options','vanilla','https://app-automate.browserstack.com/dashboard/v2/builds/','UPDATED_CLI_ENDPOINT','SDKTestTcgtInitSuccessful','testContextOptions','proxyPassword','testObservability','10|8|6|7|0|12|2|3|4|9|5|1|11','acceptInsecureCerts','Run\x20nightwatch\x20tests\x20on\x20browserstack','VERSION','sdk/v1/update_cli','testObservabilityOptions','framework','12394510GyGngf','ROOT_CAPS','MODULE','https://automate-preprod.bsstag.com/dashboard/v2/builds/','ERR_CONNECTION_TIMED_OUT','Run\x20playwright\x20tests\x20on\x20Browserstack','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','browserstack-ats.com','module','OBSERVABILITY_UPLOAD_URL','/usage-debug.log','localProxyPass','ERR_SOCKET_NOT_CONNECTED','CUSTOM_ID_REGEX','5|12|4|9|8|10|1|11|0|7|6|2|3','https://automate.browserstack.com/dashboard/v2/builds/','TCG_DOWN','mandatoryDependency','commonjs','BSTACK_ATS_URL','https://tcg.bsstag.com','6YUKOFH','APP_UPLOAD_URL','https://api-preprod.bsstag.com','.aab','stag','ERR_PROXY_CONNECTION_FAILED','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','4513576vBBDaA','httpProxy','prod','Cucumber-JS','8UueHzS','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','browserVersion','LOG_FILE_NAME','MAX_GIT_META_DATA_SIZE_IN_BYTES','proxyUrl','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','SDKTestTcgAuthFailure','proxyUser','https://eds.browserstack.com','automation','INVALID_INIT_RESP_WITH_USER_IMPACT','MOCHA','ERR_CONNECTION_ABORTED','BSTACK_DELTA','bsstag','app-automate','ERR_BLOCKED_BY_CLIENT','TCG_AUTH_FAILURE','pre-prod','PLAYWRIGHT_TRACE_LOGS','2388816jWaYTD','ERR_NAME_RESOLUTION_FAILED','44lQKrSt','turboScaleOptions','browserStackLocalOptions','firefoxOptions','FUNNEL_INSTRUMENTATION_API_URL','accessibilityOptions','proxySettings','parallelsPerPlatform','AUTOMATE','https://api-cloud-devtestops.bsstag.com','ERR_NAME_NOT_RESOLVED','1587803ECOEJD','APP_AUTOMATE','ERR_SOCKS_CONNECTION_FAILED','EDS_URL','HEALING_LOG_DATA_TIMEOUT','use','ATS_WSS_URL_REGEX','https://upload-observability-devtestops-ssi.bsstag.com','BROWSERSTACK','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','mocha','OBSERVABILITY_SUPPORTED_FWS','root','HUB_URL_REGEX','...[TRUNCATED]','Run\x20js\x20tests\x20on\x20browserstack','DEBUG_LOG_FILE_NAME','Run\x20mocha\x20tests\x20on\x20browserstack','hubUrl','acceptSslCerts','pageLoadStrategy','VALID_APP_EXTENSION','ieOptions','https://tcg.browserstack.com','https://upload-observability-preprod.bsstag.com','toLowerCase','BROWSERSTACK_APP_AUTOMATE_URL','accessibility','/usage.log','Run\x20cucumber-js\x20tests\x20on\x20browserstack','CUCUMBER','browserstackAutomation','BROWSERSTACK_ENV','testOrchestrationOptions','platforms','cucumber','https://observability-preprod.bsstag.com','PLAYWRIGHT_CONFIG_OPTION_ERRORS','disableAutoCaptureLogs','accessKey','browserName','https://upload-observability.browserstack.com','invalidKeys','TCG_URL','observability','shows\x20version\x20information','PACKAGE_TYPE','turboScale','CODECEPT_CUCUMBER','HST','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','browserstack.accessKey','httpsProxy','REDACTED_KEYS','INFO','playwright','ERR_TUNNEL_CONNECTION_FAILED','invalidTestInputType','Upgrade\x20required'];a52_0x4b62=function(){return _0x444335;};return a52_0x4b62();}const a52_0x5b6ea4={};a52_0x5b6ea4[a52_0x36b550(0x142)]=a52_0x36b550(0x1be);const a52_0x10ebd7={};a52_0x10ebd7[a52_0x36b550(0x142)]=a52_0x36b550(0x177);const a52_0x1c3afa={};a52_0x1c3afa['PLAYWRIGHT']='Playwright',a52_0x1c3afa[a52_0x36b550(0x1c9)]=a52_0x36b550(0x1e9),a52_0x1c3afa['JEST']=a52_0x36b550(0x182),a52_0x1c3afa['CODECEPT']='codeceptjs',a52_0x1c3afa[a52_0x36b550(0x13c)]=a52_0x36b550(0x14c),a52_0x1c3afa[a52_0x36b550(0x12a)]=a52_0x36b550(0x12f);const a52_0xd509ad={};a52_0xd509ad[a52_0x36b550(0x136)]=a52_0x36b550(0x1b8),a52_0xd509ad[a52_0x36b550(0x172)]=a52_0x36b550(0x13e),a52_0xd509ad[a52_0x36b550(0x1ae)]=a52_0x36b550(0x179),a52_0xd509ad[a52_0x36b550(0x145)]='Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file';const a52_0x4ad728={};a52_0x4ad728[a52_0x36b550(0x16d)]=a52_0x36b550(0x1af),a52_0x4ad728[a52_0x36b550(0x19f)]=a52_0x36b550(0x1a5);const a52_0x32d6c3={};a52_0x32d6c3['Mocha']=0xfde8,a52_0x32d6c3[a52_0x36b550(0x1bc)]=0xfde8,a52_0x32d6c3['Jest']=0x186a0;const a52_0x2aab90={};a52_0x2aab90[a52_0x36b550(0x118)]=[a52_0x36b550(0x167),a52_0x36b550(0x133),a52_0x36b550(0x1ba),a52_0x36b550(0x140),'customVariables',a52_0x36b550(0x17d),a52_0x36b550(0x13f),a52_0x36b550(0x194),a52_0x36b550(0x178),a52_0x36b550(0x1c2),a52_0x36b550(0x18a)],a52_0x2aab90[a52_0x36b550(0x1d6)]=[a52_0x36b550(0x1c5),a52_0x36b550(0x15b),'localProxyUser',a52_0x36b550(0x1a8)];const a52_0x13ae8e={};a52_0x13ae8e['browserstackLocal']=a52_0x36b550(0x171),a52_0x13ae8e['browserStackLocalOptions']='browserStackLocalOptions',a52_0x13ae8e[a52_0x36b550(0x18b)]=a52_0x36b550(0x1d6),a52_0x13ae8e[a52_0x36b550(0x1db)]=a52_0x36b550(0x1db),a52_0x13ae8e[a52_0x36b550(0x12e)]=a52_0x36b550(0x12e),a52_0x13ae8e['logLevel']='logLevel',a52_0x13ae8e[a52_0x36b550(0x1ba)]='httpProxy',a52_0x13ae8e['httpsProxy']=a52_0x36b550(0x140),a52_0x13ae8e['framework']=a52_0x36b550(0x19c),a52_0x13ae8e['testContextOptions']=a52_0x36b550(0x193),a52_0x13ae8e[a52_0x36b550(0x195)]=a52_0x36b550(0x195),a52_0x13ae8e['testObservabilityOptions']=a52_0x36b550(0x19b),a52_0x13ae8e['customVariables']='customVariables',a52_0x13ae8e[a52_0x36b550(0x1c7)]='browserstackAutomation',a52_0x13ae8e['browserstackAutomation']=a52_0x36b550(0x12b),a52_0x13ae8e[a52_0x36b550(0x173)]='rerunTests',a52_0x13ae8e['percy']=a52_0x36b550(0x170),a52_0x13ae8e[a52_0x36b550(0x15a)]='percyOptions',a52_0x13ae8e[a52_0x36b550(0x169)]=a52_0x36b550(0x169),a52_0x13ae8e[a52_0x36b550(0x132)]=a52_0x36b550(0x132),a52_0x13ae8e['accessibility']=a52_0x36b550(0x127),a52_0x13ae8e[a52_0x36b550(0x1d9)]=a52_0x36b550(0x1d9),a52_0x13ae8e[a52_0x36b550(0x13b)]=a52_0x36b550(0x13b),a52_0x13ae8e[a52_0x36b550(0x1d5)]='turboScaleOptions',a52_0x13ae8e[a52_0x36b550(0x1da)]='proxySettings',a52_0x13ae8e[a52_0x36b550(0x12d)]=a52_0x36b550(0x12d);const a52_0x26889e={};a52_0x26889e[a52_0x36b550(0x199)]=a52_0x359d4a,a52_0x26889e['JEST']=a52_0x5c3b16,a52_0x26889e[a52_0x36b550(0x1c9)]=a52_0x4822df,a52_0x26889e['CUCUMBER']=a52_0x282f9b,a52_0x26889e[a52_0x36b550(0x15e)]=a52_0x46bfee,a52_0x26889e[a52_0x36b550(0x176)]=a52_0x4007c3,a52_0x26889e[a52_0x36b550(0x148)]=a52_0x34965c,a52_0x26889e['CODECEPTJS']=a52_0x544d27,a52_0x26889e[a52_0x36b550(0x13d)]=a52_0x5b6ea4,a52_0x26889e[a52_0x36b550(0x188)]=a52_0x10ebd7,a52_0x26889e[a52_0x36b550(0x1cb)]=0xf*0x3c*0x3e8,a52_0x26889e[a52_0x36b550(0x11e)]='https://hub.browserstack.com/wd/hub',a52_0x26889e[a52_0x36b550(0x137)]=a52_0x36b550(0x123),a52_0x26889e['TCG_REGION']=a52_0x36b550(0x1e4),a52_0x26889e[a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x26889e[a52_0x36b550(0x186)]=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x26889e[a52_0x36b550(0x1e5)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x26889e[a52_0x36b550(0x19e)]=[a52_0x36b550(0x197),a52_0x36b550(0x120),a52_0x36b550(0x158),a52_0x36b550(0x159),'timeouts',a52_0x36b550(0x134),a52_0x36b550(0x1bf),a52_0x36b550(0x11f),'acceptSslCert',a52_0x36b550(0x155),a52_0x36b550(0x1d7),'edgeOptions',a52_0x36b550(0x122)],a52_0x26889e[a52_0x36b550(0x168)]=/^[\w-]+:.*$/,a52_0x26889e[a52_0x36b550(0x17b)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x26889e[a52_0x36b550(0x1e2)]=a52_0x36b550(0x1c6),a52_0x26889e[a52_0x36b550(0x150)]='https://api.browserstack.com',a52_0x26889e[a52_0x36b550(0x1b3)]='https://api-cloud.browserstack.com',a52_0x26889e[a52_0x36b550(0x191)]=a52_0x36b550(0x19a),a52_0x26889e[a52_0x36b550(0x1d8)]='sdk/v1/event',a52_0x26889e[a52_0x36b550(0x15c)]=[a52_0x36b550(0x153),a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x16a)]=['app-automate',a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x1c3)]=[a52_0x36b550(0x138)],a52_0x26889e[a52_0x36b550(0x1a6)]=a52_0x36b550(0x135),a52_0x26889e[a52_0x36b550(0x117)]=[a52_0x36b550(0x1e9),'Playwright'],a52_0x26889e[a52_0x36b550(0x1dc)]=[a52_0x36b550(0x153)],a52_0x26889e[a52_0x36b550(0x16e)]=a52_0x36b550(0x1ac),a52_0x26889e[a52_0x36b550(0x126)]=a52_0x36b550(0x190),a52_0x26889e[a52_0x36b550(0x1e0)]=[a52_0x36b550(0x1cd)],a52_0x26889e['NUDGE_LOCAL_ERRORS']=['ERR_FAILED','ERR_TIMED_OUT',a52_0x36b550(0x1ce),'ERR_NETWORK_CHANGED',a52_0x36b550(0x1a9),a52_0x36b550(0x154),a52_0x36b550(0x17f),'ERR_CONNECTION_REFUSED',a52_0x36b550(0x1ca),a52_0x36b550(0x183),a52_0x36b550(0x1de),'ERR_ADDRESS_INVALID','ERR_ADDRESS_UNREACHABLE',a52_0x36b550(0x144),a52_0x36b550(0x1a1),a52_0x36b550(0x1e1),a52_0x36b550(0x1a3),a52_0x36b550(0x1b7),a52_0x36b550(0x1de),a52_0x36b550(0x1d3),a52_0x36b550(0x174)],a52_0x26889e[a52_0x36b550(0x121)]=[a52_0x36b550(0x17c),a52_0x36b550(0x1b5),'.ipa'],a52_0x26889e[a52_0x36b550(0x1aa)]='^[a-zA-Z0-9_.-]*$',a52_0x26889e[a52_0x36b550(0x17e)]='^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$',a52_0x26889e['CI_ARTIFACTS_PATH']=a52_0x36b550(0x156),a52_0x26889e[a52_0x36b550(0x180)]=a52_0x36b550(0x184),a52_0x26889e[a52_0x36b550(0x14e)]=a52_0x1c3afa,a52_0x26889e[a52_0x36b550(0x18c)]=[a52_0x36b550(0x182),a52_0x36b550(0x1e9)],a52_0x26889e[a52_0x36b550(0x131)]=a52_0xd509ad,a52_0x26889e[a52_0x36b550(0x14b)]=a52_0x36b550(0x16b),a52_0x26889e[a52_0x36b550(0x13a)]=a52_0x4ad728,a52_0x26889e[a52_0x36b550(0x1c1)]=0x40*0x400,a52_0x26889e[a52_0x36b550(0x14d)]=a52_0x36b550(0x11a),a52_0x26889e[a52_0x36b550(0x165)]=a52_0x36b550(0x146),a52_0x26889e[a52_0x36b550(0x1ad)]='SDKTestTcgDownResponse',a52_0x26889e[a52_0x36b550(0x1c8)]=a52_0x36b550(0x14a),a52_0x26889e[a52_0x36b550(0x1cf)]=a52_0x36b550(0x1c4),a52_0x26889e['AI_INIT_SUCCESSFUL']=a52_0x36b550(0x192),a52_0x26889e[a52_0x36b550(0x16c)]=a52_0x36b550(0x147),a52_0x26889e[a52_0x36b550(0x15d)]='SDKTestTcgProxyFailure',a52_0x26889e['TCG_AUTH_TIMEOUT']=0x1388,a52_0x26889e[a52_0x36b550(0x163)]=0x1388,a52_0x26889e[a52_0x36b550(0x1e3)]=0x1388,a52_0x26889e[a52_0x36b550(0x164)]=0x1388,a52_0x26889e[a52_0x36b550(0x16f)]=0xc350,a52_0x26889e['TEST_FRAMEWORK_HOOK_TIMEOUT']=a52_0x32d6c3,a52_0x26889e[a52_0x36b550(0x141)]=a52_0x2aab90,a52_0x26889e['AI_ENABLED_FRAMEWORK']=[a52_0x36b550(0x18f),'codeceptjs'],a52_0x26889e['SDK_INSTRUMENTATION_CONFIG']=a52_0x13ae8e,a52_0x26889e[a52_0x36b550(0x1c0)]=a52_0x36b550(0x128),a52_0x26889e[a52_0x36b550(0x11c)]=a52_0x36b550(0x1a7),a52_0x26889e[a52_0x36b550(0x15f)]=a52_0x36b550(0x160),a52_0x26889e[a52_0x36b550(0x1b0)]=a52_0x36b550(0x1a4),a52_0x26889e['O11Y_URL']='https://observability.browserstack.com',a52_0x26889e[a52_0x36b550(0x1e7)]='browserstack',a52_0x26889e['CLI_SUPPORTED_FRAMEWORKS']=[a52_0x36b550(0x143)],a52_0x26889e[a52_0x36b550(0x1d1)]=a52_0x36b550(0x1d1),module['exports']=a52_0x26889e;const _env=(process[a52_0x36b550(0x175)][a52_0x36b550(0x12c)]||a52_0x36b550(0x1bb))[a52_0x36b550(0x125)]();if(_env==='staging'||_env===a52_0x36b550(0x1b6)){const LscGDp=a52_0x36b550(0x1ab)[a52_0x36b550(0x17a)]('|');let QkBSxe=0x0;while(!![]){switch(LscGDp[QkBSxe++]){case'0':module['exports'][a52_0x36b550(0x15f)]=a52_0x36b550(0x187);continue;case'1':module[a52_0x36b550(0x151)]['APP_UPLOAD_URL']=a52_0x36b550(0x1dd);continue;case'2':module[a52_0x36b550(0x151)][a52_0x36b550(0x1e2)]='https://edsstaging.bsstag.com';continue;case'3':module[a52_0x36b550(0x151)][a52_0x36b550(0x1e7)]=a52_0x36b550(0x1cc);continue;case'4':module[a52_0x36b550(0x151)]['TCG_URL']=a52_0x36b550(0x1b1);continue;case'5':module['exports'][a52_0x36b550(0x11e)]=a52_0x36b550(0x152);continue;case'6':module[a52_0x36b550(0x151)][a52_0x36b550(0x1a6)]=a52_0x36b550(0x1e6);continue;case'7':module['exports'][a52_0x36b550(0x162)]='https://observability-devtestops.bsstag.com';continue;case'8':module['exports'][a52_0x36b550(0x16e)]='https://automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'9':module[a52_0x36b550(0x151)][a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'10':module[a52_0x36b550(0x151)][a52_0x36b550(0x126)]=a52_0x36b550(0x1e8);continue;case'11':module[a52_0x36b550(0x151)][a52_0x36b550(0x180)]=a52_0x36b550(0x181);continue;case'12':module[a52_0x36b550(0x151)][a52_0x36b550(0x150)]=a52_0x36b550(0x161);continue;}break;}}else{if(_env==='preprod'||_env===a52_0x36b550(0x1d0)){const HabGBy=a52_0x36b550(0x196)[a52_0x36b550(0x17a)]('|');let RPJnEO=0x0;while(!![]){switch(HabGBy[RPJnEO++]){case'0':module[a52_0x36b550(0x151)][a52_0x36b550(0x16e)]=a52_0x36b550(0x1a0);continue;case'1':module[a52_0x36b550(0x151)]['EDS_URL']=a52_0x36b550(0x166);continue;case'2':module['exports']['APP_UPLOAD_URL']=a52_0x36b550(0x1b4);continue;case'3':module[a52_0x36b550(0x151)]['PLAYWRIGHT_HUB_URL']='wss://cdp-preprod.bsstag.com/playwright?caps=';continue;case'4':module['exports']['BSTACK_URL']=a52_0x36b550(0x187);continue;case'5':module[a52_0x36b550(0x151)][a52_0x36b550(0x1a6)]=a52_0x36b550(0x124);continue;case'6':module[a52_0x36b550(0x151)]['TCG_URL']='https://tcg-preprod.bsstag.com';continue;case'7':module[a52_0x36b550(0x151)][a52_0x36b550(0x119)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'8':module[a52_0x36b550(0x151)][a52_0x36b550(0x150)]=a52_0x36b550(0x1b4);continue;case'9':module[a52_0x36b550(0x151)][a52_0x36b550(0x162)]=a52_0x36b550(0x130);continue;case'10':module[a52_0x36b550(0x151)][a52_0x36b550(0x11e)]='https://hub-preprod.bsstag.com/wd/hub';continue;case'11':module['exports'][a52_0x36b550(0x1e7)]=a52_0x36b550(0x1cc);continue;case'12':module['exports'][a52_0x36b550(0x126)]=a52_0x36b550(0x157);continue;}break;}}}
1
+ const a52_0x2f879f=a52_0x4758;(function(_0x1820e2,_0xeae853){const _0xcadf28=a52_0x4758,_0x314beb=_0x1820e2();while(!![]){try{const _0x5a2fe1=-parseInt(_0xcadf28(0x196))/0x1+parseInt(_0xcadf28(0x172))/0x2*(-parseInt(_0xcadf28(0x15f))/0x3)+parseInt(_0xcadf28(0x156))/0x4*(parseInt(_0xcadf28(0x1d9))/0x5)+-parseInt(_0xcadf28(0x1b1))/0x6*(-parseInt(_0xcadf28(0x1a0))/0x7)+parseInt(_0xcadf28(0x1b6))/0x8+parseInt(_0xcadf28(0x1cc))/0x9*(parseInt(_0xcadf28(0x14d))/0xa)+-parseInt(_0xcadf28(0x1ce))/0xb;if(_0x5a2fe1===_0xeae853)break;else _0x314beb['push'](_0x314beb['shift']());}catch(_0x2f9e25){_0x314beb['push'](_0x314beb['shift']());}}}(a52_0x51ca,0x4ce9b));const a52_0x57b7e2={};a52_0x57b7e2[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1b7),a52_0x57b7e2[a52_0x2f879f(0x18b)]=a52_0x2f879f(0x1a9);const a52_0x3a885a={};a52_0x3a885a[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1db);const a52_0x2bac45={};a52_0x2bac45['INFO']=a52_0x2f879f(0x147);const a52_0x58833b={};a52_0x58833b[a52_0x2f879f(0x185)]='Run\x20cucumber-js\x20tests\x20on\x20browserstack';const a52_0x2cdc84={};a52_0x2cdc84[a52_0x2f879f(0x185)]='Run\x20js\x20tests\x20on\x20browserstack';function a52_0x51ca(){const _0xf39588=['Run\x20mocha\x20tests\x20on\x20browserstack','PACKAGE_TYPE','OBSERVABILITY_UPLOAD_URL','timeouts','observability','https://hub-preprod.bsstag.com/wd/hub','44840BkbGTA','.aab','bsstag','proxySettings','TCG_DOWN','root','PLAYWRIGHT_CONFIG_OPTION_ERRORS','mocha','https://api-preprod.bsstag.com','546180LUksxV','browserStackLocalOptions','app-automate','AUTOLOGCAPTURE_NOTIFICATION','https://edsstaging.bsstag.com','TCG_URL','rerunTests','...[TRUNCATED]','proxyPass','300951NabakJ','browserstack-ats.com','PLAYWRIGHT','name\x20property\x20must\x20be\x20unique\x20within\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','vanilla','TCG_AUTH_FAILURE','acceptInsecureCerts','browserstack.com','9|1|12|6|5|7|11|3|4|0|2|10|8','preprod','HEALING_FAILURE_TIMEOUT','browserVersion','Jest','Create\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing','NUDGE_LOCAL_ERRORS','unhandledPromptBehavior','O11Y_URL','HEALING_LOG_DATA_TIMEOUT','CUCUMBER','2tviyKr','SDKTestTcgDownResponse','Upgrade\x20required','browserstackLocal','bsstag.com','INTEGRATIONS','AUTOMATE','AI_INIT_SUCCESSFUL','BROWSERSTACK_APP_AUTOMATE_URL','APP_UPLOAD_URL','testOrchestrationOptions','percyCaptureMode','proxyUser','invalidKeys','parallelsPerPlatform','accessibility','firefoxOptions','https://upload-observability-preprod.bsstag.com','SDKTestInvalidTcgAuthResponseWithUserImpact','INFO','ERR_PROXY_CONNECTION_FAILED','testObservabilityOptions','NIGHTWATCH','HUB_URL_REGEX','ERR_ADDRESS_UNREACHABLE','HELP','wss://cdp-preprod.bsstag.com/playwright?caps=','SHAREABLE_ID_REGEX','proxyPassword','BROWSERSTACK_API_URL','ROOT_CAPS','PLAYWRIGHT_TRACE_LOGS','uniqueDependency','testObservability','accessKey','SDKTestInitFailedResponse','382412pNZdAh','TCG_AUTH_TIMEOUT','./browserstack-artifacts/','MOCHA','INVALID_INIT_RESP_WITH_USER_IMPACT','HST','https://app-automate.browserstack.com/dashboard/v2/builds/','ERR_SOCKS_CONNECTION_FAILED','^[a-zA-Z0-9_.-]*/[a-zA-Z0-9_.-]*$','ATS_WSS_URL_REGEX','28cGRllz','turboScaleOptions','VALID_APP_EXTENSION','percyOptions','https://api.browserstack.com','use','hubUrl','https://tcg.bsstag.com','ERR_CONNECTION_ABORTED','Specify\x20--help\x20for\x20available\x20options','logLevel','proxyUrl','https://observability-devtestops.bsstag.com','BROWSERSTACK_ENV','CODECEPTJS','ERR_MANDATORY_PROXY_CONFIGURATION_FAILED','playwright','408126vLyOPm','framework','toLowerCase','Run\x20playwright\x20tests\x20on\x20Browserstack','ERR_CONNECTION_FAILED','955648vmSRaM','shows\x20version\x20information','Mocha','localProxyPass','EDS_URL','AI_INIT_FAILURE','localOptions','wss://cdp-devtestops.bsstag.com/playwright?caps=','ERR_SOCKS_CONNECTION_HOST_UNREACHABLE','GIT_META_DATA_TRUNCATED','ERR_SOCKET_NOT_CONNECTED','UPDATED_CLI_ENDPOINT','TCG_REGION','staging','customVariables','SET_TCG_TOKEN_TIMEOUT','localProxyUser','SDKTestTcgtInitSuccessful','acceptSslCerts','BROWSERSTACK_AUTOMATE_URL','codeceptjs-cucumber','LOG_FILE_NAME','909pGAJbM','ERR_FAILED','5019245LjgEHh','AI_PROXY_FAILURE','.apk','VERSION','disableAutoCaptureLogs','httpProxy','https://upload-observability.browserstack.com','Invalid\x20value\x20for\x20\x27%s\x27\x20key\x20in\x20the\x20yml\x20file','https://eds.browserstack.com','PRIVATE_DOMAIN_OR_IP_REGEX','browserstackAutomation','15UZYRQO','userName','Run\x20jest\x20tests\x20on\x20browserstack','SDKTestTcgProxyFailure','sdk/v1/update_cli','ERR_CONNECTION_TIMED_OUT','Project\x20and\x20debug\x20logs\x20are\x20captured\x20by\x20default.\x20To\x20disable,\x20set\x20disableAutoCaptureLogs:\x20true\x20in\x20config.','3|9|11|5|7|6|4|2|12|8|1|0|10','strictFileInteractability','accessibilityOptions','browserstack.userName','authToken','APP_AUTOMATE','module','turboScale','AUTOMATE_PRODUCTS','commonjs','https://observability.browserstack.com','automate','jest','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','TEST_FRAMEWORK_HOOK_TIMEOUT','BSTACK_ATS_URL','MODULE','PLAYWRIGHT_HUB_URL','https://apidevtestops.bsstag.com','split','pageLoadStrategy','CODECEPT','stag','ERR_CONNECTION_RESET','FUNNEL_INSTRUMENTATION_API_URL','APP_AUTOMATE_PRODUCTS','httpsProxy','BSTACK_DELTA','.ipa','ERR_NAME_NOT_RESOLVED','percy','OBSERVABILITY_SUPPORTED_FWS','JEST','testContextOptions','BSTACK_URL','https://app-automate-devtestops.bsstag.com/dashboard/v2/builds/','name\x20and\x20testMatch\x20are\x20required\x20for\x20the\x20%s\x20key\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','edgeOptions','ROOT_REGEX','ERR_CONNECTION_REFUSED','Playwright','CODECEPT_CUCUMBER','Cucumber-JS','FRAMEWORKS','Run\x20nightwatch\x20tests\x20on\x20browserstack','Invalid\x20property\x20added\x20for\x20the\x20%s\x20in\x20playwrightConfigOptions\x20in\x20the\x20yml\x20file','BROWSERSTACK','codeceptjs','CI_ARTIFACTS_PATH','PERCY_SUPPORTED_FRAMEWORKS','exports'];a52_0x51ca=function(){return _0xf39588;};return a52_0x51ca();}const a52_0x545cbf={};a52_0x545cbf['INFO']=a52_0x2f879f(0x140);const a52_0x4f9e5a={};a52_0x4f9e5a[a52_0x2f879f(0x185)]=a52_0x2f879f(0x1b4);const a52_0x316327={};a52_0x316327['INFO']='Run\x20codeceptjs\x20tests\x20on\x20browserstack';const a52_0x94bbc6={};a52_0x94bbc6[a52_0x2f879f(0x185)]=a52_0x2f879f(0x16c);const a52_0x23e23f={};a52_0x23e23f['INFO']='Connect\x20on\x20prem\x20instances\x20to\x20Browserstack';const a52_0x9945c9={};a52_0x9945c9[a52_0x2f879f(0x161)]=a52_0x2f879f(0x13c),a52_0x9945c9[a52_0x2f879f(0x199)]='mocha',a52_0x9945c9[a52_0x2f879f(0x134)]=a52_0x2f879f(0x1ec),a52_0x9945c9[a52_0x2f879f(0x1f5)]=a52_0x2f879f(0x143),a52_0x9945c9[a52_0x2f879f(0x13d)]=a52_0x2f879f(0x1ca),a52_0x9945c9['CUCUMBER']='cucumber';const a52_0x112e3b={};a52_0x112e3b[a52_0x2f879f(0x17f)]=a52_0x2f879f(0x141),a52_0x112e3b[a52_0x2f879f(0x192)]=a52_0x2f879f(0x162),a52_0x112e3b['mandatoryDependency']=a52_0x2f879f(0x138),a52_0x112e3b['invalidTestInputType']=a52_0x2f879f(0x1d5);const a52_0x1e4846={};a52_0x1e4846['COMMONJS']=a52_0x2f879f(0x1e9),a52_0x1e4846[a52_0x2f879f(0x1f0)]=a52_0x2f879f(0x1e6);const a52_0x50cc79={};a52_0x50cc79[a52_0x2f879f(0x1b8)]=0xfde8,a52_0x50cc79[a52_0x2f879f(0x13e)]=0xfde8,a52_0x50cc79[a52_0x2f879f(0x16b)]=0x186a0;const a52_0x441321={};a52_0x441321[a52_0x2f879f(0x152)]=[a52_0x2f879f(0x1da),a52_0x2f879f(0x194),a52_0x2f879f(0x1d3),a52_0x2f879f(0x1fa),a52_0x2f879f(0x1c4),a52_0x2f879f(0x1e3),'browserstack.accessKey',a52_0x2f879f(0x18e),a52_0x2f879f(0x1e4),a52_0x2f879f(0x1ab),'browserstack.overridelocalInfo.userAuthToken'],a52_0x441321[a52_0x2f879f(0x157)]=[a52_0x2f879f(0x17e),a52_0x2f879f(0x15e),a52_0x2f879f(0x1c6),a52_0x2f879f(0x1b9)];function a52_0x4758(_0x510153,_0x467274){const _0x51ca36=a52_0x51ca();return a52_0x4758=function(_0x475834,_0x4342d1){_0x475834=_0x475834-0x132;let _0x5e4147=_0x51ca36[_0x475834];return _0x5e4147;},a52_0x4758(_0x510153,_0x467274);}const a52_0x598481={};a52_0x598481[a52_0x2f879f(0x175)]=a52_0x2f879f(0x175),a52_0x598481[a52_0x2f879f(0x157)]=a52_0x2f879f(0x157),a52_0x598481[a52_0x2f879f(0x1bc)]='browserStackLocalOptions',a52_0x598481[a52_0x2f879f(0x180)]=a52_0x2f879f(0x180),a52_0x598481['platforms']='platforms',a52_0x598481['logLevel']=a52_0x2f879f(0x1aa),a52_0x598481[a52_0x2f879f(0x1d3)]='httpProxy',a52_0x598481[a52_0x2f879f(0x1fa)]=a52_0x2f879f(0x1fa),a52_0x598481[a52_0x2f879f(0x1b2)]='framework',a52_0x598481[a52_0x2f879f(0x135)]=a52_0x2f879f(0x135),a52_0x598481[a52_0x2f879f(0x193)]=a52_0x2f879f(0x193),a52_0x598481['testObservabilityOptions']=a52_0x2f879f(0x187),a52_0x598481[a52_0x2f879f(0x1c4)]=a52_0x2f879f(0x1c4),a52_0x598481['automation']=a52_0x2f879f(0x1d8),a52_0x598481[a52_0x2f879f(0x1d8)]=a52_0x2f879f(0x1d8),a52_0x598481[a52_0x2f879f(0x15c)]=a52_0x2f879f(0x15c),a52_0x598481[a52_0x2f879f(0x132)]=a52_0x2f879f(0x132),a52_0x598481[a52_0x2f879f(0x1a3)]=a52_0x2f879f(0x1a3),a52_0x598481[a52_0x2f879f(0x17d)]=a52_0x2f879f(0x17d),a52_0x598481['disableAutoCaptureLogs']=a52_0x2f879f(0x1d2),a52_0x598481['accessibility']=a52_0x2f879f(0x181),a52_0x598481[a52_0x2f879f(0x1e2)]='accessibilityOptions',a52_0x598481[a52_0x2f879f(0x1e7)]=a52_0x2f879f(0x1e7),a52_0x598481[a52_0x2f879f(0x1a1)]='turboScaleOptions',a52_0x598481[a52_0x2f879f(0x150)]=a52_0x2f879f(0x150),a52_0x598481['testOrchestrationOptions']=a52_0x2f879f(0x17c);const a52_0x213417={};a52_0x213417[a52_0x2f879f(0x1d1)]=a52_0x57b7e2,a52_0x213417['JEST']=a52_0x3a885a,a52_0x213417[a52_0x2f879f(0x199)]=a52_0x2bac45,a52_0x213417[a52_0x2f879f(0x171)]=a52_0x58833b,a52_0x213417['VANILLA']=a52_0x2cdc84,a52_0x213417[a52_0x2f879f(0x188)]=a52_0x545cbf,a52_0x213417[a52_0x2f879f(0x161)]=a52_0x4f9e5a,a52_0x213417[a52_0x2f879f(0x1ae)]=a52_0x316327,a52_0x213417[a52_0x2f879f(0x19b)]=a52_0x94bbc6,a52_0x213417[a52_0x2f879f(0x177)]=a52_0x23e23f,a52_0x213417[a52_0x2f879f(0x1fb)]=0xf*0x3c*0x3e8,a52_0x213417[a52_0x2f879f(0x1a6)]='https://hub.browserstack.com/wd/hub',a52_0x213417[a52_0x2f879f(0x15b)]='https://tcg.browserstack.com',a52_0x213417[a52_0x2f879f(0x1c2)]=a52_0x2f879f(0x1a5),a52_0x213417[a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.browserstack\.com$/,a52_0x213417['ATS_HUB_URL_REGEX']=/^[a-zA-Z0-9]+-hub\.browserstack-ats\.com$/,a52_0x213417[a52_0x2f879f(0x19f)]=/wss?:\/\/(?:[a-zA-Z0-9_-]+-)?hub(?:-ft)?\.browserstack(-ats)?\.com/,a52_0x213417[a52_0x2f879f(0x190)]=[a52_0x2f879f(0x165),a52_0x2f879f(0x1f4),a52_0x2f879f(0x1e1),a52_0x2f879f(0x16e),a52_0x2f879f(0x14a),'browserName',a52_0x2f879f(0x16a),a52_0x2f879f(0x1c8),'acceptSslCert','chromeOptions',a52_0x2f879f(0x182),a52_0x2f879f(0x139),'ieOptions'],a52_0x213417[a52_0x2f879f(0x13a)]=/^[\w-]+:.*$/,a52_0x213417[a52_0x2f879f(0x1d7)]=[/localhost/,/bs-local.com/,/^127\./,/^10\./,/^172\.1[6-9]\./,/^172\.2[0-9]\./,/^172\.3[0-1]\./,/^192\.168\./],a52_0x213417['EDS_URL']=a52_0x2f879f(0x1d6),a52_0x213417['BROWSERSTACK_API_URL']=a52_0x2f879f(0x1a4),a52_0x213417[a52_0x2f879f(0x17b)]='https://api-cloud.browserstack.com',a52_0x213417[a52_0x2f879f(0x1c1)]=a52_0x2f879f(0x1dd),a52_0x213417[a52_0x2f879f(0x1f8)]='sdk/v1/event',a52_0x213417[a52_0x2f879f(0x1e8)]=[a52_0x2f879f(0x1eb),a52_0x2f879f(0x14b)],a52_0x213417[a52_0x2f879f(0x1f9)]=['app-automate',a52_0x2f879f(0x14b)],a52_0x213417[a52_0x2f879f(0x1ed)]=['observability'],a52_0x213417[a52_0x2f879f(0x149)]=a52_0x2f879f(0x1d4),a52_0x213417[a52_0x2f879f(0x133)]=[a52_0x2f879f(0x154),a52_0x2f879f(0x13c)],a52_0x213417[a52_0x2f879f(0x178)]=[a52_0x2f879f(0x1eb)],a52_0x213417[a52_0x2f879f(0x1c9)]='https://automate.browserstack.com/dashboard/v2/builds/',a52_0x213417['BROWSERSTACK_APP_AUTOMATE_URL']=a52_0x2f879f(0x19c),a52_0x213417[a52_0x2f879f(0x1e5)]=[a52_0x2f879f(0x158)],a52_0x213417[a52_0x2f879f(0x16d)]=[a52_0x2f879f(0x1cd),'ERR_TIMED_OUT','ERR_BLOCKED_BY_CLIENT','ERR_NETWORK_CHANGED',a52_0x2f879f(0x1c0),'ERR_CONNECTION_CLOSED',a52_0x2f879f(0x1f7),a52_0x2f879f(0x13b),a52_0x2f879f(0x1a8),a52_0x2f879f(0x1b5),a52_0x2f879f(0x1fd),'ERR_ADDRESS_INVALID',a52_0x2f879f(0x18a),'ERR_TUNNEL_CONNECTION_FAILED',a52_0x2f879f(0x1de),a52_0x2f879f(0x19d),a52_0x2f879f(0x1be),a52_0x2f879f(0x186),a52_0x2f879f(0x1fd),'ERR_NAME_RESOLUTION_FAILED',a52_0x2f879f(0x1af)],a52_0x213417[a52_0x2f879f(0x1a2)]=[a52_0x2f879f(0x1d0),a52_0x2f879f(0x14e),a52_0x2f879f(0x1fc)],a52_0x213417['CUSTOM_ID_REGEX']='^[a-zA-Z0-9_.-]*$',a52_0x213417[a52_0x2f879f(0x18d)]=a52_0x2f879f(0x19e),a52_0x213417[a52_0x2f879f(0x144)]=a52_0x2f879f(0x198),a52_0x213417[a52_0x2f879f(0x1f1)]='wss://cdp.browserstack.com/playwright?caps=',a52_0x213417[a52_0x2f879f(0x13f)]=a52_0x9945c9,a52_0x213417[a52_0x2f879f(0x145)]=[a52_0x2f879f(0x1ec),a52_0x2f879f(0x154)],a52_0x213417[a52_0x2f879f(0x153)]=a52_0x112e3b,a52_0x213417[a52_0x2f879f(0x159)]=a52_0x2f879f(0x1df),a52_0x213417[a52_0x2f879f(0x148)]=a52_0x1e4846,a52_0x213417['MAX_GIT_META_DATA_SIZE_IN_BYTES']=0x40*0x400,a52_0x213417[a52_0x2f879f(0x1bf)]=a52_0x2f879f(0x15d),a52_0x213417['UPGRADE_REQUIRED']=a52_0x2f879f(0x174),a52_0x213417[a52_0x2f879f(0x151)]=a52_0x2f879f(0x173),a52_0x213417[a52_0x2f879f(0x19a)]=a52_0x2f879f(0x184),a52_0x213417[a52_0x2f879f(0x164)]='SDKTestTcgAuthFailure',a52_0x213417[a52_0x2f879f(0x179)]=a52_0x2f879f(0x1c7),a52_0x213417[a52_0x2f879f(0x1bb)]=a52_0x2f879f(0x195),a52_0x213417[a52_0x2f879f(0x1cf)]=a52_0x2f879f(0x1dc),a52_0x213417[a52_0x2f879f(0x197)]=0x1388,a52_0x213417[a52_0x2f879f(0x1c5)]=0x1388,a52_0x213417[a52_0x2f879f(0x170)]=0x1388,a52_0x213417[a52_0x2f879f(0x169)]=0x1388,a52_0x213417['POLL_HEALING_RESULT_TIMEOUT']=0xc350,a52_0x213417[a52_0x2f879f(0x1ee)]=a52_0x50cc79,a52_0x213417['REDACTED_KEYS']=a52_0x441321,a52_0x213417['AI_ENABLED_FRAMEWORK']=[a52_0x2f879f(0x163),a52_0x2f879f(0x143)],a52_0x213417['SDK_INSTRUMENTATION_CONFIG']=a52_0x598481,a52_0x213417[a52_0x2f879f(0x1cb)]='/usage.log',a52_0x213417['DEBUG_LOG_FILE_NAME']='/usage-debug.log',a52_0x213417[a52_0x2f879f(0x136)]=a52_0x2f879f(0x166),a52_0x213417[a52_0x2f879f(0x1ef)]=a52_0x2f879f(0x160),a52_0x213417[a52_0x2f879f(0x16f)]=a52_0x2f879f(0x1ea),a52_0x213417[a52_0x2f879f(0x142)]='browserstack',a52_0x213417['CLI_SUPPORTED_FRAMEWORKS']=[a52_0x2f879f(0x1b0)],a52_0x213417[a52_0x2f879f(0x191)]=a52_0x2f879f(0x191),module['exports']=a52_0x213417;const _env=(process['env'][a52_0x2f879f(0x1ad)]||'prod')[a52_0x2f879f(0x1b3)]();if(_env===a52_0x2f879f(0x1c3)||_env===a52_0x2f879f(0x1f6)){const ocrkUk=a52_0x2f879f(0x1e0)[a52_0x2f879f(0x1f3)]('|');let jZlRAY=0x0;while(!![]){switch(ocrkUk[jZlRAY++]){case'0':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1ba)]=a52_0x2f879f(0x15a);continue;case'1':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x149)]='https://upload-observability-devtestops-ssi.bsstag.com';continue;case'2':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1f1)]=a52_0x2f879f(0x1bd);continue;case'3':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1a6)]='https://hub-devtestops.bsstag.com/wd/hub';continue;case'4':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17b)]='https://api-cloud-devtestops.bsstag.com';continue;case'5':module['exports'][a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'6':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17a)]=a52_0x2f879f(0x137);continue;case'7':module[a52_0x2f879f(0x146)]['BROWSERSTACK_AUTOMATE_URL']='https://automate-devtestops.bsstag.com/dashboard/v2/builds/';continue;case'8':module['exports'][a52_0x2f879f(0x16f)]=a52_0x2f879f(0x1ac);continue;case'9':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x18f)]=a52_0x2f879f(0x1f2);continue;case'10':module['exports']['BROWSERSTACK']=a52_0x2f879f(0x14f);continue;case'11':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x15b)]=a52_0x2f879f(0x1a7);continue;case'12':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x136)]=a52_0x2f879f(0x176);continue;}break;}}else{if(_env===a52_0x2f879f(0x168)||_env==='pre-prod'){const OAWStr=a52_0x2f879f(0x167)[a52_0x2f879f(0x1f3)]('|');let SxGRhP=0x0;while(!![]){switch(OAWStr[SxGRhP++]){case'0':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x16f)]='https://observability-preprod.bsstag.com';continue;case'1':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x18f)]=a52_0x2f879f(0x155);continue;case'2':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x149)]=a52_0x2f879f(0x183);continue;case'3':module[a52_0x2f879f(0x146)]['PLAYWRIGHT_HUB_URL']=a52_0x2f879f(0x18c);continue;case'4':module['exports']['BSTACK_URL']=a52_0x2f879f(0x176);continue;case'5':module[a52_0x2f879f(0x146)]['BROWSERSTACK_AUTOMATE_URL']='https://automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'6':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x189)]=/^hub(-[a-z]+)?\.bsstag\.com$/;continue;case'7':module['exports'][a52_0x2f879f(0x17a)]='https://app-automate-preprod.bsstag.com/dashboard/v2/builds/';continue;case'8':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x142)]=a52_0x2f879f(0x14f);continue;case'9':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x1a6)]=a52_0x2f879f(0x14c);continue;case'10':module['exports'][a52_0x2f879f(0x1ba)]=a52_0x2f879f(0x15a);continue;case'11':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x17b)]=a52_0x2f879f(0x155);continue;case'12':module[a52_0x2f879f(0x146)][a52_0x2f879f(0x15b)]='https://tcg-preprod.bsstag.com';continue;}break;}}}
@@ -1 +1 @@
1
- (function(_0x854400,_0x189719){const _0xbff3e9=a53_0x15c2,_0x375e81=_0x854400();while(!![]){try{const _0x214d39=parseInt(_0xbff3e9(0xa1))/0x1+-parseInt(_0xbff3e9(0x9f))/0x2+parseInt(_0xbff3e9(0xa0))/0x3+parseInt(_0xbff3e9(0xab))/0x4+parseInt(_0xbff3e9(0xaa))/0x5+parseInt(_0xbff3e9(0xa8))/0x6+-parseInt(_0xbff3e9(0xa9))/0x7;if(_0x214d39===_0x189719)break;else _0x375e81['push'](_0x375e81['shift']());}catch(_0x5671c6){_0x375e81['push'](_0x375e81['shift']());}}}(a53_0x3ae6,0xbdc49));function a53_0x15c2(_0x54e261,_0x2c4eee){const _0x3ae6e0=a53_0x3ae6();return a53_0x15c2=function(_0x15c22f,_0x2dc683){_0x15c22f=_0x15c22f-0x9d;let _0x422279=_0x3ae6e0[_0x15c22f];return _0x422279;},a53_0x15c2(_0x54e261,_0x2c4eee);}const logReportingAPI=require('./logReportingAPI'),BSTestOpsLogger=new logReportingAPI({});function BSTestOpsLog4JSAppender(_0x25af4c,_0x2c1a44){return _0x325d07=>{const _0x52ff34=a53_0x15c2;BSTestOpsLogger['log']({'level':_0x325d07[_0x52ff34(0x9d)]?_0x325d07[_0x52ff34(0x9d)][_0x52ff34(0x9e)]:null,'message':_0x325d07[_0x52ff34(0xa7)]?_0x325d07[_0x52ff34(0xa7)]['join']('\x20'):null});};}exports['configure']=(_0xe72928,_0x1f0423)=>{const _0x588d91=a53_0x15c2,_0x30f140={'GPEHx':function(_0x16b1c0,_0x2b738f,_0x45ff92){return _0x16b1c0(_0x2b738f,_0x45ff92);}};let _0xaede8d=_0x1f0423[_0x588d91(0xa4)];return _0xe72928[_0x588d91(0xa2)]&&(_0xaede8d=_0x1f0423[_0x588d91(0xa2)](_0xe72928['layout'][_0x588d91(0xa6)],_0xe72928[_0x588d91(0xa2)])),_0x30f140[_0x588d91(0xa3)](BSTestOpsLog4JSAppender,_0xaede8d,_0xe72928[_0x588d91(0xa5)]);};function a53_0x3ae6(){const _0x1d0852=['461825hbIKis','3616960vxIffI','level','levelStr','2910726XEdbOr','3852714wqGfHK','993187Hfvdcb','layout','GPEHx','colouredLayout','timezoneOffset','type','data','1843590MVGCjW','9440501yTWEFq'];a53_0x3ae6=function(){return _0x1d0852;};return a53_0x3ae6();}
1
+ function a53_0x5b4e(_0x4c0c2f,_0x2ec817){const _0x3b4ae5=a53_0x3b4a();return a53_0x5b4e=function(_0x5b4e8e,_0x5267c6){_0x5b4e8e=_0x5b4e8e-0x9c;let _0x1d58d1=_0x3b4ae5[_0x5b4e8e];return _0x1d58d1;},a53_0x5b4e(_0x4c0c2f,_0x2ec817);}function a53_0x3b4a(){const _0x2956ea=['8mRUeNM','byrnU','levelStr','./logReportingAPI','layout','18nvkMSK','configure','7247215dEbNST','725450uDSnmt','timezoneOffset','join','981825aHkoDI','1853048FVmDoa','data','4324980JXmDAZ','type','6NKmWAp','colouredLayout','level','77955hxeAfX','8528331lZWIwH'];a53_0x3b4a=function(){return _0x2956ea;};return a53_0x3b4a();}const a53_0x5eb6e7=a53_0x5b4e;(function(_0x3c1c19,_0x31c5f7){const _0x4d7247=a53_0x5b4e,_0xf6f051=_0x3c1c19();while(!![]){try{const _0x4e16e2=-parseInt(_0x4d7247(0xab))/0x1+-parseInt(_0x4d7247(0xa0))/0x2*(parseInt(_0x4d7247(0x9e))/0x3)+-parseInt(_0x4d7247(0xae))/0x4+parseInt(_0x4d7247(0xa7))/0x5*(parseInt(_0x4d7247(0xb0))/0x6)+parseInt(_0x4d7247(0x9f))/0x7+-parseInt(_0x4d7247(0xac))/0x8*(-parseInt(_0x4d7247(0xa5))/0x9)+-parseInt(_0x4d7247(0xa8))/0xa;if(_0x4e16e2===_0x31c5f7)break;else _0xf6f051['push'](_0xf6f051['shift']());}catch(_0x12b858){_0xf6f051['push'](_0xf6f051['shift']());}}}(a53_0x3b4a,0xd9a5b));const logReportingAPI=require(a53_0x5eb6e7(0xa3)),BSTestOpsLogger=new logReportingAPI({});function BSTestOpsLog4JSAppender(_0x1e2126,_0x212a39){return _0x126ef0=>{const _0x48244e=a53_0x5b4e;BSTestOpsLogger['log']({'level':_0x126ef0[_0x48244e(0x9d)]?_0x126ef0[_0x48244e(0x9d)][_0x48244e(0xa2)]:null,'message':_0x126ef0[_0x48244e(0xad)]?_0x126ef0[_0x48244e(0xad)][_0x48244e(0xaa)]('\x20'):null});};}exports[a53_0x5eb6e7(0xa6)]=(_0x212f70,_0x3e30fa)=>{const _0x359c7b=a53_0x5eb6e7,_0x362b75={'byrnU':function(_0x4a37af,_0x55c037,_0x322e55){return _0x4a37af(_0x55c037,_0x322e55);}};let _0x1545f8=_0x3e30fa[_0x359c7b(0x9c)];return _0x212f70[_0x359c7b(0xa4)]&&(_0x1545f8=_0x3e30fa[_0x359c7b(0xa4)](_0x212f70[_0x359c7b(0xa4)][_0x359c7b(0xaf)],_0x212f70[_0x359c7b(0xa4)])),_0x362b75[_0x359c7b(0xa1)](BSTestOpsLog4JSAppender,_0x1545f8,_0x212f70[_0x359c7b(0xa9)]);};
@@ -1 +1 @@
1
- const a54_0x5bea0b=a54_0x1aaf;(function(_0x598ff2,_0x361c0c){const _0x139753=a54_0x1aaf,_0x4552ce=_0x598ff2();while(!![]){try{const _0x4e185e=-parseInt(_0x139753(0x167))/0x1*(-parseInt(_0x139753(0x155))/0x2)+parseInt(_0x139753(0x14e))/0x3*(parseInt(_0x139753(0x159))/0x4)+-parseInt(_0x139753(0x14d))/0x5+parseInt(_0x139753(0x157))/0x6+parseInt(_0x139753(0x160))/0x7*(parseInt(_0x139753(0x166))/0x8)+parseInt(_0x139753(0x15f))/0x9+-parseInt(_0x139753(0x15e))/0xa;if(_0x4e185e===_0x361c0c)break;else _0x4552ce['push'](_0x4552ce['shift']());}catch(_0x180969){_0x4552ce['push'](_0x4552ce['shift']());}}}(a54_0x22f6,0xd8242));const Transport=require(a54_0x5bea0b(0x161)),{consoleHolder}=require('../../helpers/test-observability/constants'),a54_0x31b381={};a54_0x31b381[a54_0x5bea0b(0x15d)]=a54_0x5bea0b(0x15d),a54_0x31b381[a54_0x5bea0b(0x14c)]=a54_0x5bea0b(0x14c),a54_0x31b381['DEBUG']=a54_0x5bea0b(0x156),a54_0x31b381['TRACE']=a54_0x5bea0b(0x14a),a54_0x31b381[a54_0x5bea0b(0x15c)]=a54_0x5bea0b(0x15c);const LOG_LEVELS=a54_0x31b381;class logPatcher extends Transport{constructor(_0x42916e){super(_0x42916e);}[a54_0x5bea0b(0x152)]=(_0x4d82ca=LOG_LEVELS[a54_0x5bea0b(0x15d)],_0x494931=[''])=>{const _0x4dfeef=a54_0x5bea0b,_0x5d513d={};_0x5d513d['FHQKi']=_0x4dfeef(0x162);const _0x2c6ade=_0x5d513d;consoleHolder[_0x4d82ca['toLowerCase']()](..._0x494931),process[_0x4dfeef(0x151)](_0x4dfeef(0x163)+process['pid'],{'timestamp':new Date()[_0x4dfeef(0x154)](),'level':_0x4d82ca[_0x4dfeef(0x150)](),'message':'\x22'+_0x494931[_0x4dfeef(0x164)](',\x20')+'\x22','kind':_0x2c6ade[_0x4dfeef(0x15a)],'http_response':{}});};[a54_0x5bea0b(0x15b)]=(..._0x44fa79)=>{const _0x3b17b6=a54_0x5bea0b;this['logToTestOps'](LOG_LEVELS[_0x3b17b6(0x14a)],_0x44fa79);};[a54_0x5bea0b(0x14f)]=(..._0x242270)=>{const _0x3af780=a54_0x5bea0b;this[_0x3af780(0x152)](LOG_LEVELS[_0x3af780(0x156)],_0x242270);};[a54_0x5bea0b(0x153)]=(..._0x2735e1)=>{const _0x2fb957=a54_0x5bea0b;this[_0x2fb957(0x152)](LOG_LEVELS[_0x2fb957(0x15d)],_0x2735e1);};['warn']=(..._0x58b56a)=>{const _0x203086=a54_0x5bea0b;this[_0x203086(0x152)](LOG_LEVELS[_0x203086(0x15c)],_0x58b56a);};[a54_0x5bea0b(0x158)]=(..._0x1f83eb)=>{const _0x460cb9=a54_0x5bea0b;this[_0x460cb9(0x152)](LOG_LEVELS[_0x460cb9(0x14c)],_0x1f83eb);};[a54_0x5bea0b(0x165)]=(..._0x1fff60)=>{const _0x1d90f9=a54_0x5bea0b;this[_0x1d90f9(0x152)](LOG_LEVELS[_0x1d90f9(0x15d)],_0x1fff60);};}function a54_0x1aaf(_0xca2802,_0xb2b06a){const _0x22f634=a54_0x22f6();return a54_0x1aaf=function(_0x1aafba,_0x54334a){_0x1aafba=_0x1aafba-0x14a;let _0x4da92d=_0x22f634[_0x1aafba];return _0x4da92d;},a54_0x1aaf(_0xca2802,_0xb2b06a);};function a54_0x22f6(){const _0x14507a=['log','3102032VzdxOF','555syVrxq','TRACE','exports','ERROR','6343625BoDTWp','3315aQMHRS','debug','toUpperCase','emit','logToTestOps','info','toISOString','4028DqAfik','DEBUG','4562106UTORca','error','5156CLptuT','FHQKi','trace','WARN','INFO','31914410ibSILF','14897340EdjnMW','7OlitBv','winston-transport','TEST_LOG','bs:addLog:','join'];a54_0x22f6=function(){return _0x14507a;};return a54_0x22f6();}module[a54_0x5bea0b(0x14b)]=logPatcher;
1
+ const a54_0x55774b=a54_0x1b32;function a54_0x1b32(_0xce5301,_0x460b35){const _0x453b69=a54_0x453b();return a54_0x1b32=function(_0x1b3231,_0xc82247){_0x1b3231=_0x1b3231-0x195;let _0x4ba6bb=_0x453b69[_0x1b3231];return _0x4ba6bb;},a54_0x1b32(_0xce5301,_0x460b35);}(function(_0x42b473,_0x2d4fcd){const _0x253f66=a54_0x1b32,_0x227989=_0x42b473();while(!![]){try{const _0x23584=-parseInt(_0x253f66(0x1aa))/0x1+parseInt(_0x253f66(0x1b0))/0x2*(parseInt(_0x253f66(0x1b1))/0x3)+-parseInt(_0x253f66(0x198))/0x4+parseInt(_0x253f66(0x19f))/0x5*(-parseInt(_0x253f66(0x195))/0x6)+-parseInt(_0x253f66(0x19d))/0x7*(-parseInt(_0x253f66(0x199))/0x8)+-parseInt(_0x253f66(0x19c))/0x9*(parseInt(_0x253f66(0x1ab))/0xa)+parseInt(_0x253f66(0x1b2))/0xb*(parseInt(_0x253f66(0x1a0))/0xc);if(_0x23584===_0x2d4fcd)break;else _0x227989['push'](_0x227989['shift']());}catch(_0x11412a){_0x227989['push'](_0x227989['shift']());}}}(a54_0x453b,0x516ed));const Transport=require(a54_0x55774b(0x1a2)),{consoleHolder}=require(a54_0x55774b(0x197)),a54_0x35dad6={};a54_0x35dad6[a54_0x55774b(0x1ad)]=a54_0x55774b(0x1ad),a54_0x35dad6[a54_0x55774b(0x1a6)]=a54_0x55774b(0x1a6),a54_0x35dad6[a54_0x55774b(0x1ae)]=a54_0x55774b(0x1ae),a54_0x35dad6[a54_0x55774b(0x1af)]=a54_0x55774b(0x1af),a54_0x35dad6[a54_0x55774b(0x19b)]=a54_0x55774b(0x19b);const LOG_LEVELS=a54_0x35dad6;class logPatcher extends Transport{constructor(_0x295606){super(_0x295606);}['logToTestOps']=(_0x4272e5=LOG_LEVELS['INFO'],_0x12d3fb=[''])=>{const _0x20f128=a54_0x55774b,_0x151a17={};_0x151a17[_0x20f128(0x196)]='TEST_LOG';const _0x33f3f0=_0x151a17;consoleHolder[_0x4272e5[_0x20f128(0x1a4)]()](..._0x12d3fb),process['emit'](_0x20f128(0x1a1)+process[_0x20f128(0x19a)],{'timestamp':new Date()[_0x20f128(0x1a5)](),'level':_0x4272e5[_0x20f128(0x1a3)](),'message':'\x22'+_0x12d3fb['join'](',\x20')+'\x22','kind':_0x33f3f0[_0x20f128(0x196)],'http_response':{}});};['trace']=(..._0x3652d2)=>{this['logToTestOps'](LOG_LEVELS['TRACE'],_0x3652d2);};[a54_0x55774b(0x19e)]=(..._0x25d771)=>{const _0x34c90d=a54_0x55774b;this[_0x34c90d(0x1a9)](LOG_LEVELS[_0x34c90d(0x1ae)],_0x25d771);};[a54_0x55774b(0x1a8)]=(..._0x4b265f)=>{const _0x40b7b4=a54_0x55774b;this[_0x40b7b4(0x1a9)](LOG_LEVELS[_0x40b7b4(0x1ad)],_0x4b265f);};[a54_0x55774b(0x1a7)]=(..._0x4aba2e)=>{const _0x444122=a54_0x55774b;this[_0x444122(0x1a9)](LOG_LEVELS['WARN'],_0x4aba2e);};['error']=(..._0x1c3095)=>{const _0x5da1ce=a54_0x55774b;this[_0x5da1ce(0x1a9)](LOG_LEVELS[_0x5da1ce(0x1a6)],_0x1c3095);};[a54_0x55774b(0x1ac)]=(..._0x1f7403)=>{const _0x30d62c=a54_0x55774b;this[_0x30d62c(0x1a9)](LOG_LEVELS[_0x30d62c(0x1ad)],_0x1f7403);};}function a54_0x453b(){const _0x443551=['1484742OsjZZO','debug','10ujNzPx','783684zImeLh','bs:addLog:','winston-transport','toUpperCase','toLowerCase','toISOString','ERROR','warn','info','logToTestOps','149909dmPqTO','80630IfQPUI','log','INFO','DEBUG','TRACE','10OQgisX','124587nVGhuv','55aVQhoW','exports','398262IxkZAC','mELMQ','../../helpers/test-observability/constants','359036JMLlRU','8fjiNCt','pid','WARN','45cGALdB'];a54_0x453b=function(){return _0x443551;};return a54_0x453b();};module[a54_0x55774b(0x1b3)]=logPatcher;
@@ -1 +1 @@
1
- const a55_0x3c4344=a55_0x6f60;(function(_0x53af11,_0x1ecf50){const _0x33c45a=a55_0x6f60,_0xf87926=_0x53af11();while(!![]){try{const _0x12e148=parseInt(_0x33c45a(0x1da))/0x1+-parseInt(_0x33c45a(0x1e5))/0x2+-parseInt(_0x33c45a(0x1d3))/0x3+-parseInt(_0x33c45a(0x1df))/0x4+parseInt(_0x33c45a(0x1ca))/0x5+-parseInt(_0x33c45a(0x1d2))/0x6+parseInt(_0x33c45a(0x1d8))/0x7*(parseInt(_0x33c45a(0x1cf))/0x8);if(_0x12e148===_0x1ecf50)break;else _0xf87926['push'](_0xf87926['shift']());}catch(_0x16fd28){_0xf87926['push'](_0xf87926['shift']());}}}(a55_0x28e3,0xa3f16));function a55_0x6f60(_0xcdf1e4,_0x4aaf50){const _0x28e362=a55_0x28e3();return a55_0x6f60=function(_0x6f601c,_0x1eee48){_0x6f601c=_0x6f601c-0x1c9;let _0x3c1ef3=_0x28e362[_0x6f601c];return _0x3c1ef3;},a55_0x6f60(_0xcdf1e4,_0x4aaf50);}const Transport=require(a55_0x3c4344(0x1e1)),{consoleHolder}=require(a55_0x3c4344(0x1d6)),a55_0x7eec09={};a55_0x7eec09['INFO']=a55_0x3c4344(0x1db),a55_0x7eec09[a55_0x3c4344(0x1c9)]=a55_0x3c4344(0x1c9),a55_0x7eec09[a55_0x3c4344(0x1d7)]='DEBUG',a55_0x7eec09['TRACE']='TRACE',a55_0x7eec09[a55_0x3c4344(0x1e7)]='WARN';function a55_0x28e3(){const _0x2cf4d9=['5100528KJMjKV','2950509lEewoM','Fevxo','toUpperCase','../../helpers/test-observability/constants','DEBUG','1435BZdquf','level','1051584cVejvk','INFO','bs:addLog:','TRACE','exports','3099588BQWxRE','message','winston-transport','eqHsp','toLowerCase','emit','2243908iPFzdo','dVwzq','WARN','warn','UEhTq','error','ERROR','3398140QiRUQl','cOSqe','toISOString','logToTestOps','logged','104224kUMlab','debug','TEST_LOG'];a55_0x28e3=function(){return _0x2cf4d9;};return a55_0x28e3();}const LOG_LEVELS=a55_0x7eec09;class logReportingAPI extends Transport{constructor(_0xbd7750){super(_0xbd7750);}['log'](_0x2c71fd,_0x136628){const _0xa30be3=a55_0x3c4344,_0x5a53e5={'dVwzq':_0xa30be3(0x1ce),'Fevxo':function(_0x35ea6e,_0x3d36a9){return _0x35ea6e(_0x3d36a9);},'SLOKT':function(_0x410309,_0xe9123d){return _0x410309===_0xe9123d;},'UEhTq':'object','cOSqe':function(_0x137596){return _0x137596();}};_0x5a53e5[_0xa30be3(0x1d4)](setImmediate,()=>{const _0x5c6441=_0xa30be3;this[_0x5c6441(0x1e4)](_0x5a53e5[_0x5c6441(0x1e6)],_0x2c71fd);}),_0x5a53e5['SLOKT'](typeof _0x2c71fd,_0x5a53e5[_0xa30be3(0x1e9)])?this[_0xa30be3(0x1cd)](_0x2c71fd[_0xa30be3(0x1d9)]||LOG_LEVELS[_0xa30be3(0x1db)],_0x2c71fd[_0xa30be3(0x1e0)],![]):this['logToTestOps'](LOG_LEVELS['INFO'],_0x2c71fd),_0x136628&&_0x5a53e5[_0xa30be3(0x1cb)](_0x136628);}['logToTestOps']=(_0x4cd23c=LOG_LEVELS['INFO'],_0x5e68d2='',_0x3201ff=!![])=>{const _0x4a54d0=a55_0x3c4344,_0x4f7806={};_0x4f7806[_0x4a54d0(0x1e2)]=_0x4a54d0(0x1d1);const _0x39b6f7=_0x4f7806;_0x3201ff&&consoleHolder[_0x4cd23c[_0x4a54d0(0x1e3)]()](_0x5e68d2),process[_0x4a54d0(0x1e4)](_0x4a54d0(0x1dc)+process['pid'],{'timestamp':new Date()[_0x4a54d0(0x1cc)](),'level':_0x4cd23c[_0x4a54d0(0x1d5)](),'message':_0x5e68d2,'kind':_0x39b6f7[_0x4a54d0(0x1e2)],'http_response':{}});};['trace']=(_0x3985b5,_0x4bd8db)=>{const _0x431a2a=a55_0x3c4344;this[_0x431a2a(0x1cd)](LOG_LEVELS[_0x431a2a(0x1dd)],_0x3985b5);};[a55_0x3c4344(0x1d0)]=(_0xebb402,_0x5849b3)=>{const _0x1bb2d0=a55_0x3c4344;this[_0x1bb2d0(0x1cd)](LOG_LEVELS[_0x1bb2d0(0x1d7)],_0xebb402);};['info']=(_0x333efb,_0x4e1fdd)=>{const _0x1e6924=a55_0x3c4344;this[_0x1e6924(0x1cd)](LOG_LEVELS[_0x1e6924(0x1db)],_0x333efb);};[a55_0x3c4344(0x1e8)]=(_0x5a11d7,_0x1fd4d4)=>{const _0x6c1c0f=a55_0x3c4344;this[_0x6c1c0f(0x1cd)](LOG_LEVELS[_0x6c1c0f(0x1e7)],_0x5a11d7);};[a55_0x3c4344(0x1ea)]=(_0x706eee,_0x35d917)=>{const _0x437bb7=a55_0x3c4344;this[_0x437bb7(0x1cd)](LOG_LEVELS[_0x437bb7(0x1c9)],_0x706eee);};};module[a55_0x3c4344(0x1de)]=logReportingAPI;
1
+ const a55_0x3747af=a55_0x4352;(function(_0x37bd05,_0x556cd4){const _0x4fd0a2=a55_0x4352,_0x41ede9=_0x37bd05();while(!![]){try{const _0x3abb7e=-parseInt(_0x4fd0a2(0x10b))/0x1*(parseInt(_0x4fd0a2(0xfc))/0x2)+-parseInt(_0x4fd0a2(0x10f))/0x3*(parseInt(_0x4fd0a2(0xf5))/0x4)+parseInt(_0x4fd0a2(0xfe))/0x5*(parseInt(_0x4fd0a2(0xf9))/0x6)+-parseInt(_0x4fd0a2(0xf7))/0x7*(-parseInt(_0x4fd0a2(0x10e))/0x8)+-parseInt(_0x4fd0a2(0xfd))/0x9+parseInt(_0x4fd0a2(0x102))/0xa+parseInt(_0x4fd0a2(0x108))/0xb;if(_0x3abb7e===_0x556cd4)break;else _0x41ede9['push'](_0x41ede9['shift']());}catch(_0x3e463f){_0x41ede9['push'](_0x41ede9['shift']());}}}(a55_0x2296,0x53ba9));const Transport=require(a55_0x3747af(0x10c)),{consoleHolder}=require(a55_0x3747af(0x105)),a55_0x15cbd0={};a55_0x15cbd0['INFO']=a55_0x3747af(0x110),a55_0x15cbd0['ERROR']='ERROR',a55_0x15cbd0[a55_0x3747af(0x103)]=a55_0x3747af(0x103),a55_0x15cbd0[a55_0x3747af(0x107)]='TRACE',a55_0x15cbd0['WARN']=a55_0x3747af(0xef);function a55_0x4352(_0x5eaec3,_0x3e9187){const _0x229654=a55_0x2296();return a55_0x4352=function(_0x43523b,_0x106ae0){_0x43523b=_0x43523b-0xec;let _0x50c910=_0x229654[_0x43523b];return _0x50c910;},a55_0x4352(_0x5eaec3,_0x3e9187);}const LOG_LEVELS=a55_0x15cbd0;function a55_0x2296(){const _0x1795f4=['object','info','WARN','toUpperCase','XbWOF','Muyzk','message','bs:addLog:','8sEEhmU','log','84889nLsjck','exports','135246LkqFZB','debug','TEST_LOG','22062BBHWHe','4454793VINQOe','65IPoFRl','trace','error','yNaiF','6046730BtAlWY','DEBUG','logToTestOps','../../helpers/test-observability/constants','pid','TRACE','7076971eivQJF','emit','KNTtg','42mmkuKT','winston-transport','ERROR','56ARJvwm','487086BQfsnw','INFO','MrTat','uoJgc','toLowerCase','level'];a55_0x2296=function(){return _0x1795f4;};return a55_0x2296();}class logReportingAPI extends Transport{constructor(_0x3fb6fb){super(_0x3fb6fb);}[a55_0x3747af(0xf6)](_0x1891e0,_0x2b995a){const _0xe66e5c=a55_0x3747af,_0x37b4c6={'XbWOF':'logged','uoJgc':function(_0xe37392,_0x1768d7){return _0xe37392(_0x1768d7);},'Muyzk':function(_0x3f3dfa,_0x2be011){return _0x3f3dfa===_0x2be011;},'MrTat':_0xe66e5c(0xed),'yNaiF':function(_0x365a91){return _0x365a91();}};_0x37b4c6[_0xe66e5c(0x112)](setImmediate,()=>{const _0x29e3fe=_0xe66e5c;this[_0x29e3fe(0x109)](_0x37b4c6[_0x29e3fe(0xf1)],_0x1891e0);}),_0x37b4c6[_0xe66e5c(0xf2)](typeof _0x1891e0,_0x37b4c6[_0xe66e5c(0x111)])?this[_0xe66e5c(0x104)](_0x1891e0[_0xe66e5c(0xec)]||LOG_LEVELS[_0xe66e5c(0x110)],_0x1891e0[_0xe66e5c(0xf3)],![]):this['logToTestOps'](LOG_LEVELS['INFO'],_0x1891e0),_0x2b995a&&_0x37b4c6[_0xe66e5c(0x101)](_0x2b995a);}['logToTestOps']=(_0x563a86=LOG_LEVELS[a55_0x3747af(0x110)],_0x2a79c2='',_0x5052ae=!![])=>{const _0x1a1567=a55_0x3747af,_0x1fb04a={};_0x1fb04a[_0x1a1567(0x10a)]=_0x1a1567(0xfb);const _0x435de0=_0x1fb04a;_0x5052ae&&consoleHolder[_0x563a86[_0x1a1567(0x113)]()](_0x2a79c2),process[_0x1a1567(0x109)](_0x1a1567(0xf4)+process[_0x1a1567(0x106)],{'timestamp':new Date()['toISOString'](),'level':_0x563a86[_0x1a1567(0xf0)](),'message':_0x2a79c2,'kind':_0x435de0[_0x1a1567(0x10a)],'http_response':{}});};[a55_0x3747af(0xff)]=(_0x3549f9,_0x4a105f)=>{const _0x39caff=a55_0x3747af;this[_0x39caff(0x104)](LOG_LEVELS[_0x39caff(0x107)],_0x3549f9);};[a55_0x3747af(0xfa)]=(_0x43657d,_0x33d15e)=>{const _0x17815e=a55_0x3747af;this[_0x17815e(0x104)](LOG_LEVELS[_0x17815e(0x103)],_0x43657d);};[a55_0x3747af(0xee)]=(_0x339daa,_0x505027)=>{const _0x5d80a4=a55_0x3747af;this['logToTestOps'](LOG_LEVELS[_0x5d80a4(0x110)],_0x339daa);};['warn']=(_0xedeefd,_0x1bb6ae)=>{const _0x7f25b3=a55_0x3747af;this[_0x7f25b3(0x104)](LOG_LEVELS[_0x7f25b3(0xef)],_0xedeefd);};[a55_0x3747af(0x100)]=(_0x5b88a4,_0x2ee715)=>{const _0x297693=a55_0x3747af;this[_0x297693(0x104)](LOG_LEVELS[_0x297693(0x10d)],_0x5b88a4);};};module[a55_0x3747af(0xf8)]=logReportingAPI;
@@ -1 +1 @@
1
- const a56_0x4bc96f=a56_0x9394;(function(_0x56dcc5,_0x2f3cb0){const _0x50f95c=a56_0x9394,_0x4b5baf=_0x56dcc5();while(!![]){try{const _0x3322f0=-parseInt(_0x50f95c(0x104))/0x1*(-parseInt(_0x50f95c(0xd0))/0x2)+-parseInt(_0x50f95c(0xde))/0x3*(parseInt(_0x50f95c(0xca))/0x4)+parseInt(_0x50f95c(0xfb))/0x5+parseInt(_0x50f95c(0xe9))/0x6*(-parseInt(_0x50f95c(0xfd))/0x7)+parseInt(_0x50f95c(0xb6))/0x8*(parseInt(_0x50f95c(0x119))/0x9)+parseInt(_0x50f95c(0x11a))/0xa*(parseInt(_0x50f95c(0xb8))/0xb)+-parseInt(_0x50f95c(0x115))/0xc;if(_0x3322f0===_0x2f3cb0)break;else _0x4b5baf['push'](_0x4b5baf['shift']());}catch(_0x5313d4){_0x4b5baf['push'](_0x4b5baf['shift']());}}}(a56_0x3d19,0xb2c60));function a56_0x9394(_0x51c27a,_0x241535){const _0x3d19c0=a56_0x3d19();return a56_0x9394=function(_0x93941a,_0x97619a){_0x93941a=_0x93941a-0xa9;let _0x2cebb4=_0x3d19c0[_0x93941a];return _0x2cebb4;},a56_0x9394(_0x51c27a,_0x241535);}const fs=require('fs'),path=require(a56_0x4bc96f(0xe8)),{v4:uuidv4}=require(a56_0x4bc96f(0x10d)),{TEMP_STORE_DIR_NAME}=require(a56_0x4bc96f(0xcc)),{nestedKeyValue}=require(a56_0x4bc96f(0xed)),logger=require('../../helpers/logger')[a56_0x4bc96f(0xba)],util=require('util'),helper=require('../../helpers/helper'),{createClassLogger}=require('../../helpers/classLogger.js'),lockfile=require(a56_0x4bc96f(0xbf));class TestInfo{static [a56_0x4bc96f(0xaf)]={};static ['dirPath']=TestInfo[a56_0x4bc96f(0xe1)]();static [a56_0x4bc96f(0xdf)]=path['join'](TestInfo[a56_0x4bc96f(0x10a)],'traceZipPaths');[a56_0x4bc96f(0x109)]=createClassLogger(a56_0x4bc96f(0xf9));static['setup'](){const _0x41a1ef=a56_0x4bc96f,_0x354426={};_0x354426[_0x41a1ef(0xeb)]=_0x41a1ef(0xf8),_0x354426[_0x41a1ef(0xf7)]=_0x41a1ef(0xf4);const _0x3c3e7b=_0x354426,_0x522db6=_0x3c3e7b[_0x41a1ef(0xeb)][_0x41a1ef(0x105)]('|');let _0x46ef22=0x0;while(!![]){switch(_0x522db6[_0x46ef22++]){case'0':const _0x390fba={};_0x390fba[_0x41a1ef(0xc9)]=!![],fs['mkdirSync'](this[_0x41a1ef(0x10a)],_0x390fba);continue;case'1':this[_0x41a1ef(0xdf)]=path[_0x41a1ef(0x101)](this['dirPath'],_0x3c3e7b[_0x41a1ef(0xf7)]);continue;case'2':this['dirPath']=TestInfo['getStoreDirName']();continue;case'3':this['shutdown']();continue;case'4':const _0x403ba4={};_0x403ba4[_0x41a1ef(0xc9)]=!![],fs[_0x41a1ef(0xbb)](this['traceZipDir'],_0x403ba4);continue;case'5':logger[_0x41a1ef(0xac)]('Setting\x20up\x20TestInfo\x20directory\x20at\x20'+this[_0x41a1ef(0x10a)]);continue;}break;}}static[a56_0x4bc96f(0xe1)](){const _0x1435ea=a56_0x4bc96f,_0x3867d0={};_0x3867d0[_0x1435ea(0x10c)]=function(_0x7dc89f,_0x250261){return _0x7dc89f+_0x250261;},_0x3867d0['WtBWG']=function(_0x3895ec,_0x55e692){return _0x3895ec+_0x55e692;};const _0xe7f252=_0x3867d0;return _0xe7f252[_0x1435ea(0x10c)](_0xe7f252[_0x1435ea(0xc2)](TEMP_STORE_DIR_NAME,'-'),process[_0x1435ea(0xcd)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a56_0x4bc96f(0xf0)](){const _0x4cabaa=a56_0x4bc96f,_0x4eec7f={};_0x4eec7f[_0x4cabaa(0x116)]=function(_0x4a6eed,_0x4b5378){return _0x4a6eed+_0x4b5378;},_0x4eec7f[_0x4cabaa(0xce)]=function(_0x210c58,_0x3e425b){return _0x210c58+_0x3e425b;},_0x4eec7f[_0x4cabaa(0x106)]=_0x4cabaa(0xd3);const _0x1c08bd=_0x4eec7f;return path[_0x4cabaa(0x101)](_0x1c08bd[_0x4cabaa(0x116)](_0x1c08bd['FfxyE'](TEMP_STORE_DIR_NAME,'-'),process[_0x4cabaa(0xcd)][_0x4cabaa(0xdb)]||_0x1c08bd[_0x4cabaa(0x106)]));}static['getTraceZipDir'](){const _0x59083e=a56_0x4bc96f,_0x24137b={};_0x24137b['nRsPS']='traceZipPaths';const _0x26fe7b=_0x24137b;return path[_0x59083e(0x101)](this[_0x59083e(0xf0)](),_0x26fe7b['nRsPS']);}static[a56_0x4bc96f(0x112)](_0xee99cd){const _0x2e169f=a56_0x4bc96f,_0x41585f={};_0x41585f['KzCIE']=function(_0x2bfc6e,_0x1c7dee){return _0x2bfc6e+_0x1c7dee;},_0x41585f[_0x2e169f(0xc7)]=_0x2e169f(0xc1);const _0x1263fe=_0x41585f;return path[_0x2e169f(0x101)](this['dirPath'],_0x1263fe[_0x2e169f(0xfc)](_0xee99cd,_0x1263fe[_0x2e169f(0xc7)]));}static[a56_0x4bc96f(0xf3)](_0x5bf6e7){const _0x1fc650=a56_0x4bc96f,_0x257b84={};_0x257b84['vRZxT']=function(_0x16540c,_0x490cc6){return _0x16540c+_0x490cc6;},_0x257b84[_0x1fc650(0xd9)]=function(_0x3f1582,_0x2a0a81){return _0x3f1582+_0x2a0a81;};const _0x2dac8c=_0x257b84;return _0x2dac8c['vRZxT'](_0x2dac8c[_0x1fc650(0x11b)](_0x2dac8c['vRZxT'](_0x2dac8c[_0x1fc650(0xd9)](this[_0x1fc650(0xc3)](_0x5bf6e7),'-'),this[_0x1fc650(0xff)](_0x5bf6e7)),'-'),_0x5bf6e7[_0x1fc650(0x103)]);}static['getProjectIdFromTestInfo'](_0x4602c0){const _0x14f1e4=a56_0x4bc96f,_0x3ab1ed={'XeJTN':function(_0x32c37e,_0x19df2b,_0x17e919){return _0x32c37e(_0x19df2b,_0x17e919);},'vDLox':_0x14f1e4(0x10b),'ggMuk':_0x14f1e4(0xaa),'lhTOv':_0x14f1e4(0x108),'Dbyxz':_0x14f1e4(0x107)};return _0x3ab1ed[_0x14f1e4(0x117)](nestedKeyValue,_0x4602c0,[_0x3ab1ed['vDLox'],_0x3ab1ed[_0x14f1e4(0xd8)]])||_0x3ab1ed[_0x14f1e4(0x117)](nestedKeyValue,_0x4602c0,[_0x3ab1ed[_0x14f1e4(0xb3)],_0x3ab1ed[_0x14f1e4(0xef)]]);}static[a56_0x4bc96f(0xff)](_0x7a76b6){const _0x2cbdf0=a56_0x4bc96f,_0x424cd0={'jdUkC':function(_0x2bc7a4,_0x32b5a5,_0x36e945){return _0x2bc7a4(_0x32b5a5,_0x36e945);},'mKXgh':_0x2cbdf0(0x10b)};return _0x424cd0[_0x2cbdf0(0x114)](nestedKeyValue,_0x7a76b6,[_0x424cd0[_0x2cbdf0(0x10f)],'id'])||_0x7a76b6[_0x2cbdf0(0xb5)];}static['getTestUUID'](_0xbc7008){const _0x249c37=a56_0x4bc96f,_0x22b79b={'TVErE':function(_0x22cc39,_0x1946e8){return _0x22cc39===_0x1946e8;},'InjKX':_0x249c37(0x100),'dtGnq':function(_0x8576c6){return _0x8576c6();}};try{if(this[_0x249c37(0xaf)][_0xbc7008]&&_0x22b79b['TVErE'](typeof this['tests'][_0xbc7008]['uuid'],_0x22b79b[_0x249c37(0xea)]))return this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];const _0xd0aec0=this[_0x249c37(0x112)](_0xbc7008),_0x914bed=path[_0x249c37(0xab)](_0xd0aec0);if(fs[_0x249c37(0xd5)](_0x914bed)){const _0x189a4b=JSON[_0x249c37(0xb9)](fs[_0x249c37(0xb4)](_0xd0aec0)['toString']());return this[_0x249c37(0xaf)][_0xbc7008]=_0x189a4b,this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];}return this['tests'][_0xbc7008]={'uuid':_0x22b79b[_0x249c37(0xc4)](uuidv4)},fs[_0x249c37(0xbe)](_0xd0aec0,JSON['stringify'](this[_0x249c37(0xaf)][_0xbc7008])),this[_0x249c37(0xaf)][_0xbc7008][_0x249c37(0x10d)];}catch(_0x13f322){return logger[_0x249c37(0xc8)]('Error\x20while\x20getting\x20test\x20UUID\x20for\x20'+_0xbc7008+':\x20'+_0x13f322[_0x249c37(0xdd)]),null;}}static[a56_0x4bc96f(0xcf)](_0x27b05b){const _0x329543=a56_0x4bc96f,_0x13eebd=path[_0x329543(0x101)](this[_0x329543(0x10a)],_0x27b05b+'_platformDetails.json');if(fs['existsSync'](_0x13eebd))return fs[_0x329543(0xb4)](_0x13eebd)[_0x329543(0xd2)]();}static[a56_0x4bc96f(0xb1)](_0x46a077,_0x146bfe){const _0x31d174=a56_0x4bc96f,_0x20950d=path['join'](this['dirPath'],_0x146bfe+'_platformDetails.json');fs[_0x31d174(0xbe)](_0x20950d,_0x46a077[_0x31d174(0xd2)]());}static[a56_0x4bc96f(0xbd)](){const _0x255912=a56_0x4bc96f,_0x58c9ac={};_0x58c9ac[_0x255912(0xc9)]=!![],_0x58c9ac[_0x255912(0xad)]=!![],fs[_0x255912(0xc5)](this[_0x255912(0x10a)],_0x58c9ac);}static[a56_0x4bc96f(0x118)](_0x3e056c){const _0x5be8da=a56_0x4bc96f,_0x288fba=this['getFilePath'](_0x3e056c);if(fs[_0x5be8da(0xd5)](_0x288fba))try{const _0xcac735=JSON[_0x5be8da(0xb9)](fs[_0x5be8da(0xb4)](_0x288fba)[_0x5be8da(0xd2)]());return this[_0x5be8da(0xaf)][_0x3e056c]=_0xcac735,_0xcac735;}catch(_0x5cded1){return logger[_0x5be8da(0xb2)](_0x5be8da(0xe5)+_0x288fba+':\x20'+util[_0x5be8da(0x102)](_0x5cded1)+_0x5be8da(0xf1)),{};}return{};}static[a56_0x4bc96f(0xb7)](_0x1db079,_0x2fe747){const _0x2d937e=a56_0x4bc96f,_0x1814ee={'FeqRw':'setTestDetails\x20','sAWKD':function(_0x9c43f0){return _0x9c43f0();}};logger[_0x2d937e(0xd7)](_0x1814ee[_0x2d937e(0xe6)]),logger['debug'](_0x2d937e(0xf5)+process['pid']+_0x2d937e(0xfe)+_0x1db079+'\x20with\x20details:\x20'+JSON[_0x2d937e(0x11c)](_0x2fe747));const _0x466123=this[_0x2d937e(0x112)](_0x1db079);if(fs[_0x2d937e(0xd5)](_0x466123))try{const _0x3de96d=lockfile[_0x2d937e(0xcb)](_0x466123),_0xe31b24=JSON['parse'](fs[_0x2d937e(0xb4)](_0x466123)[_0x2d937e(0xd2)]()),_0x13a8a4={..._0xe31b24,..._0x2fe747};this[_0x2d937e(0xaf)][_0x1db079]=_0x13a8a4,fs[_0x2d937e(0xbe)](_0x466123,JSON['stringify'](this[_0x2d937e(0xaf)][_0x1db079])),_0x1814ee[_0x2d937e(0xec)](_0x3de96d);}catch(_0x42c0e6){logger[_0x2d937e(0xb2)](_0x2d937e(0xe5)+_0x466123+':\x20'+util['format'](_0x42c0e6)+_0x2d937e(0x110));}}static[a56_0x4bc96f(0x10e)](_0x4a4d30){const _0x5ae97d=a56_0x4bc96f,_0x4f0746={};_0x4f0746['SHNQV']=_0x5ae97d(0xe2);const _0x5586b0=_0x4f0746;try{const _0x26fc18=process[_0x5ae97d(0xd4)],_0x2d9718=path['join'](TestInfo[_0x5ae97d(0x111)](),_0x26fc18+'_traceZipPaths.json');let _0x3fe995=[];fs[_0x5ae97d(0xd5)](_0x2d9718)&&(_0x3fe995=JSON[_0x5ae97d(0xb9)](fs[_0x5ae97d(0xb4)](_0x2d9718)[_0x5ae97d(0xd2)]()));if(!_0x3fe995[_0x5ae97d(0xa9)](_0x29a5fc=>_0x29a5fc[_0x5ae97d(0xdc)]===_0x4a4d30[_0x5ae97d(0xdc)])){_0x3fe995['push'](_0x4a4d30);const _0x2d3370=path[_0x5ae97d(0xd1)](_0x2d9718);if(!fs[_0x5ae97d(0xd5)](_0x2d3370)){const _0x5d9634={};_0x5d9634[_0x5ae97d(0xc9)]=!![],fs[_0x5ae97d(0xbb)](_0x2d3370,_0x5d9634);}fs[_0x5ae97d(0xbe)](_0x2d9718,JSON[_0x5ae97d(0x11c)](_0x3fe995));}}catch(_0x101a38){logger[_0x5ae97d(0xc8)](util[_0x5ae97d(0x102)](_0x5586b0['SHNQV'],_0x101a38));}}static['getTraceFilePaths'](){const _0x55a950=a56_0x4bc96f,_0x4f936b={};_0x4f936b[_0x55a950(0xee)]=_0x55a950(0x113),_0x4f936b[_0x55a950(0xe4)]=_0x55a950(0xc0);const _0x3dd6c6=_0x4f936b,_0x2bb8d8=[];try{const _0x948aac=TestInfo[_0x55a950(0x111)]();if(!fs[_0x55a950(0xd5)](_0x948aac))return _0x2bb8d8;const _0x2ad4fb=fs['readdirSync'](_0x948aac);_0x2ad4fb[_0x55a950(0xfa)](_0x20afed=>{const _0xa7eda4=_0x55a950;if(_0x20afed[_0xa7eda4(0xb0)](_0x3dd6c6['xhguL'])){const _0xf4dc4b=JSON['parse'](fs[_0xa7eda4(0xb4)](path[_0xa7eda4(0x101)](_0x948aac,_0x20afed))[_0xa7eda4(0xd2)]());_0x2bb8d8[_0xa7eda4(0xe7)](..._0xf4dc4b);}});}catch(_0x52c721){logger['error'](util[_0x55a950(0x102)](_0x3dd6c6[_0x55a950(0xe4)],_0x52c721));}const _0x1d66cd={};return _0x2bb8d8[_0x55a950(0xfa)](_0x46bd2e=>{const _0x381d09=_0x55a950;_0x1d66cd[_0x46bd2e[_0x381d09(0xdc)]]=_0x46bd2e;}),Object[_0x55a950(0xf6)](_0x1d66cd);}static[a56_0x4bc96f(0xae)](_0x41bd6c,_0x2af0a0){const _0x4e5582=a56_0x4bc96f,_0x173a32={};_0x173a32['hRuRy']=_0x4e5582(0xd6),_0x173a32['BgWeD']='utf8',_0x173a32['gmPQj']=_0x4e5582(0xc6);const _0x8571c0=_0x173a32;try{const _0x5e3826=path['join'](helper[_0x4e5582(0xbc)](),_0x8571c0['hRuRy']);if(!fs[_0x4e5582(0xd5)](_0x5e3826)){const _0x325117={};_0x325117[_0x4e5582(0xc9)]=!![],fs[_0x4e5582(0xbb)](_0x5e3826,_0x325117);}fs[_0x4e5582(0xe0)](path[_0x4e5582(0x101)](_0x5e3826,_0x4e5582(0xf2)+_0x2af0a0+_0x4e5582(0xe3)),_0x41bd6c+'\x0a',_0x8571c0[_0x4e5582(0xda)]);}catch(_0xbe0507){logger[_0x4e5582(0xc8)](util[_0x4e5582(0x102)](_0x8571c0['gmPQj'],_0xbe0507));}}}module['exports']=TestInfo;function a56_0x3d19(){const _0x49dae2=['trace_','getTestRunIdFromTestInfo','traceZipPaths','processId:\x20','values','eMRws','2|1|3|0|4|5','TestInfo','forEach','7285170sDmMOC','KzCIE','7jpxDbU','\x20Setting\x20\x20test\x20details\x20for\x20','getTestIdFromTestInfo','string','join','format','retry','6946JFEXpD','split','PJoWp','__projectId','project','logger','dirPath','_test','EmFFe','uuid','addTraceFilePath','mKXgh','.\x20Unable\x20to\x20set\x20test\x20details.','getTraceZipDir','getFilePath','_traceZipPaths.json','jdUkC','32298804pdieth','GaLPF','XeJTN','getTestDetails','2007dfZwtx','732020KtwSld','vRZxT','stringify','some','_projectId','resolve','info','force','appendToTracePaths','tests','endsWith','setAccessibilityPlatformValidation','warn','lhTOv','readFileSync','testId','24896cfZWDb','setTestDetails','198ZKCPTO','parse','winstonLogger','mkdirSync','homedir','shutdown','writeFileSync','proper-lockfile','Error\x20reading\x20trace\x20file\x20paths:\x20%O','.json','WtBWG','getProjectIdFromTestInfo','dtGnq','rmSync','Error\x20writing\x20trace\x20file:\x20%O','VdmXT','error','recursive','1580fSUZdg','lockSync','../../helpers/test-observability/constants','env','FfxyE','getAccessibilityPlatformValidation','282NbyMXd','dirname','toString','default','pid','existsSync','.browserstack','debug','ggMuk','BFuWC','BgWeD','BS_TESTOPS_BUILD_HASHED_ID','filePath','message','1848ystUjS','traceZipDir','appendFileSync','getStoreDirName','Error\x20handling\x20trace\x20file\x20paths:\x20%O','.txt','rDzwO','Failed\x20to\x20acquire\x20lock\x20for\x20','FeqRw','push','path','4685334iUpSdn','InjKX','WrDYz','sAWKD','../../helpers/helper','xhguL','Dbyxz','getStoreDirPath','.\x20Returning\x20empty\x20test\x20details.'];a56_0x3d19=function(){return _0x49dae2;};return a56_0x3d19();}
1
+ const a56_0x789882=a56_0x568f;(function(_0x205674,_0x1b98e4){const _0x2fdfb1=a56_0x568f,_0x252ae6=_0x205674();while(!![]){try{const _0x4d815b=-parseInt(_0x2fdfb1(0x1ee))/0x1*(parseInt(_0x2fdfb1(0x209))/0x2)+parseInt(_0x2fdfb1(0x1b7))/0x3*(parseInt(_0x2fdfb1(0x1bc))/0x4)+-parseInt(_0x2fdfb1(0x1f9))/0x5+-parseInt(_0x2fdfb1(0x1fb))/0x6*(-parseInt(_0x2fdfb1(0x1d1))/0x7)+-parseInt(_0x2fdfb1(0x1fe))/0x8*(parseInt(_0x2fdfb1(0x1e1))/0x9)+-parseInt(_0x2fdfb1(0x1b2))/0xa+parseInt(_0x2fdfb1(0x20b))/0xb;if(_0x4d815b===_0x1b98e4)break;else _0x252ae6['push'](_0x252ae6['shift']());}catch(_0x69b559){_0x252ae6['push'](_0x252ae6['shift']());}}}(a56_0x3e08,0xcc3cf));function a56_0x568f(_0x1f9402,_0x1f306c){const _0x3e083e=a56_0x3e08();return a56_0x568f=function(_0x568f66,_0x56b451){_0x568f66=_0x568f66-0x1a4;let _0x190de6=_0x3e083e[_0x568f66];return _0x190de6;},a56_0x568f(_0x1f9402,_0x1f306c);}const fs=require('fs'),path=require(a56_0x789882(0x1d8)),{v4:uuidv4}=require(a56_0x789882(0x20c)),{TEMP_STORE_DIR_NAME}=require(a56_0x789882(0x1f7)),{nestedKeyValue}=require(a56_0x789882(0x1ff)),logger=require(a56_0x789882(0x211))[a56_0x789882(0x1d9)],util=require('util'),helper=require('../../helpers/helper'),{createClassLogger}=require(a56_0x789882(0x1de)),lockfile=require(a56_0x789882(0x1b3));class TestInfo{static ['tests']={};static [a56_0x789882(0x1c7)]=TestInfo[a56_0x789882(0x204)]();static [a56_0x789882(0x1fd)]=path['join'](TestInfo['dirPath'],a56_0x789882(0x1a6));[a56_0x789882(0x1be)]=createClassLogger(a56_0x789882(0x1ac));static[a56_0x789882(0x20f)](){const _0x478acf=a56_0x789882,_0x278ec0={};_0x278ec0['cfODi']=_0x478acf(0x1ed),_0x278ec0['EPeID']=_0x478acf(0x1a6);const _0x5d2303=_0x278ec0,_0x226fbb=_0x5d2303[_0x478acf(0x1dc)]['split']('|');let _0x266b64=0x0;while(!![]){switch(_0x226fbb[_0x266b64++]){case'0':this['shutdown']();continue;case'1':const _0x489a4d={};_0x489a4d[_0x478acf(0x1d7)]=!![],fs[_0x478acf(0x1ba)](this['dirPath'],_0x489a4d);continue;case'2':const _0x226846={};_0x226846[_0x478acf(0x1d7)]=!![],fs[_0x478acf(0x1ba)](this[_0x478acf(0x1fd)],_0x226846);continue;case'3':this[_0x478acf(0x1c7)]=TestInfo['getStoreDirName']();continue;case'4':this['traceZipDir']=path[_0x478acf(0x1e7)](this['dirPath'],_0x5d2303[_0x478acf(0x205)]);continue;case'5':logger[_0x478acf(0x1c6)](_0x478acf(0x1cb)+this[_0x478acf(0x1c7)]);continue;}break;}}static['getStoreDirName'](){const _0x3c5376=a56_0x789882,_0x35e0d0={};_0x35e0d0['kXhtY']=function(_0x449145,_0x3e3d87){return _0x449145+_0x3e3d87;},_0x35e0d0[_0x3c5376(0x1e2)]=function(_0x51c57e,_0xfbf386){return _0x51c57e+_0xfbf386;};const _0x3b5741=_0x35e0d0;return _0x3b5741['kXhtY'](_0x3b5741[_0x3c5376(0x1e2)](TEMP_STORE_DIR_NAME,'-'),process[_0x3c5376(0x200)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x375338=a56_0x789882,_0x479d47={};_0x479d47['eTPEZ']=function(_0x1d3207,_0x13dabb){return _0x1d3207+_0x13dabb;},_0x479d47['QwjCM']=_0x375338(0x1b6);const _0x2260ba=_0x479d47;return path[_0x375338(0x1e7)](_0x2260ba['eTPEZ'](_0x2260ba[_0x375338(0x1b9)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x375338(0x1cc)]||_0x2260ba[_0x375338(0x1c2)]));}static['getTraceZipDir'](){const _0x425d98=a56_0x789882,_0x48a70d={};_0x48a70d['lJeLI']=_0x425d98(0x1a6);const _0x2f9866=_0x48a70d;return path[_0x425d98(0x1e7)](this[_0x425d98(0x1a4)](),_0x2f9866['lJeLI']);}static[a56_0x789882(0x1dd)](_0x2a5188){const _0x398b03=a56_0x789882,_0x2e7093={};_0x2e7093[_0x398b03(0x1da)]=function(_0x426fbb,_0xfbcfad){return _0x426fbb+_0xfbcfad;},_0x2e7093[_0x398b03(0x1e9)]=_0x398b03(0x1e8);const _0x362a73=_0x2e7093;return path['join'](this[_0x398b03(0x1c7)],_0x362a73[_0x398b03(0x1da)](_0x2a5188,_0x362a73[_0x398b03(0x1e9)]));}static['getTestRunIdFromTestInfo'](_0x5049d8){const _0x2bfe29=a56_0x789882,_0x21c76e={};_0x21c76e[_0x2bfe29(0x1c1)]=function(_0x5ac50e,_0x4e6012){return _0x5ac50e+_0x4e6012;},_0x21c76e[_0x2bfe29(0x1ab)]=function(_0x2b033a,_0x363427){return _0x2b033a+_0x363427;},_0x21c76e[_0x2bfe29(0x1c9)]=function(_0x23edaf,_0x22dfbe){return _0x23edaf+_0x22dfbe;};const _0x1ff77f=_0x21c76e;return _0x1ff77f[_0x2bfe29(0x1c1)](_0x1ff77f['cpbmg'](_0x1ff77f[_0x2bfe29(0x1ab)](_0x1ff77f[_0x2bfe29(0x1c9)](this[_0x2bfe29(0x1f4)](_0x5049d8),'-'),this['getTestIdFromTestInfo'](_0x5049d8)),'-'),_0x5049d8[_0x2bfe29(0x1c3)]);}static[a56_0x789882(0x1f4)](_0x19099f){const _0x42ebe0=a56_0x789882,_0x1088e8={'pYiDm':function(_0x1fe78c,_0x31e060,_0x4c6c87){return _0x1fe78c(_0x31e060,_0x4c6c87);},'Pttzd':_0x42ebe0(0x1e5),'gjifN':_0x42ebe0(0x214),'sfkzH':function(_0x5ba765,_0x542189,_0x3aced4){return _0x5ba765(_0x542189,_0x3aced4);},'XIviA':_0x42ebe0(0x1f5),'ThaTf':'__projectId'};return _0x1088e8[_0x42ebe0(0x1df)](nestedKeyValue,_0x19099f,[_0x1088e8[_0x42ebe0(0x1ad)],_0x1088e8[_0x42ebe0(0x1f1)]])||_0x1088e8[_0x42ebe0(0x1c4)](nestedKeyValue,_0x19099f,[_0x1088e8[_0x42ebe0(0x1f8)],_0x1088e8[_0x42ebe0(0x1ec)]]);}static[a56_0x789882(0x1e0)](_0x497f96){const _0x45370b=a56_0x789882,_0x4b58d3={'TAehu':function(_0x3e0548,_0x47df7d,_0x443583){return _0x3e0548(_0x47df7d,_0x443583);},'JMZUK':_0x45370b(0x1e5)};return _0x4b58d3['TAehu'](nestedKeyValue,_0x497f96,[_0x4b58d3['JMZUK'],'id'])||_0x497f96['testId'];}static['getTestUUID'](_0x447de9){const _0x150a1f=a56_0x789882,_0x978d03={'JtSbQ':function(_0x395bcb,_0x59c319){return _0x395bcb===_0x59c319;},'JIMaX':_0x150a1f(0x1ae),'IcPxO':function(_0x44e3d0){return _0x44e3d0();}};try{if(this[_0x150a1f(0x208)][_0x447de9]&&_0x978d03['JtSbQ'](typeof this['tests'][_0x447de9][_0x150a1f(0x20c)],_0x978d03[_0x150a1f(0x210)]))return this[_0x150a1f(0x208)][_0x447de9][_0x150a1f(0x20c)];const _0x807952=this[_0x150a1f(0x1dd)](_0x447de9),_0x4167b0=path[_0x150a1f(0x1ce)](_0x807952);if(fs['existsSync'](_0x4167b0)){const _0x51cf26=JSON[_0x150a1f(0x1f6)](fs[_0x150a1f(0x1f3)](_0x807952)[_0x150a1f(0x20d)]());return this[_0x150a1f(0x208)][_0x447de9]=_0x51cf26,this[_0x150a1f(0x208)][_0x447de9]['uuid'];}return this[_0x150a1f(0x208)][_0x447de9]={'uuid':_0x978d03['IcPxO'](uuidv4)},fs[_0x150a1f(0x20e)](_0x807952,JSON[_0x150a1f(0x20a)](this[_0x150a1f(0x208)][_0x447de9])),this[_0x150a1f(0x208)][_0x447de9]['uuid'];}catch(_0x253acb){return logger[_0x150a1f(0x1fc)](_0x150a1f(0x213)+_0x447de9+':\x20'+_0x253acb['message']),null;}}static['getAccessibilityPlatformValidation'](_0x39eefa){const _0x99a115=a56_0x789882,_0x31d0b1=path[_0x99a115(0x1e7)](this[_0x99a115(0x1c7)],_0x39eefa+_0x99a115(0x1e6));if(fs[_0x99a115(0x1af)](_0x31d0b1))return fs[_0x99a115(0x1f3)](_0x31d0b1)[_0x99a115(0x20d)]();}static[a56_0x789882(0x1b5)](_0x4b67cc,_0x2d6804){const _0xb20e26=a56_0x789882,_0x36d3df=path[_0xb20e26(0x1e7)](this['dirPath'],_0x2d6804+_0xb20e26(0x1e6));fs[_0xb20e26(0x20e)](_0x36d3df,_0x4b67cc[_0xb20e26(0x20d)]());}static['shutdown'](){const _0x5bb7d8=a56_0x789882,_0x26fe42={};_0x26fe42[_0x5bb7d8(0x1d7)]=!![],_0x26fe42[_0x5bb7d8(0x1b4)]=!![],fs[_0x5bb7d8(0x1c8)](this[_0x5bb7d8(0x1c7)],_0x26fe42);}static[a56_0x789882(0x201)](_0x4a5a5e){const _0x345c7e=a56_0x789882,_0x7f14fd=this['getFilePath'](_0x4a5a5e);if(fs[_0x345c7e(0x1af)](_0x7f14fd))try{const _0x3e5d68=JSON[_0x345c7e(0x1f6)](fs[_0x345c7e(0x1f3)](_0x7f14fd)['toString']());return this[_0x345c7e(0x208)][_0x4a5a5e]=_0x3e5d68,_0x3e5d68;}catch(_0x1bcd52){return logger[_0x345c7e(0x1bd)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x7f14fd+':\x20'+util[_0x345c7e(0x1ea)](_0x1bcd52)+_0x345c7e(0x1ef)),{};}return{};}static['setTestDetails'](_0x2cf8d6,_0x29324c){const _0x11f637=a56_0x789882,_0x2889e4={'pIjHW':_0x11f637(0x1a9),'QHDAF':function(_0x2b3243){return _0x2b3243();}};logger[_0x11f637(0x1d0)](_0x2889e4[_0x11f637(0x1cd)]),logger[_0x11f637(0x1d0)](_0x11f637(0x1f2)+process[_0x11f637(0x1fa)]+_0x11f637(0x1ca)+_0x2cf8d6+'\x20with\x20details:\x20'+JSON['stringify'](_0x29324c));const _0x2ad363=this[_0x11f637(0x1dd)](_0x2cf8d6);if(fs[_0x11f637(0x1af)](_0x2ad363))try{const _0x492257=lockfile[_0x11f637(0x202)](_0x2ad363),_0x1b25c3=JSON['parse'](fs[_0x11f637(0x1f3)](_0x2ad363)[_0x11f637(0x20d)]()),_0x16b605={..._0x1b25c3,..._0x29324c};this[_0x11f637(0x208)][_0x2cf8d6]=_0x16b605,fs[_0x11f637(0x20e)](_0x2ad363,JSON[_0x11f637(0x20a)](this[_0x11f637(0x208)][_0x2cf8d6])),_0x2889e4[_0x11f637(0x1cf)](_0x492257);}catch(_0x2fa604){logger[_0x11f637(0x1bd)](_0x11f637(0x1d2)+_0x2ad363+':\x20'+util['format'](_0x2fa604)+_0x11f637(0x207));}}static['addTraceFilePath'](_0xf7319e){const _0x305ac8=a56_0x789882,_0x21fbd1={};_0x21fbd1[_0x305ac8(0x1db)]=_0x305ac8(0x1d5);const _0x3eeeb0=_0x21fbd1;try{const _0x27bc35=process[_0x305ac8(0x1fa)],_0x235d7a=path[_0x305ac8(0x1e7)](TestInfo[_0x305ac8(0x215)](),_0x27bc35+_0x305ac8(0x1c5));let _0x2f1b6f=[];fs[_0x305ac8(0x1af)](_0x235d7a)&&(_0x2f1b6f=JSON[_0x305ac8(0x1f6)](fs['readFileSync'](_0x235d7a)[_0x305ac8(0x20d)]()));if(!_0x2f1b6f['some'](_0x58aab8=>_0x58aab8[_0x305ac8(0x212)]===_0xf7319e[_0x305ac8(0x212)])){_0x2f1b6f[_0x305ac8(0x203)](_0xf7319e);const _0x10e57b=path['dirname'](_0x235d7a);if(!fs[_0x305ac8(0x1af)](_0x10e57b)){const _0x238b98={};_0x238b98[_0x305ac8(0x1d7)]=!![],fs['mkdirSync'](_0x10e57b,_0x238b98);}fs[_0x305ac8(0x20e)](_0x235d7a,JSON['stringify'](_0x2f1b6f));}}catch(_0x1b1d4d){logger[_0x305ac8(0x1fc)](util['format'](_0x3eeeb0[_0x305ac8(0x1db)],_0x1b1d4d));}}static[a56_0x789882(0x1d4)](){const _0x29ac62=a56_0x789882,_0x364bd6={};_0x364bd6[_0x29ac62(0x1aa)]=_0x29ac62(0x1c5),_0x364bd6['pnoXo']=_0x29ac62(0x1a5);const _0x1620e0=_0x364bd6,_0x22521b=[];try{const _0x1c8e56=TestInfo[_0x29ac62(0x215)]();if(!fs[_0x29ac62(0x1af)](_0x1c8e56))return _0x22521b;const _0x5232d8=fs[_0x29ac62(0x1e3)](_0x1c8e56);_0x5232d8[_0x29ac62(0x1b0)](_0x3a93b3=>{const _0x11c14e=_0x29ac62;if(_0x3a93b3[_0x11c14e(0x1bf)](_0x1620e0[_0x11c14e(0x1aa)])){const _0x2f2350=JSON[_0x11c14e(0x1f6)](fs['readFileSync'](path['join'](_0x1c8e56,_0x3a93b3))[_0x11c14e(0x20d)]());_0x22521b['push'](..._0x2f2350);}});}catch(_0x47551a){logger['error'](util[_0x29ac62(0x1ea)](_0x1620e0[_0x29ac62(0x1b1)],_0x47551a));}const _0x266c9a={};return _0x22521b[_0x29ac62(0x1b0)](_0x49013b=>{const _0x354646=_0x29ac62;_0x266c9a[_0x49013b[_0x354646(0x212)]]=_0x49013b;}),Object[_0x29ac62(0x1c0)](_0x266c9a);}static[a56_0x789882(0x1a8)](_0x563dba,_0x9201d7){const _0x523936=a56_0x789882,_0x52c2b9={};_0x52c2b9[_0x523936(0x1e4)]=_0x523936(0x1f0),_0x52c2b9[_0x523936(0x1d3)]=_0x523936(0x206),_0x52c2b9[_0x523936(0x1eb)]=_0x523936(0x1a7);const _0x1ae531=_0x52c2b9;try{const _0x30aacd=path[_0x523936(0x1e7)](helper['homedir'](),_0x1ae531[_0x523936(0x1e4)]);if(!fs[_0x523936(0x1af)](_0x30aacd)){const _0xdcb74e={};_0xdcb74e[_0x523936(0x1d7)]=!![],fs[_0x523936(0x1ba)](_0x30aacd,_0xdcb74e);}fs[_0x523936(0x1b8)](path[_0x523936(0x1e7)](_0x30aacd,_0x523936(0x1bb)+_0x9201d7+_0x523936(0x1d6)),_0x563dba+'\x0a',_0x1ae531[_0x523936(0x1d3)]);}catch(_0x4ef04e){logger[_0x523936(0x1fc)](util[_0x523936(0x1ea)](_0x1ae531[_0x523936(0x1eb)],_0x4ef04e));}}}module['exports']=TestInfo;function a56_0x3e08(){const _0x25de63=['parse','../../helpers/test-observability/constants','XIviA','645225SdpnBK','pid','15804GSSkqg','error','traceZipDir','1274144HgHmtk','../../helpers/helper','env','getTestDetails','lockSync','push','getStoreDirName','EPeID','utf8','.\x20Unable\x20to\x20set\x20test\x20details.','tests','4wySfWw','stringify','5817174hLSMZA','uuid','toString','writeFileSync','setup','JIMaX','../../helpers/logger','filePath','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','_projectId','getTraceZipDir','getStoreDirPath','Error\x20reading\x20trace\x20file\x20paths:\x20%O','traceZipPaths','Error\x20writing\x20trace\x20file:\x20%O','appendToTracePaths','setTestDetails\x20','wMQie','cpbmg','TestInfo','Pttzd','string','existsSync','forEach','pnoXo','5490600USzEBm','proper-lockfile','force','setAccessibilityPlatformValidation','default','3714qQFuJl','appendFileSync','eTPEZ','mkdirSync','trace_','3832yGzoRf','warn','logger','endsWith','values','CxNOx','QwjCM','retry','sfkzH','_traceZipPaths.json','info','dirPath','rmSync','dskMb','\x20Setting\x20\x20test\x20details\x20for\x20','Setting\x20up\x20TestInfo\x20directory\x20at\x20','BS_TESTOPS_BUILD_HASHED_ID','pIjHW','resolve','QHDAF','debug','2898Oyezqw','Failed\x20to\x20acquire\x20lock\x20for\x20','ayQSX','getTraceFilePaths','Error\x20handling\x20trace\x20file\x20paths:\x20%O','.txt','recursive','path','winstonLogger','CrWyu','hwmpn','cfODi','getFilePath','../../helpers/classLogger.js','pYiDm','getTestIdFromTestInfo','9pTssJv','gLoaC','readdirSync','rJMRx','_test','_platformDetails.json','join','.json','HctSw','format','HWxgf','ThaTf','3|4|0|1|2|5','565691qIYJbM','.\x20Returning\x20empty\x20test\x20details.','.browserstack','gjifN','processId:\x20','readFileSync','getProjectIdFromTestInfo','project'];a56_0x3e08=function(){return _0x25de63;};return a56_0x3e08();}
@@ -1 +1 @@
1
- const a57_0x47007f=a57_0x5a18;(function(_0x740790,_0x98c84c){const _0x572422=a57_0x5a18,_0x2d6a29=_0x740790();while(!![]){try{const _0x471c5e=-parseInt(_0x572422(0xd4))/0x1+parseInt(_0x572422(0xfe))/0x2+parseInt(_0x572422(0x8e))/0x3*(-parseInt(_0x572422(0xf1))/0x4)+-parseInt(_0x572422(0xd3))/0x5+parseInt(_0x572422(0x87))/0x6+-parseInt(_0x572422(0xf0))/0x7*(-parseInt(_0x572422(0xc4))/0x8)+parseInt(_0x572422(0xeb))/0x9;if(_0x471c5e===_0x98c84c)break;else _0x2d6a29['push'](_0x2d6a29['shift']());}catch(_0x1d4c4f){_0x2d6a29['push'](_0x2d6a29['shift']());}}}(a57_0x4f71,0x75ac6));function a57_0x5a18(_0xfeee57,_0x368404){const _0x4f7185=a57_0x4f71();return a57_0x5a18=function(_0x5a1802,_0x209dc9){_0x5a1802=_0x5a1802-0x83;let _0x1ee7dd=_0x4f7185[_0x5a1802];return _0x1ee7dd;},a57_0x5a18(_0xfeee57,_0x368404);}const {spawn}=require('child_process'),GrpcClient=require('./grpcClient.js'),util=require(a57_0x47007f(0xf7)),CLIUtils=require(a57_0x47007f(0xbd)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require(a57_0x47007f(0xf4)),{createClassLogger}=require(a57_0x47007f(0xef)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a57_0x47007f(0xa5)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x47007f(0x10d)),helper=require(a57_0x47007f(0xe3)),TestFrameworkConstants=require(a57_0x47007f(0xdd)),TestInfo=require(a57_0x47007f(0x88));class BrowserstackCLI{static #instance=null;static [a57_0x47007f(0x9d)]=null;static [a57_0x47007f(0x12a)]=null;static [a57_0x47007f(0xa7)]=null;[a57_0x47007f(0xc9)]=null;[a57_0x47007f(0xcb)]=![];[a57_0x47007f(0x127)]=![];[a57_0x47007f(0xa9)]=null;[a57_0x47007f(0x90)]={};['testFramework']=null;[a57_0x47007f(0x121)]=null;['logger']=createClassLogger(a57_0x47007f(0x100));constructor(){const _0x156ab5=a57_0x47007f;this[_0x156ab5(0x11b)]=![],this[_0x156ab5(0xcd)]={},this[_0x156ab5(0xf9)]={},this[_0x156ab5(0x101)]={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x19e3ef=a57_0x47007f,_0x1dbcf7={};_0x1dbcf7[_0x19e3ef(0xc1)]=_0x19e3ef(0x96);const _0x502dce=_0x1dbcf7;if(helper[_0x19e3ef(0x123)](process[_0x19e3ef(0x112)][_0x19e3ef(0x111)])){this[_0x19e3ef(0xf5)][_0x19e3ef(0x136)](_0x502dce[_0x19e3ef(0xc1)]);return;}PerformanceTester[_0x19e3ef(0xa1)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x5271bd=process[_0x19e3ef(0x112)]['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0x19e3ef(0x9e)](),this['setupTestFramework']();if(_0x5271bd){await this['startChild'](_0x5271bd),PerformanceTester[_0x19e3ef(0x104)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x19e3ef(0x132)]();}catch(_0x26fccc){this['logger'][_0x19e3ef(0x12d)](_0x19e3ef(0xcc)+(_0x26fccc[_0x19e3ef(0x12e)]||_0x26fccc)),await this[_0x19e3ef(0xb6)](),PerformanceTester[_0x19e3ef(0x104)](PerformanceEvents[_0x19e3ef(0x124)],![],util['format'](_0x26fccc));}}async[a57_0x47007f(0x132)](){const _0x4d13f0=a57_0x47007f,_0x439c66={};_0x439c66['hntuR']=_0x4d13f0(0x114),_0x439c66[_0x4d13f0(0xa3)]=_0x4d13f0(0xd1);const _0x1ec34d=_0x439c66;this[_0x4d13f0(0xf5)][_0x4d13f0(0x136)](_0x1ec34d[_0x4d13f0(0x91)]),await this[_0x4d13f0(0xa1)](),this['logger'][_0x4d13f0(0xfc)](_0x1ec34d['ULFWl']);const _0x4fb662=await GrpcClient[_0x4d13f0(0x11e)]()[_0x4d13f0(0xd6)]();this[_0x4d13f0(0xcb)]=!![],this[_0x4d13f0(0x116)](_0x4fb662);}[a57_0x47007f(0x116)](_0x3f7166){const _0x3d4e6e=a57_0x47007f,_0x72773e={'vteLi':function(_0x499e9d,_0x4887a3){return _0x499e9d(_0x4887a3);},'gVaev':_0x3d4e6e(0xa0),'uJvTl':_0x3d4e6e(0x140),'gBWXa':_0x3d4e6e(0x117),'tApnh':_0x3d4e6e(0x13d),'imbhn':_0x3d4e6e(0x99),'LWvQn':'getAccessibility','rdVor':'getSuccess','QvMrq':function(_0x501a78,_0x227938){return _0x501a78||_0x227938;}},_0x3796c7=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0x139)]),_0x2f1a7a=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0xe9)]),_0x5f104f=_0x72773e[_0x3d4e6e(0xf2)](require,_0x72773e[_0x3d4e6e(0x11a)]);this[_0x3d4e6e(0xf5)][_0x3d4e6e(0x136)](_0x72773e[_0x3d4e6e(0xf3)]),this['binSessionId']=_0x3f7166['getBinSessionId'](),this['logger']['info'](_0x3d4e6e(0xd5)+this[_0x3d4e6e(0xa9)]),this[_0x3d4e6e(0xb0)](_0x3f7166);!this['isChildConnected']&&this[_0x3d4e6e(0x8a)](_0x3f7166);const _0x53fae7=_0x72773e[_0x3d4e6e(0xce)],_0x31d44a=_0x72773e[_0x3d4e6e(0x10f)],_0x8da5d5=_0x72773e[_0x3d4e6e(0xd0)],_0x50f602=_0x3f7166[_0x53fae7]()&&_0x3f7166[_0x53fae7]()[_0x8da5d5](),_0xed78ce=_0x3f7166[_0x31d44a]()&&_0x3f7166[_0x31d44a]()[_0x8da5d5]();_0x72773e[_0x3d4e6e(0x13c)](_0x50f602,_0xed78ce)&&(this[_0x3d4e6e(0x90)][_0x2f1a7a[_0x3d4e6e(0xfd)]]=new _0x2f1a7a(_0x3f7166[_0x3d4e6e(0x13e)]())),_0x50f602&&(this['modules'][_0x5f104f['MODULE_NAME']]=new _0x5f104f(_0x3f7166[_0x53fae7]())),_0xed78ce&&(this[_0x3d4e6e(0x90)][AccessibilityModule[_0x3d4e6e(0xfd)]]=new AccessibilityModule(_0x3f7166[_0x31d44a]())),this[_0x3d4e6e(0x90)][_0x3796c7[_0x3d4e6e(0xfd)]]=new _0x3796c7(),this[_0x3d4e6e(0x138)]();}['getAccessibilityModule'](){const _0x31823c=a57_0x47007f;return this[_0x31823c(0x90)][AccessibilityModule['MODULE_NAME']];}async[a57_0x47007f(0x138)](){const _0x16ea11=a57_0x47007f;for(const _0x2044eb in this[_0x16ea11(0x90)]){const _0x13370a=this[_0x16ea11(0x90)][_0x2044eb];await _0x13370a[_0x16ea11(0xa2)](this[_0x16ea11(0xa9)],0x0,GrpcClient[_0x16ea11(0x11e)]()[_0x16ea11(0x13f)],this['config']);}}async[a57_0x47007f(0xa1)](){const _0x4b4b72=a57_0x47007f,_0x33d0da={'PzTSC':function(_0xcd3438,_0x1ce59a){return _0xcd3438(_0x1ce59a);},'NTOdP':function(_0x1472d7,_0x16862e){return _0x1472d7!==_0x16862e;},'oejXw':'ready','jmObS':function(_0x571e01){return _0x571e01();},'uRevX':_0x4b4b72(0x8c),'iEdsz':'error','TcOgl':'close','ENEJq':_0x4b4b72(0xc2),'IjIYP':function(_0xd0ad86,_0x5c8dc6,_0x141221,_0x1b3113){return _0xd0ad86(_0x5c8dc6,_0x141221,_0x1b3113);},'CrKRA':_0x4b4b72(0xe7)};PerformanceTester['start'](PerformanceEvents[_0x4b4b72(0xec)]);if(CLIUtils[_0x4b4b72(0xdb)]())return this['loadCliParams'](CLIUtils[_0x4b4b72(0x134)]()),PerformanceTester['end'](PerformanceEvents[_0x4b4b72(0xec)]),Promise[_0x4b4b72(0x12c)]();if(this[_0x4b4b72(0xc9)]&&this[_0x4b4b72(0xc9)][_0x4b4b72(0x108)])return PerformanceTester[_0x4b4b72(0x104)](PerformanceEvents[_0x4b4b72(0xec)]),Promise[_0x4b4b72(0x12c)]();const _0x5ef17c=await this[_0x4b4b72(0x12b)](),_0x1ee4fc=[_0x5ef17c,_0x33d0da[_0x4b4b72(0x115)]];this[_0x4b4b72(0xf5)][_0x4b4b72(0x136)](_0x4b4b72(0xb4)+_0x1ee4fc+'\x27');const _0x36542e={};_0x36542e[_0x4b4b72(0x112)]=process[_0x4b4b72(0x112)],this[_0x4b4b72(0xc9)]=_0x33d0da['IjIYP'](spawn,_0x1ee4fc[0x0],_0x1ee4fc[_0x4b4b72(0x141)](0x1),_0x36542e);if(!this[_0x4b4b72(0xc9)][_0x4b4b72(0xe1)])throw new Error(_0x33d0da['CrKRA']);return new Promise((_0x4db6b1,_0x19113a)=>{const _0x17f46c=_0x4b4b72,_0x1c6bc4={'HKLwh':function(_0x460cd5,_0x4b7981){const _0xf58a4f=a57_0x5a18;return _0x33d0da[_0xf58a4f(0xe2)](_0x460cd5,_0x4b7981);},'gOFbA':_0x33d0da['oejXw'],'VhXmI':function(_0xde7a70){const _0x60d368=a57_0x5a18;return _0x33d0da[_0x60d368(0xe6)](_0xde7a70);},'egGfs':function(_0x2600f9,_0x12491c){return _0x33d0da['PzTSC'](_0x2600f9,_0x12491c);}},_0x387268={};this[_0x17f46c(0xc9)]['stdout']['on'](_0x33d0da[_0x17f46c(0x94)],_0x1d53a4=>{const _0x5a67e9=_0x17f46c,_0x570841=_0x1d53a4[_0x5a67e9(0xd9)]()[_0x5a67e9(0xea)]()['split']('\x0a');for(const _0x8f4d85 of _0x570841){if(/^(id|listen|port)=.*$/[_0x5a67e9(0x8d)](_0x8f4d85)){const [_0x22f0c8,_0x1c861a]=_0x8f4d85[_0x5a67e9(0x9f)]('=',0x2);_0x1c6bc4[_0x5a67e9(0xd7)](_0x1c861a,undefined)&&(_0x387268[_0x22f0c8]=_0x1c861a);}if(_0x8f4d85[_0x5a67e9(0x105)]()[_0x5a67e9(0x113)](_0x1c6bc4['gOFbA'])){this[_0x5a67e9(0x120)](_0x387268),PerformanceTester[_0x5a67e9(0x104)](PerformanceEvents[_0x5a67e9(0xec)]),_0x1c6bc4[_0x5a67e9(0x9a)](_0x4db6b1);return;}}}),this[_0x17f46c(0xc9)]['stderr']['on'](_0x33d0da[_0x17f46c(0x94)],_0x128d5f=>{const _0x54dfc7=_0x17f46c;this[_0x54dfc7(0xf5)][_0x54dfc7(0x12d)](_0x54dfc7(0xc0)+_0x128d5f[_0x54dfc7(0xd9)]()[_0x54dfc7(0xea)]());}),this[_0x17f46c(0xc9)]['on'](_0x33d0da[_0x17f46c(0xf8)],_0x137d32=>{const _0x1ee312=_0x17f46c;_0x387268[_0x1ee312(0x12d)]=_0x1ee312(0xb7)+_0x137d32[_0x1ee312(0x131)],PerformanceTester[_0x1ee312(0x104)](PerformanceEvents[_0x1ee312(0xec)],![],_0x137d32),_0x33d0da[_0x1ee312(0x118)](_0x19113a,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x137d32[_0x1ee312(0x131)]));}),this[_0x17f46c(0xc9)]['on'](_0x33d0da['TcOgl'],_0x3dd2d1=>{const _0x346f22=_0x17f46c;_0x1c6bc4[_0x346f22(0xd7)](_0x3dd2d1,0x0)&&_0x1c6bc4[_0x346f22(0x89)](_0x19113a,new Error(_0x346f22(0x133)+_0x3dd2d1));});});}async['stop'](_0x3bdc5d=null){const _0x301696=a57_0x47007f,_0x4bf898={'wdWgC':'stop:\x20CLI\x20process\x20exited','JOVkr':function(_0x5aea48){return _0x5aea48();},'yPvZq':_0x301696(0xbc),'nUaSz':_0x301696(0x10a),'PQidk':_0x301696(0xaf),'VOtSs':function(_0xb1dda0,_0x290be1,_0x3992e7){return _0xb1dda0(_0x290be1,_0x3992e7);},'QFvQH':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','VuVOD':_0x301696(0x92),'kYACW':function(_0x4a88ea,_0x545716){return _0x4a88ea(_0x545716);},'ijfPs':_0x301696(0x85),'LwniP':_0x301696(0x13b),'SgOLp':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','BAleV':_0x301696(0xe5)};if(!this[_0x301696(0xde)]()){this['logger']['info'](_0x4bf898[_0x301696(0xf6)]);return;}PerformanceTester[_0x301696(0xa1)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898['VuVOD']);try{if(this[_0x301696(0xcb)]){const _0x106416=_0x4bf898[_0x301696(0xb9)](require,_0x4bf898[_0x301696(0xb1)]),_0x363744=this[_0x301696(0x90)]['TestHubModule']?.['testhubConfig']?.[_0x301696(0x11c)]()?.[_0x301696(0xbf)],_0x2adc56=TestInfo['getTestDetails'](_0x363744),_0x498a9c=_0x2adc56[TestFrameworkConstants[_0x301696(0xa8)]]||{},_0x74241b=await GrpcClient[_0x301696(0x11e)]()[_0x301696(0xb2)](JSON[_0x301696(0x93)](_0x498a9c),_0x3bdc5d);_0x74241b&&_0x74241b[_0x301696(0xdc)]()&&_0x74241b['getAutomateBuildlink']()&&(BrowserstackCLI[_0x301696(0x9d)]=_0x74241b['getAutomateBuildlink'](),BrowserstackCLI['HashedID']=_0x74241b['getHashedId']()),await _0x106416[_0x301696(0x97)](),TestInfo[_0x301696(0x102)](),this['logger'][_0x301696(0x136)](_0x301696(0x83)+BrowserstackCLI[_0x301696(0x9d)]+_0x301696(0xb8)+BrowserstackCLI['HashedID']+_0x301696(0xad)+BrowserstackCLI[_0x301696(0xa7)]);}await this['unConfigureModules']();const _0x181cac=GrpcClient[_0x301696(0x11e)]()[_0x301696(0xff)]();if(_0x181cac){try{_0x181cac[_0x301696(0x8f)](),this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898[_0x301696(0xba)]);}catch(_0x3adb7e){this[_0x301696(0xf5)][_0x301696(0x12d)](util[_0x301696(0x107)](_0x4bf898[_0x301696(0xc7)],_0x3adb7e));}await new Promise(_0x1cb676=>setTimeout(_0x1cb676,0x1388));}this[_0x301696(0xc9)]&&this[_0x301696(0xc9)]['pid']&&(this[_0x301696(0xf5)][_0x301696(0x136)](_0x4bf898[_0x301696(0x12f)]),this[_0x301696(0xc9)][_0x301696(0xae)](),await new Promise(_0x5a0aab=>{const _0x547565=_0x301696,_0x3c5edb={'jixUV':_0x4bf898[_0x547565(0x106)],'pLVUH':_0x4bf898[_0x547565(0xc6)],'rBTeN':function(_0x51a943){const _0xe9bf2b=_0x547565;return _0x4bf898[_0xe9bf2b(0xe0)](_0x51a943);}};let _0xf9738=![];this[_0x547565(0xc9)]['on'](_0x4bf898[_0x547565(0xd2)],()=>{const _0x4f9c28=_0x547565;this[_0x4f9c28(0xf5)][_0x4f9c28(0x136)](_0x4bf898[_0x4f9c28(0x125)]),_0xf9738=!![],PerformanceTester[_0x4f9c28(0x104)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x4bf898[_0x4f9c28(0xe0)](_0x5a0aab);}),_0x4bf898['VOtSs'](setTimeout,()=>{const _0x4a79c2=_0x547565;!_0xf9738&&(this[_0x4a79c2(0xf5)]['warn'](_0x3c5edb[_0x4a79c2(0x128)]),this[_0x4a79c2(0xc9)][_0x4a79c2(0xae)](_0x3c5edb[_0x4a79c2(0x8b)]),PerformanceTester['end'](PerformanceEvents[_0x4a79c2(0xed)]),_0x3c5edb['rBTeN'](_0x5a0aab));},0xbb8);}));}catch(_0x501f75){PerformanceTester[_0x301696(0x104)](PerformanceEvents[_0x301696(0xed)],![],util[_0x301696(0x107)](_0x501f75)),this[_0x301696(0xf5)][_0x301696(0x12d)](_0x301696(0xcf)+(_0x501f75[_0x301696(0x12e)]||_0x501f75));}_0x3bdc5d?this['process']['exitCode']=0x1:this[_0x301696(0xc9)][_0x301696(0x13a)]=0x0,this['isChildConnected']=![],this[_0x301696(0xcb)]=![],process[_0x301696(0x112)][_0x301696(0xe4)]=null;}async['unConfigureModules'](){const _0x2208c1=a57_0x47007f,_0x5dc228={};_0x5dc228[_0x2208c1(0x9c)]=_0x2208c1(0x130);const _0xfae935=_0x5dc228;this[_0x2208c1(0xf5)][_0x2208c1(0x136)](_0xfae935[_0x2208c1(0x9c)]);}[a57_0x47007f(0x120)](_0x193271){const _0x2a01d0=a57_0x47007f;this[_0x2a01d0(0xf5)]['info'](_0x2a01d0(0xdf)+JSON[_0x2a01d0(0x93)](_0x193271)),this[_0x2a01d0(0xee)]=_0x193271,GrpcClient[_0x2a01d0(0x11e)]()[_0x2a01d0(0xb5)](_0x193271);}async[a57_0x47007f(0xda)](_0x97c392){const _0x5452b1=a57_0x47007f,_0x331c92={};_0x331c92[_0x5452b1(0xab)]='startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here';const _0x231407=_0x331c92;PerformanceTester[_0x5452b1(0xa1)](PerformanceEvents[_0x5452b1(0x10c)]);try{this[_0x5452b1(0xf5)][_0x5452b1(0x136)](_0x5452b1(0xbe)+_0x97c392);const _0x14f42c=GrpcClient['getInstance']();if(_0x14f42c&&_0x14f42c[_0x5452b1(0x10b)]()&&_0x14f42c[_0x5452b1(0xff)]()){this[_0x5452b1(0xf5)][_0x5452b1(0x136)](_0x231407[_0x5452b1(0xab)]);return;}GrpcClient['getInstance']()[_0x5452b1(0xa6)]();const _0x4b8a37=await GrpcClient[_0x5452b1(0x11e)]()[_0x5452b1(0x122)]();this[_0x5452b1(0x127)]=!![],this['loadModules'](_0x4b8a37),PerformanceTester[_0x5452b1(0x104)](PerformanceEvents[_0x5452b1(0x10c)]);}catch(_0x5e4811){PerformanceTester[_0x5452b1(0x104)](PerformanceEvents[_0x5452b1(0x10c)],![],util[_0x5452b1(0x107)](_0x5e4811)),this['logger'][_0x5452b1(0x12d)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x5452b1(0x107)](_0x5e4811));}}[a57_0x47007f(0xde)](){const _0xece9b7=a57_0x47007f,_0xe66ce5={};_0xe66ce5[_0xece9b7(0x86)]=function(_0x36eb81,_0x578ff6){return _0x36eb81!==_0x578ff6;},_0xe66ce5[_0xece9b7(0x98)]=function(_0x5206c8,_0x5c62df){return _0x5206c8===_0x5c62df;},_0xe66ce5['NUZQy']=function(_0x4f5d29,_0x25548b){return _0x4f5d29!==_0x25548b;},_0xe66ce5[_0xece9b7(0x129)]=function(_0x46d2ea,_0x497091){return _0x46d2ea!==_0x497091;};const _0x25b312=_0xe66ce5;return CLIUtils[_0xece9b7(0xdb)]()||this['isMainConnected']&&_0x25b312[_0xece9b7(0x86)](this[_0xece9b7(0xc9)],null)&&_0x25b312[_0xece9b7(0x98)](this['process'][_0xece9b7(0x13a)],null)&&_0x25b312[_0xece9b7(0xca)](GrpcClient[_0xece9b7(0x11e)]()[_0xece9b7(0x10b)](),null)&&!GrpcClient[_0xece9b7(0x11e)]()['getChannel']()[_0xece9b7(0x126)]||this[_0xece9b7(0x127)]&&_0x25b312[_0xece9b7(0x129)](GrpcClient[_0xece9b7(0x11e)]()[_0xece9b7(0xff)](),null)&&!GrpcClient[_0xece9b7(0x11e)]()['getChannel']()[_0xece9b7(0x126)];}[a57_0x47007f(0x11f)](){const _0x447424=a57_0x47007f;return this[_0x447424(0x101)];}['setBrowserstackConfig'](_0x2ed5cd,_0x20b329=null){const _0xc54ae2=a57_0x47007f,_0x59eff9={};_0x59eff9[_0xc54ae2(0x135)]=function(_0x29a61d,_0x21ad65){return _0x29a61d||_0x21ad65;};const _0x34c25e=_0x59eff9;this[_0xc54ae2(0x101)]=_0x34c25e[_0xc54ae2(0x135)](_0x2ed5cd,{}),this[_0xc54ae2(0x11d)]=_0x20b329,process[_0xc54ae2(0x112)][_0xc54ae2(0xc5)]=this[_0xc54ae2(0x101)]?.[_0xc54ae2(0xfb)]||![];const _0x269cf0=CLIUtils[_0xc54ae2(0x9b)]();helper[_0xc54ae2(0xc3)](process[_0xc54ae2(0x112)][_0xc54ae2(0xc5)])||!CLI_SUPPORTED_FRAMEWORKS[_0xc54ae2(0x113)](_0x269cf0[_0xc54ae2(0xaa)][_0xc54ae2(0x105)]())?process['env']['BROWSERSTACK_CLI_ENABLED']=![]:process['env']['BROWSERSTACK_CLI_ENABLED']=!![];}async['getCliBinPath'](){const _0x3acbd6=a57_0x47007f;return!this[_0x3acbd6(0xfa)]&&(this['SDK_CLI_BIN_PATH']=await CLIUtils['setupCliPath'](this[_0x3acbd6(0x101)])),this[_0x3acbd6(0xfa)];}[a57_0x47007f(0x10e)](){const _0x15316e=a57_0x47007f;return helper[_0x15316e(0xc3)](process[_0x15316e(0x112)][_0x15316e(0x111)]);}[a57_0x47007f(0xb3)](){const _0x1c3951=a57_0x47007f;return this[_0x1c3951(0xcd)];}[a57_0x47007f(0xb0)](_0x2c1ad1){const _0xdb432c=a57_0x47007f,_0x54d6ec={};_0x54d6ec[_0xdb432c(0xe8)]=_0xdb432c(0xac);const _0x56a726=_0x54d6ec;try{this[_0xdb432c(0xcd)]=JSON['parse'](_0x2c1ad1['getConfig']()),this[_0xdb432c(0xf5)][_0xdb432c(0x136)](_0x56a726[_0xdb432c(0xe8)]);}catch(_0xf5e21d){this[_0xdb432c(0xf5)][_0xdb432c(0x12d)]('setConfig:\x20error='+util['format'](_0xf5e21d));}}[a57_0x47007f(0x8a)](_0x3e4798){const _0x34efa1=a57_0x47007f;try{this['cliArgs']=_0x3e4798[_0x34efa1(0x137)]()[_0x34efa1(0x9f)](','),this[_0x34efa1(0xf5)]['info'](_0x34efa1(0x110)+JSON[_0x34efa1(0x93)](this['cliArgs']));}catch(_0x3c7ace){this[_0x34efa1(0xf5)][_0x34efa1(0x12d)](_0x34efa1(0x109)+util[_0x34efa1(0x107)](_0x3c7ace));}}[a57_0x47007f(0x137)](){const _0x71cc3=a57_0x47007f;return this[_0x71cc3(0xf9)];}['setupTestFramework'](){const _0x4dc44a=a57_0x47007f,_0x5edb1b={};_0x5edb1b[_0x4dc44a(0xa4)]=function(_0x2e94a7,_0x1880f8){return _0x2e94a7===_0x1880f8;};const _0x186b4c=_0x5edb1b,_0x68979c=CLIUtils[_0x4dc44a(0x9b)]();_0x186b4c[_0x4dc44a(0xa4)](_0x68979c[_0x4dc44a(0xaa)][_0x4dc44a(0x105)](),FRAMEWORKS['PLAYWRIGHT'][_0x4dc44a(0x105)]())&&(this[_0x4dc44a(0xd8)]=new PlaywrightTestFramework([_0x68979c[_0x4dc44a(0xaa)]],_0x68979c['version']));}[a57_0x47007f(0x9e)](){const _0x3242fa=a57_0x47007f,_0x4d3c87={};_0x4d3c87[_0x3242fa(0x84)]=function(_0x4108df,_0x5d1815){return _0x4108df===_0x5d1815;};const _0x391c11=_0x4d3c87,_0x2ff603=CLIUtils['getAutomationFrameworkDetail']();_0x391c11[_0x3242fa(0x84)](_0x2ff603[_0x3242fa(0xaa)][_0x3242fa(0x105)](),FRAMEWORKS[_0x3242fa(0x103)][_0x3242fa(0x105)]())&&(this[_0x3242fa(0x121)]=new PlaywrightAutomationFramework(_0x2ff603[_0x3242fa(0xaa)],_0x2ff603[_0x3242fa(0x119)]));}[a57_0x47007f(0xbb)](){return this['testFramework'];}[a57_0x47007f(0x95)](){const _0x2fd24e=a57_0x47007f;return this[_0x2fd24e(0x121)];}[a57_0x47007f(0xc8)](){const _0xcfdf7d=a57_0x47007f;return this[_0xcfdf7d(0x11d)];}}function a57_0x4f71(){const _0x1c6563=['stop:\x20channel\x20closed','QvMrq','loadModules:\x20Loading\x20modules','getTesthub','client','./modules/testhubModule.js','slice','stop:\x20stopBinSession\x20build_link=','oihxM','./uploadAttachmentsManager.js','qVVOo','4137126eefLRv','./TestInfo.js','egGfs','setCliArgs','pLVUH','data','test','6RhUIso','close','modules','hntuR','stop:\x20CLI\x20stop\x20triggered','stringify','uRevX','getAutomationFramework','Disabling\x20CLI.','clearAttachments','fpium','getObservability','VhXmI','getTestFrameworkDetail','YQpvk','BuildLink','setupAutomationFramework','split','./modules/playwrightDriverModule.js','start','configure','ULFWl','QouhP','../../helpers/performance/constants','connect','O11yHashedID','KEY_CUSTOM_TAGS','binSessionId','name','wfmwv','loading\x20Modules.','\x20o11y_uuid=','kill','exit','setConfig','ijfPs','stopBinSession','getConfig','spawning\x20command=\x27','init','stop','Error\x20in\x20start:\x20','\x20hashed_id=','kYACW','LwniP','getTestFramework','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','./cliUtils.js','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','buildHashedId','CLI\x20stderr:\x20','zXPfZ','sdk','isTrue','4504AHpWNH','BROWSERSTACK_TURBOSCALE','nUaSz','SgOLp','getBrowserstackCliConfig','process','NUZQy','isMainConnected','bootstrap:\x20failed\x20to\x20bootstrap=','config','imbhn','stop:\x20error\x20in\x20stop\x20session\x20exception=','rdVor','startMain:\x20main-process\x20started','PQidk','1840465hUnSCh','347497gZErwu','loadModules:\x20binSessionId=','startBinSession','HKLwh','testFramework','toString','startChild','isDevelopmentEnv','getSuccess','./framework/constants/testFrameworkConstants.js','isRunning','CLI\x20params\x20loaded:\x20','JOVkr','pid','NTOdP','../../helpers/helper.js','BROWSERSTACK_CLI_ENV','stop:\x20shutting\x20down\x20CLI','jmObS','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','GXleN','uJvTl','trim','2590461ZzKhoK','SDK_CLI_START','SDK_CLI_ON_STOP','cliParams','../../helpers/classLogger.js','4837xuQDdl','701976JBZPAG','vteLi','tApnh','./framework/playwrightTestFramework.js','logger','QFvQH','util','iEdsz','cliArgs','SDK_CLI_BIN_PATH','turboScale','debug','MODULE_NAME','364370gmwsij','getChannel','BrowserstackCLI','browserstackConfig','shutdown','PLAYWRIGHT','end','toLowerCase','yPvZq','format','connected','setCliArgs:\x20error=','SIGKILL','getClient','SDK_CONNECT_BIN_SESSION','../utils/constants.js','isCliEnabled','LWvQn','setCliArgs:\x20cliArgs=','BROWSERSTACK_CLI_ENABLED','env','includes','startMain:\x20Starting\x20main\x20process','ENEJq','loadModules','./modules/observabilityModule.js','PzTSC','version','gBWXa','initialized','toObject','browserstackCliConfig','getInstance','getBrowserstackConfig','loadCliParams','automationFramework','connectBinSession','isFalse','SDK_CLI_ON_BOOTSTRAP','wdWgC','isClosed','isChildConnected','jixUV','frsDO','HashedID','getCliBinPath','resolve','error','stack','BAleV','Unconfiguring\x20modules','message','startMain','CLI\x20process\x20exited\x20with\x20code\x20','getCLIParamsForDevEnv','jVVoI','info','getCliArgs','configureModules','gVaev','exitCode'];a57_0x4f71=function(){return _0x1c6563;};return a57_0x4f71();}module['exports']=BrowserstackCLI;
1
+ const a57_0x1f2279=a57_0x19aa;function a57_0x19aa(_0x661f89,_0x27b8ae){const _0x3f6ada=a57_0x3f6a();return a57_0x19aa=function(_0x19aa72,_0x4f598d){_0x19aa72=_0x19aa72-0x152;let _0x14d93b=_0x3f6ada[_0x19aa72];return _0x14d93b;},a57_0x19aa(_0x661f89,_0x27b8ae);}function a57_0x3f6a(){const _0x37bf4a=['./framework/constants/testFrameworkConstants.js','BpFNK','SPnEJ','GKOfM','HashedID','../utils/constants.js','32lFsioA','BuildLink','../../helpers/helper.js','39588wXrZlx','stop:\x20error\x20in\x20closing\x20channel:\x20%s','isCliEnabled','rHkSG','test','getAutomationFramework','jvgBI','SDK_CLI_BIN_PATH','WeTVI','util','stringify','RjLjI','./grpcClient.js','Unconfiguring\x20modules','./cliUtils.js','loadCliParams','5422qmMsOZ','kjswF','stdout','Failed\x20to\x20start\x20as\x20child\x20process:\x20','MODULE_NAME','config','setConfig','VyIcT','stop:\x20CLI\x20process\x20exited','getClient','slice','initialized','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','stderr','kJuZK','KEY_CUSTOM_TAGS','close','PsyAE','toObject','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','Failed\x20to\x20start\x20CLI\x20process:\x20','getAutomationFrameworkDetail','pxauy','name','SKWBI','PLAYWRIGHT','isDevelopmentEnv','toString','Ufphh','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','toLowerCase','O11yHashedID','Error\x20in\x20start:\x20','getInstance','yaWAT','getChannel','SDK_CLI_ON_STOP','startBinSession','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','setupTestFramework','ONvxH','getTestFrameworkDetail','SDK_CLI_ON_BOOTSTRAP','binSessionId','configure','BROWSERSTACK_TURBOSCALE','modules','lABKt','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','kill','message','\x20hashed_id=','SsRnP','VqOMR','getSuccess','jCOEe','stop:\x20stopBinSession\x20build_link=','includes','bootstrap:\x20failed\x20to\x20bootstrap=','./modules/playwrightDriverModule.js','logger','BROWSERSTACK_CLI_ENABLED','280809foLXCt','trim','loadModules','automationFramework','cliArgs','yokHc','YWPrt','browserstackConfig','configureModules','NLOKo','unConfigureModules','error','exit','isRunning','getBrowserstackCliConfig','exitCode','getCLIParamsForDevEnv','15ycHrxu','browserstackCliConfig','../../helpers/performance/constants','RgJqd','getCliBinPath','ltbih','SjMEw','getCliArgs','startChild','getBrowserstackConfig','./framework/playwrightTestFramework.js','isClosed','lHBOd','buildHashedId','isChildConnected','child_process','getObservability','DqSrl','start','setupAutomationFramework','SDK_CLI_START','isTrue','iEhCk','stop:\x20error\x20in\x20stop\x20session\x20exception=','getConfig','startMain','Vyoen','setCliArgs','isMainConnected','222730kBXmPK','end','nVTVE','2781350WqLjYV','skMHT','loading\x20Modules.','connected','HkJlx','setConfig:\x20error=','uLMSI','dbZZK','getTesthub','format','SDK_CONNECT_BIN_SESSION','getAutomateBuildlink','process','BrowserstackCLI','\x20o11y_uuid=','CLI\x20params\x20loaded:\x20','1080394aJRqOk','162006zGwtiX','stop:\x20channel\x20closed','setCliArgs:\x20cliArgs=','env','version','exports','testFramework','TFyza','split','info','init','WayNy','stack','stop','cRLnU','IUEbo','setCliArgs:\x20error=','sCqqu','getTestFramework','ylGPf','stop:\x20shutting\x20down\x20CLI','33aLLhUG','warn','testhubConfig','./modules/testhubModule.js','BROWSERSTACK_CLI_BIN_SESSION_ID','./uploadAttachmentsManager.js','ready','resolve'];a57_0x3f6a=function(){return _0x37bf4a;};return a57_0x3f6a();}(function(_0x150826,_0xaa9855){const _0x54cd1f=a57_0x19aa,_0x2aefa6=_0x150826();while(!![]){try{const _0x479597=-parseInt(_0x54cd1f(0x17d))/0x1*(-parseInt(_0x54cd1f(0x19e))/0x2)+-parseInt(_0x54cd1f(0x1ed))/0x3*(-parseInt(_0x54cd1f(0x18e))/0x4)+-parseInt(_0x54cd1f(0x154))/0x5+parseInt(_0x54cd1f(0x168))/0x6+-parseInt(_0x54cd1f(0x167))/0x7+-parseInt(_0x54cd1f(0x18b))/0x8*(parseInt(_0x54cd1f(0x1dc))/0x9)+parseInt(_0x54cd1f(0x157))/0xa;if(_0x479597===_0xaa9855)break;else _0x2aefa6['push'](_0x2aefa6['shift']());}catch(_0x1cb3ab){_0x2aefa6['push'](_0x2aefa6['shift']());}}}(a57_0x3f6a,0x1d648));const {spawn}=require(a57_0x1f2279(0x1fc)),GrpcClient=require(a57_0x1f2279(0x19a)),util=require(a57_0x1f2279(0x197)),CLIUtils=require(a57_0x1f2279(0x19c)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PlaywrightTestFramework=require(a57_0x1f2279(0x1f7)),{createClassLogger}=require('../../helpers/classLogger.js'),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a57_0x1f2279(0x1ef)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a57_0x1f2279(0x18a)),helper=require(a57_0x1f2279(0x18d)),TestFrameworkConstants=require(a57_0x1f2279(0x185)),TestInfo=require('./TestInfo.js');class BrowserstackCLI{static #instance=null;static [a57_0x1f2279(0x18c)]=null;static [a57_0x1f2279(0x189)]=null;static [a57_0x1f2279(0x1bd)]=null;['process']=null;[a57_0x1f2279(0x153)]=![];[a57_0x1f2279(0x1fb)]=![];[a57_0x1f2279(0x1c9)]=null;[a57_0x1f2279(0x1cc)]={};[a57_0x1f2279(0x16e)]=null;[a57_0x1f2279(0x1df)]=null;[a57_0x1f2279(0x1da)]=createClassLogger(a57_0x1f2279(0x164));constructor(){const _0x468556=a57_0x1f2279;this[_0x468556(0x1a9)]=![],this[_0x468556(0x1a3)]={},this['cliArgs']={},this[_0x468556(0x1e3)]={};}static[a57_0x1f2279(0x1bf)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async['bootstrap'](){const _0x20fd29=a57_0x1f2279,_0x3b83f8={};_0x3b83f8[_0x20fd29(0x1f9)]='Disabling\x20CLI.';const _0x236a7f=_0x3b83f8;if(helper['isFalse'](process['env'][_0x20fd29(0x1db)])){this[_0x20fd29(0x1da)]['info'](_0x236a7f[_0x20fd29(0x1f9)]);return;}PerformanceTester[_0x20fd29(0x1ff)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x121658=process['env'][_0x20fd29(0x181)]||null;this[_0x20fd29(0x200)](),this[_0x20fd29(0x1c5)]();if(_0x121658){await this[_0x20fd29(0x1f5)](_0x121658),PerformanceTester[_0x20fd29(0x155)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x20fd29(0x206)]();}catch(_0x2abff9){this[_0x20fd29(0x1da)]['error'](_0x20fd29(0x1d8)+(_0x2abff9[_0x20fd29(0x174)]||_0x2abff9)),await this['stop'](),PerformanceTester[_0x20fd29(0x155)](PerformanceEvents[_0x20fd29(0x1c8)],![],util[_0x20fd29(0x160)](_0x2abff9));}}async[a57_0x1f2279(0x206)](){const _0x1cfe9e=a57_0x1f2279,_0x4af733={};_0x4af733[_0x1cfe9e(0x207)]='startMain:\x20Starting\x20main\x20process',_0x4af733[_0x1cfe9e(0x1ba)]='startMain:\x20main-process\x20started';const _0x2bb031=_0x4af733;this[_0x1cfe9e(0x1da)][_0x1cfe9e(0x171)](_0x2bb031[_0x1cfe9e(0x207)]),await this['start'](),this[_0x1cfe9e(0x1da)]['debug'](_0x2bb031['Ufphh']);const _0x2f85bb=await GrpcClient['getInstance']()[_0x1cfe9e(0x1c3)]();this[_0x1cfe9e(0x153)]=!![],this['loadModules'](_0x2f85bb);}[a57_0x1f2279(0x1de)](_0x2dab20){const _0x2a4979=a57_0x1f2279,_0x5aa651={'ONvxH':function(_0x161a2d,_0x12473e){return _0x161a2d(_0x12473e);},'cRLnU':_0x2a4979(0x1d9),'kjswF':_0x2a4979(0x180),'dbZZK':function(_0x2820c2,_0x32ec32){return _0x2820c2(_0x32ec32);},'sWCmf':'./modules/observabilityModule.js','vhiDx':'loadModules:\x20Loading\x20modules','NwsHo':_0x2a4979(0x1fd),'jvgBI':'getAccessibility','BpFNK':_0x2a4979(0x1d4),'kJuZK':function(_0x2faa83,_0x17211c){return _0x2faa83||_0x17211c;}},_0x29d9e7=_0x5aa651[_0x2a4979(0x1c6)](require,_0x5aa651[_0x2a4979(0x176)]),_0x152832=_0x5aa651[_0x2a4979(0x1c6)](require,_0x5aa651[_0x2a4979(0x19f)]),_0x2e09be=_0x5aa651[_0x2a4979(0x15e)](require,_0x5aa651['sWCmf']);this[_0x2a4979(0x1da)]['info'](_0x5aa651['vhiDx']),this[_0x2a4979(0x1c9)]=_0x2dab20['getBinSessionId'](),this[_0x2a4979(0x1da)][_0x2a4979(0x171)]('loadModules:\x20binSessionId='+this[_0x2a4979(0x1c9)]),this[_0x2a4979(0x1a4)](_0x2dab20);!this['isChildConnected']&&this[_0x2a4979(0x152)](_0x2dab20);const _0xb2b62c=_0x5aa651['NwsHo'],_0x145afb=_0x5aa651[_0x2a4979(0x194)],_0x58a887=_0x5aa651[_0x2a4979(0x186)],_0x26eb88=_0x2dab20[_0xb2b62c]()&&_0x2dab20[_0xb2b62c]()[_0x58a887](),_0x55aebf=_0x2dab20[_0x145afb]()&&_0x2dab20[_0x145afb]()[_0x58a887]();_0x5aa651[_0x2a4979(0x1ac)](_0x26eb88,_0x55aebf)&&(this['modules'][_0x152832[_0x2a4979(0x1a2)]]=new _0x152832(_0x2dab20[_0x2a4979(0x15f)]())),_0x26eb88&&(this[_0x2a4979(0x1cc)][_0x2e09be[_0x2a4979(0x1a2)]]=new _0x2e09be(_0x2dab20[_0xb2b62c]())),_0x55aebf&&(this[_0x2a4979(0x1cc)][AccessibilityModule[_0x2a4979(0x1a2)]]=new AccessibilityModule(_0x2dab20[_0x145afb]())),this['modules'][_0x29d9e7['MODULE_NAME']]=new _0x29d9e7(),this[_0x2a4979(0x1e4)]();}['getAccessibilityModule'](){const _0x4a4340=a57_0x1f2279;return this[_0x4a4340(0x1cc)][AccessibilityModule['MODULE_NAME']];}async['configureModules'](){const _0x50477f=a57_0x1f2279;for(const _0x9605de in this[_0x50477f(0x1cc)]){const _0x494458=this[_0x50477f(0x1cc)][_0x9605de];await _0x494458[_0x50477f(0x1ca)](this['binSessionId'],0x0,GrpcClient[_0x50477f(0x1bf)]()['client'],this[_0x50477f(0x1a3)]);}}async[a57_0x1f2279(0x1ff)](){const _0x3733fb=a57_0x1f2279,_0x1c2bf0={'PsyAE':function(_0x3cea89,_0x1a4cf1){return _0x3cea89!==_0x1a4cf1;},'RgJqd':_0x3733fb(0x183),'sCqqu':function(_0x4f2ca7){return _0x4f2ca7();},'YWPrt':function(_0x51acc9,_0xda0a2c){return _0x51acc9(_0xda0a2c);},'yaWAT':'data','RjLjI':_0x3733fb(0x1e7),'rVjJr':_0x3733fb(0x1ae),'CnDfl':'sdk','VqOMR':function(_0x3c6ddf,_0x19eb93,_0x1fc121,_0x530ade){return _0x3c6ddf(_0x19eb93,_0x1fc121,_0x530ade);},'WayNy':_0x3733fb(0x1aa)};PerformanceTester[_0x3733fb(0x1ff)](PerformanceEvents[_0x3733fb(0x201)]);if(CLIUtils[_0x3733fb(0x1b8)]())return this[_0x3733fb(0x19d)](CLIUtils[_0x3733fb(0x1ec)]()),PerformanceTester[_0x3733fb(0x155)](PerformanceEvents[_0x3733fb(0x201)]),Promise[_0x3733fb(0x184)]();if(this[_0x3733fb(0x163)]&&this[_0x3733fb(0x163)][_0x3733fb(0x15a)])return PerformanceTester[_0x3733fb(0x155)](PerformanceEvents['SDK_CLI_START']),Promise[_0x3733fb(0x184)]();const _0x5a5fef=await this[_0x3733fb(0x1f1)](),_0x51375c=[_0x5a5fef,_0x1c2bf0['CnDfl']];this[_0x3733fb(0x1da)]['info']('spawning\x20command=\x27'+_0x51375c+'\x27');const _0x36fb15={};_0x36fb15['env']=process[_0x3733fb(0x16b)],this[_0x3733fb(0x163)]=_0x1c2bf0[_0x3733fb(0x1d3)](spawn,_0x51375c[0x0],_0x51375c[_0x3733fb(0x1a8)](0x1),_0x36fb15);if(!this[_0x3733fb(0x163)]['pid'])throw new Error(_0x1c2bf0[_0x3733fb(0x173)]);return new Promise((_0x4c00f9,_0xd2504b)=>{const _0x191582=_0x3733fb,_0x2bda1b={'DqSrl':function(_0x8c2f04,_0x2ba4b7){const _0x30ac05=a57_0x19aa;return _0x1c2bf0[_0x30ac05(0x1e2)](_0x8c2f04,_0x2ba4b7);},'PsGlw':function(_0x4d758e,_0x43d37d){const _0x3f8fff=a57_0x19aa;return _0x1c2bf0[_0x3f8fff(0x1af)](_0x4d758e,_0x43d37d);}},_0x1f8599={};this[_0x191582(0x163)][_0x191582(0x1a0)]['on'](_0x1c2bf0[_0x191582(0x1c0)],_0x1fd9cf=>{const _0x2bd8f5=_0x191582,_0x49fcb5=_0x1fd9cf[_0x2bd8f5(0x1b9)]()[_0x2bd8f5(0x1dd)]()[_0x2bd8f5(0x170)]('\x0a');for(const _0x4166b0 of _0x49fcb5){if(/^(id|listen|port)=.*$/[_0x2bd8f5(0x192)](_0x4166b0)){const [_0x2e792f,_0x3f6abc]=_0x4166b0[_0x2bd8f5(0x170)]('=',0x2);_0x1c2bf0[_0x2bd8f5(0x1af)](_0x3f6abc,undefined)&&(_0x1f8599[_0x2e792f]=_0x3f6abc);}if(_0x4166b0[_0x2bd8f5(0x1bc)]()[_0x2bd8f5(0x1d7)](_0x1c2bf0[_0x2bd8f5(0x1f0)])){this[_0x2bd8f5(0x19d)](_0x1f8599),PerformanceTester['end'](PerformanceEvents[_0x2bd8f5(0x201)]),_0x1c2bf0[_0x2bd8f5(0x179)](_0x4c00f9);return;}}}),this[_0x191582(0x163)][_0x191582(0x1ab)]['on'](_0x1c2bf0[_0x191582(0x1c0)],_0x113af2=>{const _0x51bed1=_0x191582;this[_0x51bed1(0x1da)][_0x51bed1(0x1e7)]('CLI\x20stderr:\x20'+_0x113af2['toString']()[_0x51bed1(0x1dd)]());}),this[_0x191582(0x163)]['on'](_0x1c2bf0[_0x191582(0x199)],_0x51f573=>{const _0x2319a5=_0x191582;_0x1f8599['error']=_0x2319a5(0x1be)+_0x51f573[_0x2319a5(0x1d0)],PerformanceTester['end'](PerformanceEvents['SDK_CLI_START'],![],_0x51f573),_0x2bda1b[_0x2319a5(0x1fe)](_0xd2504b,new Error(_0x2319a5(0x1b2)+_0x51f573['message']));}),this[_0x191582(0x163)]['on'](_0x1c2bf0['rVjJr'],_0x404f6f=>{_0x2bda1b['PsGlw'](_0x404f6f,0x0)&&_0x2bda1b['DqSrl'](_0xd2504b,new Error('CLI\x20process\x20exited\x20with\x20code\x20'+_0x404f6f));});});}async[a57_0x1f2279(0x175)](_0x1b63d9=null){const _0x376618=a57_0x1f2279,_0x4d6f1e={'TFyza':_0x376618(0x1a6),'HkJlx':function(_0x12193a){return _0x12193a();},'ylGPf':_0x376618(0x1c4),'pxauy':'SIGKILL','skMHT':_0x376618(0x1e8),'ltbih':function(_0x28b6b0,_0x235946,_0x5799e8){return _0x28b6b0(_0x235946,_0x5799e8);},'nVTVE':_0x376618(0x1ce),'NLOKo':'stop:\x20CLI\x20stop\x20triggered','SKWBI':function(_0x14bbd4,_0x392ee2){return _0x14bbd4(_0x392ee2);},'Mlasa':_0x376618(0x182),'GKOfM':_0x376618(0x169),'FrMbG':_0x376618(0x18f),'fZybT':_0x376618(0x17c)};if(!this[_0x376618(0x1e9)]()){this[_0x376618(0x1da)][_0x376618(0x171)](_0x4d6f1e[_0x376618(0x156)]);return;}PerformanceTester[_0x376618(0x1ff)](PerformanceEvents[_0x376618(0x1c2)]),this[_0x376618(0x1da)]['info'](_0x4d6f1e[_0x376618(0x1e5)]);try{if(this[_0x376618(0x153)]){const _0x1f432d=_0x4d6f1e[_0x376618(0x1b6)](require,_0x4d6f1e['Mlasa']),_0x37ae7c=this[_0x376618(0x1cc)]['TestHubModule']?.[_0x376618(0x17f)]?.[_0x376618(0x1b0)]()?.[_0x376618(0x1fa)],_0x43f31f=TestInfo['getTestDetails'](_0x37ae7c),_0x423715=_0x43f31f[TestFrameworkConstants[_0x376618(0x1ad)]]||{},_0x20ab62=await GrpcClient[_0x376618(0x1bf)]()['stopBinSession'](JSON[_0x376618(0x198)](_0x423715),_0x1b63d9);_0x20ab62&&_0x20ab62[_0x376618(0x1d4)]()&&_0x20ab62[_0x376618(0x162)]()&&(BrowserstackCLI[_0x376618(0x18c)]=_0x20ab62[_0x376618(0x162)](),BrowserstackCLI[_0x376618(0x189)]=_0x20ab62['getHashedId']()),await _0x1f432d['clearAttachments'](),TestInfo['shutdown'](),this['logger'][_0x376618(0x171)](_0x376618(0x1d6)+BrowserstackCLI[_0x376618(0x18c)]+_0x376618(0x1d1)+BrowserstackCLI['HashedID']+_0x376618(0x165)+BrowserstackCLI['O11yHashedID']);}await this[_0x376618(0x1e6)]();const _0x49b7be=GrpcClient['getInstance']()[_0x376618(0x1c1)]();if(_0x49b7be){try{_0x49b7be['close'](),this['logger']['info'](_0x4d6f1e[_0x376618(0x188)]);}catch(_0x5c5f21){this['logger'][_0x376618(0x1e7)](util[_0x376618(0x160)](_0x4d6f1e['FrMbG'],_0x5c5f21));}await new Promise(_0x364cfb=>setTimeout(_0x364cfb,0x1388));}this[_0x376618(0x163)]&&this['process']['pid']&&(this[_0x376618(0x1da)][_0x376618(0x171)](_0x4d6f1e['fZybT']),this[_0x376618(0x163)]['kill'](),await new Promise(_0x305224=>{const _0x30ce38=_0x376618,_0x5df997={'uLMSI':_0x4d6f1e[_0x30ce38(0x16f)],'SjMEw':function(_0x4a8021){return _0x4d6f1e['HkJlx'](_0x4a8021);},'jCOEe':_0x4d6f1e[_0x30ce38(0x17b)],'ENFxb':_0x4d6f1e[_0x30ce38(0x1b4)],'WeTVI':function(_0x51076c){const _0x283a24=_0x30ce38;return _0x4d6f1e[_0x283a24(0x15b)](_0x51076c);}};let _0x79b894=![];this['process']['on'](_0x4d6f1e[_0x30ce38(0x158)],()=>{const _0x51b3ed=_0x30ce38;this[_0x51b3ed(0x1da)][_0x51b3ed(0x171)](_0x5df997[_0x51b3ed(0x15d)]),_0x79b894=!![],PerformanceTester[_0x51b3ed(0x155)](PerformanceEvents['SDK_CLI_ON_STOP']),_0x5df997[_0x51b3ed(0x1f3)](_0x305224);}),_0x4d6f1e[_0x30ce38(0x1f2)](setTimeout,()=>{const _0x2f1445=_0x30ce38;!_0x79b894&&(this[_0x2f1445(0x1da)][_0x2f1445(0x17e)](_0x5df997[_0x2f1445(0x1d5)]),this[_0x2f1445(0x163)][_0x2f1445(0x1cf)](_0x5df997['ENFxb']),PerformanceTester[_0x2f1445(0x155)](PerformanceEvents[_0x2f1445(0x1c2)]),_0x5df997[_0x2f1445(0x196)](_0x305224));},0xbb8);}));}catch(_0x5b6bbe){PerformanceTester[_0x376618(0x155)](PerformanceEvents[_0x376618(0x1c2)],![],util[_0x376618(0x160)](_0x5b6bbe)),this['logger'][_0x376618(0x1e7)](_0x376618(0x204)+(_0x5b6bbe[_0x376618(0x174)]||_0x5b6bbe));}_0x1b63d9?this['process'][_0x376618(0x1eb)]=0x1:this[_0x376618(0x163)]['exitCode']=0x0,this[_0x376618(0x1fb)]=![],this[_0x376618(0x153)]=![],process[_0x376618(0x16b)]['BROWSERSTACK_CLI_ENV']=null;}async[a57_0x1f2279(0x1e6)](){const _0x39013b=a57_0x1f2279,_0x2e23a7={};_0x2e23a7[_0x39013b(0x1cd)]=_0x39013b(0x19b);const _0x12d187=_0x2e23a7;this[_0x39013b(0x1da)][_0x39013b(0x171)](_0x12d187[_0x39013b(0x1cd)]);}[a57_0x1f2279(0x19d)](_0x2fd85b){const _0x3681d7=a57_0x1f2279;this[_0x3681d7(0x1da)][_0x3681d7(0x171)](_0x3681d7(0x166)+JSON[_0x3681d7(0x198)](_0x2fd85b)),this['cliParams']=_0x2fd85b,GrpcClient['getInstance']()[_0x3681d7(0x172)](_0x2fd85b);}async[a57_0x1f2279(0x1f5)](_0x283754){const _0x10cb75=a57_0x1f2279,_0xf1275d={};_0xf1275d[_0x10cb75(0x177)]=_0x10cb75(0x1bb);const _0x2d897d=_0xf1275d;PerformanceTester[_0x10cb75(0x1ff)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this[_0x10cb75(0x1da)][_0x10cb75(0x171)](_0x10cb75(0x1b1)+_0x283754);const _0x16651e=GrpcClient['getInstance']();if(_0x16651e&&_0x16651e[_0x10cb75(0x1a7)]()&&_0x16651e[_0x10cb75(0x1c1)]()){this[_0x10cb75(0x1da)][_0x10cb75(0x171)](_0x2d897d[_0x10cb75(0x177)]);return;}GrpcClient[_0x10cb75(0x1bf)]()['connect']();const _0x443935=await GrpcClient[_0x10cb75(0x1bf)]()['connectBinSession']();this[_0x10cb75(0x1fb)]=!![],this[_0x10cb75(0x1de)](_0x443935),PerformanceTester[_0x10cb75(0x155)](PerformanceEvents[_0x10cb75(0x161)]);}catch(_0xa22b9a){PerformanceTester[_0x10cb75(0x155)](PerformanceEvents[_0x10cb75(0x161)],![],util[_0x10cb75(0x160)](_0xa22b9a)),this['logger'][_0x10cb75(0x1e7)](_0x10cb75(0x1a1)+util[_0x10cb75(0x160)](_0xa22b9a));}}[a57_0x1f2279(0x1e9)](){const _0x8b4be4=a57_0x1f2279,_0x4b5e9c={};_0x4b5e9c['SsRnP']=function(_0x26ca13,_0x31e923){return _0x26ca13!==_0x31e923;},_0x4b5e9c[_0x8b4be4(0x1e1)]=function(_0x1db173,_0x40e904){return _0x1db173===_0x40e904;},_0x4b5e9c['UnAPK']=function(_0x2057f8,_0x3bf528){return _0x2057f8!==_0x3bf528;};const _0x35274f=_0x4b5e9c;return CLIUtils[_0x8b4be4(0x1b8)]()||this[_0x8b4be4(0x153)]&&_0x35274f['SsRnP'](this[_0x8b4be4(0x163)],null)&&_0x35274f[_0x8b4be4(0x1e1)](this[_0x8b4be4(0x163)][_0x8b4be4(0x1eb)],null)&&_0x35274f[_0x8b4be4(0x1d2)](GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1a7)](),null)&&!GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1c1)]()[_0x8b4be4(0x1f8)]||this[_0x8b4be4(0x1fb)]&&_0x35274f['UnAPK'](GrpcClient[_0x8b4be4(0x1bf)]()[_0x8b4be4(0x1c1)](),null)&&!GrpcClient[_0x8b4be4(0x1bf)]()['getChannel']()['isClosed'];}[a57_0x1f2279(0x1f6)](){return this['browserstackConfig'];}['setBrowserstackConfig'](_0x388fa4,_0x299735=null){const _0x2d6732=a57_0x1f2279,_0x5594c1={};_0x5594c1['iEhCk']=function(_0x11c4bc,_0x2ca3dd){return _0x11c4bc||_0x2ca3dd;};const _0x2e2ec0=_0x5594c1;this[_0x2d6732(0x1e3)]=_0x2e2ec0[_0x2d6732(0x203)](_0x388fa4,{}),this[_0x2d6732(0x1ee)]=_0x299735,process[_0x2d6732(0x16b)]['BROWSERSTACK_TURBOSCALE']=this[_0x2d6732(0x1e3)]?.['turboScale']||![];const _0x183735=CLIUtils[_0x2d6732(0x1c7)]();helper[_0x2d6732(0x202)](process[_0x2d6732(0x16b)][_0x2d6732(0x1cb)])||!CLI_SUPPORTED_FRAMEWORKS[_0x2d6732(0x1d7)](_0x183735['name'][_0x2d6732(0x1bc)]())?process['env'][_0x2d6732(0x1db)]=![]:process['env']['BROWSERSTACK_CLI_ENABLED']=!![];}async[a57_0x1f2279(0x1f1)](){const _0xa955d5=a57_0x1f2279;return!this[_0xa955d5(0x195)]&&(this[_0xa955d5(0x195)]=await CLIUtils['setupCliPath'](this['browserstackConfig'])),this['SDK_CLI_BIN_PATH'];}[a57_0x1f2279(0x190)](){const _0x1156df=a57_0x1f2279;return helper[_0x1156df(0x202)](process[_0x1156df(0x16b)][_0x1156df(0x1db)]);}[a57_0x1f2279(0x205)](){return this['config'];}[a57_0x1f2279(0x1a4)](_0xca072c){const _0x3281ad=a57_0x1f2279,_0x3fcc3d={};_0x3fcc3d[_0x3281ad(0x187)]=_0x3281ad(0x159);const _0x46fd66=_0x3fcc3d;try{this['config']=JSON['parse'](_0xca072c['getConfig']()),this[_0x3281ad(0x1da)][_0x3281ad(0x171)](_0x46fd66[_0x3281ad(0x187)]);}catch(_0x5e1296){this['logger']['error'](_0x3281ad(0x15c)+util[_0x3281ad(0x160)](_0x5e1296));}}['setCliArgs'](_0x414105){const _0xdb4438=a57_0x1f2279;try{this[_0xdb4438(0x1e0)]=_0x414105[_0xdb4438(0x1f4)]()[_0xdb4438(0x170)](','),this[_0xdb4438(0x1da)][_0xdb4438(0x171)](_0xdb4438(0x16a)+JSON['stringify'](this[_0xdb4438(0x1e0)]));}catch(_0x193f96){this[_0xdb4438(0x1da)][_0xdb4438(0x1e7)](_0xdb4438(0x178)+util[_0xdb4438(0x160)](_0x193f96));}}[a57_0x1f2279(0x1f4)](){const _0x416a0e=a57_0x1f2279;return this[_0x416a0e(0x1e0)];}[a57_0x1f2279(0x1c5)](){const _0x33f540=a57_0x1f2279,_0x3558ba={};_0x3558ba[_0x33f540(0x1a5)]=function(_0x35d201,_0x5b1dd0){return _0x35d201===_0x5b1dd0;};const _0x453c17=_0x3558ba,_0x44ed50=CLIUtils[_0x33f540(0x1c7)]();_0x453c17[_0x33f540(0x1a5)](_0x44ed50[_0x33f540(0x1b5)][_0x33f540(0x1bc)](),FRAMEWORKS[_0x33f540(0x1b7)][_0x33f540(0x1bc)]())&&(this[_0x33f540(0x16e)]=new PlaywrightTestFramework([_0x44ed50['name']],_0x44ed50[_0x33f540(0x16c)]));}['setupAutomationFramework'](){const _0x218368=a57_0x1f2279,_0x56f03b={};_0x56f03b['rHkSG']=function(_0x5a7636,_0x205788){return _0x5a7636===_0x205788;};const _0x4e8951=_0x56f03b,_0x355443=CLIUtils[_0x218368(0x1b3)]();_0x4e8951[_0x218368(0x191)](_0x355443[_0x218368(0x1b5)][_0x218368(0x1bc)](),FRAMEWORKS[_0x218368(0x1b7)][_0x218368(0x1bc)]())&&(this[_0x218368(0x1df)]=new PlaywrightAutomationFramework(_0x355443['name'],_0x355443[_0x218368(0x16c)]));}[a57_0x1f2279(0x17a)](){const _0x4a1d63=a57_0x1f2279;return this[_0x4a1d63(0x16e)];}[a57_0x1f2279(0x193)](){const _0x34de85=a57_0x1f2279;return this[_0x34de85(0x1df)];}[a57_0x1f2279(0x1ea)](){const _0x4d9762=a57_0x1f2279;return this[_0x4d9762(0x1ee)];}}module[a57_0x1f2279(0x16d)]=BrowserstackCLI;
@@ -1 +1 @@
1
- const a58_0x5cf4d3=a58_0x6c55;function a58_0x39cc(){const _0x5607fa=['../../helpers/test-observability/utils.js','getCliDir','basename','QUSpv','./state/hookState.js','open','112552MgPNWs','BROWSERSTACK_BINARY_URL','\x20already\x20exists','path','4|0|1|2|3','requestToUpdateCLI','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','end','binary-','Ybewz','Configuring\x20Cli\x20path.','../../helpers/classLogger.js','automationFrameworkDetail','pipe','gjvoy','HOOK_REGEX','close','DIopo','euNCH','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','0755','EXDys','split','ycuSw','url','../../../package.json','once','util','getSdkLanguage','WTkYN','SHELL_EXECUTE_ERROR','pid','worker_threads','format','382713QvzyQR','getExistingCliPath','llGwe','./state/testFrameworkState.js','Downloading\x20SDK\x20binary\x20from:\x20','response\x20','existsSync','mtime','QoEGC','OIAEG','4338lDNwqX','filter','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','Current\x20CLI\x20Path\x20Found:\x20','XDcia','oQYRG','exports','fileName','.sock','testFrameworkDetail','431645oRAFxX','pvroI','Development\x20Cli\x20Path:\x20','createWriteStream','hwjZG','getCurrentInstanceName','gKGMH','lazyEntries','iXPAC','Resolved\x20binary\x20path:\x20','homedir','getWritableDir','info','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','../../helpers/performance/performance-tester.js','follow-redirects','TFlyd','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','isFile','FevuW','SDK_CLI_CHECK_UPDATE','UKZQO','Folder\x20','WizRA','parse','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','openReadStream','shouldSkipSessionName','arch','McEFZ','length','KZNVs','qMknN','reduce','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','downloaded_file.zip','pFrGY','GzKlW','pDGBN','BhVqQ','jvHXm','Failed\x20to\x20delete\x20zip\x20file:\x20','checkAndUpdateCli','version','skipSessionStatus','../../helpers/performance/constants','test','eEfsa','getCLIParamsForDevEnv','error','timeout','evwRO','node','startsWith','chmod','getSdkVersion','warn','start','setupCliPath','PmuxY','./instances/testFrameworkInstance.js','yauzl','GQfDy','eeiKT','matchHookRegex','VJbEw','FvuPL','isDevelopmentEnv','GtoGM','Setting\x20required\x20permissions\x20to\x20','Xzgvu','development','get','SDK_CLI_BIN_PATH','../../helpers/helper','readEntry','MKjYs','unlink','mbidH','xFubn','161591vxtshK','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','getAutomationFrameworkDetail','SJZob','env','BROWSERSTACK_CLI_ENV',',\x20automationFramework=','1170216FmWwRN','cli_version','trim','SDK_CLI_DOWNLOAD','platform','statSync','runShellCommand','420qcZvPM','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','data','KGUTO','testContextOptions','Folder\x20does\x20not\x20exist:\x20','listen','./state/automationFrameworkState.js','./framework/constants/testFrameworkConstants.js','362458yAmoxr','debug','downloadFileStream','setFrameworkDetail','TqEul','stringify','fmLIJ','AeDvG','join','OJTBx','GET','map','skipSessionName'];a58_0x39cc=function(){return _0x5607fa;};return a58_0x39cc();}(function(_0x345c9b,_0x25e1fe){const _0xec42ab=a58_0x6c55,_0x54f3f8=_0x345c9b();while(!![]){try{const _0x1bad80=-parseInt(_0xec42ab(0xaa))/0x1+parseInt(_0xec42ab(0xc1))/0x2+-parseInt(_0xec42ab(0xf6))/0x3+parseInt(_0xec42ab(0xd4))/0x4+parseInt(_0xec42ab(0x10a))/0x5+parseInt(_0xec42ab(0x100))/0x6*(-parseInt(_0xec42ab(0xb8))/0x7)+parseInt(_0xec42ab(0xb1))/0x8;if(_0x1bad80===_0x25e1fe)break;else _0x54f3f8['push'](_0x54f3f8['shift']());}catch(_0x737bef){_0x54f3f8['push'](_0x54f3f8['shift']());}}}(a58_0x39cc,0x1ab77));function a58_0x6c55(_0x23540e,_0x4b7b89){const _0x39cc2b=a58_0x39cc();return a58_0x6c55=function(_0x6c55ec,_0x3746e0){_0x6c55ec=_0x6c55ec-0x6b;let _0xdd0286=_0x39cc2b[_0x6c55ec];return _0xdd0286;},a58_0x6c55(_0x23540e,_0x4b7b89);}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a58_0x5cf4d3(0xd7)),{exec}=require('child_process'),{https}=require(a58_0x5cf4d3(0x119)),yauzl=require(a58_0x5cf4d3(0x97)),util=require(a58_0x5cf4d3(0xef)),{getFrameworkVersion}=require(a58_0x5cf4d3(0xce)),{threadId}=require(a58_0x5cf4d3(0xf4)),PerformanceTester=require(a58_0x5cf4d3(0x118)),{EVENTS:PerformanceEvents}=require(a58_0x5cf4d3(0x87)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a58_0x5cf4d3(0xa4)),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require('../utils/constants'),{createClassLogger}=require(a58_0x5cf4d3(0xdf)),TestFrameworkInstance=require(a58_0x5cf4d3(0x96)),HookState=require(a58_0x5cf4d3(0xd2)),TestFrameworkState=require(a58_0x5cf4d3(0xf9)),AutomationFrameworkState=require(a58_0x5cf4d3(0xbf)),TestFrameworkConstants=require(a58_0x5cf4d3(0xc0)),logger=createClassLogger('CLIUtils');class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a58_0x5cf4d3(0x9d)](){const _0x267afd=a58_0x5cf4d3,_0x5ed961={};_0x5ed961[_0x267afd(0x9b)]=function(_0x5598a3,_0xc6ca6a){return _0x5598a3===_0xc6ca6a;},_0x5ed961[_0x267afd(0x10b)]=_0x267afd(0xa1);const _0x3ed417=_0x5ed961;return _0x3ed417[_0x267afd(0x9b)](process[_0x267afd(0xae)]['BROWSERSTACK_CLI_ENV'],_0x3ed417[_0x267afd(0x10b)]);}static[a58_0x5cf4d3(0x8a)](){const _0x269b77=a58_0x5cf4d3,_0x42f6b4={};return _0x42f6b4['id']=process[_0x269b77(0xae)]['BROWSERSTACK_CLI_ENV'],_0x42f6b4[_0x269b77(0xbe)]='unix:/tmp/sdk-platform-'+process['env'][_0x269b77(0xaf)]+_0x269b77(0x108),_0x42f6b4;}static[a58_0x5cf4d3(0x91)](){const _0x435a17=a58_0x5cf4d3,_0x27419b={'MKjYs':function(_0x3f5c36,_0xba267f){return _0x3f5c36(_0xba267f);},'OIAEG':_0x435a17(0xed)};return _0x27419b[_0x435a17(0xa6)](require,_0x27419b[_0x435a17(0xff)])[_0x435a17(0x85)];}static['getSdkLanguage'](){const _0x301393=a58_0x5cf4d3,_0x1e4dda={};_0x1e4dda['TtWqW']=_0x301393(0x8e);const _0x1ca360=_0x1e4dda;return _0x1ca360['TtWqW'];}static async[a58_0x5cf4d3(0x94)](_0x8db1d2){const _0x9cab30=a58_0x5cf4d3,_0x24605d={'mbidH':_0x9cab30(0xde),'hiDCI':function(_0x39d6ae,_0x487721){return _0x39d6ae(_0x487721);},'XDcia':_0x9cab30(0xab)};logger[_0x9cab30(0xc2)](_0x24605d[_0x9cab30(0xa8)]);const _0x19f143=process[_0x9cab30(0xae)][_0x9cab30(0xa3)];if(!_0x24605d['hiDCI'](isNullOrEmpty,_0x19f143))return logger[_0x9cab30(0xc2)](_0x9cab30(0x10c)+_0x19f143),_0x19f143;try{const _0xb8f300=this[_0x9cab30(0xcf)]();if(_0x24605d['hiDCI'](isNullOrEmpty,_0xb8f300))throw new Error(_0x24605d[_0x9cab30(0x104)]);const _0x490d12=this[_0x9cab30(0xf7)](_0xb8f300),_0x4f6fb8=await this[_0x9cab30(0x84)](_0x490d12,_0xb8f300,_0x8db1d2);return logger[_0x9cab30(0xc2)](_0x9cab30(0x113)+_0x4f6fb8),_0x4f6fb8;}catch(_0x1b784d){logger[_0x9cab30(0xc2)](_0x9cab30(0xb9)+util['format'](_0x1b784d));}return null;}static async['checkAndUpdateCli'](_0x207227,_0x437e48,_0x410c48){const _0x50960b=a58_0x5cf4d3,_0x267443={'euNCH':function(_0x316b30){return _0x316b30();},'WTkYN':function(_0x4610d1,_0x5e6723){return _0x4610d1(_0x5e6723);},'pFrGY':function(_0x3017b8,_0x1ce1fc,_0x384b75){return _0x3017b8(_0x1ce1fc,_0x384b75);},'SJZob':_0x50960b(0xba),'QoEGC':_0x50960b(0xec)};PerformanceTester[_0x50960b(0x93)](PerformanceEvents[_0x50960b(0x6e)]),logger[_0x50960b(0x116)](_0x50960b(0x103)+_0x207227);const _0x7219f2=_0x267443[_0x50960b(0xe6)](getHostInfo),_0x48d1cd={'sdk_version':CLIUtils[_0x50960b(0x91)](),'os':_0x7219f2[_0x50960b(0xb5)],'os_arch':_0x7219f2[_0x50960b(0x76)],'cli_version':'0','sdk_language':this[_0x50960b(0xf0)]()};!_0x267443[_0x50960b(0xf1)](isNullOrEmpty,_0x207227)&&(_0x48d1cd[_0x50960b(0xb2)]=await this[_0x50960b(0xb7)](_0x207227+'\x20version'));const _0x46510d=await this[_0x50960b(0xd9)](_0x48d1cd,_0x410c48);process[_0x50960b(0xae)][_0x50960b(0xd5)]&&(logger[_0x50960b(0x116)](_0x50960b(0xe7)+process['env'][_0x50960b(0xd5)]),_0x46510d[_0x50960b(0xba)][_0x50960b(0xec)]=process[_0x50960b(0xae)][_0x50960b(0xd5)]);if(_0x267443[_0x50960b(0x7e)](nestedKeyValue,_0x46510d,[_0x267443[_0x50960b(0xad)],_0x267443['QoEGC']])){logger[_0x50960b(0xc2)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x48d1cd[_0x50960b(0xb2)]);const _0x414c59=await this['downloadLatestBinary'](_0x267443['pFrGY'](nestedKeyValue,_0x46510d,[_0x267443[_0x50960b(0xad)],_0x267443[_0x50960b(0xfe)]]),_0x437e48);return PerformanceTester[_0x50960b(0xdb)](PerformanceEvents[_0x50960b(0x6e)]),_0x414c59;}return PerformanceTester[_0x50960b(0xdb)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x207227;}static[a58_0x5cf4d3(0xcf)](){const _0x5a5ce4=a58_0x5cf4d3,_0x409588={'ycuSw':function(_0x14033e,_0x319756){return _0x14033e(_0x319756);},'UPLDl':_0x5a5ce4(0xab),'TqEul':'cli','QUSpv':function(_0x263258,_0xe0348d){return _0x263258(_0xe0348d);}},_0xf8385e=this[_0x5a5ce4(0x115)]();try{if(_0x409588[_0x5a5ce4(0xeb)](isNullOrEmpty,_0xf8385e))throw new Error(_0x409588['UPLDl']);const _0x331181=path[_0x5a5ce4(0xc9)](_0xf8385e,_0x409588[_0x5a5ce4(0xc5)]);return!fs[_0x5a5ce4(0xfc)](_0x331181)&&_0x409588[_0x5a5ce4(0xd1)](createDir,_0x331181),_0x331181;}catch(_0xf99733){logger[_0x5a5ce4(0xc2)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x5a5ce4(0xf5)](_0xf99733));}}static['getWritableDir'](){const _0x281a40=a58_0x5cf4d3,_0x92dcf2={'TFlyd':'.browserstack','eeiKT':'tmp','McEFZ':function(_0x5ae1b2,_0x31910a){return _0x5ae1b2(_0x31910a);}},_0x13a8d3=[process[_0x281a40(0xae)]['BROWSERSTACK_FILES_DIR'],path[_0x281a40(0xc9)](os[_0x281a40(0x114)](),_0x92dcf2[_0x281a40(0x11a)]),path[_0x281a40(0xc9)](_0x92dcf2[_0x281a40(0x99)],_0x92dcf2[_0x281a40(0x11a)])];for(const _0x24de0b of _0x13a8d3){if(_0x92dcf2[_0x281a40(0x77)](isNullOrEmpty,_0x24de0b))continue;try{if(fs[_0x281a40(0xfc)](_0x24de0b)){logger[_0x281a40(0xc2)](_0x281a40(0x70)+_0x24de0b+_0x281a40(0xd6));if(!_0x92dcf2[_0x281a40(0x77)](isModifiable,_0x24de0b)){logger[_0x281a40(0xc2)](_0x281a40(0x9f)+_0x24de0b);const _0x1d5e07=_0x92dcf2[_0x281a40(0x77)](setReadWriteExecuteAccess,_0x24de0b);!_0x92dcf2[_0x281a40(0x77)](isTrue,_0x1d5e07)&&logger[_0x281a40(0x92)](_0x281a40(0x6b)+_0x24de0b);}}else{logger['debug'](_0x281a40(0xbd)+_0x24de0b),_0x92dcf2[_0x281a40(0x77)](createDir,_0x24de0b),logger[_0x281a40(0xc2)](_0x281a40(0x9f)+_0x24de0b);const _0x468001=_0x92dcf2['McEFZ'](setReadWriteExecuteAccess,_0x24de0b);!_0x92dcf2[_0x281a40(0x77)](isTrue,_0x468001)&&logger[_0x281a40(0x92)](_0x281a40(0x6b)+_0x24de0b);}return _0x24de0b;}catch(_0x2e5169){logger[_0x281a40(0x8b)](_0x281a40(0x7c)+util['format'](_0x2e5169));}}return null;}static[a58_0x5cf4d3(0xf7)](_0x41514c){const _0x5e5cde=a58_0x5cf4d3,_0x26ed3c={};_0x26ed3c[_0x5e5cde(0xa0)]=function(_0x3a7d22,_0x471901){return _0x3a7d22>_0x471901;};const _0x7a7c38=_0x26ed3c;try{if(!fs[_0x5e5cde(0xfc)](_0x41514c)||!fs[_0x5e5cde(0xb6)](_0x41514c)['isDirectory']())return'';const _0x379a01=fs['readdirSync'](_0x41514c)[_0x5e5cde(0xcc)](_0x15a2a4=>path['join'](_0x41514c,_0x15a2a4))[_0x5e5cde(0x101)](_0x59f0f3=>fs[_0x5e5cde(0xb6)](_0x59f0f3)[_0x5e5cde(0x6c)]()&&path[_0x5e5cde(0xd0)](_0x59f0f3)[_0x5e5cde(0x8f)](_0x5e5cde(0xdc)));if(_0x7a7c38[_0x5e5cde(0xa0)](_0x379a01[_0x5e5cde(0x78)],0x0)){const _0x579d32=_0x379a01[_0x5e5cde(0xcc)](_0x30416b=>({'filePath':_0x30416b,'mtime':fs[_0x5e5cde(0xb6)](_0x30416b)['mtime']}))[_0x5e5cde(0x7b)]((_0x231f18,_0x479317)=>{const _0x371382=_0x5e5cde;if(!_0x231f18||!_0x231f18[_0x371382(0xfd)])return _0x479317;if(_0x7a7c38['Xzgvu'](_0x479317[_0x371382(0xfd)],_0x231f18[_0x371382(0xfd)]))return _0x479317;return _0x231f18;},{});return _0x579d32?_0x579d32['filePath']:'';}return'';}catch(_0xe511bb){return logger[_0x5e5cde(0x8b)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x5e5cde(0xf5)](_0xe511bb)),'';}}static [a58_0x5cf4d3(0xd9)]=async(_0x51abef,_0x29f5ab)=>{const _0x12849f=a58_0x5cf4d3,_0x8ac7c4={'QJvei':function(_0x53cf87,_0x1413c3,_0x377473,_0x587825,_0x4d2f6c,_0x205b46){return _0x53cf87(_0x1413c3,_0x377473,_0x587825,_0x4d2f6c,_0x205b46);},'IjqOB':_0x12849f(0xcb)},_0x51bd82={};_0x51bd82['qs']=_0x51abef;const _0x5bf187=await _0x8ac7c4['QJvei'](nodeRequest,_0x8ac7c4['IjqOB'],UPDATED_CLI_ENDPOINT,_0x51bd82,_0x29f5ab,BROWSERSTACK_API_URL);return logger[_0x12849f(0xc2)](_0x12849f(0xfb)+JSON[_0x12849f(0xc6)](_0x5bf187)),_0x5bf187;};static['runShellCommand'](_0x50189f,_0x48adf9=''){const _0x2fa82c=a58_0x5cf4d3,_0x566110={'PmuxY':function(_0x5cfd17,_0x4808ff){return _0x5cfd17(_0x4808ff);},'WizRA':_0x2fa82c(0xf2),'AtmYe':function(_0x2fa564,_0x450a0e,_0x1bf453,_0x96ee84){return _0x2fa564(_0x450a0e,_0x1bf453,_0x96ee84);},'Dvlkm':_0x2fa82c(0x8b)};return new Promise((_0x55ab38,_0x413fcd)=>{const _0x1c5a16=_0x2fa82c,_0x6e0304={};_0x6e0304['cwd']=_0x48adf9,_0x6e0304[_0x1c5a16(0x8c)]=0x1388;const _0x2a550c=_0x566110['AtmYe'](exec,_0x50189f,_0x6e0304,(_0x14b7c7,_0x5a277a,_0x4f9123)=>{const _0x48aa56=_0x1c5a16;_0x14b7c7?_0x566110[_0x48aa56(0x95)](_0x55ab38,_0x4f9123[_0x48aa56(0xb3)]()||_0x566110[_0x48aa56(0x71)]):_0x566110[_0x48aa56(0x95)](_0x55ab38,_0x5a277a[_0x48aa56(0xb3)]());});_0x2a550c['on'](_0x566110['Dvlkm'],()=>{const _0x2288d7=_0x1c5a16;_0x566110['PmuxY'](_0x55ab38,_0x566110[_0x2288d7(0x71)]);});});}static ['downloadLatestBinary']=async(_0x39a8dc,_0x51899a)=>{const _0x17d1fb=a58_0x5cf4d3,_0x4bee1c={'EXDys':_0x17d1fb(0x102),'evwRO':function(_0xffd7cd,_0x43ad8a){return _0xffd7cd(_0x43ad8a);},'BhVqQ':_0x17d1fb(0x73),'eEfsa':_0x17d1fb(0x8b),'OtOGQ':_0x17d1fb(0x7d)};PerformanceTester[_0x17d1fb(0x93)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x17d1fb(0xc2)](_0x17d1fb(0xfa)+_0x39a8dc);try{const _0x376494=url[_0x17d1fb(0x72)](_0x39a8dc),_0x1ddfbe=path[_0x17d1fb(0xc9)](_0x51899a,_0x4bee1c['OtOGQ']),_0xbc0f=fs[_0x17d1fb(0x10d)](_0x1ddfbe);return new Promise((_0x3c939e,_0x407475)=>{const _0x1419b8=_0x17d1fb,_0x2cf23b={'KGUTO':_0x4bee1c[_0x1419b8(0xe9)],'Ybewz':function(_0x38a5d5,_0x222784){return _0x4bee1c['evwRO'](_0x38a5d5,_0x222784);},'jvHXm':_0x4bee1c[_0x1419b8(0x81)],'GtoGM':function(_0x24a150,_0x578ce3){const _0x1ea9e3=_0x1419b8;return _0x4bee1c[_0x1ea9e3(0x8d)](_0x24a150,_0x578ce3);},'iXPAC':_0x4bee1c['eEfsa'],'yaosY':function(_0x2eefbb,_0x35f65f){const _0xd53666=_0x1419b8;return _0x4bee1c[_0xd53666(0x8d)](_0x2eefbb,_0x35f65f);}};https[_0x1419b8(0xa2)](_0x376494,function(_0x229b2c){const _0x2beb43=_0x1419b8,_0x133e9b=null;_0x229b2c[_0x2beb43(0xe1)](_0xbc0f),_0x229b2c['on'](_0x2cf23b[_0x2beb43(0x112)],function(_0x3e7b92){const _0x109cd8=_0x2beb43;logger['error'](util['format'](_0x2cf23b[_0x109cd8(0xbb)],_0x3e7b92)),PerformanceTester['end'](PerformanceEvents[_0x109cd8(0xb4)],![],util[_0x109cd8(0xf5)](_0x3e7b92)),_0x2cf23b[_0x109cd8(0xdd)](_0x407475,_0x3e7b92);}),_0xbc0f['on'](_0x2cf23b[_0x2beb43(0x112)],function(_0x4e769c){const _0x17f464=_0x2beb43;logger[_0x17f464(0x8b)](util[_0x17f464(0xf5)](_0x2cf23b[_0x17f464(0x82)],_0x4e769c)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x17f464(0xf5)](_0x4e769c)),_0x2cf23b[_0x17f464(0x9e)](_0x407475,_0x4e769c);}),CLIUtils[_0x2beb43(0xc3)](_0xbc0f,_0x133e9b,_0x1ddfbe,_0x51899a,_0x3c939e,_0x407475),PerformanceTester[_0x2beb43(0xdb)](PerformanceEvents['SDK_CLI_DOWNLOAD']);})['on'](_0x4bee1c[_0x1419b8(0x89)],function(_0x224830){const _0x35b5b6=_0x1419b8;logger[_0x35b5b6(0x8b)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20'+util[_0x35b5b6(0xf5)](_0x224830)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x35b5b6(0xf5)](_0x224830)),_0x2cf23b['yaosY'](_0x407475,_0x224830);});});}catch(_0x4ba1d1){PerformanceTester['end'](PerformanceEvents[_0x17d1fb(0xb4)],![],util[_0x17d1fb(0xf5)](_0x4ba1d1)),logger[_0x17d1fb(0xc2)]('Failed\x20to\x20download\x20binary,\x20Exception:\x20'+util[_0x17d1fb(0xf5)](_0x4ba1d1));}};static['downloadFileStream'](_0x493042,_0x5a2a31,_0x49e49b,_0xfbb398,_0x3942c6,_0x21f4af){const _0x4a9c19=a58_0x5cf4d3,_0x4936ac={'GzKlW':function(_0x10cba1,_0x32eb49){return _0x10cba1(_0x32eb49);},'pDGBN':_0x4a9c19(0xe8),'gjvoy':function(_0xc8384a,_0x11dbdb){return _0xc8384a(_0x11dbdb);},'gtZsd':_0x4a9c19(0xdb),'DmZpS':function(_0x199074,_0x264283){return _0x199074===_0x264283;},'llGwe':'entry','OcddA':_0x4a9c19(0x8b),'DIopo':_0x4a9c19(0xe4)};_0x493042['on'](_0x4936ac[_0x4a9c19(0xe5)],function(){const _0x5d8d5f=_0x4a9c19,_0x129708={'hwjZG':function(_0x5f1a34,_0x59e490){const _0x2ca14a=a58_0x6c55;return _0x4936ac[_0x2ca14a(0x7f)](_0x5f1a34,_0x59e490);},'OJTBx':function(_0x289cd0,_0x2f68ba){return _0x4936ac['GzKlW'](_0x289cd0,_0x2f68ba);},'KZNVs':_0x4936ac[_0x5d8d5f(0x80)],'oQYRG':function(_0x8bb3fb,_0x532a24){const _0x13b141=_0x5d8d5f;return _0x4936ac[_0x13b141(0xe2)](_0x8bb3fb,_0x532a24);},'UKZQO':_0x4936ac['gtZsd'],'VQmci':function(_0xd95e6b,_0xdfd482){return _0x4936ac['DmZpS'](_0xd95e6b,_0xdfd482);},'FvuPL':_0x4936ac[_0x5d8d5f(0xf8)],'fmLIJ':_0x4936ac['OcddA']},_0x2c6a34={};_0x2c6a34[_0x5d8d5f(0x111)]=!![],yauzl[_0x5d8d5f(0xd3)](_0x49e49b,_0x2c6a34,function(_0x313b32,_0xc5e101){const _0x232c5c=_0x5d8d5f,_0x57555d={'qMknN':function(_0x58a0cc,_0x47b858){return _0x129708['oQYRG'](_0x58a0cc,_0x47b858);},'wrXQR':_0x129708[_0x232c5c(0x6f)],'xFubn':function(_0x31940c,_0x5090b3){return _0x129708['VQmci'](_0x31940c,_0x5090b3);}};_0x313b32&&_0x129708[_0x232c5c(0x105)](_0x21f4af,_0x313b32),_0xc5e101[_0x232c5c(0xa5)](),_0xc5e101['on'](_0x129708[_0x232c5c(0x9c)],_0x3a03bd=>{const _0x2155c2=_0x232c5c;!_0x5a2a31&&(_0x5a2a31=_0x3a03bd[_0x2155c2(0x107)]);if(/\/$/['test'](_0x3a03bd[_0x2155c2(0x107)]))_0xc5e101[_0x2155c2(0xa5)]();else{const _0x32c388=fs[_0x2155c2(0x10d)](path[_0x2155c2(0xc9)](_0xfbb398,_0x3a03bd[_0x2155c2(0x107)]));_0xc5e101[_0x2155c2(0x74)](_0x3a03bd,function(_0x251229,_0x41b851){const _0x1d99cb=_0x2155c2;_0x251229&&_0x57555d[_0x1d99cb(0x7a)](_0x21f4af,_0x313b32),_0x41b851['on'](_0x57555d['wrXQR'],function(){const _0x160a7f=_0x1d99cb;_0x32c388[_0x160a7f(0xe4)](),_0xc5e101[_0x160a7f(0xa5)]();}),_0x41b851['pipe'](_0x32c388);}),_0x57555d[_0x2155c2(0xa9)](_0x3a03bd[_0x2155c2(0x107)],_0x5a2a31)&&_0xc5e101[_0x2155c2(0xe4)]();}}),_0xc5e101['on'](_0x129708[_0x232c5c(0xc7)],_0x17504c=>{const _0x295dd4=_0x232c5c;_0x57555d[_0x295dd4(0x7a)](_0x21f4af,_0x17504c);}),_0xc5e101[_0x232c5c(0xee)](_0x129708[_0x232c5c(0x6f)],()=>{const _0x3442e9=_0x232c5c,_0x467fdb={'FevuW':function(_0x5b6405,_0x2e6be7){const _0x215b1f=a58_0x6c55;return _0x129708[_0x215b1f(0x10e)](_0x5b6405,_0x2e6be7);},'pcvRR':function(_0x4e2d6c,_0x2c7999){const _0x591aac=a58_0x6c55;return _0x129708[_0x591aac(0xca)](_0x4e2d6c,_0x2c7999);}};fs[_0x3442e9(0xa7)](_0x49e49b,_0x310038=>{const _0x3783d1=_0x3442e9;_0x310038&&logger[_0x3783d1(0x92)](_0x3783d1(0x83)+_0x49e49b);}),fs[_0x3442e9(0x90)](_0xfbb398+'/'+_0x5a2a31,_0x129708[_0x3442e9(0x79)],function(_0x2b1aef){const _0x5807bd=_0x3442e9;_0x2b1aef&&_0x467fdb[_0x5807bd(0x6d)](_0x21f4af,_0x2b1aef),_0x467fdb['pcvRR'](_0x3942c6,_0xfbb398+'/'+_0x5a2a31);}),_0xc5e101[_0x3442e9(0xe4)]();});});});}static['getTestFrameworkDetail'](){const _0x1c35f0=a58_0x5cf4d3;if(process[_0x1c35f0(0xae)][_0x1c35f0(0x117)])return JSON[_0x1c35f0(0x72)](process['env'][_0x1c35f0(0x117)]);return this[_0x1c35f0(0x109)];}static[a58_0x5cf4d3(0xac)](){const _0x556060=a58_0x5cf4d3;if(process[_0x556060(0xae)][_0x556060(0xda)])return JSON[_0x556060(0x72)](process[_0x556060(0xae)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x556060(0xe0)];}static[a58_0x5cf4d3(0xc4)](_0x2dd94c,_0x40534d){const _0x3033ff=a58_0x5cf4d3,_0x29d8f5={'GQfDy':_0x3033ff(0xd8),'gKGMH':function(_0x3d89ba,_0x13839c){return _0x3d89ba(_0x13839c);},'gbwdh':function(_0x40bee3,_0x444fcf){return _0x40bee3(_0x444fcf);},'AeDvG':function(_0x2ead59,_0x566af4){return _0x2ead59||_0x566af4;}},_0x35ccbe=_0x29d8f5[_0x3033ff(0x98)][_0x3033ff(0xea)]('|');let _0x50618d=0x0;while(!![]){switch(_0x35ccbe[_0x50618d++]){case'0':this[_0x3033ff(0x109)]={'name':_0x2dd94c,'version':{[_0x2dd94c]:_0x29d8f5[_0x3033ff(0x110)](getFrameworkVersion,_0x2dd94c)}};continue;case'1':this[_0x3033ff(0xe0)]={'name':_0x40534d,'version':_0x29d8f5['gbwdh'](getFrameworkVersion,_0x40534d)};continue;case'2':process[_0x3033ff(0xae)][_0x3033ff(0xda)]=JSON[_0x3033ff(0xc6)](this['automationFrameworkDetail']);continue;case'3':process[_0x3033ff(0xae)][_0x3033ff(0x117)]=JSON[_0x3033ff(0xc6)](this['testFrameworkDetail']);continue;case'4':_0x29d8f5[_0x3033ff(0xc8)](!_0x2dd94c,!_0x40534d)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x2dd94c+_0x3033ff(0xb0)+_0x40534d);continue;}break;}}static['getHookRegistryKey'](_0x159e0e,_0x46a410){return _0x159e0e+':'+_0x46a410;}static[a58_0x5cf4d3(0x10f)](){const _0x2fc4a2=a58_0x5cf4d3;return process[_0x2fc4a2(0xf3)]+':'+threadId;}static[a58_0x5cf4d3(0x75)](_0x4971a0){const _0x451414=a58_0x5cf4d3;if(_0x4971a0['testContextOptions']&&_0x4971a0['testContextOptions'][_0x451414(0xcd)])return!![];return![];}static['shouldSkipSessionStatus'](_0x4c0da7){const _0x7869e5=a58_0x5cf4d3;if(_0x4c0da7[_0x7869e5(0xbc)]&&_0x4c0da7[_0x7869e5(0xbc)][_0x7869e5(0x86)])return!![];return![];}static[a58_0x5cf4d3(0x9a)](_0x3c2895){const _0x56db59=a58_0x5cf4d3,_0x24f43b=new RegExp(TestFrameworkConstants[_0x56db59(0xe3)]);return _0x24f43b[_0x56db59(0x88)](_0x3c2895);}}module[a58_0x5cf4d3(0x106)]=CLIUtils;
1
+ const a58_0xe22d5a=a58_0x2f46;function a58_0x2f46(_0x4d96c3,_0x45fe2f){const _0x3db03f=a58_0x3db0();return a58_0x2f46=function(_0x2f4657,_0x56a129){_0x2f4657=_0x2f4657-0x10c;let _0x170e6d=_0x3db03f[_0x2f4657];return _0x170e6d;},a58_0x2f46(_0x4d96c3,_0x45fe2f);}(function(_0x5112cb,_0x193e59){const _0x4eaf31=a58_0x2f46,_0x415875=_0x5112cb();while(!![]){try{const _0x4e859d=-parseInt(_0x4eaf31(0x1a0))/0x1+parseInt(_0x4eaf31(0x17d))/0x2*(parseInt(_0x4eaf31(0x149))/0x3)+parseInt(_0x4eaf31(0x1b6))/0x4*(parseInt(_0x4eaf31(0x1b9))/0x5)+-parseInt(_0x4eaf31(0x15e))/0x6+-parseInt(_0x4eaf31(0x1af))/0x7+parseInt(_0x4eaf31(0x142))/0x8+-parseInt(_0x4eaf31(0x165))/0x9;if(_0x4e859d===_0x193e59)break;else _0x415875['push'](_0x415875['shift']());}catch(_0x4347cd){_0x415875['push'](_0x415875['shift']());}}}(a58_0x3db0,0xb4b60));function a58_0x3db0(){const _0x14b10f=['SHELL_EXECUTE_ERROR','cli_version','EzUcv','PuZsZ','.sock','GET','2|3|1|4|0','end','error','BROWSERSTACK_FILES_DIR','\x20version','DcxfP','12XZNlcY','YeXBE','ADFkj','entry','testFrameworkDetail','lISxV','DhqkP','wGFVn','DVKnV','cpUGJ','info','reduce','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request\x20','SDK_CLI_BIN_PATH','setFrameworkDetail','isDirectory','LBfCI','child_process','Error\x20while\x20reading\x20CLI\x20path:\x20','lDWZL','BtWWa','qUwoK','ULROP','binary-','warn','MYvYd','SDK_CLI_CHECK_UPDATE','matchHookRegex','Setting\x20required\x20permissions\x20to\x20','MJlbZ','../utils/constants','setupCliPath','existsSync','exports','pipe','142117oJVupM','yauzl','bSpZo','bjtjt','test','filter','chmod','Development\x20Cli\x20Path:\x20','getWritableDir','goqbq','testContextOptions','\x20already\x20exists','env','getCliDir','url','4034800brmQGE','KacuZ','wytRZ','getCLIParamsForDevEnv','FxHLp','bWUes','openReadStream','92bgJztz','RVKBA','get','279760DaCNrM','lazyEntries','Configuring\x20Cli\x20path.','BROWSERSTACK_CLI_ENV','JWkxE','cwd','isDevelopmentEnv','adDMA','mtime','cjaHm','format','response\x20','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','FMrLR','../../helpers/performance/performance-tester.js','version','QSPoR','getExistingCliPath','ELpYQ','unix:/tmp/sdk-platform-','IbnFc','getSdkVersion','timeout','cxGkA','fileName','once','vVYaY','getTestFrameworkDetail','worker_threads','readdirSync','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','PGmOV','map','shouldSkipSessionStatus','split','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','./framework/constants/testFrameworkConstants.js','YQVEG','parse','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','util','automationFrameworkDetail','data','KAxCy','AEDci','runShellCommand','path','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20',',\x20automationFramework=','basename','kNSYz','cli','LWEfI','node','../../helpers/test-observability/utils.js','CLIUtils','BROWSERSTACK_BINARY_URL','startsWith','join','downloaded_file.zip','close','syKWg','pkeoT','arch','trim','downloadFileStream','follow-redirects','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MNfpZ','Downloading\x20SDK\x20binary\x20from:\x20','PclpO','getAutomationFrameworkDetail','start','../../../package.json','nRzOy','7171264gNFBAc','getSdkLanguage','getHookRegistryKey','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','filePath','length','Folder\x20','629961IueCBU','tmpdir','./state/hookState.js','platform','kNMlS','xosFc','createWriteStream','skipSessionStatus','kqRpD','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','aeLSr','stringify','statSync','.browserstack','pQlIz','xBBQh','../../helpers/utilities','checkAndUpdateCli','pid','getCurrentInstanceName','skipSessionName','2546700iiIpnG','RhnXf','HOOK_REGEX','./instances/testFrameworkInstance.js','listen','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','UusZv','14040603KlHbXL','Resolved\x20binary\x20path:\x20','isFile','readEntry','development','debug','SDK_CLI_DOWNLOAD','./state/testFrameworkState.js','../../helpers/classLogger.js','oLcPt','requestToUpdateCLI','Failed\x20to\x20download\x20binary,\x20Exception:\x20'];a58_0x3db0=function(){return _0x14b10f;};return a58_0x3db0();}const fs=require('fs'),os=require('os'),url=require(a58_0xe22d5a(0x1ae)),path=require(a58_0xe22d5a(0x125)),{exec}=require(a58_0xe22d5a(0x18e)),{https}=require(a58_0xe22d5a(0x139)),yauzl=require(a58_0xe22d5a(0x1a1)),util=require(a58_0xe22d5a(0x11f)),{getFrameworkVersion}=require(a58_0xe22d5a(0x12d)),{threadId}=require(a58_0xe22d5a(0x113)),PerformanceTester=require(a58_0xe22d5a(0x1c7)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a58_0xe22d5a(0x159)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{BROWSERSTACK_API_URL,UPDATED_CLI_ENDPOINT}=require(a58_0xe22d5a(0x19b)),{createClassLogger}=require(a58_0xe22d5a(0x16d)),TestFrameworkInstance=require(a58_0xe22d5a(0x161)),HookState=require(a58_0xe22d5a(0x14b)),TestFrameworkState=require(a58_0xe22d5a(0x16c)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a58_0xe22d5a(0x11b)),logger=createClassLogger(a58_0xe22d5a(0x12e));class CLIUtils{[a58_0xe22d5a(0x120)]={};[a58_0xe22d5a(0x181)]={};static[a58_0xe22d5a(0x1bf)](){const _0x32b855=a58_0xe22d5a,_0x172bf4={};_0x172bf4[_0x32b855(0x13d)]=function(_0x375c80,_0x4e0c8f){return _0x375c80===_0x4e0c8f;},_0x172bf4[_0x32b855(0x116)]=_0x32b855(0x169);const _0x549ef5=_0x172bf4;return _0x549ef5[_0x32b855(0x13d)](process[_0x32b855(0x1ac)][_0x32b855(0x1bc)],_0x549ef5['PGmOV']);}static[a58_0xe22d5a(0x1b2)](){const _0x79ca7e=a58_0xe22d5a,_0x4e8271={};return _0x4e8271['id']=process[_0x79ca7e(0x1ac)][_0x79ca7e(0x1bc)],_0x4e8271[_0x79ca7e(0x162)]=_0x79ca7e(0x1cc)+process['env'][_0x79ca7e(0x1bc)]+_0x79ca7e(0x175),_0x4e8271;}static[a58_0xe22d5a(0x10c)](){const _0x49b5d8=a58_0xe22d5a,_0x5ed2f8={'LBfCI':function(_0x2bac2b,_0x1e2709){return _0x2bac2b(_0x1e2709);},'kBcnQ':_0x49b5d8(0x140)};return _0x5ed2f8[_0x49b5d8(0x18d)](require,_0x5ed2f8['kBcnQ'])[_0x49b5d8(0x1c8)];}static[a58_0xe22d5a(0x143)](){const _0xa51665=a58_0xe22d5a,_0x2da8be={};_0x2da8be[_0xa51665(0x134)]=_0xa51665(0x12c);const _0x13ecec=_0x2da8be;return _0x13ecec[_0xa51665(0x134)];}static async[a58_0xe22d5a(0x19c)](_0xc72e11){const _0x483c8d=a58_0xe22d5a,_0x58e918={'AEDci':_0x483c8d(0x1bb),'xosFc':function(_0x3c1912,_0x3fbb6f){return _0x3c1912(_0x3fbb6f);},'bSpZo':function(_0x26eb19,_0x40eda4){return _0x26eb19(_0x40eda4);},'bjtjt':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x483c8d(0x16a)](_0x58e918[_0x483c8d(0x123)]);const _0xaf1b94=process[_0x483c8d(0x1ac)][_0x483c8d(0x18a)];if(!_0x58e918[_0x483c8d(0x14e)](isNullOrEmpty,_0xaf1b94))return logger[_0x483c8d(0x16a)](_0x483c8d(0x1a7)+_0xaf1b94),_0xaf1b94;try{const _0x51831a=this[_0x483c8d(0x1ad)]();if(_0x58e918[_0x483c8d(0x1a2)](isNullOrEmpty,_0x51831a))throw new Error(_0x58e918[_0x483c8d(0x1a3)]);const _0x5e6c87=this[_0x483c8d(0x1ca)](_0x51831a),_0x2a5b31=await this[_0x483c8d(0x15a)](_0x5e6c87,_0x51831a,_0xc72e11);return logger['debug'](_0x483c8d(0x166)+_0x2a5b31),_0x2a5b31;}catch(_0x4ff1c1){logger['debug'](_0x483c8d(0x126)+util['format'](_0x4ff1c1));}return null;}static async[a58_0xe22d5a(0x15a)](_0x569eab,_0x118de2,_0x39aba9){const _0x5616a9=a58_0xe22d5a,_0x2b1a54={'QSPoR':function(_0x274e93){return _0x274e93();},'bWUes':function(_0x3cecd1,_0x117c09){return _0x3cecd1(_0x117c09);},'ELpYQ':function(_0x3fc529,_0x2cf1fd,_0x50a167){return _0x3fc529(_0x2cf1fd,_0x50a167);},'DVKnV':'data','MJlbZ':_0x5616a9(0x1ae),'MNfpZ':function(_0x1f9aa2,_0x51eaec,_0x335aec){return _0x1f9aa2(_0x51eaec,_0x335aec);}};PerformanceTester[_0x5616a9(0x13f)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x569eab);const _0x15b9e4=_0x2b1a54[_0x5616a9(0x1c9)](getHostInfo),_0x2cf2ee={'sdk_version':CLIUtils[_0x5616a9(0x10c)](),'os':_0x15b9e4[_0x5616a9(0x14c)],'os_arch':_0x15b9e4[_0x5616a9(0x136)],'cli_version':'0','sdk_language':this[_0x5616a9(0x143)]()};!_0x2b1a54[_0x5616a9(0x1b4)](isNullOrEmpty,_0x569eab)&&(_0x2cf2ee[_0x5616a9(0x172)]=await this[_0x5616a9(0x124)](_0x569eab+_0x5616a9(0x17b)));const _0x3cb6f7=await this[_0x5616a9(0x16f)](_0x2cf2ee,_0x39aba9);process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]&&(logger[_0x5616a9(0x187)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]),_0x3cb6f7[_0x5616a9(0x121)][_0x5616a9(0x1ae)]=process[_0x5616a9(0x1ac)][_0x5616a9(0x12f)]);if(_0x2b1a54[_0x5616a9(0x1cb)](nestedKeyValue,_0x3cb6f7,[_0x2b1a54[_0x5616a9(0x185)],_0x2b1a54['MJlbZ']])){logger[_0x5616a9(0x16a)](_0x5616a9(0x1c5)+_0x2cf2ee['cli_version']);const _0x1dcd51=await this['downloadLatestBinary'](_0x2b1a54[_0x5616a9(0x13b)](nestedKeyValue,_0x3cb6f7,[_0x2b1a54[_0x5616a9(0x185)],_0x2b1a54[_0x5616a9(0x19a)]]),_0x118de2);return PerformanceTester[_0x5616a9(0x178)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1dcd51;}return PerformanceTester[_0x5616a9(0x178)](PerformanceEvents[_0x5616a9(0x197)]),_0x569eab;}static[a58_0xe22d5a(0x1ad)](){const _0xe0f88a=a58_0xe22d5a,_0x2b3df8={'RVKBA':function(_0x4fe4f0,_0x5ab1e3){return _0x4fe4f0(_0x5ab1e3);},'nxMOA':_0xe0f88a(0x11a),'kNSYz':_0xe0f88a(0x12a)},_0x4d4586=this[_0xe0f88a(0x1a8)]();try{if(_0x2b3df8[_0xe0f88a(0x1b7)](isNullOrEmpty,_0x4d4586))throw new Error(_0x2b3df8['nxMOA']);const _0x18ba36=path[_0xe0f88a(0x131)](_0x4d4586,_0x2b3df8[_0xe0f88a(0x129)]);return!fs[_0xe0f88a(0x19d)](_0x18ba36)&&_0x2b3df8[_0xe0f88a(0x1b7)](createDir,_0x18ba36),_0x18ba36;}catch(_0x18984e){logger[_0xe0f88a(0x16a)](_0xe0f88a(0x152)+util[_0xe0f88a(0x1c3)](_0x18984e));}}static[a58_0xe22d5a(0x1a8)](){const _0x55115b=a58_0xe22d5a,_0x523f93={'qUwoK':_0x55115b(0x156),'DcxfP':function(_0x216b21,_0x3ea934){return _0x216b21(_0x3ea934);},'lDWZL':function(_0x4cc22d,_0x46862c){return _0x4cc22d(_0x46862c);},'FpKnL':function(_0x2552d4,_0x4f3349){return _0x2552d4(_0x4f3349);},'lISxV':function(_0x29f536,_0x586550){return _0x29f536(_0x586550);}},_0x111488=[process['env'][_0x55115b(0x17a)],path[_0x55115b(0x131)](os['homedir'](),_0x523f93[_0x55115b(0x192)]),path['join'](os[_0x55115b(0x14a)](),_0x523f93[_0x55115b(0x192)])];for(const _0x5e0360 of _0x111488){if(_0x523f93['DcxfP'](isNullOrEmpty,_0x5e0360))continue;try{if(fs['existsSync'](_0x5e0360)){logger[_0x55115b(0x16a)](_0x55115b(0x148)+_0x5e0360+_0x55115b(0x1ab));if(!_0x523f93[_0x55115b(0x17c)](isModifiable,_0x5e0360)){logger['debug'](_0x55115b(0x199)+_0x5e0360);const _0x3a5fb6=_0x523f93[_0x55115b(0x17c)](setReadWriteExecuteAccess,_0x5e0360);if(!_0x523f93[_0x55115b(0x190)](isTrue,_0x3a5fb6)){logger[_0x55115b(0x195)](_0x55115b(0x13a)+_0x5e0360);continue;}}}else{logger[_0x55115b(0x16a)]('Folder\x20does\x20not\x20exist:\x20'+_0x5e0360),_0x523f93['FpKnL'](createDir,_0x5e0360),logger['debug'](_0x55115b(0x199)+_0x5e0360);const _0x12f9b3=_0x523f93[_0x55115b(0x17c)](setReadWriteExecuteAccess,_0x5e0360);!_0x523f93[_0x55115b(0x182)](isTrue,_0x12f9b3)&&logger[_0x55115b(0x195)](_0x55115b(0x13a)+_0x5e0360);}return _0x5e0360;}catch(_0x36cd78){logger['error'](_0x55115b(0x115)+util[_0x55115b(0x1c3)](_0x36cd78));}}return null;}static[a58_0xe22d5a(0x1ca)](_0x3ae585){const _0x4bb5a0=a58_0xe22d5a,_0x4703dd={};_0x4703dd[_0x4bb5a0(0x12b)]=function(_0x5fc807,_0x11cdd0){return _0x5fc807>_0x11cdd0;},_0x4703dd['xBBQh']=function(_0x41d430,_0x3d183d){return _0x41d430>_0x3d183d;};const _0x2a8ab4=_0x4703dd;try{if(!fs[_0x4bb5a0(0x19d)](_0x3ae585)||!fs[_0x4bb5a0(0x155)](_0x3ae585)[_0x4bb5a0(0x18c)]())return'';const _0x26922e=fs[_0x4bb5a0(0x114)](_0x3ae585)[_0x4bb5a0(0x117)](_0x56ea7b=>path[_0x4bb5a0(0x131)](_0x3ae585,_0x56ea7b))[_0x4bb5a0(0x1a5)](_0x505c36=>fs[_0x4bb5a0(0x155)](_0x505c36)[_0x4bb5a0(0x167)]()&&path[_0x4bb5a0(0x128)](_0x505c36)[_0x4bb5a0(0x130)](_0x4bb5a0(0x194)));if(_0x2a8ab4[_0x4bb5a0(0x158)](_0x26922e[_0x4bb5a0(0x147)],0x0)){const _0x48caf1=_0x26922e[_0x4bb5a0(0x117)](_0x1b0572=>({'filePath':_0x1b0572,'mtime':fs[_0x4bb5a0(0x155)](_0x1b0572)[_0x4bb5a0(0x1c1)]}))[_0x4bb5a0(0x188)]((_0x275858,_0x310382)=>{const _0x13141c=_0x4bb5a0;if(!_0x275858||!_0x275858[_0x13141c(0x1c1)])return _0x310382;if(_0x2a8ab4[_0x13141c(0x12b)](_0x310382[_0x13141c(0x1c1)],_0x275858[_0x13141c(0x1c1)]))return _0x310382;return _0x275858;},{});return _0x48caf1?_0x48caf1[_0x4bb5a0(0x146)]:'';}return'';}catch(_0x4e4347){return logger['error'](_0x4bb5a0(0x18f)+util[_0x4bb5a0(0x1c3)](_0x4e4347)),'';}}static [a58_0xe22d5a(0x16f)]=async(_0x32202a,_0x210ac7)=>{const _0x4c3f51=a58_0xe22d5a,_0x5900be={'PuZsZ':function(_0x59a1d0,_0x469f52,_0x207183,_0x2eef2b,_0x19c857,_0x5b3b43){return _0x59a1d0(_0x469f52,_0x207183,_0x2eef2b,_0x19c857,_0x5b3b43);},'AFwtR':_0x4c3f51(0x176)},_0xc3b4d4={};_0xc3b4d4['qs']=_0x32202a;const _0x32006d=await _0x5900be[_0x4c3f51(0x174)](nodeRequest,_0x5900be['AFwtR'],UPDATED_CLI_ENDPOINT,_0xc3b4d4,_0x210ac7,BROWSERSTACK_API_URL);return logger[_0x4c3f51(0x16a)](_0x4c3f51(0x1c4)+JSON['stringify'](_0x32006d)),_0x32006d;};static[a58_0xe22d5a(0x124)](_0x59c85b,_0x2adb34=''){const _0xea2840=a58_0xe22d5a,_0x9ab410={'nRzOy':function(_0x4adc3e,_0x9782d9){return _0x4adc3e(_0x9782d9);},'pkeoT':_0xea2840(0x171),'wytRZ':function(_0x2a1f18,_0x27cd0d,_0x3d565e,_0x4c7c1f){return _0x2a1f18(_0x27cd0d,_0x3d565e,_0x4c7c1f);},'IlRCi':_0xea2840(0x179)};return new Promise((_0x3e5852,_0x141c74)=>{const _0x39f95c=_0xea2840,_0x3c819b={'LXDTU':function(_0x18e993,_0x2fcc21){const _0x35d3b1=a58_0x2f46;return _0x9ab410[_0x35d3b1(0x141)](_0x18e993,_0x2fcc21);},'AdCXk':_0x9ab410[_0x39f95c(0x135)]},_0x2278e7={};_0x2278e7[_0x39f95c(0x1be)]=_0x2adb34,_0x2278e7[_0x39f95c(0x10d)]=0x1388;const _0x1f5761=_0x9ab410[_0x39f95c(0x1b1)](exec,_0x59c85b,_0x2278e7,(_0x39a322,_0x2a5389,_0x58ce9a)=>{const _0x2e45e1=_0x39f95c;_0x39a322?_0x9ab410[_0x2e45e1(0x141)](_0x3e5852,_0x58ce9a['trim']()||_0x9ab410['pkeoT']):_0x9ab410['nRzOy'](_0x3e5852,_0x2a5389[_0x2e45e1(0x137)]());});_0x1f5761['on'](_0x9ab410['IlRCi'],()=>{_0x3c819b['LXDTU'](_0x3e5852,_0x3c819b['AdCXk']);});});}static ['downloadLatestBinary']=async(_0x15f08e,_0x1e9ae3)=>{const _0x747866=a58_0xe22d5a,_0x13869e={'goqbq':function(_0x5c8706,_0x4ba5a1){return _0x5c8706(_0x4ba5a1);},'YQVEG':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response\x20%s','DhqkP':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file\x20%s','KacuZ':_0x747866(0x179),'ULROP':_0x747866(0x132)};PerformanceTester[_0x747866(0x13f)](PerformanceEvents[_0x747866(0x16b)]),logger[_0x747866(0x16a)](_0x747866(0x13c)+_0x15f08e);try{const _0x47daf6=url['parse'](_0x15f08e),_0xb5be17=path[_0x747866(0x131)](_0x1e9ae3,_0x13869e[_0x747866(0x193)]),_0x111204=fs[_0x747866(0x14f)](_0xb5be17);return new Promise((_0x5adcdb,_0x59d073)=>{const _0x17e9c0=_0x747866,_0x446111={'cjaHm':_0x13869e[_0x17e9c0(0x11c)],'aeLSr':function(_0x4416b0,_0x3e4df0){const _0x4a28cd=_0x17e9c0;return _0x13869e[_0x4a28cd(0x1a9)](_0x4416b0,_0x3e4df0);},'wGFVn':_0x13869e[_0x17e9c0(0x183)],'EzUcv':_0x13869e[_0x17e9c0(0x1b0)]};https[_0x17e9c0(0x1b8)](_0x47daf6,function(_0x3a4117){const _0x487cab=_0x17e9c0,_0x44867a={'ADFkj':_0x446111[_0x487cab(0x184)],'FxHLp':function(_0x144cb1,_0xa48482){const _0xa143be=_0x487cab;return _0x446111[_0xa143be(0x153)](_0x144cb1,_0xa48482);}},_0x4f67ae=null;_0x3a4117['pipe'](_0x111204),_0x3a4117['on'](_0x446111[_0x487cab(0x173)],function(_0x4be5e8){const _0x2ffcd4=_0x487cab;logger[_0x2ffcd4(0x179)](util[_0x2ffcd4(0x1c3)](_0x446111[_0x2ffcd4(0x1c2)],_0x4be5e8)),PerformanceTester[_0x2ffcd4(0x178)](PerformanceEvents[_0x2ffcd4(0x16b)],![],util[_0x2ffcd4(0x1c3)](_0x4be5e8)),_0x446111[_0x2ffcd4(0x153)](_0x59d073,_0x4be5e8);}),_0x111204['on'](_0x446111[_0x487cab(0x173)],function(_0x493855){const _0x423cfc=_0x487cab;logger['error'](util[_0x423cfc(0x1c3)](_0x44867a[_0x423cfc(0x17f)],_0x493855)),PerformanceTester[_0x423cfc(0x178)](PerformanceEvents[_0x423cfc(0x16b)],![],util[_0x423cfc(0x1c3)](_0x493855)),_0x44867a[_0x423cfc(0x1b3)](_0x59d073,_0x493855);}),CLIUtils[_0x487cab(0x138)](_0x111204,_0x4f67ae,_0xb5be17,_0x1e9ae3,_0x5adcdb,_0x59d073),PerformanceTester[_0x487cab(0x178)](PerformanceEvents[_0x487cab(0x16b)]);})['on'](_0x13869e[_0x17e9c0(0x1b0)],function(_0x1942a6){const _0x13af64=_0x17e9c0;logger[_0x13af64(0x179)](_0x13af64(0x189)+util[_0x13af64(0x1c3)](_0x1942a6)),PerformanceTester[_0x13af64(0x178)](PerformanceEvents[_0x13af64(0x16b)],![],util['format'](_0x1942a6)),_0x13869e[_0x13af64(0x1a9)](_0x59d073,_0x1942a6);});});}catch(_0x36fff2){PerformanceTester[_0x747866(0x178)](PerformanceEvents[_0x747866(0x16b)],![],util[_0x747866(0x1c3)](_0x36fff2)),logger[_0x747866(0x16a)](_0x747866(0x170)+util[_0x747866(0x1c3)](_0x36fff2));}};static[a58_0xe22d5a(0x138)](_0x1cf959,_0x470874,_0x48b4b2,_0x1c2490,_0x120a8f,_0x287c03){const _0xa43dbf=a58_0xe22d5a,_0xe1fdbe={'oLcPt':function(_0x1dde8c,_0x2e10f6){return _0x1dde8c(_0x2e10f6);},'kqRpD':'0755','RhnXf':function(_0x4b9b59,_0x316e4a){return _0x4b9b59(_0x316e4a);},'UusZv':_0xa43dbf(0x180),'adDMA':_0xa43dbf(0x179),'MYvYd':_0xa43dbf(0x178),'KAxCy':function(_0xb3535d,_0x4e501c){return _0xb3535d(_0x4e501c);},'IbnFc':function(_0xbb63d7,_0xac276c){return _0xbb63d7===_0xac276c;},'SCXns':_0xa43dbf(0x133)};_0x1cf959['on'](_0xe1fdbe['SCXns'],function(){const _0x17f45e=_0xa43dbf,_0x2a87d6={'kNMlS':function(_0x69e13b,_0x35e736){const _0x5a83e6=a58_0x2f46;return _0xe1fdbe[_0x5a83e6(0x122)](_0x69e13b,_0x35e736);},'FMrLR':_0xe1fdbe[_0x17f45e(0x196)],'TUAFZ':function(_0x1e4fd0,_0xa36331){const _0x4b84c0=_0x17f45e;return _0xe1fdbe[_0x4b84c0(0x1cd)](_0x1e4fd0,_0xa36331);},'YeXBE':function(_0x3be72b,_0x100497){const _0x270e69=_0x17f45e;return _0xe1fdbe[_0x270e69(0x122)](_0x3be72b,_0x100497);}},_0x3d0de9={};_0x3d0de9[_0x17f45e(0x1ba)]=!![],yauzl['open'](_0x48b4b2,_0x3d0de9,function(_0x5357b8,_0x360190){const _0x28d103=_0x17f45e,_0x30300e={'pQlIz':function(_0x530730,_0xb057fe){const _0x630f90=a58_0x2f46;return _0xe1fdbe[_0x630f90(0x16e)](_0x530730,_0xb057fe);},'vVYaY':_0xe1fdbe[_0x28d103(0x151)]};_0x5357b8&&_0xe1fdbe[_0x28d103(0x15f)](_0x287c03,_0x5357b8),_0x360190[_0x28d103(0x168)](),_0x360190['on'](_0xe1fdbe[_0x28d103(0x164)],_0x4278a4=>{const _0xb0da9a=_0x28d103,_0x403c1b={'cxGkA':function(_0x513edf,_0x214d73){const _0x27d541=a58_0x2f46;return _0x2a87d6[_0x27d541(0x14d)](_0x513edf,_0x214d73);},'cpUGJ':_0x2a87d6[_0xb0da9a(0x1c6)]};!_0x470874&&(_0x470874=_0x4278a4[_0xb0da9a(0x10f)]);if(/\/$/['test'](_0x4278a4[_0xb0da9a(0x10f)]))_0x360190[_0xb0da9a(0x168)]();else{const _0x555145=fs[_0xb0da9a(0x14f)](path[_0xb0da9a(0x131)](_0x1c2490,_0x4278a4['fileName']));_0x360190[_0xb0da9a(0x1b5)](_0x4278a4,function(_0x1ebace,_0x27881c){const _0x552f6f=_0xb0da9a;_0x1ebace&&_0x403c1b[_0x552f6f(0x10e)](_0x287c03,_0x5357b8),_0x27881c['on'](_0x403c1b[_0x552f6f(0x186)],function(){const _0x48540d=_0x552f6f;_0x555145[_0x48540d(0x133)](),_0x360190[_0x48540d(0x168)]();}),_0x27881c[_0x552f6f(0x19f)](_0x555145);}),_0x2a87d6['TUAFZ'](_0x4278a4[_0xb0da9a(0x10f)],_0x470874)&&_0x360190[_0xb0da9a(0x133)]();}}),_0x360190['on'](_0xe1fdbe[_0x28d103(0x1c0)],_0x8aa4c0=>{const _0x693b9f=_0x28d103;_0x2a87d6[_0x693b9f(0x17e)](_0x287c03,_0x8aa4c0);}),_0x360190[_0x28d103(0x110)](_0xe1fdbe[_0x28d103(0x196)],()=>{const _0x19e53c=_0x28d103;fs['unlink'](_0x48b4b2,_0x13a1cf=>{const _0x143cfd=a58_0x2f46;_0x13a1cf&&logger[_0x143cfd(0x195)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x48b4b2);}),fs[_0x19e53c(0x1a6)](_0x1c2490+'/'+_0x470874,_0x30300e[_0x19e53c(0x111)],function(_0x32a53d){const _0x2f4178=_0x19e53c;_0x32a53d&&_0x30300e[_0x2f4178(0x157)](_0x287c03,_0x32a53d),_0x30300e[_0x2f4178(0x157)](_0x120a8f,_0x1c2490+'/'+_0x470874);}),_0x360190[_0x19e53c(0x133)]();});});});}static[a58_0xe22d5a(0x112)](){const _0x104285=a58_0xe22d5a;if(process[_0x104285(0x1ac)][_0x104285(0x11e)])return JSON[_0x104285(0x11d)](process[_0x104285(0x1ac)][_0x104285(0x11e)]);return this[_0x104285(0x181)];}static[a58_0xe22d5a(0x13e)](){const _0x178a6b=a58_0xe22d5a;if(process[_0x178a6b(0x1ac)][_0x178a6b(0x163)])return JSON[_0x178a6b(0x11d)](process[_0x178a6b(0x1ac)][_0x178a6b(0x163)]);return this[_0x178a6b(0x120)];}static[a58_0xe22d5a(0x18b)](_0x359472,_0x32ae06){const _0x2e6841=a58_0xe22d5a,_0x404b10={'BtWWa':_0x2e6841(0x177),'UmFAO':function(_0x29a468,_0x1e8966){return _0x29a468(_0x1e8966);},'JWkxE':function(_0x43d053,_0x8033b5){return _0x43d053||_0x8033b5;}},_0x2eb86f=_0x404b10[_0x2e6841(0x191)][_0x2e6841(0x119)]('|');let _0x7096ee=0x0;while(!![]){switch(_0x2eb86f[_0x7096ee++]){case'0':process[_0x2e6841(0x1ac)][_0x2e6841(0x11e)]=JSON[_0x2e6841(0x154)](this[_0x2e6841(0x181)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x32ae06,'version':_0x404b10['UmFAO'](getFrameworkVersion,_0x32ae06)};continue;case'2':_0x404b10[_0x2e6841(0x1bd)](!_0x359472,!_0x32ae06)&&logger[_0x2e6841(0x16a)](_0x2e6841(0x145)+_0x359472+_0x2e6841(0x127)+_0x32ae06);continue;case'3':this[_0x2e6841(0x181)]={'name':_0x359472,'version':{[_0x359472]:_0x404b10['UmFAO'](getFrameworkVersion,_0x359472)}};continue;case'4':process[_0x2e6841(0x1ac)][_0x2e6841(0x163)]=JSON['stringify'](this[_0x2e6841(0x120)]);continue;}break;}}static[a58_0xe22d5a(0x144)](_0x4eb12b,_0x54cdf0){return _0x4eb12b+':'+_0x54cdf0;}static[a58_0xe22d5a(0x15c)](){const _0x253ff7=a58_0xe22d5a;return process[_0x253ff7(0x15b)]+':'+threadId;}static['shouldSkipSessionName'](_0x28da46){const _0x50d0bc=a58_0xe22d5a;if(_0x28da46[_0x50d0bc(0x1aa)]&&_0x28da46[_0x50d0bc(0x1aa)][_0x50d0bc(0x15d)])return!![];return![];}static[a58_0xe22d5a(0x118)](_0x266b83){const _0x39c50b=a58_0xe22d5a;if(_0x266b83[_0x39c50b(0x1aa)]&&_0x266b83[_0x39c50b(0x1aa)][_0x39c50b(0x150)])return!![];return![];}static[a58_0xe22d5a(0x198)](_0x474026){const _0xdebd96=a58_0xe22d5a,_0xf40a3f=new RegExp(TestFrameworkConstants[_0xdebd96(0x160)]);return _0xf40a3f[_0xdebd96(0x1a4)](_0x474026);}}module[a58_0xe22d5a(0x19e)]=CLIUtils;