browserstack-node-sdk 1.50.0 → 1.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x2fec96=a120_0x29db;(function(_0x2ca988,_0x4ea534){const _0xb440b2=a120_0x29db,_0x215c4f=_0x2ca988();while(!![]){try{const _0x5c254c=-parseInt(_0xb440b2(0x221))/0x1+-parseInt(_0xb440b2(0x1c0))/0x2+-parseInt(_0xb440b2(0x1be))/0x3+parseInt(_0xb440b2(0x1d1))/0x4+parseInt(_0xb440b2(0x205))/0x5*(parseInt(_0xb440b2(0x1e9))/0x6)+parseInt(_0xb440b2(0x1e7))/0x7+-parseInt(_0xb440b2(0x237))/0x8*(parseInt(_0xb440b2(0x21f))/0x9);if(_0x5c254c===_0x4ea534)break;else _0x215c4f['push'](_0x215c4f['shift']());}catch(_0x2718cd){_0x215c4f['push'](_0x215c4f['shift']());}}}(a120_0x4986,0x3663b));function a120_0x29db(_0x4e7e66,_0x2bc2a8){const _0x4986e0=a120_0x4986();return a120_0x29db=function(_0x29db74,_0x32af22){_0x29db74=_0x29db74-0x1ba;let _0x38a672=_0x4986e0[_0x29db74];return _0x38a672;},a120_0x29db(_0x4e7e66,_0x2bc2a8);}const a120_0x4301b4={};a120_0x4301b4[a120_0x2fec96(0x1bc)]=a120_0x2fec96(0x1e0),a120_0x4301b4[a120_0x2fec96(0x1e4)]='sdk:cleanup',a120_0x4301b4[a120_0x2fec96(0x235)]='sdk:pre-test',a120_0x4301b4[a120_0x2fec96(0x220)]='sdk:test',a120_0x4301b4[a120_0x2fec96(0x1f1)]=a120_0x2fec96(0x1cb),a120_0x4301b4[a120_0x2fec96(0x1c4)]='sdk:hook',a120_0x4301b4['SDK_DRIVER']=a120_0x2fec96(0x209),a120_0x4301b4[a120_0x2fec96(0x211)]='sdk:a11y',a120_0x4301b4[a120_0x2fec96(0x1ba)]=a120_0x2fec96(0x1c2),a120_0x4301b4[a120_0x2fec96(0x20a)]='sdk:auto-capture',a120_0x4301b4['SDK_PROXY_SETUP']=a120_0x2fec96(0x240),a120_0x4301b4['SDK_TESTHUB']=a120_0x2fec96(0x20f),a120_0x4301b4[a120_0x2fec96(0x1fd)]=a120_0x2fec96(0x1f4),a120_0x4301b4[a120_0x2fec96(0x1c3)]=a120_0x2fec96(0x232),a120_0x4301b4[a120_0x2fec96(0x224)]=a120_0x2fec96(0x1e2),a120_0x4301b4[a120_0x2fec96(0x226)]=a120_0x2fec96(0x207),a120_0x4301b4['SDK_PRE_INITIALIZE']=a120_0x2fec96(0x20b),a120_0x4301b4[a120_0x2fec96(0x1f3)]=a120_0x2fec96(0x23a),a120_0x4301b4['SDK_CLI_START']=a120_0x2fec96(0x229),a120_0x4301b4[a120_0x2fec96(0x22c)]='sdk:cli:download',a120_0x4301b4[a120_0x2fec96(0x219)]='sdk:cli:check-update',a120_0x4301b4['SDK_CLI_ON_BOOTSTRAP']='sdk:cli:on-bootstrap',a120_0x4301b4[a120_0x2fec96(0x1f7)]=a120_0x2fec96(0x1e5),a120_0x4301b4[a120_0x2fec96(0x1cc)]=a120_0x2fec96(0x1ce),a120_0x4301b4['SDK_START_BIN_SESSION']=a120_0x2fec96(0x1c9),a120_0x4301b4['SDK_CONNECT_BIN_SESSION']=a120_0x2fec96(0x1f0),a120_0x4301b4[a120_0x2fec96(0x1eb)]=a120_0x2fec96(0x233),a120_0x4301b4[a120_0x2fec96(0x1d7)]='sdk:findNearestHub',a120_0x4301b4[a120_0x2fec96(0x1fc)]=a120_0x2fec96(0x201),a120_0x4301b4[a120_0x2fec96(0x1ff)]='sdk:automationFrameworkStart',a120_0x4301b4[a120_0x2fec96(0x1d8)]=a120_0x2fec96(0x1c5),a120_0x4301b4[a120_0x2fec96(0x22a)]=a120_0x2fec96(0x1fe),a120_0x4301b4[a120_0x2fec96(0x21c)]=a120_0x2fec96(0x21d),a120_0x4301b4[a120_0x2fec96(0x215)]='sdk:aiSelfHealGetResult',a120_0x4301b4[a120_0x2fec96(0x1d0)]=a120_0x2fec96(0x1db),a120_0x4301b4['SDK_TEST_SESSION_EVENT']=a120_0x2fec96(0x1e1),a120_0x4301b4['SDK_CLI_LOG_CREATED_EVENT']=a120_0x2fec96(0x222),a120_0x4301b4[a120_0x2fec96(0x230)]=a120_0x2fec96(0x1dc),a120_0x4301b4[a120_0x2fec96(0x1da)]='sdk:automationFrameworkStop',a120_0x4301b4['SDK_ON_STOP']=a120_0x2fec96(0x1e3);const SDK_EVENTS=a120_0x4301b4,a120_0x29ccfd={};a120_0x29ccfd[a120_0x2fec96(0x23f)]=SDK_EVENTS,a120_0x29ccfd[a120_0x2fec96(0x1d9)]={},a120_0x29ccfd[a120_0x2fec96(0x203)]={},a120_0x29ccfd[a120_0x2fec96(0x1dd)]={},a120_0x29ccfd[a120_0x2fec96(0x23c)]={},a120_0x29ccfd[a120_0x2fec96(0x21e)]={},a120_0x29ccfd[a120_0x2fec96(0x1ca)]={},a120_0x29ccfd[a120_0x2fec96(0x1f2)]={},a120_0x29ccfd[a120_0x2fec96(0x22b)]={},a120_0x29ccfd[a120_0x2fec96(0x1c1)]={},a120_0x29ccfd[a120_0x2fec96(0x1d9)]['START']=SDK_EVENTS[a120_0x2fec96(0x1df)]+a120_0x2fec96(0x214),a120_0x29ccfd[a120_0x2fec96(0x1d9)][a120_0x2fec96(0x1de)]=SDK_EVENTS[a120_0x2fec96(0x1df)]+a120_0x2fec96(0x1f8),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x21b)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+a120_0x2fec96(0x1d4),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x236)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x2fec96(0x216),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x1d2)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x2fec96(0x1ec),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x23e)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x2fec96(0x1c7),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x1f6)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+a120_0x2fec96(0x238),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x1fa)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x2fec96(0x20d),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x223)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+a120_0x2fec96(0x1fb),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x213)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+a120_0x2fec96(0x239),a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x1bd)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+':idle-timeout',a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x20c)]=SDK_EVENTS['SDK_AUTOMATE']+':ci-artifacts',a120_0x29ccfd[a120_0x2fec96(0x203)][a120_0x2fec96(0x210)]=SDK_EVENTS[a120_0x2fec96(0x1fd)]+a120_0x2fec96(0x1bf),a120_0x29ccfd[a120_0x2fec96(0x1dd)][a120_0x2fec96(0x1e6)]=SDK_EVENTS[a120_0x2fec96(0x211)]+a120_0x2fec96(0x204),a120_0x29ccfd[a120_0x2fec96(0x1dd)]['SAVE_RESULTS']=SDK_EVENTS[a120_0x2fec96(0x211)]+a120_0x2fec96(0x218),a120_0x29ccfd[a120_0x2fec96(0x1dd)][a120_0x2fec96(0x23b)]=SDK_EVENTS[a120_0x2fec96(0x211)]+':get-accessibility-results',a120_0x29ccfd[a120_0x2fec96(0x1dd)][a120_0x2fec96(0x1f9)]=SDK_EVENTS[a120_0x2fec96(0x211)]+':get-accessibility-results-summary',a120_0x29ccfd[a120_0x2fec96(0x23c)][a120_0x2fec96(0x217)]=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x228),a120_0x29ccfd[a120_0x2fec96(0x23c)]['SCREENSHOT']=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x1f5),a120_0x29ccfd[a120_0x2fec96(0x23c)]['START']=SDK_EVENTS[a120_0x2fec96(0x226)]+':start',a120_0x29ccfd[a120_0x2fec96(0x23c)][a120_0x2fec96(0x1de)]=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x1f8),a120_0x29ccfd[a120_0x2fec96(0x23c)]['AUTO_CAPTURE']=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x1cd),a120_0x29ccfd[a120_0x2fec96(0x23c)]['SNAPSHOT']=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x1c8),a120_0x29ccfd[a120_0x2fec96(0x23c)][a120_0x2fec96(0x1ee)]=SDK_EVENTS[a120_0x2fec96(0x226)]+a120_0x2fec96(0x20e),a120_0x29ccfd[a120_0x2fec96(0x21e)][a120_0x2fec96(0x1e8)]=SDK_EVENTS[a120_0x2fec96(0x1ba)]+':sync',a120_0x29ccfd[a120_0x2fec96(0x21e)][a120_0x2fec96(0x227)]=SDK_EVENTS['SDK_O11Y']+a120_0x2fec96(0x202),a120_0x29ccfd[a120_0x2fec96(0x21e)][a120_0x2fec96(0x210)]=SDK_EVENTS[a120_0x2fec96(0x1ba)]+':print-buildlink',a120_0x29ccfd[a120_0x2fec96(0x1ca)][a120_0x2fec96(0x231)]=SDK_EVENTS['SDK_HOOK']+a120_0x2fec96(0x22e),a120_0x29ccfd[a120_0x2fec96(0x1ca)][a120_0x2fec96(0x1d5)]=SDK_EVENTS[a120_0x2fec96(0x1c4)]+a120_0x2fec96(0x200),a120_0x29ccfd[a120_0x2fec96(0x1ca)][a120_0x2fec96(0x22f)]=SDK_EVENTS['SDK_HOOK']+a120_0x2fec96(0x1ea),a120_0x29ccfd[a120_0x2fec96(0x1ca)]['BEFORE_ALL']=SDK_EVENTS['SDK_HOOK']+a120_0x2fec96(0x1d3),a120_0x29ccfd[a120_0x2fec96(0x1ca)][a120_0x2fec96(0x22d)]=SDK_EVENTS[a120_0x2fec96(0x1c4)]+a120_0x2fec96(0x241),a120_0x29ccfd[a120_0x2fec96(0x1ca)][a120_0x2fec96(0x1bb)]=SDK_EVENTS['SDK_HOOK']+a120_0x2fec96(0x1d6),a120_0x29ccfd[a120_0x2fec96(0x1f2)]['HUB_MANAGEMENT']=SDK_EVENTS['SDK_TURBOSCALE']+a120_0x2fec96(0x216),a120_0x29ccfd[a120_0x2fec96(0x1f2)][a120_0x2fec96(0x210)]=SDK_EVENTS[a120_0x2fec96(0x224)]+a120_0x2fec96(0x1bf),a120_0x29ccfd[a120_0x2fec96(0x22b)]['APP_UPLOAD']=SDK_EVENTS[a120_0x2fec96(0x1c3)]+a120_0x2fec96(0x1ef),a120_0x29ccfd[a120_0x2fec96(0x1c1)][a120_0x2fec96(0x212)]=SDK_EVENTS['SDK_DRIVER']+a120_0x2fec96(0x1cf),a120_0x29ccfd[a120_0x2fec96(0x1c1)][a120_0x2fec96(0x1ed)]=SDK_EVENTS[a120_0x2fec96(0x225)]+a120_0x2fec96(0x208),a120_0x29ccfd[a120_0x2fec96(0x1c1)][a120_0x2fec96(0x23d)]=SDK_EVENTS['SDK_DRIVER']+a120_0x2fec96(0x1c6),a120_0x29ccfd[a120_0x2fec96(0x1c1)][a120_0x2fec96(0x21a)]=SDK_EVENTS['SDK_DRIVER']+a120_0x2fec96(0x206),module[a120_0x2fec96(0x234)]=a120_0x29ccfd;function a120_0x4986(){const _0x527ebf=['48Jodzkg',':driver-manage',':session-annotation','sdk:driver:post-initialization','GET_RESULTS','PERCY_EVENTS','PRE_EXECUTE','LOCAL_STOP','EVENTS','sdk:proxy-setup',':before','SDK_O11Y','AFTER','SDK_SETUP','IDLE_TIMEOUT','449046rgrBog',':print-buildlink','54188WTiZsS','DRIVER_EVENT','sdk:o11y','SDK_APP_AUTOMATE','SDK_HOOK','sdk:accessibilityConfig',':pre-execute',':local-stop',':snapshot','sdk:startBinSession','HOOK_EVENTS','sdk:post-test','SDK_CLI_ON_STOP',':auto-capture','sdk:cli:on-stop',':quit','SDK_TEST_FRAMEWORK_EVENT','1428096TxGPwZ','LOCAL_START',':before-all',':keep-alive','AFTER_EACH',':after','SDK_FIND_NEAREST_HUB','SDK_ACCESSIBILITY_CONFIG','TESTHUB_EVENTS','SDK_AUTOMATION_FRAMEWORK_STOP','sdk:testFrameworkEvent','sdk:cli:enqueueTestEvent','A11Y_EVENTS','STOP','SDK_TESTHUB','sdk:setup','sdk:testSessionEvent','sdk:turboscale','sdk:onStop','SDK_CLEANUP','sdk:cli:on-connect','PERFORM_SCAN','1629628gHRRio','SYNC','9402bVWJSL',':after-all','SDK_DRIVER_INIT',':local-start','GET','SCREENSHOT_APP',':app-upload','sdk:connectBinSession','SDK_POST_TEST','TURBOSCALE_EVENTS','SDK_POST_INITIALIZE','sdk:automate',':screenshot','DRIVER_MANAGE','SDK_CLI_ON_CONNECT',':stop','GET_RESULTS_SUMMARY','SESSION_NAME',':session-status','SDK_AUTOMATION_FRAMEWORK_INIT','SDK_AUTOMATE','sdk:observabilityConfig','SDK_AUTOMATION_FRAMEWORK_START',':after-each','sdk:automationFrameworkInit',':driver-takeScreenShot','AUTOMATE_EVENTS',':driver-performscan','160lFWixb',':post-execute','sdk:percy',':get','sdk:driver','SDK_AUTO_CAPTURE','sdk:driver:pre-initialization','GENERATE_CI_ARTIFACT',':session-name',':screenshot-app','sdk:testhub','PRINT_BUILDLINK','SDK_A11Y','QUIT','SESSION_ANNOTATION',':start','SDK_AI_SELF_HEAL_GET_RESULT',':hub-management','DOWNLOAD',':save-results','SDK_CLI_CHECK_UPDATE','POST_EXECUTE','KEEP_ALIVE','SDK_AI_SELF_HEAL_STEP','sdk:aiSelfHealStep','O11y_EVENTS','119781XtrXKC','SDK_TEST','160563hdSjbT','sdk:cli:logCreatedEvent','SESSION_STATUS','SDK_TURBOSCALE','SDK_DRIVER','SDK_PERCY','TAKE_SCREENSHOT',':download','sdk:cli:start','SDK_OBSERVABILITY_CONFIG','APP_AUOTMATE_EVENTS','SDK_CLI_DOWNLOAD','BEFORE',':before-each','AFTER_ALL','SDK_CLI_ENQUEUE_TEST_EVENT','BEFORE_EACH','sdk:app-automate','sdk:driverInit','exports','SDK_PRE_TEST','HUB_MANAGEMENT'];a120_0x4986=function(){return _0x527ebf;};return a120_0x4986();}
|
|
1
|
+
const a120_0x32ad3b=a120_0x294a;(function(_0x4ba719,_0x4fac7d){const _0x5a5e07=a120_0x294a,_0x53539c=_0x4ba719();while(!![]){try{const _0x527b5e=parseInt(_0x5a5e07(0x105))/0x1*(parseInt(_0x5a5e07(0x16e))/0x2)+-parseInt(_0x5a5e07(0x141))/0x3+parseInt(_0x5a5e07(0x166))/0x4*(parseInt(_0x5a5e07(0x143))/0x5)+-parseInt(_0x5a5e07(0x134))/0x6*(-parseInt(_0x5a5e07(0xf0))/0x7)+parseInt(_0x5a5e07(0xfa))/0x8+parseInt(_0x5a5e07(0x12b))/0x9*(parseInt(_0x5a5e07(0x150))/0xa)+parseInt(_0x5a5e07(0xfb))/0xb*(-parseInt(_0x5a5e07(0x158))/0xc);if(_0x527b5e===_0x4fac7d)break;else _0x53539c['push'](_0x53539c['shift']());}catch(_0x49230a){_0x53539c['push'](_0x53539c['shift']());}}}(a120_0xf918,0x727f5));function a120_0x294a(_0x29434a,_0x1989fe){const _0xf9185b=a120_0xf918();return a120_0x294a=function(_0x294a15,_0x30e3aa){_0x294a15=_0x294a15-0xef;let _0x1fa97f=_0xf9185b[_0x294a15];return _0x1fa97f;},a120_0x294a(_0x29434a,_0x1989fe);}const a120_0x51e0c1={};function a120_0xf918(){const _0x59eafa=['BEFORE_ALL','SDK_AUTOMATION_FRAMEWORK_INIT','HOOK_EVENTS','SDK_CONNECT_BIN_SESSION','PRINT_BUILDLINK','162abdzrO','sdk:post-test','START','GENERATE_CI_ARTIFACT',':sync','SESSION_ANNOTATION','SDK_START_BIN_SESSION',':auto-capture','KEEP_ALIVE','SDK_FIND_NEAREST_HUB',':screenshot','sdk:automationFrameworkStop','SDK_CLI_DOWNLOAD','SDK_CLI_START','DRIVER_EVENT','SDK_CLI_ENQUEUE_TEST_EVENT','TAKE_SCREENSHOT','sdk:proxy-setup',':before-each','sdk:cli:download','AUTOMATE_EVENTS','HUB_MANAGEMENT','SDK_AUTO_CAPTURE','SDK_CLI_ON_BOOTSTRAP',':hub-management','O11y_EVENTS',':print-buildlink','STOP','IDLE_TIMEOUT','sdk:turboscale','TURBOSCALE_EVENTS','BEFORE','sdk:a11y','SCREENSHOT_APP',':download',':driver-manage','SNAPSHOT','sdk:cleanup','135027nybkAE','sdk:auto-capture','APP_AUOTMATE_EVENTS','sdk:aiSelfHealStep','SDK_ACCESSIBILITY_CONFIG','sdk:automationFrameworkStart',':driver-performscan','sdk:testFrameworkEvent',':session-annotation','11112kCppss','SDK_AI_SELF_HEAL_GET_RESULT','sdk:findNearestHub','SDK_AUTOMATION_FRAMEWORK_START','sdk:aiSelfHealGetResult','sdk:o11y','SDK_TESTHUB',':session-name','sdk:accessibilityConfig','SDK_CLI_CHECK_UPDATE','QUIT','sdk:setup',':stop','2601726UPohxe','AFTER_EACH','451205TnKnKK','SDK_CLI_ON_CONNECT','SDK_HOOK','sdk:automate','sdk:driver:pre-initialization','sdk:cli:logCreatedEvent','TESTHUB_EVENTS',':idle-timeout','SDK_AUTOMATE','SDK_OBSERVABILITY_CONFIG','SDK_PRE_INITIALIZE','SDK_PERCY','LOCAL_START','30gScbfY',':keep-alive',':screenshot-app','SDK_POST_TEST',':after','DOWNLOAD','SYNC',':local-start','11815932PBobwq',':snapshot','SDK_O11Y','BEFORE_EACH','APP_UPLOAD','AFTER_ALL','PRE_EXECUTE','sdk:onStop','PERCY_EVENTS','AFTER','SDK_A11Y','A11Y_EVENTS','sdk:cli:check-update','SDK_AI_SELF_HEAL_STEP','36GVgBZq','SDK_TEST_SESSION_EVENT','SDK_ON_STOP','sdk:startBinSession','SDK_SETUP','sdk:cli:enqueueTestEvent','SDK_DRIVER','sdk:cli:on-bootstrap','1574GdOteh','sdk:percy',':before','SDK_CLI_ON_STOP',':driver-takeScreenShot','SDK_TURBOSCALE','SDK_APP_AUTOMATE',':after-each','DRIVER_MANAGE','sdk:driver','sdk:hook','3472lvIPVW','exports',':session-status','SESSION_STATUS','SDK_CLEANUP',':start','POST_EXECUTE','sdk:pre-test','SDK_POST_INITIALIZE',':pre-execute','3340960RnaDNk','11GFJPaa','sdk:automationFrameworkInit','sdk:cli:on-connect',':save-results','EVENTS'];a120_0xf918=function(){return _0x59eafa;};return a120_0xf918();}a120_0x51e0c1[a120_0x32ad3b(0x16a)]=a120_0x32ad3b(0x13f),a120_0x51e0c1[a120_0x32ad3b(0xf4)]=a120_0x32ad3b(0x12a),a120_0x51e0c1['SDK_PRE_TEST']=a120_0x32ad3b(0xf7),a120_0x51e0c1['SDK_TEST']='sdk:test',a120_0x51e0c1[a120_0x32ad3b(0x153)]=a120_0x32ad3b(0x106),a120_0x51e0c1[a120_0x32ad3b(0x145)]=a120_0x32ad3b(0xef),a120_0x51e0c1[a120_0x32ad3b(0x16c)]=a120_0x32ad3b(0x177),a120_0x51e0c1['SDK_A11Y']=a120_0x32ad3b(0x125),a120_0x51e0c1[a120_0x32ad3b(0x15a)]=a120_0x32ad3b(0x139),a120_0x51e0c1[a120_0x32ad3b(0x11b)]=a120_0x32ad3b(0x12c),a120_0x51e0c1['SDK_PROXY_SETUP']=a120_0x32ad3b(0x116),a120_0x51e0c1['SDK_TESTHUB']='sdk:testhub',a120_0x51e0c1[a120_0x32ad3b(0x14b)]=a120_0x32ad3b(0x146),a120_0x51e0c1[a120_0x32ad3b(0x174)]='sdk:app-automate',a120_0x51e0c1[a120_0x32ad3b(0x173)]=a120_0x32ad3b(0x122),a120_0x51e0c1[a120_0x32ad3b(0x14e)]=a120_0x32ad3b(0x16f),a120_0x51e0c1[a120_0x32ad3b(0x14d)]=a120_0x32ad3b(0x147),a120_0x51e0c1[a120_0x32ad3b(0xf8)]='sdk:driver:post-initialization',a120_0x51e0c1[a120_0x32ad3b(0x112)]='sdk:cli:start',a120_0x51e0c1[a120_0x32ad3b(0x111)]=a120_0x32ad3b(0x118),a120_0x51e0c1[a120_0x32ad3b(0x13d)]=a120_0x32ad3b(0x164),a120_0x51e0c1[a120_0x32ad3b(0x11c)]=a120_0x32ad3b(0x16d),a120_0x51e0c1[a120_0x32ad3b(0x144)]=a120_0x32ad3b(0xfd),a120_0x51e0c1[a120_0x32ad3b(0x171)]='sdk:cli:on-stop',a120_0x51e0c1[a120_0x32ad3b(0x10b)]=a120_0x32ad3b(0x169),a120_0x51e0c1[a120_0x32ad3b(0x103)]='sdk:connectBinSession',a120_0x51e0c1['SDK_DRIVER_INIT']='sdk:driverInit',a120_0x51e0c1[a120_0x32ad3b(0x10e)]=a120_0x32ad3b(0x136),a120_0x51e0c1[a120_0x32ad3b(0x101)]=a120_0x32ad3b(0xfc),a120_0x51e0c1[a120_0x32ad3b(0x137)]=a120_0x32ad3b(0x130),a120_0x51e0c1[a120_0x32ad3b(0x12f)]=a120_0x32ad3b(0x13c),a120_0x51e0c1[a120_0x32ad3b(0x14c)]='sdk:observabilityConfig',a120_0x51e0c1[a120_0x32ad3b(0x165)]=a120_0x32ad3b(0x12e),a120_0x51e0c1[a120_0x32ad3b(0x135)]=a120_0x32ad3b(0x138),a120_0x51e0c1['SDK_TEST_FRAMEWORK_EVENT']=a120_0x32ad3b(0x132),a120_0x51e0c1[a120_0x32ad3b(0x167)]='sdk:testSessionEvent',a120_0x51e0c1['SDK_CLI_LOG_CREATED_EVENT']=a120_0x32ad3b(0x148),a120_0x51e0c1[a120_0x32ad3b(0x114)]=a120_0x32ad3b(0x16b),a120_0x51e0c1['SDK_AUTOMATION_FRAMEWORK_STOP']=a120_0x32ad3b(0x110),a120_0x51e0c1[a120_0x32ad3b(0x168)]=a120_0x32ad3b(0x15f);const SDK_EVENTS=a120_0x51e0c1,a120_0x41db24={};a120_0x41db24[a120_0x32ad3b(0xff)]=SDK_EVENTS,a120_0x41db24[a120_0x32ad3b(0x149)]={},a120_0x41db24[a120_0x32ad3b(0x119)]={},a120_0x41db24[a120_0x32ad3b(0x163)]={},a120_0x41db24[a120_0x32ad3b(0x160)]={},a120_0x41db24[a120_0x32ad3b(0x11e)]={},a120_0x41db24[a120_0x32ad3b(0x102)]={},a120_0x41db24[a120_0x32ad3b(0x123)]={},a120_0x41db24[a120_0x32ad3b(0x12d)]={},a120_0x41db24[a120_0x32ad3b(0x113)]={},a120_0x41db24[a120_0x32ad3b(0x149)][a120_0x32ad3b(0x107)]=SDK_EVENTS[a120_0x32ad3b(0x13a)]+a120_0x32ad3b(0xf5),a120_0x41db24[a120_0x32ad3b(0x149)][a120_0x32ad3b(0x120)]=SDK_EVENTS[a120_0x32ad3b(0x13a)]+a120_0x32ad3b(0x140),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x10d)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x151),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x11a)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x11d),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x14f)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x157),a120_0x41db24[a120_0x32ad3b(0x119)]['LOCAL_STOP']=SDK_EVENTS[a120_0x32ad3b(0x14b)]+':local-stop',a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x176)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x128),a120_0x41db24[a120_0x32ad3b(0x119)]['SESSION_NAME']=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x13b),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0xf3)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0xf2),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x10a)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x32ad3b(0x133),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x121)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x14a),a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x108)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+':ci-artifacts',a120_0x41db24[a120_0x32ad3b(0x119)][a120_0x32ad3b(0x104)]=SDK_EVENTS[a120_0x32ad3b(0x14b)]+a120_0x32ad3b(0x11f),a120_0x41db24[a120_0x32ad3b(0x163)]['PERFORM_SCAN']=SDK_EVENTS[a120_0x32ad3b(0x162)]+a120_0x32ad3b(0x131),a120_0x41db24[a120_0x32ad3b(0x163)]['SAVE_RESULTS']=SDK_EVENTS[a120_0x32ad3b(0x162)]+a120_0x32ad3b(0xfe),a120_0x41db24[a120_0x32ad3b(0x163)]['GET_RESULTS']=SDK_EVENTS['SDK_A11Y']+':get-accessibility-results',a120_0x41db24[a120_0x32ad3b(0x163)]['GET_RESULTS_SUMMARY']=SDK_EVENTS[a120_0x32ad3b(0x162)]+':get-accessibility-results-summary',a120_0x41db24[a120_0x32ad3b(0x160)][a120_0x32ad3b(0x155)]=SDK_EVENTS['SDK_PERCY']+a120_0x32ad3b(0x127),a120_0x41db24[a120_0x32ad3b(0x160)]['SCREENSHOT']=SDK_EVENTS['SDK_PERCY']+a120_0x32ad3b(0x10f),a120_0x41db24[a120_0x32ad3b(0x160)][a120_0x32ad3b(0x107)]=SDK_EVENTS['SDK_PERCY']+a120_0x32ad3b(0xf5),a120_0x41db24[a120_0x32ad3b(0x160)][a120_0x32ad3b(0x120)]=SDK_EVENTS[a120_0x32ad3b(0x14e)]+a120_0x32ad3b(0x140),a120_0x41db24[a120_0x32ad3b(0x160)]['AUTO_CAPTURE']=SDK_EVENTS['SDK_PERCY']+a120_0x32ad3b(0x10c),a120_0x41db24[a120_0x32ad3b(0x160)][a120_0x32ad3b(0x129)]=SDK_EVENTS[a120_0x32ad3b(0x14e)]+a120_0x32ad3b(0x159),a120_0x41db24[a120_0x32ad3b(0x160)][a120_0x32ad3b(0x126)]=SDK_EVENTS[a120_0x32ad3b(0x14e)]+a120_0x32ad3b(0x152),a120_0x41db24[a120_0x32ad3b(0x11e)][a120_0x32ad3b(0x156)]=SDK_EVENTS['SDK_O11Y']+a120_0x32ad3b(0x109),a120_0x41db24[a120_0x32ad3b(0x11e)][a120_0x32ad3b(0x115)]=SDK_EVENTS[a120_0x32ad3b(0x15a)]+a120_0x32ad3b(0x172),a120_0x41db24[a120_0x32ad3b(0x11e)][a120_0x32ad3b(0x104)]=SDK_EVENTS['SDK_O11Y']+a120_0x32ad3b(0x11f),a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x15b)]=SDK_EVENTS[a120_0x32ad3b(0x145)]+a120_0x32ad3b(0x117),a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x142)]=SDK_EVENTS[a120_0x32ad3b(0x145)]+a120_0x32ad3b(0x175),a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x15d)]=SDK_EVENTS['SDK_HOOK']+':after-all',a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x100)]=SDK_EVENTS['SDK_HOOK']+':before-all',a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x124)]=SDK_EVENTS[a120_0x32ad3b(0x145)]+a120_0x32ad3b(0x170),a120_0x41db24[a120_0x32ad3b(0x102)][a120_0x32ad3b(0x161)]=SDK_EVENTS['SDK_HOOK']+a120_0x32ad3b(0x154),a120_0x41db24[a120_0x32ad3b(0x123)]['HUB_MANAGEMENT']=SDK_EVENTS['SDK_TURBOSCALE']+a120_0x32ad3b(0x11d),a120_0x41db24[a120_0x32ad3b(0x123)][a120_0x32ad3b(0x104)]=SDK_EVENTS[a120_0x32ad3b(0x173)]+':print-buildlink',a120_0x41db24[a120_0x32ad3b(0x12d)][a120_0x32ad3b(0x15c)]=SDK_EVENTS[a120_0x32ad3b(0x174)]+':app-upload',a120_0x41db24[a120_0x32ad3b(0x113)][a120_0x32ad3b(0x13e)]=SDK_EVENTS[a120_0x32ad3b(0x16c)]+':quit',a120_0x41db24[a120_0x32ad3b(0x113)]['GET']=SDK_EVENTS[a120_0x32ad3b(0x16c)]+':get',a120_0x41db24[a120_0x32ad3b(0x113)][a120_0x32ad3b(0x15e)]=SDK_EVENTS['SDK_DRIVER']+a120_0x32ad3b(0xf9),a120_0x41db24[a120_0x32ad3b(0x113)][a120_0x32ad3b(0xf6)]=SDK_EVENTS[a120_0x32ad3b(0x16c)]+':post-execute',module[a120_0x32ad3b(0xf1)]=a120_0x41db24;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a121_0x51c4(){const _0x4877fd=['324jlgqDs','iuqBy','SCrbB','path','splice','NPUOo','Error\x20processing\x20key-metrics.json:\x20%s','errorReportDirName','format','push','duration','eWuhE','2104399DvDEzW','buffered','winstonLogger','chogl','vKMmK','8282241zkZWIK','function','parse','all','toJSON','testName','_events','jsonReportDirName','quiut','AxFPO','ZZhxz','_observer','started','info','getEventsFromJSON','ZGtcQ','toString','stopMonitoring','hFNPI','71392eRFNRp','HxKDq','hdZqf','then','getPerformance','stringify','entries','yEHNi','<h1>Performance\x20Report</h1>','measureWrapper','performance-report','writeFile','../logger','3687591ZLlypt','cNyWr','getCleanedPerfEvents','mkdirSync','measures','Error\x20stopping\x20monitoring\x20','false','6803970pADJCG','520AxFEka','_errorEvents','tsHGW','stopAndGenerate','forEach','isEnabled','NMKmP','appendFileSync','match','isArray','env','generateJSON','-start','platform','code','performance-own.html','_measureEvents','readdir','AkslM','</tbody></table></body></html>','entryTypes','stack','finalize','pPlDE','apply','concat','fs/promises','pushPerfMeasures','Error\x20in\x20writing\x20html\x20','ZNvqK','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','name','failure','gVTbE','browserStackCwd','utf-8','errorFile','readFile','unlinkSync','mDpUH','srJiE','perf_hooks','</td></tr>','MARXW','GtEVH','jsonReportDirPath','oQCSf','jplFB','DocJh','reduce','finalizeErrors','54605iIqZjV','hvnKH','Jooee','dirname','index','BROWSERSTACK_SDK_INSTRUMENTATION','captureError','SNYlH','util','measure','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','success','readdirSync','tcCJy','laDzc','error-report','JkWId','assign','disconnect','190mSlZfb','finalizePerfMeasures','/performance-report-','generateHTMLReport','modified-key-metrics.json','existsSync','errors','zSokT','cwd','mark','entryType','Error\x20while\x20removing\x20files:\x20','/error-report-','__platformCaps','Mfnmu','debug','meta','xigfJ','</td><td>','join','erWTh','854CuKYDL','key-metrics.json','readFileSync','eventsMap','11762otZZaJ','message','iotag','F_OK','start','ihCFR','calculateTimeFromEvents','details','DzgXn','slice','.json','pushErrors','\x20for\x20all\x20processes\x20is\x20','length','eGaci','startMonitoring','-end','end','map','../processHelper','<tr><td>','jsonReportFileName','uzkFh','KGXsX','errorReportFileName'];a121_0x51c4=function(){return _0x4877fd;};return a121_0x51c4();}const a121_0x4d3fef=a121_0x9c84;(function(_0x347a21,_0x1e7076){const _0x1ef893=a121_0x9c84,_0xf48750=_0x347a21();while(!![]){try{const _0x4e42b4=parseInt(_0x1ef893(0x10c))/0x1*(-parseInt(_0x1ef893(0xf3))/0x2)+-parseInt(_0x1ef893(0x13d))/0x3+parseInt(_0x1ef893(0x145))/0x4*(parseInt(_0x1ef893(0xc7))/0x5)+-parseInt(_0x1ef893(0x144))/0x6+parseInt(_0x1ef893(0xef))/0x7*(parseInt(_0x1ef893(0x130))/0x8)+-parseInt(_0x1ef893(0x11d))/0x9+-parseInt(_0x1ef893(0xda))/0xa*(-parseInt(_0x1ef893(0x118))/0xb);if(_0x4e42b4===_0x1e7076)break;else _0xf48750['push'](_0xf48750['shift']());}catch(_0x17cbaf){_0xf48750['push'](_0xf48750['shift']());}}}(a121_0x51c4,0xe904c));const fs=require('fs'),fsPromise=require(a121_0x4d3fef(0xae)),{performance,PerformanceObserver}=require(a121_0x4d3fef(0xbd)),path=require(a121_0x4d3fef(0x10f)),util=require(a121_0x4d3fef(0xcf)),logger=require(a121_0x4d3fef(0x13c))[a121_0x4d3fef(0x11a)],{getLogDir}=require(a121_0x4d3fef(0x13c)),{getProcessId,sleep,debug,getTestName}=require(a121_0x4d3fef(0x106));function a121_0x9c84(_0x20ca3a,_0x3417e7){const _0x51c487=a121_0x51c4();return a121_0x9c84=function(_0x9c84a2,_0x5df3f0){_0x9c84a2=_0x9c84a2-0x9b;let _0x3380c0=_0x51c487[_0x9c84a2];return _0x3380c0;},a121_0x9c84(_0x20ca3a,_0x3417e7);}class PerformanceTester{static ['_observer'];static ['_events']=[];static ['_measureEvents']=[];static [a121_0x4d3fef(0x146)]=[];static [a121_0x4d3fef(0x129)]=![];static [a121_0x4d3fef(0x124)]=a121_0x4d3fef(0x13a);static [a121_0x4d3fef(0x113)]=process['env'][a121_0x4d3fef(0xb6)]?path['join'](process['env'][a121_0x4d3fef(0xb6)],a121_0x4d3fef(0xd6)):path['join'](process[a121_0x4d3fef(0xe2)](),a121_0x4d3fef(0xd6));static [a121_0x4d3fef(0x10b)]=this[a121_0x4d3fef(0x113)]+a121_0x4d3fef(0xe6)+getProcessId()+a121_0x4d3fef(0xfd);static [a121_0x4d3fef(0xfa)]={};static [a121_0x4d3fef(0xf2)]={};static[a121_0x4d3fef(0x102)](_0x510288,_0x58e49e=this[a121_0x4d3fef(0x113)]+a121_0x4d3fef(0xe6)+getProcessId()+a121_0x4d3fef(0xfd)){const _0xec15ab=a121_0x4d3fef,_0x27af12={'HxKDq':function(_0x54a309,_0x8f364a){return _0x54a309===_0x8f364a;},'NPUOo':_0xec15ab(0xd0),'dAEIC':function(_0x5238d0){return _0x5238d0();},'pPlDE':function(_0x56d03e,_0xc5c866){return _0x56d03e+_0xc5c866;},'iotag':_0xec15ab(0xb2),'IrnNM':_0xec15ab(0x11e)};try{this[_0xec15ab(0xc1)]=path[_0xec15ab(0xed)](_0x27af12['dAEIC'](getLogDir),this['jsonReportDirName']),!_0x510288&&(_0x510288=this[_0xec15ab(0xc1)]+_0xec15ab(0xdc)+_0x27af12['dAEIC'](getProcessId)+_0xec15ab(0xfd)),!fs['existsSync'](this[_0xec15ab(0xc1)])&&fs[_0xec15ab(0x140)](this['jsonReportDirPath']);}catch(_0x19907d){logger[_0xec15ab(0xe9)](_0x27af12[_0xec15ab(0xab)](_0x27af12[_0xec15ab(0xf5)],_0x19907d));}if(this['started']||!this[_0xec15ab(0x14a)]())return;this[_0xec15ab(0x128)]=new PerformanceObserver(_0x331352=>{const _0x50841b=_0xec15ab,_0x15b918={'tsHGW':function(_0x5e5e05,_0x166d56){const _0x34539a=a121_0x9c84;return _0x27af12[_0x34539a(0x131)](_0x5e5e05,_0x166d56);},'jplFB':_0x27af12[_0x50841b(0x111)]};_0x331352['getEntries']()['forEach'](_0x978574=>{const _0x172d5e=_0x50841b;if(_0x15b918[_0x172d5e(0x147)](_0x978574[_0x172d5e(0xe4)],_0x15b918[_0x172d5e(0xc3)])){let _0x54675f={};if(_0x978574[_0x172d5e(0x121)])_0x54675f=_0x978574['toJSON']();else for(const _0x41e6c0 in _0x978574){_0x54675f[_0x41e6c0]=_0x978574[_0x41e6c0];}this[_0x172d5e(0xfa)][_0x978574[_0x172d5e(0xb3)]]&&(_0x54675f=Object[_0x172d5e(0xd8)](_0x54675f,this[_0x172d5e(0xfa)][_0x978574[_0x172d5e(0xb3)]])),delete this[_0x172d5e(0xfa)][_0x978574['name']],this[_0x172d5e(0xa4)][_0x172d5e(0x115)](_0x54675f);}else this[_0x172d5e(0x123)][_0x172d5e(0x115)](_0x978574);});});const _0x48d879={};_0x48d879[_0xec15ab(0x119)]=!![],_0x48d879[_0xec15ab(0xa8)]=[_0x27af12['IrnNM'],_0x27af12[_0xec15ab(0x111)]],this['_observer']['observe'](_0x48d879),this[_0xec15ab(0x129)]=!![],this['jsonReportFileName']=_0x510288,this['errorReportFileName']=_0x58e49e;}static[a121_0x4d3fef(0x134)](){return performance;}static['calculateTimeFromEvents'](_0xb321fa,_0x5999aa){const _0x234085=a121_0x4d3fef,_0x1cf316={};_0x1cf316[_0x234085(0xb5)]=function(_0x4a724d,_0x2ea0a8){return _0x4a724d+_0x2ea0a8;},_0x1cf316['mDpUH']=function(_0x534def,_0x4da98b){return _0x534def||_0x4da98b;},_0x1cf316[_0x234085(0x137)]=function(_0x205202,_0x514402){return _0x205202===_0x514402;};const _0x22bc46=_0x1cf316,_0x4df35c={};if(!_0xb321fa||_0x22bc46[_0x234085(0x137)](_0xb321fa[_0x234085(0x100)],0x0))return;_0xb321fa[_0x234085(0x105)](_0xcf9a5e=>{const _0x558fa6=_0x234085;!_0x4df35c[_0xcf9a5e[_0x558fa6(0xb3)]]&&(_0x4df35c[_0xcf9a5e[_0x558fa6(0xb3)]]=0x0),_0x4df35c[_0xcf9a5e['name']]+=_0xcf9a5e[_0x558fa6(0x116)];});const _0x171e75=_0x5999aa[_0x234085(0xc5)]((_0x1ea595,_0x4589a5)=>{const _0x45c9aa=_0x234085;return _0x22bc46[_0x45c9aa(0xb5)](_0x4df35c[_0x4589a5],_0x22bc46[_0x45c9aa(0xbb)](_0x1ea595,0x0));},0x0);return _0x171e75;}static async['calculateTimesFromMultipleFiles'](_0x2194e5,_0x2fda87){const _0x33997b=a121_0x4d3fef,_0x27081e={'oQCSf':function(_0x1f3dc9,_0x2d1d81){return _0x1f3dc9+_0x2d1d81;},'JkWId':function(_0x3690c0,_0x43abbf){return _0x3690c0||_0x43abbf;},'cNyWr':function(_0x43f47e,_0x2e6e17){return _0x43f47e===_0x2e6e17;},'AkslM':function(_0x2b1575,_0x4d2563){return _0x2b1575(_0x4d2563);}};if(!_0x2194e5||_0x27081e[_0x33997b(0x13e)](_0x2194e5[_0x33997b(0x100)],0x0))return 0x0;const _0x4f0ec6=[];for(const _0x2847c7 of _0x2194e5){const _0x3879c5=path['join']('.',_0x2847c7);try{const _0x24f240=this[_0x33997b(0x12b)](_0x3879c5);_0x24f240['map'](_0xedc209=>{const _0x11d204=_0x33997b;!_0x4f0ec6[_0xedc209['name']]&&(_0x4f0ec6[_0xedc209['name']]=0x0),_0x4f0ec6[_0xedc209[_0x11d204(0xb3)]]+=_0xedc209['duration'];});}catch(_0x2d7fbf){_0x27081e[_0x33997b(0xa6)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x2d7fbf[_0x33997b(0x12d)]());}}const _0x1fd78c=_0x2fda87[_0x33997b(0xc5)]((_0x3e0810,_0x2de2a9)=>{const _0x250ac5=_0x33997b;return _0x27081e[_0x250ac5(0xc2)](_0x4f0ec6[_0x2de2a9],_0x27081e[_0x250ac5(0xd7)](_0x3e0810,0x0));},0x0);return _0x27081e['AkslM'](debug,'Time\x20for\x20'+_0x2fda87+_0x33997b(0xff)+_0x1fd78c),_0x1fd78c;}static[a121_0x4d3fef(0x12b)](_0x2c2391){const _0x12be06=a121_0x4d3fef;if(_0x2c2391){if(!fs[_0x12be06(0xdf)](_0x2c2391))return[];return JSON[_0x12be06(0x11f)](fs[_0x12be06(0xf1)](_0x2c2391)[_0x12be06(0x12d)]());}}static async[a121_0x4d3fef(0x148)](_0x22f093=a121_0x4d3fef(0xa3),_0x550a5e=null){const _0x3fedf4=a121_0x4d3fef,_0x4478e9={'ihCFR':function(_0x2dd44c,_0x115efd){return _0x2dd44c(_0x115efd);},'GtEVH':function(_0x2a7213,_0x4c601a){return _0x2a7213(_0x4c601a);}};if(!this[_0x3fedf4(0x129)])return;await _0x4478e9[_0x3fedf4(0xc0)](sleep,0x1e),this[_0x3fedf4(0x128)]['disconnect'](),this[_0x3fedf4(0x129)]=![],this[_0x3fedf4(0x9f)](this[_0x3fedf4(0x123)]);const _0x1a76dd=this[_0x3fedf4(0xdd)](this[_0x3fedf4(0x123)]),_0x38abb5=path[_0x3fedf4(0xed)](process[_0x3fedf4(0xe2)](),_0x22f093);fs['writeFile'](_0x38abb5,_0x1a76dd,_0x8a42ea=>{const _0x5332e4=_0x3fedf4;if(_0x8a42ea){_0x4478e9[_0x5332e4(0xf8)](debug,_0x5332e4(0xb0)+_0x8a42ea['toString']());return;}_0x4478e9[_0x5332e4(0xc0)](debug,'Performance\x20report\x20is\x20at\x20'+_0x38abb5);});if(_0x550a5e)return this[_0x3fedf4(0xf9)](this[_0x3fedf4(0x123)],_0x550a5e);}static[a121_0x4d3fef(0xdd)](_0x121502){const _0x570bd3=a121_0x4d3fef,_0x1a298f={};_0x1a298f['tcCJy']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x1a298f[_0x570bd3(0x127)]=_0x570bd3(0x138),_0x1a298f[_0x570bd3(0xbf)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x1a298f['kGZUa']=_0x570bd3(0xa7);const _0x27d2a8=_0x1a298f;let _0x1b113f=_0x27d2a8[_0x570bd3(0xd4)];return _0x1b113f+=_0x27d2a8[_0x570bd3(0x127)],_0x1b113f+=_0x27d2a8['MARXW'],_0x121502[_0x570bd3(0x149)](_0x159daf=>{const _0x5ad60f=_0x570bd3;_0x1b113f+=_0x5ad60f(0x107)+_0x159daf[_0x5ad60f(0xb3)]+_0x5ad60f(0xec)+_0x159daf['duration']+_0x5ad60f(0xbe);}),_0x1b113f+=_0x27d2a8['kGZUa'],_0x1b113f;}static[a121_0x4d3fef(0x9f)](_0xce87df){const _0x17ed01=a121_0x4d3fef;if(!this[_0x17ed01(0x108)])return;const _0x516f16={};_0xce87df[_0x17ed01(0x105)](_0x3f534e=>{const _0x53117e=_0x17ed01;!_0x516f16[_0x3f534e[_0x53117e(0xb3)]]&&(_0x516f16[_0x3f534e[_0x53117e(0xb3)]]=0x0),_0x516f16[_0x3f534e[_0x53117e(0xb3)]]+=_0x3f534e[_0x53117e(0x116)];});const _0xf353f2=Object[_0x17ed01(0x136)](_0x516f16)[_0x17ed01(0x105)](([_0x2b27e8,_0x312d79])=>{const _0x2ceb28=_0x17ed01,_0x3d8806={};return _0x3d8806[_0x2ceb28(0xb3)]=_0x2b27e8,_0x3d8806[_0x2ceb28(0x116)]=_0x312d79,_0x3d8806;});fs['writeFileSync'](this[_0x17ed01(0x108)],JSON[_0x17ed01(0x135)](_0xf353f2));}static[a121_0x4d3fef(0x14a)](){const _0xf4cc42=a121_0x4d3fef,_0x1769c7={};_0x1769c7[_0xf4cc42(0x10d)]=function(_0x42d929,_0x494cbb){return _0x42d929===_0x494cbb;},_0x1769c7[_0xf4cc42(0xe1)]=_0xf4cc42(0x143);const _0x51d768=_0x1769c7;return!_0x51d768[_0xf4cc42(0x10d)](process[_0xf4cc42(0x9e)][_0xf4cc42(0xcc)],_0x51d768[_0xf4cc42(0xe1)]);}static[a121_0x4d3fef(0xd0)](_0x2a897a,_0x1db846,_0x28e5f2=null,_0x386d4c={},_0x3e2dd7=null){const _0x1c9d46=a121_0x4d3fef,_0x6563a6={'laDzc':function(_0x3e8b02,_0x273c92){return _0x3e8b02(_0x273c92);},'OzRca':function(_0x40367f,_0x12ac36){return _0x40367f instanceof _0x12ac36;}};try{if(this[_0x1c9d46(0x129)]&&this[_0x1c9d46(0x14a)]()){let _0x41b139=_0x2a897a;_0x28e5f2&&(_0x41b139=_0x2a897a+'['+JSON['stringify'](_0x28e5f2)+']');PerformanceTester['start'](_0x41b139),this[_0x1c9d46(0xfa)]&&(this[_0x1c9d46(0xfa)][_0x41b139]=_0x386d4c);try{const _0x253820=_0x1db846['apply'](null,_0x3e2dd7);if(_0x6563a6['OzRca'](_0x253820,Promise))return new Promise((_0x4f0a2d,_0xddd910)=>{const _0x20907c=_0x1c9d46,_0x4f7957={'LTsoX':function(_0xe45bb8,_0x44f562){const _0x4e7fc9=a121_0x9c84;return _0x6563a6[_0x4e7fc9(0xd5)](_0xe45bb8,_0x44f562);}};_0x253820[_0x20907c(0x133)](_0x1f7e15=>{const _0x91521f=_0x20907c;PerformanceTester[_0x91521f(0x104)](_0x41b139),_0x6563a6[_0x91521f(0xd5)](_0x4f0a2d,_0x1f7e15);})['catch'](_0x563e8a=>{const _0x500bd6=_0x20907c;PerformanceTester[_0x500bd6(0x104)](_0x41b139,![],util[_0x500bd6(0x114)](_0x563e8a)),_0x4f7957['LTsoX'](_0xddd910,_0x563e8a);});});;return PerformanceTester[_0x1c9d46(0x104)](_0x41b139),_0x253820;}catch(_0x30f1ff){PerformanceTester[_0x1c9d46(0x104)](_0x41b139,![],util[_0x1c9d46(0x114)](_0x30f1ff));throw _0x30f1ff;}};return _0x1db846[_0x1c9d46(0xac)](null,_0x3e2dd7);}catch(_0x5e9f26){return logger[_0x1c9d46(0xe9)]('error\x20in\x20measure\x20'+(_0x5e9f26['stack']||_0x5e9f26[_0x1c9d46(0xf4)]||_0x5e9f26)),_0x1db846[_0x1c9d46(0xac)](null,_0x3e2dd7);}}static[a121_0x4d3fef(0x139)](_0x3f65b5,_0x359255,_0x5ae3a3={}){const _0x417cf9=a121_0x4d3fef,_0x50d13a={'ZNvqK':function(_0x27e402){return _0x27e402();}},_0x1c867d=this;return _0x5ae3a3['worker']=_0x50d13a[_0x417cf9(0xb1)](getProcessId),_0x5ae3a3[_0x417cf9(0x122)]=_0x50d13a[_0x417cf9(0xb1)](getTestName),_0x5ae3a3[_0x417cf9(0xa1)]=global[_0x417cf9(0xe7)]&&global['__platformCaps'][_0x417cf9(0xcb)],function(){const _0xa218bf=_0x417cf9,_0x32b0f7=[_0x3f65b5,_0x359255,null,_0x5ae3a3][_0xa218bf(0xad)](arguments);return _0x1c867d[_0xa218bf(0xd0)][_0xa218bf(0xac)](_0x1c867d,_0x32b0f7);};}static['getCleanedPerfEvents'](){const _0x96cc02=a121_0x4d3fef,_0x37ac9e=/(^.*)\[(.*)\]$/,_0x28a35c={},_0xc6796e={},_0x423061=[],_0x4d1fb5=this[_0x96cc02(0xa4)][_0x96cc02(0x110)](0x0,this['_measureEvents'][_0x96cc02(0x100)]);for(const _0x499f81 of _0x4d1fb5){const _0x34af61=_0x499f81['name'][_0x96cc02(0x9c)](_0x37ac9e),_0x4a3e64=Object['assign']({},_0x499f81);_0x34af61&&(_0x4a3e64['name']=_0x34af61[0x1],_0x4a3e64[_0x96cc02(0xea)]=JSON[_0x96cc02(0x11f)](_0x34af61[0x2])),_0x423061[_0x96cc02(0x115)](_0x4a3e64);}return _0x423061;}static[a121_0x4d3fef(0xaf)](){const _0xd7a2e5=a121_0x4d3fef,_0x5af39f={'yypQo':function(_0x27b840){return _0x27b840();},'Mfnmu':function(_0x51626a,_0x14bdf7){return _0x51626a+_0x14bdf7;},'AxFPO':_0xd7a2e5(0xe5),'chogl':function(_0x1eef5d,_0xc638ff){return _0x1eef5d===_0xc638ff;}};try{this['jsonReportDirPath']=path['join'](_0x5af39f['yypQo'](getLogDir),this['jsonReportDirName']);if(fs[_0xd7a2e5(0xdf)](this[_0xd7a2e5(0xc1)])){const _0x422913=fs[_0xd7a2e5(0xd3)](this['jsonReportDirPath']);for(const _0x39bb85 of _0x422913){fs[_0xd7a2e5(0xba)](path['join'](this['jsonReportDirPath'],_0x39bb85));}}}catch(_0x376031){logger['debug'](_0x5af39f[_0xd7a2e5(0xe8)](_0x5af39f[_0xd7a2e5(0x126)],_0x376031));}if(_0x5af39f[_0xd7a2e5(0x11b)](this['_measureEvents'][_0xd7a2e5(0x100)],0x0))return;const _0x3ac305=this[_0xd7a2e5(0x13f)](),_0x17a353=JSON[_0xd7a2e5(0x135)](_0x3ac305),_0x14ce6b=_0x5af39f[_0xd7a2e5(0xe8)](_0x17a353[_0xd7a2e5(0xfc)](0x1,-0x1),',');fs[_0xd7a2e5(0x9b)](this[_0xd7a2e5(0x108)],_0x14ce6b);}static async[a121_0x4d3fef(0xdb)](){const _0x54efed=a121_0x4d3fef,_0xcd6a98={'Jooee':function(_0x6b280){return _0x6b280();},'ZGtcQ':function(_0x449dc0,_0x2fa85c){return _0x449dc0===_0x2fa85c;},'KGXsX':_0x54efed(0xf0),'xigfJ':_0x54efed(0xb7),'DzgXn':_0x54efed(0xde),'hdZqf':function(_0x5be59b,_0x552436){return _0x5be59b+_0x552436;},'erWTh':function(_0x425306,_0x314934){return _0x425306+_0x314934;},'uzkFh':_0x54efed(0x112),'eGaci':'key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','NMKmP':_0x54efed(0xd1),'QMfBJ':function(_0x47827b,_0xe463d3){return _0x47827b>_0xe463d3;}};this[_0x54efed(0xc1)]=path[_0x54efed(0xed)](_0xcd6a98[_0x54efed(0xc9)](getLogDir),this[_0x54efed(0x124)]);if(!this[_0x54efed(0x129)]||_0xcd6a98[_0x54efed(0x12c)](this[_0x54efed(0xa4)]['length'],0x0))return[];if(!fs[_0x54efed(0xdf)](this[_0x54efed(0xc1)]))return this['_measureEvents'];const _0x29daf0=(await fsPromise[_0x54efed(0xa5)](this['jsonReportDirPath']))['map'](_0x2d2da2=>path['resolve'](this['jsonReportDirPath'],_0x2d2da2));try{const _0x4bac11=path[_0x54efed(0xca)](this['jsonReportDirPath']),_0x19e849=path[_0x54efed(0xed)](_0x4bac11,_0xcd6a98[_0x54efed(0x10a)]);if(fs['existsSync'](_0x19e849))try{await fsPromise['access'](_0x19e849,fs['constants'][_0x54efed(0xf6)]);const _0x31f22b=await fsPromise[_0x54efed(0xb9)](_0x19e849,_0xcd6a98[_0x54efed(0xeb)]),_0x2107f9=JSON[_0x54efed(0x11f)](_0x31f22b),_0x1c377e=path['join'](this['jsonReportDirPath'],_0xcd6a98[_0x54efed(0xfb)]);let _0x108536='';Array[_0x54efed(0x9d)](_0x2107f9)?_0x108536=_0xcd6a98[_0x54efed(0x132)](_0x2107f9[_0x54efed(0x105)](_0x3d45d2=>JSON[_0x54efed(0x135)](_0x3d45d2))[_0x54efed(0xed)](','),','):_0x108536=_0xcd6a98[_0x54efed(0xee)](JSON[_0x54efed(0x135)](_0x2107f9),','),await fsPromise[_0x54efed(0x13b)](_0x1c377e,_0x108536),_0x29daf0['push'](_0x1c377e),await fsPromise['unlink'](_0x19e849);}catch(_0x496547){logger['info'](util['format'](_0xcd6a98[_0x54efed(0x109)],_0x496547[_0x54efed(0xa9)]||_0x496547[_0x54efed(0xf4)]||_0x496547));}else logger[_0x54efed(0x12a)](_0xcd6a98[_0x54efed(0x101)]);}catch(_0x4c3aca){logger[_0x54efed(0x12a)](util[_0x54efed(0x114)](_0xcd6a98[_0x54efed(0x14b)],_0x4c3aca['stack']||_0x4c3aca[_0x54efed(0xf4)]||_0x4c3aca));}let _0x5d14f2=(await Promise[_0x54efed(0x120)](_0x29daf0[_0x54efed(0x105)](_0x11f8b3=>fsPromise['readFile'](_0x11f8b3,_0x54efed(0xb7)))))[_0x54efed(0x105)](_0x761d70=>'['+_0x761d70[_0x54efed(0xfc)](0x0,-0x1)+']')[_0x54efed(0x105)](_0xe285ff=>JSON[_0x54efed(0x11f)](_0xe285ff))['flat']();return _0xcd6a98['QMfBJ'](this[_0x54efed(0xa4)][_0x54efed(0x100)],0x0)&&(_0x5d14f2=_0x5d14f2['concat'](this[_0x54efed(0x13f)]())),this['_observer'][_0x54efed(0xd9)](),_0x5d14f2;}static[a121_0x4d3fef(0xfe)](){const _0x5407c9=a121_0x4d3fef,_0x773397={};_0x773397['eWuhE']=function(_0x37e768,_0x432321){return _0x37e768===_0x432321;},_0x773397[_0x5407c9(0xbc)]=function(_0x418f46,_0x23db32){return _0x418f46+_0x23db32;};const _0x52c7db=_0x773397;if(_0x52c7db[_0x5407c9(0x117)](this[_0x5407c9(0x146)]['length'],0x0))return;const _0x5b8776=JSON['stringify'](this[_0x5407c9(0x146)]),_0x16ee85=_0x52c7db[_0x5407c9(0xbc)](_0x5b8776[_0x5407c9(0xfc)](0x1,-0x1),',');fs[_0x5407c9(0x9b)](this[_0x5407c9(0xb8)],_0x16ee85);}static[a121_0x4d3fef(0xc6)](){const _0x44aeac=a121_0x4d3fef,_0x4e793a={};_0x4e793a[_0x44aeac(0xce)]=function(_0x1fcbb3,_0x241000){return _0x1fcbb3>_0x241000;};const _0x11674f=_0x4e793a;if(this[_0x44aeac(0x10b)]){if(!fs[_0x44aeac(0xdf)](this[_0x44aeac(0x10b)]))return this[_0x44aeac(0x146)];let _0x521ed7=fs['readFileSync'](this['errorReportFileName'])[_0x44aeac(0x12d)]();_0x521ed7='['+_0x521ed7[_0x44aeac(0xfc)](0x0,-0x1)+']';let _0x15966c=JSON[_0x44aeac(0x11f)](_0x521ed7);return _0x11674f[_0x44aeac(0xce)](this['_errorEvents'][_0x44aeac(0x100)],0x0)&&(_0x15966c=_0x15966c['concat'](this['_errorEvents'])),fs[_0x44aeac(0xba)](this[_0x44aeac(0x10b)]),_0x15966c;}}static[a121_0x4d3fef(0xcd)](_0x1cbcb0){const _0x3b25cf=a121_0x4d3fef;if(!this[_0x3b25cf(0x14a)]())return;this[_0x3b25cf(0x146)]['push']({'message':_0x1cbcb0['message'],'trace':_0x1cbcb0[_0x3b25cf(0xa9)],'code':_0x1cbcb0[_0x3b25cf(0xa2)]||null,'time':new Date()});}static[a121_0x4d3fef(0x12e)](){const _0x24d06d=a121_0x4d3fef;try{if(!this[_0x24d06d(0x14a)]())return;this['_observer'][_0x24d06d(0xd9)](),this[_0x24d06d(0xaf)](),this[_0x24d06d(0xfe)]();}catch(_0x5461a9){logger['debug'](_0x24d06d(0x142)+util[_0x24d06d(0x114)](_0x5461a9));}}static async[a121_0x4d3fef(0xaa)](){const _0x45d1c0=a121_0x4d3fef,_0x534b38={'uVkMV':function(_0x360516,_0x7ff269){return _0x360516(_0x7ff269);}};await _0x534b38['uVkMV'](sleep,0x1e);const _0x3d2f97=await this[_0x45d1c0(0xdb)](),_0x30c5b5=this[_0x45d1c0(0xc6)]();if(!this[_0x45d1c0(0x14a)]()){const _0x56b4ea={};return _0x56b4ea['measures']=[],_0x56b4ea['errors']=[],_0x56b4ea;}const _0x558daf={};return _0x558daf[_0x45d1c0(0x141)]=_0x3d2f97,_0x558daf[_0x45d1c0(0xe0)]=_0x30c5b5,_0x558daf;}static[a121_0x4d3fef(0xf7)](_0x43e164){const _0x284412=a121_0x4d3fef,_0x1bb876={};_0x1bb876['quiut']=function(_0xa92f58,_0x37dfcd){return _0xa92f58+_0x37dfcd;},_0x1bb876['DocJh']=_0x284412(0xa0);const _0x4f5c3c=_0x1bb876,_0x4ad372=_0x4f5c3c[_0x284412(0x125)](_0x43e164,_0x4f5c3c[_0x284412(0xc4)]);if(this[_0x284412(0xf2)][_0x4ad372])return;performance[_0x284412(0xe3)](_0x4ad372),this[_0x284412(0xf2)][_0x4ad372]=0x1;}static['end'](_0x22971f,_0x1aab11=!![],_0x59b652=null,_0x520493={}){const _0x19a9bd=a121_0x4d3fef,_0x1c44ae={'vKMmK':function(_0x447eac,_0xe8d263){return _0x447eac+_0xe8d263;},'hvnKH':_0x19a9bd(0x103),'hFNPI':'-start','SCrbB':function(_0x391b63){return _0x391b63();}};performance[_0x19a9bd(0xe3)](_0x1c44ae['vKMmK'](_0x22971f,_0x1c44ae[_0x19a9bd(0xc8)])),performance[_0x19a9bd(0xd0)](_0x22971f,_0x1c44ae[_0x19a9bd(0x11c)](_0x22971f,_0x1c44ae[_0x19a9bd(0x12f)]),_0x1c44ae[_0x19a9bd(0x11c)](_0x22971f,_0x1c44ae[_0x19a9bd(0xc8)]));const _0x1a8fa0={};_0x1a8fa0[_0x19a9bd(0xd2)]=_0x1aab11,_0x1a8fa0[_0x19a9bd(0xb4)]=_0x59b652,this['details'][_0x22971f]=Object['assign'](_0x1a8fa0,Object[_0x19a9bd(0xd8)](Object[_0x19a9bd(0xd8)]({'worker':_0x1c44ae[_0x19a9bd(0x10e)](getProcessId),'platform':global[_0x19a9bd(0xe7)]&&global[_0x19a9bd(0xe7)]['index'],'testName':_0x1c44ae[_0x19a9bd(0x10e)](getTestName)},_0x520493),this[_0x19a9bd(0xfa)][_0x22971f]||{}));}}module['exports']=PerformanceTester;
|
|
1
|
+
function a121_0x41ce(){const _0x4486a6=['pkCIi','/error-report-','getEventsFromJSON','toJSON','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','BROWSERSTACK_SDK_INSTRUMENTATION','PJVKe','forEach','end','constants','279604FXWYGu','2195Talutv','jsonReportDirPath','join','isArray','VzfnA','1014666cfZTnn','writeFile','getPerformance','VUJWM','WtBPg','F_OK','message','key-metrics.json','meta','Error\x20stopping\x20monitoring\x20','oieEM','appendFileSync','performance-own.html','length','watUx','stringify','dLKyx','measures','mark','readFile','observe','all','WqXOb','gTdkj','7qRdVVT','jsonReportFileName','concat','entries','wUWeu','</tbody></table></body></html>','duration','_measureEvents','reduce','platform','entryTypes','slice','24xBmxEl','1972fXCMMP','parse','dHWFC','_observer','error-report','unieR','ZOrGM','lPZDv','match','<h1>Performance\x20Report</h1>','HHUxr','utf-8','cwd','success','apply','generateHTMLReport','pushPerfMeasures','TgRpW','access','Error\x20while\x20removing\x20files:\x20','oeFNd','mkCqW','details','errorReportDirName','measure','../processHelper','flat','toString','env','hksDg','calculateTimeFromEvents','lLlOa','byLqE','utwWt','jsonReportDirName','</td></tr>','9WGMTti','disconnect','2550190XFBAWS','code','started','readdirSync','__platformCaps','isEnabled','measureWrapper','PymIS','-start','../logger','push','Time\x20for\x20','then','.json','readdir','existsSync','TLnyS','\x20for\x20all\x20processes\x20is\x20','unlinkSync','generateJSON','zPBzw','TiNvy','163515jnDEvV','false','failure','<tr><td>','getEntries','finalizeErrors','winstonLogger','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','Error\x20in\x20doing\x20csv\x20operations:\x20','finalizePerfMeasures','JznoX','YjTZG','Error\x20processing\x20key-metrics.json:\x20%s','qODpH','testName','errorFile','Performance\x20report\x20is\x20at\x20','index','35456KQxfcF','errorReportFileName','start','path','finalize','fs/promises','assign','QdmbY','info','getCleanedPerfEvents','iNEcM','browserStackCwd','_events','YqssC','stack','debug','Error\x20in\x20writing\x20html\x20','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','rVQYT','captureError','CVCag','performance-report','pushErrors','/performance-report-','JUsXP','errors','vKRmG','format','eventsMap','3PfJzai','name','-end','_errorEvents','map','resolve','eOCtO','1373104HoOSDK','writeFileSync','stopMonitoring','error\x20in\x20measure\x20'];a121_0x41ce=function(){return _0x4486a6;};return a121_0x41ce();}function a121_0x56fa(_0x3c9bde,_0x308cb6){const _0x41ce8d=a121_0x41ce();return a121_0x56fa=function(_0x56face,_0x1bc1f1){_0x56face=_0x56face-0x1a7;let _0x2d6527=_0x41ce8d[_0x56face];return _0x2d6527;},a121_0x56fa(_0x3c9bde,_0x308cb6);}const a121_0x4eb08c=a121_0x56fa;(function(_0x34ab9b,_0x561071){const _0x16de60=a121_0x56fa,_0x2e7da7=_0x34ab9b();while(!![]){try{const _0x548ce7=-parseInt(_0x16de60(0x236))/0x1+-parseInt(_0x16de60(0x1bd))/0x2*(-parseInt(_0x16de60(0x1a8))/0x3)+parseInt(_0x16de60(0x1e8))/0x4*(-parseInt(_0x16de60(0x1be))/0x5)+-parseInt(_0x16de60(0x1c3))/0x6*(-parseInt(_0x16de60(0x1db))/0x7)+-parseInt(_0x16de60(0x1af))/0x8+-parseInt(_0x16de60(0x20c))/0x9*(-parseInt(_0x16de60(0x20e))/0xa)+parseInt(_0x16de60(0x224))/0xb*(parseInt(_0x16de60(0x1e7))/0xc);if(_0x548ce7===_0x561071)break;else _0x2e7da7['push'](_0x2e7da7['shift']());}catch(_0x442901){_0x2e7da7['push'](_0x2e7da7['shift']());}}}(a121_0x41ce,0x2989d));const fs=require('fs'),fsPromise=require(a121_0x4eb08c(0x23b)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a121_0x4eb08c(0x239)),util=require('util'),logger=require(a121_0x4eb08c(0x217))[a121_0x4eb08c(0x22a)],{getLogDir}=require('../logger'),{getProcessId,sleep,debug,getTestName}=require(a121_0x4eb08c(0x201));class PerformanceTester{static [a121_0x4eb08c(0x1eb)];static [a121_0x4eb08c(0x242)]=[];static [a121_0x4eb08c(0x1e2)]=[];static ['_errorEvents']=[];static ['started']=![];static ['jsonReportDirName']=a121_0x4eb08c(0x24b);static ['errorReportDirName']=process[a121_0x4eb08c(0x204)][a121_0x4eb08c(0x241)]?path[a121_0x4eb08c(0x1c0)](process[a121_0x4eb08c(0x204)][a121_0x4eb08c(0x241)],'error-report'):path[a121_0x4eb08c(0x1c0)](process[a121_0x4eb08c(0x1f4)](),a121_0x4eb08c(0x1ec));static ['errorReportFileName']=this[a121_0x4eb08c(0x1ff)]+a121_0x4eb08c(0x1b4)+getProcessId()+a121_0x4eb08c(0x21b);static ['details']={};static [a121_0x4eb08c(0x1a7)]={};static['startMonitoring'](_0x1e20e1,_0x392b0c=this['errorReportDirName']+a121_0x4eb08c(0x1b4)+getProcessId()+'.json'){const _0x295c7d=a121_0x4eb08c,_0x389f66={'TLnyS':function(_0x49adaa,_0x20ffe0){return _0x49adaa===_0x20ffe0;},'vKRmG':'measure','gTdkj':function(_0x4500a1){return _0x4500a1();},'ftWOk':function(_0x2d803a){return _0x2d803a();},'HHUxr':function(_0x566b8a,_0x3c3c6c){return _0x566b8a+_0x3c3c6c;},'iNEcM':_0x295c7d(0x1b7),'oeFNd':'function'};try{this[_0x295c7d(0x1bf)]=path[_0x295c7d(0x1c0)](_0x389f66[_0x295c7d(0x1da)](getLogDir),this['jsonReportDirName']),!_0x1e20e1&&(_0x1e20e1=this[_0x295c7d(0x1bf)]+_0x295c7d(0x24d)+_0x389f66['ftWOk'](getProcessId)+'.json'),!fs[_0x295c7d(0x21d)](this['jsonReportDirPath'])&&fs['mkdirSync'](this['jsonReportDirPath']);}catch(_0x39f699){logger[_0x295c7d(0x245)](_0x389f66[_0x295c7d(0x1f2)](_0x389f66[_0x295c7d(0x240)],_0x39f699));}if(this[_0x295c7d(0x210)]||!this[_0x295c7d(0x213)]())return;this[_0x295c7d(0x1eb)]=new PerformanceObserver(_0x4b3aa8=>{const _0x339428=_0x295c7d;_0x4b3aa8[_0x339428(0x228)]()[_0x339428(0x1ba)](_0xc54e4e=>{const _0x342894=_0x339428;if(_0x389f66[_0x342894(0x21e)](_0xc54e4e['entryType'],_0x389f66[_0x342894(0x250)])){let _0x578f86={};if(_0xc54e4e[_0x342894(0x1b6)])_0x578f86=_0xc54e4e[_0x342894(0x1b6)]();else for(const _0x2d98c2 in _0xc54e4e){_0x578f86[_0x2d98c2]=_0xc54e4e[_0x2d98c2];}this['details'][_0xc54e4e[_0x342894(0x1a9)]]&&(_0x578f86=Object[_0x342894(0x23c)](_0x578f86,this[_0x342894(0x1fe)][_0xc54e4e[_0x342894(0x1a9)]])),delete this[_0x342894(0x1fe)][_0xc54e4e[_0x342894(0x1a9)]],this[_0x342894(0x1e2)][_0x342894(0x218)](_0x578f86);}else this['_events']['push'](_0xc54e4e);});});const _0x2d3fab={};_0x2d3fab['buffered']=!![],_0x2d3fab[_0x295c7d(0x1e5)]=[_0x389f66[_0x295c7d(0x1fc)],_0x389f66[_0x295c7d(0x250)]],this[_0x295c7d(0x1eb)][_0x295c7d(0x1d7)](_0x2d3fab),this[_0x295c7d(0x210)]=!![],this[_0x295c7d(0x1dc)]=_0x1e20e1,this[_0x295c7d(0x237)]=_0x392b0c;}static[a121_0x4eb08c(0x1c5)](){return performance;}static[a121_0x4eb08c(0x206)](_0x239726,_0x584999){const _0x5f57b4=a121_0x4eb08c,_0x38b40b={};_0x38b40b[_0x5f57b4(0x1df)]=function(_0x55a72c,_0x122b6b){return _0x55a72c+_0x122b6b;},_0x38b40b[_0x5f57b4(0x208)]=function(_0x478f19,_0x58508f){return _0x478f19||_0x58508f;},_0x38b40b[_0x5f57b4(0x223)]=function(_0x1864d7,_0x30aff4){return _0x1864d7===_0x30aff4;};const _0x58a420=_0x38b40b,_0x12e366={};if(!_0x239726||_0x58a420['TiNvy'](_0x239726['length'],0x0))return;_0x239726[_0x5f57b4(0x1ac)](_0x17f2ae=>{const _0x13c32b=_0x5f57b4;!_0x12e366[_0x17f2ae['name']]&&(_0x12e366[_0x17f2ae['name']]=0x0),_0x12e366[_0x17f2ae[_0x13c32b(0x1a9)]]+=_0x17f2ae['duration'];});const _0x160817=_0x584999[_0x5f57b4(0x1e3)]((_0x1bab16,_0xf25a86)=>{const _0x36cbc9=_0x5f57b4;return _0x58a420['wUWeu'](_0x12e366[_0xf25a86],_0x58a420[_0x36cbc9(0x208)](_0x1bab16,0x0));},0x0);return _0x160817;}static async['calculateTimesFromMultipleFiles'](_0x504da8,_0x46eeaf){const _0x21a17=a121_0x4eb08c,_0xa46844={'BROqs':function(_0x45627c,_0x158c17){return _0x45627c+_0x158c17;},'TgRpW':function(_0x2255a6,_0x31842e){return _0x2255a6||_0x31842e;},'ZOrGM':function(_0x1b2ba3,_0x18ae68){return _0x1b2ba3===_0x18ae68;},'XXcNh':function(_0x4b5c0e,_0x542889){return _0x4b5c0e(_0x542889);},'tFJoE':function(_0x3bafc3,_0x3773fb){return _0x3bafc3(_0x3773fb);}};if(!_0x504da8||_0xa46844[_0x21a17(0x1ee)](_0x504da8[_0x21a17(0x1d0)],0x0))return 0x0;const _0x5e14cb=[];for(const _0x2b0916 of _0x504da8){const _0x36a4a5=path['join']('.',_0x2b0916);try{const _0x50e60e=this[_0x21a17(0x1b5)](_0x36a4a5);_0x50e60e[_0x21a17(0x1ac)](_0x20befc=>{const _0x1bcb20=_0x21a17;!_0x5e14cb[_0x20befc['name']]&&(_0x5e14cb[_0x20befc['name']]=0x0),_0x5e14cb[_0x20befc[_0x1bcb20(0x1a9)]]+=_0x20befc[_0x1bcb20(0x1e1)];});}catch(_0x45e336){_0xa46844['XXcNh'](debug,_0x21a17(0x22c)+_0x45e336[_0x21a17(0x203)]());}}const _0x588dfe=_0x46eeaf[_0x21a17(0x1e3)]((_0x432466,_0xbbf097)=>{const _0x1606d8=_0x21a17;return _0xa46844['BROqs'](_0x5e14cb[_0xbbf097],_0xa46844[_0x1606d8(0x1f9)](_0x432466,0x0));},0x0);return _0xa46844['tFJoE'](debug,_0x21a17(0x219)+_0x46eeaf+_0x21a17(0x21f)+_0x588dfe),_0x588dfe;}static['getEventsFromJSON'](_0x54ae39){const _0x25d851=a121_0x4eb08c;if(_0x54ae39){if(!fs[_0x25d851(0x21d)](_0x54ae39))return[];return JSON[_0x25d851(0x1e9)](fs['readFileSync'](_0x54ae39)[_0x25d851(0x203)]());}}static async['stopAndGenerate'](_0x676acd=a121_0x4eb08c(0x1cf),_0x4be5e9=null){const _0x38c3f1=a121_0x4eb08c,_0x477ba8={'QdmbY':function(_0x569d3d,_0x26a5d4){return _0x569d3d(_0x26a5d4);}};if(!this[_0x38c3f1(0x210)])return;await _0x477ba8['QdmbY'](sleep,0x1e),this[_0x38c3f1(0x1eb)]['disconnect'](),this['started']=![],this[_0x38c3f1(0x221)](this[_0x38c3f1(0x242)]);const _0xccf51b=this['generateHTMLReport'](this[_0x38c3f1(0x242)]),_0x39674a=path[_0x38c3f1(0x1c0)](process[_0x38c3f1(0x1f4)](),_0x676acd);fs['writeFile'](_0x39674a,_0xccf51b,_0x5eacfc=>{const _0x242f98=_0x38c3f1;if(_0x5eacfc){_0x477ba8[_0x242f98(0x23d)](debug,_0x242f98(0x246)+_0x5eacfc[_0x242f98(0x203)]());return;}_0x477ba8[_0x242f98(0x23d)](debug,_0x242f98(0x234)+_0x39674a);});if(_0x4be5e9)return this['calculateTimeFromEvents'](this[_0x38c3f1(0x242)],_0x4be5e9);}static[a121_0x4eb08c(0x1f7)](_0x26c303){const _0x78c4f6=a121_0x4eb08c,_0x16764b={};_0x16764b[_0x78c4f6(0x1ae)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x16764b[_0x78c4f6(0x231)]=_0x78c4f6(0x1f1),_0x16764b['KDeZd']=_0x78c4f6(0x247),_0x16764b[_0x78c4f6(0x209)]=_0x78c4f6(0x1e0);const _0x5a3761=_0x16764b;let _0x555047=_0x5a3761[_0x78c4f6(0x1ae)];return _0x555047+=_0x5a3761['qODpH'],_0x555047+=_0x5a3761['KDeZd'],_0x26c303[_0x78c4f6(0x1ba)](_0x2381eb=>{const _0x2620bb=_0x78c4f6;_0x555047+=_0x2620bb(0x227)+_0x2381eb[_0x2620bb(0x1a9)]+'</td><td>'+_0x2381eb[_0x2620bb(0x1e1)]+_0x2620bb(0x20b);}),_0x555047+=_0x5a3761['utwWt'],_0x555047;}static['generateJSON'](_0x2dd641){const _0xe9495=a121_0x4eb08c;if(!this[_0xe9495(0x1dc)])return;const _0x308501={};_0x2dd641[_0xe9495(0x1ac)](_0x46d570=>{const _0x52ae71=_0xe9495;!_0x308501[_0x46d570[_0x52ae71(0x1a9)]]&&(_0x308501[_0x46d570[_0x52ae71(0x1a9)]]=0x0),_0x308501[_0x46d570[_0x52ae71(0x1a9)]]+=_0x46d570[_0x52ae71(0x1e1)];});const _0x5c2400=Object[_0xe9495(0x1de)](_0x308501)[_0xe9495(0x1ac)](([_0x5e6aa6,_0x571409])=>{const _0x2c4a23=_0xe9495,_0x437fb9={};return _0x437fb9[_0x2c4a23(0x1a9)]=_0x5e6aa6,_0x437fb9[_0x2c4a23(0x1e1)]=_0x571409,_0x437fb9;});fs[_0xe9495(0x1b0)](this[_0xe9495(0x1dc)],JSON[_0xe9495(0x1d2)](_0x5c2400));}static[a121_0x4eb08c(0x213)](){const _0x4f336f=a121_0x4eb08c,_0x2f9a7a={};_0x2f9a7a[_0x4f336f(0x205)]=function(_0x43037f,_0x46a69d){return _0x43037f===_0x46a69d;},_0x2f9a7a[_0x4f336f(0x24e)]=_0x4f336f(0x225);const _0x1b1fdc=_0x2f9a7a;return!_0x1b1fdc[_0x4f336f(0x205)](process[_0x4f336f(0x204)][_0x4f336f(0x1b8)],_0x1b1fdc[_0x4f336f(0x24e)]);}static[a121_0x4eb08c(0x200)](_0x4f12c4,_0x4302a6,_0x3bb053=null,_0x29ded6={},_0x57d196=null){const _0x2856e6=a121_0x4eb08c,_0x13caa6={'pbknI':function(_0x1bc49e,_0x1244e2){return _0x1bc49e(_0x1244e2);},'WqXOb':function(_0x14b523,_0x1e654c){return _0x14b523 instanceof _0x1e654c;}};try{if(this[_0x2856e6(0x210)]&&this[_0x2856e6(0x213)]()){let _0x1f419e=_0x4f12c4;_0x3bb053&&(_0x1f419e=_0x4f12c4+'['+JSON[_0x2856e6(0x1d2)](_0x3bb053)+']');PerformanceTester['start'](_0x1f419e),this['details']&&(this['details'][_0x1f419e]=_0x29ded6);try{const _0x32f1e9=_0x4302a6['apply'](null,_0x57d196);if(_0x13caa6[_0x2856e6(0x1d9)](_0x32f1e9,Promise))return new Promise((_0x3c2a23,_0x18f2fb)=>{const _0x5588e0=_0x2856e6,_0x36a4ac={'SDZIV':function(_0x3c0e69,_0x48a18f){return _0x13caa6['pbknI'](_0x3c0e69,_0x48a18f);}};_0x32f1e9[_0x5588e0(0x21a)](_0x349334=>{const _0x48c97=_0x5588e0;PerformanceTester[_0x48c97(0x1bb)](_0x1f419e),_0x36a4ac['SDZIV'](_0x3c2a23,_0x349334);})['catch'](_0x1dd9df=>{const _0x2e2403=_0x5588e0;PerformanceTester[_0x2e2403(0x1bb)](_0x1f419e,![],util[_0x2e2403(0x251)](_0x1dd9df)),_0x36a4ac['SDZIV'](_0x18f2fb,_0x1dd9df);});});;return PerformanceTester[_0x2856e6(0x1bb)](_0x1f419e),_0x32f1e9;}catch(_0x4e2d49){PerformanceTester[_0x2856e6(0x1bb)](_0x1f419e,![],util[_0x2856e6(0x251)](_0x4e2d49));throw _0x4e2d49;}};return _0x4302a6[_0x2856e6(0x1f6)](null,_0x57d196);}catch(_0x341585){return logger['debug'](_0x2856e6(0x1b2)+(_0x341585[_0x2856e6(0x244)]||_0x341585[_0x2856e6(0x1c9)]||_0x341585)),_0x4302a6[_0x2856e6(0x1f6)](null,_0x57d196);}}static[a121_0x4eb08c(0x214)](_0x2b4cbd,_0x358397,_0x2314ff={}){const _0x74ceb4=a121_0x4eb08c,_0x107608={'lLlOa':function(_0x54cec4){return _0x54cec4();},'watUx':function(_0x3eb436){return _0x3eb436();}},_0x2181af=this;return _0x2314ff['worker']=_0x107608[_0x74ceb4(0x207)](getProcessId),_0x2314ff[_0x74ceb4(0x232)]=_0x107608[_0x74ceb4(0x1d1)](getTestName),_0x2314ff[_0x74ceb4(0x1e4)]=global[_0x74ceb4(0x212)]&&global[_0x74ceb4(0x212)][_0x74ceb4(0x235)],function(){const _0xa95e26=_0x74ceb4,_0x3603d7=[_0x2b4cbd,_0x358397,null,_0x2314ff][_0xa95e26(0x1dd)](arguments);return _0x2181af[_0xa95e26(0x200)][_0xa95e26(0x1f6)](_0x2181af,_0x3603d7);};}static['getCleanedPerfEvents'](){const _0x220d32=a121_0x4eb08c,_0x1200c6=/(^.*)\[(.*)\]$/,_0x1b5ee8={},_0xe51db5={},_0xa3ec=[],_0x57913d=this[_0x220d32(0x1e2)]['splice'](0x0,this['_measureEvents'][_0x220d32(0x1d0)]);for(const _0xf508ad of _0x57913d){const _0x93cf4c=_0xf508ad['name'][_0x220d32(0x1f0)](_0x1200c6),_0x180383=Object[_0x220d32(0x23c)]({},_0xf508ad);_0x93cf4c&&(_0x180383['name']=_0x93cf4c[0x1],_0x180383[_0x220d32(0x1cb)]=JSON[_0x220d32(0x1e9)](_0x93cf4c[0x2])),_0xa3ec['push'](_0x180383);}return _0xa3ec;}static[a121_0x4eb08c(0x1f8)](){const _0x196ef3=a121_0x4eb08c,_0x3c7d48={'nGLOK':function(_0x20dcce){return _0x20dcce();},'lPZDv':function(_0x5a7490,_0x5c6c56){return _0x5a7490+_0x5c6c56;},'dHWFC':_0x196ef3(0x1fb),'xWqnt':function(_0x19dae0,_0xa5b6b4){return _0x19dae0===_0xa5b6b4;}};try{this[_0x196ef3(0x1bf)]=path[_0x196ef3(0x1c0)](_0x3c7d48['nGLOK'](getLogDir),this['jsonReportDirName']);if(fs['existsSync'](this[_0x196ef3(0x1bf)])){const _0x590382=fs[_0x196ef3(0x211)](this['jsonReportDirPath']);for(const _0x13f6f3 of _0x590382){fs[_0x196ef3(0x220)](path[_0x196ef3(0x1c0)](this[_0x196ef3(0x1bf)],_0x13f6f3));}}}catch(_0x4ea431){logger[_0x196ef3(0x245)](_0x3c7d48[_0x196ef3(0x1ef)](_0x3c7d48[_0x196ef3(0x1ea)],_0x4ea431));}if(_0x3c7d48['xWqnt'](this[_0x196ef3(0x1e2)]['length'],0x0))return;const _0x4220ec=this['getCleanedPerfEvents'](),_0x293c0c=JSON[_0x196ef3(0x1d2)](_0x4220ec),_0x30a354=_0x3c7d48['lPZDv'](_0x293c0c[_0x196ef3(0x1e6)](0x1,-0x1),',');fs[_0x196ef3(0x1ce)](this[_0x196ef3(0x1dc)],_0x30a354);}static async[a121_0x4eb08c(0x22d)](){const _0x225ddd=a121_0x4eb08c,_0x49bd24={'YjTZG':function(_0x58850d){return _0x58850d();},'mkCqW':function(_0x429f40,_0x58a1d1){return _0x429f40===_0x58a1d1;},'pkCIi':_0x225ddd(0x1ca),'JznoX':'utf-8','PJVKe':'modified-key-metrics.json','WtBPg':function(_0x2e8f5c,_0x3041a6){return _0x2e8f5c+_0x3041a6;},'YqssC':function(_0x36c065,_0x460545){return _0x36c065+_0x460545;},'PrVDs':_0x225ddd(0x230),'unieR':_0x225ddd(0x22b),'lUZQn':'Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','hUqmj':function(_0x8a947d,_0x336aa2){return _0x8a947d>_0x336aa2;}};this['jsonReportDirPath']=path['join'](_0x49bd24[_0x225ddd(0x22f)](getLogDir),this[_0x225ddd(0x20a)]);if(!this['started']||_0x49bd24[_0x225ddd(0x1fd)](this['_measureEvents'][_0x225ddd(0x1d0)],0x0))return[];if(!fs[_0x225ddd(0x21d)](this['jsonReportDirPath']))return this[_0x225ddd(0x1e2)];const _0x117804=(await fsPromise[_0x225ddd(0x21c)](this[_0x225ddd(0x1bf)]))[_0x225ddd(0x1ac)](_0x7266f5=>path[_0x225ddd(0x1ad)](this['jsonReportDirPath'],_0x7266f5));try{const _0x37888a=path['dirname'](this['jsonReportDirPath']),_0x5f1011=path[_0x225ddd(0x1c0)](_0x37888a,_0x49bd24[_0x225ddd(0x1b3)]);if(fs[_0x225ddd(0x21d)](_0x5f1011))try{await fsPromise[_0x225ddd(0x1fa)](_0x5f1011,fs[_0x225ddd(0x1bc)][_0x225ddd(0x1c8)]);const _0x560935=await fsPromise[_0x225ddd(0x1d6)](_0x5f1011,_0x49bd24[_0x225ddd(0x22e)]),_0x377d33=JSON[_0x225ddd(0x1e9)](_0x560935),_0xb619c8=path['join'](this[_0x225ddd(0x1bf)],_0x49bd24[_0x225ddd(0x1b9)]);let _0x3eb55d='';Array[_0x225ddd(0x1c1)](_0x377d33)?_0x3eb55d=_0x49bd24[_0x225ddd(0x1c7)](_0x377d33[_0x225ddd(0x1ac)](_0x1af4b2=>JSON[_0x225ddd(0x1d2)](_0x1af4b2))['join'](','),','):_0x3eb55d=_0x49bd24[_0x225ddd(0x243)](JSON[_0x225ddd(0x1d2)](_0x377d33),','),await fsPromise[_0x225ddd(0x1c4)](_0xb619c8,_0x3eb55d),_0x117804[_0x225ddd(0x218)](_0xb619c8),await fsPromise['unlink'](_0x5f1011);}catch(_0x5b1d50){logger[_0x225ddd(0x23e)](util[_0x225ddd(0x251)](_0x49bd24['PrVDs'],_0x5b1d50[_0x225ddd(0x244)]||_0x5b1d50[_0x225ddd(0x1c9)]||_0x5b1d50));}else logger[_0x225ddd(0x23e)](_0x49bd24[_0x225ddd(0x1ed)]);}catch(_0x5667f6){logger[_0x225ddd(0x23e)](util[_0x225ddd(0x251)](_0x49bd24['lUZQn'],_0x5667f6[_0x225ddd(0x244)]||_0x5667f6[_0x225ddd(0x1c9)]||_0x5667f6));}let _0x10a858=(await Promise[_0x225ddd(0x1d8)](_0x117804[_0x225ddd(0x1ac)](_0x4ad612=>fsPromise[_0x225ddd(0x1d6)](_0x4ad612,_0x225ddd(0x1f3)))))[_0x225ddd(0x1ac)](_0x499bdf=>'['+_0x499bdf[_0x225ddd(0x1e6)](0x0,-0x1)+']')[_0x225ddd(0x1ac)](_0xcc2f06=>JSON['parse'](_0xcc2f06))[_0x225ddd(0x202)]();return _0x49bd24['hUqmj'](this[_0x225ddd(0x1e2)][_0x225ddd(0x1d0)],0x0)&&(_0x10a858=_0x10a858[_0x225ddd(0x1dd)](this[_0x225ddd(0x23f)]())),this[_0x225ddd(0x1eb)][_0x225ddd(0x20d)](),_0x10a858;}static[a121_0x4eb08c(0x24c)](){const _0x38d0b3=a121_0x4eb08c,_0x10daa6={};_0x10daa6[_0x38d0b3(0x1cd)]=function(_0x265c4d,_0xbdfe59){return _0x265c4d===_0xbdfe59;},_0x10daa6['iuMxz']=function(_0x14e51f,_0xc95025){return _0x14e51f+_0xc95025;};const _0x36ff6b=_0x10daa6;if(_0x36ff6b[_0x38d0b3(0x1cd)](this['_errorEvents']['length'],0x0))return;const _0x18a7fc=JSON['stringify'](this['_errorEvents']),_0x4d1fe5=_0x36ff6b['iuMxz'](_0x18a7fc['slice'](0x1,-0x1),',');fs[_0x38d0b3(0x1ce)](this[_0x38d0b3(0x233)],_0x4d1fe5);}static[a121_0x4eb08c(0x229)](){const _0x7dce6c=a121_0x4eb08c,_0x5d176f={};_0x5d176f['CVCag']=function(_0x46f77e,_0x2252f9){return _0x46f77e>_0x2252f9;};const _0x37d8ab=_0x5d176f;if(this['errorReportFileName']){if(!fs[_0x7dce6c(0x21d)](this[_0x7dce6c(0x237)]))return this[_0x7dce6c(0x1ab)];let _0x480879=fs['readFileSync'](this['errorReportFileName'])[_0x7dce6c(0x203)]();_0x480879='['+_0x480879['slice'](0x0,-0x1)+']';let _0x4b45b1=JSON[_0x7dce6c(0x1e9)](_0x480879);return _0x37d8ab[_0x7dce6c(0x24a)](this['_errorEvents'][_0x7dce6c(0x1d0)],0x0)&&(_0x4b45b1=_0x4b45b1['concat'](this['_errorEvents'])),fs[_0x7dce6c(0x220)](this[_0x7dce6c(0x237)]),_0x4b45b1;}}static[a121_0x4eb08c(0x249)](_0x1134c0){const _0x53882b=a121_0x4eb08c;if(!this['isEnabled']())return;this[_0x53882b(0x1ab)][_0x53882b(0x218)]({'message':_0x1134c0['message'],'trace':_0x1134c0['stack'],'code':_0x1134c0[_0x53882b(0x20f)]||null,'time':new Date()});}static[a121_0x4eb08c(0x1b1)](){const _0x1fd200=a121_0x4eb08c;try{if(!this[_0x1fd200(0x213)]())return;this['_observer'][_0x1fd200(0x20d)](),this[_0x1fd200(0x1f8)](),this[_0x1fd200(0x24c)]();}catch(_0xeb7632){logger['debug'](_0x1fd200(0x1cc)+util[_0x1fd200(0x251)](_0xeb7632));}}static async[a121_0x4eb08c(0x23a)](){const _0x15eeb0=a121_0x4eb08c,_0x5e0306={'PtBfX':function(_0x1b0e43,_0x2ea57a){return _0x1b0e43(_0x2ea57a);}};await _0x5e0306['PtBfX'](sleep,0x1e);const _0x403f45=await this['finalizePerfMeasures'](),_0x1581fd=this['finalizeErrors']();if(!this[_0x15eeb0(0x213)]()){const _0x1243e2={};return _0x1243e2[_0x15eeb0(0x1d4)]=[],_0x1243e2[_0x15eeb0(0x24f)]=[],_0x1243e2;}const _0x3d7102={};return _0x3d7102[_0x15eeb0(0x1d4)]=_0x403f45,_0x3d7102[_0x15eeb0(0x24f)]=_0x1581fd,_0x3d7102;}static[a121_0x4eb08c(0x238)](_0x570625){const _0xcd3490=a121_0x4eb08c,_0x5d2f1c={};_0x5d2f1c[_0xcd3490(0x215)]=function(_0x4d3b4c,_0x486afb){return _0x4d3b4c+_0x486afb;},_0x5d2f1c['VUJWM']=_0xcd3490(0x216);const _0x40e96d=_0x5d2f1c,_0x4264a4=_0x40e96d[_0xcd3490(0x215)](_0x570625,_0x40e96d[_0xcd3490(0x1c6)]);if(this[_0xcd3490(0x1a7)][_0x4264a4])return;performance[_0xcd3490(0x1d5)](_0x4264a4),this[_0xcd3490(0x1a7)][_0x4264a4]=0x1;}static[a121_0x4eb08c(0x1bb)](_0x2c70b2,_0x540ede=!![],_0x3b8852=null,_0x1a9172={}){const _0x49ed6e=a121_0x4eb08c,_0x1d9544={'dLKyx':function(_0x55fc4d,_0x2909c0){return _0x55fc4d+_0x2909c0;},'VzfnA':_0x49ed6e(0x1aa),'rVQYT':function(_0x3ba6b5,_0x14bd2a){return _0x3ba6b5+_0x14bd2a;},'QRVRY':'-start','KfEjC':function(_0x15dc54){return _0x15dc54();},'zPBzw':function(_0x498ff1){return _0x498ff1();}};performance[_0x49ed6e(0x1d5)](_0x1d9544[_0x49ed6e(0x1d3)](_0x2c70b2,_0x1d9544[_0x49ed6e(0x1c2)])),performance['measure'](_0x2c70b2,_0x1d9544['rVQYT'](_0x2c70b2,_0x1d9544['QRVRY']),_0x1d9544[_0x49ed6e(0x248)](_0x2c70b2,_0x1d9544[_0x49ed6e(0x1c2)]));const _0x4090a1={};_0x4090a1[_0x49ed6e(0x1f5)]=_0x540ede,_0x4090a1[_0x49ed6e(0x226)]=_0x3b8852,this['details'][_0x2c70b2]=Object['assign'](_0x4090a1,Object[_0x49ed6e(0x23c)](Object[_0x49ed6e(0x23c)]({'worker':_0x1d9544['KfEjC'](getProcessId),'platform':global['__platformCaps']&&global[_0x49ed6e(0x212)][_0x49ed6e(0x235)],'testName':_0x1d9544[_0x49ed6e(0x222)](getTestName)},_0x1a9172),this[_0x49ed6e(0x1fe)][_0x2c70b2]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x7dfc10=a122_0x2b3a;(function(_0x4dc0cb,_0x349d8b){const _0x440c5b=a122_0x2b3a,_0x408dbb=_0x4dc0cb();while(!![]){try{const _0x3f8dd5=parseInt(_0x440c5b(0x1a6))/0x1+-parseInt(_0x440c5b(0x1a9))/0x2+-parseInt(_0x440c5b(0x1ba))/0x3*(parseInt(_0x440c5b(0x211))/0x4)+-parseInt(_0x440c5b(0x20c))/0x5*(-parseInt(_0x440c5b(0x1f3))/0x6)+parseInt(_0x440c5b(0x200))/0x7+-parseInt(_0x440c5b(0x1f4))/0x8*(parseInt(_0x440c5b(0x1d0))/0x9)+parseInt(_0x440c5b(0x213))/0xa;if(_0x3f8dd5===_0x349d8b)break;else _0x408dbb['push'](_0x408dbb['shift']());}catch(_0x3bc148){_0x408dbb['push'](_0x408dbb['shift']());}}}(a122_0x3a52,0x4bb5d));function a122_0x2b3a(_0x2ea613,_0x28942b){const _0x3a529b=a122_0x3a52();return a122_0x2b3a=function(_0x2b3a96,_0x50c20c){_0x2b3a96=_0x2b3a96-0x1a0;let _0x3f8a7a=_0x3a529b[_0x2b3a96];return _0x3f8a7a;},a122_0x2b3a(_0x2ea613,_0x28942b);}const path=require(a122_0x7dfc10(0x1c1)),util=require(a122_0x7dfc10(0x1a3)),{importFileFromPWCore}=require(a122_0x7dfc10(0x1b4)),helper=require(a122_0x7dfc10(0x1b4)),logger=require('./logger')[a122_0x7dfc10(0x20e)],W3CMapping=require('./w3cMapping')[a122_0x7dfc10(0x203)](),constants=require(a122_0x7dfc10(0x1e4)),BrowserstackCLI=require(a122_0x7dfc10(0x21a)),CLIUtils=require(a122_0x7dfc10(0x1a4));function a122_0x3a52(){const _0x1095fb=['NLLoZ','workers','3731763Hgjree','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','YjJpb','W3CMapping','kkovE','capabilities','getPlaywrightConfig','setFrameworkDetail','getBuildProductMap','PmRAk','browserstack.testhubBuildUuid','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','53015uVnTbn','browserstack.accessibilityOptions.scannerProcessingTimeout','winstonLogger','config','chrome','4isSIDX','debug','5881350msulWj','error','generatePlaywrightUrl','bstack:options','./testhub/utils','client','browserstack.accessibilityOptions.scannerVersion','../bin/v2/browserstackCLI','\x20flow','getConfig','Playwright\x20not\x20available:\x20','browser','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','util','../bin/v2/cliUtils','use','277195bCLuWO','jhfEf','setBrowserstackConfig','1150688HEaroi','vPtvd','configPath','KadZh','message','\x20for\x20','fkTQW','BS_A11Y_JWT','klFEn','parse','BROWSERSTACK_TESTHUB_UUID','./helper','BiSDi','SICni','rqqJC','FRAMEWORKS','stringify','1146045YGnERM','lib','hXjbt','uCjZr','__launchCaps','Received\x20modified\x20config\x20from\x20gRPC:\x20','length','path','Error\x20getting\x20Playwright\x20BrowserType:\x20','bootstrap','gzuRO','getBrowserFromCaps','projects','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','No\x20modified\x20config\x20received\x20from\x20gRPC','browserstack.accessibilityOptions.wcagVersion','exports','checkPwandBootstrapCli','fiTpa','AJSfJ','entries','YWMXS','1209645sHoZCM','txBaY','format','dZrLh','BROWSERSTACK_PRODUCT_MAP','platformCaps','getModifiedConfigFromCLI','getPlaywrightModulePath','importFileFromPWCore','TNPoJ','vxMvX','pfxCR','browserType.js','CoAib','browserstack.accessibilityOptions.authToken','join','BBHID','getInstance','Could\x20not\x20import\x20GrpcClient:\x20','sgUrD','../bin/utils/constants','Mbprm','UwhBE','browserstack.buildProductMap','__accessibilityOptions','__platformCaps','framework','cliConfig','NRDGr','getPlaywrightUrl','jKpof','PLAYWRIGHT','UIqEp','env','yXmDe','78LEZscD','16CGMYbZ','TfyEh','GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request','isPlaywrightAvailable','mWoJP','lfvLG','isArray','getPlaywrightBrowserType','CIvmc','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20'];a122_0x3a52=function(){return _0x1095fb;};return a122_0x3a52();}let GrpcClient;try{GrpcClient=require('../bin/v2/grpcClient');}catch(a122_0x1e135a){logger['debug'](a122_0x7dfc10(0x1e2)+a122_0x1e135a[a122_0x7dfc10(0x1ad)]),GrpcClient=null;}const convertW3CToJsonWire=_0x4063ae=>{const _0x4796bc=a122_0x7dfc10,_0x457532={};_0x457532['vxMvX']=function(_0x1971e5,_0x3bc4a1){return _0x1971e5||_0x3bc4a1;},_0x457532[_0x4796bc(0x1d9)]=function(_0x234152,_0x26101b){return _0x234152===_0x26101b;},_0x457532[_0x4796bc(0x1cf)]=_0x4796bc(0x216),_0x457532[_0x4796bc(0x1f0)]=function(_0x6c43d7,_0x4c12f5){return _0x6c43d7===_0x4c12f5;},_0x457532[_0x4796bc(0x209)]=function(_0x37d7a8,_0x26cbe1){return _0x37d7a8 in _0x26cbe1;};const _0x5b9d0e=_0x457532,_0x2f8d29={};for(const [_0x324f8b,_0x198db3]of Object[_0x4796bc(0x1ce)](_0x5b9d0e[_0x4796bc(0x1da)](_0x4063ae,{}))){if(_0x5b9d0e[_0x4796bc(0x1d9)](_0x324f8b,_0x5b9d0e['YWMXS']))continue;let _0x54a7a3=![];for(const [_0x396c9e,_0x52249f]of Object[_0x4796bc(0x1ce)](W3CMapping)){if(_0x5b9d0e['UIqEp'](_0x324f8b,_0x52249f)){_0x2f8d29[_0x396c9e]=_0x198db3,_0x54a7a3=!![];break;}}!_0x54a7a3&&(_0x2f8d29[_0x324f8b]=_0x198db3);}const _0x10c44a=_0x4063ae[_0x5b9d0e[_0x4796bc(0x1cf)]]||{};for(const [_0x154726,_0x1207d8]of Object['entries'](_0x10c44a)){let _0x6e8a50=![];for(const [_0xf6ba52,_0x3d54a5]of Object[_0x4796bc(0x1ce)](W3CMapping)){if(_0x5b9d0e['TNPoJ'](_0x154726,_0x3d54a5)){_0x2f8d29[_0xf6ba52]=_0x1207d8,_0x6e8a50=!![];break;}}!_0x6e8a50&&!_0x5b9d0e['PmRAk'](_0x154726,_0x2f8d29)&&(_0x2f8d29[_0x154726]=_0x1207d8);}return logger[_0x4796bc(0x212)](_0x4796bc(0x1fd)+JSON[_0x4796bc(0x1b9)](_0x2f8d29)),_0x2f8d29;},getModifiedConfigFromCLI=async _0x2df92f=>{const _0x2b5847=a122_0x7dfc10,_0x512a78={};_0x512a78[_0x2b5847(0x1cc)]=_0x2b5847(0x1f6),_0x512a78[_0x2b5847(0x1d3)]='cucumberjs-pw',_0x512a78[_0x2b5847(0x1e6)]=_0x2b5847(0x1a2),_0x512a78[_0x2b5847(0x1af)]=_0x2b5847(0x1c8),_0x512a78['Mbprm']=function(_0x378dca,_0x29ec75){return _0x378dca>_0x29ec75;},_0x512a78[_0x2b5847(0x1f9)]='No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response';const _0x3c26b5=_0x512a78;try{if(!GrpcClient)return logger[_0x2b5847(0x212)](_0x3c26b5[_0x2b5847(0x1cc)]),null;const _0x3aeb43={};_0x3aeb43['capabilities']=_0x2df92f,_0x3aeb43[_0x2b5847(0x1ea)]=_0x3c26b5[_0x2b5847(0x1d3)],_0x3aeb43[_0x2b5847(0x1ff)]=0x1,_0x3aeb43['projects']=[];const _0x3a8f59=_0x3aeb43;logger[_0x2b5847(0x212)](_0x3c26b5[_0x2b5847(0x1e6)]);const _0x71a505={};_0x71a505['playwrightConfigObject']=_0x3a8f59;const _0x5be730=await GrpcClient[_0x2b5847(0x1e1)]()[_0x2b5847(0x206)](_0x71a505);if(!_0x5be730[_0x2b5847(0x21c)]())return logger[_0x2b5847(0x212)](_0x3c26b5[_0x2b5847(0x1af)]),null;const _0x243fbc=JSON[_0x2b5847(0x1b2)](_0x5be730['getConfig']());logger['debug'](_0x2b5847(0x1bf)+JSON[_0x2b5847(0x1b9)](_0x243fbc));if(_0x243fbc[_0x2b5847(0x205)]&&Array[_0x2b5847(0x1fa)](_0x243fbc[_0x2b5847(0x205)])&&_0x3c26b5[_0x2b5847(0x1e5)](_0x243fbc[_0x2b5847(0x205)][_0x2b5847(0x1c0)],0x0))return _0x243fbc['capabilities'][0x0];else{if(_0x243fbc[_0x2b5847(0x1c6)]&&Array['isArray'](_0x243fbc['projects'])&&_0x3c26b5[_0x2b5847(0x1e5)](_0x243fbc[_0x2b5847(0x1c6)][_0x2b5847(0x1c0)],0x0)){const _0x4e86b8=_0x243fbc[_0x2b5847(0x1c6)][0x0];if(_0x4e86b8[_0x2b5847(0x1a5)]&&_0x4e86b8[_0x2b5847(0x1a5)]['platformCaps'])return _0x4e86b8[_0x2b5847(0x1a5)][_0x2b5847(0x1d5)];}}return logger[_0x2b5847(0x212)](_0x3c26b5[_0x2b5847(0x1f9)]),null;}catch(_0x2a4fa4){logger[_0x2b5847(0x214)](_0x2b5847(0x20b)+_0x2a4fa4[_0x2b5847(0x1ad)]);throw _0x2a4fa4;}},generatePlaywrightUrl=(_0x4cde49,_0x1d59d8)=>{const _0x25a92f=a122_0x7dfc10,_0x1bef7b={'CoAib':function(_0x158ef8,_0x223a94){return _0x158ef8!==_0x223a94;},'oVENa':function(_0x4551a0,_0x1c48ef){return _0x4551a0!==_0x1c48ef;},'kkovE':function(_0x2585db,_0x54ff79){return _0x2585db!==_0x54ff79;},'uCjZr':function(_0x7d08f7,_0x352c5f){return _0x7d08f7!==_0x352c5f;},'NLLoZ':function(_0x52256a,_0x802ffc){return _0x52256a(_0x802ffc);},'BiSDi':function(_0x34652b,_0x3234ec){return _0x34652b||_0x3234ec;},'klFEn':function(_0x157e5d,_0xc0b2c0){return _0x157e5d(_0xc0b2c0);},'mWoJP':_0x25a92f(0x1de),'YjJpb':_0x25a92f(0x1c9),'CIvmc':_0x25a92f(0x219),'sgUrD':_0x25a92f(0x20d),'gzuRO':_0x25a92f(0x20a),'yXmDe':_0x25a92f(0x1e7),'vPtvd':function(_0xd7862d,_0x1753f6){return _0xd7862d+_0x1753f6;}},_0x558e04=helper[_0x25a92f(0x1ed)](_0x4cde49),_0x5b2459=_0x1bef7b[_0x25a92f(0x1fe)](convertW3CToJsonWire,_0x1d59d8);try{const _0x583028=[_0x1bef7b[_0x25a92f(0x1b5)](_0x1d59d8,{}),global[_0x25a92f(0x1be)]||{},global[_0x25a92f(0x1e9)]||{},global[_0x25a92f(0x1e8)]||{}],_0x1c93b6=_0xe83def=>{const _0x2e95d5=_0x25a92f;if(_0x1bef7b[_0x2e95d5(0x1dd)](_0x5b2459[_0xe83def],undefined)&&_0x1bef7b['oVENa'](_0x5b2459[_0xe83def],null)&&_0x1bef7b[_0x2e95d5(0x204)](_0x5b2459[_0xe83def],''))return;for(const _0x2486f1 of _0x583028){if(_0x2486f1&&_0x1bef7b['CoAib'](_0x2486f1[_0xe83def],undefined)&&_0x1bef7b[_0x2e95d5(0x1dd)](_0x2486f1[_0xe83def],null)&&_0x1bef7b[_0x2e95d5(0x1bd)](_0x2486f1[_0xe83def],'')){_0x5b2459[_0xe83def]=_0x2486f1[_0xe83def];return;}}};_0x1bef7b[_0x25a92f(0x1b1)](_0x1c93b6,_0x1bef7b[_0x25a92f(0x1f8)]),_0x1bef7b[_0x25a92f(0x1b1)](_0x1c93b6,_0x1bef7b[_0x25a92f(0x202)]),_0x1bef7b[_0x25a92f(0x1b1)](_0x1c93b6,_0x1bef7b[_0x25a92f(0x1fc)]),_0x1bef7b[_0x25a92f(0x1fe)](_0x1c93b6,_0x1bef7b[_0x25a92f(0x1e3)]),!_0x5b2459[_0x1bef7b['mWoJP']]&&process[_0x25a92f(0x1f1)][_0x25a92f(0x1b0)]&&(_0x5b2459[_0x1bef7b['mWoJP']]=process[_0x25a92f(0x1f1)][_0x25a92f(0x1b0)]);}catch(_0x2f7854){logger[_0x25a92f(0x212)](_0x25a92f(0x1c7)+util[_0x25a92f(0x1d2)](_0x2f7854));}return _0x5b2459[_0x1bef7b[_0x25a92f(0x1c4)]]=process[_0x25a92f(0x1f1)][_0x25a92f(0x1b3)],_0x5b2459[_0x1bef7b[_0x25a92f(0x1f2)]]=helper[_0x25a92f(0x208)](),_0x1bef7b[_0x25a92f(0x1aa)](_0x558e04,_0x1bef7b[_0x25a92f(0x1fe)](encodeURIComponent,JSON[_0x25a92f(0x1b9)](_0x5b2459)));},getBrowserFromCaps=_0x254e5f=>{const _0x456848=a122_0x7dfc10,_0x515fdd={};_0x515fdd[_0x456848(0x1ee)]=_0x456848(0x210);const _0x1edff6=_0x515fdd;return _0x254e5f['browserName']||_0x254e5f[_0x456848(0x1a1)]||_0x1edff6[_0x456848(0x1ee)];},isPlaywrightAvailable=()=>{const _0x153261=a122_0x7dfc10,_0x3ee834={'pfxCR':_0x153261(0x1bb),'hXjbt':_0x153261(0x218),'AJSfJ':_0x153261(0x1dc),'TfyEh':function(_0x462bf3,_0x1e363b){return _0x462bf3(_0x1e363b);}};try{const _0x4371a8=path[_0x153261(0x1df)](_0x3ee834[_0x153261(0x1db)],_0x3ee834[_0x153261(0x1bc)],_0x3ee834[_0x153261(0x1cd)]),_0x537185=_0x3ee834[_0x153261(0x1f5)](importFileFromPWCore,_0x4371a8);return!!_0x537185;}catch(_0x3f0b35){return logger[_0x153261(0x212)](_0x153261(0x1a0)+util['format'](_0x3f0b35)),![];}},getPlaywrightBrowserType=()=>{const _0x2fe6c6=a122_0x7dfc10,_0x29ac5d={'NRDGr':'lib','BBHID':_0x2fe6c6(0x218),'rqqJC':_0x2fe6c6(0x1dc),'jhfEf':function(_0x594f3b,_0x142403){return _0x594f3b(_0x142403);}};try{const _0x13d25a=path['join'](_0x29ac5d[_0x2fe6c6(0x1ec)],_0x29ac5d[_0x2fe6c6(0x1e0)],_0x29ac5d[_0x2fe6c6(0x1b7)]),_0x4e8a16=_0x29ac5d[_0x2fe6c6(0x1a7)](importFileFromPWCore,_0x13d25a);return _0x4e8a16?_0x4e8a16['BrowserType']:null;}catch(_0x43041e){return logger[_0x2fe6c6(0x212)](_0x2fe6c6(0x1c2)+util[_0x2fe6c6(0x1d2)](_0x43041e)),null;}},getPlaywrightModulePath=()=>{const _0xa8a47b=a122_0x7dfc10,_0x2af629={};_0x2af629[_0xa8a47b(0x1b6)]=_0xa8a47b(0x201);const _0x425989=_0x2af629;return logger[_0xa8a47b(0x212)](_0x425989[_0xa8a47b(0x1b6)]),null;},getBrowserTypePath=()=>{const _0x362d17=a122_0x7dfc10,_0x310803={};_0x310803[_0x362d17(0x1ac)]='getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead';const _0x12e0b6=_0x310803;return logger[_0x362d17(0x212)](_0x12e0b6[_0x362d17(0x1ac)]),null;},checkPwandBootstrapCli=async(_0x5e4777,_0x5cf475,_0x572899)=>{const _0x452351=a122_0x7dfc10,_0xbc8093={'txBaY':function(_0x51e518,_0x1cf7a5){return _0x51e518(_0x1cf7a5);},'qhzKc':_0x452351(0x217)};if(_0x5e4777){const _0x2fbccd=constants[_0x452351(0x1b8)][_0x452351(0x1ef)];logger[_0x452351(0x212)]('Detected\x20Playwright\x20version\x20'+_0x5e4777+_0x452351(0x1ae)+_0x5cf475+_0x452351(0x21b)),CLIUtils[_0x452351(0x207)](_0x5cf475,_0x2fbccd);const {getProductMap:_0x51375d}=_0xbc8093[_0x452351(0x1d1)](require,_0xbc8093['qhzKc']);process[_0x452351(0x1f1)][_0x452351(0x1d4)]=JSON['stringify'](_0xbc8093['txBaY'](_0x51375d,_0x572899[_0x452351(0x20f)])),BrowserstackCLI[_0x452351(0x1e1)]()[_0x452351(0x1a8)](_0x572899[_0x452351(0x20f)],_0x572899[_0x452351(0x1ab)],_0x572899[_0x452351(0x1eb)]),await BrowserstackCLI[_0x452351(0x1e1)]()[_0x452351(0x1c3)]();}},a122_0x53197e={};a122_0x53197e['convertW3CToJsonWire']=convertW3CToJsonWire,a122_0x53197e[a122_0x7dfc10(0x1d6)]=getModifiedConfigFromCLI,a122_0x53197e[a122_0x7dfc10(0x215)]=generatePlaywrightUrl,a122_0x53197e[a122_0x7dfc10(0x1c5)]=getBrowserFromCaps,a122_0x53197e[a122_0x7dfc10(0x1f7)]=isPlaywrightAvailable,a122_0x53197e[a122_0x7dfc10(0x1fb)]=getPlaywrightBrowserType,a122_0x53197e[a122_0x7dfc10(0x1d7)]=getPlaywrightModulePath,a122_0x53197e['getBrowserTypePath']=getBrowserTypePath,a122_0x53197e[a122_0x7dfc10(0x1d8)]=importFileFromPWCore,a122_0x53197e[a122_0x7dfc10(0x1cb)]=checkPwandBootstrapCli,module[a122_0x7dfc10(0x1ca)]=a122_0x53197e;
|
|
1
|
+
const a122_0x19e715=a122_0xe760;(function(_0x43f101,_0x200865){const _0x3b8ecc=a122_0xe760,_0x3f3d01=_0x43f101();while(!![]){try{const _0x3bf2d2=parseInt(_0x3b8ecc(0x180))/0x1+parseInt(_0x3b8ecc(0x15f))/0x2*(parseInt(_0x3b8ecc(0x1be))/0x3)+-parseInt(_0x3b8ecc(0x15c))/0x4+-parseInt(_0x3b8ecc(0x1a5))/0x5+parseInt(_0x3b8ecc(0x1b3))/0x6+parseInt(_0x3b8ecc(0x16c))/0x7*(-parseInt(_0x3b8ecc(0x171))/0x8)+-parseInt(_0x3b8ecc(0x166))/0x9*(-parseInt(_0x3b8ecc(0x19d))/0xa);if(_0x3bf2d2===_0x200865)break;else _0x3f3d01['push'](_0x3f3d01['shift']());}catch(_0x37e194){_0x3f3d01['push'](_0x3f3d01['shift']());}}}(a122_0x506e,0xe9072));const path=require('path'),util=require(a122_0x19e715(0x17e)),{importFileFromPWCore}=require(a122_0x19e715(0x176)),helper=require(a122_0x19e715(0x176)),logger=require(a122_0x19e715(0x1c4))[a122_0x19e715(0x1a6)],W3CMapping=require(a122_0x19e715(0x1cc))['W3CMapping'](),constants=require(a122_0x19e715(0x167)),BrowserstackCLI=require(a122_0x19e715(0x187)),CLIUtils=require('../bin/v2/cliUtils');let GrpcClient;try{GrpcClient=require(a122_0x19e715(0x189));}catch(a122_0x201ec6){logger['debug'](a122_0x19e715(0x177)+a122_0x201ec6[a122_0x19e715(0x174)]),GrpcClient=null;}const convertW3CToJsonWire=_0x20eaa6=>{const _0x54f75a=a122_0x19e715,_0x3adf51={};_0x3adf51[_0x54f75a(0x1d0)]=function(_0x15aacd,_0xfbe294){return _0x15aacd||_0xfbe294;},_0x3adf51[_0x54f75a(0x15e)]=function(_0x9ad3bd,_0x25dde0){return _0x9ad3bd===_0x25dde0;},_0x3adf51[_0x54f75a(0x1b9)]='bstack:options',_0x3adf51[_0x54f75a(0x17b)]=function(_0x544e8e,_0x4a479d){return _0x544e8e===_0x4a479d;},_0x3adf51['WgnZD']=function(_0x23df46,_0x3f224d){return _0x23df46===_0x3f224d;},_0x3adf51[_0x54f75a(0x193)]=function(_0x588d2a,_0x14b8f4){return _0x588d2a in _0x14b8f4;};const _0x14c766=_0x3adf51,_0x249fd7={};for(const [_0x3dda64,_0x502a81]of Object[_0x54f75a(0x1b1)](_0x14c766[_0x54f75a(0x1d0)](_0x20eaa6,{}))){if(_0x14c766['bztNS'](_0x3dda64,_0x14c766['rBYws']))continue;let _0x1913bc=![];for(const [_0x1caaa6,_0x36fa42]of Object[_0x54f75a(0x1b1)](W3CMapping)){if(_0x14c766['LhjjZ'](_0x3dda64,_0x36fa42)){_0x249fd7[_0x1caaa6]=_0x502a81,_0x1913bc=!![];break;}}!_0x1913bc&&(_0x249fd7[_0x3dda64]=_0x502a81);}const _0x4b1ee4=_0x20eaa6[_0x14c766[_0x54f75a(0x1b9)]]||{};for(const [_0x4cd24a,_0x319a6a]of Object[_0x54f75a(0x1b1)](_0x4b1ee4)){let _0x5c53ca=![];for(const [_0x2398af,_0x583a81]of Object[_0x54f75a(0x1b1)](W3CMapping)){if(_0x14c766[_0x54f75a(0x1aa)](_0x4cd24a,_0x583a81)){_0x249fd7[_0x2398af]=_0x319a6a,_0x5c53ca=!![];break;}}!_0x5c53ca&&!_0x14c766['bveVp'](_0x4cd24a,_0x249fd7)&&(_0x249fd7[_0x4cd24a]=_0x319a6a);}return logger[_0x54f75a(0x161)](_0x54f75a(0x17c)+JSON['stringify'](_0x249fd7)),_0x249fd7;},getModifiedConfigFromCLI=async _0x113a93=>{const _0x46a242=a122_0x19e715,_0x406a49={};_0x406a49[_0x46a242(0x1ac)]=_0x46a242(0x16e),_0x406a49[_0x46a242(0x1b5)]=_0x46a242(0x199),_0x406a49[_0x46a242(0x1a7)]=_0x46a242(0x1c7),_0x406a49[_0x46a242(0x1a8)]=_0x46a242(0x19b),_0x406a49['bYCfR']=function(_0x469c83,_0x1918e9){return _0x469c83>_0x1918e9;},_0x406a49[_0x46a242(0x16f)]='No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response';const _0x4d9e23=_0x406a49;try{if(!GrpcClient)return logger[_0x46a242(0x161)](_0x4d9e23[_0x46a242(0x1ac)]),null;const _0x5a049a={};_0x5a049a[_0x46a242(0x195)]=_0x113a93,_0x5a049a[_0x46a242(0x1cd)]=_0x4d9e23[_0x46a242(0x1b5)],_0x5a049a[_0x46a242(0x1b8)]=0x1,_0x5a049a['projects']=[];const _0x44c245=_0x5a049a;logger[_0x46a242(0x161)](_0x4d9e23[_0x46a242(0x1a7)]);const _0x3eb56a={};_0x3eb56a[_0x46a242(0x18e)]=_0x44c245;const _0x2a0aa5=await GrpcClient[_0x46a242(0x1a0)]()['getPlaywrightConfig'](_0x3eb56a);if(!_0x2a0aa5[_0x46a242(0x1bf)]())return logger[_0x46a242(0x161)](_0x4d9e23['QtUXF']),null;const _0x1c5db6=JSON[_0x46a242(0x1c2)](_0x2a0aa5['getConfig']());logger[_0x46a242(0x161)](_0x46a242(0x18b)+JSON[_0x46a242(0x172)](_0x1c5db6));if(_0x1c5db6['capabilities']&&Array[_0x46a242(0x170)](_0x1c5db6[_0x46a242(0x195)])&&_0x4d9e23['bYCfR'](_0x1c5db6[_0x46a242(0x195)][_0x46a242(0x175)],0x0))return _0x1c5db6[_0x46a242(0x195)][0x0];else{if(_0x1c5db6[_0x46a242(0x18d)]&&Array[_0x46a242(0x170)](_0x1c5db6[_0x46a242(0x18d)])&&_0x4d9e23[_0x46a242(0x186)](_0x1c5db6[_0x46a242(0x18d)][_0x46a242(0x175)],0x0)){const _0x3ed053=_0x1c5db6[_0x46a242(0x18d)][0x0];if(_0x3ed053['use']&&_0x3ed053['use']['platformCaps'])return _0x3ed053[_0x46a242(0x19a)][_0x46a242(0x16d)];}}return logger[_0x46a242(0x161)](_0x4d9e23[_0x46a242(0x16f)]),null;}catch(_0x260c32){logger[_0x46a242(0x1ba)](_0x46a242(0x18c)+_0x260c32[_0x46a242(0x174)]);throw _0x260c32;}},generatePlaywrightUrl=(_0x556bb0,_0x2adfbc)=>{const _0x1c5d1f=a122_0x19e715,_0xc37a49={'ZuhiE':function(_0xf82a2a,_0x4a2a29){return _0xf82a2a!==_0x4a2a29;},'qkwAb':function(_0x4a8f23,_0x147772){return _0x4a8f23!==_0x147772;},'ZuhHR':function(_0x577ed3,_0x4c19df){return _0x577ed3!==_0x4c19df;},'QCBRj':function(_0x5cc1a9,_0x219137){return _0x5cc1a9(_0x219137);},'IYlUS':function(_0x2af721,_0x454c85){return _0x2af721||_0x454c85;},'xWfHB':_0x1c5d1f(0x16a),'VDJnh':function(_0x22a9f3,_0x5004eb){return _0x22a9f3(_0x5004eb);},'GyjQC':'browserstack.accessibilityOptions.wcagVersion','Cnupd':_0x1c5d1f(0x1c0),'FShgF':function(_0x4bf8c6,_0x3c35bb){return _0x4bf8c6(_0x3c35bb);},'tvhQG':_0x1c5d1f(0x163),'EtHiQ':_0x1c5d1f(0x15a),'gbBTZ':'browserstack.buildProductMap','dVUxC':function(_0xdb8955,_0xe4b97){return _0xdb8955+_0xe4b97;},'mDFbq':function(_0x35590c,_0x2ab0d6){return _0x35590c(_0x2ab0d6);}},_0x391b72=helper[_0x1c5d1f(0x183)](_0x556bb0),_0x3a8fe0=_0xc37a49[_0x1c5d1f(0x19f)](convertW3CToJsonWire,_0x2adfbc);try{const _0x413a4d=[_0xc37a49[_0x1c5d1f(0x169)](_0x2adfbc,{}),global[_0x1c5d1f(0x185)]||{},global[_0x1c5d1f(0x18a)]||{},global[_0x1c5d1f(0x1bc)]||{}],_0x1b4b8e=_0xb614be=>{const _0x3f3251=_0x1c5d1f;if(_0xc37a49[_0x3f3251(0x1c6)](_0x3a8fe0[_0xb614be],undefined)&&_0xc37a49['qkwAb'](_0x3a8fe0[_0xb614be],null)&&_0xc37a49[_0x3f3251(0x1c6)](_0x3a8fe0[_0xb614be],''))return;for(const _0x588e17 of _0x413a4d){if(_0x588e17&&_0xc37a49[_0x3f3251(0x1b4)](_0x588e17[_0xb614be],undefined)&&_0xc37a49['ZuhHR'](_0x588e17[_0xb614be],null)&&_0xc37a49[_0x3f3251(0x1c6)](_0x588e17[_0xb614be],'')){_0x3a8fe0[_0xb614be]=_0x588e17[_0xb614be];return;}}};_0xc37a49[_0x1c5d1f(0x19f)](_0x1b4b8e,_0xc37a49[_0x1c5d1f(0x1c3)]),_0xc37a49[_0x1c5d1f(0x1a2)](_0x1b4b8e,_0xc37a49['GyjQC']),_0xc37a49[_0x1c5d1f(0x1a2)](_0x1b4b8e,_0xc37a49[_0x1c5d1f(0x1c5)]),_0xc37a49[_0x1c5d1f(0x158)](_0x1b4b8e,_0xc37a49[_0x1c5d1f(0x1c9)]),!_0x3a8fe0[_0xc37a49[_0x1c5d1f(0x1c3)]]&&process[_0x1c5d1f(0x15d)]['BS_A11Y_JWT']&&(_0x3a8fe0[_0xc37a49[_0x1c5d1f(0x1c3)]]=process[_0x1c5d1f(0x15d)][_0x1c5d1f(0x188)]);}catch(_0x2a0b79){logger[_0x1c5d1f(0x161)](_0x1c5d1f(0x1bd)+util[_0x1c5d1f(0x1ce)](_0x2a0b79));}return _0x3a8fe0[_0xc37a49[_0x1c5d1f(0x1b6)]]=process[_0x1c5d1f(0x15d)][_0x1c5d1f(0x157)],_0x3a8fe0[_0xc37a49[_0x1c5d1f(0x197)]]=helper[_0x1c5d1f(0x1a3)](),_0xc37a49[_0x1c5d1f(0x173)](_0x391b72,_0xc37a49[_0x1c5d1f(0x194)](encodeURIComponent,JSON['stringify'](_0x3a8fe0)));},getBrowserFromCaps=_0xe89b26=>{const _0x378a5d=a122_0x19e715,_0x264255={};_0x264255[_0x378a5d(0x182)]=_0x378a5d(0x156);const _0x15346e=_0x264255;return _0xe89b26[_0x378a5d(0x1c8)]||_0xe89b26[_0x378a5d(0x1a1)]||_0x15346e['zCCym'];},isPlaywrightAvailable=()=>{const _0x37bb55=a122_0x19e715,_0x5c4618={'ZDUGz':_0x37bb55(0x198),'MFaCn':_0x37bb55(0x19e),'NKxFp':_0x37bb55(0x181),'pvQWQ':function(_0x1c46f8,_0x5324cd){return _0x1c46f8(_0x5324cd);}};try{const _0x2ee9b7=path[_0x37bb55(0x1af)](_0x5c4618[_0x37bb55(0x1a4)],_0x5c4618[_0x37bb55(0x17a)],_0x5c4618['NKxFp']),_0x584657=_0x5c4618['pvQWQ'](importFileFromPWCore,_0x2ee9b7);return!!_0x584657;}catch(_0x1bdb3c){return logger[_0x37bb55(0x161)]('Playwright\x20not\x20available:\x20'+util[_0x37bb55(0x1ce)](_0x1bdb3c)),![];}},getPlaywrightBrowserType=()=>{const _0x3f4a52=a122_0x19e715,_0x1e8fa5={'JNeAH':_0x3f4a52(0x198),'zGzSS':_0x3f4a52(0x19e),'ZKdgw':_0x3f4a52(0x181),'Kumvl':function(_0x18fa0c,_0x30fbb9){return _0x18fa0c(_0x30fbb9);}};try{const _0x346d46=path['join'](_0x1e8fa5[_0x3f4a52(0x184)],_0x1e8fa5[_0x3f4a52(0x18f)],_0x1e8fa5[_0x3f4a52(0x1cf)]),_0x599297=_0x1e8fa5[_0x3f4a52(0x196)](importFileFromPWCore,_0x346d46);return _0x599297?_0x599297[_0x3f4a52(0x159)]:null;}catch(_0x426d05){return logger[_0x3f4a52(0x161)]('Error\x20getting\x20Playwright\x20BrowserType:\x20'+util[_0x3f4a52(0x1ce)](_0x426d05)),null;}},getPlaywrightModulePath=()=>{const _0x36f4f2=a122_0x19e715,_0x3555d9={};_0x3555d9[_0x36f4f2(0x162)]=_0x36f4f2(0x1c1);const _0x264e7b=_0x3555d9;return logger[_0x36f4f2(0x161)](_0x264e7b[_0x36f4f2(0x162)]),null;},getBrowserTypePath=()=>{const _0x526840=a122_0x19e715,_0x2f9572={};_0x2f9572[_0x526840(0x1bb)]=_0x526840(0x1ca);const _0x4711f4=_0x2f9572;return logger[_0x526840(0x161)](_0x4711f4['ThQNV']),null;},checkPwandBootstrapCli=async(_0x300842,_0x4bd20b,_0x3f1913)=>{const _0x1b4484=a122_0x19e715,_0x331c3c={'XRFNL':function(_0xa82287,_0x1021ea){return _0xa82287(_0x1021ea);},'yzOre':_0x1b4484(0x178),'alqud':function(_0x427552,_0x4c3479){return _0x427552(_0x4c3479);}};if(_0x300842){const _0x54dac3=constants[_0x1b4484(0x1ad)][_0x1b4484(0x17f)];logger[_0x1b4484(0x161)](_0x1b4484(0x179)+_0x300842+_0x1b4484(0x1b0)+_0x4bd20b+_0x1b4484(0x164)),CLIUtils['setFrameworkDetail'](_0x4bd20b,_0x54dac3);const {getProductMap:_0x2f674b}=_0x331c3c[_0x1b4484(0x192)](require,_0x331c3c[_0x1b4484(0x1ae)]);process[_0x1b4484(0x15d)][_0x1b4484(0x1cb)]=JSON['stringify'](_0x331c3c[_0x1b4484(0x1a9)](_0x2f674b,_0x3f1913[_0x1b4484(0x190)])),BrowserstackCLI[_0x1b4484(0x1a0)]()[_0x1b4484(0x160)](_0x3f1913[_0x1b4484(0x190)],_0x3f1913['configPath'],_0x3f1913[_0x1b4484(0x1b2)]),await BrowserstackCLI[_0x1b4484(0x1a0)]()[_0x1b4484(0x19c)]();}},a122_0x20c7e0={};function a122_0x506e(){const _0x1cf4f6=['ZKdgw','wTbTL','chrome','BROWSERSTACK_TESTHUB_UUID','FShgF','BrowserType','browserstack.testhubBuildUuid','isPlaywrightAvailable','139244SFQkco','env','bztNS','4aEelyU','setBrowserstackConfig','debug','BSjli','browserstack.accessibilityOptions.scannerProcessingTimeout','\x20flow','generatePlaywrightUrl','17951481DlSIWZ','../bin/utils/constants','getModifiedConfigFromCLI','IYlUS','browserstack.accessibilityOptions.authToken','getPlaywrightModulePath','21ZpKQhm','platformCaps','GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request','hkwWG','isArray','5034520eTDpXx','stringify','dVUxC','message','length','./helper','Could\x20not\x20import\x20GrpcClient:\x20','./testhub/utils','Detected\x20Playwright\x20version\x20','MFaCn','LhjjZ','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','exports','util','PLAYWRIGHT','882696cFztqu','browserType.js','zCCym','getPlaywrightUrl','JNeAH','__launchCaps','bYCfR','../bin/v2/browserstackCLI','BS_A11Y_JWT','../bin/v2/grpcClient','__platformCaps','Received\x20modified\x20config\x20from\x20gRPC:\x20','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','projects','playwrightConfigObject','zGzSS','config','checkPwandBootstrapCli','XRFNL','bveVp','mDFbq','capabilities','Kumvl','gbBTZ','lib','cucumberjs-pw','use','No\x20modified\x20config\x20received\x20from\x20gRPC','bootstrap','10DIpKuY','client','QCBRj','getInstance','browser','VDJnh','getBuildProductMap','ZDUGz','6613610HyPQvG','winstonLogger','cRceK','QtUXF','alqud','WgnZD','convertW3CToJsonWire','yAxNw','FRAMEWORKS','yzOre','join','\x20for\x20','entries','cliConfig','7541670uXipEa','qkwAb','Wluea','EtHiQ','getBrowserTypePath','workers','rBYws','error','ThQNV','__accessibilityOptions','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','98565wbdPld','getConfig','browserstack.accessibilityOptions.scannerVersion','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','parse','xWfHB','./logger','Cnupd','ZuhiE','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','browserName','tvhQG','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','BROWSERSTACK_PRODUCT_MAP','./w3cMapping','framework','format'];a122_0x506e=function(){return _0x1cf4f6;};return a122_0x506e();}function a122_0xe760(_0x265688,_0x34bfed){const _0x506e04=a122_0x506e();return a122_0xe760=function(_0xe76038,_0x519c7e){_0xe76038=_0xe76038-0x156;let _0x564aad=_0x506e04[_0xe76038];return _0x564aad;},a122_0xe760(_0x265688,_0x34bfed);}a122_0x20c7e0[a122_0x19e715(0x1ab)]=convertW3CToJsonWire,a122_0x20c7e0[a122_0x19e715(0x168)]=getModifiedConfigFromCLI,a122_0x20c7e0[a122_0x19e715(0x165)]=generatePlaywrightUrl,a122_0x20c7e0['getBrowserFromCaps']=getBrowserFromCaps,a122_0x20c7e0[a122_0x19e715(0x15b)]=isPlaywrightAvailable,a122_0x20c7e0['getPlaywrightBrowserType']=getPlaywrightBrowserType,a122_0x20c7e0[a122_0x19e715(0x16b)]=getPlaywrightModulePath,a122_0x20c7e0[a122_0x19e715(0x1b7)]=getBrowserTypePath,a122_0x20c7e0['importFileFromPWCore']=importFileFromPWCore,a122_0x20c7e0[a122_0x19e715(0x191)]=checkPwandBootstrapCli,module[a122_0x19e715(0x17d)]=a122_0x20c7e0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a123_0x31a8(){const _0x412928=['12159AiDxGl','732045COmpoy','Pwxwl','toISOString','MSRFZ','sleep','\x20]\x20','180LoKwDJ','browserstackTestName','200056lvwRIk','egKJK','fCboj','hDcPd','getTestName','11gCuzsH','./test-observability/constants','./logger','debug','12fTySIP','621672JhfnXa','440DOwFKM','119lfEnKQ','BROWSERSTACK_OBSERVABILITY_DEBUG','env','pid','1138445yYeJIo','threadId','worker_threads','80708YbEhkS','../bin/utils/constants','BROWSERSTACK_TEST_REPORTING_DEBUG','getGlobal','63462jQtTDg','][\x20','TEST_REPORTING_ANALYTICS','yOTcx'];a123_0x31a8=function(){return _0x412928;};return a123_0x31a8();}const a123_0x7c369a=a123_0xe418;(function(_0x204fd6,_0x156eaf){const _0x25ca66=a123_0xe418,_0x119807=_0x204fd6();while(!![]){try{const _0x2b7d07=parseInt(_0x25ca66(0x1ee))/0x1*(parseInt(_0x25ca66(0x1fc))/0x2)+parseInt(_0x25ca66(0x205))/0x3+-parseInt(_0x25ca66(0x1f3))/0x4+-parseInt(_0x25ca66(0x20b))/0x5*(-parseInt(_0x25ca66(0x200))/0x6)+-parseInt(_0x25ca66(0x1f5))/0x7*(parseInt(_0x25ca66(0x20d))/0x8)+parseInt(_0x25ca66(0x204))/0x9*(parseInt(_0x25ca66(0x1f4))/0xa)+-parseInt(_0x25ca66(0x1f9))/0xb*(parseInt(_0x25ca66(0x1f2))/0xc);if(_0x2b7d07===_0x156eaf)break;else _0x119807['push'](_0x119807['shift']());}catch(_0x3ff702){_0x119807['push'](_0x119807['shift']());}}}(a123_0x31a8,0x6c6bd));function a123_0xe418(_0x4897a2,_0x23d483){const _0x31a8ba=a123_0x31a8();return a123_0xe418=function(_0xe41885,_0x545918){_0xe41885=_0xe41885-0x1ec;let _0x32bf13=_0x31a8ba[_0xe41885];return _0x32bf13;},a123_0xe418(_0x4897a2,_0x23d483);}const worker=require(a123_0x7c369a(0x1fb)),{fileLogger}=require(a123_0x7c369a(0x1f0)),{consoleHolder}=require(a123_0x7c369a(0x1ef)),globals=require('./globals'),constants=require(a123_0x7c369a(0x1fd));exports['getProcessId']=()=>{const _0x27d111=a123_0x7c369a;return process[_0x27d111(0x1f8)]+'-'+worker[_0x27d111(0x1fa)];},exports[a123_0x7c369a(0x1ed)]=()=>{const _0x48a868=a123_0x7c369a,_0x397710={};_0x397710[_0x48a868(0x20e)]=_0x48a868(0x20c);const _0x3139ec=_0x397710;return globals[_0x48a868(0x1ff)](_0x3139ec[_0x48a868(0x20e)]);},exports[a123_0x7c369a(0x209)]=(_0x4dedea=0x64)=>new Promise(_0x296b14=>setTimeout(_0x296b14,_0x4dedea)),exports[a123_0x7c369a(0x1f1)]=_0x19a2f6=>{const _0xd3d70d=a123_0x7c369a,_0xf5463a={};_0xf5463a[_0xd3d70d(0x1ec)]=function(_0x83dcf4,_0x1ec6d0){return _0x83dcf4===_0x1ec6d0;},_0xf5463a[_0xd3d70d(0x20f)]='true',_0xf5463a[_0xd3d70d(0x206)]=function(_0xfa4566,_0x51533c){return _0xfa4566===_0x51533c;},_0xf5463a[_0xd3d70d(0x203)]=function(_0x1465bd,_0x488227){return _0x1465bd===_0x488227;},_0xf5463a[_0xd3d70d(0x208)]=function(_0x275770,_0x513624){return _0x275770===_0x513624;};const _0x2e1b2e=_0xf5463a;fileLogger['debug']('['+new Date()['toISOString']()+_0xd3d70d(0x201)+constants['TEST_REPORTING_ANALYTICS']+_0xd3d70d(0x20a)+_0x19a2f6),(_0x2e1b2e[_0xd3d70d(0x1ec)](process[_0xd3d70d(0x1f7)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x2e1b2e[_0xd3d70d(0x20f)])||_0x2e1b2e['Pwxwl'](process[_0xd3d70d(0x1f7)][_0xd3d70d(0x1fe)],'1')||_0x2e1b2e[_0xd3d70d(0x203)](process[_0xd3d70d(0x1f7)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x2e1b2e[_0xd3d70d(0x20f)])||_0x2e1b2e['MSRFZ'](process['env'][_0xd3d70d(0x1f6)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0xd3d70d(0x207)]()+'][\x20'+constants[_0xd3d70d(0x202)]+_0xd3d70d(0x20a)+_0x19a2f6+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x58dbc3=a124_0x5aeb;(function(_0x116a23,_0x44a3fa){const _0x5a3a47=a124_0x5aeb,_0x2e7032=_0x116a23();while(!![]){try{const _0x45a673=parseInt(_0x5a3a47(0x180))/0x1*(parseInt(_0x5a3a47(0x169))/0x2)+-parseInt(_0x5a3a47(0x171))/0x3*(-parseInt(_0x5a3a47(0x151))/0x4)+parseInt(_0x5a3a47(0x182))/0x5*(-parseInt(_0x5a3a47(0x168))/0x6)+-parseInt(_0x5a3a47(0x163))/0x7*(-parseInt(_0x5a3a47(0x158))/0x8)+parseInt(_0x5a3a47(0x15f))/0x9+parseInt(_0x5a3a47(0x15a))/0xa+-parseInt(_0x5a3a47(0x173))/0xb;if(_0x45a673===_0x44a3fa)break;else _0x2e7032['push'](_0x2e7032['shift']());}catch(_0x13f167){_0x2e7032['push'](_0x2e7032['shift']());}}}(a124_0x5cfc,0xd926c));function a124_0x5cfc(){const _0x10552e=['removeListener','euDxL','error','NAZac','6mNbfqG','request','22832381ciWkLe','path','prototype','https','headers','method','statusCode','socket','end','object','restore','url','once','126784KeXzmB','pathname','40rJozMg','ckRAT','slice','QSFDv','2648952yvgZuk','KyDaK','AhgOk','monkeypatch','now','atVRu','TCSbo','1400PhARKd','apply','14859920svHfGx','pDjdA','MgNgl','assign','UCyCf','915624sIxKhA','response','unpatch','vbGhW','119JdCpmW','duration_ms','hostname','spy','qysOd','152718TUeFmK','4sFbZGz','hYxLB','HWruk','host'];a124_0x5cfc=function(){return _0x10552e;};return a124_0x5cfc();}function a124_0x5aeb(_0x36b704,_0x4019f8){const _0x5cfca9=a124_0x5cfc();return a124_0x5aeb=function(_0x5aebf3,_0x230fa4){_0x5aebf3=_0x5aebf3-0x14e;let _0x2579e2=_0x5cfca9[_0x5aebf3];return _0x2579e2;},a124_0x5aeb(_0x36b704,_0x4019f8);}const http=require('http'),https=require(a124_0x58dbc3(0x176)),monkeypatch=require(a124_0x58dbc3(0x154));function spy(_0x4fa54f){const _0x5b9240=a124_0x58dbc3,_0x372205={'TCSbo':function(_0x4a629e,_0x1dad61,_0x3164bd){return _0x4a629e(_0x1dad61,_0x3164bd);},'qysOd':function(_0x20af14,_0x113742){return _0x20af14-_0x113742;},'UCyCf':_0x5b9240(0x16f),'ckRAT':function(_0x1b9d11,_0x115678){return _0x1b9d11 instanceof _0x115678;},'MgNgl':function(_0x32655a,_0x3b87db){return _0x32655a===_0x3b87db;},'HWruk':_0x5b9240(0x17c),'AhgOk':function(_0x38bf20,..._0x2c2dc1){return _0x38bf20(..._0x2c2dc1);},'NAZac':_0x5b9240(0x160),'spVBo':_0x5b9240(0x17a),'vbGhW':function(_0x472f57,_0x283a18,_0x1e2078,_0x2870ab){return _0x472f57(_0x283a18,_0x1e2078,_0x2870ab);},'pDjdA':_0x5b9240(0x17b),'atVRu':_0x5b9240(0x172)},_0x2cbf5f=function(){const _0xb00ef6=_0x5b9240,_0x2a9dc4={'hYxLB':function(_0x37655f,_0x4cc66d){const _0x4f6c51=a124_0x5aeb;return _0x372205[_0x4f6c51(0x14e)](_0x37655f,_0x4cc66d);},'euDxL':function(_0x112fe9,_0x3c8c43){const _0x3a6f30=a124_0x5aeb;return _0x372205[_0x3a6f30(0x15c)](_0x112fe9,_0x3c8c43);},'QSFDv':_0x372205[_0xb00ef6(0x16b)],'KyDaK':function(_0x1f21df,..._0x382102){const _0x2d261d=_0xb00ef6;return _0x372205[_0x2d261d(0x153)](_0x1f21df,..._0x382102);}},_0x8f4ee2=arguments[0x0],_0x1e89c3=Array[_0xb00ef6(0x175)][_0xb00ef6(0x14f)]['call'](arguments,0x1),_0x4791c9=_0x8f4ee2[_0xb00ef6(0x159)](this,_0x1e89c3);let _0x231484=Date[_0xb00ef6(0x155)](),_0x19c282;const _0x496a42={};_0x1e89c3['forEach'](_0x2ebca6=>{const _0x61eb96=_0xb00ef6;if(_0x2a9dc4[_0x61eb96(0x16a)](_0x2ebca6,URL)){const _0x3ed15b={};_0x3ed15b[_0x61eb96(0x17e)]=_0x2ebca6,Object['assign'](_0x496a42,_0x3ed15b);}else _0x2a9dc4[_0x61eb96(0x16e)](typeof _0x2ebca6,_0x2a9dc4[_0x61eb96(0x150)])&&Object[_0x61eb96(0x15d)](_0x496a42,_0x2ebca6);});const _0x13acb1=_0x3ac1a1=>{const _0x3eb3a8=_0xb00ef6,_0x113df9={};_0x113df9[_0x3eb3a8(0x16c)]=_0x496a42[_0x3eb3a8(0x16c)]||_0x496a42[_0x3eb3a8(0x165)]||_0x496a42['url']&&(_0x496a42[_0x3eb3a8(0x17e)][_0x3eb3a8(0x16c)]||_0x496a42[_0x3eb3a8(0x17e)][_0x3eb3a8(0x165)]),_0x113df9['path']=_0x496a42[_0x3eb3a8(0x174)]||_0x496a42[_0x3eb3a8(0x17e)]&&_0x496a42['url'][_0x3eb3a8(0x181)],_0x113df9[_0x3eb3a8(0x178)]=_0x496a42[_0x3eb3a8(0x178)],_0x113df9['headers']=_0x496a42[_0x3eb3a8(0x177)],_0x372205[_0x3eb3a8(0x157)](_0x4fa54f,_0x3ac1a1,_0x113df9);};return _0x4791c9[_0xb00ef6(0x17f)](_0x372205[_0xb00ef6(0x170)],_0x357fd0=>{const _0x1b8bc6=_0xb00ef6,_0x294630=_0x372205[_0x1b8bc6(0x167)](Date[_0x1b8bc6(0x155)](),_0x231484),_0x369560={};_0x369560[_0x1b8bc6(0x165)]=_0x496a42[_0x1b8bc6(0x16c)]||_0x496a42[_0x1b8bc6(0x165)]||_0x496a42[_0x1b8bc6(0x17e)]&&(_0x496a42['url']['host']||_0x496a42[_0x1b8bc6(0x17e)][_0x1b8bc6(0x165)]),_0x369560[_0x1b8bc6(0x174)]=_0x496a42[_0x1b8bc6(0x174)]||_0x496a42[_0x1b8bc6(0x17e)]&&_0x496a42[_0x1b8bc6(0x17e)][_0x1b8bc6(0x181)],_0x369560[_0x1b8bc6(0x178)]=_0x496a42[_0x1b8bc6(0x178)],_0x369560['headers']=_0x496a42[_0x1b8bc6(0x177)],_0x369560['status_code']=_0x357fd0[_0x1b8bc6(0x179)],_0x369560[_0x1b8bc6(0x164)]=_0x294630,_0x372205[_0x1b8bc6(0x157)](_0x4fa54f,null,_0x369560),_0x19c282[_0x1b8bc6(0x16d)](_0x372205[_0x1b8bc6(0x15e)],_0x13acb1);}),_0x4791c9['on'](_0x372205['spVBo'],_0x48c72f=>{_0x19c282=_0x48c72f,_0x48c72f['once'](_0x372205['UCyCf'],_0x13acb1);}),_0x372205['vbGhW'](monkeypatch,_0x4791c9,_0x372205[_0xb00ef6(0x15b)],(_0x5a4934,..._0x56a0c8)=>{const _0x7492e0=_0xb00ef6;_0x231484=Date[_0x7492e0(0x155)](),_0x2a9dc4[_0x7492e0(0x152)](_0x5a4934,..._0x56a0c8);}),_0x4791c9;};_0x372205[_0x5b9240(0x162)](monkeypatch,http,_0x372205['atVRu'],_0x2cbf5f),_0x372205[_0x5b9240(0x162)](monkeypatch,https,_0x372205[_0x5b9240(0x156)],_0x2cbf5f);}function restore(){const _0x320f85=a124_0x58dbc3;http[_0x320f85(0x172)][_0x320f85(0x161)](),https[_0x320f85(0x172)][_0x320f85(0x161)]();}const a124_0x4a266d={};a124_0x4a266d[a124_0x58dbc3(0x166)]=spy,a124_0x4a266d[a124_0x58dbc3(0x17d)]=restore,module['exports']=a124_0x4a266d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a125_0x421465=a125_0x5457;function a125_0x5457(_0x19b62d,_0x39d425){const _0x371eae=a125_0x371e();return a125_0x5457=function(_0x545783,_0x5c47ff){_0x545783=_0x545783-0x141;let _0x1a2bb2=_0x371eae[_0x545783];return _0x1a2bb2;},a125_0x5457(_0x19b62d,_0x39d425);}(function(_0x5e7c05,_0x26b1ca){const _0x101505=a125_0x5457,_0x5256b3=_0x5e7c05();while(!![]){try{const _0x3e28cf=-parseInt(_0x101505(0x143))/0x1+parseInt(_0x101505(0x145))/0x2*(parseInt(_0x101505(0x149))/0x3)+-parseInt(_0x101505(0x150))/0x4+parseInt(_0x101505(0x152))/0x5+-parseInt(_0x101505(0x14e))/0x6*(parseInt(_0x101505(0x141))/0x7)+-parseInt(_0x101505(0x15b))/0x8+parseInt(_0x101505(0x15f))/0x9*(parseInt(_0x101505(0x144))/0xa);if(_0x3e28cf===_0x26b1ca)break;else _0x5256b3['push'](_0x5256b3['shift']());}catch(_0x17acd6){_0x5256b3['push'](_0x5256b3['shift']());}}}(a125_0x371e,0xaad46));function a125_0x371e(){const _0x1faa33=['12814640QTMxec','18098tFPKgW','etUYl','pbJEX','exports','3jBIUOg','keepAliveMsecs','keepAlive','cKboa','NqThr','6ktxLPE','globalAgent','2150808oJdQNw','prototype','6352520ZyNzFU','https:','https','hasOwnProperty','call','bDOXj','Agent','./performance/constants','request','7624552WCegFa','http','KEEP_ALIVE','wvIot','18ZssYTB','2607241nlEKcW','VUYRz','1279529LRIyay'];a125_0x371e=function(){return _0x1faa33;};return a125_0x371e();}const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require(a125_0x421465(0x159));module[a125_0x421465(0x148)]=PerformanceTester['measureWrapper'](PerformanceEvents[a125_0x421465(0x15d)],function(){const _0x136b6e=a125_0x421465,_0x47cbe9={'bDOXj':function(_0x190daf,_0x43566c){return _0x190daf===_0x43566c;},'etUYl':_0x136b6e(0x153),'wvIot':'agent','VUYRz':function(_0x10c17d,_0x53da52,_0xac58a2){return _0x10c17d(_0x53da52,_0xac58a2);},'cKboa':function(_0x53022a,_0x44bac3,_0x43337c){return _0x53022a(_0x44bac3,_0x43337c);},'LAhJU':function(_0xa34c44,_0x4f303a){return _0xa34c44(_0x4f303a);},'BwIeU':_0x136b6e(0x15c),'WAmvC':_0x136b6e(0x154),'pbJEX':function(_0x21787a,_0x2cec89){return _0x21787a*_0x2cec89;},'NqThr':_0x136b6e(0x14b)},_0x24098e=_0x47cbe9['LAhJU'](require,_0x47cbe9['BwIeU']),_0x296281=_0x47cbe9['LAhJU'](require,_0x47cbe9['WAmvC']),_0x1976ed=_0x47cbe9[_0x136b6e(0x147)](0x1e,0x3e8);if(_0x24098e[_0x136b6e(0x14f)]&&Object[_0x136b6e(0x151)][_0x136b6e(0x155)][_0x136b6e(0x156)](_0x24098e[_0x136b6e(0x14f)],_0x47cbe9[_0x136b6e(0x14d)]))_0x24098e[_0x136b6e(0x14f)][_0x136b6e(0x14b)]=!![],_0x296281[_0x136b6e(0x14f)]['keepAlive']=!![],_0x24098e[_0x136b6e(0x14f)][_0x136b6e(0x14a)]=_0x1976ed,_0x296281['globalAgent']['keepAliveMsecs']=_0x1976ed;else{const _0x1e168e={};_0x1e168e[_0x136b6e(0x14b)]=!![],_0x1e168e['keepAliveMsecs']=_0x1976ed;const _0x3ce1db=new _0x24098e[(_0x136b6e(0x158))](_0x1e168e),_0x47ae10={};_0x47ae10[_0x136b6e(0x14b)]=!![],_0x47ae10['keepAliveMsecs']=_0x1976ed;const _0x4689f4=new _0x296281[(_0x136b6e(0x158))](_0x47ae10),_0x376505=_0x24098e[_0x136b6e(0x15a)],_0x35dd55=_0x296281['request'];_0x24098e[_0x136b6e(0x15a)]=function(_0x68858,_0x5e65da){const _0x36ef2f=_0x136b6e;if(_0x47cbe9[_0x36ef2f(0x157)](_0x68858['protocol'],_0x47cbe9[_0x36ef2f(0x146)]))return _0x68858[_0x47cbe9[_0x36ef2f(0x15e)]]=_0x4689f4,_0x47cbe9[_0x36ef2f(0x142)](_0x35dd55,_0x68858,_0x5e65da);return _0x68858[_0x47cbe9['wvIot']]=_0x3ce1db,_0x47cbe9[_0x36ef2f(0x14c)](_0x376505,_0x68858,_0x5e65da);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x2af9dd=a126_0x1e20;function a126_0x1e20(_0x56a4e7,_0x454fe4){const _0x37f667=a126_0x37f6();return a126_0x1e20=function(_0x1e209a,_0x575b90){_0x1e209a=_0x1e209a-0x197;let _0x1cebe6=_0x37f667[_0x1e209a];return _0x1cebe6;},a126_0x1e20(_0x56a4e7,_0x454fe4);}function a126_0x37f6(){const _0x5ac1b8=['https://collector-observability-devtestops.bsstag.com','JEST','pre-prod','CUCUMBER','prod','exports','2888124gunCzh','MOCHA','597075mVymus','mocha','OBSERVABILITY_UPLOAD_API_URL','preprod','https://upload-observability.browserstack.com','50puAoyv','../logger','env','6560eZXrNp','https://upload-observability-preprod.bsstag.com','API_URL','toLowerCase','https://collector-observability.browserstack.com','CODECEPT','https://collector-observability-preprod.bsstag.com','stag','.obs_test_details','https://upload-observability-devtestops-ssi.bsstag.com','CODECEPT_CUCUMBER','2424EKKQYt','api/v1/screenshots','PLAYWRIGHT','259YMbBBU','api/v1/batch','1905732sYYihV','210BmnFms','codeceptjs','9149jyiVto','5028pSgcku','Playwright','cucumber','34331tdcqmX','3966daRciv','codeceptjs-cucumber'];a126_0x37f6=function(){return _0x5ac1b8;};return a126_0x37f6();}(function(_0x2254d1,_0x38bed2){const _0x25ea33=a126_0x1e20,_0xfc5a10=_0x2254d1();while(!![]){try{const _0x8eaca9=-parseInt(_0x25ea33(0x1a3))/0x1*(-parseInt(_0x25ea33(0x1bf))/0x2)+-parseInt(_0x25ea33(0x1b7))/0x3+-parseInt(_0x25ea33(0x1b5))/0x4+-parseInt(_0x25ea33(0x1a6))/0x5*(parseInt(_0x25ea33(0x1ad))/0x6)+parseInt(_0x25ea33(0x1a8))/0x7*(parseInt(_0x25ea33(0x1a0))/0x8)+-parseInt(_0x25ea33(0x1a5))/0x9*(parseInt(_0x25ea33(0x1bc))/0xa)+-parseInt(_0x25ea33(0x1ac))/0xb*(-parseInt(_0x25ea33(0x1a9))/0xc);if(_0x8eaca9===_0x38bed2)break;else _0xfc5a10['push'](_0xfc5a10['shift']());}catch(_0x3f8bd7){_0xfc5a10['push'](_0xfc5a10['shift']());}}}(a126_0x37f6,0x85392));const path=require('path'),{logDir}=require(a126_0x2af9dd(0x1bd)),a126_0xb42dfe={};a126_0xb42dfe[a126_0x2af9dd(0x1a2)]=a126_0x2af9dd(0x1aa),a126_0xb42dfe[a126_0x2af9dd(0x1b6)]=a126_0x2af9dd(0x1b8),a126_0xb42dfe[a126_0x2af9dd(0x19a)]=a126_0x2af9dd(0x1a7),a126_0xb42dfe[a126_0x2af9dd(0x19f)]=a126_0x2af9dd(0x1ae),a126_0xb42dfe[a126_0x2af9dd(0x1b0)]='jest',a126_0xb42dfe[a126_0x2af9dd(0x1b2)]=a126_0x2af9dd(0x1ab),module[a126_0x2af9dd(0x1b4)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a126_0x2af9dd(0x199),'OBSERVABILITY_UPLOAD_API_URL':a126_0x2af9dd(0x1bb),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a126_0x2af9dd(0x1a4),'SCREENSHOT_ENDPOINT':a126_0x2af9dd(0x1a1),'UPLOAD_ATTACHMENT_ENDPOINT':'upload-attachments','DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':path['join'](logDir,a126_0x2af9dd(0x19d)),'FRAMEWORKS':a126_0xb42dfe};const _env=(process[a126_0x2af9dd(0x1be)]['BROWSERSTACK_ENV']||a126_0x2af9dd(0x1b3))[a126_0x2af9dd(0x198)]();if(_env==='staging'||_env===a126_0x2af9dd(0x19c))module[a126_0x2af9dd(0x1b4)][a126_0x2af9dd(0x197)]=a126_0x2af9dd(0x1af),module[a126_0x2af9dd(0x1b4)][a126_0x2af9dd(0x1b9)]=a126_0x2af9dd(0x19e);else(_env===a126_0x2af9dd(0x1ba)||_env===a126_0x2af9dd(0x1b1))&&(module[a126_0x2af9dd(0x1b4)][a126_0x2af9dd(0x197)]=a126_0x2af9dd(0x19b),module[a126_0x2af9dd(0x1b4)][a126_0x2af9dd(0x1b9)]=a126_0x2af9dd(0x1c0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127_0x573c20=a127_0x2e5d;(function(_0x860846,_0xec721){const _0x2db41e=a127_0x2e5d,_0x132128=_0x860846();while(!![]){try{const _0x2c9dbb=parseInt(_0x2db41e(0x13f))/0x1*(parseInt(_0x2db41e(0x130))/0x2)+parseInt(_0x2db41e(0x136))/0x3+parseInt(_0x2db41e(0x149))/0x4*(-parseInt(_0x2db41e(0x14a))/0x5)+-parseInt(_0x2db41e(0x191))/0x6+-parseInt(_0x2db41e(0x14c))/0x7+-parseInt(_0x2db41e(0x16b))/0x8+parseInt(_0x2db41e(0x194))/0x9;if(_0x2c9dbb===_0xec721)break;else _0x132128['push'](_0x132128['shift']());}catch(_0x1dd20d){_0x132128['push'](_0x132128['shift']());}}}(a127_0xe790,0x304d8));const util=require(a127_0x573c20(0x199)),PerformanceTester=require(a127_0x573c20(0x170)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a127_0x573c20(0x153)),{getAgentVersion,nestedKeyValue}=require(a127_0x573c20(0x14e)),o11yErrorHandler=(_0x3c6612,_0x2fbf17='',_0x526a4e=[''],_0x5050a3=![])=>{const _0x36c27f={'Nudbd':function(_0x4040ba,_0x1ca618){return _0x4040ba(_0x1ca618);},'OYSLT':function(_0x1d8247,_0x114055,_0x18c11f){return _0x1d8247(_0x114055,_0x18c11f);},'nsNUW':function(_0x40102f,_0x58a2b0){return _0x40102f(_0x58a2b0);},'pZsKs':function(_0x32bb61,_0x57d493){return _0x32bb61 instanceof _0x57d493;},'lfuQm':function(_0x4bf484,_0x16cdaf,_0x5a82d9,_0x72af25,_0x145158){return _0x4bf484(_0x16cdaf,_0x5a82d9,_0x72af25,_0x145158);}};return function(..._0x8840a3){const _0x13c86f=a127_0x2e5d;try{let _0x810448=_0x3c6612;process[_0x13c86f(0x188)][_0x13c86f(0x192)]&&(_0x810448=PerformanceTester['getPerformance']()[_0x13c86f(0x15a)](_0x810448));_0x5050a3&&_0x36c27f[_0x13c86f(0x13e)](trace,_0x13c86f(0x171)+_0x2fbf17+_0x13c86f(0x158)+process[_0x13c86f(0x133)]+',\x20Argument\x20-\x20'+_0x36c27f[_0x13c86f(0x15e)](nestedKeyValue,arguments[0x0],_0x526a4e));const _0x1c025f=_0x810448[_0x13c86f(0x16c)](null,arguments);_0x5050a3&&_0x36c27f[_0x13c86f(0x140)](trace,_0x13c86f(0x13b)+_0x2fbf17+_0x13c86f(0x158)+process['pid']+_0x13c86f(0x137)+_0x36c27f['OYSLT'](nestedKeyValue,arguments[0x0],_0x526a4e));if(_0x36c27f[_0x13c86f(0x139)](_0x1c025f,Promise))return _0x1c025f[_0x13c86f(0x16d)](_0x1f00d6=>processError(_0x1f00d6,_0x3c6612,_0x8840a3,_0x2fbf17));return _0x1c025f;}catch(_0x5dfc92){_0x36c27f[_0x13c86f(0x172)](processError,_0x5dfc92,_0x3c6612,_0x8840a3,_0x2fbf17);}};},o11yClassErrorHandler=(_0x4a3000,_0x3c4f88,_0x128248='')=>{const _0x2cf477=a127_0x573c20,_0x24732d={'XXGqG':function(_0xfc43a9,_0x56dfef){return _0xfc43a9 instanceof _0x56dfef;},'SvWgx':function(_0x295c42,_0x54d228,_0x52a048,_0x2e7fc6,_0x3cad5d){return _0x295c42(_0x54d228,_0x52a048,_0x2e7fc6,_0x3cad5d);},'WGEeT':function(_0x3ab820,_0x33b9c8){return _0x3ab820===_0x33b9c8;},'FDtpR':_0x2cf477(0x193),'XZuSk':function(_0x1b50fe,_0x3519fe){return _0x1b50fe!==_0x3519fe;},'OuopD':_0x2cf477(0x146),'jlJaM':function(_0x2f583d,_0x4bd2cf){return _0x2f583d<_0x4bd2cf;}},_0x2e0f65=_0x4a3000['prototype'];if(_0x24732d[_0x2cf477(0x155)](Object[_0x2cf477(0x150)](_0x2e0f65)[_0x2cf477(0x19a)],0x2))return _0x4a3000;return Object[_0x2cf477(0x150)](_0x2e0f65)[_0x2cf477(0x14d)](_0x2f14a5=>{const _0x4b3fcb=_0x2cf477;if(!(_0x3c4f88&&_0x3c4f88[_0x4b3fcb(0x17b)](_0x2f14a5)))return;const _0x175033=_0x2e0f65[_0x2f14a5];_0x24732d[_0x4b3fcb(0x17d)](typeof _0x175033,_0x24732d[_0x4b3fcb(0x135)])&&_0x24732d[_0x4b3fcb(0x17a)](_0x2f14a5,_0x24732d[_0x4b3fcb(0x18f)])&&Object['defineProperty'](_0x2e0f65,_0x2f14a5,{'writable':!![],'value':function(..._0x7c0ee6){const _0x3759ba=_0x4b3fcb;try{const _0x1cf633=(process[_0x3759ba(0x188)][_0x3759ba(0x192)]?PerformanceTester['getPerformance']()[_0x3759ba(0x15a)](_0x175033):_0x175033)[_0x3759ba(0x185)](this,..._0x7c0ee6);if(_0x24732d[_0x3759ba(0x18d)](_0x1cf633,Promise))return _0x1cf633['catch'](_0x463478=>processError(_0x463478,_0x175033,_0x7c0ee6,_0x128248));return _0x1cf633;}catch(_0x57b13f){_0x24732d[_0x3759ba(0x15f)](processError,_0x57b13f,_0x175033,_0x7c0ee6,_0x128248);}}});}),_0x4a3000;};function processError(_0x2b48e7,_0x2060a6,_0x319ac3,_0x5406ee){const _0x3c7e02=a127_0x573c20,_0x33c418={'JJyQo':function(_0x2db62a,_0x1fd7eb){return _0x2db62a(_0x1fd7eb);}};_0x33c418[_0x3c7e02(0x17f)](debug,_0x3c7e02(0x168)+_0x2060a6[_0x3c7e02(0x174)]+_0x3c7e02(0x195)+_0x5406ee+_0x3c7e02(0x175)+util['format'](_0x2b48e7)+'.\x20Args\x20-\x20'+_0x319ac3+'.'),PerformanceTester[_0x3c7e02(0x164)](_0x2b48e7);let _0x2fc054;try{_0x2fc054=JSON[_0x3c7e02(0x142)](_0x319ac3);}catch(_0x4b3264){const _0x1e9bbe={};_0x1e9bbe[_0x3c7e02(0x14f)]=0x2,_0x2fc054=util[_0x3c7e02(0x18b)](_0x319ac3,_0x1e9bbe);}CrashReporter[_0x3c7e02(0x167)]('Error\x20in\x20executing\x20'+_0x2060a6[_0x3c7e02(0x174)]+'\x20--\x20'+_0x5406ee+_0x3c7e02(0x175)+_0x2b48e7+'.\x20Args\x20-\x20'+_0x2fc054+'.',_0x2b48e7&&_0x2b48e7[_0x3c7e02(0x18e)]);}function a127_0x2e5d(_0xa777da,_0x492faa){const _0xe790e4=a127_0xe790();return a127_0x2e5d=function(_0x2e5df9,_0x4141c7){_0x2e5df9=_0x2e5df9-0x12f;let _0x2309a9=_0xe790e4[_0x2e5df9];return _0x2309a9;},a127_0x2e5d(_0xa777da,_0x492faa);}class CrashReporter{static [a127_0x573c20(0x143)]={};static [a127_0x573c20(0x159)];static [a127_0x573c20(0x154)]={};static['initialize'](_0x17e3a6,_0xe981eb,_0x5e33ed=null){const _0x30d80d=a127_0x573c20,_0x661163={'NbLPs':function(_0x6c8a2e,_0x1aed4f){return _0x6c8a2e(_0x1aed4f);}},_0x4d7489=_0x17e3a6[_0x30d80d(0x18c)],_0x3cf9a1=_0x17e3a6['frameworkVersion'];!_0x5e33ed&&(_0x5e33ed=_0x661163[_0x30d80d(0x169)](getBrowserStackConfig,_0x4d7489));!_0x3cf9a1&&_0x661163['NbLPs'](getFrameworkVersion,_0x4d7489);const _0xe06252={};_0xe06252[_0x30d80d(0x18c)]=_0x4d7489,_0xe06252[_0x30d80d(0x18a)]=_0x3cf9a1,this['setAllDetails'](_0xe06252,_0xe981eb,_0x661163['NbLPs'](getUserCredentials,_0x5e33ed));}static[a127_0x573c20(0x179)](_0x33a6a0,_0x271224){const _0x3d1822=a127_0x573c20,_0x2d6912={};_0x2d6912['username']=_0x33a6a0,_0x2d6912[_0x3d1822(0x144)]=_0x271224,this[_0x3d1822(0x159)]=_0x2d6912,process[_0x3d1822(0x188)][_0x3d1822(0x16e)]=JSON[_0x3d1822(0x142)](this[_0x3d1822(0x159)]);}static[a127_0x573c20(0x13c)](){const _0x1fd32a=a127_0x573c20,_0x3a7f44={'yJFbb':function(_0x50ab2f,_0x1dfceb){return _0x50ab2f(_0x1dfceb);}};if(!this[_0x1fd32a(0x159)]&&process[_0x1fd32a(0x188)][_0x1fd32a(0x16e)])try{this[_0x1fd32a(0x159)]=JSON[_0x1fd32a(0x13a)](process[_0x1fd32a(0x188)][_0x1fd32a(0x16e)]);}catch(_0xcae578){_0x3a7f44[_0x1fd32a(0x19c)](debug,_0x1fd32a(0x176)+_0xcae578[_0x1fd32a(0x13d)]());}return this[_0x1fd32a(0x159)];}static[a127_0x573c20(0x138)](_0x72caf){const _0x47c341=a127_0x573c20;this[_0x47c341(0x143)]=this['filterPII'](_0x72caf),process[_0x47c341(0x188)][_0x47c341(0x17e)]=JSON[_0x47c341(0x142)](this[_0x47c341(0x143)]);}static[a127_0x573c20(0x19b)](){const _0xe08259=a127_0x573c20,_0x43bd08={'bRXPo':function(_0x17c5e6,_0x5e0563){return _0x17c5e6===_0x5e0563;},'nMflS':function(_0x5da190,_0x5063e5){return _0x5da190(_0x5063e5);}};if(_0x43bd08[_0xe08259(0x134)](Object[_0xe08259(0x15d)](this[_0xe08259(0x143)])['length'],0x0)&&process[_0xe08259(0x188)][_0xe08259(0x17e)])try{this['userConfig']=JSON['parse'](process['env'][_0xe08259(0x17e)]);}catch(_0x1d8fdf){_0x43bd08[_0xe08259(0x187)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x1d8fdf['toString']()),this[_0xe08259(0x143)]={};}return this['userConfig'];}static['setFrameworkDetails'](_0x22f328){const _0x5b5fd9=a127_0x573c20;this[_0x5b5fd9(0x154)]=_0x22f328,process[_0x5b5fd9(0x188)][_0x5b5fd9(0x181)]=JSON[_0x5b5fd9(0x142)](this['frameworkDetails']);}static[a127_0x573c20(0x141)](){const _0x98e446=a127_0x573c20,_0x48ea44={'QalSm':function(_0x3bfa91,_0x3fcd62){return _0x3bfa91===_0x3fcd62;},'Ncyej':function(_0x2519aa,_0x3ba83c){return _0x2519aa(_0x3ba83c);}};if(_0x48ea44['QalSm'](Object[_0x98e446(0x15d)](this[_0x98e446(0x154)])[_0x98e446(0x19a)],0x0)&&process[_0x98e446(0x188)][_0x98e446(0x181)])try{this[_0x98e446(0x154)]=JSON['parse'](process[_0x98e446(0x188)][_0x98e446(0x181)]);}catch(_0x3bde91){_0x48ea44['Ncyej'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x3bde91[_0x98e446(0x13d)]());}return this[_0x98e446(0x154)];}static['setAllDetails'](_0x387d73,_0x378cc7,_0x465330){const _0xa4f9d4=a127_0x573c20;_0x387d73&&this[_0xa4f9d4(0x196)](_0x387d73),_0x378cc7&&this[_0xa4f9d4(0x138)](_0x378cc7),_0x465330&&this[_0xa4f9d4(0x179)](_0x465330[_0xa4f9d4(0x183)],_0x465330['accessKey']);}static async[a127_0x573c20(0x167)](_0x4d7ff5,_0x24195c){const _0x39e123=a127_0x573c20,_0x1d68e4={'kJiKN':function(_0x268c5f,_0x5b8f63){return _0x268c5f(_0x5b8f63);},'XBigb':_0x39e123(0x180),'nZrQp':function(_0x4beda4){return _0x4beda4();},'fTGZJ':_0x39e123(0x16f),'NRgen':_0x39e123(0x14b),'nVHGH':_0x39e123(0x165),'lQwAu':function(_0x5241e2,_0x3ec4d3,_0x478089,_0x3f7f3e,_0x4698f2,_0x401613){return _0x5241e2(_0x3ec4d3,_0x478089,_0x3f7f3e,_0x4698f2,_0x401613);},'SkhXl':_0x39e123(0x17c)};this[_0x39e123(0x13c)]();if(!this['credentials'])return _0x1d68e4[_0x39e123(0x173)](debug,_0x1d68e4['XBigb']);this[_0x39e123(0x19b)](),this[_0x39e123(0x141)]();const _0x4f5a63={'hashed_id':process['env'][_0x39e123(0x162)],'observability_version':{'sdkVersion':_0x1d68e4[_0x39e123(0x131)](getAgentVersion),'frameworkName':this['frameworkDetails']['frameworkName'],'frameworkVersion':this['frameworkDetails'][_0x39e123(0x18a)]},'exception':{'error':_0x4d7ff5[_0x39e123(0x13d)](),'stackTrace':_0x24195c},'config':this[_0x39e123(0x143)]},_0xf4927c=_0x1d68e4[_0x39e123(0x189)],_0x3f3790={};_0x3f3790[_0x39e123(0x183)]=this['credentials'][_0x39e123(0x183)],_0x3f3790[_0x39e123(0x177)]=this[_0x39e123(0x159)]['accessKey'];const _0x27bd67={};_0x27bd67[_0x39e123(0x178)]=_0x1d68e4[_0x39e123(0x198)],_0x27bd67[_0x39e123(0x186)]=_0x1d68e4[_0x39e123(0x147)];const _0x203bc9={};_0x203bc9[_0x39e123(0x151)]=_0x3f3790,_0x203bc9['headers']=_0x27bd67;const _0xd902dc=_0x203bc9;_0x1d68e4['lQwAu'](nodeRequest,_0x1d68e4[_0x39e123(0x166)],_0xf4927c,_0x4f5a63,_0xd902dc,![])[_0x39e123(0x16a)](_0x4248b2=>{const _0x232aa4=_0x39e123;_0x1d68e4[_0x232aa4(0x173)](debug,_0x232aa4(0x132)+JSON[_0x232aa4(0x142)](_0x4248b2));})[_0x39e123(0x16d)](_0x39f34f=>{const _0x4ceb25=_0x39e123;_0x1d68e4[_0x4ceb25(0x173)](debug,_0x4ceb25(0x15b)+util[_0x4ceb25(0x160)](_0x39f34f));});}static[a127_0x573c20(0x161)](_0x27b0a1){const _0x291742=a127_0x573c20,_0x37cd01={};_0x37cd01[_0x291742(0x152)]='user',_0x37cd01['ZDzLb']=_0x291742(0x183),_0x37cd01['BwAMm']=_0x291742(0x145),_0x37cd01[_0x291742(0x182)]=_0x291742(0x144),_0x37cd01[_0x291742(0x12f)]=_0x291742(0x177),_0x37cd01['dVxeS']=function(_0x1354b6,_0x1dff69){return _0x1354b6===_0x1dff69;},_0x37cd01[_0x291742(0x148)]=_0x291742(0x190);const _0x37a5c7=_0x37cd01;if(!_0x27b0a1)return;const _0x154566=[_0x37a5c7['nZszG'],_0x37a5c7[_0x291742(0x15c)],_0x37a5c7[_0x291742(0x163)],_0x37a5c7[_0x291742(0x182)],_0x37a5c7[_0x291742(0x12f)]];for(const _0x22e274 in _0x27b0a1){if(_0x154566[_0x291742(0x17b)](_0x22e274[_0x291742(0x184)]()))delete _0x27b0a1[_0x22e274];else _0x37a5c7[_0x291742(0x197)](typeof _0x27b0a1[_0x22e274],_0x37a5c7['goXPO'])&&this['recursivelyDeletePIIKeysFromObject'](_0x27b0a1[_0x22e274]);}}static[a127_0x573c20(0x156)](_0x51cf18){const _0x2a6a02=a127_0x573c20,_0xfa3fc7=JSON['parse'](JSON[_0x2a6a02(0x142)](_0x51cf18));return this[_0x2a6a02(0x161)](_0xfa3fc7),_0xfa3fc7;}}function a127_0xe790(){const _0x4004f6=['nsNUW','getFramework','stringify','userConfig','accessKey','key','constructor','nVHGH','goXPO','3764JVxIAu','130iYrpwN','application/json','1773870nICDHa','forEach','../helper','depth','getOwnPropertyNames','auth','nZszG','./utils','frameworkDetails','jlJaM','filterPII','exports',',\x20PID\x20-\x20','credentials','timerify','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','ZDzLb','keys','OYSLT','SvWgx','format','recursivelyDeletePIIKeysFromObject','BS_TESTOPS_BUILD_HASHED_ID','BwAMm','captureError','true','SkhXl','uploadCrashReport','Error\x20in\x20executing\x20','NbLPs','then','2042160oKRQTa','apply','catch','CREDENTIALS_FOR_CRASH_REPORTING','/api/v1/analytics','../performance/performance-tester','Started\x20::\x20','lfuQm','kJiKN','name','.\x20Error\x20-\x20','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','password','Content-Type','setCredentials','XZuSk','includes','POST','WGEeT','USER_CONFIG_FOR_REPORTING','JJyQo','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','andGu','username','toLowerCase','call','X-BSTACK-TESTOPS','nMflS','env','fTGZJ','frameworkVersion','inspect','frameworkName','XXGqG','stack','OuopD','object','2067312lVqoeU','BROWSERSTACK_O11Y_PERF_MEASUREMENT','function','4701789uXJemz','\x20--\x20','setFrameworkDetails','dVxeS','NRgen','util','length','getConfig','yJFbb','o11yErrorHandler','CrashReporter','VRVMM','328vTuqGB','nZrQp','[Crash_Report_Upload]\x20Success\x20response:\x20','pid','bRXPo','FDtpR','877587bNmnUb',',\x20Argument\x20-\x20','setConfigDetails','pZsKs','parse','Finished\x20::\x20','getCredentials','toString','Nudbd','1589NaLdaM'];a127_0xe790=function(){return _0x4004f6;};return a127_0xe790();}const a127_0x4a4de5={};a127_0x4a4de5[a127_0x573c20(0x19d)]=o11yErrorHandler,a127_0x4a4de5['o11yClassErrorHandler']=o11yClassErrorHandler,a127_0x4a4de5[a127_0x573c20(0x19e)]=CrashReporter,module[a127_0x573c20(0x157)]=a127_0x4a4de5;
|
|
1
|
+
const a127_0x3024a0=a127_0x495d;(function(_0xc85605,_0x481917){const _0xbf3fa9=a127_0x495d,_0x5743a5=_0xc85605();while(!![]){try{const _0x52a660=-parseInt(_0xbf3fa9(0x228))/0x1*(-parseInt(_0xbf3fa9(0x227))/0x2)+-parseInt(_0xbf3fa9(0x1dc))/0x3*(parseInt(_0xbf3fa9(0x240))/0x4)+-parseInt(_0xbf3fa9(0x22c))/0x5*(parseInt(_0xbf3fa9(0x216))/0x6)+-parseInt(_0xbf3fa9(0x1f5))/0x7*(parseInt(_0xbf3fa9(0x23e))/0x8)+-parseInt(_0xbf3fa9(0x202))/0x9*(-parseInt(_0xbf3fa9(0x204))/0xa)+-parseInt(_0xbf3fa9(0x214))/0xb*(parseInt(_0xbf3fa9(0x245))/0xc)+parseInt(_0xbf3fa9(0x1e5))/0xd;if(_0x52a660===_0x481917)break;else _0x5743a5['push'](_0x5743a5['shift']());}catch(_0x1a92c3){_0x5743a5['push'](_0x5743a5['shift']());}}}(a127_0x4557,0x30e69));function a127_0x495d(_0x139f07,_0x2611b9){const _0x45573a=a127_0x4557();return a127_0x495d=function(_0x495d1f,_0x43a859){_0x495d1f=_0x495d1f-0x1da;let _0x547c26=_0x45573a[_0x495d1f];return _0x547c26;},a127_0x495d(_0x139f07,_0x2611b9);}const util=require(a127_0x3024a0(0x21a)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a127_0x3024a0(0x1fc)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x478b22,_0x74e787='',_0x3016c1=[''],_0x30ab3f=![])=>{const _0x4352bc={'xFcRG':function(_0x2db2f3,_0x47dac7){return _0x2db2f3(_0x47dac7);},'PIhnB':function(_0x3c2e41,_0x40b640,_0x270f23){return _0x3c2e41(_0x40b640,_0x270f23);},'SrOcM':function(_0x3ac2bf,_0x59ba15,_0x3426f5){return _0x3ac2bf(_0x59ba15,_0x3426f5);},'krCAv':function(_0x38d406,_0x5bc14c){return _0x38d406 instanceof _0x5bc14c;},'HLcPi':function(_0x98accd,_0x402795,_0x1295c5,_0x343d2f,_0x505b0b){return _0x98accd(_0x402795,_0x1295c5,_0x343d2f,_0x505b0b);}};return function(..._0x2d2fc4){const _0x2152b8=a127_0x495d;try{let _0x28cd95=_0x478b22;process[_0x2152b8(0x200)][_0x2152b8(0x224)]&&(_0x28cd95=PerformanceTester[_0x2152b8(0x211)]()[_0x2152b8(0x215)](_0x28cd95));_0x30ab3f&&_0x4352bc[_0x2152b8(0x235)](trace,_0x2152b8(0x231)+_0x74e787+_0x2152b8(0x1f6)+process[_0x2152b8(0x234)]+_0x2152b8(0x1ea)+_0x4352bc[_0x2152b8(0x238)](nestedKeyValue,arguments[0x0],_0x3016c1));const _0x4af8f2=_0x28cd95[_0x2152b8(0x23f)](null,arguments);_0x30ab3f&&_0x4352bc[_0x2152b8(0x235)](trace,_0x2152b8(0x1dd)+_0x74e787+_0x2152b8(0x1f6)+process[_0x2152b8(0x234)]+_0x2152b8(0x1ea)+_0x4352bc[_0x2152b8(0x23b)](nestedKeyValue,arguments[0x0],_0x3016c1));if(_0x4352bc['krCAv'](_0x4af8f2,Promise))return _0x4af8f2['catch'](_0x237ec7=>processError(_0x237ec7,_0x478b22,_0x2d2fc4,_0x74e787));return _0x4af8f2;}catch(_0x192cda){_0x4352bc[_0x2152b8(0x23a)](processError,_0x192cda,_0x478b22,_0x2d2fc4,_0x74e787);}};},o11yClassErrorHandler=(_0x16d2ef,_0x1a45a0,_0x43a591='')=>{const _0x2796c4=a127_0x3024a0,_0xcbc347={'mBaTL':function(_0x3142df,_0x59c6aa){return _0x3142df instanceof _0x59c6aa;},'BJaXx':function(_0xa3614d,_0x27382c,_0x179b89,_0x5732b8,_0x4a1ee4){return _0xa3614d(_0x27382c,_0x179b89,_0x5732b8,_0x4a1ee4);},'xZvSu':function(_0x2784ae,_0x4afd70){return _0x2784ae===_0x4afd70;},'NFlAt':'function','dRVpt':function(_0x52b7f5,_0x4ceae7){return _0x52b7f5!==_0x4ceae7;},'gmBfh':_0x2796c4(0x248),'lUTHO':function(_0x40502f,_0x3f04c5){return _0x40502f<_0x3f04c5;}},_0xa5c861=_0x16d2ef[_0x2796c4(0x21b)];if(_0xcbc347['lUTHO'](Object[_0x2796c4(0x1f7)](_0xa5c861)[_0x2796c4(0x218)],0x2))return _0x16d2ef;return Object['getOwnPropertyNames'](_0xa5c861)['forEach'](_0x249bf2=>{const _0x59ccfb=_0x2796c4;if(!(_0x1a45a0&&_0x1a45a0['includes'](_0x249bf2)))return;const _0x3e66dd=_0xa5c861[_0x249bf2];_0xcbc347['xZvSu'](typeof _0x3e66dd,_0xcbc347[_0x59ccfb(0x1ef)])&&_0xcbc347[_0x59ccfb(0x232)](_0x249bf2,_0xcbc347['gmBfh'])&&Object[_0x59ccfb(0x1e9)](_0xa5c861,_0x249bf2,{'writable':!![],'value':function(..._0x383ffe){const _0x513977=_0x59ccfb;try{const _0x2b215f=(process['env'][_0x513977(0x224)]?PerformanceTester[_0x513977(0x211)]()['timerify'](_0x3e66dd):_0x3e66dd)[_0x513977(0x222)](this,..._0x383ffe);if(_0xcbc347['mBaTL'](_0x2b215f,Promise))return _0x2b215f[_0x513977(0x1ff)](_0x1771a4=>processError(_0x1771a4,_0x3e66dd,_0x383ffe,_0x43a591));return _0x2b215f;}catch(_0x2eafa8){_0xcbc347['BJaXx'](processError,_0x2eafa8,_0x3e66dd,_0x383ffe,_0x43a591);}}});}),_0x16d2ef;};function processError(_0x19f825,_0x27d832,_0x1acd67,_0x5211f2){const _0x1fca80=a127_0x3024a0,_0x4aa3a4={'mfkAs':function(_0x365b1e,_0x3405d1){return _0x365b1e(_0x3405d1);}};_0x4aa3a4[_0x1fca80(0x22b)](debug,_0x1fca80(0x225)+_0x27d832[_0x1fca80(0x21c)]+_0x1fca80(0x239)+_0x5211f2+_0x1fca80(0x233)+util[_0x1fca80(0x20d)](_0x19f825)+'.\x20Args\x20-\x20'+_0x1acd67+'.'),PerformanceTester['captureError'](_0x19f825);let _0x16adce;try{_0x16adce=JSON[_0x1fca80(0x22a)](_0x1acd67);}catch(_0x40343f){const _0x2e8ba7={};_0x2e8ba7[_0x1fca80(0x1f0)]=0x2,_0x16adce=util[_0x1fca80(0x1f9)](_0x1acd67,_0x2e8ba7);}CrashReporter[_0x1fca80(0x212)](_0x1fca80(0x225)+_0x27d832[_0x1fca80(0x21c)]+_0x1fca80(0x239)+_0x5211f2+'.\x20Error\x20-\x20'+_0x19f825+_0x1fca80(0x226)+_0x16adce+'.',_0x19f825&&_0x19f825[_0x1fca80(0x244)]);}function a127_0x4557(){const _0x36677b=['46552yorGqD','apply','210428hEZDtb','QUPtG','cdlgt','setCredentials','stack','708GfdDYm','toLowerCase','userConfig','constructor','/api/v1/analytics','ssfaF','setFrameworkDetails','POST','6qGmBds','Finished\x20::\x20','vmeEM','true','auth','KxSgG','setConfigDetails','initialize','setAllDetails','8699210DVrgbx','BXOlL','hlyuN','VYVcp','defineProperty',',\x20Argument\x20-\x20','keys','KsQmT','includes','toString','NFlAt','depth','credentials','IBMqr','o11yClassErrorHandler','USER_CONFIG_FOR_REPORTING','413yGoHPK',',\x20PID\x20-\x20','getOwnPropertyNames','CREDENTIALS_FOR_CRASH_REPORTING','inspect','getConfig','IzmtL','./utils','parse','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','catch','env','frameworkDetails','55206lNjQJm','VVhWd','20LeIcaT','then','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','wkYVp','X-BSTACK-TESTOPS','frameworkName','frameworkVersion','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','getFramework','format','iarSo','filterPII','nzAhg','getPerformance','uploadCrashReport','username','17699cHPdNf','timerify','16140CFKczL','user','length','zArOt','util','prototype','name','recursivelyDeletePIIKeysFromObject','getCredentials','Content-Type','BS_TESTOPS_BUILD_HASHED_ID','password','call','CrashReporter','BROWSERSTACK_O11Y_PERF_MEASUREMENT','Error\x20in\x20executing\x20','.\x20Args\x20-\x20','16310dXYyTy','37pzURgQ','rTLDL','stringify','mfkAs','445jhgBRW','headers','exports','o11yErrorHandler','accessKey','Started\x20::\x20','dRVpt','.\x20Error\x20-\x20','pid','xFcRG','UHmyW','Bzzxi','PIhnB','\x20--\x20','HLcPi','SrOcM','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','application/json'];a127_0x4557=function(){return _0x36677b;};return a127_0x4557();}class CrashReporter{static [a127_0x3024a0(0x247)]={};static [a127_0x3024a0(0x1f1)];static [a127_0x3024a0(0x201)]={};static[a127_0x3024a0(0x1e3)](_0x4a721a,_0x6b314f,_0x2aea1b=null){const _0x36fe4=a127_0x3024a0,_0x3b9df7={'QUPtG':function(_0x37a4bc,_0x97adff){return _0x37a4bc(_0x97adff);}},_0x1e9853=_0x4a721a['frameworkName'],_0xb4efb4=_0x4a721a['frameworkVersion'];!_0x2aea1b&&(_0x2aea1b=_0x3b9df7['QUPtG'](getBrowserStackConfig,_0x1e9853));!_0xb4efb4&&_0x3b9df7[_0x36fe4(0x241)](getFrameworkVersion,_0x1e9853);const _0x985dde={};_0x985dde[_0x36fe4(0x209)]=_0x1e9853,_0x985dde[_0x36fe4(0x20a)]=_0xb4efb4,this[_0x36fe4(0x1e4)](_0x985dde,_0x6b314f,_0x3b9df7[_0x36fe4(0x241)](getUserCredentials,_0x2aea1b));}static[a127_0x3024a0(0x243)](_0x4ea5ed,_0x501829){const _0x4f3ab1=a127_0x3024a0,_0x417c8b={};_0x417c8b[_0x4f3ab1(0x213)]=_0x4ea5ed,_0x417c8b[_0x4f3ab1(0x230)]=_0x501829,this[_0x4f3ab1(0x1f1)]=_0x417c8b,process[_0x4f3ab1(0x200)][_0x4f3ab1(0x1f8)]=JSON[_0x4f3ab1(0x22a)](this[_0x4f3ab1(0x1f1)]);}static[a127_0x3024a0(0x21e)](){const _0x18071e=a127_0x3024a0,_0x34c6df={'Bzzxi':function(_0x28aeb9,_0x1aace3){return _0x28aeb9(_0x1aace3);}};if(!this[_0x18071e(0x1f1)]&&process['env'][_0x18071e(0x1f8)])try{this[_0x18071e(0x1f1)]=JSON[_0x18071e(0x1fd)](process[_0x18071e(0x200)][_0x18071e(0x1f8)]);}catch(_0x533713){_0x34c6df[_0x18071e(0x237)](debug,_0x18071e(0x206)+_0x533713['toString']());}return this[_0x18071e(0x1f1)];}static[a127_0x3024a0(0x1e2)](_0x5d05fc){const _0x56d59a=a127_0x3024a0;this[_0x56d59a(0x247)]=this[_0x56d59a(0x20f)](_0x5d05fc),process[_0x56d59a(0x200)][_0x56d59a(0x1f4)]=JSON[_0x56d59a(0x22a)](this[_0x56d59a(0x247)]);}static[a127_0x3024a0(0x1fa)](){const _0x48654d=a127_0x3024a0,_0x134a2b={'cdlgt':function(_0x243c46,_0x460b36){return _0x243c46===_0x460b36;},'VYVcp':function(_0xd02ac9,_0x22d87c){return _0xd02ac9(_0x22d87c);}};if(_0x134a2b[_0x48654d(0x242)](Object[_0x48654d(0x1eb)](this[_0x48654d(0x247)])['length'],0x0)&&process[_0x48654d(0x200)][_0x48654d(0x1f4)])try{this[_0x48654d(0x247)]=JSON[_0x48654d(0x1fd)](process['env'][_0x48654d(0x1f4)]);}catch(_0x146c10){_0x134a2b[_0x48654d(0x1e8)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x146c10[_0x48654d(0x1ee)]()),this[_0x48654d(0x247)]={};}return this['userConfig'];}static[a127_0x3024a0(0x1da)](_0x56608a){const _0x383fb6=a127_0x3024a0;this[_0x383fb6(0x201)]=_0x56608a,process[_0x383fb6(0x200)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x383fb6(0x22a)](this[_0x383fb6(0x201)]);}static['getFramework'](){const _0x2ab6fa=a127_0x3024a0,_0x978b4a={'UNTPB':function(_0x296aae,_0x1a076d){return _0x296aae===_0x1a076d;},'GmdVd':function(_0x416eb0,_0x489320){return _0x416eb0(_0x489320);}};if(_0x978b4a['UNTPB'](Object[_0x2ab6fa(0x1eb)](this[_0x2ab6fa(0x201)])['length'],0x0)&&process[_0x2ab6fa(0x200)][_0x2ab6fa(0x23c)])try{this[_0x2ab6fa(0x201)]=JSON[_0x2ab6fa(0x1fd)](process[_0x2ab6fa(0x200)][_0x2ab6fa(0x23c)]);}catch(_0x5dcb26){_0x978b4a['GmdVd'](debug,_0x2ab6fa(0x206)+_0x5dcb26['toString']());}return this[_0x2ab6fa(0x201)];}static[a127_0x3024a0(0x1e4)](_0x1c5a12,_0x1ff23d,_0x4aa46c){const _0x2e3b75=a127_0x3024a0;_0x1c5a12&&this[_0x2e3b75(0x1da)](_0x1c5a12),_0x1ff23d&&this[_0x2e3b75(0x1e2)](_0x1ff23d),_0x4aa46c&&this[_0x2e3b75(0x243)](_0x4aa46c[_0x2e3b75(0x213)],_0x4aa46c[_0x2e3b75(0x230)]);}static async[a127_0x3024a0(0x212)](_0x1ee875,_0x2a4311){const _0x2a5a98=a127_0x3024a0,_0x5c3e6c={'KsQmT':function(_0x2fb10f,_0x2b1a1e){return _0x2fb10f(_0x2b1a1e);},'UHmyW':function(_0x2603a0,_0x216b96){return _0x2603a0(_0x216b96);},'iarSo':_0x2a5a98(0x1fe),'zArOt':function(_0x5bffe2){return _0x5bffe2();},'IzmtL':_0x2a5a98(0x249),'rTLDL':_0x2a5a98(0x23d),'IBMqr':_0x2a5a98(0x1df),'VVhWd':function(_0x5e0473,_0x56614b,_0x4966db,_0x188a96,_0x5bf0a8,_0x3cf51f){return _0x5e0473(_0x56614b,_0x4966db,_0x188a96,_0x5bf0a8,_0x3cf51f);},'nzAhg':_0x2a5a98(0x1db)};this[_0x2a5a98(0x21e)]();if(!this[_0x2a5a98(0x1f1)])return _0x5c3e6c[_0x2a5a98(0x236)](debug,_0x5c3e6c[_0x2a5a98(0x20e)]);this[_0x2a5a98(0x1fa)](),this[_0x2a5a98(0x20c)]();const _0x3c453e={'hashed_id':process[_0x2a5a98(0x200)][_0x2a5a98(0x220)],'observability_version':{'sdkVersion':_0x5c3e6c[_0x2a5a98(0x219)](getAgentVersion),'frameworkName':this[_0x2a5a98(0x201)][_0x2a5a98(0x209)],'frameworkVersion':this[_0x2a5a98(0x201)][_0x2a5a98(0x20a)]},'exception':{'error':_0x1ee875[_0x2a5a98(0x1ee)](),'stackTrace':_0x2a4311},'config':this[_0x2a5a98(0x247)]},_0xdbb7e=_0x5c3e6c[_0x2a5a98(0x1fb)],_0x38c236={};_0x38c236[_0x2a5a98(0x213)]=this[_0x2a5a98(0x1f1)][_0x2a5a98(0x213)],_0x38c236[_0x2a5a98(0x221)]=this['credentials'][_0x2a5a98(0x230)];const _0x1dae2f={};_0x1dae2f[_0x2a5a98(0x21f)]=_0x5c3e6c[_0x2a5a98(0x229)],_0x1dae2f[_0x2a5a98(0x208)]=_0x5c3e6c[_0x2a5a98(0x1f2)];const _0x57563e={};_0x57563e[_0x2a5a98(0x1e0)]=_0x38c236,_0x57563e[_0x2a5a98(0x22d)]=_0x1dae2f;const _0x85516e=_0x57563e;_0x5c3e6c[_0x2a5a98(0x203)](nodeRequest,_0x5c3e6c[_0x2a5a98(0x210)],_0xdbb7e,_0x3c453e,_0x85516e,![])[_0x2a5a98(0x205)](_0x336507=>{const _0x57ec13=_0x2a5a98;_0x5c3e6c[_0x57ec13(0x1ec)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON['stringify'](_0x336507));})[_0x2a5a98(0x1ff)](_0x5533cc=>{const _0x188b6a=_0x2a5a98;_0x5c3e6c[_0x188b6a(0x1ec)](debug,_0x188b6a(0x20b)+util['format'](_0x5533cc));});}static[a127_0x3024a0(0x21d)](_0x329e7d){const _0x5913d8=a127_0x3024a0,_0x1f5401={};_0x1f5401[_0x5913d8(0x1e6)]=_0x5913d8(0x217),_0x1f5401[_0x5913d8(0x1e1)]=_0x5913d8(0x213),_0x1f5401[_0x5913d8(0x1de)]='key',_0x1f5401[_0x5913d8(0x1e7)]='accessKey',_0x1f5401['eFljh']='password',_0x1f5401[_0x5913d8(0x24a)]=function(_0x1723d2,_0x257f35){return _0x1723d2===_0x257f35;},_0x1f5401[_0x5913d8(0x207)]='object';const _0x167a57=_0x1f5401;if(!_0x329e7d)return;const _0x5e9864=[_0x167a57[_0x5913d8(0x1e6)],_0x167a57[_0x5913d8(0x1e1)],_0x167a57[_0x5913d8(0x1de)],_0x167a57[_0x5913d8(0x1e7)],_0x167a57['eFljh']];for(const _0x4605d0 in _0x329e7d){if(_0x5e9864[_0x5913d8(0x1ed)](_0x4605d0[_0x5913d8(0x246)]()))delete _0x329e7d[_0x4605d0];else _0x167a57[_0x5913d8(0x24a)](typeof _0x329e7d[_0x4605d0],_0x167a57['wkYVp'])&&this['recursivelyDeletePIIKeysFromObject'](_0x329e7d[_0x4605d0]);}}static[a127_0x3024a0(0x20f)](_0x46766e){const _0x190289=a127_0x3024a0,_0x5410cb=JSON[_0x190289(0x1fd)](JSON['stringify'](_0x46766e));return this[_0x190289(0x21d)](_0x5410cb),_0x5410cb;}}const a127_0x1ed42a={};a127_0x1ed42a[a127_0x3024a0(0x22f)]=o11yErrorHandler,a127_0x1ed42a[a127_0x3024a0(0x1f3)]=o11yClassErrorHandler,a127_0x1ed42a[a127_0x3024a0(0x223)]=CrashReporter,module[a127_0x3024a0(0x22e)]=a127_0x1ed42a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128_0x990ba0=a128_0x388c;(function(_0x208871,_0x445513){const _0x39e06b=a128_0x388c,_0x49f93b=_0x208871();while(!![]){try{const _0x47fa5e=-parseInt(_0x39e06b(0x158))/0x1*(-parseInt(_0x39e06b(0x16c))/0x2)+parseInt(_0x39e06b(0x176))/0x3*(-parseInt(_0x39e06b(0x15f))/0x4)+-parseInt(_0x39e06b(0x178))/0x5+parseInt(_0x39e06b(0x13f))/0x6+-parseInt(_0x39e06b(0x11a))/0x7+parseInt(_0x39e06b(0x16e))/0x8*(parseInt(_0x39e06b(0x120))/0x9)+-parseInt(_0x39e06b(0x11b))/0xa;if(_0x47fa5e===_0x445513)break;else _0x49f93b['push'](_0x49f93b['shift']());}catch(_0x5c746f){_0x49f93b['push'](_0x49f93b['shift']());}}}(a128_0x6971,0x95d07));function a128_0x6971(){const _0x194e97=['startEventBatchPolling','api/v1/screenshots','Interval-Queue','4509897DJqEzk','6093850VeULmo','logs','wxbDE','POST','rvcuX','5445jsrsZH','queue','pollEventBatchInterval','DuZhs','kind','EvvnI','pjuyf','TEST_SCREENSHOT','RuNWR','mMGgo','uploadPending','removeEventBatchPolling','TestRunStarted','push','message','REMOVING','sEiEh','\x20:\x20','api/v1/batch','upload-attachments','cXxud','instance','KeDPD','Rnclw','mYHoK','MYzAB','../../bin/utils/constants','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','test_run','format','mQESq','5865402PYJRGd','YrTTi','btzov','ByXnl','util','CNwdn','exports','uuid','includes','shouldProceed','XoXnK','LogCreated','bhyvi','byteLength','split','LEWAy','TEST_REPORTING_ANALYTICS','GvBCn','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','QlwZB','uwIlN','fxWPG','hook_run','GlBrD','gZgrr','1SIBJCi','event_type','EXCEPTION\x20IN\x20','NBool','screenshotEventUrl','ZTdFS','CBTSessionCreated','400VoUwEs','.\x20Request\x20Size\x20-\x20','start','getInstance','resetEventBatchPolling','EppgZ','map','GWXAb','yDqWp','uploadAttachmentUrl','Shutdown-Queue','shutdown','Processing\x20events.\x20Queue\x20Length\x20-\x20','2283334iztPxN','../helper','11368nPOTDn','GMVyI','FVhsn','eventUrl','TestRunFinished','batchAndPostEvents','proceedWithData','iDjyL','14667oSMwkh','Oehbb','3113720mpCzJj','Processing\x20batch\x20events\x20for\x20','data','HookRunStarted','BATCH_EVENT_TYPES','\x20event\x20successful\x20for\x20events\x20','slice','./constants','iVPDK','\x20REQUEST\x20TO\x20','KDSfD','pendingUploads','length','started','proceedWithUrl','GqjBG','3|6|4|5|2|0|1','add','splice','response','max'];a128_0x6971=function(){return _0x194e97;};return a128_0x6971();}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a128_0x990ba0(0x109)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a128_0x990ba0(0x16d)),util=require(a128_0x990ba0(0x143)),constants=require(a128_0x990ba0(0x13a));class RequestQueueHandler{static [a128_0x990ba0(0x135)];[a128_0x990ba0(0x10d)]=0x0;constructor(){const _0x2fb665=a128_0x990ba0,_0x14c20e={};_0x14c20e['yDqWp']=_0x2fb665(0x112),_0x14c20e[_0x2fb665(0x156)]=_0x2fb665(0x14a),_0x14c20e['DuZhs']=_0x2fb665(0x15e),_0x14c20e[_0x2fb665(0x140)]='TestRunFinished',_0x14c20e[_0x2fb665(0x134)]='TestRunSkipped',_0x14c20e[_0x2fb665(0x166)]='HookRunFinished',_0x14c20e[_0x2fb665(0x175)]=_0x2fb665(0x12c),_0x14c20e[_0x2fb665(0x141)]=_0x2fb665(0x105),_0x14c20e[_0x2fb665(0x11d)]=_0x2fb665(0x133),_0x14c20e[_0x2fb665(0x111)]=_0x2fb665(0x132),_0x14c20e[_0x2fb665(0x164)]=_0x2fb665(0x118);const _0x4ab89d=_0x14c20e,_0x1f2dd6=_0x4ab89d[_0x2fb665(0x167)][_0x2fb665(0x14d)]('|');let _0x4419c8=0x0;while(!![]){switch(_0x1f2dd6[_0x4419c8++]){case'0':this[_0x2fb665(0x106)]=[_0x4ab89d[_0x2fb665(0x156)],_0x4ab89d[_0x2fb665(0x123)],_0x4ab89d[_0x2fb665(0x140)],_0x4ab89d[_0x2fb665(0x134)],_0x4ab89d[_0x2fb665(0x166)],_0x4ab89d[_0x2fb665(0x175)],_0x4ab89d[_0x2fb665(0x141)]];continue;case'1':this['pollEventBatchInterval']=null;continue;case'2':this[_0x2fb665(0x168)]=_0x4ab89d[_0x2fb665(0x11d)];continue;case'3':this[_0x2fb665(0x121)]=[];continue;case'4':this[_0x2fb665(0x171)]=_0x4ab89d[_0x2fb665(0x111)];continue;case'5':this['screenshotEventUrl']=_0x4ab89d[_0x2fb665(0x164)];continue;case'6':this[_0x2fb665(0x10f)]=![];continue;}break;}}static[a128_0x990ba0(0x162)](){const _0x1ba8db=a128_0x990ba0;return!RequestQueueHandler[_0x1ba8db(0x135)]&&(RequestQueueHandler[_0x1ba8db(0x135)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a128_0x990ba0(0x161)]=()=>{const _0xfdbe2e=a128_0x990ba0;!this[_0xfdbe2e(0x10f)]&&(this[_0xfdbe2e(0x10f)]=!![],this[_0xfdbe2e(0x117)]());};[a128_0x990ba0(0x113)]=_0x3a8785=>{const _0x207fe9=a128_0x990ba0,_0x2672ac={'mMGgo':function(_0x1a64d8,_0xc12648){return _0x1a64d8===_0xc12648;},'GMVyI':_0x207fe9(0x127),'uwIlN':function(_0x503120,_0x421a0d){return _0x503120>_0x421a0d;},'LuyEz':function(_0x2d4391,_0x4e651f){return _0x2d4391===_0x4e651f;},'mQESq':'TEST_ATTACHMENT','MYzAB':function(_0x5064f5,_0x22964c){return _0x5064f5!==_0x22964c;},'lgvBE':_0x207fe9(0x172),'FVhsn':function(_0xcfdcd6,_0x5ca244){return _0xcfdcd6(_0x5ca244);},'KeDPD':'Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..'};if(this[_0x207fe9(0x106)][_0x207fe9(0x147)](_0x3a8785[_0x207fe9(0x159)])){if(_0x3a8785[_0x207fe9(0x11c)]&&_0x3a8785[_0x207fe9(0x11c)][0x0]&&_0x2672ac[_0x207fe9(0x129)](_0x3a8785[_0x207fe9(0x11c)][0x0][_0x207fe9(0x124)],_0x2672ac[_0x207fe9(0x16f)])){const _0x240e01={};return _0x240e01[_0x207fe9(0x148)]=!![],_0x240e01[_0x207fe9(0x174)]=[_0x3a8785],_0x240e01[_0x207fe9(0x110)]=this[_0x207fe9(0x15c)],_0x240e01;}if(_0x3a8785[_0x207fe9(0x11c)]&&_0x2672ac[_0x207fe9(0x153)](_0x3a8785[_0x207fe9(0x11c)][_0x207fe9(0x10e)],0x0)&&_0x2672ac['LuyEz'](_0x3a8785[_0x207fe9(0x11c)][0x0][_0x207fe9(0x124)],_0x2672ac[_0x207fe9(0x13e)])&&_0x2672ac[_0x207fe9(0x139)](_0x3a8785['event_type'],_0x2672ac['lgvBE'])){const _0x362e06={};return _0x362e06[_0x207fe9(0x148)]=!![],_0x362e06[_0x207fe9(0x174)]=[_0x3a8785],_0x362e06['proceedWithUrl']=this['uploadAttachmentUrl'],_0x362e06;}this[_0x207fe9(0x121)][_0x207fe9(0x12d)](_0x3a8785);let _0x17df55=null;const _0x81cf7f=this[_0x207fe9(0x148)]();_0x81cf7f&&(_0x2672ac[_0x207fe9(0x170)](trace,_0x2672ac[_0x207fe9(0x136)]),_0x17df55=this['queue'][_0x207fe9(0x108)](0x0,BATCH_SIZE),this['queue'][_0x207fe9(0x114)](0x0,BATCH_SIZE),this[_0x207fe9(0x163)]());const _0x1e6c9a={};return _0x1e6c9a[_0x207fe9(0x148)]=_0x81cf7f,_0x1e6c9a[_0x207fe9(0x174)]=_0x17df55,_0x1e6c9a[_0x207fe9(0x110)]=this[_0x207fe9(0x171)],_0x1e6c9a;}const _0x463b27={};return _0x463b27['shouldProceed']=!![],_0x463b27;};[a128_0x990ba0(0x16a)]=async()=>{const _0x4fcacf=a128_0x990ba0,_0x5baf24={'Oehbb':_0x4fcacf(0x12f),'Rnclw':function(_0x3f2d5e,_0x254edc){return _0x3f2d5e>_0x254edc;},'hXycJ':_0x4fcacf(0x169),'EvvnI':function(_0x2e5e5d,_0x33f4b6){return _0x2e5e5d(_0x33f4b6);}};await this[_0x4fcacf(0x12a)](),this['removeEventBatchPolling'](_0x5baf24[_0x4fcacf(0x177)]);while(_0x5baf24[_0x4fcacf(0x137)](this['queue'][_0x4fcacf(0x10e)],0x0)){const _0x4a21e6=this[_0x4fcacf(0x121)][_0x4fcacf(0x108)](0x0,BATCH_SIZE);this[_0x4fcacf(0x121)]['splice'](0x0,BATCH_SIZE),await this[_0x4fcacf(0x173)](this[_0x4fcacf(0x171)],_0x5baf24['hXycJ'],_0x4a21e6);}_0x5baf24[_0x4fcacf(0x137)](this[_0x4fcacf(0x10d)],0x0)&&_0x5baf24[_0x4fcacf(0x125)](debug,_0x4fcacf(0x13b)+this['pendingUploads']);};['batchAndPostEvents']=async(_0x2aaba3,_0x40d95a,_0x50bcfa)=>{const _0x5c3341=a128_0x990ba0,_0x1c15e0={'MiIWf':function(_0x3ebe4e,_0x556a1c){return _0x3ebe4e(_0x556a1c);},'bhyvi':'utf8','RuNWR':function(_0x544b8b){return _0x544b8b();},'LEWAy':function(_0x5c4e67,_0x1622f0,_0x362147,_0x166fc6,_0x508307){return _0x5c4e67(_0x1622f0,_0x362147,_0x166fc6,_0x508307);},'KDSfD':_0x5c3341(0x11e),'KXTGG':function(_0x1aabea,_0x2eda2a){return _0x1aabea(_0x2eda2a);},'sEiEh':function(_0x4fcd0f,_0x285975){return _0x4fcd0f-_0x285975;},'gZgrr':function(_0x4096da,_0x10564b){return _0x4096da(_0x10564b);}};let _0x43c19f='';try{_0x43c19f=_0x50bcfa[_0x5c3341(0x165)](_0x6ea3ec=>'\x27'+_0x6ea3ec[_0x5c3341(0x159)]+'\x27:'+(nestedKeyValue(_0x6ea3ec,[_0x5c3341(0x13c),_0x5c3341(0x146)])||nestedKeyValue(_0x6ea3ec,[_0x5c3341(0x155),_0x5c3341(0x146)])))['join'](','),_0x1c15e0['MiIWf'](debug,_0x5c3341(0x103)+_0x40d95a+_0x5c3341(0x160)+Buffer[_0x5c3341(0x14c)](util['format']('%j',_0x50bcfa),_0x1c15e0[_0x5c3341(0x14b)])+'\x20bytes.\x20Events\x20are\x20'+_0x43c19f);}catch(_0x3c35bf){_0x1c15e0['MiIWf'](debug,_0x5c3341(0x151)+util[_0x5c3341(0x13d)](_0x3c35bf)+'}');}const _0xfc600b={'headers':_0x1c15e0[_0x5c3341(0x128)](getDefaultHeaders)};try{const _0x55d56a=await _0x1c15e0[_0x5c3341(0x14e)](nodeRequest,_0x1c15e0[_0x5c3341(0x10c)],_0x2aaba3,_0x50bcfa,_0xfc600b);if(_0x55d56a['data']['error']){const _0x5a29ed={};_0x5a29ed[_0x5c3341(0x12e)]=_0x55d56a[_0x5c3341(0x104)]['error'];throw _0x5a29ed;}else _0x1c15e0['KXTGG'](debug,_0x40d95a+_0x5c3341(0x107)+_0x43c19f+'\x20--\x20'+util[_0x5c3341(0x13d)]('%j',_0x55d56a[_0x5c3341(0x104)])),this[_0x5c3341(0x10d)]=Math[_0x5c3341(0x116)](0x0,_0x1c15e0[_0x5c3341(0x130)](this[_0x5c3341(0x10d)],_0x50bcfa[_0x5c3341(0x10e)]));}catch(_0x19a678){_0x19a678[_0x5c3341(0x115)]?_0x1c15e0[_0x5c3341(0x157)](debug,_0x5c3341(0x15a)+_0x40d95a+_0x5c3341(0x10b)+constants[_0x5c3341(0x14f)]+_0x5c3341(0x131)+_0x19a678[_0x5c3341(0x115)]['status']+'\x20'+_0x19a678[_0x5c3341(0x115)]['statusText']+'\x20'+util[_0x5c3341(0x13d)]('%j',_0x19a678[_0x5c3341(0x115)])):_0x1c15e0[_0x5c3341(0x157)](debug,_0x5c3341(0x15a)+_0x40d95a+_0x5c3341(0x10b)+constants[_0x5c3341(0x14f)]+_0x5c3341(0x131)+(_0x19a678[_0x5c3341(0x12e)]||_0x19a678)),this[_0x5c3341(0x10d)]=Math[_0x5c3341(0x116)](0x0,_0x1c15e0[_0x5c3341(0x130)](this[_0x5c3341(0x10d)],_0x50bcfa[_0x5c3341(0x10e)]));}};[a128_0x990ba0(0x117)]=()=>{const _0x25ea8f=a128_0x990ba0,_0x4a9b18={'NBool':function(_0x38c5f7,_0x162926){return _0x38c5f7>_0x162926;},'ZTdFS':function(_0x14a9a3,_0x11907b){return _0x14a9a3(_0x11907b);},'XoXnK':_0x25ea8f(0x119),'cDhYt':function(_0x5c3609,_0x450c70){return _0x5c3609(_0x450c70);},'rvcuX':function(_0x4bb816,_0x4a1934,_0x5ec7a7){return _0x4bb816(_0x4a1934,_0x5ec7a7);}};this[_0x25ea8f(0x122)]=_0x4a9b18[_0x25ea8f(0x11f)](setInterval,async()=>{const _0x432caa=_0x25ea8f;if(_0x4a9b18[_0x432caa(0x15b)](this[_0x432caa(0x121)][_0x432caa(0x10e)],0x0)){_0x4a9b18[_0x432caa(0x15d)](trace,_0x432caa(0x16b)+this[_0x432caa(0x121)]['length']);const _0xcb7716=this[_0x432caa(0x121)][_0x432caa(0x108)](0x0,BATCH_SIZE);this[_0x432caa(0x121)][_0x432caa(0x114)](0x0,BATCH_SIZE),await this[_0x432caa(0x173)](this[_0x432caa(0x171)],_0x4a9b18[_0x432caa(0x149)],_0xcb7716),_0x4a9b18['cDhYt'](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x432caa(0x121)][_0x432caa(0x10e)]);}},BATCH_INTERVAL);};[a128_0x990ba0(0x163)]=()=>{const _0x580e96=a128_0x990ba0,_0x1381ef={};_0x1381ef[_0x580e96(0x144)]='RESETTING';const _0x35879e=_0x1381ef;this[_0x580e96(0x12b)](_0x35879e[_0x580e96(0x144)]),this[_0x580e96(0x117)]();};[a128_0x990ba0(0x12b)]=_0x23150b=>{const _0x2686eb=a128_0x990ba0,_0x123198={'iVPDK':function(_0x960ebd,_0x3ffa4a){return _0x960ebd(_0x3ffa4a);},'QlwZB':function(_0x38b57d,_0x34ed96){return _0x38b57d===_0x34ed96;},'GvBCn':_0x2686eb(0x12f)};this[_0x2686eb(0x122)]&&(_0x123198[_0x2686eb(0x10a)](clearInterval,this[_0x2686eb(0x122)]),this[_0x2686eb(0x122)]=null,_0x123198[_0x2686eb(0x152)](_0x23150b,_0x123198[_0x2686eb(0x150)])&&(this[_0x2686eb(0x10f)]=![]));};[a128_0x990ba0(0x148)]=()=>{const _0xbbed1b=a128_0x990ba0,_0x41db4c={};_0x41db4c['pjuyf']=function(_0x6faa27,_0x3a8a4f){return _0x6faa27>=_0x3a8a4f;};const _0x5b1bb6=_0x41db4c;return _0x5b1bb6[_0xbbed1b(0x126)](this[_0xbbed1b(0x121)]['length'],BATCH_SIZE);};async[a128_0x990ba0(0x12a)](_0x1f7d75=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4f2b4c=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x3bd5f6=a128_0x990ba0,_0x377bc4={'fxWPG':function(_0x50d46d,_0x385b9a){return _0x50d46d<=_0x385b9a;},'ByXnl':function(_0x537fb8,_0xfc62ff){return _0x537fb8(_0xfc62ff);},'mYHoK':function(_0xce9c06,_0x4322ff){return _0xce9c06-_0x4322ff;}};if(_0x377bc4[_0x3bd5f6(0x154)](this['pendingUploads'],0x0)||_0x377bc4[_0x3bd5f6(0x154)](_0x1f7d75,0x0))return;return await _0x377bc4[_0x3bd5f6(0x142)](sleep,_0x4f2b4c),this[_0x3bd5f6(0x12a)](_0x377bc4[_0x3bd5f6(0x138)](_0x1f7d75,_0x4f2b4c));}}function a128_0x388c(_0x3d6828,_0x5a317b){const _0x697135=a128_0x6971();return a128_0x388c=function(_0x388c77,_0x45e592){_0x388c77=_0x388c77-0x103;let _0x1ccaba=_0x697135[_0x388c77];return _0x1ccaba;},a128_0x388c(_0x3d6828,_0x5a317b);}module[a128_0x990ba0(0x145)]=RequestQueueHandler;
|
|
1
|
+
const a128_0x210a63=a128_0x31f9;(function(_0x111458,_0x238508){const _0x27f8ba=a128_0x31f9,_0x2d0855=_0x111458();while(!![]){try{const _0x2d7aac=-parseInt(_0x27f8ba(0x13a))/0x1*(parseInt(_0x27f8ba(0x128))/0x2)+-parseInt(_0x27f8ba(0x126))/0x3+-parseInt(_0x27f8ba(0x115))/0x4*(parseInt(_0x27f8ba(0x160))/0x5)+-parseInt(_0x27f8ba(0x176))/0x6*(-parseInt(_0x27f8ba(0x16a))/0x7)+-parseInt(_0x27f8ba(0x17f))/0x8*(-parseInt(_0x27f8ba(0x166))/0x9)+parseInt(_0x27f8ba(0x118))/0xa+-parseInt(_0x27f8ba(0x121))/0xb*(-parseInt(_0x27f8ba(0x17c))/0xc);if(_0x2d7aac===_0x238508)break;else _0x2d0855['push'](_0x2d0855['shift']());}catch(_0x2ba9bb){_0x2d0855['push'](_0x2d0855['shift']());}}}(a128_0x2553,0xf0fef));function a128_0x31f9(_0x125537,_0x319d9a){const _0x2553c1=a128_0x2553();return a128_0x31f9=function(_0x31f9bf,_0x29c0c0){_0x31f9bf=_0x31f9bf-0x10a;let _0x12789e=_0x2553c1[_0x31f9bf];return _0x12789e;},a128_0x31f9(_0x125537,_0x319d9a);}function a128_0x2553(){const _0x4f5882=['YTzKp','uploadAttachmentUrl','yiCGv','Lcuiy','Processing\x20events.\x20Queue\x20Length\x20-\x20','pollEventBatchInterval','response','3909xPNhxA','pcikX','\x20event\x20successful\x20for\x20events\x20','push','xxENM','lMmIM','OjfSJ','EXCEPTION\x20IN\x20','GiTwk','exports','QAWVX','add','FPQzT','removeEventBatchPolling','upload-attachments','pdOGc','eventUrl','Interval-Queue','Remaining\x20Queue\x20Length\x20-\x20','NnVpn','PIinr','GkDmQ','format','startEventBatchPolling','batchAndPostEvents','start','gtaLI','CBTSessionCreated','join','OnVmF','aIBnQ','BATCH_EVENT_TYPES','../helper','resetEventBatchPolling','ojEbM','\x20REQUEST\x20TO\x20','includes','\x20--\x20','5eaZqkr','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','uploadPending','TestRunFinished','\x20bytes.\x20Events\x20are\x20','getInstance','516555MgTtQy','event_type','Processing\x20batch\x20events\x20for\x20','QBAIg','7PCFpYd','shouldProceed','bQCkR','api/v1/screenshots','length','RESETTING','data','KUgxW','\x20:\x20','screenshotEventUrl','qodyI','ngOxI','875838rSdaSw','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','DTYJI','instance','util','logs','12cSqdnt','proceedWithUrl','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','176XBxBPh','dmDhF','Equkj','nnlEb','HookRunFinished','hook_run','PiYcl','started','statusText','kind','queue','KvfMF','POST','4505480tjdAAc','shutdown','error','3974780EkHfwf','pendingUploads','splice','eubSX','LGZhi','REMOVING','MJCBM','.\x20Request\x20Size\x20-\x20','RpjjR','40381759rIExrM','test_run','TEST_REPORTING_ANALYTICS','TestRunSkipped','uuid','5740446PTwYmJ','slice','742qcigbT','message','status','Epzcy','utf8','proceedWithData','byteLength','HookRunStarted','TestRunStarted','max','api/v1/batch'];a128_0x2553=function(){return _0x4f5882;};return a128_0x2553();}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a128_0x210a63(0x15a)),util=require(a128_0x210a63(0x17a)),constants=require('../../bin/utils/constants');class RequestQueueHandler{static [a128_0x210a63(0x179)];[a128_0x210a63(0x119)]=0x0;constructor(){const _0x5eb7eb=a128_0x210a63,_0x53c0d4={};_0x53c0d4[_0x5eb7eb(0x142)]='2|6|4|3|5|0|1',_0x53c0d4[_0x5eb7eb(0x175)]='LogCreated',_0x53c0d4[_0x5eb7eb(0x13b)]=_0x5eb7eb(0x155),_0x53c0d4[_0x5eb7eb(0x14e)]=_0x5eb7eb(0x163),_0x53c0d4['LxeBz']=_0x5eb7eb(0x124),_0x53c0d4['yiCGv']=_0x5eb7eb(0x10c),_0x53c0d4['lMmIM']=_0x5eb7eb(0x130),_0x53c0d4['NnVpn']=_0x5eb7eb(0x12f),_0x53c0d4[_0x5eb7eb(0x158)]=_0x5eb7eb(0x16d),_0x53c0d4['KvfMF']=_0x5eb7eb(0x132),_0x53c0d4[_0x5eb7eb(0x11c)]=_0x5eb7eb(0x148);const _0xf0f5a4=_0x53c0d4,_0x307320=_0xf0f5a4[_0x5eb7eb(0x142)]['split']('|');let _0x321371=0x0;while(!![]){switch(_0x307320[_0x321371++]){case'0':this[_0x5eb7eb(0x159)]=[_0xf0f5a4[_0x5eb7eb(0x175)],_0xf0f5a4['pcikX'],_0xf0f5a4[_0x5eb7eb(0x14e)],_0xf0f5a4['LxeBz'],_0xf0f5a4[_0x5eb7eb(0x135)],_0xf0f5a4[_0x5eb7eb(0x13f)],_0xf0f5a4[_0x5eb7eb(0x14d)]];continue;case'1':this[_0x5eb7eb(0x138)]=null;continue;case'2':this['queue']=[];continue;case'3':this[_0x5eb7eb(0x173)]=_0xf0f5a4[_0x5eb7eb(0x158)];continue;case'4':this[_0x5eb7eb(0x14a)]=_0xf0f5a4[_0x5eb7eb(0x113)];continue;case'5':this[_0x5eb7eb(0x134)]=_0xf0f5a4[_0x5eb7eb(0x11c)];continue;case'6':this[_0x5eb7eb(0x10f)]=![];continue;}break;}}static[a128_0x210a63(0x165)](){const _0x273787=a128_0x210a63;return!RequestQueueHandler[_0x273787(0x179)]&&(RequestQueueHandler[_0x273787(0x179)]=new RequestQueueHandler()),RequestQueueHandler[_0x273787(0x179)];}[a128_0x210a63(0x153)]=()=>{const _0x2463da=a128_0x210a63;!this[_0x2463da(0x10f)]&&(this['started']=!![],this['startEventBatchPolling']());};[a128_0x210a63(0x145)]=_0x4d2bc7=>{const _0x428ed8=a128_0x210a63,_0x37c5cf={'pdOGc':function(_0x4a5558,_0x470a7c){return _0x4a5558===_0x470a7c;},'QBAIg':'TEST_SCREENSHOT','qUPMS':function(_0xcb3e3,_0x47a568){return _0xcb3e3>_0x47a568;},'wHYKr':'TEST_ATTACHMENT','Epzcy':function(_0x29d4d4,_0x19efee){return _0x29d4d4!==_0x19efee;},'swBpy':'TestRunFinished','qodyI':function(_0x3636b1,_0x350cba){return _0x3636b1(_0x350cba);},'xxENM':_0x428ed8(0x177)};if(this[_0x428ed8(0x159)][_0x428ed8(0x15e)](_0x4d2bc7['event_type'])){if(_0x4d2bc7['logs']&&_0x4d2bc7[_0x428ed8(0x17b)][0x0]&&_0x37c5cf[_0x428ed8(0x149)](_0x4d2bc7[_0x428ed8(0x17b)][0x0][_0x428ed8(0x111)],_0x37c5cf[_0x428ed8(0x169)])){const _0x47150a={};return _0x47150a[_0x428ed8(0x16b)]=!![],_0x47150a[_0x428ed8(0x12d)]=[_0x4d2bc7],_0x47150a[_0x428ed8(0x17d)]=this[_0x428ed8(0x173)],_0x47150a;}if(_0x4d2bc7[_0x428ed8(0x17b)]&&_0x37c5cf['qUPMS'](_0x4d2bc7['logs'][_0x428ed8(0x16e)],0x0)&&_0x37c5cf['pdOGc'](_0x4d2bc7[_0x428ed8(0x17b)][0x0][_0x428ed8(0x111)],_0x37c5cf['wHYKr'])&&_0x37c5cf[_0x428ed8(0x12b)](_0x4d2bc7[_0x428ed8(0x167)],_0x37c5cf['swBpy'])){const _0x31af02={};return _0x31af02['shouldProceed']=!![],_0x31af02[_0x428ed8(0x12d)]=[_0x4d2bc7],_0x31af02['proceedWithUrl']=this['uploadAttachmentUrl'],_0x31af02;}this[_0x428ed8(0x112)][_0x428ed8(0x13d)](_0x4d2bc7);let _0x31ad21=null;const _0x558cae=this[_0x428ed8(0x16b)]();_0x558cae&&(_0x37c5cf[_0x428ed8(0x174)](trace,_0x37c5cf[_0x428ed8(0x13e)]),_0x31ad21=this[_0x428ed8(0x112)][_0x428ed8(0x127)](0x0,BATCH_SIZE),this['queue'][_0x428ed8(0x11a)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x4d5379={};return _0x4d5379[_0x428ed8(0x16b)]=_0x558cae,_0x4d5379[_0x428ed8(0x12d)]=_0x31ad21,_0x4d5379[_0x428ed8(0x17d)]=this[_0x428ed8(0x14a)],_0x4d5379;}const _0xb9c85={};return _0xb9c85[_0x428ed8(0x16b)]=!![],_0xb9c85;};[a128_0x210a63(0x116)]=async()=>{const _0x3fcecd=a128_0x210a63,_0x124c9d={'QAWVX':_0x3fcecd(0x11d),'GkDmQ':function(_0x2789d3,_0x532de5){return _0x2789d3>_0x532de5;},'UksHU':'Shutdown-Queue','OjfSJ':function(_0x5e7a5f,_0x32514e){return _0x5e7a5f(_0x32514e);}};await this[_0x3fcecd(0x162)](),this['removeEventBatchPolling'](_0x124c9d[_0x3fcecd(0x144)]);while(_0x124c9d[_0x3fcecd(0x14f)](this[_0x3fcecd(0x112)][_0x3fcecd(0x16e)],0x0)){const _0x46fba4=this[_0x3fcecd(0x112)][_0x3fcecd(0x127)](0x0,BATCH_SIZE);this[_0x3fcecd(0x112)][_0x3fcecd(0x11a)](0x0,BATCH_SIZE),await this[_0x3fcecd(0x152)](this[_0x3fcecd(0x14a)],_0x124c9d['UksHU'],_0x46fba4);}_0x124c9d[_0x3fcecd(0x14f)](this[_0x3fcecd(0x119)],0x0)&&_0x124c9d[_0x3fcecd(0x140)](debug,_0x3fcecd(0x17e)+this[_0x3fcecd(0x119)]);};[a128_0x210a63(0x152)]=async(_0x89012f,_0x324dbc,_0x19bde8)=>{const _0xa2bff4=a128_0x210a63,_0x14b1ce={'FPQzT':function(_0x862858,_0x10352b){return _0x862858(_0x10352b);},'ojEbM':_0xa2bff4(0x12c),'Equkj':function(_0x9c81a1,_0x6a5f11){return _0x9c81a1(_0x6a5f11);},'FycmJ':function(_0x3d373a){return _0x3d373a();},'MJCBM':function(_0xb15e59,_0x27237d,_0x5a9ef5,_0x20a5ed,_0x72068b){return _0xb15e59(_0x27237d,_0x5a9ef5,_0x20a5ed,_0x72068b);},'RpjjR':_0xa2bff4(0x114),'DTYJI':function(_0x4f76d7,_0x43f30c){return _0x4f76d7(_0x43f30c);},'hGFDI':function(_0xe444d1,_0x31d015){return _0xe444d1-_0x31d015;},'bQCkR':function(_0xe31a3c,_0x2b2f6b){return _0xe31a3c-_0x2b2f6b;}};let _0x434c17='';try{_0x434c17=_0x19bde8['map'](_0x2e9573=>'\x27'+_0x2e9573['event_type']+'\x27:'+(nestedKeyValue(_0x2e9573,[_0xa2bff4(0x122),_0xa2bff4(0x125)])||nestedKeyValue(_0x2e9573,[_0xa2bff4(0x10d),'uuid'])))[_0xa2bff4(0x156)](','),_0x14b1ce[_0xa2bff4(0x146)](debug,_0xa2bff4(0x168)+_0x324dbc+_0xa2bff4(0x11f)+Buffer[_0xa2bff4(0x12e)](util[_0xa2bff4(0x150)]('%j',_0x19bde8),_0x14b1ce[_0xa2bff4(0x15c)])+_0xa2bff4(0x164)+_0x434c17);}catch(_0xd44d89){_0x14b1ce[_0xa2bff4(0x10a)](debug,_0xa2bff4(0x161)+util[_0xa2bff4(0x150)](_0xd44d89)+'}');}const _0x3769ea={'headers':_0x14b1ce['FycmJ'](getDefaultHeaders)};try{const _0x48887c=await _0x14b1ce[_0xa2bff4(0x11e)](nodeRequest,_0x14b1ce[_0xa2bff4(0x120)],_0x89012f,_0x19bde8,_0x3769ea);if(_0x48887c['data'][_0xa2bff4(0x117)]){const _0x3d76c4={};_0x3d76c4['message']=_0x48887c[_0xa2bff4(0x170)][_0xa2bff4(0x117)];throw _0x3d76c4;}else _0x14b1ce[_0xa2bff4(0x178)](debug,_0x324dbc+_0xa2bff4(0x13c)+_0x434c17+_0xa2bff4(0x15f)+util[_0xa2bff4(0x150)]('%j',_0x48887c[_0xa2bff4(0x170)])),this['pendingUploads']=Math[_0xa2bff4(0x131)](0x0,_0x14b1ce['hGFDI'](this[_0xa2bff4(0x119)],_0x19bde8[_0xa2bff4(0x16e)]));}catch(_0x2a443d){_0x2a443d[_0xa2bff4(0x139)]?_0x14b1ce[_0xa2bff4(0x178)](debug,'EXCEPTION\x20IN\x20'+_0x324dbc+_0xa2bff4(0x15d)+constants[_0xa2bff4(0x123)]+_0xa2bff4(0x172)+_0x2a443d[_0xa2bff4(0x139)][_0xa2bff4(0x12a)]+'\x20'+_0x2a443d['response'][_0xa2bff4(0x110)]+'\x20'+util[_0xa2bff4(0x150)]('%j',_0x2a443d[_0xa2bff4(0x139)])):_0x14b1ce[_0xa2bff4(0x146)](debug,_0xa2bff4(0x141)+_0x324dbc+_0xa2bff4(0x15d)+constants[_0xa2bff4(0x123)]+_0xa2bff4(0x172)+(_0x2a443d[_0xa2bff4(0x129)]||_0x2a443d)),this['pendingUploads']=Math[_0xa2bff4(0x131)](0x0,_0x14b1ce[_0xa2bff4(0x16c)](this['pendingUploads'],_0x19bde8[_0xa2bff4(0x16e)]));}};[a128_0x210a63(0x151)]=()=>{const _0x3a9060=a128_0x210a63,_0x931592={'nnlEb':function(_0x307bcc,_0x1b0dfe){return _0x307bcc>_0x1b0dfe;},'PiYcl':function(_0x5528fe,_0x416f68){return _0x5528fe(_0x416f68);},'YTzKp':_0x3a9060(0x14b),'eubSX':function(_0x30f4db,_0x3844fa,_0x8fff16){return _0x30f4db(_0x3844fa,_0x8fff16);}};this[_0x3a9060(0x138)]=_0x931592[_0x3a9060(0x11b)](setInterval,async()=>{const _0x56f2eb=_0x3a9060;if(_0x931592[_0x56f2eb(0x10b)](this[_0x56f2eb(0x112)][_0x56f2eb(0x16e)],0x0)){_0x931592['PiYcl'](trace,_0x56f2eb(0x137)+this[_0x56f2eb(0x112)]['length']);const _0x47072d=this[_0x56f2eb(0x112)][_0x56f2eb(0x127)](0x0,BATCH_SIZE);this[_0x56f2eb(0x112)][_0x56f2eb(0x11a)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this['eventUrl'],_0x931592[_0x56f2eb(0x133)],_0x47072d),_0x931592[_0x56f2eb(0x10e)](trace,_0x56f2eb(0x14c)+this[_0x56f2eb(0x112)][_0x56f2eb(0x16e)]);}},BATCH_INTERVAL);};[a128_0x210a63(0x15b)]=()=>{const _0x26e564=a128_0x210a63,_0x1b7dc5={};_0x1b7dc5[_0x26e564(0x136)]=_0x26e564(0x16f);const _0x20d899=_0x1b7dc5;this[_0x26e564(0x147)](_0x20d899[_0x26e564(0x136)]),this[_0x26e564(0x151)]();};[a128_0x210a63(0x147)]=_0x43a745=>{const _0x2443cf=a128_0x210a63,_0x145f7d={'GEikV':function(_0x306fd4,_0x474f7c){return _0x306fd4(_0x474f7c);},'ellih':function(_0x505742,_0x1f3801){return _0x505742===_0x1f3801;},'gtaLI':_0x2443cf(0x11d)};this[_0x2443cf(0x138)]&&(_0x145f7d['GEikV'](clearInterval,this[_0x2443cf(0x138)]),this[_0x2443cf(0x138)]=null,_0x145f7d['ellih'](_0x43a745,_0x145f7d[_0x2443cf(0x154)])&&(this[_0x2443cf(0x10f)]=![]));};['shouldProceed']=()=>{const _0x1a5367=a128_0x210a63,_0x1b4f55={};_0x1b4f55['KUgxW']=function(_0x4597b7,_0x439274){return _0x4597b7>=_0x439274;};const _0x5bdfe0=_0x1b4f55;return _0x5bdfe0[_0x1a5367(0x171)](this[_0x1a5367(0x112)][_0x1a5367(0x16e)],BATCH_SIZE);};async[a128_0x210a63(0x162)](_0x2b53d9=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x185b53=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x50da1b=a128_0x210a63,_0x584e6c={'ZmTOA':function(_0x1da8e8,_0x40de6e){return _0x1da8e8<=_0x40de6e;},'dmDhF':function(_0x38e33c,_0x7c5270){return _0x38e33c(_0x7c5270);},'OnVmF':function(_0x3f595d,_0x46f294){return _0x3f595d-_0x46f294;}};if(_0x584e6c['ZmTOA'](this[_0x50da1b(0x119)],0x0)||_0x584e6c['ZmTOA'](_0x2b53d9,0x0))return;return await _0x584e6c[_0x50da1b(0x180)](sleep,_0x185b53),this[_0x50da1b(0x162)](_0x584e6c[_0x50da1b(0x157)](_0x2b53d9,_0x185b53));}}module[a128_0x210a63(0x143)]=RequestQueueHandler;
|