browserstack-node-sdk 1.50.1 → 1.50.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
-
function a120_0x514b(){const _0x5427bc=['SDK_PERCY','SDK_CLEANUP','SDK_AUTOMATE','SESSION_STATUS','A11Y_EVENTS','TURBOSCALE_EVENTS','SDK_ACCESSIBILITY_CONFIG','SNAPSHOT','LOCAL_START','QUIT','SDK_CLI_ON_STOP','SAVE_RESULTS','77446MkiEnB','TESTHUB_EVENTS','SDK_POST_TEST','97797uUtdLT','SYNC','PERCY_EVENTS','sdk:a11y','TAKE_SCREENSHOT','SDK_CONNECT_BIN_SESSION','2837324diWNBe','sdk:setup','SDK_TEST_SESSION_EVENT','2760174geQgRA','sdk:automationFrameworkStart','sdk:o11y','SDK_AI_SELF_HEAL_STEP','sdk:cli:on-bootstrap','1710980fwwIlZ',':after','GET_RESULTS','sdk:turboscale','SDK_ON_STOP','sdk:percy',':after-all','sdk:driver',':ci-artifacts','SDK_A11Y',':before-all','sdk:testSessionEvent',':driver-takeScreenShot','sdk:aiSelfHealGetResult','sdk:testhub','SDK_DRIVER_INIT','sdk:cli:on-stop','SCREENSHOT','SESSION_ANNOTATION','sdk:proxy-setup','sdk:cli:on-connect',':snapshot',':get-accessibility-results-summary',':after-each',':idle-timeout',':before-each','PRE_EXECUTE','23043330KwJOty','SDK_SETUP','SDK_AUTO_CAPTURE','SDK_CLI_CHECK_UPDATE','SESSION_NAME',':print-buildlink','SDK_HOOK','sdk:automationFrameworkInit','sdk:automationFrameworkStop','sdk:pre-test','sdk:accessibilityConfig','SDK_CLI_DOWNLOAD','LOCAL_STOP','sdk:cli:download',':hub-management','sdk:driver:pre-initialization','SDK_AUTOMATION_FRAMEWORK_STOP','AUTO_CAPTURE','sdk:aiSelfHealStep','DRIVER_EVENT','sdk:post-test','5507664QknAYa','AFTER',':stop',':get-accessibility-results','SDK_CLI_START','SDK_CLI_LOG_CREATED_EVENT','O11y_EVENTS','SDK_APP_AUTOMATE','SDK_PRE_INITIALIZE','sdk:app-automate','SDK_CLI_ON_BOOTSTRAP',':local-start','BEFORE_ALL',':post-execute','SDK_TURBOSCALE','AFTER_ALL','SDK_AUTOMATION_FRAMEWORK_START','SDK_POST_INITIALIZE','sdk:connectBinSession','KEEP_ALIVE','PRINT_BUILDLINK','EVENTS','SDK_PRE_TEST','sdk:cleanup','BEFORE_EACH','SDK_O11Y','SDK_FIND_NEAREST_HUB','sdk:cli:start',':driver-performscan','sdk:driverInit',':session-status','SDK_TESTHUB','sdk:observabilityConfig',':quit','HUB_MANAGEMENT','POST_EXECUTE','START','SDK_START_BIN_SESSION','sdk:onStop','IDLE_TIMEOUT','sdk:cli:logCreatedEvent','AUTOMATE_EVENTS','exports','APP_AUOTMATE_EVENTS','AFTER_EACH','DRIVER_MANAGE','sdk:findNearestHub',':before','SDK_CLI_ENQUEUE_TEST_EVENT','19nEUOfS','sdk:test','354sWrFKL',':screenshot-app',':app-upload','SDK_DRIVER','SDK_AI_SELF_HEAL_GET_RESULT','HOOK_EVENTS',':auto-capture','BEFORE',':keep-alive','sdk:auto-capture','sdk:automate'];a120_0x514b=function(){return _0x5427bc;};return a120_0x514b();}function a120_0x59a8(_0x86ba01,_0x4d3de5){const _0x514b91=a120_0x514b();return a120_0x59a8=function(_0x59a8a3,_0x518f23){_0x59a8a3=_0x59a8a3-0x1d2;let _0x99e870=_0x514b91[_0x59a8a3];return _0x99e870;},a120_0x59a8(_0x86ba01,_0x4d3de5);}const a120_0x3aadfd=a120_0x59a8;(function(_0x316977,_0x519573){const _0x1eec0b=a120_0x59a8,_0x49f67d=_0x316977();while(!![]){try{const _0x4de81b=parseInt(_0x1eec0b(0x1ef))/0x1*(-parseInt(_0x1eec0b(0x208))/0x2)+-parseInt(_0x1eec0b(0x214))/0x3+-parseInt(_0x1eec0b(0x211))/0x4+parseInt(_0x1eec0b(0x219))/0x5+-parseInt(_0x1eec0b(0x1f1))/0x6*(-parseInt(_0x1eec0b(0x20b))/0x7)+-parseInt(_0x1eec0b(0x249))/0x8+parseInt(_0x1eec0b(0x234))/0x9;if(_0x4de81b===_0x519573)break;else _0x49f67d['push'](_0x49f67d['shift']());}catch(_0x48e7ce){_0x49f67d['push'](_0x49f67d['shift']());}}}(a120_0x514b,0xa45f7));const a120_0x8b9eae={};a120_0x8b9eae[a120_0x3aadfd(0x235)]=a120_0x3aadfd(0x212),a120_0x8b9eae[a120_0x3aadfd(0x1fd)]=a120_0x3aadfd(0x1d5),a120_0x8b9eae[a120_0x3aadfd(0x1d4)]=a120_0x3aadfd(0x23d),a120_0x8b9eae['SDK_TEST']=a120_0x3aadfd(0x1f0),a120_0x8b9eae[a120_0x3aadfd(0x20a)]=a120_0x3aadfd(0x248),a120_0x8b9eae[a120_0x3aadfd(0x23a)]='sdk:hook',a120_0x8b9eae['SDK_DRIVER']=a120_0x3aadfd(0x220),a120_0x8b9eae['SDK_A11Y']=a120_0x3aadfd(0x20e),a120_0x8b9eae[a120_0x3aadfd(0x1d7)]=a120_0x3aadfd(0x216),a120_0x8b9eae[a120_0x3aadfd(0x236)]=a120_0x3aadfd(0x1fa),a120_0x8b9eae['SDK_PROXY_SETUP']=a120_0x3aadfd(0x22c),a120_0x8b9eae[a120_0x3aadfd(0x1dd)]=a120_0x3aadfd(0x227),a120_0x8b9eae[a120_0x3aadfd(0x1fe)]=a120_0x3aadfd(0x1fb),a120_0x8b9eae['SDK_APP_AUTOMATE']=a120_0x3aadfd(0x252),a120_0x8b9eae[a120_0x3aadfd(0x257)]=a120_0x3aadfd(0x21c),a120_0x8b9eae[a120_0x3aadfd(0x1fc)]=a120_0x3aadfd(0x21e),a120_0x8b9eae[a120_0x3aadfd(0x251)]=a120_0x3aadfd(0x243),a120_0x8b9eae[a120_0x3aadfd(0x25a)]='sdk:driver:post-initialization',a120_0x8b9eae[a120_0x3aadfd(0x24d)]=a120_0x3aadfd(0x1d9),a120_0x8b9eae[a120_0x3aadfd(0x23f)]=a120_0x3aadfd(0x241),a120_0x8b9eae[a120_0x3aadfd(0x237)]='sdk:cli:check-update',a120_0x8b9eae[a120_0x3aadfd(0x253)]=a120_0x3aadfd(0x218),a120_0x8b9eae['SDK_CLI_ON_CONNECT']=a120_0x3aadfd(0x22d),a120_0x8b9eae[a120_0x3aadfd(0x206)]=a120_0x3aadfd(0x229),a120_0x8b9eae[a120_0x3aadfd(0x1e3)]='sdk:startBinSession',a120_0x8b9eae[a120_0x3aadfd(0x210)]=a120_0x3aadfd(0x25b),a120_0x8b9eae[a120_0x3aadfd(0x228)]=a120_0x3aadfd(0x1db),a120_0x8b9eae[a120_0x3aadfd(0x1d8)]=a120_0x3aadfd(0x1ec),a120_0x8b9eae['SDK_AUTOMATION_FRAMEWORK_INIT']=a120_0x3aadfd(0x23b),a120_0x8b9eae[a120_0x3aadfd(0x259)]=a120_0x3aadfd(0x215),a120_0x8b9eae[a120_0x3aadfd(0x202)]=a120_0x3aadfd(0x23e),a120_0x8b9eae['SDK_OBSERVABILITY_CONFIG']=a120_0x3aadfd(0x1de),a120_0x8b9eae[a120_0x3aadfd(0x217)]=a120_0x3aadfd(0x246),a120_0x8b9eae[a120_0x3aadfd(0x1f5)]=a120_0x3aadfd(0x226),a120_0x8b9eae['SDK_TEST_FRAMEWORK_EVENT']='sdk:testFrameworkEvent',a120_0x8b9eae[a120_0x3aadfd(0x213)]=a120_0x3aadfd(0x224),a120_0x8b9eae[a120_0x3aadfd(0x24e)]=a120_0x3aadfd(0x1e6),a120_0x8b9eae[a120_0x3aadfd(0x1ee)]='sdk:cli:enqueueTestEvent',a120_0x8b9eae[a120_0x3aadfd(0x244)]=a120_0x3aadfd(0x23c),a120_0x8b9eae[a120_0x3aadfd(0x21d)]=a120_0x3aadfd(0x1e4);const SDK_EVENTS=a120_0x8b9eae,a120_0x58939d={};a120_0x58939d[a120_0x3aadfd(0x1d3)]=SDK_EVENTS,a120_0x58939d[a120_0x3aadfd(0x209)]={},a120_0x58939d[a120_0x3aadfd(0x1e7)]={},a120_0x58939d[a120_0x3aadfd(0x200)]={},a120_0x58939d[a120_0x3aadfd(0x20d)]={},a120_0x58939d[a120_0x3aadfd(0x24f)]={},a120_0x58939d[a120_0x3aadfd(0x1f6)]={},a120_0x58939d[a120_0x3aadfd(0x201)]={},a120_0x58939d[a120_0x3aadfd(0x1e9)]={},a120_0x58939d[a120_0x3aadfd(0x247)]={},a120_0x58939d[a120_0x3aadfd(0x209)]['START']=SDK_EVENTS[a120_0x3aadfd(0x1dd)]+':start',a120_0x58939d[a120_0x3aadfd(0x209)]['STOP']=SDK_EVENTS[a120_0x3aadfd(0x1dd)]+':stop',a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x25c)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x1f9),a120_0x58939d[a120_0x3aadfd(0x1e7)]['HUB_MANAGEMENT']=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x242),a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x204)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x254),a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x240)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+':local-stop',a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x1eb)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+':driver-manage',a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x238)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+':session-name',a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x1ff)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x1dc),a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x22b)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+':session-annotation',a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x1e5)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x231),a120_0x58939d[a120_0x3aadfd(0x1e7)]['GENERATE_CI_ARTIFACT']=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x221),a120_0x58939d[a120_0x3aadfd(0x1e7)][a120_0x3aadfd(0x1d2)]=SDK_EVENTS[a120_0x3aadfd(0x1fe)]+a120_0x3aadfd(0x239),a120_0x58939d[a120_0x3aadfd(0x200)]['PERFORM_SCAN']=SDK_EVENTS[a120_0x3aadfd(0x222)]+a120_0x3aadfd(0x1da),a120_0x58939d[a120_0x3aadfd(0x200)][a120_0x3aadfd(0x207)]=SDK_EVENTS[a120_0x3aadfd(0x222)]+':save-results',a120_0x58939d[a120_0x3aadfd(0x200)][a120_0x3aadfd(0x21b)]=SDK_EVENTS['SDK_A11Y']+a120_0x3aadfd(0x24c),a120_0x58939d[a120_0x3aadfd(0x200)]['GET_RESULTS_SUMMARY']=SDK_EVENTS[a120_0x3aadfd(0x222)]+a120_0x3aadfd(0x22f),a120_0x58939d[a120_0x3aadfd(0x20d)]['DOWNLOAD']=SDK_EVENTS['SDK_PERCY']+':download',a120_0x58939d[a120_0x3aadfd(0x20d)][a120_0x3aadfd(0x22a)]=SDK_EVENTS[a120_0x3aadfd(0x1fc)]+':screenshot',a120_0x58939d[a120_0x3aadfd(0x20d)][a120_0x3aadfd(0x1e2)]=SDK_EVENTS[a120_0x3aadfd(0x1fc)]+':start',a120_0x58939d[a120_0x3aadfd(0x20d)]['STOP']=SDK_EVENTS[a120_0x3aadfd(0x1fc)]+a120_0x3aadfd(0x24b),a120_0x58939d[a120_0x3aadfd(0x20d)][a120_0x3aadfd(0x245)]=SDK_EVENTS['SDK_PERCY']+a120_0x3aadfd(0x1f7),a120_0x58939d[a120_0x3aadfd(0x20d)][a120_0x3aadfd(0x203)]=SDK_EVENTS[a120_0x3aadfd(0x1fc)]+a120_0x3aadfd(0x22e),a120_0x58939d[a120_0x3aadfd(0x20d)]['SCREENSHOT_APP']=SDK_EVENTS[a120_0x3aadfd(0x1fc)]+a120_0x3aadfd(0x1f2),a120_0x58939d[a120_0x3aadfd(0x24f)][a120_0x3aadfd(0x20c)]=SDK_EVENTS[a120_0x3aadfd(0x1d7)]+':sync',a120_0x58939d[a120_0x3aadfd(0x24f)][a120_0x3aadfd(0x20f)]=SDK_EVENTS[a120_0x3aadfd(0x1d7)]+a120_0x3aadfd(0x225),a120_0x58939d[a120_0x3aadfd(0x24f)][a120_0x3aadfd(0x1d2)]=SDK_EVENTS[a120_0x3aadfd(0x1d7)]+':print-buildlink',a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x1d6)]=SDK_EVENTS[a120_0x3aadfd(0x23a)]+a120_0x3aadfd(0x232),a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x1ea)]=SDK_EVENTS[a120_0x3aadfd(0x23a)]+a120_0x3aadfd(0x230),a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x258)]=SDK_EVENTS['SDK_HOOK']+a120_0x3aadfd(0x21f),a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x255)]=SDK_EVENTS[a120_0x3aadfd(0x23a)]+a120_0x3aadfd(0x223),a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x1f8)]=SDK_EVENTS[a120_0x3aadfd(0x23a)]+a120_0x3aadfd(0x1ed),a120_0x58939d[a120_0x3aadfd(0x1f6)][a120_0x3aadfd(0x24a)]=SDK_EVENTS['SDK_HOOK']+a120_0x3aadfd(0x21a),a120_0x58939d[a120_0x3aadfd(0x201)][a120_0x3aadfd(0x1e0)]=SDK_EVENTS[a120_0x3aadfd(0x257)]+a120_0x3aadfd(0x242),a120_0x58939d[a120_0x3aadfd(0x201)]['PRINT_BUILDLINK']=SDK_EVENTS[a120_0x3aadfd(0x257)]+a120_0x3aadfd(0x239),a120_0x58939d[a120_0x3aadfd(0x1e9)]['APP_UPLOAD']=SDK_EVENTS[a120_0x3aadfd(0x250)]+a120_0x3aadfd(0x1f3),a120_0x58939d[a120_0x3aadfd(0x247)][a120_0x3aadfd(0x205)]=SDK_EVENTS[a120_0x3aadfd(0x1f4)]+a120_0x3aadfd(0x1df),a120_0x58939d[a120_0x3aadfd(0x247)]['GET']=SDK_EVENTS[a120_0x3aadfd(0x1f4)]+':get',a120_0x58939d[a120_0x3aadfd(0x247)][a120_0x3aadfd(0x233)]=SDK_EVENTS[a120_0x3aadfd(0x1f4)]+':pre-execute',a120_0x58939d[a120_0x3aadfd(0x247)][a120_0x3aadfd(0x1e1)]=SDK_EVENTS[a120_0x3aadfd(0x1f4)]+a120_0x3aadfd(0x256),module[a120_0x3aadfd(0x1e8)]=a120_0x58939d;
|
|
1
|
+
const a120_0x51096b=a120_0x4138;(function(_0x3dbe91,_0x2ca01b){const _0x4b5850=a120_0x4138,_0x21665c=_0x3dbe91();while(!![]){try{const _0x25dec5=-parseInt(_0x4b5850(0x21b))/0x1*(-parseInt(_0x4b5850(0x1ea))/0x2)+-parseInt(_0x4b5850(0x1bf))/0x3+parseInt(_0x4b5850(0x208))/0x4*(-parseInt(_0x4b5850(0x1da))/0x5)+-parseInt(_0x4b5850(0x1de))/0x6+parseInt(_0x4b5850(0x226))/0x7*(-parseInt(_0x4b5850(0x1ef))/0x8)+parseInt(_0x4b5850(0x216))/0x9*(parseInt(_0x4b5850(0x1c6))/0xa)+parseInt(_0x4b5850(0x1fb))/0xb*(parseInt(_0x4b5850(0x1c4))/0xc);if(_0x25dec5===_0x2ca01b)break;else _0x21665c['push'](_0x21665c['shift']());}catch(_0xa8af6d){_0x21665c['push'](_0x21665c['shift']());}}}(a120_0x3c7a,0xabf40));function a120_0x3c7a(){const _0x41e0c4=['DRIVER_EVENT','SNAPSHOT',':quit','5849496RIXhri','sdk:findNearestHub','sdk:pre-test','SDK_PRE_TEST','SDK_A11Y','SYNC',':download','KEEP_ALIVE','sdk:driver:pre-initialization','sdk:a11y',':after-all','SDK_START_BIN_SESSION','36DPRcee','SDK_PERCY','SCREENSHOT','exports','HOOK_EVENTS','240oYvtoH','SDK_CLEANUP','PERCY_EVENTS','BEFORE_EACH',':keep-alive','sdk:cli:on-connect',':pre-execute','SDK_AI_SELF_HEAL_GET_RESULT','AFTER_ALL','sdk:automationFrameworkInit','sdk:driver:post-initialization',':driver-takeScreenShot','2002264KKMqDv','sdk:proxy-setup','TAKE_SCREENSHOT','APP_AUOTMATE_EVENTS','sdk:accessibilityConfig','sdk:aiSelfHealStep','sdk:percy','SDK_CLI_START','sdk:driverInit','sdk:onStop','SDK_FIND_NEAREST_HUB','SDK_DRIVER','sdk:auto-capture','5624IJXZqN','AFTER_EACH','DOWNLOAD','SDK_CLI_DOWNLOAD','sdk:cli:start','SDK_ON_STOP','SDK_CLI_CHECK_UPDATE','sdk:test','SESSION_NAME','HUB_MANAGEMENT','SDK_AUTOMATE','sdk:aiSelfHealGetResult','PRINT_BUILDLINK','TESTHUB_EVENTS','50598WNpSmG','SDK_POST_TEST','A11Y_EVENTS','sdk:testFrameworkEvent','SDK_SETUP','62400aiJJQX','sdk:connectBinSession','POST_EXECUTE',':get-accessibility-results-summary','GENERATE_CI_ARTIFACT',':ci-artifacts','PRE_EXECUTE',':get-accessibility-results',':before-all','IDLE_TIMEOUT','AUTOMATE_EVENTS','50603nKnhNh','sdk:testhub','SDK_CLI_ON_BOOTSTRAP','sdk:driver','SDK_CLI_ON_CONNECT','SDK_CONNECT_BIN_SESSION','SESSION_ANNOTATION',':screenshot','GET_RESULTS','BEFORE','DRIVER_MANAGE','SDK_HOOK','SDK_TEST','TURBOSCALE_EVENTS','sdk:post-test','PERFORM_SCAN','SDK_TEST_FRAMEWORK_EVENT',':session-annotation','sdk:cleanup','SDK_TURBOSCALE','sdk:o11y','LOCAL_STOP',':auto-capture','O11y_EVENTS','SCREENSHOT_APP','sdk:observabilityConfig','SDK_ACCESSIBILITY_CONFIG','STOP','SDK_AI_SELF_HEAL_STEP','GET_RESULTS_SUMMARY','sdk:cli:on-stop',':after-each','sdk:cli:on-bootstrap',':after','SDK_O11Y','SDK_TEST_SESSION_EVENT',':app-upload',':sync','SDK_CLI_ENQUEUE_TEST_EVENT',':session-status','GET',':session-name','SDK_PROXY_SETUP','1307106gMnucr','SDK_PRE_INITIALIZE',':save-results','sdk:app-automate',':get','120jXJmKA',':snapshot','110FMEPCJ','SDK_POST_INITIALIZE','SDK_AUTOMATION_FRAMEWORK_INIT','SDK_APP_AUTOMATE','sdk:automate','LOCAL_START','SDK_AUTO_CAPTURE','START',':before','sdk:cli:download','sdk:hook','SDK_AUTOMATION_FRAMEWORK_START',':print-buildlink',':post-execute','sdk:setup','APP_UPLOAD','QUIT',':stop',':start','SDK_CLI_LOG_CREATED_EVENT','2395xbDaGs'];a120_0x3c7a=function(){return _0x41e0c4;};return a120_0x3c7a();}const a120_0x2304b5={};a120_0x2304b5[a120_0x51096b(0x21a)]=a120_0x51096b(0x1d4),a120_0x2304b5[a120_0x51096b(0x1f0)]=a120_0x51096b(0x1a6),a120_0x2304b5[a120_0x51096b(0x1e1)]=a120_0x51096b(0x1e0),a120_0x2304b5[a120_0x51096b(0x1a0)]=a120_0x51096b(0x20f),a120_0x2304b5[a120_0x51096b(0x217)]=a120_0x51096b(0x1a2),a120_0x2304b5['SDK_HOOK']=a120_0x51096b(0x1d0),a120_0x2304b5[a120_0x51096b(0x206)]=a120_0x51096b(0x229),a120_0x2304b5[a120_0x51096b(0x1e2)]=a120_0x51096b(0x1e7),a120_0x2304b5[a120_0x51096b(0x1b6)]=a120_0x51096b(0x1a8),a120_0x2304b5[a120_0x51096b(0x1cc)]=a120_0x51096b(0x207),a120_0x2304b5[a120_0x51096b(0x1be)]=a120_0x51096b(0x1fc),a120_0x2304b5['SDK_TESTHUB']=a120_0x51096b(0x227),a120_0x2304b5[a120_0x51096b(0x212)]=a120_0x51096b(0x1ca),a120_0x2304b5[a120_0x51096b(0x1c9)]=a120_0x51096b(0x1c2),a120_0x2304b5[a120_0x51096b(0x1a7)]='sdk:turboscale',a120_0x2304b5[a120_0x51096b(0x1eb)]=a120_0x51096b(0x201),a120_0x2304b5[a120_0x51096b(0x1c0)]=a120_0x51096b(0x1e6),a120_0x2304b5[a120_0x51096b(0x1c7)]=a120_0x51096b(0x1f9),a120_0x2304b5[a120_0x51096b(0x202)]=a120_0x51096b(0x20c),a120_0x2304b5[a120_0x51096b(0x20b)]=a120_0x51096b(0x1cf),a120_0x2304b5[a120_0x51096b(0x20e)]='sdk:cli:check-update',a120_0x2304b5[a120_0x51096b(0x228)]=a120_0x51096b(0x1b4),a120_0x2304b5[a120_0x51096b(0x22a)]=a120_0x51096b(0x1f4),a120_0x2304b5['SDK_CLI_ON_STOP']=a120_0x51096b(0x1b2),a120_0x2304b5[a120_0x51096b(0x1e9)]='sdk:startBinSession',a120_0x2304b5[a120_0x51096b(0x22b)]=a120_0x51096b(0x21c),a120_0x2304b5['SDK_DRIVER_INIT']=a120_0x51096b(0x203),a120_0x2304b5[a120_0x51096b(0x205)]=a120_0x51096b(0x1df),a120_0x2304b5[a120_0x51096b(0x1c8)]=a120_0x51096b(0x1f8),a120_0x2304b5[a120_0x51096b(0x1d1)]='sdk:automationFrameworkStart',a120_0x2304b5[a120_0x51096b(0x1ae)]=a120_0x51096b(0x1ff),a120_0x2304b5['SDK_OBSERVABILITY_CONFIG']=a120_0x51096b(0x1ad),a120_0x2304b5[a120_0x51096b(0x1b0)]=a120_0x51096b(0x200),a120_0x2304b5[a120_0x51096b(0x1f6)]=a120_0x51096b(0x213),a120_0x2304b5[a120_0x51096b(0x1a4)]=a120_0x51096b(0x219),a120_0x2304b5[a120_0x51096b(0x1b7)]='sdk:testSessionEvent',a120_0x2304b5[a120_0x51096b(0x1d9)]='sdk:cli:logCreatedEvent',a120_0x2304b5[a120_0x51096b(0x1ba)]='sdk:cli:enqueueTestEvent',a120_0x2304b5['SDK_AUTOMATION_FRAMEWORK_STOP']='sdk:automationFrameworkStop',a120_0x2304b5[a120_0x51096b(0x20d)]=a120_0x51096b(0x204);function a120_0x4138(_0x484510,_0x294e75){const _0x3c7a51=a120_0x3c7a();return a120_0x4138=function(_0x41385c,_0x1bf2cf){_0x41385c=_0x41385c-0x19c;let _0x2d40b2=_0x3c7a51[_0x41385c];return _0x2d40b2;},a120_0x4138(_0x484510,_0x294e75);}const SDK_EVENTS=a120_0x2304b5,a120_0x183cba={};a120_0x183cba['EVENTS']=SDK_EVENTS,a120_0x183cba[a120_0x51096b(0x215)]={},a120_0x183cba[a120_0x51096b(0x225)]={},a120_0x183cba[a120_0x51096b(0x218)]={},a120_0x183cba[a120_0x51096b(0x1f1)]={},a120_0x183cba[a120_0x51096b(0x1ab)]={},a120_0x183cba[a120_0x51096b(0x1ee)]={},a120_0x183cba[a120_0x51096b(0x1a1)]={},a120_0x183cba[a120_0x51096b(0x1fe)]={},a120_0x183cba[a120_0x51096b(0x1db)]={},a120_0x183cba[a120_0x51096b(0x215)][a120_0x51096b(0x1cd)]=SDK_EVENTS['SDK_TESTHUB']+a120_0x51096b(0x1d8),a120_0x183cba[a120_0x51096b(0x215)][a120_0x51096b(0x1af)]=SDK_EVENTS['SDK_TESTHUB']+':stop',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x1e5)]=SDK_EVENTS[a120_0x51096b(0x212)]+a120_0x51096b(0x1f3),a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x211)]=SDK_EVENTS[a120_0x51096b(0x212)]+':hub-management',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x1cb)]=SDK_EVENTS['SDK_AUTOMATE']+':local-start',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x1a9)]=SDK_EVENTS[a120_0x51096b(0x212)]+':local-stop',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x19e)]=SDK_EVENTS[a120_0x51096b(0x212)]+':driver-manage',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x210)]=SDK_EVENTS[a120_0x51096b(0x212)]+a120_0x51096b(0x1bd),a120_0x183cba[a120_0x51096b(0x225)]['SESSION_STATUS']=SDK_EVENTS[a120_0x51096b(0x212)]+a120_0x51096b(0x1bb),a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x22c)]=SDK_EVENTS[a120_0x51096b(0x212)]+a120_0x51096b(0x1a5),a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x224)]=SDK_EVENTS[a120_0x51096b(0x212)]+':idle-timeout',a120_0x183cba[a120_0x51096b(0x225)][a120_0x51096b(0x21f)]=SDK_EVENTS['SDK_AUTOMATE']+a120_0x51096b(0x220),a120_0x183cba[a120_0x51096b(0x225)]['PRINT_BUILDLINK']=SDK_EVENTS['SDK_AUTOMATE']+a120_0x51096b(0x1d2),a120_0x183cba[a120_0x51096b(0x218)][a120_0x51096b(0x1a3)]=SDK_EVENTS['SDK_A11Y']+':driver-performscan',a120_0x183cba[a120_0x51096b(0x218)]['SAVE_RESULTS']=SDK_EVENTS[a120_0x51096b(0x1e2)]+a120_0x51096b(0x1c1),a120_0x183cba[a120_0x51096b(0x218)][a120_0x51096b(0x19c)]=SDK_EVENTS[a120_0x51096b(0x1e2)]+a120_0x51096b(0x222),a120_0x183cba[a120_0x51096b(0x218)][a120_0x51096b(0x1b1)]=SDK_EVENTS[a120_0x51096b(0x1e2)]+a120_0x51096b(0x21e),a120_0x183cba[a120_0x51096b(0x1f1)][a120_0x51096b(0x20a)]=SDK_EVENTS[a120_0x51096b(0x1eb)]+a120_0x51096b(0x1e4),a120_0x183cba[a120_0x51096b(0x1f1)][a120_0x51096b(0x1ec)]=SDK_EVENTS[a120_0x51096b(0x1eb)]+a120_0x51096b(0x22d),a120_0x183cba[a120_0x51096b(0x1f1)]['START']=SDK_EVENTS[a120_0x51096b(0x1eb)]+a120_0x51096b(0x1d8),a120_0x183cba[a120_0x51096b(0x1f1)][a120_0x51096b(0x1af)]=SDK_EVENTS[a120_0x51096b(0x1eb)]+a120_0x51096b(0x1d7),a120_0x183cba[a120_0x51096b(0x1f1)]['AUTO_CAPTURE']=SDK_EVENTS[a120_0x51096b(0x1eb)]+a120_0x51096b(0x1aa),a120_0x183cba[a120_0x51096b(0x1f1)][a120_0x51096b(0x1dc)]=SDK_EVENTS['SDK_PERCY']+a120_0x51096b(0x1c5),a120_0x183cba[a120_0x51096b(0x1f1)][a120_0x51096b(0x1ac)]=SDK_EVENTS['SDK_PERCY']+':screenshot-app',a120_0x183cba[a120_0x51096b(0x1ab)][a120_0x51096b(0x1e3)]=SDK_EVENTS[a120_0x51096b(0x1b6)]+a120_0x51096b(0x1b9),a120_0x183cba[a120_0x51096b(0x1ab)][a120_0x51096b(0x1fd)]=SDK_EVENTS[a120_0x51096b(0x1b6)]+a120_0x51096b(0x1fa),a120_0x183cba[a120_0x51096b(0x1ab)][a120_0x51096b(0x214)]=SDK_EVENTS[a120_0x51096b(0x1b6)]+a120_0x51096b(0x1d2),a120_0x183cba[a120_0x51096b(0x1ee)][a120_0x51096b(0x1f2)]=SDK_EVENTS[a120_0x51096b(0x19f)]+':before-each',a120_0x183cba[a120_0x51096b(0x1ee)][a120_0x51096b(0x209)]=SDK_EVENTS[a120_0x51096b(0x19f)]+a120_0x51096b(0x1b3),a120_0x183cba[a120_0x51096b(0x1ee)][a120_0x51096b(0x1f7)]=SDK_EVENTS[a120_0x51096b(0x19f)]+a120_0x51096b(0x1e8),a120_0x183cba[a120_0x51096b(0x1ee)]['BEFORE_ALL']=SDK_EVENTS[a120_0x51096b(0x19f)]+a120_0x51096b(0x223),a120_0x183cba[a120_0x51096b(0x1ee)][a120_0x51096b(0x19d)]=SDK_EVENTS[a120_0x51096b(0x19f)]+a120_0x51096b(0x1ce),a120_0x183cba[a120_0x51096b(0x1ee)]['AFTER']=SDK_EVENTS[a120_0x51096b(0x19f)]+a120_0x51096b(0x1b5),a120_0x183cba[a120_0x51096b(0x1a1)][a120_0x51096b(0x211)]=SDK_EVENTS['SDK_TURBOSCALE']+':hub-management',a120_0x183cba[a120_0x51096b(0x1a1)][a120_0x51096b(0x214)]=SDK_EVENTS[a120_0x51096b(0x1a7)]+a120_0x51096b(0x1d2),a120_0x183cba[a120_0x51096b(0x1fe)][a120_0x51096b(0x1d5)]=SDK_EVENTS['SDK_APP_AUTOMATE']+a120_0x51096b(0x1b8),a120_0x183cba[a120_0x51096b(0x1db)][a120_0x51096b(0x1d6)]=SDK_EVENTS[a120_0x51096b(0x206)]+a120_0x51096b(0x1dd),a120_0x183cba[a120_0x51096b(0x1db)][a120_0x51096b(0x1bc)]=SDK_EVENTS[a120_0x51096b(0x206)]+a120_0x51096b(0x1c3),a120_0x183cba[a120_0x51096b(0x1db)][a120_0x51096b(0x221)]=SDK_EVENTS[a120_0x51096b(0x206)]+a120_0x51096b(0x1f5),a120_0x183cba[a120_0x51096b(0x1db)][a120_0x51096b(0x21d)]=SDK_EVENTS['SDK_DRIVER']+a120_0x51096b(0x1d3),module[a120_0x51096b(0x1ed)]=a120_0x183cba;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a121_0x1cd1(){const _0x4b95e9=['errorFile','measures','name','error\x20in\x20measure\x20','isArray','captureError','readdir','TJOFu','apply','.json','mDDQE','stack','/error-report-','exports','XeiMu','resolve','flat','writeFile','performance-own.html','readFile','tZcvc','finalize','forEach','readFileSync','UxfFB','925014GsCWIe','_events','Error\x20in\x20writing\x20html\x20','YUuZs','parse','ufwqq','disconnect','platform','concat','format','message','dirname','2JwpGOK','_observer','assign','yoktl','generateHTMLReport','Riird','entries','calculateTimesFromMultipleFiles','__platformCaps','ugZxP','../logger','pushPerfMeasures','toString','calculateTimeFromEvents','appendFileSync','winstonLogger','jsonReportDirName','getCleanedPerfEvents','mkdirSync','dVgSv','../processHelper','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','Zolzw','34506290nUbCak','-end','Error\x20in\x20doing\x20csv\x20operations:\x20','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','GBKey','_errorEvents','start','</td><td>','YEXyv','mark','success','vgkAG','measure','bWmvy','failure','LTdwF','fs/promises','RbWKI','constants','fHuLn','errorReportFileName','isEnabled','errorReportDirName','slice','CnZyE','details','IqejT','</td></tr>','utf-8','finalizePerfMeasures','info','observe','then','jsonReportFileName','aOYMq','util','modified-key-metrics.json','DcEzz','map','xNjFb','end','plRzj','VRXub','KOAxA','stringify','ijSws','TdMmp','RYcOM','Error\x20processing\x20key-metrics.json:\x20%s','pushErrors','cwd','Uhapd','env','catch','path','hVTqK','unlink','access','\x20for\x20all\x20processes\x20is\x20','stopMonitoring','</tbody></table></body></html>','uHiQB','16676UrafPy','HQIUe','BwQic','jsonReportDirPath','Time\x20for\x20','ZuIEc','yflLP','_measureEvents','Performance\x20report\x20is\x20at\x20','423094UFFbIL','join','Error\x20while\x20removing\x20files:\x20','ZJorQ','startMonitoring','existsSync','duration','5399947YUxApo','getEventsFromJSON','-start','getPerformance','YpOlG','CBNES','toJSON','OQszM','rtlaI','buffered','error-report','readdirSync','started','getEntries','163992TUNTUY','performance-report','UsabC','/performance-report-','push','stopAndGenerate','JypMS','<h1>Performance\x20Report</h1>','F_OK','browserStackCwd','debug','generateJSON','false','720RlMSXa','all','QihFm','key-metrics.json','errors','hKrsE','eventsMap','length','code','reduce','meta','finalizeErrors','kwcAg','3111642GlnCyh','Wisdf','Griaw','entryType','441WvlpOl','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>'];a121_0x1cd1=function(){return _0x4b95e9;};return a121_0x1cd1();}function a121_0x52a6(_0x13d8f0,_0x525380){const _0x1cd12b=a121_0x1cd1();return a121_0x52a6=function(_0x52a67f,_0x50da1b){_0x52a67f=_0x52a67f-0x1e5;let _0x4a8f93=_0x1cd12b[_0x52a67f];return _0x4a8f93;},a121_0x52a6(_0x13d8f0,_0x525380);}const a121_0x48a627=a121_0x52a6;(function(_0x11af7d,_0x28cb6a){const _0x5100cc=a121_0x52a6,_0x3db425=_0x11af7d();while(!![]){try{const _0x2c9069=parseInt(_0x5100cc(0x246))/0x1*(parseInt(_0x5100cc(0x1ec))/0x2)+parseInt(_0x5100cc(0x21b))/0x3+-parseInt(_0x5100cc(0x29b))/0x4*(-parseInt(_0x5100cc(0x20e))/0x5)+parseInt(_0x5100cc(0x23a))/0x6+parseInt(_0x5100cc(0x1f3))/0x7+parseInt(_0x5100cc(0x201))/0x8*(parseInt(_0x5100cc(0x21f))/0x9)+-parseInt(_0x5100cc(0x25d))/0xa;if(_0x2c9069===_0x28cb6a)break;else _0x3db425['push'](_0x3db425['shift']());}catch(_0xba874c){_0x3db425['push'](_0x3db425['shift']());}}}(a121_0x1cd1,0x83d98));const fs=require('fs'),fsPromise=require(a121_0x48a627(0x26d)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a121_0x48a627(0x293)),util=require(a121_0x48a627(0x280)),logger=require(a121_0x48a627(0x250))[a121_0x48a627(0x255)],{getLogDir}=require(a121_0x48a627(0x250)),{getProcessId,sleep,debug,getTestName}=require(a121_0x48a627(0x25a));class PerformanceTester{static ['_observer'];static [a121_0x48a627(0x23b)]=[];static [a121_0x48a627(0x1ea)]=[];static [a121_0x48a627(0x262)]=[];static [a121_0x48a627(0x1ff)]=![];static [a121_0x48a627(0x256)]=a121_0x48a627(0x202);static ['errorReportDirName']=process['env'][a121_0x48a627(0x20a)]?path[a121_0x48a627(0x1ed)](process[a121_0x48a627(0x291)][a121_0x48a627(0x20a)],'error-report'):path['join'](process[a121_0x48a627(0x28f)](),a121_0x48a627(0x1fd));static [a121_0x48a627(0x271)]=this[a121_0x48a627(0x273)]+a121_0x48a627(0x22d)+getProcessId()+a121_0x48a627(0x22a);static ['details']={};static ['eventsMap']={};static[a121_0x48a627(0x1f0)](_0xca1272,_0x310c4c=this['errorReportDirName']+a121_0x48a627(0x22d)+getProcessId()+a121_0x48a627(0x22a)){const _0x3f422b=a121_0x48a627,_0x808af3={'YUuZs':function(_0x40b378,_0x2fc293){return _0x40b378===_0x2fc293;},'UsabC':'measure','yflLP':function(_0x25145e){return _0x25145e();},'RbWKI':function(_0x57f4ff,_0x120e4c){return _0x57f4ff+_0x120e4c;},'rtlaI':_0x3f422b(0x25b),'Griaw':'function'};try{this[_0x3f422b(0x1e6)]=path[_0x3f422b(0x1ed)](_0x808af3[_0x3f422b(0x1e9)](getLogDir),this[_0x3f422b(0x256)]),!_0xca1272&&(_0xca1272=this['jsonReportDirPath']+_0x3f422b(0x204)+_0x808af3[_0x3f422b(0x1e9)](getProcessId)+_0x3f422b(0x22a)),!fs[_0x3f422b(0x1f1)](this['jsonReportDirPath'])&&fs[_0x3f422b(0x258)](this[_0x3f422b(0x1e6)]);}catch(_0x1bfe66){logger['debug'](_0x808af3[_0x3f422b(0x26e)](_0x808af3[_0x3f422b(0x1fb)],_0x1bfe66));}if(this['started']||!this[_0x3f422b(0x272)]())return;this['_observer']=new PerformanceObserver(_0x1d06e5=>{const _0x30c249=_0x3f422b,_0x55d35a={'VRXub':function(_0x372f19,_0x196800){const _0x1ce9c7=a121_0x52a6;return _0x808af3[_0x1ce9c7(0x23d)](_0x372f19,_0x196800);},'ufwqq':_0x808af3[_0x30c249(0x203)]};_0x1d06e5[_0x30c249(0x200)]()[_0x30c249(0x237)](_0x424e9e=>{const _0x4e0180=_0x30c249;if(_0x55d35a[_0x4e0180(0x287)](_0x424e9e[_0x4e0180(0x21e)],_0x55d35a[_0x4e0180(0x23f)])){let _0x5297a1={};if(_0x424e9e['toJSON'])_0x5297a1=_0x424e9e[_0x4e0180(0x1f9)]();else for(const _0x5af814 in _0x424e9e){_0x5297a1[_0x5af814]=_0x424e9e[_0x5af814];}this[_0x4e0180(0x276)][_0x424e9e[_0x4e0180(0x223)]]&&(_0x5297a1=Object[_0x4e0180(0x248)](_0x5297a1,this[_0x4e0180(0x276)][_0x424e9e['name']])),delete this['details'][_0x424e9e['name']],this[_0x4e0180(0x1ea)][_0x4e0180(0x205)](_0x5297a1);}else this[_0x4e0180(0x23b)][_0x4e0180(0x205)](_0x424e9e);});});const _0x8ee55b={};_0x8ee55b[_0x3f422b(0x1fc)]=!![],_0x8ee55b['entryTypes']=[_0x808af3[_0x3f422b(0x21d)],_0x808af3[_0x3f422b(0x203)]],this[_0x3f422b(0x247)][_0x3f422b(0x27c)](_0x8ee55b),this[_0x3f422b(0x1ff)]=!![],this[_0x3f422b(0x27e)]=_0xca1272,this['errorReportFileName']=_0x310c4c;}static[a121_0x48a627(0x1f6)](){return performance;}static[a121_0x48a627(0x253)](_0x364782,_0x378f43){const _0x40826d=a121_0x48a627,_0x6e47c7={};_0x6e47c7[_0x40826d(0x27f)]=function(_0x7d26de,_0x5dbe4e){return _0x7d26de+_0x5dbe4e;},_0x6e47c7[_0x40826d(0x261)]=function(_0xd82891,_0x3bbeb0){return _0xd82891||_0x3bbeb0;},_0x6e47c7[_0x40826d(0x26c)]=function(_0x13b3ed,_0x555238){return _0x13b3ed===_0x555238;};const _0x45b2c2=_0x6e47c7,_0x2c0c01={};if(!_0x364782||_0x45b2c2[_0x40826d(0x26c)](_0x364782['length'],0x0))return;_0x364782[_0x40826d(0x283)](_0x212244=>{const _0x18098c=_0x40826d;!_0x2c0c01[_0x212244['name']]&&(_0x2c0c01[_0x212244[_0x18098c(0x223)]]=0x0),_0x2c0c01[_0x212244[_0x18098c(0x223)]]+=_0x212244[_0x18098c(0x1f2)];});const _0x543062=_0x378f43[_0x40826d(0x217)]((_0x178a06,_0x2193eb)=>{const _0x3851f7=_0x40826d;return _0x45b2c2[_0x3851f7(0x27f)](_0x2c0c01[_0x2193eb],_0x45b2c2[_0x3851f7(0x261)](_0x178a06,0x0));},0x0);return _0x543062;}static async[a121_0x48a627(0x24d)](_0x196630,_0x3c916d){const _0x233781=a121_0x48a627,_0x3fb7e8={'plRzj':function(_0x43fb7e,_0x403b54){return _0x43fb7e+_0x403b54;},'HQIUe':function(_0x32a91e,_0x2a0fcf){return _0x32a91e||_0x2a0fcf;},'YEXyv':function(_0x13262c,_0x49f3c2){return _0x13262c===_0x49f3c2;},'fHuLn':function(_0x242587,_0x2f1fd2){return _0x242587(_0x2f1fd2);},'kwcAg':function(_0x33ac99,_0x168bcd){return _0x33ac99(_0x168bcd);}};if(!_0x196630||_0x3fb7e8[_0x233781(0x265)](_0x196630[_0x233781(0x215)],0x0))return 0x0;const _0x12e353=[];for(const _0x119bb7 of _0x196630){const _0x2aedfa=path[_0x233781(0x1ed)]('.',_0x119bb7);try{const _0x5f2ce4=this['getEventsFromJSON'](_0x2aedfa);_0x5f2ce4[_0x233781(0x283)](_0x56ef4b=>{const _0x47ab0b=_0x233781;!_0x12e353[_0x56ef4b[_0x47ab0b(0x223)]]&&(_0x12e353[_0x56ef4b['name']]=0x0),_0x12e353[_0x56ef4b['name']]+=_0x56ef4b['duration'];});}catch(_0xf853ad){_0x3fb7e8[_0x233781(0x270)](debug,_0x233781(0x25f)+_0xf853ad[_0x233781(0x252)]());}}const _0xd46a83=_0x3c916d[_0x233781(0x217)]((_0x5a7612,_0x5d69cc)=>{const _0x4af7f7=_0x233781;return _0x3fb7e8[_0x4af7f7(0x286)](_0x12e353[_0x5d69cc],_0x3fb7e8[_0x4af7f7(0x29c)](_0x5a7612,0x0));},0x0);return _0x3fb7e8[_0x233781(0x21a)](debug,_0x233781(0x1e7)+_0x3c916d+_0x233781(0x297)+_0xd46a83),_0xd46a83;}static[a121_0x48a627(0x1f4)](_0x10eb42){const _0x109273=a121_0x48a627;if(_0x10eb42){if(!fs[_0x109273(0x1f1)](_0x10eb42))return[];return JSON[_0x109273(0x23e)](fs[_0x109273(0x238)](_0x10eb42)[_0x109273(0x252)]());}}static async[a121_0x48a627(0x206)](_0x1ae7dc=a121_0x48a627(0x233),_0x453dc0=null){const _0x533293=a121_0x48a627,_0x239eaa={'ZuIEc':function(_0x35b3d4,_0xa22175){return _0x35b3d4(_0xa22175);},'JypMS':function(_0x3d6a09,_0x2ea4a8){return _0x3d6a09(_0x2ea4a8);}};if(!this[_0x533293(0x1ff)])return;await _0x239eaa[_0x533293(0x1e8)](sleep,0x1e),this[_0x533293(0x247)][_0x533293(0x240)](),this['started']=![],this[_0x533293(0x20c)](this['_events']);const _0x437f1a=this[_0x533293(0x24a)](this[_0x533293(0x23b)]),_0x3feaeb=path['join'](process[_0x533293(0x28f)](),_0x1ae7dc);fs[_0x533293(0x232)](_0x3feaeb,_0x437f1a,_0x494f66=>{const _0x45f2d4=_0x533293;if(_0x494f66){_0x239eaa[_0x45f2d4(0x1e8)](debug,_0x45f2d4(0x23c)+_0x494f66['toString']());return;}_0x239eaa[_0x45f2d4(0x207)](debug,_0x45f2d4(0x1eb)+_0x3feaeb);});if(_0x453dc0)return this[_0x533293(0x253)](this[_0x533293(0x23b)],_0x453dc0);}static[a121_0x48a627(0x24a)](_0x521daa){const _0x987ec=a121_0x48a627,_0x35ff4a={};_0x35ff4a[_0x987ec(0x25c)]=_0x987ec(0x220),_0x35ff4a[_0x987ec(0x1f8)]=_0x987ec(0x208),_0x35ff4a['AyNXC']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x35ff4a[_0x987ec(0x24f)]=_0x987ec(0x299);const _0x1576f3=_0x35ff4a;let _0x34a2e6=_0x1576f3[_0x987ec(0x25c)];return _0x34a2e6+=_0x1576f3['CBNES'],_0x34a2e6+=_0x1576f3['AyNXC'],_0x521daa[_0x987ec(0x237)](_0x49f120=>{const _0x117592=_0x987ec;_0x34a2e6+='<tr><td>'+_0x49f120[_0x117592(0x223)]+_0x117592(0x264)+_0x49f120[_0x117592(0x1f2)]+_0x117592(0x278);}),_0x34a2e6+=_0x1576f3[_0x987ec(0x24f)],_0x34a2e6;}static[a121_0x48a627(0x20c)](_0x18d4f2){const _0x235a36=a121_0x48a627;if(!this['jsonReportFileName'])return;const _0x466023={};_0x18d4f2[_0x235a36(0x283)](_0x27276c=>{const _0x3cce67=_0x235a36;!_0x466023[_0x27276c[_0x3cce67(0x223)]]&&(_0x466023[_0x27276c[_0x3cce67(0x223)]]=0x0),_0x466023[_0x27276c['name']]+=_0x27276c[_0x3cce67(0x1f2)];});const _0x3ddd17=Object[_0x235a36(0x24c)](_0x466023)[_0x235a36(0x283)](([_0x4db707,_0xe1734d])=>{const _0x29c6e0=_0x235a36,_0x302d1d={};return _0x302d1d['name']=_0x4db707,_0x302d1d[_0x29c6e0(0x1f2)]=_0xe1734d,_0x302d1d;});fs['writeFileSync'](this['jsonReportFileName'],JSON[_0x235a36(0x289)](_0x3ddd17));}static['isEnabled'](){const _0x592bf4=a121_0x48a627,_0x527b7d={};_0x527b7d[_0x592bf4(0x1f7)]=function(_0x561511,_0x263d04){return _0x561511===_0x263d04;},_0x527b7d['ZJorQ']=_0x592bf4(0x20d);const _0x45958c=_0x527b7d;return!_0x45958c['YpOlG'](process[_0x592bf4(0x291)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x45958c[_0x592bf4(0x1ef)]);}static['measure'](_0x46abf1,_0x1f3751,_0x4454e3=null,_0x3793ae={},_0xf8a738=null){const _0x392cfc=a121_0x48a627,_0x1d179a={'IqejT':function(_0x8aa000,_0x3e922f){return _0x8aa000(_0x3e922f);},'UxfFB':function(_0xe17e66,_0x6a40c3){return _0xe17e66 instanceof _0x6a40c3;}};try{if(this[_0x392cfc(0x1ff)]&&this[_0x392cfc(0x272)]()){let _0x26e0a9=_0x46abf1;_0x4454e3&&(_0x26e0a9=_0x46abf1+'['+JSON['stringify'](_0x4454e3)+']');PerformanceTester['start'](_0x26e0a9),this[_0x392cfc(0x276)]&&(this['details'][_0x26e0a9]=_0x3793ae);try{const _0x356c4a=_0x1f3751[_0x392cfc(0x229)](null,_0xf8a738);if(_0x1d179a[_0x392cfc(0x239)](_0x356c4a,Promise))return new Promise((_0x5cb29e,_0x46aa04)=>{const _0x1f3f1b=_0x392cfc;_0x356c4a[_0x1f3f1b(0x27d)](_0x39727f=>{const _0x4e02bb=_0x1f3f1b;PerformanceTester[_0x4e02bb(0x285)](_0x26e0a9),_0x1d179a[_0x4e02bb(0x277)](_0x5cb29e,_0x39727f);})[_0x1f3f1b(0x292)](_0x28a61b=>{const _0x112076=_0x1f3f1b;PerformanceTester['end'](_0x26e0a9,![],util[_0x112076(0x243)](_0x28a61b)),_0x1d179a[_0x112076(0x277)](_0x46aa04,_0x28a61b);});});;return PerformanceTester['end'](_0x26e0a9),_0x356c4a;}catch(_0x141cf0){PerformanceTester[_0x392cfc(0x285)](_0x26e0a9,![],util[_0x392cfc(0x243)](_0x141cf0));throw _0x141cf0;}};return _0x1f3751[_0x392cfc(0x229)](null,_0xf8a738);}catch(_0x2f6c4d){return logger[_0x392cfc(0x20b)](_0x392cfc(0x224)+(_0x2f6c4d['stack']||_0x2f6c4d[_0x392cfc(0x244)]||_0x2f6c4d)),_0x1f3751['apply'](null,_0xf8a738);}}static['measureWrapper'](_0x25799d,_0x4c0467,_0x31624e={}){const _0x45163f=a121_0x48a627,_0x26fbf7={'hVTqK':function(_0xe254f3){return _0xe254f3();}},_0x2426eb=this;return _0x31624e['worker']=_0x26fbf7[_0x45163f(0x294)](getProcessId),_0x31624e['testName']=_0x26fbf7['hVTqK'](getTestName),_0x31624e[_0x45163f(0x241)]=global[_0x45163f(0x24e)]&&global[_0x45163f(0x24e)]['index'],function(){const _0xb38e51=_0x45163f,_0x56d3d6=[_0x25799d,_0x4c0467,null,_0x31624e][_0xb38e51(0x242)](arguments);return _0x2426eb[_0xb38e51(0x269)][_0xb38e51(0x229)](_0x2426eb,_0x56d3d6);};}static[a121_0x48a627(0x257)](){const _0x2304b7=a121_0x48a627,_0xac064c=/(^.*)\[(.*)\]$/,_0x48db03={},_0xfe41f7={},_0x738ccb=[],_0x13f233=this[_0x2304b7(0x1ea)]['splice'](0x0,this[_0x2304b7(0x1ea)][_0x2304b7(0x215)]);for(const _0x5cb3d7 of _0x13f233){const _0x14aa65=_0x5cb3d7['name']['match'](_0xac064c),_0x5edbe8=Object[_0x2304b7(0x248)]({},_0x5cb3d7);_0x14aa65&&(_0x5edbe8['name']=_0x14aa65[0x1],_0x5edbe8[_0x2304b7(0x218)]=JSON[_0x2304b7(0x23e)](_0x14aa65[0x2])),_0x738ccb['push'](_0x5edbe8);}return _0x738ccb;}static[a121_0x48a627(0x251)](){const _0x53d9f1=a121_0x48a627,_0x1468d7={'XuGBR':function(_0x35891b){return _0x35891b();},'EpBDW':function(_0x2a9765,_0x45b1e1){return _0x2a9765+_0x45b1e1;},'BwQic':_0x53d9f1(0x1ee),'KOAxA':function(_0x104c55,_0x12afd9){return _0x104c55===_0x12afd9;},'Riird':function(_0x2ee6ad,_0x8fb72a){return _0x2ee6ad+_0x8fb72a;}};try{this[_0x53d9f1(0x1e6)]=path['join'](_0x1468d7['XuGBR'](getLogDir),this[_0x53d9f1(0x256)]);if(fs[_0x53d9f1(0x1f1)](this[_0x53d9f1(0x1e6)])){const _0x125b6a=fs[_0x53d9f1(0x1fe)](this[_0x53d9f1(0x1e6)]);for(const _0x38a79e of _0x125b6a){fs['unlinkSync'](path[_0x53d9f1(0x1ed)](this[_0x53d9f1(0x1e6)],_0x38a79e));}}}catch(_0x3efb3f){logger[_0x53d9f1(0x20b)](_0x1468d7['EpBDW'](_0x1468d7[_0x53d9f1(0x1e5)],_0x3efb3f));}if(_0x1468d7[_0x53d9f1(0x288)](this[_0x53d9f1(0x1ea)][_0x53d9f1(0x215)],0x0))return;const _0x4c100a=this[_0x53d9f1(0x257)](),_0x37a0e5=JSON[_0x53d9f1(0x289)](_0x4c100a),_0x3bcbf4=_0x1468d7[_0x53d9f1(0x24b)](_0x37a0e5[_0x53d9f1(0x274)](0x1,-0x1),',');fs[_0x53d9f1(0x254)](this[_0x53d9f1(0x27e)],_0x3bcbf4);}static async[a121_0x48a627(0x27a)](){const _0x28a379=a121_0x48a627,_0x359a5a={'XeiMu':function(_0x55500c){return _0x55500c();},'uHiQB':function(_0x153a06,_0x24928b){return _0x153a06===_0x24928b;},'tZcvc':_0x28a379(0x211),'oZZoG':_0x28a379(0x279),'OQszM':_0x28a379(0x281),'DcEzz':function(_0x3b7473,_0x364c99){return _0x3b7473+_0x364c99;},'jotvO':function(_0x38bc53,_0x44c1c1){return _0x38bc53+_0x44c1c1;},'xNjFb':_0x28a379(0x28d),'KOXkD':_0x28a379(0x260),'ijSws':'Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','TdMmp':function(_0x2dad2f,_0x278a7d){return _0x2dad2f>_0x278a7d;}};this[_0x28a379(0x1e6)]=path[_0x28a379(0x1ed)](_0x359a5a[_0x28a379(0x22f)](getLogDir),this['jsonReportDirName']);if(!this[_0x28a379(0x1ff)]||_0x359a5a[_0x28a379(0x29a)](this[_0x28a379(0x1ea)][_0x28a379(0x215)],0x0))return[];if(!fs[_0x28a379(0x1f1)](this[_0x28a379(0x1e6)]))return this['_measureEvents'];const _0x23e023=(await fsPromise[_0x28a379(0x227)](this[_0x28a379(0x1e6)]))['map'](_0x17ec7=>path[_0x28a379(0x230)](this[_0x28a379(0x1e6)],_0x17ec7));try{const _0x42481d=path[_0x28a379(0x245)](this[_0x28a379(0x1e6)]),_0x55bbff=path[_0x28a379(0x1ed)](_0x42481d,_0x359a5a[_0x28a379(0x235)]);if(fs['existsSync'](_0x55bbff))try{await fsPromise[_0x28a379(0x296)](_0x55bbff,fs[_0x28a379(0x26f)][_0x28a379(0x209)]);const _0xcb5619=await fsPromise[_0x28a379(0x234)](_0x55bbff,_0x359a5a['oZZoG']),_0x52f234=JSON[_0x28a379(0x23e)](_0xcb5619),_0x39d007=path[_0x28a379(0x1ed)](this[_0x28a379(0x1e6)],_0x359a5a[_0x28a379(0x1fa)]);let _0x5d51dc='';Array[_0x28a379(0x225)](_0x52f234)?_0x5d51dc=_0x359a5a[_0x28a379(0x282)](_0x52f234[_0x28a379(0x283)](_0x1ef28e=>JSON[_0x28a379(0x289)](_0x1ef28e))['join'](','),','):_0x5d51dc=_0x359a5a['jotvO'](JSON[_0x28a379(0x289)](_0x52f234),','),await fsPromise[_0x28a379(0x232)](_0x39d007,_0x5d51dc),_0x23e023['push'](_0x39d007),await fsPromise[_0x28a379(0x295)](_0x55bbff);}catch(_0xcd73be){logger[_0x28a379(0x27b)](util['format'](_0x359a5a[_0x28a379(0x284)],_0xcd73be[_0x28a379(0x22c)]||_0xcd73be[_0x28a379(0x244)]||_0xcd73be));}else logger['info'](_0x359a5a['KOXkD']);}catch(_0x1208e2){logger[_0x28a379(0x27b)](util[_0x28a379(0x243)](_0x359a5a[_0x28a379(0x28a)],_0x1208e2['stack']||_0x1208e2[_0x28a379(0x244)]||_0x1208e2));}let _0x4b5bba=(await Promise[_0x28a379(0x20f)](_0x23e023[_0x28a379(0x283)](_0x26cd6f=>fsPromise[_0x28a379(0x234)](_0x26cd6f,'utf-8'))))[_0x28a379(0x283)](_0x2fbe2b=>'['+_0x2fbe2b[_0x28a379(0x274)](0x0,-0x1)+']')[_0x28a379(0x283)](_0x2fdc6f=>JSON[_0x28a379(0x23e)](_0x2fdc6f))[_0x28a379(0x231)]();return _0x359a5a[_0x28a379(0x28b)](this[_0x28a379(0x1ea)]['length'],0x0)&&(_0x4b5bba=_0x4b5bba[_0x28a379(0x242)](this[_0x28a379(0x257)]())),this[_0x28a379(0x247)][_0x28a379(0x240)](),_0x4b5bba;}static[a121_0x48a627(0x28e)](){const _0x33cb22=a121_0x48a627,_0x125359={};_0x125359[_0x33cb22(0x28c)]=function(_0x951b98,_0x3d822a){return _0x951b98===_0x3d822a;},_0x125359[_0x33cb22(0x249)]=function(_0x3ef6da,_0x196309){return _0x3ef6da+_0x196309;};const _0x371294=_0x125359;if(_0x371294['RYcOM'](this[_0x33cb22(0x262)]['length'],0x0))return;const _0xff83d7=JSON[_0x33cb22(0x289)](this[_0x33cb22(0x262)]),_0x4ca1d8=_0x371294[_0x33cb22(0x249)](_0xff83d7['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x33cb22(0x221)],_0x4ca1d8);}static['finalizeErrors'](){const _0x7dcf78=a121_0x48a627,_0x29333e={};_0x29333e[_0x7dcf78(0x268)]=function(_0x19736c,_0x358200){return _0x19736c>_0x358200;};const _0x5bf2e2=_0x29333e;if(this[_0x7dcf78(0x271)]){if(!fs[_0x7dcf78(0x1f1)](this[_0x7dcf78(0x271)]))return this[_0x7dcf78(0x262)];let _0x29beb0=fs[_0x7dcf78(0x238)](this[_0x7dcf78(0x271)])[_0x7dcf78(0x252)]();_0x29beb0='['+_0x29beb0[_0x7dcf78(0x274)](0x0,-0x1)+']';let _0x5a5874=JSON[_0x7dcf78(0x23e)](_0x29beb0);return _0x5bf2e2[_0x7dcf78(0x268)](this['_errorEvents'][_0x7dcf78(0x215)],0x0)&&(_0x5a5874=_0x5a5874[_0x7dcf78(0x242)](this[_0x7dcf78(0x262)])),fs['unlinkSync'](this['errorReportFileName']),_0x5a5874;}}static[a121_0x48a627(0x226)](_0x311a69){const _0x119217=a121_0x48a627;if(!this['isEnabled']())return;this[_0x119217(0x262)][_0x119217(0x205)]({'message':_0x311a69[_0x119217(0x244)],'trace':_0x311a69[_0x119217(0x22c)],'code':_0x311a69[_0x119217(0x216)]||null,'time':new Date()});}static[a121_0x48a627(0x298)](){const _0x25a0b8=a121_0x48a627;try{if(!this[_0x25a0b8(0x272)]())return;this['_observer'][_0x25a0b8(0x240)](),this[_0x25a0b8(0x251)](),this[_0x25a0b8(0x28e)]();}catch(_0x4df527){logger[_0x25a0b8(0x20b)]('Error\x20stopping\x20monitoring\x20'+util['format'](_0x4df527));}}static async[a121_0x48a627(0x236)](){const _0x447547=a121_0x48a627,_0x21a1cf={'CnZyE':function(_0x4d3d5a,_0x3eedcc){return _0x4d3d5a(_0x3eedcc);}};await _0x21a1cf[_0x447547(0x275)](sleep,0x1e);const _0x253284=await this[_0x447547(0x27a)](),_0x3eeff1=this[_0x447547(0x219)]();if(!this[_0x447547(0x272)]()){const _0x33caa5={};return _0x33caa5[_0x447547(0x222)]=[],_0x33caa5[_0x447547(0x212)]=[],_0x33caa5;}const _0x15c516={};return _0x15c516[_0x447547(0x222)]=_0x253284,_0x15c516['errors']=_0x3eeff1,_0x15c516;}static[a121_0x48a627(0x263)](_0x485c0b){const _0x474ccc=a121_0x48a627,_0x32bf76={};_0x32bf76[_0x474ccc(0x290)]=function(_0x4dbf8d,_0x522d50){return _0x4dbf8d+_0x522d50;},_0x32bf76['QihFm']=_0x474ccc(0x1f5);const _0x5a9abc=_0x32bf76,_0x3e4f11=_0x5a9abc['Uhapd'](_0x485c0b,_0x5a9abc[_0x474ccc(0x210)]);if(this[_0x474ccc(0x214)][_0x3e4f11])return;performance[_0x474ccc(0x266)](_0x3e4f11),this['eventsMap'][_0x3e4f11]=0x1;}static['end'](_0x3d37f5,_0x16cd2c=!![],_0x11c15a=null,_0x2f0815={}){const _0x4f23c9=a121_0x48a627,_0x354295={'hKrsE':function(_0x45b1e3,_0x49bbe7){return _0x45b1e3+_0x49bbe7;},'TJOFu':_0x4f23c9(0x25e),'mDDQE':function(_0x4a8174,_0x29599c){return _0x4a8174+_0x29599c;},'bWmvy':_0x4f23c9(0x1f5),'dVgSv':function(_0x4feaed,_0xb733c1){return _0x4feaed+_0xb733c1;},'Wisdf':function(_0x1b709){return _0x1b709();}};performance[_0x4f23c9(0x266)](_0x354295[_0x4f23c9(0x213)](_0x3d37f5,_0x354295[_0x4f23c9(0x228)])),performance['measure'](_0x3d37f5,_0x354295[_0x4f23c9(0x22b)](_0x3d37f5,_0x354295[_0x4f23c9(0x26a)]),_0x354295[_0x4f23c9(0x259)](_0x3d37f5,_0x354295[_0x4f23c9(0x228)]));const _0x51ced7={};_0x51ced7[_0x4f23c9(0x267)]=_0x16cd2c,_0x51ced7[_0x4f23c9(0x26b)]=_0x11c15a,this[_0x4f23c9(0x276)][_0x3d37f5]=Object[_0x4f23c9(0x248)](_0x51ced7,Object[_0x4f23c9(0x248)](Object[_0x4f23c9(0x248)]({'worker':_0x354295[_0x4f23c9(0x21c)](getProcessId),'platform':global[_0x4f23c9(0x24e)]&&global[_0x4f23c9(0x24e)]['index'],'testName':_0x354295[_0x4f23c9(0x21c)](getTestName)},_0x2f0815),this['details'][_0x3d37f5]||{}));}}module[a121_0x48a627(0x22e)]=PerformanceTester;
|
|
1
|
+
function a121_0x1ecc(_0x2f22a0,_0x346be8){const _0x193da5=a121_0x193d();return a121_0x1ecc=function(_0x1ecc81,_0x2c7ddc){_0x1ecc81=_0x1ecc81-0x8d;let _0x44c76f=_0x193da5[_0x1ecc81];return _0x44c76f;},a121_0x1ecc(_0x2f22a0,_0x346be8);}function a121_0x193d(){const _0xe71ac7=['isArray','browserStackCwd','FbkoR','jJrHi','errors','.json','ERnkR','catch','Plwlg','OkreM','modified-key-metrics.json','Error\x20in\x20getting\x20key-metrics.json\x20file:\x20%s','details','end','code','QfDHp','readdirSync','YTSqc','</td></tr>','start','135WpmhNd','captureError','access','1943416nTZfIi','assign','generateHTMLReport','_events','btgJx','krxWP','RVxMk','parse','SMzCH','info','error-report','success','mark','writeFile','platform','name','match','F_OK','performance-report','OVLKT','2055110HgsPzi','8259272sSHhsQ','buffered','winstonLogger','getPerformance','finalizePerfMeasures','9367688wJCgsn','readFile','join','Error\x20processing\x20key-metrics.json:\x20%s','debug','/error-report-','errorReportDirName','finalizeErrors','readFileSync','duration','WxbGF','appendFileSync','uDnSz','-start','MShDc','yzgZb','path','2vVqFMi','_errorEvents','\x20for\x20all\x20processes\x20is\x20','XZKVT','_observer','XmQPo','key-metrics.json\x20file\x20not\x20found,\x20skipping\x20processing\x20for\x20event\x20for\x20cli.','../processHelper','splice','format','unlinkSync','getCleanedPerfEvents','cQgus','stopMonitoring','xqbXK','6qEqfKM','mdwLJ','XnBAM','UPYgl','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','errorFile','tebJm','finalize','nPATt','concat','env','DRQSI','/performance-report-','isEnabled','dirname','lYqts','utf-8','gbcdA','PfvPN','jsonReportFileName','eventsMap','map','observe','ojCTN','BROWSERSTACK_SDK_INSTRUMENTATION','pushPerfMeasures','-end','apply','2169745ekjyZh','errorReportFileName','calculateTimeFromEvents','measures','slice','YzWir','EsRii','measure','jsonReportDirPath','KXktv','started','iRPKA','constants','getEntries','PnSVU','message','index','testName','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','dyeNu','reduce','2205159EOiCZs','perf_hooks','generateJSON','meta','VxSkL','key-metrics.json','push','Time\x20for\x20','existsSync','stopAndGenerate','QOFSW','azxOx','Yrdhj','calculateTimesFromMultipleFiles','cwd','pushErrors','../logger','rRyhA','stack','665602FfSKtc','entryTypes','Error\x20in\x20writing\x20html\x20','worker','toJSON','jsonReportDirName','_measureEvents','dRHAq','__platformCaps','Error\x20while\x20removing\x20files:\x20','getEventsFromJSON','performance-own.html','length','stringify','resolve','toString','forEach','unlink','</tbody></table></body></html>'];a121_0x193d=function(){return _0xe71ac7;};return a121_0x193d();}const a121_0x5ab4b4=a121_0x1ecc;(function(_0x1a0163,_0x258439){const _0x337ff8=a121_0x1ecc,_0x2d8925=_0x1a0163();while(!![]){try{const _0x378e7c=parseInt(_0x337ff8(0xb4))/0x1+-parseInt(_0x337ff8(0x109))/0x2*(parseInt(_0x337ff8(0xa1))/0x3)+-parseInt(_0x337ff8(0xde))/0x4+-parseInt(_0x337ff8(0x134))/0x5*(-parseInt(_0x337ff8(0x118))/0x6)+-parseInt(_0x337ff8(0xf3))/0x7+-parseInt(_0x337ff8(0xf8))/0x8+parseInt(_0x337ff8(0xdb))/0x9*(parseInt(_0x337ff8(0xf2))/0xa);if(_0x378e7c===_0x258439)break;else _0x2d8925['push'](_0x2d8925['shift']());}catch(_0x50314a){_0x2d8925['push'](_0x2d8925['shift']());}}}(a121_0x193d,0x95094));const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a121_0x5ab4b4(0xa2)),path=require(a121_0x5ab4b4(0x108)),util=require('util'),logger=require(a121_0x5ab4b4(0xb1))[a121_0x5ab4b4(0xf5)],{getLogDir}=require(a121_0x5ab4b4(0xb1)),{getProcessId,sleep,debug,getTestName}=require(a121_0x5ab4b4(0x110));class PerformanceTester{static [a121_0x5ab4b4(0x10d)];static ['_events']=[];static ['_measureEvents']=[];static [a121_0x5ab4b4(0x10a)]=[];static [a121_0x5ab4b4(0x96)]=![];static [a121_0x5ab4b4(0xb9)]=a121_0x5ab4b4(0xf0);static [a121_0x5ab4b4(0xfe)]=process[a121_0x5ab4b4(0x122)][a121_0x5ab4b4(0xc8)]?path[a121_0x5ab4b4(0xfa)](process['env']['browserStackCwd'],a121_0x5ab4b4(0xe8)):path[a121_0x5ab4b4(0xfa)](process['cwd'](),'error-report');static [a121_0x5ab4b4(0x8d)]=this[a121_0x5ab4b4(0xfe)]+a121_0x5ab4b4(0xfd)+getProcessId()+a121_0x5ab4b4(0xcc);static ['details']={};static [a121_0x5ab4b4(0x12c)]={};static['startMonitoring'](_0x3b43c2,_0x14d88c=this['errorReportDirName']+'/error-report-'+getProcessId()+'.json'){const _0x4f28c2=a121_0x5ab4b4,_0x21cc54={'yzgZb':function(_0x7a7793,_0x1a9dff){return _0x7a7793===_0x1a9dff;},'XZKVT':_0x4f28c2(0x93),'XmQPo':function(_0x5d2f99){return _0x5d2f99();},'IJVly':function(_0x4583ac,_0x5e1aeb){return _0x4583ac+_0x5e1aeb;},'EsRii':_0x4f28c2(0x9e),'DTari':'function'};try{this[_0x4f28c2(0x94)]=path['join'](_0x21cc54[_0x4f28c2(0x10e)](getLogDir),this[_0x4f28c2(0xb9)]),!_0x3b43c2&&(_0x3b43c2=this['jsonReportDirPath']+_0x4f28c2(0x124)+_0x21cc54['XmQPo'](getProcessId)+_0x4f28c2(0xcc)),!fs[_0x4f28c2(0xa9)](this[_0x4f28c2(0x94)])&&fs['mkdirSync'](this[_0x4f28c2(0x94)]);}catch(_0x36a871){logger['debug'](_0x21cc54['IJVly'](_0x21cc54[_0x4f28c2(0x92)],_0x36a871));}if(this[_0x4f28c2(0x96)]||!this[_0x4f28c2(0x125)]())return;this['_observer']=new PerformanceObserver(_0x2af825=>{const _0x181eac=_0x4f28c2,_0x12a647={'ytDIy':function(_0x4cc385,_0x1702fa){const _0x4dbbfb=a121_0x1ecc;return _0x21cc54[_0x4dbbfb(0x107)](_0x4cc385,_0x1702fa);},'mdwLJ':_0x21cc54[_0x181eac(0x10c)]};_0x2af825[_0x181eac(0x99)]()[_0x181eac(0xc4)](_0x4fdd12=>{const _0x5b8b3b=_0x181eac;if(_0x12a647['ytDIy'](_0x4fdd12['entryType'],_0x12a647[_0x5b8b3b(0x119)])){let _0x328f6c={};if(_0x4fdd12[_0x5b8b3b(0xb8)])_0x328f6c=_0x4fdd12[_0x5b8b3b(0xb8)]();else for(const _0x225c76 in _0x4fdd12){_0x328f6c[_0x225c76]=_0x4fdd12[_0x225c76];}this['details'][_0x4fdd12[_0x5b8b3b(0xed)]]&&(_0x328f6c=Object[_0x5b8b3b(0xdf)](_0x328f6c,this[_0x5b8b3b(0xd3)][_0x4fdd12[_0x5b8b3b(0xed)]])),delete this[_0x5b8b3b(0xd3)][_0x4fdd12[_0x5b8b3b(0xed)]],this['_measureEvents']['push'](_0x328f6c);}else this[_0x5b8b3b(0xe1)][_0x5b8b3b(0xa7)](_0x4fdd12);});});const _0x388848={};_0x388848[_0x4f28c2(0xf4)]=!![],_0x388848[_0x4f28c2(0xb5)]=[_0x21cc54['DTari'],_0x21cc54[_0x4f28c2(0x10c)]],this[_0x4f28c2(0x10d)][_0x4f28c2(0x12e)](_0x388848),this[_0x4f28c2(0x96)]=!![],this[_0x4f28c2(0x12b)]=_0x3b43c2,this[_0x4f28c2(0x8d)]=_0x14d88c;}static[a121_0x5ab4b4(0xf6)](){return performance;}static[a121_0x5ab4b4(0x8e)](_0x3de7e9,_0x3e3707){const _0x5ebd88=a121_0x5ab4b4,_0x17848d={};_0x17848d[_0x5ebd88(0x11b)]=function(_0x11295d,_0x5801df){return _0x11295d+_0x5801df;},_0x17848d[_0x5ebd88(0x115)]=function(_0x495540,_0x543bc9){return _0x495540||_0x543bc9;},_0x17848d[_0x5ebd88(0xc9)]=function(_0x43bc11,_0x106063){return _0x43bc11===_0x106063;};const _0x48485b=_0x17848d,_0xa2b8de={};if(!_0x3de7e9||_0x48485b[_0x5ebd88(0xc9)](_0x3de7e9[_0x5ebd88(0xc0)],0x0))return;_0x3de7e9[_0x5ebd88(0x12d)](_0x484a93=>{const _0x1c6fd9=_0x5ebd88;!_0xa2b8de[_0x484a93[_0x1c6fd9(0xed)]]&&(_0xa2b8de[_0x484a93['name']]=0x0),_0xa2b8de[_0x484a93['name']]+=_0x484a93[_0x1c6fd9(0x101)];});const _0x4f6472=_0x3e3707[_0x5ebd88(0xa0)]((_0x404e6f,_0x43ec22)=>{const _0x1cc1dd=_0x5ebd88;return _0x48485b[_0x1cc1dd(0x11b)](_0xa2b8de[_0x43ec22],_0x48485b['cQgus'](_0x404e6f,0x0));},0x0);return _0x4f6472;}static async[a121_0x5ab4b4(0xae)](_0x231456,_0x233c62){const _0x574b47=a121_0x5ab4b4,_0x85fe6={'gbcdA':function(_0x16bf3b,_0x1c8db1){return _0x16bf3b+_0x1c8db1;},'dRHAq':function(_0x37fe81,_0x51e6e6){return _0x37fe81||_0x51e6e6;},'nPATt':function(_0x4916f4,_0x441378){return _0x4916f4===_0x441378;},'rRyhA':function(_0x1574ee,_0x39aff2){return _0x1574ee(_0x39aff2);}};if(!_0x231456||_0x85fe6[_0x574b47(0x120)](_0x231456[_0x574b47(0xc0)],0x0))return 0x0;const _0x495686=[];for(const _0x417b6f of _0x231456){const _0x27b3ac=path[_0x574b47(0xfa)]('.',_0x417b6f);try{const _0x3a0559=this[_0x574b47(0xbe)](_0x27b3ac);_0x3a0559['map'](_0x1d9c99=>{const _0x5ef815=_0x574b47;!_0x495686[_0x1d9c99['name']]&&(_0x495686[_0x1d9c99[_0x5ef815(0xed)]]=0x0),_0x495686[_0x1d9c99['name']]+=_0x1d9c99[_0x5ef815(0x101)];});}catch(_0x397c64){_0x85fe6[_0x574b47(0xb2)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x397c64[_0x574b47(0xc3)]());}}const _0x3fe20a=_0x233c62[_0x574b47(0xa0)]((_0x286893,_0x2a38ca)=>{const _0x16c2bb=_0x574b47;return _0x85fe6[_0x16c2bb(0x129)](_0x495686[_0x2a38ca],_0x85fe6[_0x16c2bb(0xbb)](_0x286893,0x0));},0x0);return _0x85fe6[_0x574b47(0xb2)](debug,_0x574b47(0xa8)+_0x233c62+_0x574b47(0x10b)+_0x3fe20a),_0x3fe20a;}static['getEventsFromJSON'](_0x577d19){const _0x4d70f8=a121_0x5ab4b4;if(_0x577d19){if(!fs[_0x4d70f8(0xa9)](_0x577d19))return[];return JSON[_0x4d70f8(0xe5)](fs[_0x4d70f8(0x100)](_0x577d19)[_0x4d70f8(0xc3)]());}}static async[a121_0x5ab4b4(0xaa)](_0x181949=a121_0x5ab4b4(0xbf),_0x5c42b3=null){const _0x2f6d3e=a121_0x5ab4b4,_0x229cde={'OkreM':function(_0x6d7ec7,_0x11407c){return _0x6d7ec7(_0x11407c);}};if(!this['started'])return;await _0x229cde[_0x2f6d3e(0xd0)](sleep,0x1e),this[_0x2f6d3e(0x10d)]['disconnect'](),this[_0x2f6d3e(0x96)]=![],this[_0x2f6d3e(0xa3)](this['_events']);const _0xe87f6c=this['generateHTMLReport'](this[_0x2f6d3e(0xe1)]),_0x53abf9=path[_0x2f6d3e(0xfa)](process[_0x2f6d3e(0xaf)](),_0x181949);fs[_0x2f6d3e(0xeb)](_0x53abf9,_0xe87f6c,_0x2f21c9=>{const _0x3069d4=_0x2f6d3e;if(_0x2f21c9){_0x229cde['OkreM'](debug,_0x3069d4(0xb6)+_0x2f21c9['toString']());return;}_0x229cde[_0x3069d4(0xd0)](debug,'Performance\x20report\x20is\x20at\x20'+_0x53abf9);});if(_0x5c42b3)return this['calculateTimeFromEvents'](this['_events'],_0x5c42b3);}static[a121_0x5ab4b4(0xe0)](_0x9984f3){const _0x59e4e6=a121_0x5ab4b4,_0x27d224={};_0x27d224[_0x59e4e6(0x95)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x27d224['PfvPN']='<h1>Performance\x20Report</h1>',_0x27d224[_0x59e4e6(0x11a)]=_0x59e4e6(0x11c),_0x27d224[_0x59e4e6(0x104)]=_0x59e4e6(0xc6);const _0x181b33=_0x27d224;let _0xb1fbca=_0x181b33[_0x59e4e6(0x95)];return _0xb1fbca+=_0x181b33[_0x59e4e6(0x12a)],_0xb1fbca+=_0x181b33[_0x59e4e6(0x11a)],_0x9984f3[_0x59e4e6(0xc4)](_0x526cd8=>{const _0x248316=_0x59e4e6;_0xb1fbca+='<tr><td>'+_0x526cd8[_0x248316(0xed)]+'</td><td>'+_0x526cd8[_0x248316(0x101)]+_0x248316(0xd9);}),_0xb1fbca+=_0x181b33[_0x59e4e6(0x104)],_0xb1fbca;}static[a121_0x5ab4b4(0xa3)](_0x527fd0){const _0x3a1e4e=a121_0x5ab4b4;if(!this[_0x3a1e4e(0x12b)])return;const _0x42ba37={};_0x527fd0['map'](_0x582d8b=>{const _0x220143=_0x3a1e4e;!_0x42ba37[_0x582d8b[_0x220143(0xed)]]&&(_0x42ba37[_0x582d8b[_0x220143(0xed)]]=0x0),_0x42ba37[_0x582d8b[_0x220143(0xed)]]+=_0x582d8b[_0x220143(0x101)];});const _0x222727=Object['entries'](_0x42ba37)[_0x3a1e4e(0x12d)](([_0x55eb39,_0x31a4a5])=>{const _0x55508a=_0x3a1e4e,_0x23e54c={};return _0x23e54c[_0x55508a(0xed)]=_0x55eb39,_0x23e54c[_0x55508a(0x101)]=_0x31a4a5,_0x23e54c;});fs['writeFileSync'](this[_0x3a1e4e(0x12b)],JSON[_0x3a1e4e(0xc1)](_0x222727));}static['isEnabled'](){const _0x2e5651=a121_0x5ab4b4,_0x478259={};_0x478259['YzWir']=function(_0x473960,_0x7667ad){return _0x473960===_0x7667ad;},_0x478259[_0x2e5651(0x12f)]='false';const _0x263d0b=_0x478259;return!_0x263d0b[_0x2e5651(0x91)](process['env'][_0x2e5651(0x130)],_0x263d0b[_0x2e5651(0x12f)]);}static[a121_0x5ab4b4(0x93)](_0x1778ca,_0x14c32e,_0x7e5801=null,_0x2eed1d={},_0x461861=null){const _0x463dc5=a121_0x5ab4b4,_0x472661={'qgEJE':function(_0x334671,_0x27614d){return _0x334671(_0x27614d);},'QOFSW':function(_0x2d0069,_0x5f4608){return _0x2d0069(_0x5f4608);},'SMzCH':function(_0x2c6eae,_0x216b81){return _0x2c6eae instanceof _0x216b81;}};try{if(this[_0x463dc5(0x96)]&&this[_0x463dc5(0x125)]()){let _0x5b2cbb=_0x1778ca;_0x7e5801&&(_0x5b2cbb=_0x1778ca+'['+JSON['stringify'](_0x7e5801)+']');PerformanceTester['start'](_0x5b2cbb),this[_0x463dc5(0xd3)]&&(this['details'][_0x5b2cbb]=_0x2eed1d);try{const _0x5583c4=_0x14c32e[_0x463dc5(0x133)](null,_0x461861);if(_0x472661[_0x463dc5(0xe6)](_0x5583c4,Promise))return new Promise((_0x11c255,_0x4ce2d)=>{const _0x42866c=_0x463dc5;_0x5583c4['then'](_0x451090=>{const _0x244231=a121_0x1ecc;PerformanceTester[_0x244231(0xd4)](_0x5b2cbb),_0x472661['qgEJE'](_0x11c255,_0x451090);})[_0x42866c(0xce)](_0x1bb6b3=>{const _0x2aab9b=_0x42866c;PerformanceTester[_0x2aab9b(0xd4)](_0x5b2cbb,![],util['format'](_0x1bb6b3)),_0x472661[_0x2aab9b(0xab)](_0x4ce2d,_0x1bb6b3);});});;return PerformanceTester[_0x463dc5(0xd4)](_0x5b2cbb),_0x5583c4;}catch(_0x2fa456){PerformanceTester[_0x463dc5(0xd4)](_0x5b2cbb,![],util[_0x463dc5(0x112)](_0x2fa456));throw _0x2fa456;}};return _0x14c32e['apply'](null,_0x461861);}catch(_0x32a31b){return logger[_0x463dc5(0xfc)]('error\x20in\x20measure\x20'+(_0x32a31b[_0x463dc5(0xb3)]||_0x32a31b['message']||_0x32a31b)),_0x14c32e[_0x463dc5(0x133)](null,_0x461861);}}static['measureWrapper'](_0x58ba6b,_0xf29868,_0x2d34c3={}){const _0x6596b5=a121_0x5ab4b4,_0x7d7e8b={'roLEL':function(_0x5a32b9){return _0x5a32b9();},'PnSVU':function(_0x433f4c){return _0x433f4c();}},_0xbcf328=this;return _0x2d34c3[_0x6596b5(0xb7)]=_0x7d7e8b['roLEL'](getProcessId),_0x2d34c3[_0x6596b5(0x9d)]=_0x7d7e8b[_0x6596b5(0x9a)](getTestName),_0x2d34c3[_0x6596b5(0xec)]=global[_0x6596b5(0xbc)]&&global[_0x6596b5(0xbc)]['index'],function(){const _0x290ac0=_0x6596b5,_0x5101af=[_0x58ba6b,_0xf29868,null,_0x2d34c3][_0x290ac0(0x121)](arguments);return _0xbcf328['measure'][_0x290ac0(0x133)](_0xbcf328,_0x5101af);};}static[a121_0x5ab4b4(0x114)](){const _0x5d3d51=a121_0x5ab4b4,_0x12d89=/(^.*)\[(.*)\]$/,_0x515105={},_0x2e9c18={},_0x21907d=[],_0x210aa7=this[_0x5d3d51(0xba)][_0x5d3d51(0x111)](0x0,this['_measureEvents'][_0x5d3d51(0xc0)]);for(const _0x6787d7 of _0x210aa7){const _0x5147cd=_0x6787d7[_0x5d3d51(0xed)][_0x5d3d51(0xee)](_0x12d89),_0x525ab9=Object['assign']({},_0x6787d7);_0x5147cd&&(_0x525ab9[_0x5d3d51(0xed)]=_0x5147cd[0x1],_0x525ab9[_0x5d3d51(0xa4)]=JSON['parse'](_0x5147cd[0x2])),_0x21907d[_0x5d3d51(0xa7)](_0x525ab9);}return _0x21907d;}static['pushPerfMeasures'](){const _0x1f1702=a121_0x5ab4b4,_0x2ae941={'MShDc':function(_0x28dba8){return _0x28dba8();},'QfDHp':function(_0x277be9,_0xe54899){return _0x277be9+_0xe54899;},'DRQSI':_0x1f1702(0xbd),'VxSkL':function(_0x113413,_0x315c4e){return _0x113413===_0x315c4e;},'bqIyE':function(_0x4506cb,_0x2e7f0b){return _0x4506cb+_0x2e7f0b;}};try{this[_0x1f1702(0x94)]=path[_0x1f1702(0xfa)](_0x2ae941[_0x1f1702(0x106)](getLogDir),this[_0x1f1702(0xb9)]);if(fs[_0x1f1702(0xa9)](this[_0x1f1702(0x94)])){const _0x34ccbc=fs[_0x1f1702(0xd7)](this[_0x1f1702(0x94)]);for(const _0x21c00c of _0x34ccbc){fs[_0x1f1702(0x113)](path[_0x1f1702(0xfa)](this[_0x1f1702(0x94)],_0x21c00c));}}}catch(_0x1cb1b9){logger[_0x1f1702(0xfc)](_0x2ae941[_0x1f1702(0xd6)](_0x2ae941[_0x1f1702(0x123)],_0x1cb1b9));}if(_0x2ae941[_0x1f1702(0xa5)](this['_measureEvents'][_0x1f1702(0xc0)],0x0))return;const _0x391498=this[_0x1f1702(0x114)](),_0x1811af=JSON[_0x1f1702(0xc1)](_0x391498),_0x1107a1=_0x2ae941['bqIyE'](_0x1811af[_0x1f1702(0x90)](0x1,-0x1),',');fs['appendFileSync'](this[_0x1f1702(0x12b)],_0x1107a1);}static async[a121_0x5ab4b4(0xf7)](){const _0x2e86ba=a121_0x5ab4b4,_0x3bfbac={'azxOx':function(_0x16f354){return _0x16f354();},'krxWP':function(_0x2e1352,_0x40ac4b){return _0x2e1352===_0x40ac4b;},'RVxMk':_0x2e86ba(0xa6),'ERnkR':'utf-8','Plwlg':_0x2e86ba(0xd1),'kQvBf':function(_0x4095a3,_0x33659e){return _0x4095a3+_0x33659e;},'Uojeg':function(_0x585bae,_0x1aebb2){return _0x585bae+_0x1aebb2;},'WxbGF':_0x2e86ba(0xfb),'uuDaJ':_0x2e86ba(0x10f),'MGJqQ':_0x2e86ba(0xd2),'btgJx':function(_0xb72753,_0x487b7){return _0xb72753>_0x487b7;}};this[_0x2e86ba(0x94)]=path['join'](_0x3bfbac[_0x2e86ba(0xac)](getLogDir),this[_0x2e86ba(0xb9)]);if(!this[_0x2e86ba(0x96)]||_0x3bfbac[_0x2e86ba(0xe3)](this[_0x2e86ba(0xba)][_0x2e86ba(0xc0)],0x0))return[];if(!fs[_0x2e86ba(0xa9)](this[_0x2e86ba(0x94)]))return this['_measureEvents'];const _0x46b7b3=(await fsPromise['readdir'](this[_0x2e86ba(0x94)]))['map'](_0x2b19b4=>path[_0x2e86ba(0xc2)](this[_0x2e86ba(0x94)],_0x2b19b4));try{const _0x51583f=path[_0x2e86ba(0x126)](this[_0x2e86ba(0x94)]),_0x331f86=path[_0x2e86ba(0xfa)](_0x51583f,_0x3bfbac[_0x2e86ba(0xe4)]);if(fs['existsSync'](_0x331f86))try{await fsPromise[_0x2e86ba(0xdd)](_0x331f86,fs[_0x2e86ba(0x98)][_0x2e86ba(0xef)]);const _0x5b7a65=await fsPromise[_0x2e86ba(0xf9)](_0x331f86,_0x3bfbac[_0x2e86ba(0xcd)]),_0x5bd580=JSON[_0x2e86ba(0xe5)](_0x5b7a65),_0x36b8e4=path[_0x2e86ba(0xfa)](this[_0x2e86ba(0x94)],_0x3bfbac[_0x2e86ba(0xcf)]);let _0x3112be='';Array[_0x2e86ba(0xc7)](_0x5bd580)?_0x3112be=_0x3bfbac['kQvBf'](_0x5bd580[_0x2e86ba(0x12d)](_0x322f62=>JSON[_0x2e86ba(0xc1)](_0x322f62))['join'](','),','):_0x3112be=_0x3bfbac['Uojeg'](JSON[_0x2e86ba(0xc1)](_0x5bd580),','),await fsPromise[_0x2e86ba(0xeb)](_0x36b8e4,_0x3112be),_0x46b7b3[_0x2e86ba(0xa7)](_0x36b8e4),await fsPromise[_0x2e86ba(0xc5)](_0x331f86);}catch(_0x494ab8){logger[_0x2e86ba(0xe7)](util[_0x2e86ba(0x112)](_0x3bfbac[_0x2e86ba(0x102)],_0x494ab8[_0x2e86ba(0xb3)]||_0x494ab8[_0x2e86ba(0x9b)]||_0x494ab8));}else logger[_0x2e86ba(0xe7)](_0x3bfbac['uuDaJ']);}catch(_0xfd9cde){logger[_0x2e86ba(0xe7)](util[_0x2e86ba(0x112)](_0x3bfbac['MGJqQ'],_0xfd9cde['stack']||_0xfd9cde[_0x2e86ba(0x9b)]||_0xfd9cde));}let _0x40d728=(await Promise['all'](_0x46b7b3['map'](_0x1021de=>fsPromise[_0x2e86ba(0xf9)](_0x1021de,_0x2e86ba(0x128)))))['map'](_0x261932=>'['+_0x261932[_0x2e86ba(0x90)](0x0,-0x1)+']')[_0x2e86ba(0x12d)](_0x12763e=>JSON[_0x2e86ba(0xe5)](_0x12763e))['flat']();return _0x3bfbac[_0x2e86ba(0xe2)](this['_measureEvents'][_0x2e86ba(0xc0)],0x0)&&(_0x40d728=_0x40d728[_0x2e86ba(0x121)](this[_0x2e86ba(0x114)]())),this[_0x2e86ba(0x10d)]['disconnect'](),_0x40d728;}static[a121_0x5ab4b4(0xb0)](){const _0x2ac5f6=a121_0x5ab4b4,_0x1a2f14={};_0x1a2f14[_0x2ac5f6(0x127)]=function(_0x1b9a60,_0xd34d3b){return _0x1b9a60===_0xd34d3b;},_0x1a2f14[_0x2ac5f6(0x117)]=function(_0x3d54b4,_0x37ea5d){return _0x3d54b4+_0x37ea5d;};const _0x12034c=_0x1a2f14;if(_0x12034c['lYqts'](this[_0x2ac5f6(0x10a)][_0x2ac5f6(0xc0)],0x0))return;const _0x433cbd=JSON['stringify'](this[_0x2ac5f6(0x10a)]),_0x35ce22=_0x12034c[_0x2ac5f6(0x117)](_0x433cbd['slice'](0x1,-0x1),',');fs[_0x2ac5f6(0x103)](this[_0x2ac5f6(0x11d)],_0x35ce22);}static[a121_0x5ab4b4(0xff)](){const _0x11056f=a121_0x5ab4b4,_0x2f3f35={};_0x2f3f35[_0x11056f(0x97)]=function(_0x22c58a,_0x314e17){return _0x22c58a>_0x314e17;};const _0x25d8fc=_0x2f3f35;if(this[_0x11056f(0x8d)]){if(!fs[_0x11056f(0xa9)](this['errorReportFileName']))return this[_0x11056f(0x10a)];let _0x1216fe=fs['readFileSync'](this[_0x11056f(0x8d)])['toString']();_0x1216fe='['+_0x1216fe[_0x11056f(0x90)](0x0,-0x1)+']';let _0xcf8937=JSON[_0x11056f(0xe5)](_0x1216fe);return _0x25d8fc['iRPKA'](this[_0x11056f(0x10a)]['length'],0x0)&&(_0xcf8937=_0xcf8937[_0x11056f(0x121)](this[_0x11056f(0x10a)])),fs[_0x11056f(0x113)](this[_0x11056f(0x8d)]),_0xcf8937;}}static[a121_0x5ab4b4(0xdc)](_0x204d77){const _0x5c2320=a121_0x5ab4b4;if(!this['isEnabled']())return;this[_0x5c2320(0x10a)][_0x5c2320(0xa7)]({'message':_0x204d77[_0x5c2320(0x9b)],'trace':_0x204d77['stack'],'code':_0x204d77[_0x5c2320(0xd5)]||null,'time':new Date()});}static[a121_0x5ab4b4(0x116)](){const _0x16baea=a121_0x5ab4b4;try{if(!this[_0x16baea(0x125)]())return;this[_0x16baea(0x10d)]['disconnect'](),this[_0x16baea(0x131)](),this['pushErrors']();}catch(_0x58c210){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x16baea(0x112)](_0x58c210));}}static async[a121_0x5ab4b4(0x11f)](){const _0x10748c=a121_0x5ab4b4,_0x55775b={'YTSqc':function(_0x4b4dab,_0x589b1f){return _0x4b4dab(_0x589b1f);}};await _0x55775b[_0x10748c(0xd8)](sleep,0x1e);const _0x428984=await this[_0x10748c(0xf7)](),_0x433d8e=this[_0x10748c(0xff)]();if(!this[_0x10748c(0x125)]()){const _0x429b03={};return _0x429b03[_0x10748c(0x8f)]=[],_0x429b03['errors']=[],_0x429b03;}const _0x4bc66f={};return _0x4bc66f['measures']=_0x428984,_0x4bc66f[_0x10748c(0xcb)]=_0x433d8e,_0x4bc66f;}static[a121_0x5ab4b4(0xda)](_0x117030){const _0x2d2206=a121_0x5ab4b4,_0x3a4409={};_0x3a4409[_0x2d2206(0x9f)]=function(_0x121b4f,_0x240725){return _0x121b4f+_0x240725;},_0x3a4409[_0x2d2206(0x11e)]=_0x2d2206(0x105);const _0x4c8506=_0x3a4409,_0x343309=_0x4c8506[_0x2d2206(0x9f)](_0x117030,_0x4c8506[_0x2d2206(0x11e)]);if(this['eventsMap'][_0x343309])return;performance[_0x2d2206(0xea)](_0x343309),this[_0x2d2206(0x12c)][_0x343309]=0x1;}static[a121_0x5ab4b4(0xd4)](_0x41ac53,_0x3ecd9d=!![],_0x121be0=null,_0x4d30c0={}){const _0x24f243=a121_0x5ab4b4,_0x1c5d0b={'QFIzL':function(_0x1b8dd0,_0xe45456){return _0x1b8dd0+_0xe45456;},'Yrdhj':_0x24f243(0x132),'mgPOP':function(_0x2c2249,_0x51402b){return _0x2c2249+_0x51402b;},'jJrHi':_0x24f243(0x105),'OVLKT':function(_0x178db2){return _0x178db2();}};performance[_0x24f243(0xea)](_0x1c5d0b['QFIzL'](_0x41ac53,_0x1c5d0b[_0x24f243(0xad)])),performance[_0x24f243(0x93)](_0x41ac53,_0x1c5d0b['mgPOP'](_0x41ac53,_0x1c5d0b[_0x24f243(0xca)]),_0x1c5d0b['mgPOP'](_0x41ac53,_0x1c5d0b[_0x24f243(0xad)]));const _0x1d19c5={};_0x1d19c5[_0x24f243(0xe9)]=_0x3ecd9d,_0x1d19c5['failure']=_0x121be0,this['details'][_0x41ac53]=Object[_0x24f243(0xdf)](_0x1d19c5,Object['assign'](Object[_0x24f243(0xdf)]({'worker':_0x1c5d0b[_0x24f243(0xf1)](getProcessId),'platform':global[_0x24f243(0xbc)]&&global['__platformCaps'][_0x24f243(0x9c)],'testName':_0x1c5d0b[_0x24f243(0xf1)](getTestName)},_0x4d30c0),this[_0x24f243(0xd3)][_0x41ac53]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x1ec8f8=a122_0xa64f;(function(_0x5b63db,_0x1f1e4c){const _0x10dd75=a122_0xa64f,_0x5ed22c=_0x5b63db();while(!![]){try{const _0x4ed037=parseInt(_0x10dd75(0x246))/0x1+-parseInt(_0x10dd75(0x1fc))/0x2+parseInt(_0x10dd75(0x248))/0x3*(-parseInt(_0x10dd75(0x25b))/0x4)+parseInt(_0x10dd75(0x263))/0x5+-parseInt(_0x10dd75(0x22a))/0x6+parseInt(_0x10dd75(0x269))/0x7*(-parseInt(_0x10dd75(0x229))/0x8)+-parseInt(_0x10dd75(0x205))/0x9*(-parseInt(_0x10dd75(0x25a))/0xa);if(_0x4ed037===_0x1f1e4c)break;else _0x5ed22c['push'](_0x5ed22c['shift']());}catch(_0x305d7a){_0x5ed22c['push'](_0x5ed22c['shift']());}}}(a122_0x4200,0x823b8));const path=require('path'),util=require(a122_0x1ec8f8(0x217)),{importFileFromPWCore}=require(a122_0x1ec8f8(0x25c)),helper=require(a122_0x1ec8f8(0x25c)),logger=require(a122_0x1ec8f8(0x23c))[a122_0x1ec8f8(0x1fa)],W3CMapping=require(a122_0x1ec8f8(0x1f6))[a122_0x1ec8f8(0x23d)](),constants=require(a122_0x1ec8f8(0x260)),BrowserstackCLI=require('../bin/v2/browserstackCLI'),CLIUtils=require('../bin/v2/cliUtils');function a122_0xa64f(_0x4fe03c,_0x3f1cb7){const _0x42005d=a122_0x4200();return a122_0xa64f=function(_0xa64f25,_0x2745da){_0xa64f25=_0xa64f25-0x1f3;let _0x26228e=_0x42005d[_0xa64f25];return _0x26228e;},a122_0xa64f(_0x4fe03c,_0x3f1cb7);}let GrpcClient;function a122_0x4200(){const _0x378508=['uepTI','winstonLogger','\x20for\x20','663102vXoEpJ','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','message','browserstack.buildProductMap','XIOUT','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','getPlaywrightUrl','parse','CEjQq','127773CNPxeN','mNgRO','yyehG','getConfig','bstack:options','browserName','projects','isArray','BrowserType','ucLKR','browser','exports','__platformCaps','BS_A11Y_JWT','platformCaps','getInstance','CScIq','browserstack.accessibilityOptions.wcagVersion','util','playwrightConfigObject','getPlaywrightConfig','BIPqL','rYspm','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','Playwright\x20not\x20available:\x20','workers','checkPwandBootstrapCli','vkKnj','use','config','KpuqD','debug','capabilities','stringify','getBrowserTypePath','getPlaywrightModulePath','7688PJakEk','3699918RpoVpe','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','convertW3CToJsonWire','uSFyN','length','getPlaywrightBrowserType','Nwvob','fSsfD','join','jZlEN','Could\x20not\x20import\x20GrpcClient:\x20','HELnP','getBrowserFromCaps','setBrowserstackConfig','hIJBm','bootstrap','__accessibilityOptions','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','./logger','W3CMapping','browserstack.accessibilityOptions.authToken','ImvfU','importFileFromPWCore','browserstack.accessibilityOptions.scannerVersion','setFrameworkDetail','browserType.js','HbKfY','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','537334sMUnPp','AMeKt','3ScgjLj','client','BROWSERSTACK_PRODUCT_MAP','aEKCI','framework','Error\x20getting\x20Playwright\x20BrowserType:\x20','../bin/v2/grpcClient','FRAMEWORKS','format','\x20flow','jGDhM','linYS','YQlzp','JYZHC','SRYAw','IvPVL','syjwR','GuNiN','1130WXaSfH','3050736panyNL','./helper','bZyRP','vFZOc','DwEaH','../bin/utils/constants','nShlo','isPlaywrightAvailable','4545020UfXxFR','zuCvx','env','__launchCaps','Received\x20modified\x20config\x20from\x20gRPC:\x20','bsSVi','5873ShVLvp','PLAYWRIGHT','getBuildProductMap','browserstack.testhubBuildUuid','entries','./w3cMapping','cLRwu','browserstack.accessibilityOptions.scannerProcessingTimeout'];a122_0x4200=function(){return _0x378508;};return a122_0x4200();}try{GrpcClient=require(a122_0x1ec8f8(0x24e));}catch(a122_0x1f0e42){logger[a122_0x1ec8f8(0x224)](a122_0x1ec8f8(0x234)+a122_0x1f0e42[a122_0x1ec8f8(0x1fe)]),GrpcClient=null;}const convertW3CToJsonWire=_0x1157f1=>{const _0x150a48=a122_0x1ec8f8,_0x49d449={};_0x49d449[_0x150a48(0x253)]=function(_0x540f61,_0x49f8a6){return _0x540f61||_0x49f8a6;},_0x49d449[_0x150a48(0x223)]=function(_0x3fb6dc,_0x1e6f2f){return _0x3fb6dc===_0x1e6f2f;},_0x49d449[_0x150a48(0x1f7)]=_0x150a48(0x209),_0x49d449['jZlEN']=function(_0x238a23,_0x4f3e60){return _0x238a23===_0x4f3e60;},_0x49d449[_0x150a48(0x264)]=function(_0x343caa,_0x486cad){return _0x343caa in _0x486cad;};const _0x2e73ac=_0x49d449,_0x591192={};for(const [_0x31cb4a,_0x42fefe]of Object[_0x150a48(0x1f5)](_0x2e73ac[_0x150a48(0x253)](_0x1157f1,{}))){if(_0x2e73ac[_0x150a48(0x223)](_0x31cb4a,_0x2e73ac['cLRwu']))continue;let _0x54a50f=![];for(const [_0x4b946f,_0x1281ee]of Object[_0x150a48(0x1f5)](W3CMapping)){if(_0x2e73ac[_0x150a48(0x233)](_0x31cb4a,_0x1281ee)){_0x591192[_0x4b946f]=_0x42fefe,_0x54a50f=!![];break;}}!_0x54a50f&&(_0x591192[_0x31cb4a]=_0x42fefe);}const _0x29ae07=_0x1157f1[_0x2e73ac[_0x150a48(0x1f7)]]||{};for(const [_0x2cd3c8,_0x1a8c89]of Object[_0x150a48(0x1f5)](_0x29ae07)){let _0x2101da=![];for(const [_0x49eab8,_0x870fb9]of Object['entries'](W3CMapping)){if(_0x2e73ac[_0x150a48(0x223)](_0x2cd3c8,_0x870fb9)){_0x591192[_0x49eab8]=_0x1a8c89,_0x2101da=!![];break;}}!_0x2101da&&!_0x2e73ac['zuCvx'](_0x2cd3c8,_0x591192)&&(_0x591192[_0x2cd3c8]=_0x1a8c89);}return logger[_0x150a48(0x224)](_0x150a48(0x23b)+JSON['stringify'](_0x591192)),_0x591192;},getModifiedConfigFromCLI=async _0x28a27e=>{const _0x3a6e43=a122_0x1ec8f8,_0x380759={};_0x380759['Nwvob']='GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request',_0x380759[_0x3a6e43(0x206)]='cucumberjs-pw',_0x380759[_0x3a6e43(0x23f)]=_0x3a6e43(0x22b),_0x380759[_0x3a6e43(0x204)]='No\x20modified\x20config\x20received\x20from\x20gRPC',_0x380759[_0x3a6e43(0x247)]=function(_0x158f42,_0x2944d8){return _0x158f42>_0x2944d8;},_0x380759[_0x3a6e43(0x244)]=function(_0x2664cd,_0xa0d09){return _0x2664cd>_0xa0d09;},_0x380759[_0x3a6e43(0x257)]=_0x3a6e43(0x1fd);const _0x3840ec=_0x380759;try{if(!GrpcClient)return logger[_0x3a6e43(0x224)](_0x3840ec[_0x3a6e43(0x230)]),null;const _0x14b9e0={};_0x14b9e0[_0x3a6e43(0x225)]=_0x28a27e,_0x14b9e0[_0x3a6e43(0x24c)]=_0x3840ec[_0x3a6e43(0x206)],_0x14b9e0[_0x3a6e43(0x21e)]=0x1,_0x14b9e0[_0x3a6e43(0x20b)]=[];const _0x51aa9a=_0x14b9e0;logger[_0x3a6e43(0x224)](_0x3840ec[_0x3a6e43(0x23f)]);const _0x4bc897={};_0x4bc897[_0x3a6e43(0x218)]=_0x51aa9a;const _0x5b121e=await GrpcClient[_0x3a6e43(0x214)]()[_0x3a6e43(0x219)](_0x4bc897);if(!_0x5b121e[_0x3a6e43(0x208)]())return logger[_0x3a6e43(0x224)](_0x3840ec[_0x3a6e43(0x204)]),null;const _0x319e6b=JSON[_0x3a6e43(0x203)](_0x5b121e[_0x3a6e43(0x208)]());logger[_0x3a6e43(0x224)](_0x3a6e43(0x267)+JSON[_0x3a6e43(0x226)](_0x319e6b));if(_0x319e6b[_0x3a6e43(0x225)]&&Array[_0x3a6e43(0x20c)](_0x319e6b['capabilities'])&&_0x3840ec['AMeKt'](_0x319e6b[_0x3a6e43(0x225)]['length'],0x0))return _0x319e6b[_0x3a6e43(0x225)][0x0];else{if(_0x319e6b['projects']&&Array['isArray'](_0x319e6b[_0x3a6e43(0x20b)])&&_0x3840ec[_0x3a6e43(0x244)](_0x319e6b[_0x3a6e43(0x20b)][_0x3a6e43(0x22e)],0x0)){const _0x35469c=_0x319e6b[_0x3a6e43(0x20b)][0x0];if(_0x35469c[_0x3a6e43(0x221)]&&_0x35469c[_0x3a6e43(0x221)][_0x3a6e43(0x213)])return _0x35469c['use']['platformCaps'];}}return logger[_0x3a6e43(0x224)](_0x3840ec[_0x3a6e43(0x257)]),null;}catch(_0xe4ce6f){logger['error'](_0x3a6e43(0x201)+_0xe4ce6f['message']);throw _0xe4ce6f;}},generatePlaywrightUrl=(_0x2755a5,_0xb8524f)=>{const _0x120fcd=a122_0x1ec8f8,_0x152b32={'JYZHC':function(_0x4425fd,_0x45af67){return _0x4425fd!==_0x45af67;},'uSFyN':function(_0x1587ab,_0x32ad19){return _0x1587ab!==_0x32ad19;},'ucRfb':function(_0x5a8039,_0x112cd6){return _0x5a8039!==_0x112cd6;},'GuNiN':function(_0x2416c7,_0x5c8b53){return _0x2416c7!==_0x5c8b53;},'jGDhM':function(_0xc145d2,_0x1ed536){return _0xc145d2(_0x1ed536);},'ucLKR':function(_0x1089d4,_0x35d569){return _0x1089d4||_0x35d569;},'BIPqL':_0x120fcd(0x23e),'DwEaH':function(_0x3d3bde,_0x2a62ad){return _0x3d3bde(_0x2a62ad);},'bsSVi':_0x120fcd(0x216),'CScIq':function(_0x58dc54,_0x14e705){return _0x58dc54(_0x14e705);},'XIOUT':_0x120fcd(0x241),'ZKFwh':function(_0x40f4c0,_0x1a1f1f){return _0x40f4c0(_0x1a1f1f);},'hIJBm':_0x120fcd(0x1f8),'vFZOc':_0x120fcd(0x1f4),'fSsfD':_0x120fcd(0x1ff),'bZyRP':function(_0x153056,_0x3ce985){return _0x153056+_0x3ce985;}},_0x24078b=helper[_0x120fcd(0x202)](_0x2755a5),_0x5eb12e=_0x152b32['jGDhM'](convertW3CToJsonWire,_0xb8524f);try{const _0x43ea03=[_0x152b32[_0x120fcd(0x20e)](_0xb8524f,{}),global[_0x120fcd(0x266)]||{},global[_0x120fcd(0x211)]||{},global[_0x120fcd(0x23a)]||{}],_0x3177f4=_0x6bb6d4=>{const _0x55993b=_0x120fcd;if(_0x152b32[_0x55993b(0x255)](_0x5eb12e[_0x6bb6d4],undefined)&&_0x152b32[_0x55993b(0x22d)](_0x5eb12e[_0x6bb6d4],null)&&_0x152b32['ucRfb'](_0x5eb12e[_0x6bb6d4],''))return;for(const _0x4b4bc6 of _0x43ea03){if(_0x4b4bc6&&_0x152b32['ucRfb'](_0x4b4bc6[_0x6bb6d4],undefined)&&_0x152b32[_0x55993b(0x259)](_0x4b4bc6[_0x6bb6d4],null)&&_0x152b32[_0x55993b(0x22d)](_0x4b4bc6[_0x6bb6d4],'')){_0x5eb12e[_0x6bb6d4]=_0x4b4bc6[_0x6bb6d4];return;}}};_0x152b32[_0x120fcd(0x252)](_0x3177f4,_0x152b32['BIPqL']),_0x152b32[_0x120fcd(0x25f)](_0x3177f4,_0x152b32[_0x120fcd(0x268)]),_0x152b32[_0x120fcd(0x215)](_0x3177f4,_0x152b32[_0x120fcd(0x200)]),_0x152b32['ZKFwh'](_0x3177f4,_0x152b32[_0x120fcd(0x238)]),!_0x5eb12e[_0x152b32[_0x120fcd(0x21a)]]&&process[_0x120fcd(0x265)][_0x120fcd(0x212)]&&(_0x5eb12e[_0x152b32['BIPqL']]=process[_0x120fcd(0x265)][_0x120fcd(0x212)]);}catch(_0x2c11e5){logger[_0x120fcd(0x224)]('Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20'+util[_0x120fcd(0x250)](_0x2c11e5));}return _0x5eb12e[_0x152b32[_0x120fcd(0x25e)]]=process[_0x120fcd(0x265)]['BROWSERSTACK_TESTHUB_UUID'],_0x5eb12e[_0x152b32[_0x120fcd(0x231)]]=helper[_0x120fcd(0x1f3)](),_0x152b32[_0x120fcd(0x25d)](_0x24078b,_0x152b32['CScIq'](encodeURIComponent,JSON['stringify'](_0x5eb12e)));},getBrowserFromCaps=_0x18351c=>{const _0x3312ce=a122_0x1ec8f8,_0x386ec4={};_0x386ec4['KMpyp']='chrome';const _0x4f4427=_0x386ec4;return _0x18351c[_0x3312ce(0x20a)]||_0x18351c[_0x3312ce(0x20f)]||_0x4f4427['KMpyp'];},isPlaywrightAvailable=()=>{const _0x927b52=a122_0x1ec8f8,_0x449160={'rYspm':'lib','eamQv':_0x927b52(0x249),'yyehG':_0x927b52(0x243),'nShlo':function(_0x5a2c94,_0x526b0c){return _0x5a2c94(_0x526b0c);}};try{const _0x3df8f9=path[_0x927b52(0x232)](_0x449160[_0x927b52(0x21b)],_0x449160['eamQv'],_0x449160[_0x927b52(0x207)]),_0x44264d=_0x449160[_0x927b52(0x261)](importFileFromPWCore,_0x3df8f9);return!!_0x44264d;}catch(_0x3f23c4){return logger[_0x927b52(0x224)](_0x927b52(0x21d)+util['format'](_0x3f23c4)),![];}},getPlaywrightBrowserType=()=>{const _0x36b962=a122_0x1ec8f8,_0x4c554e={'vkKnj':'lib','SRYAw':'client','divaa':'browserType.js','aEKCI':function(_0xe0fd93,_0x244759){return _0xe0fd93(_0x244759);}};try{const _0x213b57=path[_0x36b962(0x232)](_0x4c554e[_0x36b962(0x220)],_0x4c554e[_0x36b962(0x256)],_0x4c554e['divaa']),_0x570423=_0x4c554e[_0x36b962(0x24b)](importFileFromPWCore,_0x213b57);return _0x570423?_0x570423[_0x36b962(0x20d)]:null;}catch(_0x2ff938){return logger[_0x36b962(0x224)](_0x36b962(0x24d)+util[_0x36b962(0x250)](_0x2ff938)),null;}},getPlaywrightModulePath=()=>{const _0x222289=a122_0x1ec8f8,_0x485097={};_0x485097['HELnP']=_0x222289(0x245);const _0x473d2e=_0x485097;return logger[_0x222289(0x224)](_0x473d2e[_0x222289(0x235)]),null;},getBrowserTypePath=()=>{const _0x1d8bc8=a122_0x1ec8f8,_0x166508={};_0x166508[_0x1d8bc8(0x254)]=_0x1d8bc8(0x21c);const _0x101f42=_0x166508;return logger[_0x1d8bc8(0x224)](_0x101f42[_0x1d8bc8(0x254)]),null;},checkPwandBootstrapCli=async(_0x431c88,_0x4f1d0f,_0x4e244f)=>{const _0x17f8e2=a122_0x1ec8f8,_0x4800c1={'syjwR':function(_0x161924,_0x4b9398){return _0x161924(_0x4b9398);},'uepTI':'./testhub/utils','hAKah':function(_0x2dd54c,_0xe66256){return _0x2dd54c(_0xe66256);}};if(_0x431c88){const _0x285162=constants[_0x17f8e2(0x24f)][_0x17f8e2(0x26a)];logger[_0x17f8e2(0x224)]('Detected\x20Playwright\x20version\x20'+_0x431c88+_0x17f8e2(0x1fb)+_0x4f1d0f+_0x17f8e2(0x251)),CLIUtils[_0x17f8e2(0x242)](_0x4f1d0f,_0x285162);const {getProductMap:_0x435cf0}=_0x4800c1[_0x17f8e2(0x258)](require,_0x4800c1[_0x17f8e2(0x1f9)]);process[_0x17f8e2(0x265)][_0x17f8e2(0x24a)]=JSON['stringify'](_0x4800c1['hAKah'](_0x435cf0,_0x4e244f['config'])),BrowserstackCLI['getInstance']()[_0x17f8e2(0x237)](_0x4e244f[_0x17f8e2(0x222)],_0x4e244f['configPath'],_0x4e244f['cliConfig']),await BrowserstackCLI[_0x17f8e2(0x214)]()[_0x17f8e2(0x239)]();}},a122_0x4ee7bd={};a122_0x4ee7bd[a122_0x1ec8f8(0x22c)]=convertW3CToJsonWire,a122_0x4ee7bd['getModifiedConfigFromCLI']=getModifiedConfigFromCLI,a122_0x4ee7bd['generatePlaywrightUrl']=generatePlaywrightUrl,a122_0x4ee7bd[a122_0x1ec8f8(0x236)]=getBrowserFromCaps,a122_0x4ee7bd[a122_0x1ec8f8(0x262)]=isPlaywrightAvailable,a122_0x4ee7bd[a122_0x1ec8f8(0x22f)]=getPlaywrightBrowserType,a122_0x4ee7bd[a122_0x1ec8f8(0x228)]=getPlaywrightModulePath,a122_0x4ee7bd[a122_0x1ec8f8(0x227)]=getBrowserTypePath,a122_0x4ee7bd[a122_0x1ec8f8(0x240)]=importFileFromPWCore,a122_0x4ee7bd[a122_0x1ec8f8(0x21f)]=checkPwandBootstrapCli,module[a122_0x1ec8f8(0x210)]=a122_0x4ee7bd;
|
|
1
|
+
const a122_0x573309=a122_0x12d6;(function(_0x4a4b01,_0x479804){const _0x4181b2=a122_0x12d6,_0x4b1bcf=_0x4a4b01();while(!![]){try{const _0x3e7796=-parseInt(_0x4181b2(0xc7))/0x1*(-parseInt(_0x4181b2(0xef))/0x2)+parseInt(_0x4181b2(0xf2))/0x3+-parseInt(_0x4181b2(0xd2))/0x4*(-parseInt(_0x4181b2(0xe7))/0x5)+-parseInt(_0x4181b2(0xbb))/0x6+parseInt(_0x4181b2(0xe0))/0x7+-parseInt(_0x4181b2(0xd5))/0x8+-parseInt(_0x4181b2(0xce))/0x9*(parseInt(_0x4181b2(0xf7))/0xa);if(_0x3e7796===_0x479804)break;else _0x4b1bcf['push'](_0x4b1bcf['shift']());}catch(_0x1b6f31){_0x4b1bcf['push'](_0x4b1bcf['shift']());}}}(a122_0x46aa,0x36532));function a122_0x12d6(_0x203b3f,_0x33f8c8){const _0x46aaa5=a122_0x46aa();return a122_0x12d6=function(_0x12d6a5,_0x43fb19){_0x12d6a5=_0x12d6a5-0xa6;let _0x25a97a=_0x46aaa5[_0x12d6a5];return _0x25a97a;},a122_0x12d6(_0x203b3f,_0x33f8c8);}const path=require(a122_0x573309(0xab)),util=require(a122_0x573309(0x116)),{importFileFromPWCore}=require(a122_0x573309(0xaa)),helper=require(a122_0x573309(0xaa)),logger=require('./logger')[a122_0x573309(0x111)],W3CMapping=require(a122_0x573309(0xc6))['W3CMapping'](),constants=require(a122_0x573309(0xd0)),BrowserstackCLI=require(a122_0x573309(0x105)),CLIUtils=require(a122_0x573309(0xe9));let GrpcClient;try{GrpcClient=require(a122_0x573309(0xd1));}catch(a122_0x204324){logger[a122_0x573309(0x10f)](a122_0x573309(0xb1)+a122_0x204324['message']),GrpcClient=null;}const convertW3CToJsonWire=_0x1492a3=>{const _0x1438ad=a122_0x573309,_0x34e384={};_0x34e384[_0x1438ad(0xfd)]=function(_0x77a38a,_0x3ad0fe){return _0x77a38a||_0x3ad0fe;},_0x34e384['VidJl']=function(_0x5e265c,_0x432f88){return _0x5e265c===_0x432f88;},_0x34e384[_0x1438ad(0xc3)]=_0x1438ad(0xee),_0x34e384[_0x1438ad(0xe8)]=function(_0x3e6307,_0x3a5438){return _0x3e6307===_0x3a5438;},_0x34e384[_0x1438ad(0x110)]=function(_0x3c1938,_0x34ab49){return _0x3c1938 in _0x34ab49;};const _0x4434e1=_0x34e384,_0x324c16={};for(const [_0x84929d,_0x271c04]of Object['entries'](_0x4434e1[_0x1438ad(0xfd)](_0x1492a3,{}))){if(_0x4434e1['VidJl'](_0x84929d,_0x4434e1[_0x1438ad(0xc3)]))continue;let _0x32386c=![];for(const [_0x5057a3,_0x21e85b]of Object[_0x1438ad(0xb8)](W3CMapping)){if(_0x4434e1[_0x1438ad(0xb5)](_0x84929d,_0x21e85b)){_0x324c16[_0x5057a3]=_0x271c04,_0x32386c=!![];break;}}!_0x32386c&&(_0x324c16[_0x84929d]=_0x271c04);}const _0x34096b=_0x1492a3[_0x4434e1['hmZac']]||{};for(const [_0x321c96,_0x43c995]of Object[_0x1438ad(0xb8)](_0x34096b)){let _0x2b6894=![];for(const [_0x307355,_0x2e63aa]of Object[_0x1438ad(0xb8)](W3CMapping)){if(_0x4434e1[_0x1438ad(0xe8)](_0x321c96,_0x2e63aa)){_0x324c16[_0x307355]=_0x43c995,_0x2b6894=!![];break;}}!_0x2b6894&&!_0x4434e1[_0x1438ad(0x110)](_0x321c96,_0x324c16)&&(_0x324c16[_0x321c96]=_0x43c995);}return logger[_0x1438ad(0x10f)](_0x1438ad(0xc0)+JSON[_0x1438ad(0xe2)](_0x324c16)),_0x324c16;},getModifiedConfigFromCLI=async _0x541a16=>{const _0x474e68=a122_0x573309,_0x3058bc={};_0x3058bc[_0x474e68(0x114)]=_0x474e68(0xa7),_0x3058bc['Lddwa']=_0x474e68(0xd7),_0x3058bc['Hfqhk']=_0x474e68(0x10e),_0x3058bc[_0x474e68(0xae)]=_0x474e68(0xf3),_0x3058bc[_0x474e68(0x102)]=function(_0x96870c,_0x429dba){return _0x96870c>_0x429dba;},_0x3058bc[_0x474e68(0xbf)]=_0x474e68(0xe4);const _0x5d4205=_0x3058bc;try{if(!GrpcClient)return logger[_0x474e68(0x10f)](_0x5d4205[_0x474e68(0x114)]),null;const _0x4d7ee4={};_0x4d7ee4[_0x474e68(0xa6)]=_0x541a16,_0x4d7ee4[_0x474e68(0xfc)]=_0x5d4205[_0x474e68(0xb6)],_0x4d7ee4[_0x474e68(0xd9)]=0x1,_0x4d7ee4[_0x474e68(0xcb)]=[];const _0x472d80=_0x4d7ee4;logger[_0x474e68(0x10f)](_0x5d4205['Hfqhk']);const _0x2bad50={};_0x2bad50['playwrightConfigObject']=_0x472d80;const _0x5d3370=await GrpcClient[_0x474e68(0xac)]()['getPlaywrightConfig'](_0x2bad50);if(!_0x5d3370[_0x474e68(0xbe)]())return logger['debug'](_0x5d4205[_0x474e68(0xae)]),null;const _0x37e4b3=JSON[_0x474e68(0x10d)](_0x5d3370[_0x474e68(0xbe)]());logger[_0x474e68(0x10f)]('Received\x20modified\x20config\x20from\x20gRPC:\x20'+JSON[_0x474e68(0xe2)](_0x37e4b3));if(_0x37e4b3['capabilities']&&Array[_0x474e68(0xda)](_0x37e4b3[_0x474e68(0xa6)])&&_0x5d4205['SlnWf'](_0x37e4b3['capabilities'][_0x474e68(0xf0)],0x0))return _0x37e4b3[_0x474e68(0xa6)][0x0];else{if(_0x37e4b3[_0x474e68(0xcb)]&&Array[_0x474e68(0xda)](_0x37e4b3[_0x474e68(0xcb)])&&_0x5d4205[_0x474e68(0x102)](_0x37e4b3['projects'][_0x474e68(0xf0)],0x0)){const _0xc24e84=_0x37e4b3['projects'][0x0];if(_0xc24e84['use']&&_0xc24e84['use'][_0x474e68(0xd4)])return _0xc24e84['use'][_0x474e68(0xd4)];}}return logger[_0x474e68(0x10f)](_0x5d4205[_0x474e68(0xbf)]),null;}catch(_0x5af076){logger[_0x474e68(0xdb)](_0x474e68(0xcc)+_0x5af076[_0x474e68(0xf9)]);throw _0x5af076;}},generatePlaywrightUrl=(_0x415c93,_0x2acfde)=>{const _0x5af532=a122_0x573309,_0x29cd05={'URyjO':function(_0x5780c1,_0x3b9810){return _0x5780c1!==_0x3b9810;},'tzfFT':function(_0x782a33,_0x592442){return _0x782a33!==_0x592442;},'CkVNR':function(_0x55e8dd,_0x2b8512){return _0x55e8dd!==_0x2b8512;},'OCFwr':function(_0x583f12,_0x49b9fe){return _0x583f12!==_0x49b9fe;},'LzkXy':function(_0x274cde,_0x398fa2){return _0x274cde!==_0x398fa2;},'jCAuI':function(_0x2bda1b,_0xbe025c){return _0x2bda1b(_0xbe025c);},'wrXnj':function(_0x4f4d01,_0x4957c2){return _0x4f4d01||_0x4957c2;},'WTufF':function(_0x10bd98,_0x475274){return _0x10bd98(_0x475274);},'fhZrJ':_0x5af532(0xdf),'ukmbQ':_0x5af532(0x103),'ymrXO':_0x5af532(0xec),'iaopk':'browserstack.accessibilityOptions.scannerProcessingTimeout','peBFb':_0x5af532(0x100),'JjaTw':_0x5af532(0xf6),'zTKIN':function(_0x30b92e,_0x59f9bd){return _0x30b92e+_0x59f9bd;},'PSCCO':function(_0x3b25a7,_0x4b3b87){return _0x3b25a7(_0x4b3b87);}},_0x421f04=helper[_0x5af532(0xe5)](_0x415c93),_0x4e4d28=_0x29cd05[_0x5af532(0xeb)](convertW3CToJsonWire,_0x2acfde);try{const _0x1bb66e=[_0x29cd05[_0x5af532(0x10c)](_0x2acfde,{}),global[_0x5af532(0x104)]||{},global[_0x5af532(0xd6)]||{},global[_0x5af532(0xbd)]||{}],_0x41e618=_0x548e44=>{const _0x44b155=_0x5af532;if(_0x29cd05['URyjO'](_0x4e4d28[_0x548e44],undefined)&&_0x29cd05[_0x44b155(0x108)](_0x4e4d28[_0x548e44],null)&&_0x29cd05['CkVNR'](_0x4e4d28[_0x548e44],''))return;for(const _0xf51aaf of _0x1bb66e){if(_0xf51aaf&&_0x29cd05[_0x44b155(0x10b)](_0xf51aaf[_0x548e44],undefined)&&_0x29cd05[_0x44b155(0xca)](_0xf51aaf[_0x548e44],null)&&_0x29cd05['OCFwr'](_0xf51aaf[_0x548e44],'')){_0x4e4d28[_0x548e44]=_0xf51aaf[_0x548e44];return;}}};_0x29cd05['WTufF'](_0x41e618,_0x29cd05[_0x5af532(0xfb)]),_0x29cd05[_0x5af532(0xf4)](_0x41e618,_0x29cd05[_0x5af532(0x107)]),_0x29cd05['jCAuI'](_0x41e618,_0x29cd05[_0x5af532(0xcd)]),_0x29cd05['WTufF'](_0x41e618,_0x29cd05[_0x5af532(0xd3)]),!_0x4e4d28[_0x29cd05['fhZrJ']]&&process['env'][_0x5af532(0xe3)]&&(_0x4e4d28[_0x29cd05[_0x5af532(0xfb)]]=process[_0x5af532(0xaf)][_0x5af532(0xe3)]);}catch(_0x1dfff4){logger['debug'](_0x5af532(0xad)+util[_0x5af532(0xb3)](_0x1dfff4));}return _0x4e4d28[_0x29cd05[_0x5af532(0xb9)]]=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x4e4d28[_0x29cd05[_0x5af532(0xb0)]]=helper['getBuildProductMap'](),_0x29cd05['zTKIN'](_0x421f04,_0x29cd05[_0x5af532(0xe1)](encodeURIComponent,JSON['stringify'](_0x4e4d28)));},getBrowserFromCaps=_0x16ff0b=>{const _0x3e75fb=a122_0x573309,_0x392521={};_0x392521[_0x3e75fb(0xea)]='chrome';const _0x5448c3=_0x392521;return _0x16ff0b[_0x3e75fb(0xa8)]||_0x16ff0b['browser']||_0x5448c3[_0x3e75fb(0xea)];},isPlaywrightAvailable=()=>{const _0x34bbb1=a122_0x573309,_0x304bed={'nPAgL':'lib','QEAxx':_0x34bbb1(0x101),'ZCkkU':_0x34bbb1(0xcf),'NjTkT':function(_0x220eea,_0x5ec073){return _0x220eea(_0x5ec073);}};try{const _0x412259=path[_0x34bbb1(0xb7)](_0x304bed[_0x34bbb1(0x113)],_0x304bed[_0x34bbb1(0xc2)],_0x304bed[_0x34bbb1(0xf8)]),_0x58c2cd=_0x304bed['NjTkT'](importFileFromPWCore,_0x412259);return!!_0x58c2cd;}catch(_0x3572e2){return logger[_0x34bbb1(0x10f)](_0x34bbb1(0xba)+util[_0x34bbb1(0xb3)](_0x3572e2)),![];}},getPlaywrightBrowserType=()=>{const _0x351519=a122_0x573309,_0x4eb3a5={'OwZVf':_0x351519(0xfe),'KCBvL':_0x351519(0x101),'WqUHF':'browserType.js','OsAJe':function(_0x535b1a,_0x2bc50c){return _0x535b1a(_0x2bc50c);}};try{const _0x2e8c3b=path[_0x351519(0xb7)](_0x4eb3a5[_0x351519(0xc5)],_0x4eb3a5[_0x351519(0xf5)],_0x4eb3a5[_0x351519(0xd8)]),_0x4ddace=_0x4eb3a5[_0x351519(0x109)](importFileFromPWCore,_0x2e8c3b);return _0x4ddace?_0x4ddace[_0x351519(0xc9)]:null;}catch(_0xf229a7){return logger[_0x351519(0x10f)]('Error\x20getting\x20Playwright\x20BrowserType:\x20'+util[_0x351519(0xb3)](_0xf229a7)),null;}},getPlaywrightModulePath=()=>{const _0xd541a1=a122_0x573309,_0x3cddad={};_0x3cddad[_0xd541a1(0xdd)]=_0xd541a1(0xa9);const _0x3a46cf=_0x3cddad;return logger['debug'](_0x3a46cf['vZEkk']),null;},getBrowserTypePath=()=>{const _0x518871=a122_0x573309,_0x337bf4={};_0x337bf4[_0x518871(0xb4)]=_0x518871(0xbc);const _0x14e998=_0x337bf4;return logger[_0x518871(0x10f)](_0x14e998[_0x518871(0xb4)]),null;},checkPwandBootstrapCli=async(_0xfae4b1,_0x3f96c9,_0x36144d)=>{const _0x3dff5f=a122_0x573309,_0x1b873f={'bqWIa':function(_0x1af3f7,_0xf1c6fc){return _0x1af3f7(_0xf1c6fc);},'MOMtP':'./testhub/utils','ZihgW':function(_0x39d866,_0x331bf){return _0x39d866(_0x331bf);}};if(_0xfae4b1){const _0x2cbc08=constants[_0x3dff5f(0x112)][_0x3dff5f(0xdc)];logger[_0x3dff5f(0x10f)](_0x3dff5f(0xde)+_0xfae4b1+'\x20for\x20'+_0x3f96c9+_0x3dff5f(0x106)),CLIUtils['setFrameworkDetail'](_0x3f96c9,_0x2cbc08);const {getProductMap:_0xdf2010}=_0x1b873f[_0x3dff5f(0x10a)](require,_0x1b873f['MOMtP']);process[_0x3dff5f(0xaf)][_0x3dff5f(0xb2)]=JSON['stringify'](_0x1b873f[_0x3dff5f(0xfa)](_0xdf2010,_0x36144d['config'])),BrowserstackCLI[_0x3dff5f(0xac)]()[_0x3dff5f(0xf1)](_0x36144d[_0x3dff5f(0xed)],_0x36144d['configPath'],_0x36144d['cliConfig']),await BrowserstackCLI[_0x3dff5f(0xac)]()[_0x3dff5f(0xff)]();}},a122_0x49322f={};a122_0x49322f['convertW3CToJsonWire']=convertW3CToJsonWire,a122_0x49322f['getModifiedConfigFromCLI']=getModifiedConfigFromCLI,a122_0x49322f[a122_0x573309(0x115)]=generatePlaywrightUrl,a122_0x49322f['getBrowserFromCaps']=getBrowserFromCaps,a122_0x49322f['isPlaywrightAvailable']=isPlaywrightAvailable,a122_0x49322f[a122_0x573309(0xe6)]=getPlaywrightBrowserType,a122_0x49322f[a122_0x573309(0xc8)]=getPlaywrightModulePath,a122_0x49322f[a122_0x573309(0xc1)]=getBrowserTypePath,a122_0x49322f[a122_0x573309(0xc4)]=importFileFromPWCore,a122_0x49322f['checkPwandBootstrapCli']=checkPwandBootstrapCli,module['exports']=a122_0x49322f;function a122_0x46aa(){const _0x295bf6=['browserstack.accessibilityOptions.wcagVersion','__launchCaps','../bin/v2/browserstackCLI','\x20flow','ukmbQ','tzfFT','OsAJe','bqWIa','OCFwr','wrXnj','parse','Requesting\x20modified\x20Playwright\x20config\x20from\x20gRPC\x20for\x20cucumberjs-pw','debug','UbzZn','winstonLogger','FRAMEWORKS','nPAgL','BwjKo','generatePlaywrightUrl','util','capabilities','GrpcClient\x20not\x20available,\x20skipping\x20modified\x20config\x20request','browserName','getPlaywrightModulePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','./helper','path','getInstance','Unable\x20to\x20merge\x20accessibility\x20capabilities\x20into\x20Playwright\x20URL\x20caps:\x20','AKBWg','env','JjaTw','Could\x20not\x20import\x20GrpcClient:\x20','BROWSERSTACK_PRODUCT_MAP','format','YLmmT','VidJl','Lddwa','join','entries','peBFb','Playwright\x20not\x20available:\x20','1992228FGEtYh','getBrowserTypePath\x20is\x20deprecated,\x20use\x20importFileFromPWCore\x20instead','__accessibilityOptions','getConfig','rySgB','Converted\x20W3C\x20caps\x20to\x20JSONWire:\x20','getBrowserTypePath','QEAxx','hmZac','importFileFromPWCore','OwZVf','./w3cMapping','1iUnnpG','getPlaywrightModulePath','BrowserType','LzkXy','projects','Error\x20getting\x20modified\x20config\x20from\x20gRPC:\x20','ymrXO','1609857Enrmjb','browserType.js','../bin/utils/constants','../bin/v2/grpcClient','187564HKpnDF','iaopk','platformCaps','324016VStloL','__platformCaps','cucumberjs-pw','WqUHF','workers','isArray','error','PLAYWRIGHT','vZEkk','Detected\x20Playwright\x20version\x20','browserstack.accessibilityOptions.authToken','2010624HGSYVJ','PSCCO','stringify','BS_A11Y_JWT','No\x20usable\x20capabilities\x20found\x20in\x20modified\x20config\x20response','getPlaywrightUrl','getPlaywrightBrowserType','35JFKcOy','uJELN','../bin/v2/cliUtils','zfkGg','jCAuI','browserstack.accessibilityOptions.scannerVersion','config','bstack:options','74398DvXiza','length','setBrowserstackConfig','363777MaREyk','No\x20modified\x20config\x20received\x20from\x20gRPC','WTufF','KCBvL','browserstack.buildProductMap','10ApJmXD','ZCkkU','message','ZihgW','fhZrJ','framework','jlEWZ','lib','bootstrap','browserstack.testhubBuildUuid','client','SlnWf'];a122_0x46aa=function(){return _0x295bf6;};return a122_0x46aa();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x11e83d=a123_0x1d8a;function a123_0x2324(){const _0x5e12c0=['getProcessId','1873486rJleXy','./test-observability/constants','\x20]\x20','./globals','21396jeVXOO','2480514fJRmLm','1243717vskEcV','oDXtA','Vyxza','TEST_REPORTING_ANALYTICS','debug','log','7386050YSSHXg','worker_threads','242262maqDUW','8ACxzfN','true','aIUEj','795mvYKJh','11674404wYpwoh','getGlobal','BROWSERSTACK_TEST_REPORTING_DEBUG','BROWSERSTACK_OBSERVABILITY_DEBUG','pid','./logger','browserstackTestName','threadId','env','../bin/utils/constants','WtGyA','toISOString','][\x20'];a123_0x2324=function(){return _0x5e12c0;};return a123_0x2324();}function a123_0x1d8a(_0x36485d,_0x31bfe2){const _0x232414=a123_0x2324();return a123_0x1d8a=function(_0x1d8a15,_0x1c6c2f){_0x1d8a15=_0x1d8a15-0x1f4;let _0x185c70=_0x232414[_0x1d8a15];return _0x185c70;},a123_0x1d8a(_0x36485d,_0x31bfe2);}(function(_0x13d485,_0x1c9282){const _0x52598b=a123_0x1d8a,_0x10215e=_0x13d485();while(!![]){try{const _0x87c2e=parseInt(_0x52598b(0x202))/0x1+parseInt(_0x52598b(0x1fc))/0x2+-parseInt(_0x52598b(0x201))/0x3+-parseInt(_0x52598b(0x200))/0x4*(parseInt(_0x52598b(0x20e))/0x5)+-parseInt(_0x52598b(0x20a))/0x6+-parseInt(_0x52598b(0x208))/0x7*(parseInt(_0x52598b(0x20b))/0x8)+parseInt(_0x52598b(0x20f))/0x9;if(_0x87c2e===_0x1c9282)break;else _0x10215e['push'](_0x10215e['shift']());}catch(_0x7d9d6a){_0x10215e['push'](_0x10215e['shift']());}}}(a123_0x2324,0xac0f8));const worker=require(a123_0x11e83d(0x209)),{fileLogger}=require(a123_0x11e83d(0x214)),{consoleHolder}=require(a123_0x11e83d(0x1fd)),globals=require(a123_0x11e83d(0x1ff)),constants=require(a123_0x11e83d(0x1f7));exports[a123_0x11e83d(0x1fb)]=()=>{const _0x224650=a123_0x11e83d;return process[_0x224650(0x213)]+'-'+worker[_0x224650(0x1f5)];},exports['getTestName']=()=>{const _0x366782=a123_0x11e83d,_0x1b4e96={};_0x1b4e96[_0x366782(0x1f8)]=_0x366782(0x1f4);const _0xb02eb4=_0x1b4e96;return globals[_0x366782(0x210)](_0xb02eb4[_0x366782(0x1f8)]);},exports['sleep']=(_0x402375=0x64)=>new Promise(_0x2d71c0=>setTimeout(_0x2d71c0,_0x402375)),exports[a123_0x11e83d(0x206)]=_0x2ad12d=>{const _0x16304e=a123_0x11e83d,_0x54d86b={};_0x54d86b[_0x16304e(0x20d)]=function(_0x4262f3,_0xb4eaa4){return _0x4262f3===_0xb4eaa4;},_0x54d86b[_0x16304e(0x203)]=_0x16304e(0x20c),_0x54d86b[_0x16304e(0x204)]=function(_0x5f2a8d,_0x40e45d){return _0x5f2a8d===_0x40e45d;},_0x54d86b['MItpc']=function(_0x14bcf9,_0x2320e7){return _0x14bcf9===_0x2320e7;};const _0x419506=_0x54d86b;fileLogger[_0x16304e(0x206)]('['+new Date()['toISOString']()+_0x16304e(0x1fa)+constants[_0x16304e(0x205)]+_0x16304e(0x1fe)+_0x2ad12d),(_0x419506[_0x16304e(0x20d)](process[_0x16304e(0x1f6)][_0x16304e(0x211)],_0x419506[_0x16304e(0x203)])||_0x419506[_0x16304e(0x204)](process[_0x16304e(0x1f6)][_0x16304e(0x211)],'1')||_0x419506['MItpc'](process['env'][_0x16304e(0x212)],_0x419506[_0x16304e(0x203)])||_0x419506['aIUEj'](process[_0x16304e(0x1f6)][_0x16304e(0x212)],'1'))&&consoleHolder[_0x16304e(0x207)]('\x0a['+new Date()[_0x16304e(0x1f9)]()+_0x16304e(0x1fa)+constants['TEST_REPORTING_ANALYTICS']+_0x16304e(0x1fe)+_0x2ad12d+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0xed1e67=a124_0x3911;function a124_0x3911(_0x31a24c,_0x59e013){const _0x5eaf35=a124_0x5eaf();return a124_0x3911=function(_0x391142,_0x3be170){_0x391142=_0x391142-0x149;let _0xc76aaa=_0x5eaf35[_0x391142];return _0xc76aaa;},a124_0x3911(_0x31a24c,_0x59e013);}(function(_0x44da47,_0x372843){const _0xde3d61=a124_0x3911,_0x3e2e5b=_0x44da47();while(!![]){try{const _0x4bf018=parseInt(_0xde3d61(0x14f))/0x1+parseInt(_0xde3d61(0x175))/0x2+parseInt(_0xde3d61(0x152))/0x3*(parseInt(_0xde3d61(0x17c))/0x4)+-parseInt(_0xde3d61(0x158))/0x5+parseInt(_0xde3d61(0x15b))/0x6*(-parseInt(_0xde3d61(0x15a))/0x7)+-parseInt(_0xde3d61(0x14c))/0x8+parseInt(_0xde3d61(0x172))/0x9*(parseInt(_0xde3d61(0x155))/0xa);if(_0x4bf018===_0x372843)break;else _0x3e2e5b['push'](_0x3e2e5b['shift']());}catch(_0x4bf3ff){_0x3e2e5b['push'](_0x3e2e5b['shift']());}}}(a124_0x5eaf,0x5535b));const http=require('http'),https=require(a124_0xed1e67(0x15d)),monkeypatch=require(a124_0xed1e67(0x168));function spy(_0x5353a8){const _0xe97a63=a124_0xed1e67,_0x4ffefc={'suuuL':function(_0x195133,_0x31c091){return _0x195133 instanceof _0x31c091;},'OWDNa':function(_0x2fc7b8,_0x216695){return _0x2fc7b8===_0x216695;},'sdxKo':_0xe97a63(0x178),'EzZEQ':function(_0x66ab71,_0xa408c0,_0x3230e6){return _0x66ab71(_0xa408c0,_0x3230e6);},'FrGtr':'error','EOYNH':function(_0x5d6da,_0x3cad09){return _0x5d6da-_0x3cad09;},'mWWlY':function(_0x55551e,..._0x25609a){return _0x55551e(..._0x25609a);},'HQyvS':_0xe97a63(0x15c),'gUWAK':_0xe97a63(0x17a),'ljLEA':function(_0x5c4916,_0x2dddee,_0x2062d8,_0x5948da){return _0x5c4916(_0x2dddee,_0x2062d8,_0x5948da);},'dhifI':_0xe97a63(0x14b),'VmvBN':_0xe97a63(0x16c),'omoNl':function(_0x2d1a63,_0x19bc75,_0x2331fd,_0x5b3ad9){return _0x2d1a63(_0x19bc75,_0x2331fd,_0x5b3ad9);}},_0x3cd04f=function(){const _0x3cb6b0=_0xe97a63,_0x30a94b={'yCNUr':function(_0x89668a,_0x46e56b){const _0x119c18=a124_0x3911;return _0x4ffefc[_0x119c18(0x150)](_0x89668a,_0x46e56b);},'wvZvV':function(_0x58e3a8,_0x14ea0f,_0x4c2148){const _0x2f598c=a124_0x3911;return _0x4ffefc[_0x2f598c(0x16e)](_0x58e3a8,_0x14ea0f,_0x4c2148);},'IoExN':_0x4ffefc[_0x3cb6b0(0x14e)],'YPjaB':function(_0x40f2e9,..._0xf9dc25){const _0x3cf973=_0x3cb6b0;return _0x4ffefc[_0x3cf973(0x15e)](_0x40f2e9,..._0xf9dc25);}},_0x1c5380=arguments[0x0],_0x46e09b=Array[_0x3cb6b0(0x171)][_0x3cb6b0(0x161)][_0x3cb6b0(0x156)](arguments,0x1),_0x344f7f=_0x1c5380['apply'](this,_0x46e09b);let _0x49ef13=Date[_0x3cb6b0(0x164)](),_0x50ea25;const _0x35e277={};_0x46e09b[_0x3cb6b0(0x14d)](_0x208d67=>{const _0x2edbcc=_0x3cb6b0;if(_0x4ffefc[_0x2edbcc(0x14a)](_0x208d67,URL)){const _0x45310e={};_0x45310e[_0x2edbcc(0x17b)]=_0x208d67,Object['assign'](_0x35e277,_0x45310e);}else _0x4ffefc[_0x2edbcc(0x163)](typeof _0x208d67,_0x4ffefc['sdxKo'])&&Object[_0x2edbcc(0x157)](_0x35e277,_0x208d67);});const _0x379f43=_0x3e12a5=>{const _0x344a5e=_0x3cb6b0,_0x17ec39={};_0x17ec39['host']=_0x35e277[_0x344a5e(0x165)]||_0x35e277[_0x344a5e(0x176)]||_0x35e277[_0x344a5e(0x17b)]&&(_0x35e277['url'][_0x344a5e(0x165)]||_0x35e277['url'][_0x344a5e(0x176)]),_0x17ec39[_0x344a5e(0x16f)]=_0x35e277['path']||_0x35e277[_0x344a5e(0x17b)]&&_0x35e277[_0x344a5e(0x17b)][_0x344a5e(0x16b)],_0x17ec39[_0x344a5e(0x149)]=_0x35e277['method'],_0x17ec39[_0x344a5e(0x159)]=_0x35e277['headers'],_0x4ffefc[_0x344a5e(0x16e)](_0x5353a8,_0x3e12a5,_0x17ec39);};return _0x344f7f[_0x3cb6b0(0x167)](_0x4ffefc[_0x3cb6b0(0x16d)],_0xa6fd81=>{const _0xe98d31=_0x3cb6b0,_0x56083a=_0x30a94b[_0xe98d31(0x154)](Date[_0xe98d31(0x164)](),_0x49ef13),_0x5a023b={};_0x5a023b['hostname']=_0x35e277[_0xe98d31(0x165)]||_0x35e277[_0xe98d31(0x176)]||_0x35e277[_0xe98d31(0x17b)]&&(_0x35e277[_0xe98d31(0x17b)][_0xe98d31(0x165)]||_0x35e277[_0xe98d31(0x17b)]['hostname']),_0x5a023b[_0xe98d31(0x16f)]=_0x35e277[_0xe98d31(0x16f)]||_0x35e277[_0xe98d31(0x17b)]&&_0x35e277[_0xe98d31(0x17b)][_0xe98d31(0x16b)],_0x5a023b['method']=_0x35e277['method'],_0x5a023b['headers']=_0x35e277[_0xe98d31(0x159)],_0x5a023b[_0xe98d31(0x16a)]=_0xa6fd81[_0xe98d31(0x151)],_0x5a023b[_0xe98d31(0x166)]=_0x56083a,_0x30a94b[_0xe98d31(0x179)](_0x5353a8,null,_0x5a023b),_0x50ea25[_0xe98d31(0x162)](_0x30a94b[_0xe98d31(0x153)],_0x379f43);}),_0x344f7f['on'](_0x4ffefc['gUWAK'],_0x3ba200=>{const _0x39f1e3=_0x3cb6b0;_0x50ea25=_0x3ba200,_0x3ba200[_0x39f1e3(0x167)](_0x4ffefc['FrGtr'],_0x379f43);}),_0x4ffefc[_0x3cb6b0(0x15f)](monkeypatch,_0x344f7f,_0x4ffefc[_0x3cb6b0(0x174)],(_0x26474b,..._0xd5b31b)=>{const _0x46a2d3=_0x3cb6b0;_0x49ef13=Date[_0x46a2d3(0x164)](),_0x30a94b[_0x46a2d3(0x169)](_0x26474b,..._0xd5b31b);}),_0x344f7f;};_0x4ffefc[_0xe97a63(0x15f)](monkeypatch,http,_0x4ffefc[_0xe97a63(0x160)],_0x3cd04f),_0x4ffefc[_0xe97a63(0x177)](monkeypatch,https,_0x4ffefc[_0xe97a63(0x160)],_0x3cd04f);}function restore(){const _0x270525=a124_0xed1e67;http[_0x270525(0x16c)][_0x270525(0x170)](),https[_0x270525(0x16c)][_0x270525(0x170)]();}function a124_0x5eaf(){const _0x5ecb01=['wvZvV','socket','url','196004BuTiQR','method','suuuL','end','2754984kigjNt','forEach','FrGtr','665569wSZMND','EOYNH','statusCode','9PTpigE','IoExN','yCNUr','10OMIJge','call','assign','2622370uHPGRz','headers','38087ykcfyq','708sqZqCQ','response','https','mWWlY','ljLEA','VmvBN','slice','removeListener','OWDNa','now','host','duration_ms','once','monkeypatch','YPjaB','status_code','pathname','request','HQyvS','EzZEQ','path','unpatch','prototype','5342751RFVojt','restore','dhifI','907386GQPRhF','hostname','omoNl','object'];a124_0x5eaf=function(){return _0x5ecb01;};return a124_0x5eaf();}const a124_0x4d343b={};a124_0x4d343b['spy']=spy,a124_0x4d343b[a124_0xed1e67(0x173)]=restore,module['exports']=a124_0x4d343b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x4db4d9=a125_0x4df6;function a125_0x9468(){const _0x35518c=['./performance/performance-tester','410226lpGoKA','measureWrapper','http','keepAliveMsecs','globalAgent','prototype','keepAlive','4734996CUcWJs','./performance/constants','Agent','tcAtC','exports','KEEP_ALIVE','133wHgkDd','1666144oPXgQB','HnZZs','1743321jVZvlS','oDMuC','https:','protocol','9OdYwwR','hasOwnProperty','72441787QVxltM','3sDpptj','https','16980640rxflWM','XuTCP','request','fdFNH','FJvuB','DrkbW','3606938rYildn','5tnkmTN'];a125_0x9468=function(){return _0x35518c;};return a125_0x9468();}(function(_0x33b152,_0x5ba1b7){const _0xe85602=a125_0x4df6,_0x355378=_0x33b152();while(!![]){try{const _0x1fefae=parseInt(_0xe85602(0x149))/0x1+parseInt(_0xe85602(0x136))/0x2*(parseInt(_0xe85602(0x150))/0x3)+-parseInt(_0xe85602(0x140))/0x4*(-parseInt(_0xe85602(0x137))/0x5)+parseInt(_0xe85602(0x139))/0x6*(parseInt(_0xe85602(0x146))/0x7)+parseInt(_0xe85602(0x147))/0x8*(-parseInt(_0xe85602(0x14d))/0x9)+parseInt(_0xe85602(0x152))/0xa+-parseInt(_0xe85602(0x14f))/0xb;if(_0x1fefae===_0x5ba1b7)break;else _0x355378['push'](_0x355378['shift']());}catch(_0x577bf5){_0x355378['push'](_0x355378['shift']());}}}(a125_0x9468,0xe3f87));function a125_0x4df6(_0x513ed4,_0x555795){const _0x9468ac=a125_0x9468();return a125_0x4df6=function(_0x4df6a4,_0xe6061c){_0x4df6a4=_0x4df6a4-0x131;let _0x9fcfca=_0x9468ac[_0x4df6a4];return _0x9fcfca;},a125_0x4df6(_0x513ed4,_0x555795);}const PerformanceTester=require(a125_0x4db4d9(0x138)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a125_0x4db4d9(0x141));module[a125_0x4db4d9(0x144)]=PerformanceTester[a125_0x4db4d9(0x13a)](PerformanceEvents[a125_0x4db4d9(0x145)],function(){const _0x39657a=a125_0x4db4d9,_0x3bab41={'Ymvyf':function(_0x3267fe,_0x54c9f2){return _0x3267fe===_0x54c9f2;},'oDMuC':_0x39657a(0x14b),'HnZZs':'agent','DrkbW':function(_0x464cfe,_0xacb7b,_0x41de16){return _0x464cfe(_0xacb7b,_0x41de16);},'jWoOd':function(_0x32e1e9,_0x9f5e99){return _0x32e1e9(_0x9f5e99);},'tcAtC':_0x39657a(0x13b),'fdFNH':_0x39657a(0x151),'XuTCP':function(_0x420a2b,_0x4b6e58){return _0x420a2b*_0x4b6e58;},'FJvuB':_0x39657a(0x13f)},_0x1e1e80=_0x3bab41['jWoOd'](require,_0x3bab41[_0x39657a(0x143)]),_0x2dbee7=_0x3bab41['jWoOd'](require,_0x3bab41[_0x39657a(0x133)]),_0x2a6379=_0x3bab41[_0x39657a(0x131)](0x1e,0x3e8);if(_0x1e1e80[_0x39657a(0x13d)]&&Object[_0x39657a(0x13e)][_0x39657a(0x14e)]['call'](_0x1e1e80[_0x39657a(0x13d)],_0x3bab41[_0x39657a(0x134)]))_0x1e1e80[_0x39657a(0x13d)][_0x39657a(0x13f)]=!![],_0x2dbee7[_0x39657a(0x13d)]['keepAlive']=!![],_0x1e1e80[_0x39657a(0x13d)][_0x39657a(0x13c)]=_0x2a6379,_0x2dbee7[_0x39657a(0x13d)][_0x39657a(0x13c)]=_0x2a6379;else{const _0x4eb6e3={};_0x4eb6e3['keepAlive']=!![],_0x4eb6e3[_0x39657a(0x13c)]=_0x2a6379;const _0x1a6390=new _0x1e1e80['Agent'](_0x4eb6e3),_0x324f22={};_0x324f22[_0x39657a(0x13f)]=!![],_0x324f22[_0x39657a(0x13c)]=_0x2a6379;const _0x7744f4=new _0x2dbee7[(_0x39657a(0x142))](_0x324f22),_0x4f2dc7=_0x1e1e80[_0x39657a(0x132)],_0x418b3d=_0x2dbee7[_0x39657a(0x132)];_0x1e1e80[_0x39657a(0x132)]=function(_0x3b17e3,_0x5a08b0){const _0x450d3f=_0x39657a;if(_0x3bab41['Ymvyf'](_0x3b17e3[_0x450d3f(0x14c)],_0x3bab41[_0x450d3f(0x14a)]))return _0x3b17e3[_0x3bab41[_0x450d3f(0x148)]]=_0x7744f4,_0x3bab41['DrkbW'](_0x418b3d,_0x3b17e3,_0x5a08b0);return _0x3b17e3[_0x3bab41[_0x450d3f(0x148)]]=_0x1a6390,_0x3bab41[_0x450d3f(0x135)](_0x4f2dc7,_0x3b17e3,_0x5a08b0);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x3885c2=a126_0x5037;(function(_0x17d370,_0x34f4c9){const _0x337f76=a126_0x5037,_0x5e0595=_0x17d370();while(!![]){try{const _0x41fe3b=-parseInt(_0x337f76(0x137))/0x1*(parseInt(_0x337f76(0x140))/0x2)+parseInt(_0x337f76(0x13c))/0x3+-parseInt(_0x337f76(0x154))/0x4+parseInt(_0x337f76(0x159))/0x5+-parseInt(_0x337f76(0x14e))/0x6*(-parseInt(_0x337f76(0x14c))/0x7)+-parseInt(_0x337f76(0x152))/0x8*(-parseInt(_0x337f76(0x149))/0x9)+-parseInt(_0x337f76(0x158))/0xa*(parseInt(_0x337f76(0x143))/0xb);if(_0x41fe3b===_0x34f4c9)break;else _0x5e0595['push'](_0x5e0595['shift']());}catch(_0x2a030e){_0x5e0595['push'](_0x5e0595['shift']());}}}(a126_0x1dba,0x5ed89));const path=require(a126_0x3885c2(0x13e)),{logDir}=require(a126_0x3885c2(0x150)),a126_0x14c0d4={};a126_0x14c0d4[a126_0x3885c2(0x151)]=a126_0x3885c2(0x146),a126_0x14c0d4[a126_0x3885c2(0x13b)]=a126_0x3885c2(0x13f),a126_0x14c0d4[a126_0x3885c2(0x14f)]=a126_0x3885c2(0x153),a126_0x14c0d4['CODECEPT_CUCUMBER']=a126_0x3885c2(0x13d),a126_0x14c0d4[a126_0x3885c2(0x133)]=a126_0x3885c2(0x145),a126_0x14c0d4[a126_0x3885c2(0x141)]=a126_0x3885c2(0x142),module[a126_0x3885c2(0x148)]={'consoleHolder':Object[a126_0x3885c2(0x155)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a126_0x3885c2(0x157),'OBSERVABILITY_UPLOAD_API_URL':a126_0x3885c2(0x14b),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a126_0x3885c2(0x13a),'SCREENSHOT_ENDPOINT':a126_0x3885c2(0x138),'UPLOAD_ATTACHMENT_ENDPOINT':a126_0x3885c2(0x144),'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[a126_0x3885c2(0x139)](logDir,a126_0x3885c2(0x132)),'FRAMEWORKS':a126_0x14c0d4};function a126_0x5037(_0x376589,_0xead75f){const _0x1dba07=a126_0x1dba();return a126_0x5037=function(_0x50375e,_0x5b404d){_0x50375e=_0x50375e-0x132;let _0x3d2a7d=_0x1dba07[_0x50375e];return _0x3d2a7d;},a126_0x5037(_0x376589,_0xead75f);}const _env=(process['env'][a126_0x3885c2(0x134)]||a126_0x3885c2(0x14d))['toLowerCase']();function a126_0x1dba(){const _0x5a813a=['api/v1/screenshots','join','api/v1/batch','MOCHA','2323965trubFb','codeceptjs-cucumber','path','mocha','96730UDLXQF','CUCUMBER','cucumber','14872627dOoKrB','upload-attachments','jest','Playwright','OBSERVABILITY_UPLOAD_API_URL','exports','9VEeyfe','API_URL','https://upload-observability.browserstack.com','14hZWZIM','prod','2118732GnYTqk','CODECEPT','../logger','PLAYWRIGHT','2213712FZyoXM','codeceptjs','396772sDXqhl','assign','https://collector-observability-preprod.bsstag.com','https://collector-observability.browserstack.com','10oBPpRk','2828880DcFXeO','.obs_test_details','JEST','BROWSERSTACK_ENV','https://collector-observability-devtestops.bsstag.com','https://upload-observability-preprod.bsstag.com','10Olfmpt'];a126_0x1dba=function(){return _0x5a813a;};return a126_0x1dba();}if(_env==='staging'||_env==='stag')module['exports']['API_URL']=a126_0x3885c2(0x135),module[a126_0x3885c2(0x148)][a126_0x3885c2(0x147)]='https://upload-observability-devtestops-ssi.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(module['exports'][a126_0x3885c2(0x14a)]=a126_0x3885c2(0x156),module[a126_0x3885c2(0x148)][a126_0x3885c2(0x147)]=a126_0x3885c2(0x136));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127_0x4fc7e0=a127_0x24d5;function a127_0x2438(){const _0x17bdc5=['6281238KOANBb','LVRvG','frameworkVersion','exports','USER_CONFIG_FOR_REPORTING','CREDENTIALS_FOR_CRASH_REPORTING','CErRh','.\x20Args\x20-\x20','QaXrm','KGDdW','GtCkf','cIOND','826aMdFsa','captureError','Bhpqh','username','liCtB','1417066sIvPDy','Started\x20::\x20','379viASGo','.\x20Error\x20-\x20','accessKey','gdhEg','5184717HLZBPZ','initialize','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','/api/v1/analytics','key','includes','o11yClassErrorHandler','depth','Error\x20in\x20executing\x20','catch','Content-Type',',\x20PID\x20-\x20','env','getConfig','setCredentials','ZqeXS','inspect','util',',\x20Argument\x20-\x20','timerify','fYTjc','application/json','1501768jtxcSO','XGPcf','Cvmfg','frameworkDetails','CrashReporter','function','BROWSERSTACK_O11Y_PERF_MEASUREMENT','toString','forEach','name','getCredentials','../helper','userConfig','password','gWlqW','credentials','DquQv','auth','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','pid','5mTDsJQ','o11yErrorHandler','length','3003vTmUeP','UtFlm','getPerformance','QdbGV','true','toLowerCase','WLHaX','PoAbn','hIFLM','vkgpA','setAllDetails','format','frameworkName','POST','47140nUTTlq','keys','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','yJJaH','[Crash_Report_Upload]\x20Success\x20response:\x20','kGKBe','recursivelyDeletePIIKeysFromObject','stringify','setConfigDetails','apply','parse','sDBBw','defineProperty','constructor','getOwnPropertyNames','72nTVhnc','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','object','4sVPWiS','getFramework','RUidP','headers','11010396kpZZvO','WhQXL','uploadCrashReport','ajsfM','stack','13maErTv','yUIba','BS_TESTOPS_BUILD_HASHED_ID','call','\x20--\x20','setFrameworkDetails'];a127_0x2438=function(){return _0x17bdc5;};return a127_0x2438();}(function(_0x24a1d2,_0x5e0a2e){const _0x6b7a3d=a127_0x24d5,_0x58ff93=_0x24a1d2();while(!![]){try{const _0xd51f0c=-parseInt(_0x6b7a3d(0x200))/0x1*(parseInt(_0x6b7a3d(0x1f9))/0x2)+-parseInt(_0x6b7a3d(0x204))/0x3*(-parseInt(_0x6b7a3d(0x1de))/0x4)+parseInt(_0x6b7a3d(0x1bb))/0x5*(parseInt(_0x6b7a3d(0x1ed))/0x6)+parseInt(_0x6b7a3d(0x1fe))/0x7+parseInt(_0x6b7a3d(0x21a))/0x8*(-parseInt(_0x6b7a3d(0x1db))/0x9)+-parseInt(_0x6b7a3d(0x1cc))/0xa*(parseInt(_0x6b7a3d(0x1be))/0xb)+parseInt(_0x6b7a3d(0x1e2))/0xc*(parseInt(_0x6b7a3d(0x1e7))/0xd);if(_0xd51f0c===_0x5e0a2e)break;else _0x58ff93['push'](_0x58ff93['shift']());}catch(_0x25f46d){_0x58ff93['push'](_0x58ff93['shift']());}}}(a127_0x2438,0xe7e6a));const util=require(a127_0x4fc7e0(0x215)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a127_0x4fc7e0(0x1b2)),o11yErrorHandler=(_0x2c4f2c,_0x4fec3e='',_0x1eed1a=[''],_0x105e70=![])=>{const _0x5315bb={'GhvGt':function(_0x379322,_0x2474fe){return _0x379322(_0x2474fe);},'yUIba':function(_0x9364ec,_0x13044b,_0x5abc56){return _0x9364ec(_0x13044b,_0x5abc56);},'WhQXL':function(_0x5905c1,_0x10142e){return _0x5905c1(_0x10142e);},'nJbDw':function(_0x236422,_0x16db65){return _0x236422 instanceof _0x16db65;},'Csvbt':function(_0x44b903,_0x3abaf7,_0x573658,_0x5592dd,_0x244a78){return _0x44b903(_0x3abaf7,_0x573658,_0x5592dd,_0x244a78);}};return function(..._0x5c276a){const _0xf146d4=a127_0x24d5;try{let _0x31b324=_0x2c4f2c;process[_0xf146d4(0x210)][_0xf146d4(0x220)]&&(_0x31b324=PerformanceTester[_0xf146d4(0x1c0)]()[_0xf146d4(0x217)](_0x31b324));_0x105e70&&_0x5315bb['GhvGt'](trace,_0xf146d4(0x1ff)+_0x4fec3e+_0xf146d4(0x20f)+process[_0xf146d4(0x1ba)]+_0xf146d4(0x216)+_0x5315bb[_0xf146d4(0x1e8)](nestedKeyValue,arguments[0x0],_0x1eed1a));const _0x3b79c2=_0x31b324[_0xf146d4(0x1d5)](null,arguments);_0x105e70&&_0x5315bb[_0xf146d4(0x1e3)](trace,'Finished\x20::\x20'+_0x4fec3e+_0xf146d4(0x20f)+process[_0xf146d4(0x1ba)]+_0xf146d4(0x216)+_0x5315bb[_0xf146d4(0x1e8)](nestedKeyValue,arguments[0x0],_0x1eed1a));if(_0x5315bb['nJbDw'](_0x3b79c2,Promise))return _0x3b79c2[_0xf146d4(0x20d)](_0x251fed=>processError(_0x251fed,_0x2c4f2c,_0x5c276a,_0x4fec3e));return _0x3b79c2;}catch(_0x488f6b){_0x5315bb['Csvbt'](processError,_0x488f6b,_0x2c4f2c,_0x5c276a,_0x4fec3e);}};},o11yClassErrorHandler=(_0x474ef8,_0x1dba32,_0xc5fd32='')=>{const _0x304f27=a127_0x4fc7e0,_0x16e693={'cIOND':function(_0x568f2b,_0x3752c7){return _0x568f2b instanceof _0x3752c7;},'QaXrm':function(_0x3fbb89,_0x154065,_0x50c3d6,_0x7463a0,_0x3bdb2b){return _0x3fbb89(_0x154065,_0x50c3d6,_0x7463a0,_0x3bdb2b);},'hIFLM':function(_0x129f9d,_0x190d06){return _0x129f9d===_0x190d06;},'gdhEg':_0x304f27(0x21f),'XGPcf':function(_0x1b57fa,_0x4eb8ec){return _0x1b57fa!==_0x4eb8ec;},'ajsfM':_0x304f27(0x1d9),'WLHaX':function(_0x2e27a5,_0x59fa3b){return _0x2e27a5<_0x59fa3b;}},_0x5b2670=_0x474ef8['prototype'];if(_0x16e693[_0x304f27(0x1c4)](Object[_0x304f27(0x1da)](_0x5b2670)[_0x304f27(0x1bd)],0x2))return _0x474ef8;return Object['getOwnPropertyNames'](_0x5b2670)[_0x304f27(0x1af)](_0x24f82f=>{const _0x8f6396=_0x304f27,_0x1ca247={'yJJaH':function(_0x3a8de5,_0x4d5bf7){const _0x5d54d4=a127_0x24d5;return _0x16e693[_0x5d54d4(0x1f8)](_0x3a8de5,_0x4d5bf7);},'GtCkf':function(_0x3fd320,_0x51a6e8,_0x14810a,_0x14923e,_0x48ec78){const _0x383bec=a127_0x24d5;return _0x16e693[_0x383bec(0x1f5)](_0x3fd320,_0x51a6e8,_0x14810a,_0x14923e,_0x48ec78);}};if(!(_0x1dba32&&_0x1dba32[_0x8f6396(0x209)](_0x24f82f)))return;const _0x1c2948=_0x5b2670[_0x24f82f];_0x16e693[_0x8f6396(0x1c6)](typeof _0x1c2948,_0x16e693[_0x8f6396(0x203)])&&_0x16e693[_0x8f6396(0x21b)](_0x24f82f,_0x16e693[_0x8f6396(0x1e5)])&&Object[_0x8f6396(0x1d8)](_0x5b2670,_0x24f82f,{'writable':!![],'value':function(..._0x25e4e9){const _0x3186b9=_0x8f6396;try{const _0x115ec5=(process[_0x3186b9(0x210)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x3186b9(0x1c0)]()[_0x3186b9(0x217)](_0x1c2948):_0x1c2948)[_0x3186b9(0x1ea)](this,..._0x25e4e9);if(_0x1ca247[_0x3186b9(0x1cf)](_0x115ec5,Promise))return _0x115ec5[_0x3186b9(0x20d)](_0x208741=>processError(_0x208741,_0x1c2948,_0x25e4e9,_0xc5fd32));return _0x115ec5;}catch(_0x1ce196){_0x1ca247[_0x3186b9(0x1f7)](processError,_0x1ce196,_0x1c2948,_0x25e4e9,_0xc5fd32);}}});}),_0x474ef8;};function a127_0x24d5(_0x297944,_0x3b05b4){const _0x243806=a127_0x2438();return a127_0x24d5=function(_0x24d57d,_0x51a07e){_0x24d57d=_0x24d57d-0x1ae;let _0x3fadb9=_0x243806[_0x24d57d];return _0x3fadb9;},a127_0x24d5(_0x297944,_0x3b05b4);}function processError(_0x5a00e9,_0x5d0e8d,_0x2243d4,_0x4d7caa){const _0xd594b1=a127_0x4fc7e0,_0x3eb90a={'jJbkq':function(_0xfcdb67,_0x5af761){return _0xfcdb67(_0x5af761);}};_0x3eb90a['jJbkq'](debug,_0xd594b1(0x20c)+_0x5d0e8d[_0xd594b1(0x1b0)]+_0xd594b1(0x1eb)+_0x4d7caa+'.\x20Error\x20-\x20'+util[_0xd594b1(0x1c9)](_0x5a00e9)+'.\x20Args\x20-\x20'+_0x2243d4+'.'),PerformanceTester[_0xd594b1(0x1fa)](_0x5a00e9);let _0x122212;try{_0x122212=JSON[_0xd594b1(0x1d3)](_0x2243d4);}catch(_0x195c71){const _0x9a2273={};_0x9a2273[_0xd594b1(0x20b)]=0x2,_0x122212=util[_0xd594b1(0x214)](_0x2243d4,_0x9a2273);}CrashReporter[_0xd594b1(0x1e4)](_0xd594b1(0x20c)+_0x5d0e8d[_0xd594b1(0x1b0)]+_0xd594b1(0x1eb)+_0x4d7caa+_0xd594b1(0x201)+_0x5a00e9+_0xd594b1(0x1f4)+_0x122212+'.',_0x5a00e9&&_0x5a00e9[_0xd594b1(0x1e6)]);}class CrashReporter{static ['userConfig']={};static [a127_0x4fc7e0(0x1b6)];static [a127_0x4fc7e0(0x21d)]={};static[a127_0x4fc7e0(0x205)](_0xb16e20,_0x567626,_0x4b9537=null){const _0x3e8598=a127_0x4fc7e0,_0x365ab9={'sDBBw':function(_0x30f532,_0x303a0d){return _0x30f532(_0x303a0d);},'AaKZJ':function(_0x52a16f,_0x2af767){return _0x52a16f(_0x2af767);}},_0x266192=_0xb16e20[_0x3e8598(0x1ca)],_0x4fc53e=_0xb16e20[_0x3e8598(0x1ef)];!_0x4b9537&&(_0x4b9537=_0x365ab9[_0x3e8598(0x1d7)](getBrowserStackConfig,_0x266192));!_0x4fc53e&&_0x365ab9[_0x3e8598(0x1d7)](getFrameworkVersion,_0x266192);const _0x794d37={};_0x794d37['frameworkName']=_0x266192,_0x794d37[_0x3e8598(0x1ef)]=_0x4fc53e,this['setAllDetails'](_0x794d37,_0x567626,_0x365ab9['AaKZJ'](getUserCredentials,_0x4b9537));}static[a127_0x4fc7e0(0x212)](_0x3d4cd7,_0x15e463){const _0x20c179=a127_0x4fc7e0,_0x14d0f8={};_0x14d0f8['username']=_0x3d4cd7,_0x14d0f8[_0x20c179(0x202)]=_0x15e463,this['credentials']=_0x14d0f8,process[_0x20c179(0x210)][_0x20c179(0x1f2)]=JSON[_0x20c179(0x1d3)](this[_0x20c179(0x1b6)]);}static[a127_0x4fc7e0(0x1b1)](){const _0x213d5a=a127_0x4fc7e0,_0xa0e190={'CErRh':function(_0x139cc9,_0x31c806){return _0x139cc9(_0x31c806);}};if(!this[_0x213d5a(0x1b6)]&&process['env'][_0x213d5a(0x1f2)])try{this['credentials']=JSON[_0x213d5a(0x1d6)](process['env']['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x3ed013){_0xa0e190[_0x213d5a(0x1f3)](debug,_0x213d5a(0x206)+_0x3ed013['toString']());}return this[_0x213d5a(0x1b6)];}static['setConfigDetails'](_0x4958aa){const _0x2b6c7b=a127_0x4fc7e0;this[_0x2b6c7b(0x1b3)]=this['filterPII'](_0x4958aa),process[_0x2b6c7b(0x210)][_0x2b6c7b(0x1f1)]=JSON[_0x2b6c7b(0x1d3)](this[_0x2b6c7b(0x1b3)]);}static[a127_0x4fc7e0(0x211)](){const _0x26ca40=a127_0x4fc7e0,_0x67ef3e={'kGKBe':function(_0x13dd43,_0x4741fb){return _0x13dd43===_0x4741fb;},'xyagB':function(_0x1a498f,_0xb1ee6b){return _0x1a498f(_0xb1ee6b);}};if(_0x67ef3e[_0x26ca40(0x1d1)](Object['keys'](this[_0x26ca40(0x1b3)])[_0x26ca40(0x1bd)],0x0)&&process['env'][_0x26ca40(0x1f1)])try{this['userConfig']=JSON[_0x26ca40(0x1d6)](process[_0x26ca40(0x210)][_0x26ca40(0x1f1)]);}catch(_0x383907){_0x67ef3e['xyagB'](debug,_0x26ca40(0x1ce)+_0x383907[_0x26ca40(0x1ae)]()),this[_0x26ca40(0x1b3)]={};}return this[_0x26ca40(0x1b3)];}static[a127_0x4fc7e0(0x1ec)](_0x35018d){const _0x539ced=a127_0x4fc7e0;this[_0x539ced(0x21d)]=_0x35018d,process[_0x539ced(0x210)][_0x539ced(0x1b9)]=JSON['stringify'](this[_0x539ced(0x21d)]);}static['getFramework'](){const _0x4afa6c=a127_0x4fc7e0,_0x5c0ad1={'Bhpqh':function(_0x33ef11,_0x37eab8){return _0x33ef11===_0x37eab8;},'IPkJn':function(_0x44adcb,_0x49fc30){return _0x44adcb(_0x49fc30);}};if(_0x5c0ad1[_0x4afa6c(0x1fb)](Object[_0x4afa6c(0x1cd)](this['frameworkDetails'])[_0x4afa6c(0x1bd)],0x0)&&process[_0x4afa6c(0x210)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x4afa6c(0x21d)]=JSON[_0x4afa6c(0x1d6)](process[_0x4afa6c(0x210)][_0x4afa6c(0x1b9)]);}catch(_0x26130d){_0x5c0ad1['IPkJn'](debug,_0x4afa6c(0x206)+_0x26130d[_0x4afa6c(0x1ae)]());}return this['frameworkDetails'];}static[a127_0x4fc7e0(0x1c8)](_0x54e1d4,_0x5ee8cd,_0x446d7e){const _0x5165a9=a127_0x4fc7e0;_0x54e1d4&&this[_0x5165a9(0x1ec)](_0x54e1d4),_0x5ee8cd&&this[_0x5165a9(0x1d4)](_0x5ee8cd),_0x446d7e&&this[_0x5165a9(0x212)](_0x446d7e[_0x5165a9(0x1fc)],_0x446d7e[_0x5165a9(0x202)]);}static async[a127_0x4fc7e0(0x1e4)](_0x50d825,_0x29d22e){const _0x18f408=a127_0x4fc7e0,_0x178941={'LVRvG':function(_0x51633c,_0x218e5b){return _0x51633c(_0x218e5b);},'ZqeXS':function(_0x1a4569,_0x32fdcb){return _0x1a4569(_0x32fdcb);},'PoAbn':_0x18f408(0x1dc),'RUidP':function(_0x29c115){return _0x29c115();},'KGDdW':_0x18f408(0x207),'QdbGV':_0x18f408(0x219),'DquQv':_0x18f408(0x1c2),'rBpEi':function(_0x5c141e,_0x1642a6,_0xf14953,_0x9d52d3,_0x4e8ac8,_0x562d6f){return _0x5c141e(_0x1642a6,_0xf14953,_0x9d52d3,_0x4e8ac8,_0x562d6f);},'SCZQu':_0x18f408(0x1cb)};this[_0x18f408(0x1b1)]();if(!this['credentials'])return _0x178941[_0x18f408(0x213)](debug,_0x178941[_0x18f408(0x1c5)]);this[_0x18f408(0x211)](),this[_0x18f408(0x1df)]();const _0x373d77={'hashed_id':process[_0x18f408(0x210)][_0x18f408(0x1e9)],'observability_version':{'sdkVersion':_0x178941[_0x18f408(0x1e0)](getAgentVersion),'frameworkName':this[_0x18f408(0x21d)][_0x18f408(0x1ca)],'frameworkVersion':this['frameworkDetails'][_0x18f408(0x1ef)]},'exception':{'error':_0x50d825[_0x18f408(0x1ae)](),'stackTrace':_0x29d22e},'config':this[_0x18f408(0x1b3)]},_0x1b7b0b=_0x178941[_0x18f408(0x1f6)],_0x306b81={};_0x306b81[_0x18f408(0x1fc)]=this['credentials'][_0x18f408(0x1fc)],_0x306b81[_0x18f408(0x1b4)]=this[_0x18f408(0x1b6)][_0x18f408(0x202)];const _0x1bbdf6={};_0x1bbdf6[_0x18f408(0x20e)]=_0x178941[_0x18f408(0x1c1)],_0x1bbdf6['X-BSTACK-TESTOPS']=_0x178941[_0x18f408(0x1b7)];const _0x54d019={};_0x54d019[_0x18f408(0x1b8)]=_0x306b81,_0x54d019[_0x18f408(0x1e1)]=_0x1bbdf6;const _0x95fc9f=_0x54d019;_0x178941['rBpEi'](nodeRequest,_0x178941['SCZQu'],_0x1b7b0b,_0x373d77,_0x95fc9f,![])['then'](_0x3597e5=>{const _0x815379=_0x18f408;_0x178941[_0x815379(0x1ee)](debug,_0x815379(0x1d0)+JSON[_0x815379(0x1d3)](_0x3597e5));})[_0x18f408(0x20d)](_0x2348a4=>{const _0xb2644c=_0x18f408;_0x178941[_0xb2644c(0x1ee)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0xb2644c(0x1c9)](_0x2348a4));});}static['recursivelyDeletePIIKeysFromObject'](_0xccc7d4){const _0x5da569=a127_0x4fc7e0,_0x4f19b6={};_0x4f19b6[_0x5da569(0x218)]='user',_0x4f19b6[_0x5da569(0x21c)]='username',_0x4f19b6['BTTYz']=_0x5da569(0x208),_0x4f19b6[_0x5da569(0x1fd)]=_0x5da569(0x202),_0x4f19b6['vkgpA']=_0x5da569(0x1b4),_0x4f19b6['UtFlm']=function(_0x158988,_0x49b971){return _0x158988===_0x49b971;},_0x4f19b6[_0x5da569(0x1b5)]=_0x5da569(0x1dd);const _0x3580d6=_0x4f19b6;if(!_0xccc7d4)return;const _0x5e6224=[_0x3580d6['fYTjc'],_0x3580d6['Cvmfg'],_0x3580d6['BTTYz'],_0x3580d6[_0x5da569(0x1fd)],_0x3580d6[_0x5da569(0x1c7)]];for(const _0x38aa32 in _0xccc7d4){if(_0x5e6224['includes'](_0x38aa32[_0x5da569(0x1c3)]()))delete _0xccc7d4[_0x38aa32];else _0x3580d6[_0x5da569(0x1bf)](typeof _0xccc7d4[_0x38aa32],_0x3580d6[_0x5da569(0x1b5)])&&this[_0x5da569(0x1d2)](_0xccc7d4[_0x38aa32]);}}static['filterPII'](_0x472198){const _0x80d18b=a127_0x4fc7e0,_0x484cd5=JSON[_0x80d18b(0x1d6)](JSON[_0x80d18b(0x1d3)](_0x472198));return this[_0x80d18b(0x1d2)](_0x484cd5),_0x484cd5;}}const a127_0x1a4b01={};a127_0x1a4b01[a127_0x4fc7e0(0x1bc)]=o11yErrorHandler,a127_0x1a4b01[a127_0x4fc7e0(0x20a)]=o11yClassErrorHandler,a127_0x1a4b01[a127_0x4fc7e0(0x21e)]=CrashReporter,module[a127_0x4fc7e0(0x1f0)]=a127_0x1a4b01;
|
|
1
|
+
const a127_0x1c3e21=a127_0x3463;(function(_0x5b5508,_0x479f18){const _0x229d26=a127_0x3463,_0x1a83f0=_0x5b5508();while(!![]){try{const _0x230066=-parseInt(_0x229d26(0x145))/0x1*(-parseInt(_0x229d26(0x162))/0x2)+parseInt(_0x229d26(0x18a))/0x3+-parseInt(_0x229d26(0x165))/0x4*(-parseInt(_0x229d26(0x192))/0x5)+parseInt(_0x229d26(0x144))/0x6*(-parseInt(_0x229d26(0x149))/0x7)+-parseInt(_0x229d26(0x196))/0x8+parseInt(_0x229d26(0x14f))/0x9+-parseInt(_0x229d26(0x18e))/0xa;if(_0x230066===_0x479f18)break;else _0x1a83f0['push'](_0x1a83f0['shift']());}catch(_0x39d197){_0x1a83f0['push'](_0x1a83f0['shift']());}}}(a127_0x1f35,0x34b05));const util=require('util'),PerformanceTester=require(a127_0x1c3e21(0x15c)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a127_0x1c3e21(0x147)),{getAgentVersion,nestedKeyValue}=require(a127_0x1c3e21(0x142)),o11yErrorHandler=(_0x360966,_0x4aec34='',_0x4db883=[''],_0x28f092=![])=>{const _0x2b8793={'DsWwF':function(_0x43f03a,_0x53f3f8){return _0x43f03a(_0x53f3f8);},'kcaBA':function(_0xec33f5,_0x528d2c,_0x216cf6){return _0xec33f5(_0x528d2c,_0x216cf6);},'bXXBd':function(_0x41fdfe,_0x360e83,_0x184202){return _0x41fdfe(_0x360e83,_0x184202);},'aqNzS':function(_0x304db7,_0x30801a){return _0x304db7 instanceof _0x30801a;},'myDkz':function(_0x4b709a,_0x5f0c4,_0x5bb182,_0x5ea28a,_0x4b784a){return _0x4b709a(_0x5f0c4,_0x5bb182,_0x5ea28a,_0x4b784a);}};return function(..._0x59ac5c){const _0x4a2002=a127_0x3463;try{let _0x3e97d3=_0x360966;process[_0x4a2002(0x16b)][_0x4a2002(0x17f)]&&(_0x3e97d3=PerformanceTester[_0x4a2002(0x193)]()[_0x4a2002(0x188)](_0x3e97d3));_0x28f092&&_0x2b8793[_0x4a2002(0x178)](trace,_0x4a2002(0x156)+_0x4aec34+',\x20PID\x20-\x20'+process['pid']+_0x4a2002(0x166)+_0x2b8793[_0x4a2002(0x179)](nestedKeyValue,arguments[0x0],_0x4db883));const _0x20127a=_0x3e97d3['apply'](null,arguments);_0x28f092&&_0x2b8793[_0x4a2002(0x178)](trace,_0x4a2002(0x17c)+_0x4aec34+_0x4a2002(0x15f)+process[_0x4a2002(0x172)]+_0x4a2002(0x166)+_0x2b8793[_0x4a2002(0x187)](nestedKeyValue,arguments[0x0],_0x4db883));if(_0x2b8793[_0x4a2002(0x184)](_0x20127a,Promise))return _0x20127a['catch'](_0x54c1a4=>processError(_0x54c1a4,_0x360966,_0x59ac5c,_0x4aec34));return _0x20127a;}catch(_0x5db38b){_0x2b8793[_0x4a2002(0x155)](processError,_0x5db38b,_0x360966,_0x59ac5c,_0x4aec34);}};},o11yClassErrorHandler=(_0x4c501d,_0x2b829,_0x45e079='')=>{const _0x1c7c38=a127_0x1c3e21,_0x370347={'JWJzU':function(_0x510a89,_0x4662f0){return _0x510a89 instanceof _0x4662f0;},'LUmzm':function(_0x1ad5d3,_0x38f391,_0x5bdb3c,_0x589811,_0x41ae79){return _0x1ad5d3(_0x38f391,_0x5bdb3c,_0x589811,_0x41ae79);},'sQpCy':function(_0x2e9a01,_0x5a7d44){return _0x2e9a01===_0x5a7d44;},'LWlbI':'function','eBIjJ':function(_0x80d37,_0x5bb017){return _0x80d37!==_0x5bb017;},'HoztR':_0x1c7c38(0x16e),'EAPJK':function(_0x44d230,_0x1cc7e3){return _0x44d230<_0x1cc7e3;}},_0x362f9c=_0x4c501d[_0x1c7c38(0x163)];if(_0x370347[_0x1c7c38(0x140)](Object['getOwnPropertyNames'](_0x362f9c)[_0x1c7c38(0x19e)],0x2))return _0x4c501d;return Object[_0x1c7c38(0x174)](_0x362f9c)['forEach'](_0xbd93ba=>{const _0x46b5d6=_0x1c7c38,_0x158642={'trQMs':function(_0xa3da4e,_0x37648c){const _0x454e45=a127_0x3463;return _0x370347[_0x454e45(0x159)](_0xa3da4e,_0x37648c);},'PrFfs':function(_0x40c31c,_0x470ba4,_0x38e72a,_0x1b4596,_0x20a1d6){const _0xc73e=a127_0x3463;return _0x370347[_0xc73e(0x15a)](_0x40c31c,_0x470ba4,_0x38e72a,_0x1b4596,_0x20a1d6);}};if(!(_0x2b829&&_0x2b829[_0x46b5d6(0x170)](_0xbd93ba)))return;const _0xab458c=_0x362f9c[_0xbd93ba];_0x370347['sQpCy'](typeof _0xab458c,_0x370347[_0x46b5d6(0x1aa)])&&_0x370347['eBIjJ'](_0xbd93ba,_0x370347[_0x46b5d6(0x154)])&&Object['defineProperty'](_0x362f9c,_0xbd93ba,{'writable':!![],'value':function(..._0x3c7eb6){const _0x279655=_0x46b5d6;try{const _0x469db6=(process[_0x279655(0x16b)][_0x279655(0x17f)]?PerformanceTester[_0x279655(0x193)]()[_0x279655(0x188)](_0xab458c):_0xab458c)[_0x279655(0x1a4)](this,..._0x3c7eb6);if(_0x158642['trQMs'](_0x469db6,Promise))return _0x469db6[_0x279655(0x17a)](_0x22f223=>processError(_0x22f223,_0xab458c,_0x3c7eb6,_0x45e079));return _0x469db6;}catch(_0x42b835){_0x158642[_0x279655(0x143)](processError,_0x42b835,_0xab458c,_0x3c7eb6,_0x45e079);}}});}),_0x4c501d;};function processError(_0x37c073,_0x336f4d,_0x2b57bd,_0x2ee6ec){const _0x14241b=a127_0x1c3e21,_0x267afd={'VBEwf':function(_0x259c25,_0x2b0255){return _0x259c25(_0x2b0255);}};_0x267afd[_0x14241b(0x14b)](debug,_0x14241b(0x1a3)+_0x336f4d['name']+'\x20--\x20'+_0x2ee6ec+_0x14241b(0x1ae)+util[_0x14241b(0x1a6)](_0x37c073)+'.\x20Args\x20-\x20'+_0x2b57bd+'.'),PerformanceTester[_0x14241b(0x15b)](_0x37c073);let _0x5c9d47;try{_0x5c9d47=JSON[_0x14241b(0x157)](_0x2b57bd);}catch(_0x13ba73){const _0x33b02c={};_0x33b02c[_0x14241b(0x164)]=0x2,_0x5c9d47=util['inspect'](_0x2b57bd,_0x33b02c);}CrashReporter[_0x14241b(0x151)]('Error\x20in\x20executing\x20'+_0x336f4d[_0x14241b(0x19a)]+'\x20--\x20'+_0x2ee6ec+_0x14241b(0x1ae)+_0x37c073+_0x14241b(0x18b)+_0x5c9d47+'.',_0x37c073&&_0x37c073[_0x14241b(0x19f)]);}class CrashReporter{static [a127_0x1c3e21(0x1ab)]={};static [a127_0x1c3e21(0x194)];static [a127_0x1c3e21(0x177)]={};static[a127_0x1c3e21(0x1ad)](_0x43f5be,_0x57155c,_0x11f7e8=null){const _0x32d124=a127_0x1c3e21,_0xc5c4ff={'PtMeU':function(_0x23050d,_0x4cc27c){return _0x23050d(_0x4cc27c);}},_0x30cd05=_0x43f5be['frameworkName'],_0x1feca7=_0x43f5be[_0x32d124(0x190)];!_0x11f7e8&&(_0x11f7e8=_0xc5c4ff[_0x32d124(0x19b)](getBrowserStackConfig,_0x30cd05));!_0x1feca7&&_0xc5c4ff[_0x32d124(0x19b)](getFrameworkVersion,_0x30cd05);const _0x7d9599={};_0x7d9599[_0x32d124(0x14d)]=_0x30cd05,_0x7d9599[_0x32d124(0x190)]=_0x1feca7,this[_0x32d124(0x1a0)](_0x7d9599,_0x57155c,_0xc5c4ff[_0x32d124(0x19b)](getUserCredentials,_0x11f7e8));}static['setCredentials'](_0x335538,_0x184310){const _0x371f91=a127_0x1c3e21,_0x48886b={};_0x48886b[_0x371f91(0x150)]=_0x335538,_0x48886b[_0x371f91(0x158)]=_0x184310,this[_0x371f91(0x194)]=_0x48886b,process[_0x371f91(0x16b)][_0x371f91(0x1a5)]=JSON[_0x371f91(0x157)](this['credentials']);}static[a127_0x1c3e21(0x18d)](){const _0x3ebd2e=a127_0x1c3e21,_0x3c2467={'SjZzq':function(_0x2c8904,_0x1055f7){return _0x2c8904(_0x1055f7);}};if(!this[_0x3ebd2e(0x194)]&&process[_0x3ebd2e(0x16b)][_0x3ebd2e(0x1a5)])try{this[_0x3ebd2e(0x194)]=JSON[_0x3ebd2e(0x171)](process[_0x3ebd2e(0x16b)][_0x3ebd2e(0x1a5)]);}catch(_0x3c9bce){_0x3c2467['SjZzq'](debug,_0x3ebd2e(0x15e)+_0x3c9bce[_0x3ebd2e(0x197)]());}return this['credentials'];}static[a127_0x1c3e21(0x146)](_0x5b7e69){const _0x2df884=a127_0x1c3e21;this[_0x2df884(0x1ab)]=this[_0x2df884(0x14e)](_0x5b7e69),process[_0x2df884(0x16b)][_0x2df884(0x168)]=JSON[_0x2df884(0x157)](this[_0x2df884(0x1ab)]);}static[a127_0x1c3e21(0x19c)](){const _0x2bbf6e=a127_0x1c3e21,_0x2fac69={'WFHFB':function(_0x46718c,_0x21b39e){return _0x46718c===_0x21b39e;},'JLWaq':function(_0x262def,_0x5e5115){return _0x262def(_0x5e5115);}};if(_0x2fac69[_0x2bbf6e(0x182)](Object[_0x2bbf6e(0x1af)](this[_0x2bbf6e(0x1ab)])['length'],0x0)&&process[_0x2bbf6e(0x16b)][_0x2bbf6e(0x168)])try{this[_0x2bbf6e(0x1ab)]=JSON[_0x2bbf6e(0x171)](process['env'][_0x2bbf6e(0x168)]);}catch(_0x194c63){_0x2fac69[_0x2bbf6e(0x19d)](debug,_0x2bbf6e(0x16d)+_0x194c63[_0x2bbf6e(0x197)]()),this[_0x2bbf6e(0x1ab)]={};}return this['userConfig'];}static[a127_0x1c3e21(0x181)](_0x45e640){const _0x17216e=a127_0x1c3e21;this['frameworkDetails']=_0x45e640,process[_0x17216e(0x16b)][_0x17216e(0x153)]=JSON[_0x17216e(0x157)](this[_0x17216e(0x177)]);}static[a127_0x1c3e21(0x169)](){const _0x40717f=a127_0x1c3e21,_0x39461b={'MDdrF':function(_0x139bc1,_0x3dc377){return _0x139bc1===_0x3dc377;},'QRqxi':function(_0xf377cc,_0x32f804){return _0xf377cc(_0x32f804);}};if(_0x39461b['MDdrF'](Object['keys'](this[_0x40717f(0x177)])['length'],0x0)&&process[_0x40717f(0x16b)][_0x40717f(0x153)])try{this[_0x40717f(0x177)]=JSON['parse'](process[_0x40717f(0x16b)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0x2963c5){_0x39461b[_0x40717f(0x173)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x2963c5[_0x40717f(0x197)]());}return this[_0x40717f(0x177)];}static['setAllDetails'](_0x41cca4,_0x193a86,_0x3ee80e){const _0x53d3e1=a127_0x1c3e21;_0x41cca4&&this[_0x53d3e1(0x181)](_0x41cca4),_0x193a86&&this[_0x53d3e1(0x146)](_0x193a86),_0x3ee80e&&this[_0x53d3e1(0x167)](_0x3ee80e['username'],_0x3ee80e['accessKey']);}static async[a127_0x1c3e21(0x151)](_0x43c3da,_0x578f33){const _0x225b55=a127_0x1c3e21,_0x6609f8={'rxGje':function(_0x4d2a3b,_0x43a012){return _0x4d2a3b(_0x43a012);},'kPcgB':function(_0x43ce7,_0x5bb856){return _0x43ce7(_0x5bb856);},'fgRAo':function(_0x22dba8,_0x33751f){return _0x22dba8(_0x33751f);},'zKCSi':_0x225b55(0x148),'lLqHL':function(_0x51a5d4){return _0x51a5d4();},'CrbNJ':_0x225b55(0x18f),'Ohpwo':_0x225b55(0x175),'wcMlx':_0x225b55(0x189),'jaBav':function(_0x424e19,_0xf04cf4,_0x28f0d4,_0x43afc3,_0x3f57ad,_0x582fb9){return _0x424e19(_0xf04cf4,_0x28f0d4,_0x43afc3,_0x3f57ad,_0x582fb9);},'TRxaF':_0x225b55(0x1a9)};this['getCredentials']();if(!this[_0x225b55(0x194)])return _0x6609f8[_0x225b55(0x1a2)](debug,_0x6609f8[_0x225b55(0x152)]);this[_0x225b55(0x19c)](),this[_0x225b55(0x169)]();const _0x1a0dd7={'hashed_id':process[_0x225b55(0x16b)][_0x225b55(0x17d)],'observability_version':{'sdkVersion':_0x6609f8[_0x225b55(0x185)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x225b55(0x14d)],'frameworkVersion':this['frameworkDetails'][_0x225b55(0x190)]},'exception':{'error':_0x43c3da[_0x225b55(0x197)](),'stackTrace':_0x578f33},'config':this[_0x225b55(0x1ab)]},_0x2bbf1b=_0x6609f8['CrbNJ'],_0x33c102={};_0x33c102['username']=this[_0x225b55(0x194)][_0x225b55(0x150)],_0x33c102[_0x225b55(0x16f)]=this[_0x225b55(0x194)][_0x225b55(0x158)];const _0xf07deb={};_0xf07deb['Content-Type']=_0x6609f8['Ohpwo'],_0xf07deb[_0x225b55(0x176)]=_0x6609f8['wcMlx'];const _0x54202b={};_0x54202b[_0x225b55(0x17e)]=_0x33c102,_0x54202b[_0x225b55(0x183)]=_0xf07deb;const _0x3d99ea=_0x54202b;_0x6609f8['jaBav'](nodeRequest,_0x6609f8[_0x225b55(0x1a8)],_0x2bbf1b,_0x1a0dd7,_0x3d99ea,![])[_0x225b55(0x191)](_0x2269e5=>{const _0x1a3c18=_0x225b55;_0x6609f8[_0x1a3c18(0x15d)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x1a3c18(0x157)](_0x2269e5));})[_0x225b55(0x17a)](_0x301eb2=>{const _0x2270a5=_0x225b55;_0x6609f8[_0x2270a5(0x199)](debug,_0x2270a5(0x14c)+util[_0x2270a5(0x1a6)](_0x301eb2));});}static[a127_0x1c3e21(0x161)](_0xfa9174){const _0x5ce8dc=a127_0x1c3e21,_0xa1bde9={};_0xa1bde9['ENJEp']=_0x5ce8dc(0x1a1),_0xa1bde9['KnLsc']=_0x5ce8dc(0x150),_0xa1bde9[_0x5ce8dc(0x195)]=_0x5ce8dc(0x14a),_0xa1bde9['TatNo']='accessKey',_0xa1bde9[_0x5ce8dc(0x186)]='password',_0xa1bde9[_0x5ce8dc(0x18c)]=function(_0x393a67,_0x37f535){return _0x393a67===_0x37f535;},_0xa1bde9[_0x5ce8dc(0x141)]=_0x5ce8dc(0x180);const _0x580933=_0xa1bde9;if(!_0xfa9174)return;const _0x187059=[_0x580933[_0x5ce8dc(0x198)],_0x580933[_0x5ce8dc(0x160)],_0x580933[_0x5ce8dc(0x195)],_0x580933[_0x5ce8dc(0x17b)],_0x580933[_0x5ce8dc(0x186)]];for(const _0x220ae6 in _0xfa9174){if(_0x187059[_0x5ce8dc(0x170)](_0x220ae6[_0x5ce8dc(0x1ac)]()))delete _0xfa9174[_0x220ae6];else _0x580933[_0x5ce8dc(0x18c)](typeof _0xfa9174[_0x220ae6],_0x580933[_0x5ce8dc(0x141)])&&this[_0x5ce8dc(0x161)](_0xfa9174[_0x220ae6]);}}static[a127_0x1c3e21(0x14e)](_0x6397ec){const _0x48cc7d=a127_0x1c3e21,_0x5df5c9=JSON['parse'](JSON['stringify'](_0x6397ec));return this[_0x48cc7d(0x161)](_0x5df5c9),_0x5df5c9;}}const a127_0x358eea={};function a127_0x3463(_0x4f60c9,_0x21e9a8){const _0x1f35f1=a127_0x1f35();return a127_0x3463=function(_0x3463cc,_0x38d0c5){_0x3463cc=_0x3463cc-0x140;let _0x2ef280=_0x1f35f1[_0x3463cc];return _0x2ef280;},a127_0x3463(_0x4f60c9,_0x21e9a8);}a127_0x358eea[a127_0x1c3e21(0x16c)]=o11yErrorHandler,a127_0x358eea[a127_0x1c3e21(0x1a7)]=o11yClassErrorHandler,a127_0x358eea[a127_0x1c3e21(0x16a)]=CrashReporter,module['exports']=a127_0x358eea;function a127_0x1f35(){const _0x150fa4=['frameworkVersion','then','371495YVvCgi','getPerformance','credentials','KVXZW','3389088GZGjyy','toString','ENJEp','kPcgB','name','PtMeU','getConfig','JLWaq','length','stack','setAllDetails','user','fgRAo','Error\x20in\x20executing\x20','call','CREDENTIALS_FOR_CRASH_REPORTING','format','o11yClassErrorHandler','TRxaF','POST','LWlbI','userConfig','toLowerCase','initialize','.\x20Error\x20-\x20','keys','EAPJK','XyOrg','../helper','PrFfs','42saCybV','6PSIyOr','setConfigDetails','./utils','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','89306fEdpuW','key','VBEwf','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','frameworkName','filterPII','1661895pztleN','username','uploadCrashReport','zKCSi','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','HoztR','myDkz','Started\x20::\x20','stringify','accessKey','JWJzU','LUmzm','captureError','../performance/performance-tester','rxGje','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20',',\x20PID\x20-\x20','KnLsc','recursivelyDeletePIIKeysFromObject','65290rILTev','prototype','depth','4uUFZCD',',\x20Argument\x20-\x20','setCredentials','USER_CONFIG_FOR_REPORTING','getFramework','CrashReporter','env','o11yErrorHandler','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','constructor','password','includes','parse','pid','QRqxi','getOwnPropertyNames','application/json','X-BSTACK-TESTOPS','frameworkDetails','DsWwF','kcaBA','catch','TatNo','Finished\x20::\x20','BS_TESTOPS_BUILD_HASHED_ID','auth','BROWSERSTACK_O11Y_PERF_MEASUREMENT','object','setFrameworkDetails','WFHFB','headers','aqNzS','lLqHL','kZjGX','bXXBd','timerify','true','1020156VfVMNw','.\x20Args\x20-\x20','MiGvQ','getCredentials','661210UFsmdM','/api/v1/analytics'];a127_0x1f35=function(){return _0x150fa4;};return a127_0x1f35();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128_0x14f74f=a128_0x34c6;(function(_0x157b6d,_0x583de1){const _0x435764=a128_0x34c6,_0x2ba59b=_0x157b6d();while(!![]){try{const _0x4a415c=-parseInt(_0x435764(0xf6))/0x1+parseInt(_0x435764(0x122))/0x2*(-parseInt(_0x435764(0xfb))/0x3)+-parseInt(_0x435764(0xce))/0x4*(-parseInt(_0x435764(0xed))/0x5)+parseInt(_0x435764(0xe8))/0x6*(-parseInt(_0x435764(0x107))/0x7)+parseInt(_0x435764(0x112))/0x8*(parseInt(_0x435764(0xec))/0x9)+-parseInt(_0x435764(0xde))/0xa*(parseInt(_0x435764(0xf7))/0xb)+parseInt(_0x435764(0x101))/0xc;if(_0x4a415c===_0x583de1)break;else _0x2ba59b['push'](_0x2ba59b['shift']());}catch(_0x144f89){_0x2ba59b['push'](_0x2ba59b['shift']());}}}(a128_0x7e7e,0xc1926));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a128_0x14f74f(0xc6)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a128_0x14f74f(0x126)),{nestedKeyValue}=require('../helper'),util=require(a128_0x14f74f(0xd2)),constants=require('../../bin/utils/constants');function a128_0x34c6(_0x22ef2b,_0x39e39c){const _0x7e7e71=a128_0x7e7e();return a128_0x34c6=function(_0x34c6a8,_0x2ab710){_0x34c6a8=_0x34c6a8-0xc3;let _0x39ecd9=_0x7e7e71[_0x34c6a8];return _0x39ecd9;},a128_0x34c6(_0x22ef2b,_0x39e39c);}function a128_0x7e7e(){const _0x657c48=['JScGG','Remaining\x20Queue\x20Length\x20-\x20','TestRunSkipped','24984MMPZEw','EpMIO','xVBzp','pendingUploads','./utils','vZOfU','eventUrl','queue','MjieF','lADvQ','TestRunFinished','dhPwP','shouldProceed','startEventBatchPolling','error','statusText','pollEventBatchInterval','join','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','resetEventBatchPolling','.\x20Request\x20Size\x20-\x20','CBTSessionCreated','EmCTk','HookRunStarted','dDeGQ','LogCreated','./constants','ceKqy','instance','PTkWW','MQLCF','\x20event\x20successful\x20for\x20events\x20','TEST_ATTACHMENT','proceedWithData','28EhlyVE','uploadAttachmentUrl','TEST_REPORTING_ANALYTICS','PxPzT','util','shutdown','uuid','fvOFh','test_run','HookRunFinished','OxgvX','qFoCY','Uxxmj','getInstance','uploadPending','started','220HboRAt','kiYwk','\x20REQUEST\x20TO\x20','message','XYUqd','splice','add','hook_run','kind','BATCH_EVENT_TYPES','240jXAYpC','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','logs','format','270GxyIQK','96515pUCmZs','screenshotEventUrl','jPIAc','Vsmjc','push','response','ARDjl','Interval-Queue','BkvjT','767766GXjjUo','534501YKiyMT','\x20:\x20','LHAJq','wqQQJ','66eCLVGa','TEST_SCREENSHOT','wbYEx','RESETTING','EXCEPTION\x20IN\x20','eWgNa','18333132fWHjLE','TestRunStarted','data','removeEventBatchPolling','YAuPE','lnpDh','57939vVFYBm','Hqehu','cFyCn','iKpxe','REMOVING','Processing\x20events.\x20Queue\x20Length\x20-\x20','slice','length','phqVy','proceedWithUrl','IcFWI','419376FAlWpu','Shutdown-Queue','mxTah','max','OCwpY','FWfVe','split','event_type','exports','batchAndPostEvents','NnPwG','Nkcvj','yPatL'];a128_0x7e7e=function(){return _0x657c48;};return a128_0x7e7e();}class RequestQueueHandler{static [a128_0x14f74f(0xc8)];[a128_0x14f74f(0x125)]=0x0;constructor(){const _0x99dbef=a128_0x14f74f,_0xf9e9fb={};_0xf9e9fb[_0x99dbef(0xf5)]='0|2|6|3|1|5|4',_0xf9e9fb[_0x99dbef(0xf3)]='upload-attachments',_0xf9e9fb[_0x99dbef(0xc4)]='api/v1/screenshots',_0xf9e9fb[_0x99dbef(0x11c)]=_0x99dbef(0xc5),_0xf9e9fb[_0x99dbef(0x12d)]=_0x99dbef(0x137),_0xf9e9fb['vZOfU']=_0x99dbef(0x12c),_0xf9e9fb[_0x99dbef(0x105)]=_0x99dbef(0x121),_0xf9e9fb[_0x99dbef(0x11d)]=_0x99dbef(0xd7),_0xf9e9fb[_0x99dbef(0xd8)]=_0x99dbef(0x102),_0xf9e9fb['XYUqd']=_0x99dbef(0xc3),_0xf9e9fb[_0x99dbef(0x117)]='api/v1/batch';const _0x2b57b3=_0xf9e9fb,_0x381ee3=_0x2b57b3[_0x99dbef(0xf5)][_0x99dbef(0x118)]('|');let _0x1ae153=0x0;while(!![]){switch(_0x381ee3[_0x1ae153++]){case'0':this['queue']=[];continue;case'1':this['uploadAttachmentUrl']=_0x2b57b3[_0x99dbef(0xf3)];continue;case'2':this[_0x99dbef(0xdd)]=![];continue;case'3':this[_0x99dbef(0xee)]=_0x2b57b3[_0x99dbef(0xc4)];continue;case'4':this[_0x99dbef(0x132)]=null;continue;case'5':this[_0x99dbef(0xe7)]=[_0x2b57b3[_0x99dbef(0x11c)],_0x2b57b3[_0x99dbef(0x12d)],_0x2b57b3[_0x99dbef(0x127)],_0x2b57b3[_0x99dbef(0x105)],_0x2b57b3[_0x99dbef(0x11d)],_0x2b57b3[_0x99dbef(0xd8)],_0x2b57b3[_0x99dbef(0xe2)]];continue;case'6':this[_0x99dbef(0x128)]=_0x2b57b3[_0x99dbef(0x117)];continue;}break;}}static[a128_0x14f74f(0xdb)](){const _0x3d48bf=a128_0x14f74f;return!RequestQueueHandler[_0x3d48bf(0xc8)]&&(RequestQueueHandler[_0x3d48bf(0xc8)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x2b245f=a128_0x14f74f;!this['started']&&(this[_0x2b245f(0xdd)]=!![],this[_0x2b245f(0x12f)]());};[a128_0x14f74f(0xe4)]=_0x5dbeaf=>{const _0x4ffef0=a128_0x14f74f,_0x1247fc={'EpMIO':function(_0x1d4e09,_0x46f558){return _0x1d4e09===_0x46f558;},'PTkWW':_0x4ffef0(0xfc),'xVBzp':function(_0x3cf035,_0x19420e){return _0x3cf035>_0x19420e;},'IcFWI':function(_0x107da6,_0x2af53c){return _0x107da6===_0x2af53c;},'phqVy':_0x4ffef0(0xcc),'lnpDh':function(_0x1f165b,_0x1bde52){return _0x1f165b!==_0x1bde52;},'wqQQJ':'TestRunFinished','Uxxmj':function(_0x11276f,_0x584a63){return _0x11276f(_0x584a63);},'LHAJq':_0x4ffef0(0xe9)};if(this[_0x4ffef0(0xe7)]['includes'](_0x5dbeaf['event_type'])){if(_0x5dbeaf[_0x4ffef0(0xea)]&&_0x5dbeaf[_0x4ffef0(0xea)][0x0]&&_0x1247fc[_0x4ffef0(0x123)](_0x5dbeaf[_0x4ffef0(0xea)][0x0][_0x4ffef0(0xe6)],_0x1247fc[_0x4ffef0(0xc9)])){const _0x41e9d3={};return _0x41e9d3[_0x4ffef0(0x12e)]=!![],_0x41e9d3[_0x4ffef0(0xcd)]=[_0x5dbeaf],_0x41e9d3[_0x4ffef0(0x110)]=this[_0x4ffef0(0xee)],_0x41e9d3;}if(_0x5dbeaf[_0x4ffef0(0xea)]&&_0x1247fc[_0x4ffef0(0x124)](_0x5dbeaf[_0x4ffef0(0xea)][_0x4ffef0(0x10e)],0x0)&&_0x1247fc[_0x4ffef0(0x111)](_0x5dbeaf['logs'][0x0][_0x4ffef0(0xe6)],_0x1247fc[_0x4ffef0(0x10f)])&&_0x1247fc[_0x4ffef0(0x106)](_0x5dbeaf['event_type'],_0x1247fc[_0x4ffef0(0xfa)])){const _0x2c87b9={};return _0x2c87b9[_0x4ffef0(0x12e)]=!![],_0x2c87b9[_0x4ffef0(0xcd)]=[_0x5dbeaf],_0x2c87b9['proceedWithUrl']=this[_0x4ffef0(0xcf)],_0x2c87b9;}this['queue'][_0x4ffef0(0xf1)](_0x5dbeaf);let _0x2451b8=null;const _0x314a03=this['shouldProceed']();_0x314a03&&(_0x1247fc[_0x4ffef0(0xda)](trace,_0x1247fc[_0x4ffef0(0xf9)]),_0x2451b8=this[_0x4ffef0(0x129)]['slice'](0x0,BATCH_SIZE),this[_0x4ffef0(0x129)]['splice'](0x0,BATCH_SIZE),this[_0x4ffef0(0x135)]());const _0x3c6e30={};return _0x3c6e30[_0x4ffef0(0x12e)]=_0x314a03,_0x3c6e30[_0x4ffef0(0xcd)]=_0x2451b8,_0x3c6e30[_0x4ffef0(0x110)]=this[_0x4ffef0(0x128)],_0x3c6e30;}const _0x4e90a4={};return _0x4e90a4[_0x4ffef0(0x12e)]=!![],_0x4e90a4;};[a128_0x14f74f(0xd3)]=async()=>{const _0x56e4e6=a128_0x14f74f,_0x94c10a={'zsbom':_0x56e4e6(0x10b),'MQLCF':function(_0x42c1f3,_0x2d5aae){return _0x42c1f3>_0x2d5aae;},'wbYEx':_0x56e4e6(0x113),'wySpv':function(_0x5c44eb,_0x535ff8){return _0x5c44eb>_0x535ff8;},'ipWuW':function(_0x43f44f,_0x17d32c){return _0x43f44f(_0x17d32c);}};await this[_0x56e4e6(0xdc)](),this[_0x56e4e6(0x104)](_0x94c10a['zsbom']);while(_0x94c10a[_0x56e4e6(0xca)](this[_0x56e4e6(0x129)][_0x56e4e6(0x10e)],0x0)){const _0x27a159=this[_0x56e4e6(0x129)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x56e4e6(0xe3)](0x0,BATCH_SIZE),await this[_0x56e4e6(0x11b)](this[_0x56e4e6(0x128)],_0x94c10a[_0x56e4e6(0xfd)],_0x27a159);}_0x94c10a['wySpv'](this[_0x56e4e6(0x125)],0x0)&&_0x94c10a['ipWuW'](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x56e4e6(0x125)]);};[a128_0x14f74f(0x11b)]=async(_0x277fa7,_0x1c3993,_0x58abd0)=>{const _0x1846e6=a128_0x14f74f,_0x4c0854={'kiYwk':function(_0x19b985,_0xe609fc){return _0x19b985(_0xe609fc);},'EmCTk':'utf8','PxPzT':function(_0x21365b){return _0x21365b();},'fvOFh':function(_0x225cc9,_0x10ebb4,_0x22aad0,_0x245952,_0x5cc5dc){return _0x225cc9(_0x10ebb4,_0x22aad0,_0x245952,_0x5cc5dc);},'mxTah':'POST','OCwpY':function(_0x194e74,_0x5c9b61){return _0x194e74-_0x5c9b61;},'MjieF':function(_0x59b93b,_0x32fd81){return _0x59b93b(_0x32fd81);},'gwzeN':function(_0x51b638,_0x987268){return _0x51b638(_0x987268);}};let _0x153644='';try{_0x153644=_0x58abd0['map'](_0x6cad93=>'\x27'+_0x6cad93[_0x1846e6(0x119)]+'\x27:'+(nestedKeyValue(_0x6cad93,[_0x1846e6(0xd6),_0x1846e6(0xd4)])||nestedKeyValue(_0x6cad93,[_0x1846e6(0xe5),'uuid'])))[_0x1846e6(0x133)](','),_0x4c0854[_0x1846e6(0xdf)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x1c3993+_0x1846e6(0x136)+Buffer['byteLength'](util[_0x1846e6(0xeb)]('%j',_0x58abd0),_0x4c0854[_0x1846e6(0x138)])+'\x20bytes.\x20Events\x20are\x20'+_0x153644);}catch(_0x1412e7){_0x4c0854[_0x1846e6(0xdf)](debug,_0x1846e6(0x134)+util[_0x1846e6(0xeb)](_0x1412e7)+'}');}const _0x510be2={'headers':_0x4c0854[_0x1846e6(0xd1)](getDefaultHeaders)};try{const _0x7aa4b0=await _0x4c0854[_0x1846e6(0xd5)](nodeRequest,_0x4c0854[_0x1846e6(0x114)],_0x277fa7,_0x58abd0,_0x510be2);if(_0x7aa4b0['data'][_0x1846e6(0x130)]){const _0x3686e3={};_0x3686e3[_0x1846e6(0xe1)]=_0x7aa4b0[_0x1846e6(0x103)][_0x1846e6(0x130)];throw _0x3686e3;}else _0x4c0854[_0x1846e6(0xdf)](debug,_0x1c3993+_0x1846e6(0xcb)+_0x153644+'\x20--\x20'+util[_0x1846e6(0xeb)]('%j',_0x7aa4b0[_0x1846e6(0x103)])),this[_0x1846e6(0x125)]=Math[_0x1846e6(0x115)](0x0,_0x4c0854[_0x1846e6(0x116)](this[_0x1846e6(0x125)],_0x58abd0[_0x1846e6(0x10e)]));}catch(_0x314efc){_0x314efc[_0x1846e6(0xf2)]?_0x4c0854[_0x1846e6(0x12a)](debug,_0x1846e6(0xff)+_0x1c3993+'\x20REQUEST\x20TO\x20'+constants[_0x1846e6(0xd0)]+_0x1846e6(0xf8)+_0x314efc[_0x1846e6(0xf2)]['status']+'\x20'+_0x314efc[_0x1846e6(0xf2)][_0x1846e6(0x131)]+'\x20'+util[_0x1846e6(0xeb)]('%j',_0x314efc[_0x1846e6(0xf2)])):_0x4c0854['gwzeN'](debug,'EXCEPTION\x20IN\x20'+_0x1c3993+_0x1846e6(0xe0)+constants[_0x1846e6(0xd0)]+'\x20:\x20'+(_0x314efc[_0x1846e6(0xe1)]||_0x314efc)),this[_0x1846e6(0x125)]=Math[_0x1846e6(0x115)](0x0,_0x4c0854[_0x1846e6(0x116)](this[_0x1846e6(0x125)],_0x58abd0['length']));}};['startEventBatchPolling']=()=>{const _0x2d389a=a128_0x14f74f,_0xb1a47e={'qFoCY':function(_0x2554ae,_0x512b62){return _0x2554ae>_0x512b62;},'iKpxe':function(_0x5218ba,_0x19cfad){return _0x5218ba(_0x19cfad);},'yPatL':_0x2d389a(0xf4),'NFOiu':function(_0x2b93c8,_0x5aa7b1,_0x45e3fa){return _0x2b93c8(_0x5aa7b1,_0x45e3fa);}};this['pollEventBatchInterval']=_0xb1a47e['NFOiu'](setInterval,async()=>{const _0x2a138e=_0x2d389a;if(_0xb1a47e[_0x2a138e(0xd9)](this[_0x2a138e(0x129)][_0x2a138e(0x10e)],0x0)){_0xb1a47e[_0x2a138e(0x10a)](trace,_0x2a138e(0x10c)+this[_0x2a138e(0x129)]['length']);const _0x3061bc=this['queue'][_0x2a138e(0x10d)](0x0,BATCH_SIZE);this['queue']['splice'](0x0,BATCH_SIZE),await this[_0x2a138e(0x11b)](this[_0x2a138e(0x128)],_0xb1a47e[_0x2a138e(0x11e)],_0x3061bc),_0xb1a47e[_0x2a138e(0x10a)](trace,_0x2a138e(0x120)+this['queue']['length']);}},BATCH_INTERVAL);};[a128_0x14f74f(0x135)]=()=>{const _0x24ab2a=a128_0x14f74f,_0x497ecc={};_0x497ecc[_0x24ab2a(0xc7)]=_0x24ab2a(0xfe);const _0x572ce9=_0x497ecc;this[_0x24ab2a(0x104)](_0x572ce9[_0x24ab2a(0xc7)]),this[_0x24ab2a(0x12f)]();};[a128_0x14f74f(0x104)]=_0x541845=>{const _0x2f1550=a128_0x14f74f,_0x5dee90={'JScGG':function(_0x22ac85,_0x8346d1){return _0x22ac85(_0x8346d1);},'LiHDc':function(_0x13f377,_0x86f9f3){return _0x13f377===_0x86f9f3;},'jPIAc':'REMOVING'};this[_0x2f1550(0x132)]&&(_0x5dee90[_0x2f1550(0x11f)](clearInterval,this[_0x2f1550(0x132)]),this[_0x2f1550(0x132)]=null,_0x5dee90['LiHDc'](_0x541845,_0x5dee90[_0x2f1550(0xef)])&&(this[_0x2f1550(0xdd)]=![]));};[a128_0x14f74f(0x12e)]=()=>{const _0x2763af=a128_0x14f74f,_0x27b4ab={};_0x27b4ab[_0x2763af(0x100)]=function(_0x47e2d9,_0x24f82f){return _0x47e2d9>=_0x24f82f;};const _0x53560c=_0x27b4ab;return _0x53560c[_0x2763af(0x100)](this[_0x2763af(0x129)][_0x2763af(0x10e)],BATCH_SIZE);};async[a128_0x14f74f(0xdc)](_0x414f0a=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x3a5817=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4bb3a3=a128_0x14f74f,_0x175b13={'lADvQ':function(_0x4fa0cb,_0x2e5156){return _0x4fa0cb<=_0x2e5156;},'cFyCn':function(_0xe85bf3,_0x41ceab){return _0xe85bf3<=_0x41ceab;},'Vsmjc':function(_0x361f55,_0x568755){return _0x361f55(_0x568755);},'Hqehu':function(_0x1c99c6,_0xa3d127){return _0x1c99c6-_0xa3d127;}};if(_0x175b13[_0x4bb3a3(0x12b)](this['pendingUploads'],0x0)||_0x175b13[_0x4bb3a3(0x109)](_0x414f0a,0x0))return;return await _0x175b13[_0x4bb3a3(0xf0)](sleep,_0x3a5817),this['uploadPending'](_0x175b13[_0x4bb3a3(0x108)](_0x414f0a,_0x3a5817));}}module[a128_0x14f74f(0x11a)]=RequestQueueHandler;
|
|
1
|
+
const a128_0x37fdbb=a128_0x5cea;(function(_0x40921b,_0x80ae7c){const _0x55099e=a128_0x5cea,_0x4b5a35=_0x40921b();while(!![]){try{const _0x1a27ab=-parseInt(_0x55099e(0x1bd))/0x1*(parseInt(_0x55099e(0x1f2))/0x2)+-parseInt(_0x55099e(0x1af))/0x3+parseInt(_0x55099e(0x1fb))/0x4+-parseInt(_0x55099e(0x223))/0x5+parseInt(_0x55099e(0x1b6))/0x6*(-parseInt(_0x55099e(0x1f9))/0x7)+parseInt(_0x55099e(0x1e3))/0x8+parseInt(_0x55099e(0x212))/0x9;if(_0x1a27ab===_0x80ae7c)break;else _0x4b5a35['push'](_0x4b5a35['shift']());}catch(_0x2013f6){_0x4b5a35['push'](_0x4b5a35['shift']());}}}(a128_0xb287,0x2fd39));function a128_0xb287(){const _0x3a1987=['includes','1017924XlcWCO','IsrKW','proceedWithData','batchAndPostEvents','gKQBZ','shouldProceed','TestRunSkipped','402042kyOmDk','.\x20Request\x20Size\x20-\x20','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','hook_run','ExWib','\x20bytes.\x20Events\x20are\x20','api/v1/screenshots','102456lTpXVp','wtsSd','uploadAttachmentUrl','statusText','FuRkr','frmKm','util','response','EXCEPTION\x20IN\x20','length','splice','cEuNd','pollEventBatchInterval','exports','GKXGH','iozYE','2|4|5|1|0|3|6','slice','Zsmcs','vmGHb','kind','HIHBH','BATCH_EVENT_TYPES','nSjOW','api/v1/batch','TFgsx','dpJrz','../../bin/utils/constants','WRliA','max','NFJPF','JsTdi','BObSb','split','cUmOF','format','instance','SfFxT','1595096RwrCFs','TestRunStarted','screenshotEventUrl','proceedWithUrl','CBTSessionCreated','WHrnw','Shutdown-Queue','uuid','nvhIV','\x20event\x20successful\x20for\x20events\x20','map','ZsEGH','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','BKhnP','../helper','2QZIkzK','byteLength','Processing\x20events.\x20Queue\x20Length\x20-\x20','error','event_type','TEST_REPORTING_ANALYTICS','HookRunStarted','35XFZNOD','logs','361244qPCSeF','shutdown','nUdVE','eventUrl','Remaining\x20Queue\x20Length\x20-\x20','TEST_ATTACHMENT','Interval-Queue','LTCEX','TestRunFinished','bNyxd','test_run','start','uploadPending','gEJXb','KfgXW','data','resetEventBatchPolling','RESETTING','queue','UaBFZ','yHLVX','HlqVR','pendingUploads','6892497tTLKqs','join','started','HookRunFinished','removeEventBatchPolling','NDLZf','ajwQq','RQJZp','UYORm','\x20:\x20','siqYe','NCDGC','\x20REQUEST\x20TO\x20','oVWns','REMOVING','LogCreated','getInstance','414175IlMzHB'];a128_0xb287=function(){return _0x3a1987;};return a128_0xb287();}function a128_0x5cea(_0x5af5db,_0x12bda7){const _0xb287d9=a128_0xb287();return a128_0x5cea=function(_0x5cea5a,_0x58707c){_0x5cea5a=_0x5cea5a-0x1ae;let _0x25d42b=_0xb287d9[_0x5cea5a];return _0x25d42b;},a128_0x5cea(_0x5af5db,_0x12bda7);}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_0x37fdbb(0x1f1)),util=require(a128_0x37fdbb(0x1c3)),constants=require(a128_0x37fdbb(0x1d8));class RequestQueueHandler{static [a128_0x37fdbb(0x1e1)];[a128_0x37fdbb(0x211)]=0x0;constructor(){const _0x647e0f=a128_0x37fdbb,_0x270c54={};_0x270c54['frmKm']=_0x647e0f(0x1cd),_0x270c54[_0x647e0f(0x208)]='upload-attachments',_0x270c54[_0x647e0f(0x1eb)]=_0x647e0f(0x1bc),_0x270c54[_0x647e0f(0x202)]=_0x647e0f(0x221),_0x270c54[_0x647e0f(0x1d9)]=_0x647e0f(0x1e7),_0x270c54[_0x647e0f(0x219)]=_0x647e0f(0x203),_0x270c54[_0x647e0f(0x217)]=_0x647e0f(0x1b5),_0x270c54[_0x647e0f(0x1e8)]=_0x647e0f(0x215),_0x270c54[_0x647e0f(0x21f)]=_0x647e0f(0x1e4),_0x270c54[_0x647e0f(0x1c1)]=_0x647e0f(0x1f8),_0x270c54[_0x647e0f(0x1d2)]=_0x647e0f(0x1d5);const _0x2445f9=_0x270c54,_0x2b7fe5=_0x2445f9[_0x647e0f(0x1c2)][_0x647e0f(0x1de)]('|');let _0x46f3fb=0x0;while(!![]){switch(_0x2b7fe5[_0x46f3fb++]){case'0':this['uploadAttachmentUrl']=_0x2445f9['gEJXb'];continue;case'1':this[_0x647e0f(0x1e5)]=_0x2445f9[_0x647e0f(0x1eb)];continue;case'2':this[_0x647e0f(0x20d)]=[];continue;case'3':this['BATCH_EVENT_TYPES']=[_0x2445f9[_0x647e0f(0x202)],_0x2445f9[_0x647e0f(0x1d9)],_0x2445f9[_0x647e0f(0x219)],_0x2445f9[_0x647e0f(0x217)],_0x2445f9['WHrnw'],_0x2445f9[_0x647e0f(0x21f)],_0x2445f9['FuRkr']];continue;case'4':this[_0x647e0f(0x214)]=![];continue;case'5':this[_0x647e0f(0x1fe)]=_0x2445f9['HIHBH'];continue;case'6':this['pollEventBatchInterval']=null;continue;}break;}}static[a128_0x37fdbb(0x222)](){const _0x5981e9=a128_0x37fdbb;return!RequestQueueHandler[_0x5981e9(0x1e1)]&&(RequestQueueHandler[_0x5981e9(0x1e1)]=new RequestQueueHandler()),RequestQueueHandler[_0x5981e9(0x1e1)];}[a128_0x37fdbb(0x206)]=()=>{const _0x516d70=a128_0x37fdbb;!this[_0x516d70(0x214)]&&(this[_0x516d70(0x214)]=!![],this['startEventBatchPolling']());};['add']=_0x2c1ffa=>{const _0x5887fe=a128_0x37fdbb,_0x5b214a={'bNyxd':function(_0x2e5a1a,_0x3499c0){return _0x2e5a1a===_0x3499c0;},'ukptj':'TEST_SCREENSHOT','GKXGH':function(_0x4afa08,_0x5505d2){return _0x4afa08>_0x5505d2;},'JsTdi':_0x5887fe(0x200),'NCDGC':function(_0x35f267,_0x53870e){return _0x35f267!==_0x53870e;},'mjFnu':_0x5887fe(0x203),'UaBFZ':function(_0x31f368,_0x4e0526){return _0x31f368(_0x4e0526);},'dpJrz':_0x5887fe(0x1b8)};if(this[_0x5887fe(0x1d3)][_0x5887fe(0x1ae)](_0x2c1ffa['event_type'])){if(_0x2c1ffa[_0x5887fe(0x1fa)]&&_0x2c1ffa['logs'][0x0]&&_0x5b214a[_0x5887fe(0x204)](_0x2c1ffa[_0x5887fe(0x1fa)][0x0][_0x5887fe(0x1d1)],_0x5b214a['ukptj'])){const _0x12d1b7={};return _0x12d1b7[_0x5887fe(0x1b4)]=!![],_0x12d1b7['proceedWithData']=[_0x2c1ffa],_0x12d1b7[_0x5887fe(0x1e6)]=this['screenshotEventUrl'],_0x12d1b7;}if(_0x2c1ffa[_0x5887fe(0x1fa)]&&_0x5b214a[_0x5887fe(0x1cb)](_0x2c1ffa['logs']['length'],0x0)&&_0x5b214a['bNyxd'](_0x2c1ffa[_0x5887fe(0x1fa)][0x0][_0x5887fe(0x1d1)],_0x5b214a[_0x5887fe(0x1dc)])&&_0x5b214a[_0x5887fe(0x21d)](_0x2c1ffa[_0x5887fe(0x1f6)],_0x5b214a['mjFnu'])){const _0x5af17f={};return _0x5af17f['shouldProceed']=!![],_0x5af17f[_0x5887fe(0x1b1)]=[_0x2c1ffa],_0x5af17f['proceedWithUrl']=this[_0x5887fe(0x1bf)],_0x5af17f;}this[_0x5887fe(0x20d)]['push'](_0x2c1ffa);let _0x18bdfe=null;const _0x558f2f=this[_0x5887fe(0x1b4)]();_0x558f2f&&(_0x5b214a[_0x5887fe(0x20e)](trace,_0x5b214a[_0x5887fe(0x1d7)]),_0x18bdfe=this['queue'][_0x5887fe(0x1ce)](0x0,BATCH_SIZE),this[_0x5887fe(0x20d)][_0x5887fe(0x1c7)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0xe9a6c3={};return _0xe9a6c3[_0x5887fe(0x1b4)]=_0x558f2f,_0xe9a6c3[_0x5887fe(0x1b1)]=_0x18bdfe,_0xe9a6c3[_0x5887fe(0x1e6)]=this['eventUrl'],_0xe9a6c3;}const _0x228a9a={};return _0x228a9a['shouldProceed']=!![],_0x228a9a;};[a128_0x37fdbb(0x1fc)]=async()=>{const _0x2a9d36=a128_0x37fdbb,_0x213d70={'NFJPF':_0x2a9d36(0x220),'KfgXW':function(_0x18b0a0,_0x330dda){return _0x18b0a0>_0x330dda;},'LrTzb':_0x2a9d36(0x1e9),'ZsEGH':function(_0x10f56a,_0x593149){return _0x10f56a(_0x593149);}};await this['uploadPending'](),this[_0x2a9d36(0x216)](_0x213d70[_0x2a9d36(0x1db)]);while(_0x213d70[_0x2a9d36(0x209)](this[_0x2a9d36(0x20d)]['length'],0x0)){const _0x293f5a=this[_0x2a9d36(0x20d)]['slice'](0x0,BATCH_SIZE);this[_0x2a9d36(0x20d)][_0x2a9d36(0x1c7)](0x0,BATCH_SIZE),await this[_0x2a9d36(0x1b2)](this[_0x2a9d36(0x1fe)],_0x213d70['LrTzb'],_0x293f5a);}_0x213d70[_0x2a9d36(0x209)](this[_0x2a9d36(0x211)],0x0)&&_0x213d70[_0x2a9d36(0x1ee)](debug,_0x2a9d36(0x1ef)+this[_0x2a9d36(0x211)]);};[a128_0x37fdbb(0x1b2)]=async(_0x199e0b,_0x5b8ad8,_0x1ef951)=>{const _0xbe51c9=a128_0x37fdbb,_0x3a97ee={'Zsmcs':function(_0x1db07f,_0x586559){return _0x1db07f(_0x586559);},'cEuNd':'utf8','IsrKW':function(_0x469764){return _0x469764();},'TFgsx':function(_0x190d67,_0xb69428,_0x367c52,_0x188a58,_0x172606){return _0x190d67(_0xb69428,_0x367c52,_0x188a58,_0x172606);},'BObSb':'POST','HlqVR':function(_0x122c26,_0x24f875){return _0x122c26-_0x24f875;},'nUdVE':function(_0x2c9cbe,_0x492ccb){return _0x2c9cbe-_0x492ccb;}};let _0x757ffd='';try{_0x757ffd=_0x1ef951[_0xbe51c9(0x1ed)](_0x2f1af5=>'\x27'+_0x2f1af5[_0xbe51c9(0x1f6)]+'\x27:'+(nestedKeyValue(_0x2f1af5,[_0xbe51c9(0x205),_0xbe51c9(0x1ea)])||nestedKeyValue(_0x2f1af5,[_0xbe51c9(0x1b9),_0xbe51c9(0x1ea)])))[_0xbe51c9(0x213)](','),_0x3a97ee[_0xbe51c9(0x1cf)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x5b8ad8+_0xbe51c9(0x1b7)+Buffer[_0xbe51c9(0x1f3)](util[_0xbe51c9(0x1e0)]('%j',_0x1ef951),_0x3a97ee[_0xbe51c9(0x1c8)])+_0xbe51c9(0x1bb)+_0x757ffd);}catch(_0x27caf6){_0x3a97ee[_0xbe51c9(0x1cf)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util[_0xbe51c9(0x1e0)](_0x27caf6)+'}');}const _0x1ee578={'headers':_0x3a97ee[_0xbe51c9(0x1b0)](getDefaultHeaders)};try{const _0x33cd45=await _0x3a97ee[_0xbe51c9(0x1d6)](nodeRequest,_0x3a97ee[_0xbe51c9(0x1dd)],_0x199e0b,_0x1ef951,_0x1ee578);if(_0x33cd45[_0xbe51c9(0x20a)][_0xbe51c9(0x1f5)]){const _0x245204={};_0x245204['message']=_0x33cd45[_0xbe51c9(0x20a)][_0xbe51c9(0x1f5)];throw _0x245204;}else _0x3a97ee[_0xbe51c9(0x1cf)](debug,_0x5b8ad8+_0xbe51c9(0x1ec)+_0x757ffd+'\x20--\x20'+util[_0xbe51c9(0x1e0)]('%j',_0x33cd45[_0xbe51c9(0x20a)])),this['pendingUploads']=Math[_0xbe51c9(0x1da)](0x0,_0x3a97ee[_0xbe51c9(0x210)](this[_0xbe51c9(0x211)],_0x1ef951['length']));}catch(_0x553f1a){_0x553f1a[_0xbe51c9(0x1c4)]?_0x3a97ee[_0xbe51c9(0x1cf)](debug,'EXCEPTION\x20IN\x20'+_0x5b8ad8+'\x20REQUEST\x20TO\x20'+constants[_0xbe51c9(0x1f7)]+_0xbe51c9(0x21b)+_0x553f1a[_0xbe51c9(0x1c4)]['status']+'\x20'+_0x553f1a[_0xbe51c9(0x1c4)][_0xbe51c9(0x1c0)]+'\x20'+util[_0xbe51c9(0x1e0)]('%j',_0x553f1a[_0xbe51c9(0x1c4)])):_0x3a97ee[_0xbe51c9(0x1cf)](debug,_0xbe51c9(0x1c5)+_0x5b8ad8+_0xbe51c9(0x21e)+constants[_0xbe51c9(0x1f7)]+_0xbe51c9(0x21b)+(_0x553f1a['message']||_0x553f1a)),this[_0xbe51c9(0x211)]=Math['max'](0x0,_0x3a97ee[_0xbe51c9(0x1fd)](this['pendingUploads'],_0x1ef951['length']));}};['startEventBatchPolling']=()=>{const _0x20f53f=a128_0x37fdbb,_0x3148c8={'gKQBZ':function(_0x3c85e0,_0x2f03c4){return _0x3c85e0>_0x2f03c4;},'BKhnP':function(_0x3caf25,_0x3fae54){return _0x3caf25(_0x3fae54);},'SfFxT':_0x20f53f(0x201),'cUmOF':function(_0x264b3c,_0x261189){return _0x264b3c(_0x261189);},'iozYE':function(_0x4a6380,_0x5db23c,_0x47ac16){return _0x4a6380(_0x5db23c,_0x47ac16);}};this[_0x20f53f(0x1c9)]=_0x3148c8[_0x20f53f(0x1cc)](setInterval,async()=>{const _0x575534=_0x20f53f;if(_0x3148c8[_0x575534(0x1b3)](this[_0x575534(0x20d)][_0x575534(0x1c6)],0x0)){_0x3148c8[_0x575534(0x1f0)](trace,_0x575534(0x1f4)+this[_0x575534(0x20d)][_0x575534(0x1c6)]);const _0x30a9c7=this[_0x575534(0x20d)][_0x575534(0x1ce)](0x0,BATCH_SIZE);this['queue'][_0x575534(0x1c7)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x575534(0x1fe)],_0x3148c8[_0x575534(0x1e2)],_0x30a9c7),_0x3148c8[_0x575534(0x1df)](trace,_0x575534(0x1ff)+this['queue'][_0x575534(0x1c6)]);}},BATCH_INTERVAL);};[a128_0x37fdbb(0x20b)]=()=>{const _0x2707db=a128_0x37fdbb,_0x4b0180={};_0x4b0180[_0x2707db(0x1be)]=_0x2707db(0x20c);const _0x47e894=_0x4b0180;this[_0x2707db(0x216)](_0x47e894['wtsSd']),this['startEventBatchPolling']();};['removeEventBatchPolling']=_0x493289=>{const _0x16df29=a128_0x37fdbb,_0x31c05b={'vmGHb':function(_0x505c86,_0x4745aa){return _0x505c86(_0x4745aa);},'ExWib':function(_0x325a20,_0x5f4d84){return _0x325a20===_0x5f4d84;},'UYORm':_0x16df29(0x220)};this['pollEventBatchInterval']&&(_0x31c05b[_0x16df29(0x1d0)](clearInterval,this[_0x16df29(0x1c9)]),this[_0x16df29(0x1c9)]=null,_0x31c05b[_0x16df29(0x1ba)](_0x493289,_0x31c05b[_0x16df29(0x21a)])&&(this[_0x16df29(0x214)]=![]));};[a128_0x37fdbb(0x1b4)]=()=>{const _0xe31797=a128_0x37fdbb,_0x14eae1={};_0x14eae1[_0xe31797(0x21c)]=function(_0x353c86,_0x431726){return _0x353c86>=_0x431726;};const _0x3463df=_0x14eae1;return _0x3463df['siqYe'](this[_0xe31797(0x20d)][_0xe31797(0x1c6)],BATCH_SIZE);};async['uploadPending'](_0x217ca2=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x33b016=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x570f5d=a128_0x37fdbb,_0x5d67e1={'nSjOW':function(_0x83c87c,_0x381030){return _0x83c87c<=_0x381030;},'yHLVX':function(_0x383a72,_0x492901){return _0x383a72(_0x492901);},'ajwQq':function(_0x24687f,_0x2d9456){return _0x24687f-_0x2d9456;}};if(_0x5d67e1[_0x570f5d(0x1d4)](this[_0x570f5d(0x211)],0x0)||_0x5d67e1[_0x570f5d(0x1d4)](_0x217ca2,0x0))return;return await _0x5d67e1[_0x570f5d(0x20f)](sleep,_0x33b016),this[_0x570f5d(0x207)](_0x5d67e1[_0x570f5d(0x218)](_0x217ca2,_0x33b016));}}module[a128_0x37fdbb(0x1ca)]=RequestQueueHandler;
|