browserstack-node-sdk 1.60.0 → 1.60.1
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/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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/puppeteer-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/newmanTestFramework.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/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.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/caCertHelper.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/driverInitErrorReporter.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/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a137_0x1227f2=a137_0x2f8b;(function(_0x36a6bd,_0x268fa7){const _0x208167=a137_0x2f8b,_0x32d38d=_0x36a6bd();while(!![]){try{const _0xef9074=parseInt(_0x208167(0x11d))/0x1*(-parseInt(_0x208167(0xde))/0x2)+parseInt(_0x208167(0xd9))/0x3*(parseInt(_0x208167(0xf6))/0x4)+parseInt(_0x208167(0xfe))/0x5*(parseInt(_0x208167(0xf1))/0x6)+parseInt(_0x208167(0xcd))/0x7+-parseInt(_0x208167(0x10a))/0x8*(parseInt(_0x208167(0xf2))/0x9)+parseInt(_0x208167(0xe1))/0xa*(-parseInt(_0x208167(0xf0))/0xb)+parseInt(_0x208167(0xdc))/0xc;if(_0xef9074===_0x268fa7)break;else _0x32d38d['push'](_0x32d38d['shift']());}catch(_0xa33e0b){_0x32d38d['push'](_0x32d38d['shift']());}}}(a137_0x5a83,0x8204a));const winston=require(a137_0x1227f2(0x114)),path=require(a137_0x1227f2(0x10b)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a137_0x1227f2(0xd7)),tempLogDir=a137_0x1227f2(0xee);let redactRegex=null,lastConfigHash='';const logFormat=winston[a137_0x1227f2(0xda)](_0xe3b290=>{const _0xe0d333=a137_0x1227f2,_0x75fb5c={};_0x75fb5c[_0xe0d333(0xf4)]=function(_0x42c2d9,_0x3708ad){return _0x42c2d9!==_0x3708ad;},_0x75fb5c[_0xe0d333(0x109)]='string',_0x75fb5c[_0xe0d333(0xf9)]=function(_0x4fca68,_0x3d49db){return _0x4fca68+_0x3d49db;},_0x75fb5c[_0xe0d333(0xe0)]=function(_0x53ed17,_0x356806){return _0x53ed17>_0x356806;},_0x75fb5c['dHlgI']=_0xe0d333(0xe2);const _0x49c35b=_0x75fb5c;_0x49c35b[_0xe0d333(0xf4)](typeof _0xe3b290[_0xe0d333(0x11e)],_0x49c35b['zMtkL'])&&(_0xe3b290[_0xe0d333(0x11e)]=JSON[_0xe0d333(0x106)](_0xe3b290[_0xe0d333(0x11e)]));const _0x30020a=global[_0xe0d333(0xe6)]&&global[_0xe0d333(0xe6)][_0xe0d333(0x10c)]||'',_0x23134e=global[_0xe0d333(0xe6)]&&global[_0xe0d333(0xe6)][_0xe0d333(0x101)]||'',_0x446ad3=_0x49c35b[_0xe0d333(0xf9)](_0x49c35b[_0xe0d333(0xf9)](_0x30020a,'|'),_0x23134e);if(_0x49c35b[_0xe0d333(0xf4)](_0x446ad3,lastConfigHash)){lastConfigHash=_0x446ad3;const _0x2d59fb=[_0x30020a,_0x23134e][_0xe0d333(0xea)](Boolean);if(_0x49c35b['PUlas'](_0x2d59fb[_0xe0d333(0xd1)],0x0)){const _0x113ecd=_0x2d59fb[_0xe0d333(0xfd)](_0x248fb4=>_0x248fb4[_0xe0d333(0xd8)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0xe0d333(0xfa)]('|');redactRegex=new RegExp(_0x113ecd,'g');}else redactRegex=null;}return redactRegex&&(_0xe3b290[_0xe0d333(0x11e)]=_0xe3b290[_0xe0d333(0x11e)][_0xe0d333(0xd8)](redactRegex,_0x49c35b[_0xe0d333(0xf7)])),_0xe3b290;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x5c0e1b=>{const _0x54f6a7=a137_0x1227f2,_0x19ceb2={};_0x19ceb2[_0x54f6a7(0x121)]=function(_0x7d77d9,_0x315a54){return _0x7d77d9!==_0x315a54;},_0x19ceb2[_0x54f6a7(0x107)]=_0x54f6a7(0xfb),_0x19ceb2[_0x54f6a7(0xe9)]=_0x54f6a7(0xe2),_0x19ceb2[_0x54f6a7(0x116)]=_0x54f6a7(0xdf);const _0x1e8d14=_0x19ceb2;try{if(!_0x5c0e1b||_0x1e8d14[_0x54f6a7(0x121)](typeof _0x5c0e1b,_0x1e8d14[_0x54f6a7(0x107)]))return _0x5c0e1b;const _0x34eea0={};for(const _0x56022d of Object[_0x54f6a7(0x100)](_0x5c0e1b)){_0x34eea0[_0x56022d]=SENSITIVE_HEADER_REGEX[_0x54f6a7(0x10d)](_0x56022d)?_0x1e8d14[_0x54f6a7(0xe9)]:_0x5c0e1b[_0x56022d];}return _0x34eea0;}catch{return _0x1e8d14[_0x54f6a7(0x116)];}},fetchLogDir=()=>{const _0x229061=a137_0x1227f2;if(process[_0x229061(0x119)][_0x229061(0xcb)])return process[_0x229061(0x119)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x229061(0x124)](tempLogDir)&&fs[_0x229061(0x10e)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x159d23=a137_0x1227f2,_0x422700={};_0x422700[_0x159d23(0x11c)]=_0x159d23(0xf3);const _0x5f13ff=_0x422700,_0x56b256=process[_0x159d23(0x119)][_0x159d23(0x11b)],_0x1bc2ba=Object[_0x159d23(0x100)](winston[_0x159d23(0xe6)][_0x159d23(0x118)]['levels']);if(_0x56b256&&_0x1bc2ba['includes'](_0x56b256[_0x159d23(0xd0)]()))return _0x56b256['toLowerCase']();return _0x5f13ff[_0x159d23(0x11c)];},initialLogLevel=getInitialLogLevel(),a137_0x5030ab={};a137_0x5030ab['name']='console.info',a137_0x5030ab[a137_0x1227f2(0xe5)]=initialLogLevel;const transports={'loggerConsole':new winston[(a137_0x1227f2(0xec))]['Console'](a137_0x5030ab),'loggerFile':new winston[(a137_0x1227f2(0xec))][(a137_0x1227f2(0x11f))]({'filename':path['join'](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a137_0x1227f2(0xec))]['File']({'filename':path['join'](logDir,a137_0x1227f2(0xd3)),'level':a137_0x1227f2(0x110)}),'debugCliLoggerFile':new winston[(a137_0x1227f2(0xec))][(a137_0x1227f2(0x11f))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a137_0x1227f2(0x110)}),'buildLinkTransport':new winston[(a137_0x1227f2(0xec))]['File']({'filename':path[a137_0x1227f2(0xfa)](logDir,a137_0x1227f2(0x108)),'level':a137_0x1227f2(0x110)})},automationTransports={};process[a137_0x1227f2(0x119)][a137_0x1227f2(0xcf)]===a137_0x1227f2(0xe3)&&(automationTransports[a137_0x1227f2(0x120)]=new winston['transports'][(a137_0x1227f2(0x11f))]({'filename':path[a137_0x1227f2(0xfa)](logDir,'automation.log'),'level':a137_0x1227f2(0x110)}));transports['loggerConsole']['on'](a137_0x1227f2(0x123),_0x537684=>{const _0x1d66bd=a137_0x1227f2,_0x2ef0a2={};_0x2ef0a2[_0x1d66bd(0xff)]=function(_0x2399fe,_0x2e3ecd){return _0x2399fe===_0x2e3ecd;},_0x2ef0a2['JgArO']='EPIPE',_0x2ef0a2[_0x1d66bd(0xe4)]=_0x1d66bd(0xed);const _0x24d0cb=_0x2ef0a2;if(_0x24d0cb['EicLa'](_0x537684[_0x1d66bd(0xcc)],_0x24d0cb[_0x1d66bd(0x112)])){console[_0x1d66bd(0xee)](_0x24d0cb['dGniQ'],_0x537684[_0x1d66bd(0x11e)]);return;}throw _0x537684;});const a137_0x9a0122={};a137_0x9a0122[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x4f1232={};a137_0x4f1232[a137_0x1227f2(0xe5)]=!![];const winstonLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston[a137_0x1227f2(0xda)]['timestamp'](a137_0x9a0122),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x105)](a137_0x4f1232),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x2b3c7f=>_0x2b3c7f[a137_0x1227f2(0x115)]+'\x20-\x20'+_0x2b3c7f['level']+':\x20'+_0x2b3c7f['message'])),'transports':[transports[a137_0x1227f2(0xd5)]]},a137_0x31e46f={};a137_0x31e46f[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x5b28cb={};a137_0x5b28cb[a137_0x1227f2(0xe5)]=!![];const winstonFileLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x115)](a137_0x31e46f),winston['format'][a137_0x1227f2(0x105)](a137_0x5b28cb),winston[a137_0x1227f2(0xda)]['printf'](_0x3268fa=>_0x3268fa['level']+':\x20'+_0x3268fa[a137_0x1227f2(0x11e)])),'transports':[]},a137_0x32d96b={};a137_0x32d96b[a137_0x1227f2(0xda)]=a137_0x1227f2(0x113);const a137_0x435d3f={};a137_0x435d3f[a137_0x1227f2(0xe5)]=!![];const a137_0x2f93d5={};function a137_0x2f8b(_0x3e7e7f,_0x49043a){const _0x5a834e=a137_0x5a83();return a137_0x2f8b=function(_0x2f8bb1,_0x5c473d){_0x2f8bb1=_0x2f8bb1-0xca;let _0x4d0e6a=_0x5a834e[_0x2f8bb1];return _0x4d0e6a;},a137_0x2f8b(_0x3e7e7f,_0x49043a);}a137_0x2f93d5[a137_0x1227f2(0xe5)]=a137_0x1227f2(0x110);const BuildLoggerParams={'format':winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xdd)](winston['format']['timestamp'](a137_0x32d96b),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0x105)](a137_0x435d3f),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x1dedcd=>_0x1dedcd[a137_0x1227f2(0x115)]+a137_0x1227f2(0xce)+_0x1dedcd[a137_0x1227f2(0xe5)]+':\x20'+_0x1dedcd[a137_0x1227f2(0x11e)])),'transports':[transports[a137_0x1227f2(0xd6)],new winston['transports'][(a137_0x1227f2(0x104))](a137_0x2f93d5)]},a137_0x3c2599={};a137_0x3c2599[a137_0x1227f2(0xfc)]=()=>{},a137_0x3c2599[a137_0x1227f2(0xf3)]=()=>{},a137_0x3c2599[a137_0x1227f2(0xe7)]=()=>{},a137_0x3c2599['error']=()=>{},a137_0x3c2599['debug']=()=>{},a137_0x3c2599['silly']=()=>{},exports[a137_0x1227f2(0x11a)]=process[a137_0x1227f2(0x119)][a137_0x1227f2(0xcf)]===a137_0x1227f2(0xe3)?winston[a137_0x1227f2(0x103)]({'format':winston[a137_0x1227f2(0xda)]['combine'](winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xf5)](),winston['format']['timestamp'](),logFormat(),winston[a137_0x1227f2(0xda)][a137_0x1227f2(0xeb)](_0x12276f=>_0x12276f['level']+':\x20'+_0x12276f['message'])),'transports':[automationTransports[a137_0x1227f2(0x120)]]}):a137_0x3c2599;const initialize=()=>{const _0x3971c9=a137_0x1227f2,_0x245202={};_0x245202[_0x3971c9(0x117)]=_0x3971c9(0x110);const _0x1f371e=_0x245202,_0x562402=transports[_0x3971c9(0xd5)]['level']||initialLogLevel;transports[_0x3971c9(0x122)]&&(exports[_0x3971c9(0xe8)][_0x3971c9(0xf8)](transports[_0x3971c9(0x122)]),exports['fileLogger']['remove'](transports[_0x3971c9(0x122)])),transports[_0x3971c9(0xef)]&&(exports[_0x3971c9(0xe8)]['remove'](transports[_0x3971c9(0xef)]),exports[_0x3971c9(0x111)][_0x3971c9(0xf8)](transports[_0x3971c9(0xef)])),transports[_0x3971c9(0x122)]=new winston['transports'][(_0x3971c9(0x11f))]({'filename':path[_0x3971c9(0xfa)](exports[_0x3971c9(0xd4)],LOG_FILE_NAME),'level':_0x562402}),transports[_0x3971c9(0xef)]=new winston[(_0x3971c9(0xec))][(_0x3971c9(0x11f))]({'filename':path['join'](exports[_0x3971c9(0xd4)],DEBUG_LOG_FILE_NAME),'level':_0x1f371e[_0x3971c9(0x117)]}),transports[_0x3971c9(0xdb)]=new winston['transports'][(_0x3971c9(0x11f))]({'filename':path[_0x3971c9(0xfa)](exports['logDir'],DEBUG_CLI_LOG_FILE_NAME),'level':_0x1f371e[_0x3971c9(0x117)]}),exports[_0x3971c9(0xe8)][_0x3971c9(0xca)](transports['loggerFile']),exports[_0x3971c9(0xe8)]['add'](transports[_0x3971c9(0xef)]),exports['fileLogger'][_0x3971c9(0xca)](transports[_0x3971c9(0x122)]),exports[_0x3971c9(0x111)][_0x3971c9(0xca)](transports[_0x3971c9(0xef)]);};function a137_0x5a83(){const _0x5c9743=['length','initialize','/usage-debug.log','logDir','loggerConsole','buildLinkTransport','../bin/utils/constants','replace','3ZXlpgE','format','debugCliLoggerFile','14149260chvSnd','combine','21074ANUhqb','[REDACTED\x20HEADERS]','PUlas','1934420YDetrA','[REDACTED]','true','dGniQ','level','config','warn','winstonLogger','QUZJt','filter','printf','transports','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','log','debugLoggerFile','33wWuEkD','234390YBhJqA','59481INyBOV','info','uEwkS','uncolorize','2341884FTOJvI','dHlgI','remove','oRiOz','join','object','http','map','25KBlPWt','EicLa','keys','accessKey','buildLogger','createLogger','Console','colorize','stringify','XIrla','/usage.log','zMtkL','488xevlEf','path','userName','test','mkdirSync','maskHeaders','silly','fileLogger','JgArO','YYYY-MM-DD\x20HH:mm:ss','winston','timestamp','BYHPR','WRaAn','npm','env','automationLogger','BROWSERSTACK_LOG_LEVEL','lwilq','61OaKboF','message','File','automationLoggerFile','LBJfA','loggerFile','error','existsSync','add','BROWSERSTACK_INTERNAL_LOG_DIR','code','1392195IIGoBs','\x20-\x20','BROWSERSTACK_AUTOMATION_LOGS','toLowerCase'];a137_0x5a83=function(){return _0x5c9743;};return a137_0x5a83();}exports[a137_0x1227f2(0xe8)]=new winston[(a137_0x1227f2(0x103))](winstonLoggerParams),exports[a137_0x1227f2(0x111)]=new winston[(a137_0x1227f2(0x103))](winstonFileLoggerParams),exports[a137_0x1227f2(0x102)]=new winston[(a137_0x1227f2(0x103))](BuildLoggerParams),exports[a137_0x1227f2(0xd4)]=logDir,exports['getLogDir']=()=>{return exports['logDir'];},exports[a137_0x1227f2(0xec)]=transports,exports[a137_0x1227f2(0xd2)]=initialize,exports[a137_0x1227f2(0x10f)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a137_0x441026=a137_0x2c07;(function(_0x589ff2,_0x118e44){const _0x379f34=a137_0x2c07,_0x2713dd=_0x589ff2();while(!![]){try{const _0x4eb535=-parseInt(_0x379f34(0x112))/0x1+-parseInt(_0x379f34(0x140))/0x2*(-parseInt(_0x379f34(0x10a))/0x3)+parseInt(_0x379f34(0xf1))/0x4*(parseInt(_0x379f34(0xf3))/0x5)+parseInt(_0x379f34(0x11d))/0x6+parseInt(_0x379f34(0xf2))/0x7+-parseInt(_0x379f34(0x132))/0x8*(-parseInt(_0x379f34(0x111))/0x9)+parseInt(_0x379f34(0x115))/0xa*(-parseInt(_0x379f34(0x129))/0xb);if(_0x4eb535===_0x118e44)break;else _0x2713dd['push'](_0x2713dd['shift']());}catch(_0x12025c){_0x2713dd['push'](_0x2713dd['shift']());}}}(a137_0x6d74,0x42da5));const winston=require(a137_0x441026(0x142)),path=require(a137_0x441026(0x130)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a137_0x441026(0x136)),tempLogDir=a137_0x441026(0x13f);let redactRegex=null,lastConfigHash='';const logFormat=winston[a137_0x441026(0x12f)](_0x2b6c28=>{const _0x627bf3=a137_0x441026,_0x2682b2={};_0x2682b2[_0x627bf3(0x124)]=function(_0x2774f9,_0xc628d1){return _0x2774f9!==_0xc628d1;},_0x2682b2[_0x627bf3(0x13a)]=_0x627bf3(0x147),_0x2682b2['iKFut']=function(_0x36fec8,_0xe2917b){return _0x36fec8+_0xe2917b;},_0x2682b2[_0x627bf3(0xf9)]=function(_0x396b36,_0x3e21b2){return _0x396b36+_0x3e21b2;},_0x2682b2['FXiJH']=function(_0x452777,_0x12ce65){return _0x452777!==_0x12ce65;},_0x2682b2['snkVX']=function(_0x5b1685,_0x4a3508){return _0x5b1685>_0x4a3508;},_0x2682b2[_0x627bf3(0xf6)]='[REDACTED]';const _0x7871e9=_0x2682b2;_0x7871e9[_0x627bf3(0x124)](typeof _0x2b6c28['message'],_0x7871e9['oDRQV'])&&(_0x2b6c28[_0x627bf3(0xfd)]=JSON[_0x627bf3(0x104)](_0x2b6c28[_0x627bf3(0xfd)]));const _0x27a606=global[_0x627bf3(0x10d)]&&global[_0x627bf3(0x10d)][_0x627bf3(0x145)]||'',_0x1acce5=global[_0x627bf3(0x10d)]&&global[_0x627bf3(0x10d)][_0x627bf3(0x114)]||'',_0x337e43=_0x7871e9[_0x627bf3(0x12d)](_0x7871e9[_0x627bf3(0xf9)](_0x27a606,'|'),_0x1acce5);if(_0x7871e9[_0x627bf3(0x108)](_0x337e43,lastConfigHash)){lastConfigHash=_0x337e43;const _0x1d942d=[_0x27a606,_0x1acce5][_0x627bf3(0xf4)](Boolean);if(_0x7871e9[_0x627bf3(0x106)](_0x1d942d[_0x627bf3(0x120)],0x0)){const _0x627768=_0x1d942d[_0x627bf3(0x11f)](_0x274f9f=>_0x274f9f['replace'](/[.*+?^${}()|[\]\\]/g,_0x627bf3(0x135)))['join']('|');redactRegex=new RegExp(_0x627768,'g');}else redactRegex=null;}return redactRegex&&(_0x2b6c28[_0x627bf3(0xfd)]=_0x2b6c28['message']['replace'](redactRegex,_0x7871e9[_0x627bf3(0xf6)])),_0x2b6c28;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x335e63=>{const _0x10097b=a137_0x441026,_0x1a3028={};_0x1a3028[_0x10097b(0x13d)]=function(_0x58b7f4,_0x1cb48a){return _0x58b7f4!==_0x1cb48a;},_0x1a3028[_0x10097b(0x125)]=_0x10097b(0x121),_0x1a3028[_0x10097b(0x116)]='[REDACTED]',_0x1a3028[_0x10097b(0x11c)]=_0x10097b(0x126);const _0x2d513b=_0x1a3028;try{if(!_0x335e63||_0x2d513b['KGUSJ'](typeof _0x335e63,_0x2d513b[_0x10097b(0x125)]))return _0x335e63;const _0x32b1c5={};for(const _0x5936fa of Object['keys'](_0x335e63)){_0x32b1c5[_0x5936fa]=SENSITIVE_HEADER_REGEX[_0x10097b(0x13e)](_0x5936fa)?_0x2d513b['trPGJ']:_0x335e63[_0x5936fa];}return _0x32b1c5;}catch{return _0x2d513b[_0x10097b(0x11c)];}},fetchLogDir=()=>{const _0x50c24c=a137_0x441026;if(process[_0x50c24c(0x109)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process['env'][_0x50c24c(0x123)];else!fs[_0x50c24c(0x13c)](tempLogDir)&&fs[_0x50c24c(0xfb)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x41a0cb=a137_0x441026,_0x2e7187={};_0x2e7187[_0x41a0cb(0x105)]=_0x41a0cb(0x100);const _0x5a8f1b=_0x2e7187,_0x322909=process[_0x41a0cb(0x109)][_0x41a0cb(0x110)],_0x578294=Object[_0x41a0cb(0xf7)](winston[_0x41a0cb(0x10d)]['npm'][_0x41a0cb(0xff)]);if(_0x322909&&_0x578294[_0x41a0cb(0x14a)](_0x322909[_0x41a0cb(0xef)]()))return _0x322909['toLowerCase']();return _0x5a8f1b[_0x41a0cb(0x105)];},initialLogLevel=getInitialLogLevel(),a137_0x24b092={};a137_0x24b092[a137_0x441026(0x12c)]=a137_0x441026(0x113),a137_0x24b092[a137_0x441026(0x117)]=initialLogLevel;const transports={'loggerConsole':new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14c))](a137_0x24b092),'loggerFile':new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14d))]({'filename':path[a137_0x441026(0x107)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14d))]({'filename':path['join'](logDir,a137_0x441026(0x133)),'level':a137_0x441026(0x103)}),'debugCliLoggerFile':new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14d))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':'silly'}),'buildLinkTransport':new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14d))]({'filename':path[a137_0x441026(0x107)](logDir,a137_0x441026(0x128)),'level':a137_0x441026(0x103)})},automationTransports={};process[a137_0x441026(0x109)]['BROWSERSTACK_AUTOMATION_LOGS']===a137_0x441026(0xfe)&&(automationTransports[a137_0x441026(0x10f)]=new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14d))]({'filename':path['join'](logDir,a137_0x441026(0x10c)),'level':a137_0x441026(0x103)}));transports[a137_0x441026(0x137)]['on'](a137_0x441026(0x118),_0x207e02=>{const _0x4b586c=a137_0x441026,_0xfdf673={};_0xfdf673[_0x4b586c(0x148)]=function(_0x5ee75f,_0x4e6196){return _0x5ee75f===_0x4e6196;},_0xfdf673[_0x4b586c(0x141)]=_0x4b586c(0x14b),_0xfdf673[_0x4b586c(0xfc)]=_0x4b586c(0x119);const _0x5c51e1=_0xfdf673;if(_0x5c51e1['uBJiL'](_0x207e02[_0x4b586c(0x146)],_0x5c51e1[_0x4b586c(0x141)])){console[_0x4b586c(0x13f)](_0x5c51e1[_0x4b586c(0xfc)],_0x207e02[_0x4b586c(0xfd)]);return;}throw _0x207e02;});const a137_0x1650e1={};a137_0x1650e1[a137_0x441026(0x12f)]='YYYY-MM-DD\x20HH:mm:ss';const a137_0xb9d9e6={};a137_0xb9d9e6['level']=!![];const winstonLoggerParams={'format':winston['format'][a137_0x441026(0x12e)](winston[a137_0x441026(0x12f)][a137_0x441026(0x144)](a137_0x1650e1),winston[a137_0x441026(0x12f)][a137_0x441026(0x11b)](a137_0xb9d9e6),winston[a137_0x441026(0x12f)][a137_0x441026(0x13b)](_0x4a2d34=>_0x4a2d34[a137_0x441026(0x144)]+a137_0x441026(0x138)+_0x4a2d34['level']+':\x20'+_0x4a2d34[a137_0x441026(0xfd)])),'transports':[transports[a137_0x441026(0x137)]]},a137_0x53a60b={};a137_0x53a60b[a137_0x441026(0x12f)]=a137_0x441026(0x122);const a137_0xa41544={};a137_0xa41544[a137_0x441026(0x117)]=!![];const winstonFileLoggerParams={'format':winston[a137_0x441026(0x12f)]['combine'](winston[a137_0x441026(0x12f)][a137_0x441026(0x144)](a137_0x53a60b),winston[a137_0x441026(0x12f)][a137_0x441026(0x11b)](a137_0xa41544),winston['format'][a137_0x441026(0x13b)](_0x32cfc5=>_0x32cfc5['level']+':\x20'+_0x32cfc5[a137_0x441026(0xfd)])),'transports':[]},a137_0x2d69e4={};a137_0x2d69e4[a137_0x441026(0x12f)]=a137_0x441026(0x122);const a137_0x1739eb={};function a137_0x6d74(){const _0x25e8ed=['11007XPFBEx','245083HHCkRq','console.info','accessKey','163090xKAYQv','trPGJ','level','error','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','warn','colorize','UvPXS','1734468iVpeRo','BVYcA','map','length','object','YYYY-MM-DD\x20HH:mm:ss','BROWSERSTACK_INTERNAL_LOG_DIR','wugFj','VAqTj','[REDACTED\x20HEADERS]','remove','/usage.log','759XMHZny','debugLoggerFile','winstonLogger','name','iKFut','combine','format','path','automationLogger','2152UxZqoh','/usage-debug.log','createLogger','\x5c$&','../bin/utils/constants','loggerConsole','\x20-\x20','http','oDRQV','printf','existsSync','KGUSJ','test','log','1087246fbhHOa','ERuIa','winston','getLogDir','timestamp','userName','code','string','uBJiL','initialize','includes','EPIPE','Console','File','toLowerCase','loggerFile','29856EbBzbb','660919HlQLAH','260oZrgdK','filter','BROWSERSTACK_AUTOMATION_LOGS','mgJFn','keys','logDir','OkpAY','fileLogger','mkdirSync','SUNev','message','true','levels','info','buildLogger','add','silly','stringify','sJCxx','snkVX','join','FXiJH','env','3vjxPTJ','debugCliLoggerFile','automation.log','config','transports','automationLoggerFile','BROWSERSTACK_LOG_LEVEL'];a137_0x6d74=function(){return _0x25e8ed;};return a137_0x6d74();}a137_0x1739eb[a137_0x441026(0x117)]=!![];const a137_0x1f0a6d={};a137_0x1f0a6d[a137_0x441026(0x117)]=a137_0x441026(0x103);const BuildLoggerParams={'format':winston[a137_0x441026(0x12f)]['combine'](winston[a137_0x441026(0x12f)][a137_0x441026(0x144)](a137_0x2d69e4),winston[a137_0x441026(0x12f)][a137_0x441026(0x11b)](a137_0x1739eb),winston[a137_0x441026(0x12f)][a137_0x441026(0x13b)](_0x4e09c0=>_0x4e09c0[a137_0x441026(0x144)]+a137_0x441026(0x138)+_0x4e09c0[a137_0x441026(0x117)]+':\x20'+_0x4e09c0['message'])),'transports':[transports['buildLinkTransport'],new winston[(a137_0x441026(0x10e))][(a137_0x441026(0x14c))](a137_0x1f0a6d)]},a137_0x34b861={};function a137_0x2c07(_0x31f38e,_0x35b597){const _0x6d748=a137_0x6d74();return a137_0x2c07=function(_0x2c0755,_0x40804b){_0x2c0755=_0x2c0755-0xef;let _0x41ee54=_0x6d748[_0x2c0755];return _0x41ee54;},a137_0x2c07(_0x31f38e,_0x35b597);}a137_0x34b861[a137_0x441026(0x139)]=()=>{},a137_0x34b861[a137_0x441026(0x100)]=()=>{},a137_0x34b861[a137_0x441026(0x11a)]=()=>{},a137_0x34b861[a137_0x441026(0x118)]=()=>{},a137_0x34b861['debug']=()=>{},a137_0x34b861['silly']=()=>{},exports[a137_0x441026(0x131)]=process[a137_0x441026(0x109)][a137_0x441026(0xf5)]===a137_0x441026(0xfe)?winston['createLogger']({'format':winston[a137_0x441026(0x12f)]['combine'](winston[a137_0x441026(0x12f)]['uncolorize'](),winston[a137_0x441026(0x12f)][a137_0x441026(0x144)](),logFormat(),winston['format']['printf'](_0x320dad=>_0x320dad['level']+':\x20'+_0x320dad['message'])),'transports':[automationTransports[a137_0x441026(0x10f)]]}):a137_0x34b861;const initialize=()=>{const _0x1f6308=a137_0x441026,_0x1a3275={};_0x1a3275['BVYcA']=_0x1f6308(0x103);const _0x36905f=_0x1a3275,_0x192afd=transports['loggerConsole']['level']||initialLogLevel;transports[_0x1f6308(0xf0)]&&(exports[_0x1f6308(0x12b)]['remove'](transports[_0x1f6308(0xf0)]),exports[_0x1f6308(0xfa)][_0x1f6308(0x127)](transports[_0x1f6308(0xf0)])),transports[_0x1f6308(0x12a)]&&(exports['winstonLogger']['remove'](transports[_0x1f6308(0x12a)]),exports[_0x1f6308(0xfa)][_0x1f6308(0x127)](transports[_0x1f6308(0x12a)])),transports[_0x1f6308(0xf0)]=new winston[(_0x1f6308(0x10e))][(_0x1f6308(0x14d))]({'filename':path['join'](exports[_0x1f6308(0xf8)],LOG_FILE_NAME),'level':_0x192afd}),transports['debugLoggerFile']=new winston[(_0x1f6308(0x10e))][(_0x1f6308(0x14d))]({'filename':path[_0x1f6308(0x107)](exports[_0x1f6308(0xf8)],DEBUG_LOG_FILE_NAME),'level':_0x36905f[_0x1f6308(0x11e)]}),transports[_0x1f6308(0x10b)]=new winston[(_0x1f6308(0x10e))][(_0x1f6308(0x14d))]({'filename':path['join'](exports[_0x1f6308(0xf8)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x36905f[_0x1f6308(0x11e)]}),exports[_0x1f6308(0x12b)][_0x1f6308(0x102)](transports[_0x1f6308(0xf0)]),exports['winstonLogger']['add'](transports['debugLoggerFile']),exports['fileLogger'][_0x1f6308(0x102)](transports[_0x1f6308(0xf0)]),exports[_0x1f6308(0xfa)][_0x1f6308(0x102)](transports[_0x1f6308(0x12a)]);};exports[a137_0x441026(0x12b)]=new winston['createLogger'](winstonLoggerParams),exports[a137_0x441026(0xfa)]=new winston[(a137_0x441026(0x134))](winstonFileLoggerParams),exports[a137_0x441026(0x101)]=new winston[(a137_0x441026(0x134))](BuildLoggerParams),exports[a137_0x441026(0xf8)]=logDir,exports[a137_0x441026(0x143)]=()=>{const _0x210263=a137_0x441026;return exports[_0x210263(0xf8)];},exports[a137_0x441026(0x10e)]=transports,exports[a137_0x441026(0x149)]=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a138_0x292077=a138_0x1033;(function(_0x145e25,_0x3a7f01){const _0x2d6ed9=a138_0x1033,_0x3792fb=_0x145e25();while(!![]){try{const _0x25807a=parseInt(_0x2d6ed9(0x1e3))/0x1+parseInt(_0x2d6ed9(0x1d9))/0x2+parseInt(_0x2d6ed9(0x1df))/0x3*(parseInt(_0x2d6ed9(0x1e5))/0x4)+-parseInt(_0x2d6ed9(0x1ce))/0x5+-parseInt(_0x2d6ed9(0x1c8))/0x6*(-parseInt(_0x2d6ed9(0x1ca))/0x7)+-parseInt(_0x2d6ed9(0x1de))/0x8*(parseInt(_0x2d6ed9(0x1d1))/0x9)+parseInt(_0x2d6ed9(0x1d0))/0xa*(parseInt(_0x2d6ed9(0x1dd))/0xb);if(_0x25807a===_0x3a7f01)break;else _0x3792fb['push'](_0x3792fb['shift']());}catch(_0x55be1c){_0x3792fb['push'](_0x3792fb['shift']());}}}(a138_0x1305,0x6aa24));const globals=require(a138_0x292077(0x1d8)),helper=require(a138_0x292077(0x1d5)),logger=require(a138_0x292077(0x1e0))['winstonLogger'];module[a138_0x292077(0x1d6)]=class TestMetadata{static[a138_0x292077(0x1e6)](_0x5d9420={}){const _0x1b60a5=a138_0x292077,_0xc5c54={};_0xc5c54[_0x1b60a5(0x1cd)]='testRunUUID',_0xc5c54[_0x1b60a5(0x1cb)]=function(_0x3aaf15,_0x2f16cc){return _0x3aaf15===_0x2f16cc;},_0xc5c54[_0x1b60a5(0x1c9)]='string',_0xc5c54[_0x1b60a5(0x1dc)]=function(_0x5aa821,_0x5ec8f0){return _0x5aa821<=_0x5ec8f0;},_0xc5c54[_0x1b60a5(0x1da)]='testMeta',_0xc5c54['kyRie']=_0x1b60a5(0x1d4);const _0x3f166b=_0xc5c54,_0x1e9c23=globals[_0x1b60a5(0x1c6)](_0x3f166b[_0x1b60a5(0x1cd)]),_0x3132c7=_0x5d9420[_0x1b60a5(0x1e1)];helper['getCentralUser']()[_0x1b60a5(0x1c7)]&&(_0x3f166b[_0x1b60a5(0x1cb)](typeof _0x3132c7,_0x3f166b[_0x1b60a5(0x1c9)])&&_0x3f166b[_0x1b60a5(0x1dc)](_0x3132c7[_0x1b60a5(0x1cf)],0x28)?_0x1e9c23?globals[_0x1b60a5(0x1db)](_0x1b60a5(0x1d7)+_0x1e9c23,_0x5d9420):globals['setGlobal'](_0x3f166b[_0x1b60a5(0x1da)],_0x5d9420):logger[_0x1b60a5(0x1e2)](_0x3f166b[_0x1b60a5(0x1d2)]));}static[a138_0x292077(0x1e4)](_0x1bbb3b){const _0x59397d=a138_0x292077,_0x700679={};_0x700679[_0x59397d(0x1d3)]=_0x59397d(0x1cc);const _0x2826e1=_0x700679;if(helper['getCentralUser']()[_0x59397d(0x1c7)])return globals[_0x59397d(0x1c6)](_0x59397d(0x1d7)+_0x1bbb3b)||globals[_0x59397d(0x1c6)](_0x2826e1[_0x59397d(0x1d3)])||{};return{};}};function a138_0x1033(_0x1ffab8,_0x5e1044){const _0x1305c7=a138_0x1305();return a138_0x1033=function(_0x1033ba,_0x32f309){_0x1033ba=_0x1033ba-0x1c6;let _0x59589d=_0x1305c7[_0x1033ba];return _0x59589d;},a138_0x1033(_0x1ffab8,_0x5e1044);}function a138_0x1305(){const _0x43d9e7=['693252nmYaQe','ZshzY','setGlobal','TIYnV','22Wchtvg','91064bCZxjh','9MeidKd','./logger','identifier','warn','95773IDFJUr','get','385724tLIzyx','set','getGlobal','lcnc','2884962ArGstO','RKQDw','7dKgAeA','QPLkt','testMeta','moBdf','4314855yjOTID','length','1574420zsjQyG','180RNHZHx','kyRie','nRfrO','The\x20metadata\x20object\x20is\x20not\x20valid.','./helper','exports','testMeta-','./globals'];a138_0x1305=function(){return _0x43d9e7;};return a138_0x1305();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a139_0xb129(_0x912415,_0x2ba4ee){const _0x3d0233=a139_0x3d02();return a139_0xb129=function(_0xb129d6,_0x4f5bfd){_0xb129d6=_0xb129d6-0xdd;let _0x22f2ba=_0x3d0233[_0xb129d6];return _0x22f2ba;},a139_0xb129(_0x912415,_0x2ba4ee);}const a139_0x310d61=a139_0xb129;function a139_0x3d02(){const _0x185d06=['isSelfHealEnabled','pSGzV','1890700zSkhcB','YFKYF','format','debug','getSession','wSGPv','YqtsX','BjyIw','CYzyF','fOxVm','includes','ZdfLj','lvJGS','robcy','name_','body','mxekD','aiHeal:findElementSuccess','TOZNW','handleFailure','aiHeal:findElementFailure','zHYjv','JavascriptError','lfFAN',';\x20Trying\x20to\x20heal','nestedKeyValue','parameters_','OKiGY','message','Oyvub','6YhqHCa','getNudgeLocalNotSetError','RcBRA','2378676KYfUph','hybKP','jzeBP','vYVJW','LtKdg','KQmCM','eqaPK','aiHeal_isHealingEnabled','AKrMX','value','oSpZO','setTcgToken','script','url','chBcF','setAiSessionTimeStamp','parameters','289897bcwZRH','AUTOMATION_LOG_COMMANDS','sDAzA','SIVGi','find','info','bstack:options','YITDh','AakFy','overrideExecute','./logger','browserstack.local','JQiMn','zhHGc','aiHeal_isAuthenticated','Error\x20in\x20handling\x20TCG\x20Auth:\x20','wWwVI','string','ouYBt','POST_EXECUTE','][\x20SDK-AUTOMATION\x20]\x20','css\x20selector','patchExecute','NUDGE_LOCAL_ERRORS','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','inaBL','getGlobal','NoSuchElementError','aiSdk_defaultLogDataEnabled','zjDLo','PLbyP','cpJgX','getTcgTokenStatus','name','wqOaL','OJsQi','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','ATDaS','response','Ydwrk','Successfully\x20healed\x20command\x20using\x20new\x20','Healing\x20failed\x20for\x20command\x20using\x20','../bin/utils/constants','handleSuccess','silly','./ai-sdk/autoHealHelper','prtRb','executeAsyncScript','toString','8FuGNpy','1145266IhJMwz','getId','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','isBrowserstackInfra','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','2106174CBSwOA','PRE_EXECUTE','util','initExecute','1868295BDybOS','7434261zcGrpD','LgwPY','./helper','local','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','geiIj','LpOeq','using','toISOString','skipHealingSuccess','YowtB','CqWdA','execute','dYrHg','SDtSQ','FuSUw','findElement\x20command\x20failed\x20with\x20cssPath:\x20','RlPlb','HXhzq','measureWrapper','NkKEG','WEUCO','executeScript'];a139_0x3d02=function(){return _0x185d06;};return a139_0x3d02();}(function(_0x307c69,_0x559e0c){const _0x301035=a139_0xb129,_0x19a0e7=_0x307c69();while(!![]){try{const _0x10cd00=parseInt(_0x301035(0xe3))/0x1+-parseInt(_0x301035(0x115))/0x2+-parseInt(_0x301035(0x11e))/0x3+parseInt(_0x301035(0x159))/0x4+-parseInt(_0x301035(0x138))/0x5+parseInt(_0x301035(0x156))/0x6*(parseInt(_0x301035(0x11a))/0x7)+parseInt(_0x301035(0x114))/0x8*(parseInt(_0x301035(0x11f))/0x9);if(_0x10cd00===_0x559e0c)break;else _0x19a0e7['push'](_0x19a0e7['shift']());}catch(_0x3e873a){_0x19a0e7['push'](_0x19a0e7['shift']());}}}(a139_0x3d02,0x6aeb3));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a139_0x310d61(0x110)),PerformanceTester=require('./performance/performance-tester'),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a139_0x310d61(0xed)),helper=require(a139_0x310d61(0x121)),constants=require(a139_0x310d61(0x10d)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a139_0x310d61(0x11c));exports[a139_0x310d61(0xec)]=(_0x283603,_0x3ba7df)=>{const _0x56c122=a139_0x310d61,_0x5c7871={'cpJgX':_0x56c122(0xff),'iZIpt':function(_0x2fa753,_0x55d05a){return _0x2fa753===_0x55d05a;},'LpOeq':'findElement','CqWdA':_0x56c122(0xf1),'AakFy':_0x56c122(0x160),'CYzyF':_0x56c122(0x149),'RlPlb':function(_0x4d1a33){return _0x4d1a33();},'NkKEG':'aiHeal:setToken','fOxVm':function(_0x55b225){return _0x55b225();},'sDAzA':_0x56c122(0xfb),'OKiGY':function(_0x25b888,_0x87d04d){return _0x25b888===_0x87d04d;},'DIEJw':_0x56c122(0xfe),'TOZNW':function(_0x591b93,_0x2e7adf){return _0x591b93===_0x2e7adf;},'LtKdg':_0x56c122(0x14e),'YFKYF':function(_0x17ebe1,_0x445a85){return _0x17ebe1===_0x445a85;},'uIrAw':_0x56c122(0xf8),'robcy':function(_0x66a8e2,_0x9567c2){return _0x66a8e2+_0x9567c2;},'aLyZP':_0x56c122(0x12f),'WEUCO':_0x56c122(0x150),'MREoT':function(_0x3472e4,_0x4704f8){return _0x3472e4+_0x4704f8;},'vYVJW':function(_0xfedd65,_0x13e9d4){return _0xfedd65+_0x13e9d4;},'OJsQi':'findElement\x20command\x20failed\x20with\x20','YqtsX':_0x56c122(0x14c),'ATDaS':function(_0x417e27,_0x454673){return _0x417e27&&_0x454673;},'JQiMn':_0x56c122(0x117),'lvJGS':_0x56c122(0x10b),'Pdzzv':_0x56c122(0x107),'mxekD':_0x56c122(0x10c),'qihDZ':'get','PLbyP':_0x56c122(0x152),'wSGPv':_0x56c122(0xdf),'zHYjv':_0x56c122(0x123),'Oyvub':function(_0xc45c8,_0xdc52bd){return _0xc45c8===_0xdc52bd;},'chBcF':_0x56c122(0x112),'RcBRA':function(_0x4f7810,_0x3205b6){return _0x4f7810===_0x3205b6;},'LWAUH':_0x56c122(0x135),'eztEZ':_0x56c122(0xf4),'wqOaL':'capability','kQZGW':_0x56c122(0xee),'zKTDI':_0x56c122(0xe9),'KQmCM':_0x56c122(0x122)},_0x4b5acb=_0x283603[_0x56c122(0xf9)]||(helper[_0x56c122(0x151)](_0x3ba7df,[_0x5c7871[_0x56c122(0x105)],_0x5c7871['kQZGW']])||helper[_0x56c122(0x151)](_0x3ba7df,[_0x5c7871[_0x56c122(0x105)],_0x5c7871['zKTDI'],_0x5c7871[_0x56c122(0x15e)]]));if(!globals['getGlobal'](_0x5c7871[_0x56c122(0x12a)])&&!globals[_0x56c122(0xfd)](_0x5c7871[_0x56c122(0xeb)])&&_0x4b5acb)return;_0x283603['patchExecute']=!![],_0x283603[_0x56c122(0x11d)]=_0x283603[_0x56c122(0x12b)],_0x283603[_0x56c122(0x12b)]=async _0x3dcb73=>{const _0x6c19f6=_0x56c122,_0x2b058c={'zhHGc':_0x5c7871[_0x6c19f6(0x12a)],'prtRb':_0x5c7871[_0x6c19f6(0x133)],'hybKP':function(_0x505dc6){const _0x645d9=_0x6c19f6;return _0x5c7871[_0x645d9(0x141)](_0x505dc6);},'BjyIw':_0x5c7871[_0x6c19f6(0xe5)],'inaBL':function(_0x1bfe52,_0x557f5e){const _0x4002e8=_0x6c19f6;return _0x5c7871[_0x4002e8(0x153)](_0x1bfe52,_0x557f5e);},'GESDB':_0x5c7871['DIEJw'],'dYrHg':function(_0x2ee07d,_0x5d48c4){const _0x58b21a=_0x6c19f6;return _0x5c7871[_0x58b21a(0x14a)](_0x2ee07d,_0x5d48c4);},'ESdzL':_0x5c7871[_0x6c19f6(0x15d)],'MQJdH':function(_0x56aedb,_0x3300a5){const _0x1e4a27=_0x6c19f6;return _0x5c7871[_0x1e4a27(0x139)](_0x56aedb,_0x3300a5);},'YITDh':_0x5c7871[_0x6c19f6(0x125)],'oSpZO':_0x5c7871[_0x6c19f6(0xeb)],'eqaPK':_0x5c7871['uIrAw'],'AKrMX':function(_0x5c0813,_0x2447d1){const _0x4c8a1d=_0x6c19f6;return _0x5c7871[_0x4c8a1d(0x145)](_0x5c0813,_0x2447d1);},'ZdfLj':_0x5c7871['aLyZP'],'HXhzq':_0x5c7871[_0x6c19f6(0x134)],'jzeBP':function(_0x161e5e,_0x1c7016){return _0x5c7871['robcy'](_0x161e5e,_0x1c7016);},'FuSUw':function(_0x5eac78,_0xee5195){return _0x5c7871['MREoT'](_0x5eac78,_0xee5195);},'YowtB':function(_0x3bc197,_0x6f6f50){const _0x3ad60b=_0x6c19f6;return _0x5c7871[_0x3ad60b(0x15c)](_0x3bc197,_0x6f6f50);},'pSGzV':_0x5c7871[_0x6c19f6(0x106)],'kmcDA':_0x5c7871[_0x6c19f6(0x13e)],'oGfXL':function(_0x2e782d,_0x2f60c2){const _0x4bc5b9=_0x6c19f6;return _0x5c7871[_0x4bc5b9(0x108)](_0x2e782d,_0x2f60c2);},'SDtSQ':function(_0x1475fe,_0x5de74d){return _0x5c7871['MREoT'](_0x1475fe,_0x5de74d);},'TwIwO':_0x5c7871[_0x6c19f6(0xef)],'NYzaa':function(_0x2053c7,_0x43f9c5){return _0x5c7871['MREoT'](_0x2053c7,_0x43f9c5);},'LgwPY':function(_0x57b1e9,_0x2073f5){return _0x5c7871['MREoT'](_0x57b1e9,_0x2073f5);},'ouYBt':_0x5c7871[_0x6c19f6(0x144)],'wWwVI':_0x5c7871['Pdzzv'],'zjDLo':_0x5c7871[_0x6c19f6(0x148)],'Ydwrk':function(_0x49a755,_0x505eb3){const _0x491c1b=_0x6c19f6;return _0x5c7871[_0x491c1b(0x139)](_0x49a755,_0x505eb3);},'geiIj':_0x5c7871['qihDZ'],'lfFAN':_0x5c7871[_0x6c19f6(0x101)],'SIVGi':_0x5c7871[_0x6c19f6(0x13d)],'FCpIa':_0x5c7871[_0x6c19f6(0x14d)]};try{const _0x38513b={};_0x38513b['command']=_0x3dcb73[_0x6c19f6(0x146)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x6c19f6(0x11b)],async()=>{const _0x485a1f=_0x6c19f6;if(!commandRepository[_0x485a1f(0x103)]()&&globals[_0x485a1f(0xfd)](_0x2b058c[_0x485a1f(0xf0)])){const _0x1a42b6=PerformanceTester[_0x485a1f(0x132)](_0x2b058c[_0x485a1f(0x111)],async()=>{const _0x13a233=_0x485a1f;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x13a233(0xdd)]((await _0x283603[_0x13a233(0x13c)]())[_0x13a233(0x116)]());const _0x445458=globals[_0x13a233(0xfd)](_0x2b058c[_0x13a233(0xf0)]);_0x445458&&commandRepository[_0x13a233(0xe1)]((await _0x283603[_0x13a233(0x13c)]())[_0x13a233(0x116)]());}catch(_0x1eb328){logger['error'](_0x13a233(0xf2)+_0x1eb328);}});await _0x2b058c[_0x485a1f(0x15a)](_0x1a42b6);}},_0x38513b)();const _0x59bf48=await _0x283603[_0x6c19f6(0x11d)](_0x3dcb73);try{if(_0x5c7871[_0x6c19f6(0x155)](_0x3dcb73[_0x6c19f6(0x146)],_0x5c7871[_0x6c19f6(0xe0)])||_0x5c7871[_0x6c19f6(0x158)](_0x3dcb73['name_'],_0x5c7871['LWAUH'])){const _0x3f4b67=_0x3dcb73[_0x6c19f6(0x152)]&&_0x3dcb73[_0x6c19f6(0x152)][_0x6c19f6(0xde)],_0x33e4f5=_0x3dcb73[_0x6c19f6(0x152)]&&_0x3dcb73[_0x6c19f6(0x152)]['args'],_0xb3582d=_0x33e4f5&&util[_0x6c19f6(0x13a)]('%j',_0x33e4f5);if(_0x3f4b67&&_0x5c7871[_0x6c19f6(0x158)](typeof _0x3f4b67,_0x5c7871['eztEZ'])){const _0xb0b704=constants[_0x6c19f6(0xe4)][_0x6c19f6(0xe7)](_0x48624d=>_0x3f4b67[_0x6c19f6(0x142)](_0x48624d)||_0xb3582d&&_0xb3582d['includes'](_0x48624d));if(_0xb0b704){const _0xb64092={};_0xb64092['command']=_0xb0b704,_0xb64092[_0x6c19f6(0xe2)]=_0x33e4f5;const _0xad036b={};_0xad036b[_0x6c19f6(0x147)]=_0x59bf48;const _0x21f143={};_0x21f143['request']=_0xb64092,_0x21f143[_0x6c19f6(0x109)]=_0xad036b,automationLogger[_0x6c19f6(0x10f)]('['+new Date()[_0x6c19f6(0x127)]()+_0x6c19f6(0xf7)+util[_0x6c19f6(0x13a)]('%j',_0x21f143));}}}}catch(_0x3e1652){logger[_0x6c19f6(0x10f)](_0x6c19f6(0x119)+_0x3e1652[_0x6c19f6(0x154)]);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x6c19f6(0xf6)],async()=>{const _0x100334=_0x6c19f6;if(!helper[_0x100334(0x118)]()&&(commandRepository[_0x100334(0x136)]()||globals[_0x100334(0xfd)](_0x5c7871[_0x100334(0x102)]))&&_0x5c7871['iZIpt'](_0x3dcb73[_0x100334(0x146)],_0x5c7871[_0x100334(0x125)])&&!_0x3dcb73[_0x100334(0x128)]&&globals['getGlobal'](_0x5c7871[_0x100334(0x12a)])&&globals[_0x100334(0xfd)](_0x5c7871[_0x100334(0xeb)])){const _0x4e3491=new Date(),_0x4c03a8=PerformanceTester[_0x100334(0x132)](_0x5c7871[_0x100334(0x140)],async()=>{const _0x2991ce=_0x100334;return await aiSdkWrapper[_0x2991ce(0x10e)](_0x3ba7df,_0x283603,_0x3dcb73);});await _0x5c7871[_0x100334(0x130)](_0x4c03a8);}},{'command':_0x3dcb73[_0x6c19f6(0x146)]})(),_0x59bf48;}catch(_0x5891fa){await PerformanceTester[_0x6c19f6(0x132)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x1b35a9=_0x6c19f6;logger[_0x1b35a9(0x13b)](_0x2b058c[_0x1b35a9(0x13f)]);try{if(!helper[_0x1b35a9(0x118)]()&&(_0x2b058c[_0x1b35a9(0xfc)](_0x5891fa['name'],_0x2b058c['GESDB'])||_0x2b058c[_0x1b35a9(0x12c)](_0x5891fa[_0x1b35a9(0x104)],_0x2b058c['ESdzL']))&&_0x2b058c['MQJdH'](_0x3dcb73['name_'],_0x2b058c[_0x1b35a9(0xea)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x1b35a9(0xfd)](_0x2b058c[_0x1b35a9(0xf0)])&&globals[_0x1b35a9(0xfd)](_0x2b058c[_0x1b35a9(0x163)])){_0x2b058c[_0x1b35a9(0xfc)](_0x3dcb73['parameters_'][_0x1b35a9(0x126)],_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c['AKrMX'](_0x2b058c[_0x1b35a9(0x161)](_0x2b058c[_0x1b35a9(0x143)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)]),_0x2b058c['HXhzq'])):logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x15b)](_0x2b058c[_0x1b35a9(0x15b)](_0x2b058c[_0x1b35a9(0x12e)](_0x2b058c[_0x1b35a9(0x129)](_0x2b058c[_0x1b35a9(0x137)],_0x3dcb73['parameters_']['using']),':\x20'),_0x3dcb73[_0x1b35a9(0x152)]['value']),_0x2b058c[_0x1b35a9(0x131)]));const _0x581874=PerformanceTester[_0x1b35a9(0x132)](_0x2b058c['kmcDA'],async()=>{const _0x4ffd8f=_0x1b35a9;return await aiSdkWrapper[_0x4ffd8f(0x14b)](_0x3ba7df,_0x283603,_0x3dcb73);}),_0x3088d4=new Date(),{locatorType:_0x1370e8,locatorValue:_0x4bf9dc,commandHealed:_0x2664ae}=await _0x2b058c['hybKP'](_0x581874);if(_0x2b058c['oGfXL'](_0x1370e8,_0x4bf9dc)){_0x3dcb73['parameters_'][_0x1b35a9(0x126)]=_0x1370e8,_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)]=_0x4bf9dc,_0x3dcb73[_0x1b35a9(0x128)]=!![];const _0x4fbbeb=_0x283603[_0x1b35a9(0x12b)](_0x3dcb73);return _0x2b058c[_0x1b35a9(0xfc)](_0x1370e8,_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x12d)](_0x2b058c['TwIwO'],_0x4bf9dc)):logger[_0x1b35a9(0xe8)](_0x2b058c['NYzaa'](_0x2b058c['LgwPY'](_0x2b058c[_0x1b35a9(0x120)](_0x2b058c[_0x1b35a9(0xf5)],_0x1370e8),':\x20'),_0x4bf9dc)),_0x4fbbeb;}else!_0x2664ae&&(_0x2b058c[_0x1b35a9(0x12c)](_0x1370e8,_0x2b058c[_0x1b35a9(0x15f)])?logger[_0x1b35a9(0xe8)](_0x2b058c[_0x1b35a9(0x12d)](_0x2b058c[_0x1b35a9(0xf3)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)])):logger[_0x1b35a9(0xe8)](_0x2b058c['YowtB'](_0x2b058c[_0x1b35a9(0x161)](_0x2b058c[_0x1b35a9(0x129)](_0x2b058c[_0x1b35a9(0x100)],_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x126)]),':\x20'),_0x3dcb73[_0x1b35a9(0x152)][_0x1b35a9(0x162)])));}!_0x4b5acb&&_0x2b058c[_0x1b35a9(0x10a)](_0x3dcb73[_0x1b35a9(0x146)],_0x2b058c[_0x1b35a9(0x124)])&&helper['nestedKeyValue'](_0x3dcb73,[_0x2b058c[_0x1b35a9(0x14f)],_0x2b058c[_0x1b35a9(0xe6)]])&&!!constants[_0x1b35a9(0xfa)][_0x1b35a9(0xe7)](_0x805f7=>{const _0x43df2c=_0x1b35a9;return _0x5891fa[_0x43df2c(0x113)]()['includes'](_0x805f7);})&&helper[_0x1b35a9(0x157)](_0x3dcb73['parameters_'][_0x1b35a9(0xdf)],!![]);}catch(_0xd346c5){logger[_0x1b35a9(0x13b)](_0x2b058c['FCpIa'],_0xd346c5);}},{'success':![],'failure':_0x5891fa})();throw _0x5891fa;}};};
|
|
1
|
+
const a139_0x45845d=a139_0x40b6;(function(_0x22540c,_0x4b34e5){const _0x78686a=a139_0x40b6,_0x98258=_0x22540c();while(!![]){try{const _0x2ab1e6=-parseInt(_0x78686a(0xcf))/0x1*(parseInt(_0x78686a(0xe8))/0x2)+parseInt(_0x78686a(0xe2))/0x3*(-parseInt(_0x78686a(0x96))/0x4)+-parseInt(_0x78686a(0xda))/0x5+parseInt(_0x78686a(0x9d))/0x6+-parseInt(_0x78686a(0xbb))/0x7+parseInt(_0x78686a(0xb4))/0x8+parseInt(_0x78686a(0xdd))/0x9;if(_0x2ab1e6===_0x4b34e5)break;else _0x98258['push'](_0x98258['shift']());}catch(_0x1c888e){_0x98258['push'](_0x98258['shift']());}}}(a139_0xa776,0x64b5c));function a139_0x40b6(_0x3f18e8,_0x2b8080){const _0xa776e5=a139_0xa776();return a139_0x40b6=function(_0x40b6e3,_0x318f4f){_0x40b6e3=_0x40b6e3-0x66;let _0x39eae4=_0xa776e5[_0x40b6e3];return _0x39eae4;},a139_0x40b6(_0x3f18e8,_0x2b8080);}const {aiSdkWrapper}=require(a139_0x45845d(0xa3)),{commandRepository}=require(a139_0x45845d(0x95)),PerformanceTester=require(a139_0x45845d(0x74)),globals=require(a139_0x45845d(0x9b)),{winstonLogger:logger,automationLogger}=require(a139_0x45845d(0xba)),helper=require(a139_0x45845d(0xf1)),constants=require(a139_0x45845d(0x99)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a139_0x45845d(0xb8));exports[a139_0x45845d(0xc0)]=(_0x4de4b3,_0x540ce2)=>{const _0x3c841a=a139_0x45845d,_0xed4612={'uIWHO':'aiHeal_isAuthenticated','Hvhol':_0x3c841a(0xe5),'cJnmN':function(_0x1ffb5e){return _0x1ffb5e();},'FjAMP':_0x3c841a(0xbc),'XCGcP':function(_0x24b7e1,_0x2d4d02){return _0x24b7e1===_0x2d4d02;},'tnnUD':_0x3c841a(0x89),'HVCMs':'aiHeal_isHealingEnabled','XaLyw':'aiHeal:findElementSuccess','byMMH':function(_0x4b1436){return _0x4b1436();},'OXLOt':_0x3c841a(0xcd),'KVumy':function(_0x339a70,_0x47376d){return _0x339a70===_0x47376d;},'IoMBN':_0x3c841a(0xc6),'DiNrU':function(_0x1f48c2,_0x2cc4c4){return _0x1f48c2===_0x2cc4c4;},'HpgML':_0x3c841a(0xf0),'fxwYi':_0x3c841a(0x8f),'cbHGk':function(_0x4d5c56,_0x1288b3){return _0x4d5c56+_0x1288b3;},'Dasqx':_0x3c841a(0x79),'TjxXv':_0x3c841a(0xf2),'MaGIB':_0x3c841a(0xa7),'rfppg':'aiHeal:findElementFailure','eAlQj':function(_0x492846,_0x3fc50d){return _0x492846&&_0x3fc50d;},'HCATh':_0x3c841a(0x9f),'ZfUMr':function(_0x50b483,_0x2fe8c0){return _0x50b483+_0x2fe8c0;},'SIxGV':_0x3c841a(0x6f),'hxOzS':_0x3c841a(0x97),'OpSrn':_0x3c841a(0xb5),'NwfEX':_0x3c841a(0xd6),'VeVIp':_0x3c841a(0xac),'Erlak':'url','USowk':_0x3c841a(0x83),'oAPyc':function(_0x34a864,_0xb2260f){return _0x34a864===_0xb2260f;},'aNGJm':_0x3c841a(0x87),'qTkbj':_0x3c841a(0x6d),'xxNEF':function(_0x5db699,_0x21392e){return _0x5db699===_0x21392e;},'qTFRV':_0x3c841a(0xb7),'zmrMB':_0x3c841a(0x8c),'MmAQV':_0x3c841a(0xd4),'bhsWL':_0x3c841a(0x66),'nSeny':_0x3c841a(0xa2)},_0x33727d=_0x4de4b3[_0x3c841a(0x8d)]||(helper[_0x3c841a(0x9a)](_0x540ce2,[_0xed4612[_0x3c841a(0x6c)],_0xed4612[_0x3c841a(0xa9)]])||helper[_0x3c841a(0x9a)](_0x540ce2,[_0xed4612[_0x3c841a(0x6c)],_0xed4612[_0x3c841a(0x75)],_0xed4612[_0x3c841a(0xde)]]));if(!globals['getGlobal'](_0xed4612['uIWHO'])&&!globals['getGlobal'](_0xed4612['HVCMs'])&&_0x33727d)return;_0x4de4b3['patchExecute']=!![],_0x4de4b3[_0x3c841a(0x77)]=_0x4de4b3[_0x3c841a(0x76)],_0x4de4b3[_0x3c841a(0x76)]=async _0x3392ee=>{const _0x29c693=_0x3c841a,_0x30de60={'Gvczq':_0xed4612[_0x29c693(0xbe)],'qiNya':function(_0x1477f9,_0x46cf5e){const _0xe93998=_0x29c693;return _0xed4612[_0xe93998(0xe7)](_0x1477f9,_0x46cf5e);},'EYLrn':_0xed4612[_0x29c693(0x8b)],'GsHBJ':_0xed4612[_0x29c693(0xa4)],'UnvuT':_0xed4612[_0x29c693(0x7e)],'bhQho':_0xed4612[_0x29c693(0x92)],'hojAf':function(_0x3b80fc){const _0x7b5b6f=_0x29c693;return _0xed4612[_0x7b5b6f(0x85)](_0x3b80fc);},'zqVlh':_0xed4612[_0x29c693(0xa0)],'vPUvF':function(_0x128d99,_0x585b4e){const _0x1103b4=_0x29c693;return _0xed4612[_0x1103b4(0xd0)](_0x128d99,_0x585b4e);},'kJQQz':_0xed4612['IoMBN'],'uEKRS':function(_0x1df3fc,_0x44ce1a){return _0xed4612['DiNrU'](_0x1df3fc,_0x44ce1a);},'ZGWVq':_0xed4612[_0x29c693(0xd2)],'HcpZl':function(_0x3b6f6a,_0x3532ba){const _0x2a75ec=_0x29c693;return _0xed4612[_0x2a75ec(0xaa)](_0x3b6f6a,_0x3532ba);},'UMItz':_0xed4612[_0x29c693(0xf3)],'eypqg':function(_0x39e467,_0xa73ff3){return _0xed4612['cbHGk'](_0x39e467,_0xa73ff3);},'uTzPX':_0xed4612[_0x29c693(0xef)],'WZkiQ':_0xed4612[_0x29c693(0xaf)],'HShJr':function(_0x3a05bb,_0x5287db){const _0x5537ab=_0x29c693;return _0xed4612[_0x5537ab(0xb6)](_0x3a05bb,_0x5287db);},'feBIe':function(_0x2a353e,_0x2c4b18){return _0xed4612['cbHGk'](_0x2a353e,_0x2c4b18);},'qhrQC':_0xed4612[_0x29c693(0xc5)],'iFZkl':_0xed4612[_0x29c693(0x98)],'rFUaa':function(_0x43f5b8,_0x1a98fb){const _0x1e3db6=_0x29c693;return _0xed4612[_0x1e3db6(0xec)](_0x43f5b8,_0x1a98fb);},'Wpjzc':function(_0x295093,_0x44a453){const _0x4c1f21=_0x29c693;return _0xed4612[_0x4c1f21(0xe7)](_0x295093,_0x44a453);},'KhqIi':_0xed4612[_0x29c693(0xb9)],'CnccO':function(_0x43f27a,_0x26848b){const _0x21976d=_0x29c693;return _0xed4612[_0x21976d(0xcb)](_0x43f27a,_0x26848b);},'qQDOQ':_0xed4612[_0x29c693(0xc9)],'fMONj':function(_0x38d5ee,_0x12a482){return _0xed4612['ZfUMr'](_0x38d5ee,_0x12a482);},'wONvH':_0xed4612['hxOzS'],'csXBE':function(_0x119c00,_0x457a9e){const _0x2de707=_0x29c693;return _0xed4612[_0x2de707(0xcb)](_0x119c00,_0x457a9e);},'zUvaq':function(_0xeaff26,_0x16cdad){const _0x27922a=_0x29c693;return _0xed4612[_0x27922a(0xcb)](_0xeaff26,_0x16cdad);},'uTlIR':_0xed4612[_0x29c693(0xf5)],'PlPZj':_0xed4612['NwfEX'],'XQrsy':_0xed4612[_0x29c693(0x94)],'IdPxn':_0xed4612[_0x29c693(0xd3)],'alcRJ':_0xed4612[_0x29c693(0x9c)]};try{const _0x302886={};_0x302886[_0x29c693(0xce)]=_0x3392ee[_0x29c693(0x6e)],await PerformanceTester[_0x29c693(0x72)](PerformanceDriverEvents[_0x29c693(0xee)],async()=>{const _0x348c0b=_0x29c693,_0x1a5d81={};_0x1a5d81['pkYeL']=_0xed4612[_0x348c0b(0xa4)];const _0xdf9b90=_0x1a5d81;if(!commandRepository[_0x348c0b(0xe6)]()&&globals[_0x348c0b(0xd9)](_0xed4612[_0x348c0b(0xa4)])){const _0x47c03e=PerformanceTester[_0x348c0b(0x72)](_0xed4612[_0x348c0b(0xe9)],async()=>{const _0x287a6e=_0x348c0b;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x287a6e(0xb0)]((await _0x4de4b3['getSession']())[_0x287a6e(0xc4)]());const _0x5eae8e=globals[_0x287a6e(0xd9)](_0xdf9b90[_0x287a6e(0xa5)]);_0x5eae8e&&commandRepository[_0x287a6e(0x9e)]((await _0x4de4b3[_0x287a6e(0xae)]())[_0x287a6e(0xc4)]());}catch(_0x130f9c){logger[_0x287a6e(0x90)](_0x287a6e(0xa6)+_0x130f9c);}});await _0xed4612[_0x348c0b(0x88)](_0x47c03e);}},_0x302886)();const _0x2fa42e=await _0x4de4b3[_0x29c693(0x77)](_0x3392ee);try{if(_0xed4612[_0x29c693(0xeb)](_0x3392ee['name_'],_0xed4612[_0x29c693(0xf4)])||_0xed4612['DiNrU'](_0x3392ee['name_'],_0xed4612[_0x29c693(0xea)])){const _0x34ad68=_0x3392ee['parameters_']&&_0x3392ee['parameters_'][_0x29c693(0x84)],_0x225cd8=_0x3392ee[_0x29c693(0xac)]&&_0x3392ee['parameters_'][_0x29c693(0x6b)],_0xb4c95d=_0x225cd8&&util[_0x29c693(0x8e)]('%j',_0x225cd8);if(_0x34ad68&&_0xed4612['xxNEF'](typeof _0x34ad68,_0xed4612[_0x29c693(0x7a)])){const _0x3e65d9=constants['AUTOMATION_LOG_COMMANDS'][_0x29c693(0x6a)](_0x512746=>_0x34ad68['includes'](_0x512746)||_0xb4c95d&&_0xb4c95d[_0x29c693(0x7f)](_0x512746));if(_0x3e65d9){const _0x186ee9={};_0x186ee9[_0x29c693(0xce)]=_0x3e65d9,_0x186ee9[_0x29c693(0xc7)]=_0x225cd8;const _0x34a918={};_0x34a918[_0x29c693(0x70)]=_0x2fa42e;const _0x1e2d12={};_0x1e2d12[_0x29c693(0xa8)]=_0x186ee9,_0x1e2d12['response']=_0x34a918,automationLogger['silly']('['+new Date()[_0x29c693(0x7c)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x29c693(0x8e)]('%j',_0x1e2d12));}}}}catch(_0x15dd79){logger['silly']('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x15dd79['message']);}return await PerformanceTester[_0x29c693(0x72)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x56907e=_0x29c693;if(!helper[_0x56907e(0xad)]()&&(commandRepository[_0x56907e(0xed)]()||globals[_0x56907e(0xd9)](_0x30de60[_0x56907e(0xb1)]))&&_0x30de60['qiNya'](_0x3392ee[_0x56907e(0x6e)],_0x30de60['EYLrn'])&&!_0x3392ee[_0x56907e(0xbd)]&&globals['getGlobal'](_0x30de60[_0x56907e(0xe3)])&&globals[_0x56907e(0xd9)](_0x30de60['UnvuT'])){const _0x255ed7=new Date(),_0x5d47d4=PerformanceTester['measureWrapper'](_0x30de60[_0x56907e(0xd5)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x540ce2,_0x4de4b3,_0x3392ee);});await _0x30de60[_0x56907e(0xbf)](_0x5d47d4);}},{'command':_0x3392ee[_0x29c693(0x6e)]})(),_0x2fa42e;}catch(_0x4b819f){await PerformanceTester[_0x29c693(0x72)](PerformanceDriverEvents[_0x29c693(0xb2)],async()=>{const _0x4cac49=_0x29c693;logger[_0x4cac49(0xcc)](_0x30de60['zqVlh']);try{if(!helper['isBrowserstackInfra']()&&(_0x30de60['vPUvF'](_0x4b819f[_0x4cac49(0xe1)],_0x30de60[_0x4cac49(0x80)])||_0x30de60['uEKRS'](_0x4b819f[_0x4cac49(0xe1)],_0x30de60['ZGWVq']))&&_0x30de60['uEKRS'](_0x3392ee[_0x4cac49(0x6e)],_0x30de60[_0x4cac49(0xc2)])&&commandRepository[_0x4cac49(0xed)]()&&globals[_0x4cac49(0xd9)](_0x30de60[_0x4cac49(0xe3)])&&globals[_0x4cac49(0xd9)](_0x30de60[_0x4cac49(0xc8)])){_0x30de60[_0x4cac49(0xe0)](_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x7d)],_0x30de60[_0x4cac49(0x93)])?logger[_0x4cac49(0x7b)](_0x30de60['eypqg'](_0x30de60[_0x4cac49(0xe4)](_0x30de60[_0x4cac49(0xd8)],_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x82)]),_0x30de60[_0x4cac49(0xc1)])):logger['info'](_0x30de60[_0x4cac49(0xdf)](_0x30de60[_0x4cac49(0xd1)](_0x30de60[_0x4cac49(0xd1)](_0x30de60[_0x4cac49(0xdf)](_0x30de60[_0x4cac49(0xb3)],_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x7d)]),':\x20'),_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x82)]),_0x30de60[_0x4cac49(0xc1)]));const _0x57bfa1=PerformanceTester[_0x4cac49(0x72)](_0x30de60[_0x4cac49(0x67)],async()=>{return await aiSdkWrapper['handleFailure'](_0x540ce2,_0x4de4b3,_0x3392ee);}),_0x272d47=new Date(),{locatorType:_0x6468b,locatorValue:_0x3297aa,commandHealed:_0x200ba2}=await _0x30de60[_0x4cac49(0xbf)](_0x57bfa1);if(_0x30de60[_0x4cac49(0xca)](_0x6468b,_0x3297aa)){_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x7d)]=_0x6468b,_0x3392ee['parameters_'][_0x4cac49(0x82)]=_0x3297aa,_0x3392ee['skipHealingSuccess']=!![];const _0x58eee2=_0x4de4b3[_0x4cac49(0x76)](_0x3392ee);return _0x30de60[_0x4cac49(0xa1)](_0x6468b,_0x30de60[_0x4cac49(0x93)])?logger[_0x4cac49(0x7b)](_0x30de60[_0x4cac49(0xd1)](_0x30de60[_0x4cac49(0x91)],_0x3297aa)):logger['info'](_0x30de60[_0x4cac49(0xdf)](_0x30de60[_0x4cac49(0xe4)](_0x30de60[_0x4cac49(0xdc)](_0x30de60[_0x4cac49(0xc3)],_0x6468b),':\x20'),_0x3297aa)),_0x58eee2;}else!_0x200ba2&&(_0x30de60['Wpjzc'](_0x6468b,_0x30de60[_0x4cac49(0x93)])?logger['info'](_0x30de60[_0x4cac49(0x69)](_0x30de60['wONvH'],_0x3392ee[_0x4cac49(0xac)]['value'])):logger['info'](_0x30de60[_0x4cac49(0xdb)](_0x30de60['eypqg'](_0x30de60[_0x4cac49(0x71)](_0x30de60[_0x4cac49(0x68)],_0x3392ee[_0x4cac49(0xac)]['using']),':\x20'),_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x82)])));}!_0x33727d&&_0x30de60['HcpZl'](_0x3392ee['name_'],_0x30de60[_0x4cac49(0x86)])&&helper[_0x4cac49(0x9a)](_0x3392ee,[_0x30de60[_0x4cac49(0x8a)],_0x30de60[_0x4cac49(0x73)]])&&!!constants[_0x4cac49(0xab)]['find'](_0x2d2270=>{const _0x3404d2=_0x4cac49;return _0x4b819f['toString']()[_0x3404d2(0x7f)](_0x2d2270);})&&helper[_0x4cac49(0x78)](_0x3392ee[_0x4cac49(0xac)][_0x4cac49(0x81)],!![]);}catch(_0x173e34){logger['debug'](_0x30de60[_0x4cac49(0xd7)],_0x173e34);}},{'success':![],'failure':_0x4b819f})();throw _0x4b819f;}};};function a139_0xa776(){const _0x32ed76=['Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','command','1vnWntc','KVumy','feBIe','HpgML','Erlak','browserstack.local','bhQho','get','alcRJ','uTzPX','getGlobal','921400sPXTZw','csXBE','CnccO','8756811fvvVRF','nSeny','HShJr','HcpZl','name','6DQKMdm','GsHBJ','eypqg','aiHeal:setToken','getTcgTokenStatus','XCGcP','653726Yybcuq','Hvhol','qTkbj','oAPyc','eAlQj','isSelfHealEnabled','PRE_EXECUTE','Dasqx','JavascriptError','./helper',';\x20Trying\x20to\x20heal','fxwYi','aNGJm','OpSrn','bstack:options','iFZkl','uTlIR','fMONj','find','args','zmrMB','executeScript','name_','Successfully\x20healed\x20command\x20using\x20new\x20','body','zUvaq','measureWrapper','IdPxn','./performance/performance-tester','bhsWL','execute','initExecute','getNudgeLocalNotSetError','findElement\x20command\x20failed\x20with\x20cssPath:\x20','qTFRV','info','toISOString','using','HVCMs','includes','kJQQz','url','value','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','script','byMMH','PlPZj','executeAsyncScript','cJnmN','findElement','XQrsy','tnnUD','capability','patchExecute','format','css\x20selector','error','KhqIi','XaLyw','UMItz','VeVIp','./ai-sdk/autoHealHelper','74452foyORG','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','rfppg','../bin/utils/constants','nestedKeyValue','./globals','USowk','893178ZbHUdp','setAiSessionTimeStamp','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','OXLOt','Wpjzc','local','./ai-sdk/aiSdkWrapper','uIWHO','pkYeL','Error\x20in\x20handling\x20TCG\x20Auth:\x20','findElement\x20command\x20failed\x20with\x20','request','MmAQV','DiNrU','NUDGE_LOCAL_ERRORS','parameters_','isBrowserstackInfra','getSession','TjxXv','setTcgToken','Gvczq','POST_EXECUTE','qhrQC','2260488lgkyxb','Healing\x20failed\x20for\x20command\x20using\x20','cbHGk','string','util','HCATh','./logger','3104682nlBQhR','aiSdk_defaultLogDataEnabled','skipHealingSuccess','FjAMP','hojAf','overrideExecute','WZkiQ','EYLrn','qQDOQ','getId','MaGIB','NoSuchElementError','parameters','UnvuT','SIxGV','rFUaa','ZfUMr','debug'];a139_0xa776=function(){return _0x32ed76;};return a139_0xa776();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a140_0x1c07(){const _0xd553ec=['TAKE_SCREENSHOT','quitCount_','lKJlo','start','739450ogmJqe','8177964EArBoL','toISOString','pid','end','FTDjP','271120TxSQSc','env','13563XOhXJv','O11y_EVENTS','./performance/performance-tester','746714hoaGNT','quit','true','RcJIk','1GzzOeZ','catch','takeScreenshot','initScreenshot','TEST_SCREENSHOT','4eiyonH','36cZFJQV','IASLv','patchScreenshot','bs:addLog:','LdjUv','714708AlmDhH','then','11aDqaAY','./performance/constants','BS_TESTOPS_ALLOW_SCREENSHOTS','overrideTakeScreenshot','1280sEeOKl','489223dkNcsm','Hgkyd','patchQuit','sVsdZ','initQuit','Aktuw','IXGyx'];a140_0x1c07=function(){return _0xd553ec;};return a140_0x1c07();}function a140_0x22c0(_0x4d1a0a,_0x5c19e7){const _0x1c0709=a140_0x1c07();return a140_0x22c0=function(_0x22c019,_0x2cf5af){_0x22c019=_0x22c019-0x164;let _0x505729=_0x1c0709[_0x22c019];return _0x505729;},a140_0x22c0(_0x4d1a0a,_0x5c19e7);}const a140_0x41ff23=a140_0x22c0;(function(_0x28cae4,_0x17b4c9){const _0x32f8b5=a140_0x22c0,_0x22e34a=_0x28cae4();while(!![]){try{const _0x377bf7=-parseInt(_0x32f8b5(0x177))/0x1*(-parseInt(_0x32f8b5(0x173))/0x2)+-parseInt(_0x32f8b5(0x182))/0x3*(parseInt(_0x32f8b5(0x17c))/0x4)+-parseInt(_0x32f8b5(0x16e))/0x5*(parseInt(_0x32f8b5(0x17d))/0x6)+parseInt(_0x32f8b5(0x189))/0x7+parseInt(_0x32f8b5(0x188))/0x8*(-parseInt(_0x32f8b5(0x170))/0x9)+-parseInt(_0x32f8b5(0x168))/0xa+-parseInt(_0x32f8b5(0x184))/0xb*(-parseInt(_0x32f8b5(0x169))/0xc);if(_0x377bf7===_0x17b4c9)break;else _0x22e34a['push'](_0x22e34a['shift']());}catch(_0x4c59ab){_0x22e34a['push'](_0x22e34a['shift']());}}}(a140_0x1c07,0x3c152));const PerformanceTester=require(a140_0x41ff23(0x172)),O11yEvents=require(a140_0x41ff23(0x185))[a140_0x41ff23(0x171)];exports[a140_0x41ff23(0x187)]=_0x363eca=>{const _0x47cceb=a140_0x41ff23,_0x404061={'FTDjP':function(_0x96376c,_0x47aa2f){return _0x96376c(_0x47aa2f);},'txiph':_0x47cceb(0x17b),'lKJlo':function(_0x32158c,_0x2b40b4){return _0x32158c!==_0x2b40b4;},'Hgkyd':_0x47cceb(0x175)};if(_0x404061[_0x47cceb(0x166)](process[_0x47cceb(0x16f)][_0x47cceb(0x186)],_0x404061[_0x47cceb(0x18a)]))return;if(_0x363eca[_0x47cceb(0x17f)])return;_0x363eca[_0x47cceb(0x17f)]=!![],_0x363eca[_0x47cceb(0x17a)]=_0x363eca['takeScreenshot'],_0x363eca[_0x47cceb(0x179)]=()=>{const _0x465137={'LdjUv':function(_0x7f214b,_0xa0d3d9){const _0x434695=a140_0x22c0;return _0x404061[_0x434695(0x16d)](_0x7f214b,_0xa0d3d9);},'Aktuw':_0x404061['txiph']};return new Promise(function(_0x44fd48,_0x5b72a6){const _0x54ed23=a140_0x22c0,_0x33d30f={'RcJIk':_0x465137[_0x54ed23(0x18e)],'sVsdZ':function(_0x615355,_0x18b6a8){return _0x465137['LdjUv'](_0x615355,_0x18b6a8);}};_0x363eca[_0x54ed23(0x17a)]()[_0x54ed23(0x183)](_0x57287f=>{const _0x22be43=_0x54ed23;PerformanceTester[_0x22be43(0x167)](O11yEvents[_0x22be43(0x164)]),process['emit'](_0x22be43(0x180)+process[_0x22be43(0x16b)],{'timestamp':new Date()[_0x22be43(0x16a)](),'message':_0x57287f,'kind':_0x33d30f[_0x22be43(0x176)]}),_0x33d30f[_0x22be43(0x18c)](_0x44fd48,_0x57287f),PerformanceTester[_0x22be43(0x16c)](O11yEvents['TAKE_SCREENSHOT']);})[_0x54ed23(0x178)](_0x1a19b6=>{const _0xb8095b=_0x54ed23;PerformanceTester[_0xb8095b(0x16c)](O11yEvents[_0xb8095b(0x164)]),_0x465137[_0xb8095b(0x181)](_0x5b72a6,_0x1a19b6);});});};},exports['overrideQuit']=(_0x546664,_0xa9068e=null)=>{const _0x424c48=a140_0x41ff23,_0x3bc655={'IXGyx':function(_0x16db24){return _0x16db24();},'IASLv':function(_0x4e9168,_0x34933c){return _0x4e9168>_0x34933c;}};if(_0x546664[_0x424c48(0x18b)])return;_0x546664['patchQuit']=!![],_0x546664[_0x424c48(0x18d)]=_0x546664[_0x424c48(0x174)],_0x546664[_0x424c48(0x174)]=()=>{const _0x2cad9b=_0x424c48,_0x3c99d3={'GLcoQ':function(_0x56cb1a){const _0x109167=a140_0x22c0;return _0x3bc655[_0x109167(0x18f)](_0x56cb1a);}};if(_0xa9068e){_0xa9068e[_0x2cad9b(0x165)]+=0x1;if(_0x3bc655[_0x2cad9b(0x17e)](_0xa9068e[_0x2cad9b(0x165)],0x1))return _0x546664[_0x2cad9b(0x18d)]();}else{_0x546664[_0x2cad9b(0x165)]+=0x1;if(_0x3bc655[_0x2cad9b(0x17e)](_0x546664['quitCount_'],0x1))return _0x546664['initQuit']();}return new Promise(function(_0x3391fe){_0x3c99d3['GLcoQ'](_0x3391fe);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a141_0x403a(_0x258768,_0x405eb8){const _0x14c4bc=a141_0x14c4();return a141_0x403a=function(_0x403a67,_0x80d561){_0x403a67=_0x403a67-0xef;let _0x140170=_0x14c4bc[_0x403a67];return _0x140170;},a141_0x403a(_0x258768,_0x405eb8);}const a141_0x10d3e4=a141_0x403a;(function(_0x154d88,_0x388d96){const _0x1fd7b3=a141_0x403a,_0x1f992a=_0x154d88();while(!![]){try{const _0x4f141c=-parseInt(_0x1fd7b3(0x118))/0x1+parseInt(_0x1fd7b3(0x130))/0x2*(-parseInt(_0x1fd7b3(0x129))/0x3)+-parseInt(_0x1fd7b3(0xf7))/0x4*(-parseInt(_0x1fd7b3(0x110))/0x5)+parseInt(_0x1fd7b3(0x12c))/0x6*(parseInt(_0x1fd7b3(0xf3))/0x7)+parseInt(_0x1fd7b3(0xfd))/0x8+parseInt(_0x1fd7b3(0x11c))/0x9+-parseInt(_0x1fd7b3(0xf0))/0xa;if(_0x4f141c===_0x388d96)break;else _0x1f992a['push'](_0x1f992a['shift']());}catch(_0x4719ef){_0x1f992a['push'](_0x1f992a['shift']());}}}(a141_0x14c4,0x75ba3));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a141_0x10d3e4(0xf5)),helper=require(a141_0x10d3e4(0x12f)),logger=require(a141_0x10d3e4(0x103))[a141_0x10d3e4(0x133)],{getLogDir}=require(a141_0x10d3e4(0x103)),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require(a141_0x10d3e4(0x123)),{PERCY_EVENTS:PerformanceEvents}=require(a141_0x10d3e4(0xf6)),PercyBinary=require('./PercyBinary');class Percy{#logfile=path[a141_0x10d3e4(0x131)](getLogDir(),a141_0x10d3e4(0x12e));#address=process[a141_0x10d3e4(0x100)][a141_0x10d3e4(0x11b)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a141_0x10d3e4(0x132)]=![];constructor(_0x3e9c2b){const _0x155461=a141_0x10d3e4;this.#config=_0x3e9c2b,!!_0x3e9c2b[_0x155461(0x10f)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x2f97fd=a141_0x10d3e4;if(!this.#binaryPath){const _0xf24b2e=new PercyBinary();PerformanceTester['start'](PerformanceEvents[_0x2f97fd(0x11f)]),this.#binaryPath=await _0xf24b2e[_0x2f97fd(0x10d)](this.#config),PerformanceTester[_0x2f97fd(0x128)](PerformanceEvents[_0x2f97fd(0x11f)]);}return this.#binaryPath;}async #sleep(_0x183246){return new Promise(_0x5382b4=>setTimeout(_0x5382b4,_0x183246));}async[a141_0x10d3e4(0x136)](){const _0x27cb52=a141_0x10d3e4,_0x3400e6={};_0x3400e6[_0x27cb52(0x134)]=_0x27cb52(0x122),_0x3400e6[_0x27cb52(0xfe)]=_0x27cb52(0xef);const _0x5b5e3c=_0x3400e6;try{const _0x450743=await helper['nodeRequest'](_0x5b5e3c[_0x27cb52(0x134)],_0x5b5e3c[_0x27cb52(0xfe)],null,null,this.#address);if(_0x450743)return!![];}catch(_0x4da7d4){return![];}}async['start'](){const _0x2b8a35=a141_0x10d3e4,_0x6d4916={'uXrOJ':_0x2b8a35(0x12b),'YAnBg':_0x2b8a35(0x108),'GemfZ':function(_0x2e0637,_0x9f81a0,_0x51dc11,_0x265e61){return _0x2e0637(_0x9f81a0,_0x51dc11,_0x265e61);},'qTLJL':_0x2b8a35(0x113),'uAbtc':_0x2b8a35(0x11e)},_0x545e2e=await this.#getBinaryPath(),_0x30350b={};_0x30350b['flags']='a',this.#logStream=fs[_0x2b8a35(0x102)](this.#logfile,_0x30350b);const _0x348bfc=await this[_0x2b8a35(0x10e)](),_0x45e485=await this[_0x2b8a35(0x119)]();if(!_0x348bfc)return![];const _0x147f37=[(this.#isApp?_0x6d4916[_0x2b8a35(0x120)]:_0x6d4916[_0x2b8a35(0xf2)])+_0x2b8a35(0xf9)];_0x45e485&&_0x147f37['push']('-c',_0x45e485);this.#proc=_0x6d4916['GemfZ'](spawn,_0x545e2e,_0x147f37,{'env':Object[_0x2b8a35(0x111)](process[_0x2b8a35(0x100)],{'PERCY_TOKEN':_0x348bfc,'TH_BUILD_UUID':process[_0x2b8a35(0x100)][testHubConstants[_0x2b8a35(0x10b)][_0x2b8a35(0xfc)]]})}),this.#proc['stdout'][_0x2b8a35(0x11d)](this.#logStream),this.#proc[_0x2b8a35(0x107)][_0x2b8a35(0x11d)](this.#logStream),this[_0x2b8a35(0x132)]=!![];var _0x5e8752=this;this.#proc['on'](_0x6d4916['qTLJL'],function(_0x5ebc58){const _0xef9758=_0x2b8a35;_0x5e8752[_0xef9758(0x132)]=![];});do{const _0x1ae4d0=await this[_0x2b8a35(0x136)]();if(_0x1ae4d0)return logger['debug'](_0x6d4916[_0x2b8a35(0x115)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a141_0x10d3e4(0x101)](){const _0xa1e561=a141_0x10d3e4,_0x346a55={'ntGkX':function(_0x2c012f,_0x153160){return _0x2c012f(_0x153160);},'bvusy':function(_0x2a79bf,_0x4c0457,_0x176b98){return _0x2a79bf(_0x4c0457,_0x176b98);},'tqBSu':_0xa1e561(0x135),'cinFJ':'close'},_0x10f62b=await this.#getBinaryPath();return new Promise((_0x2bbb11,_0x44b04f)=>{const _0xd5752e=_0xa1e561,_0x1c1162={'lHqgN':function(_0x5e03c2,_0x4b1ad6){const _0x304355=a141_0x403a;return _0x346a55[_0x304355(0x109)](_0x5e03c2,_0x4b1ad6);}},_0x1efed3=_0x346a55[_0xd5752e(0xff)](spawn,_0x10f62b,[_0x346a55[_0xd5752e(0xf8)]]);_0x1efed3['on'](_0x346a55[_0xd5752e(0xf4)],_0x238e6e=>{const _0x9784c0=_0xd5752e;this['isProcessRunning']=![],this.#logStream&&(this.#logStream[_0x9784c0(0x128)](),this.#logStream=null),_0x1c1162['lHqgN'](_0x2bbb11,_0x238e6e);});});}['isRunning'](){const _0x4aec4f=a141_0x10d3e4;return this[_0x4aec4f(0x132)];}async[a141_0x10d3e4(0x10e)](){const _0xa8ed7f=a141_0x10d3e4,_0x46797a={};_0x46797a[_0xa8ed7f(0x10c)]=_0xa8ed7f(0x10f),_0x46797a[_0xa8ed7f(0x104)]=_0xa8ed7f(0x127),_0x46797a[_0xa8ed7f(0x137)]=_0xa8ed7f(0x122),_0x46797a[_0xa8ed7f(0x112)]=_0xa8ed7f(0x125);const _0x360b4a=_0x46797a,_0x7254be=this.#config['projectName'];try{const _0x3d8b1f=this.#isApp?_0x360b4a[_0xa8ed7f(0x10c)]:_0x360b4a[_0xa8ed7f(0x104)],_0x44713e=await helper[_0xa8ed7f(0xf1)](_0x360b4a[_0xa8ed7f(0x137)],'api/app_percy/get_project_token?name='+_0x7254be+'&type='+_0x3d8b1f,{},this.#config),_0x2342b8=_0x44713e['data'];return logger[_0xa8ed7f(0x11a)](_0x360b4a[_0xa8ed7f(0x112)]),_0x2342b8[_0xa8ed7f(0xfb)];}catch(_0x43970b){return logger[_0xa8ed7f(0x116)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x43970b),null;}}async['createPercyConfig'](){const _0x1e692d=a141_0x10d3e4,_0x2aee14={'OQQGz':function(_0x2c511a,_0x3730f0){return _0x2c511a(_0x3730f0);},'MmwVE':function(_0x117e8e,_0x41e6e3){return _0x117e8e+_0x41e6e3;},'gdmuX':'Percy\x20config\x20created\x20at\x20','HGlAD':_0x1e692d(0x121)};if(!this.#config[_0x1e692d(0xfa)])return null;const _0x13f1c7=path[_0x1e692d(0x131)](os[_0x1e692d(0x12a)](),_0x2aee14[_0x1e692d(0x105)]),_0x4bcf3f=this.#config[_0x1e692d(0xfa)];return!_0x4bcf3f[_0x1e692d(0x126)]&&(_0x4bcf3f[_0x1e692d(0x126)]='2'),new Promise((_0x1041af,_0x509fc2)=>{const _0x4eb86b=_0x1e692d,_0x12dae4={'RAhJT':function(_0x468b2b,_0x397bea){const _0x29ac5c=a141_0x403a;return _0x2aee14[_0x29ac5c(0x10a)](_0x468b2b,_0x397bea);},'ikZNg':function(_0x163d9c,_0x241b92){const _0x84448e=a141_0x403a;return _0x2aee14[_0x84448e(0x12d)](_0x163d9c,_0x241b92);},'UIpCb':_0x2aee14['gdmuX']};fs[_0x4eb86b(0x124)](_0x13f1c7,JSON['stringify'](_0x4bcf3f),_0x26f679=>{const _0x338d51=_0x4eb86b;_0x26f679&&(logger[_0x338d51(0x116)](_0x338d51(0x106)+_0x26f679),_0x12dae4[_0x338d51(0x117)](_0x1041af,null)),logger['debug'](_0x12dae4['ikZNg'](_0x12dae4[_0x338d51(0x114)],_0x13f1c7)),_0x12dae4[_0x338d51(0x117)](_0x1041af,_0x13f1c7);});});}}function a141_0x14c4(){const _0x24d07f=['../../helpers/performance/constants','1971372wrOAYw','tqBSu',':start','percyOptions','token','BROWSERSTACK_TESTHUB_UUID','3844024UOJzOo','pigrI','bvusy','env','stop','createWriteStream','../logger','drvBo','HGlAD','Error\x20creating\x20percy\x20config:\x20','stderr','exec','ntGkX','OQQGz','ENV_VAR','PHBqQ','getBinaryPath','fetchPercyToken','app','5PJbBNQ','assign','zHPWk','close','UIpCb','uAbtc','error','RAhJT','382278yELYGq','createPercyConfig','debug','PERCY_SERVER_ADDRESS','4715748sfnCYd','pipe','Percy\x20healthcheck\x20successful','DOWNLOAD','uXrOJ','percy.json','GET','../../helpers/performance/performance-tester','writeFile','Percy\x20fetch\x20token\x20success','version','automate','end','1357326CnVhAC','tmpdir','app:exec','81306ctZdPA','MmwVE','percy.log','../helper','4hFMjXO','join','isProcessRunning','winstonLogger','QdSmZ','exec:stop','healthcheck','HLGGu','percy/healthcheck','1615770MxjtxW','nodeRequest','YAnBg','224VoZQMe','cinFJ','child_process'];a141_0x14c4=function(){return _0x24d07f;};return a141_0x14c4();}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x354cb4=a142_0x4311;(function(_0x287d5e,_0x2ed161){const _0x1c5c7b=a142_0x4311,_0x2ece7d=_0x287d5e();while(!![]){try{const _0x9a9f82=-parseInt(_0x1c5c7b(0x132))/0x1*(-parseInt(_0x1c5c7b(0x101))/0x2)+-parseInt(_0x1c5c7b(0xf5))/0x3*(-parseInt(_0x1c5c7b(0x119))/0x4)+-parseInt(_0x1c5c7b(0x16b))/0x5*(parseInt(_0x1c5c7b(0x13f))/0x6)+parseInt(_0x1c5c7b(0xec))/0x7+-parseInt(_0x1c5c7b(0x106))/0x8*(-parseInt(_0x1c5c7b(0xf6))/0x9)+-parseInt(_0x1c5c7b(0x109))/0xa*(parseInt(_0x1c5c7b(0x134))/0xb)+-parseInt(_0x1c5c7b(0x12b))/0xc*(-parseInt(_0x1c5c7b(0x100))/0xd);if(_0x9a9f82===_0x2ed161)break;else _0x2ece7d['push'](_0x2ece7d['shift']());}catch(_0x2880b0){_0x2ece7d['push'](_0x2ece7d['shift']());}}}(a142_0x3b90,0x8eef8));const {https}=require(a142_0x354cb4(0xfd)),url=require('url'),yauzl=require(a142_0x354cb4(0x11b)),fs=require('fs'),path=require(a142_0x354cb4(0x11d)),os=require('os'),{spawn}=require(a142_0x354cb4(0x14c)),HttpsProxyAgent=require(a142_0x354cb4(0x151)),logger=require('../logger')[a142_0x354cb4(0x120)];function a142_0x3b90(){const _0x28223f=['miHQf','data','env','0755','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','UuPjy','/percy-win.zip','ohTYG','LOGNAME','validateBinary','xykEZ','sdcGn','ZiQnO','function','IHgUI','jnwTB','headers','proxyHost','getBinaryPath','--version','2198021nTnGdv','DgGdd','writeFileSync','percy.exe','HOME','pipe','mubol','USER','join','3327wCHTBq','9HFbfmE','.browserstack','gkNaB','tmpdir','Saved\x20new\x20ETag\x20for\x20percy\x20binary','NynRw','KOrWV','follow-redirects','MraZT','VsLam','62504gLfTgd','27194HNWrid','host','BuVRX','ulnSk','PfiXj','886904aNQKoj','getuid','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','30LwOhfH','TSQIk','https://github.com/percy/cli/releases/latest/download','test','bXrNO','statusCode','linux','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','tmEjC','bxSvZ','HOMEPATH','catch','CTciy','PshYS','statSync','mkdirSync','1412bEqgpP','FAzCB','yauzl','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','path','error','cEevV','winstonLogger','proxyPort','readEntry','darwin','utf8','wmkpG','TplFJ','xmWum','leanZ','YmKDK','/Users/','456pTCPDB','win32','JuLNS','LNAME','PUMPL','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','FzoVy','47fIQjYS','extractAndSaveBinary','247489JnVKNE','download','aicvB','debug','X_OK','W_OK','diWbd','fPOVZ','homedir','close','entry','1470ZttRaN','platform','ckZrX','tZEAd','binaryPath','port','useCaCertificate','rkZiK','Failed\x20to\x20read\x20ETag\x20file:\x20','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','sdfjp','/percy-osx.zip','openReadStream','child_process','parse','accessSync','USERNAME','XyPnV','https-proxy-agent','xAjaE','PGBnt','GsjhW','createWriteStream','If-None-Match','warn','hUQJd','RWTzc','readFileSync','USERPROFILE','SzAWV','then','.etag','QlGrk','kiPtS','end','cNMHg','stdout','cwd','fileName','Connection','VAyzt','needsUpdate','hEvaZ','ltfyw','20105eannkV','etag','GWYXw','R_OK','Failed\x20to\x20save\x20ETag\x20file:\x20','.zip'];a142_0x3b90=function(){return _0x28223f;};return a142_0x3b90();}class PercyBinary{#hostOS=process[a142_0x354cb4(0x140)];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),a142_0x354cb4(0xf7)),process[a142_0x354cb4(0x164)](),os[a142_0x354cb4(0xf9)]()];constructor(){const _0x35f9b8=a142_0x354cb4,_0x4a1cb2={};_0x4a1cb2['IHgUI']=_0x35f9b8(0x10b),_0x4a1cb2[_0x35f9b8(0x129)]=function(_0x3c2a91,_0x3706dc){return _0x3c2a91+_0x3706dc;},_0x4a1cb2[_0x35f9b8(0x17b)]=_0x35f9b8(0x14a),_0x4a1cb2[_0x35f9b8(0x142)]=function(_0x2a5eae,_0x455f51){return _0x2a5eae+_0x455f51;},_0x4a1cb2[_0x35f9b8(0x116)]=_0x35f9b8(0x177),_0x4a1cb2[_0x35f9b8(0xff)]=_0x35f9b8(0xef),_0x4a1cb2['miHQf']='/percy-linux.zip';const _0x1a049b=_0x4a1cb2,_0x108ce5=_0x1a049b[_0x35f9b8(0x17f)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x1a049b[_0x35f9b8(0x129)](_0x108ce5,_0x1a049b['xykEZ']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x1a049b['tZEAd'](_0x108ce5,_0x1a049b[_0x35f9b8(0x116)]),this.#binaryName=_0x1a049b[_0x35f9b8(0xff)]):this.#httpPath=_0x1a049b['tZEAd'](_0x108ce5,_0x1a049b[_0x35f9b8(0x171)]);}#getAvailableDirs(){const _0x2741a9=a142_0x354cb4,_0x2ee6ea={};_0x2ee6ea['hEvaZ']=function(_0x5854e6,_0xc9a467){return _0x5854e6<_0xc9a467;},_0x2ee6ea[_0x2741a9(0x103)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x27fef6=_0x2ee6ea;for(var _0x3d88e2=0x0;_0x27fef6[_0x2741a9(0x169)](_0x3d88e2,this.#orderedPaths['length']);_0x3d88e2++){var _0x241c16=this.#orderedPaths[_0x3d88e2];if(this.#makePath(_0x241c16))return _0x241c16;}throw new Error(_0x27fef6[_0x2741a9(0x103)]);}#makePath(_0x4a127f){const _0x2d7ada=a142_0x354cb4;try{return _0x4a127f&&!this.#checkPath(_0x4a127f)&&fs[_0x2d7ada(0x118)](_0x4a127f),!![];}catch{return![];}}#checkPath(_0x16b6e5,_0x2e5e84){const _0x38b83d=a142_0x354cb4,_0x5b1e58={};_0x5b1e58[_0x38b83d(0xf8)]=function(_0x3627f1,_0x97d83d){return _0x3627f1|_0x97d83d;},_0x5b1e58['ohTYG']=function(_0x239fe8,_0x347a49){return _0x239fe8!==_0x347a49;},_0x5b1e58[_0x38b83d(0x11f)]='undefined';const _0x2c0675=_0x5b1e58;_0x2e5e84=_0x2e5e84||_0x2c0675[_0x38b83d(0xf8)](fs[_0x38b83d(0x16e)],fs[_0x38b83d(0x139)]);try{return fs[_0x38b83d(0x14e)](_0x16b6e5,_0x2e5e84),!![];}catch(_0x52c228){if(_0x2c0675[_0x38b83d(0x178)](typeof fs['accessSync'],_0x2c0675[_0x38b83d(0x11f)]))return![];try{return fs[_0x38b83d(0x117)](_0x16b6e5),!![];}catch(_0x1b9905){return![];}}}#getETagPath(_0x5667e4){const _0x4321d5=a142_0x354cb4;return path[_0x4321d5(0xf4)](_0x5667e4,this.#binaryName+_0x4321d5(0x15e));}#loadETag(_0x46b3f2){const _0x2c9bc6=a142_0x354cb4,_0x4ef217={};_0x4ef217[_0x2c9bc6(0x15f)]=_0x2c9bc6(0x124);const _0x3c229a=_0x4ef217,_0xce84ba=this.#getETagPath(_0x46b3f2);if(this.#checkPath(_0xce84ba))try{return fs[_0x2c9bc6(0x15a)](_0xce84ba,_0x3c229a[_0x2c9bc6(0x15f)])['trim']();}catch(_0x104c7d){logger[_0x2c9bc6(0x157)](_0x2c9bc6(0x147)+_0x104c7d);}return null;}#saveETag(_0xdf3ce1,_0x18ea18){const _0xe55e68=a142_0x354cb4,_0x1d8684={};_0x1d8684['xmWum']=_0xe55e68(0xfa);const _0x65deab=_0x1d8684;if(!_0x18ea18)return;try{const _0x575016=this.#getETagPath(_0xdf3ce1);fs[_0xe55e68(0xee)](_0x575016,_0x18ea18),logger['debug'](_0x65deab[_0xe55e68(0x127)]);}catch(_0x37702c){logger[_0xe55e68(0x157)](_0xe55e68(0x16f)+_0x37702c);}}async #handleBinaryDownload(_0x449789,_0x103622,_0x419297){const _0x1da108=a142_0x354cb4,_0x3f5a9e={};_0x3f5a9e[_0x1da108(0xed)]=_0x1da108(0x108);const _0xb4a804=_0x3f5a9e,_0x54ad9f=await this[_0x1da108(0x17a)](_0x449789[_0x1da108(0x143)]);if(!_0x54ad9f){logger[_0x1da108(0x11e)](_0xb4a804[_0x1da108(0xed)]);const _0x2aa4f9=await this[_0x1da108(0x135)](_0x103622,_0x419297);return _0x2aa4f9[_0x1da108(0x143)];}return _0x449789['binaryPath'];}async[a142_0x354cb4(0x183)](_0x5631bf){const _0x505cc7=a142_0x354cb4,_0xd0980a={};_0xd0980a['bxSvZ']=_0x505cc7(0x148),_0xd0980a[_0x505cc7(0xfe)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x5492c2=_0xd0980a,_0x345f65=this.#getAvailableDirs(),_0xc7e721=path[_0x505cc7(0xf4)](_0x345f65,this.#binaryName);if(this.#checkPath(_0xc7e721,fs[_0x505cc7(0x138)])){const _0x17d829=this.#loadETag(_0x345f65);if(_0x17d829)try{const _0x324c7e=await this['download'](_0x5631bf,_0x345f65,_0x17d829);if(!_0x324c7e[_0x505cc7(0x168)])return logger[_0x505cc7(0x137)](_0x5492c2[_0x505cc7(0x112)]),_0xc7e721;return logger[_0x505cc7(0x137)](_0x5492c2[_0x505cc7(0xfe)]),await this.#handleBinaryDownload(_0x324c7e,_0x5631bf,_0x345f65);}catch(_0x64c170){return logger[_0x505cc7(0x157)](_0x505cc7(0x110)+_0x64c170),_0xc7e721;}}const _0x5167bb=await this[_0x505cc7(0x135)](_0x5631bf,_0x345f65);return await this.#handleBinaryDownload(_0x5167bb,_0x5631bf,_0x345f65);}[a142_0x354cb4(0x135)](_0x5664f6,_0x56dab8,_0x4e2542=null){const _0x4138ba=a142_0x354cb4,_0x607ba0={'xAjaE':function(_0x5cb939,_0x5c926c){return _0x5cb939(_0x5c926c);},'sdfjp':function(_0xecc4d0,_0x5f19d8){return _0xecc4d0===_0x5f19d8;},'RWTzc':_0x4138ba(0x11e),'CTciy':'close','PfiXj':function(_0x495d69,_0x1d34bf){return _0x495d69+_0x1d34bf;},'LooGq':_0x4138ba(0x170)};_0x56dab8&&!this.#checkPath(_0x56dab8)&&fs['mkdirSync'](_0x56dab8);const _0x56d3ae=this.#binaryName,_0x47e493=path[_0x4138ba(0xf4)](_0x56dab8,_0x607ba0[_0x4138ba(0x105)](_0x56d3ae,_0x607ba0['LooGq'])),_0x58e7fa=fs[_0x4138ba(0x155)](_0x47e493),_0xb5a17d=url[_0x4138ba(0x14d)](this.#httpPath);if(_0x5664f6[_0x4138ba(0x182)]&&_0x5664f6[_0x4138ba(0x121)]){const _0x3051af={};_0x3051af[_0x4138ba(0x102)]=_0x5664f6[_0x4138ba(0x182)],_0x3051af[_0x4138ba(0x144)]=_0x5664f6[_0x4138ba(0x121)],_0xb5a17d['agent']=new HttpsProxyAgent(_0x3051af);}if(_0x5664f6['useCaCertificate'])try{_0xb5a17d['ca']=fs[_0x4138ba(0x15a)](_0x5664f6[_0x4138ba(0x145)]);}catch(_0x1fbfef){logger[_0x4138ba(0x11e)](_0x4138ba(0x11c)+_0x1fbfef);}if(_0x4e2542){const _0x3ac090={};_0x3ac090[_0x4138ba(0x156)]=_0x4e2542,_0x3ac090['Connection']=_0x607ba0[_0x4138ba(0x115)],_0xb5a17d[_0x4138ba(0x181)]=_0x3ac090;}else{const _0x288d46={};_0x288d46[_0x4138ba(0x166)]=_0x607ba0[_0x4138ba(0x115)],_0xb5a17d['headers']=_0x288d46;}return new Promise((_0x5ba45f,_0xa701c)=>{const _0x40f82b=_0x4138ba,_0x431c32={'jnwTB':function(_0x3bc26a,_0x3975a9){const _0x3fe3f7=a142_0x4311;return _0x607ba0[_0x3fe3f7(0x152)](_0x3bc26a,_0x3975a9);},'mubol':function(_0x167140,_0x2bc7fa){const _0x148930=a142_0x4311;return _0x607ba0[_0x148930(0x152)](_0x167140,_0x2bc7fa);},'ZsVwe':function(_0x25bc96,_0x2f7bf2){const _0x7a3905=a142_0x4311;return _0x607ba0[_0x7a3905(0x149)](_0x25bc96,_0x2f7bf2);},'TSQIk':_0x607ba0[_0x40f82b(0x159)],'UuPjy':_0x607ba0['CTciy']};https['get'](_0xb5a17d,_0x20c08c=>{const _0x89c641=_0x40f82b;if(_0x4e2542&&_0x431c32['ZsVwe'](_0x20c08c[_0x89c641(0x10e)],0x130)){_0x58e7fa['destroy']();const _0x3dc577={};_0x3dc577['needsUpdate']=![],_0x431c32[_0x89c641(0xf2)](_0x5ba45f,_0x3dc577);return;}const _0x3382eb=_0x20c08c[_0x89c641(0x181)][_0x89c641(0x16c)];_0x3382eb&&this.#saveETag(_0x56dab8,_0x3382eb),_0x20c08c[_0x89c641(0xf1)](_0x58e7fa),_0x20c08c['on'](_0x431c32[_0x89c641(0x10a)],function(_0xbad0a6){const _0xae0f68=_0x89c641;logger[_0xae0f68(0x11e)](_0xae0f68(0x130)+_0xbad0a6),_0x431c32[_0xae0f68(0x180)](_0xa701c,_0xbad0a6);}),_0x58e7fa['on'](_0x431c32[_0x89c641(0x10a)],function(_0x1b47a5){const _0x212b32=_0x89c641;logger[_0x212b32(0x11e)](_0x212b32(0x175)+_0x1b47a5),_0x431c32[_0x212b32(0xf2)](_0xa701c,_0x1b47a5);}),_0x58e7fa['on'](_0x431c32[_0x89c641(0x176)],()=>{const _0x16f35c=_0x89c641;this[_0x16f35c(0x133)](_0x47e493,_0x56dab8)[_0x16f35c(0x15d)](_0x57c2cd=>_0x5ba45f({'needsUpdate':!![],'binaryPath':_0x57c2cd}))[_0x16f35c(0x114)](_0xa701c);});})['on'](_0x607ba0[_0x40f82b(0x159)],function(_0x2bd258){const _0x4599ff=_0x40f82b;logger[_0x4599ff(0x11e)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x2bd258),_0x431c32['mubol'](_0xa701c,_0x2bd258);});});}[a142_0x354cb4(0x133)](_0x5e2c8d,_0x4c0aa4){const _0x3e599b=a142_0x354cb4,_0x458537={'NVGop':function(_0x3b7662,_0x3d60b0){return _0x3b7662===_0x3d60b0;},'UgPyX':function(_0x588a44,_0x767fd0){return _0x588a44(_0x767fd0);},'bXrNO':_0x3e599b(0x161),'diWbd':_0x3e599b(0x174),'aicvB':_0x3e599b(0x13e),'wmkpG':_0x3e599b(0x11e)},_0x175425=this.#binaryName,_0x22edcf=path[_0x3e599b(0xf4)](_0x4c0aa4,_0x175425);return new Promise((_0x11d4ce,_0xc4d8d9)=>{const _0x233f95=_0x3e599b,_0x357334={'mqoPb':function(_0xe14fd9,_0x403720){return _0x458537['NVGop'](_0xe14fd9,_0x403720);},'ZiQnO':function(_0x1ffff1,_0x169f25){return _0x458537['UgPyX'](_0x1ffff1,_0x169f25);},'TplFJ':_0x458537[_0x233f95(0x10d)],'GsjhW':_0x458537[_0x233f95(0x13a)],'KOrWV':_0x458537[_0x233f95(0x136)],'PMaxh':_0x458537[_0x233f95(0x125)]},_0x14005a={};_0x14005a['lazyEntries']=!![],yauzl['open'](_0x5e2c8d,_0x14005a,function(_0x3d72d1,_0x5e3f30){const _0x41d159=_0x233f95,_0x20c247={'PGBnt':function(_0x7a1e5d,_0x2fc7a5){const _0x49c4d2=a142_0x4311;return _0x357334[_0x49c4d2(0x17d)](_0x7a1e5d,_0x2fc7a5);},'NynRw':_0x357334['TplFJ'],'hUQJd':_0x357334[_0x41d159(0x154)]};_0x3d72d1&&_0x357334[_0x41d159(0x17d)](_0xc4d8d9,_0x3d72d1),_0x5e3f30[_0x41d159(0x122)](),_0x5e3f30['on'](_0x357334[_0x41d159(0xfc)],_0x54ffa1=>{const _0x2683ab=_0x41d159;if(/\/$/['test'](_0x54ffa1[_0x2683ab(0x165)]))_0x5e3f30[_0x2683ab(0x122)]();else{const _0x360c16=fs[_0x2683ab(0x155)](path[_0x2683ab(0xf4)](_0x4c0aa4,_0x54ffa1[_0x2683ab(0x165)]));_0x5e3f30[_0x2683ab(0x14b)](_0x54ffa1,function(_0x11fb68,_0x1b3b59){const _0x3130e8=_0x2683ab;_0x11fb68&&_0x20c247['PGBnt'](_0xc4d8d9,_0x3d72d1),_0x1b3b59['on'](_0x20c247[_0x3130e8(0xfb)],function(){_0x360c16['close'](),_0x5e3f30['readEntry']();}),_0x1b3b59[_0x3130e8(0xf1)](_0x360c16);}),_0x357334['mqoPb'](_0x54ffa1[_0x2683ab(0x165)],_0x175425)&&_0x5e3f30[_0x2683ab(0x13d)]();}}),_0x5e3f30['on'](_0x357334['PMaxh'],_0x26a6b1=>{const _0x35deb6=_0x41d159;_0x20c247[_0x35deb6(0x153)](_0xc4d8d9,_0x26a6b1);}),_0x5e3f30['once'](_0x357334[_0x41d159(0x126)],()=>{const _0x4b3654=_0x41d159;fs['chmod'](_0x22edcf,_0x20c247[_0x4b3654(0x158)],function(_0x5a2add){_0x5a2add&&_0x20c247['PGBnt'](_0xc4d8d9,_0x5a2add),_0x20c247['PGBnt'](_0x11d4ce,_0x22edcf);}),_0x5e3f30[_0x4b3654(0x13d)]();});});});}async[a142_0x354cb4(0x17a)](_0x3b61a8){const _0x490265=a142_0x354cb4,_0x4687d3={'FzoVy':function(_0x4e2679,_0x5d99f3){return _0x4e2679(_0x5d99f3);},'JuLNS':function(_0x52328e,_0x1a9b22,_0x2692a8,_0x2d9ec3){return _0x52328e(_0x1a9b22,_0x2692a8,_0x2d9ec3);},'GWYXw':_0x490265(0x184),'leanZ':_0x490265(0x172),'KPAfs':'close'},_0x4ba272=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x46746a,_0x23256e)=>{const _0x5e1e04=_0x490265,_0x87804c={'VAyzt':function(_0x3f9cc9,_0x22d5e1){const _0x21f861=a142_0x4311;return _0x4687d3[_0x21f861(0x131)](_0x3f9cc9,_0x22d5e1);}},_0x44ecb2={};_0x44ecb2[_0x5e1e04(0x173)]=process['env'];const _0x556b9a=_0x4687d3[_0x5e1e04(0x12d)](spawn,_0x3b61a8,[_0x4687d3[_0x5e1e04(0x16d)]],_0x44ecb2);_0x556b9a[_0x5e1e04(0x163)]['on'](_0x4687d3[_0x5e1e04(0x128)],_0x5f165a=>{const _0x4b71b0=_0x5e1e04;_0x4ba272[_0x4b71b0(0x10c)](_0x5f165a)&&_0x4687d3[_0x4b71b0(0x131)](_0x46746a,!![]);}),_0x556b9a['on'](_0x4687d3['KPAfs'],()=>{const _0x4fb19a=_0x5e1e04;_0x87804c[_0x4fb19a(0x167)](_0x46746a,![]);});});}#homedir(){const _0x2255a8=a142_0x354cb4,_0x1e6466={};_0x1e6466[_0x2255a8(0x16a)]=function(_0x3de024,_0x4a4bac){return _0x3de024===_0x4a4bac;},_0x1e6466[_0x2255a8(0x160)]=_0x2255a8(0x17e),_0x1e6466[_0x2255a8(0x150)]=_0x2255a8(0x12c),_0x1e6466[_0x2255a8(0x162)]=function(_0x359f09,_0x1db3e5){return _0x359f09+_0x1db3e5;},_0x1e6466[_0x2255a8(0x17c)]=_0x2255a8(0x123),_0x1e6466[_0x2255a8(0x15c)]=function(_0x13f7ba,_0x6efedd){return _0x13f7ba+_0x6efedd;},_0x1e6466[_0x2255a8(0x146)]=_0x2255a8(0x12a),_0x1e6466[_0x2255a8(0x11a)]=_0x2255a8(0x10f),_0x1e6466['ulnSk']=function(_0x1c9ec9,_0x5ef4ec){return _0x1c9ec9===_0x5ef4ec;},_0x1e6466[_0x2255a8(0x141)]='/root',_0x1e6466[_0x2255a8(0x13b)]=function(_0x2c764b,_0x21d7f7){return _0x2c764b+_0x21d7f7;},_0x1e6466[_0x2255a8(0x111)]='/home/',_0x1e6466[_0x2255a8(0x12f)]=function(_0x75b849,_0x48f23b){return _0x75b849||_0x48f23b;};const _0x3320c4=_0x1e6466;if(_0x3320c4[_0x2255a8(0x16a)](typeof os[_0x2255a8(0x13c)],_0x3320c4['kiPtS']))return os[_0x2255a8(0x13c)]();const _0x3a3cf9=process['env'],_0x3b2959=_0x3a3cf9[_0x2255a8(0xf0)],_0x18c16c=_0x3a3cf9[_0x2255a8(0x179)]||_0x3a3cf9[_0x2255a8(0xf3)]||_0x3a3cf9[_0x2255a8(0x12e)]||_0x3a3cf9[_0x2255a8(0x14f)];if(_0x3320c4[_0x2255a8(0x16a)](process[_0x2255a8(0x140)],_0x3320c4['XyPnV']))return _0x3a3cf9[_0x2255a8(0x15b)]||_0x3320c4['cNMHg'](_0x3a3cf9['HOMEDRIVE'],_0x3a3cf9[_0x2255a8(0x113)])||_0x3b2959||null;if(_0x3320c4[_0x2255a8(0x16a)](process[_0x2255a8(0x140)],_0x3320c4[_0x2255a8(0x17c)]))return _0x3b2959||(_0x18c16c?_0x3320c4[_0x2255a8(0x15c)](_0x3320c4[_0x2255a8(0x146)],_0x18c16c):null);if(_0x3320c4[_0x2255a8(0x16a)](process['platform'],_0x3320c4[_0x2255a8(0x11a)]))return _0x3b2959||(_0x3320c4[_0x2255a8(0x104)](process[_0x2255a8(0x107)](),0x0)?_0x3320c4[_0x2255a8(0x141)]:_0x18c16c?_0x3320c4[_0x2255a8(0x13b)](_0x3320c4['tmEjC'],_0x18c16c):null);return _0x3320c4[_0x2255a8(0x12f)](_0x3b2959,null);}}function a142_0x4311(_0x374b74,_0x205d69){const _0x3b903b=a142_0x3b90();return a142_0x4311=function(_0x431118,_0x376e0d){_0x431118=_0x431118-0xec;let _0x564c27=_0x3b903b[_0x431118];return _0x564c27;},a142_0x4311(_0x374b74,_0x205d69);}module['exports']=PercyBinary;
|
|
1
|
+
function a142_0x593b(_0x657bc7,_0x57c1ee){const _0x593a0e=a142_0x593a();return a142_0x593b=function(_0x593b3f,_0x581fef){_0x593b3f=_0x593b3f-0xe9;let _0x440255=_0x593a0e[_0x593b3f];return _0x440255;},a142_0x593b(_0x657bc7,_0x57c1ee);}const a142_0x437d17=a142_0x593b;function a142_0x593a(){const _0x6403c7=['winstonLogger','catch','https://github.com/percy/cli/releases/latest/download','dcjMo','fdJYc','4596cvIEzJ','mYOWj','aEROC','hvAYq','linux','stdout','once','.zip','--version','uUpfg','statusCode','Saved\x20new\x20ETag\x20for\x20percy\x20binary','yEzPd','tmpdir','LEEby','get','win32','axIcJ','eszWX','UioMi','eTgZY','FZvPe','parse','PSQLn','wsqwq','72mgsMye','JDHEH','.browserstack','join','etag','W_OK','readEntry','homedir','port','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','child_process','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','needsUpdate','EnhPL','210kgyPwP','fDSFN','RZzJp','trim','7644QCWGmm','5799766aZgWrB','CQQdy','2hYrwPb','undefined','/percy-win.zip','Connection','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','OXjZu','ItNcn','EGMKW','warn','CLDVQ','statSync','yauzl','.etag','3996336imbktz','QZOja','/percy-osx.zip','percy','UcbVQ','test','platform','ThxSF','headers','https-proxy-agent','744949ebfziH','LNAME','CBKGD','xNcLP','QxvrC','accessSync','OehLP','close','xZJad','/root','mkdirSync','HOMEDRIVE','open','agent','90380iafOVa','90KuOOOf','lVfsA','proxyHost','PDVml','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','data','validateBinary','yoxhD','follow-redirects','JVMzS','createWriteStream','JxEEX','cCpLH','USERPROFILE','lazyEntries','Error\x20trying\x20to\x20download\x20percy\x20binary','url','LOGNAME','fileName','ejJFh','XYxLy','env','path','openReadStream','nvUVz','X_OK','host','chmod','proxyPort','binaryPath','iSQQp','darwin','destroy','error','nuwXr','/percy-linux.zip','278793rpOuBV','If-None-Match','debug','utf8','match','tbBNI','jPWNo','extractAndSaveBinary','bfoET','useCaCertificate','readFileSync','36509sScwwe','0755','rlLGg','nMAUb','pipe','getuid','mrRZl','download','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','/home/','Failed\x20to\x20save\x20ETag\x20file:\x20','exports','cwd','kUdwF'];a142_0x593a=function(){return _0x6403c7;};return a142_0x593a();}(function(_0x5cead7,_0x51b328){const _0x37b41a=a142_0x593b,_0x44fd6d=_0x5cead7();while(!![]){try{const _0x501c18=parseInt(_0x37b41a(0x101))/0x1*(-parseInt(_0x37b41a(0xea))/0x2)+parseInt(_0x37b41a(0x110))/0x3*(-parseInt(_0x37b41a(0x17d))/0x4)+parseInt(_0x37b41a(0x10f))/0x5*(-parseInt(_0x37b41a(0x16b))/0x6)+-parseInt(_0x37b41a(0x17e))/0x7+parseInt(_0x37b41a(0xf7))/0x8+parseInt(_0x37b41a(0x134))/0x9*(parseInt(_0x37b41a(0x179))/0xa)+parseInt(_0x37b41a(0x13f))/0xb*(parseInt(_0x37b41a(0x152))/0xc);if(_0x501c18===_0x51b328)break;else _0x44fd6d['push'](_0x44fd6d['shift']());}catch(_0x2df806){_0x44fd6d['push'](_0x44fd6d['shift']());}}}(a142_0x593a,0x8c043));const {https}=require(a142_0x437d17(0x118)),url=require(a142_0x437d17(0x120)),yauzl=require(a142_0x437d17(0xf5)),fs=require('fs'),path=require(a142_0x437d17(0x126)),os=require('os'),{spawn}=require(a142_0x437d17(0x175)),HttpsProxyAgent=require(a142_0x437d17(0x100)),logger=require('../logger')[a142_0x437d17(0x14d)];class PercyBinary{#hostOS=process[a142_0x437d17(0xfd)];#httpPath=null;#binaryName=a142_0x437d17(0xfa);#orderedPaths=[path[a142_0x437d17(0x16e)](this.#homedir(),a142_0x437d17(0x16d)),process[a142_0x437d17(0x14b)](),os[a142_0x437d17(0x15f)]()];constructor(){const _0x47057e=a142_0x437d17,_0x345867={};_0x345867[_0x47057e(0x163)]=_0x47057e(0x14f),_0x345867[_0x47057e(0x150)]=function(_0x307862,_0x30ce3f){return _0x307862+_0x30ce3f;},_0x345867['JxEEX']=_0x47057e(0xf9),_0x345867[_0x47057e(0xe9)]=function(_0x160eae,_0x8e4115){return _0x160eae+_0x8e4115;},_0x345867['mrRZl']=_0x47057e(0xec),_0x345867['CBKGD']='percy.exe',_0x345867[_0x47057e(0x123)]=_0x47057e(0x133);const _0x3f2739=_0x345867,_0x338df1=_0x3f2739[_0x47057e(0x163)];if(this.#hostOS[_0x47057e(0x138)](/darwin|mac os/i))this.#httpPath=_0x3f2739['dcjMo'](_0x338df1,_0x3f2739[_0x47057e(0x11b)]);else this.#hostOS[_0x47057e(0x138)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3f2739[_0x47057e(0xe9)](_0x338df1,_0x3f2739[_0x47057e(0x145)]),this.#binaryName=_0x3f2739[_0x47057e(0x103)]):this.#httpPath=_0x3f2739[_0x47057e(0x150)](_0x338df1,_0x3f2739['ejJFh']);}#getAvailableDirs(){const _0x2a921f=a142_0x437d17,_0x175cdd={};_0x175cdd[_0x2a921f(0x142)]=function(_0x12a4ea,_0x3d49ac){return _0x12a4ea<_0x3d49ac;},_0x175cdd['PWQmO']=_0x2a921f(0x11f);const _0x41cde2=_0x175cdd;for(var _0x5c9662=0x0;_0x41cde2[_0x2a921f(0x142)](_0x5c9662,this.#orderedPaths['length']);_0x5c9662++){var _0x42a00d=this.#orderedPaths[_0x5c9662];if(this.#makePath(_0x42a00d))return _0x42a00d;}throw new Error(_0x41cde2['PWQmO']);}#makePath(_0x2d2e8e){const _0x109066=a142_0x437d17;try{return _0x2d2e8e&&!this.#checkPath(_0x2d2e8e)&&fs[_0x109066(0x10b)](_0x2d2e8e),!![];}catch{return![];}}#checkPath(_0x2e7734,_0x199078){const _0x3bc23d=a142_0x437d17,_0x1dcb33={};_0x1dcb33['xZJad']=function(_0x44d9b6,_0x20af43){return _0x44d9b6|_0x20af43;},_0x1dcb33[_0x3bc23d(0x16a)]=function(_0x5603da,_0x4d9c9c){return _0x5603da!==_0x4d9c9c;},_0x1dcb33['wNRfe']=_0x3bc23d(0xeb);const _0x111dd6=_0x1dcb33;_0x199078=_0x199078||_0x111dd6[_0x3bc23d(0x109)](fs['R_OK'],fs[_0x3bc23d(0x170)]);try{return fs[_0x3bc23d(0x106)](_0x2e7734,_0x199078),!![];}catch(_0x5e86fe){if(_0x111dd6['wsqwq'](typeof fs[_0x3bc23d(0x106)],_0x111dd6['wNRfe']))return![];try{return fs[_0x3bc23d(0xf4)](_0x2e7734),!![];}catch(_0x18d8c2){return![];}}}#getETagPath(_0x229f0d){const _0x4baa69=a142_0x437d17;return path[_0x4baa69(0x16e)](_0x229f0d,this.#binaryName+_0x4baa69(0xf6));}#loadETag(_0x31b3ee){const _0x4af57e=a142_0x437d17,_0x22255={};_0x22255[_0x4af57e(0x117)]=_0x4af57e(0x137);const _0x20c574=_0x22255,_0x4934d5=this.#getETagPath(_0x31b3ee);if(this.#checkPath(_0x4934d5))try{return fs['readFileSync'](_0x4934d5,_0x20c574[_0x4af57e(0x117)])[_0x4af57e(0x17c)]();}catch(_0x4d4fd8){logger[_0x4af57e(0xf2)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x4d4fd8);}return null;}#saveETag(_0x58142c,_0x2f9fef){const _0x801865=a142_0x437d17,_0x492410={};_0x492410[_0x801865(0x119)]=_0x801865(0x15d);const _0x552b16=_0x492410;if(!_0x2f9fef)return;try{const _0x22b2ed=this.#getETagPath(_0x58142c);fs['writeFileSync'](_0x22b2ed,_0x2f9fef),logger['debug'](_0x552b16[_0x801865(0x119)]);}catch(_0x2de82e){logger[_0x801865(0xf2)](_0x801865(0x149)+_0x2de82e);}}async #handleBinaryDownload(_0x3a4124,_0x5b9c7d,_0x10ad45){const _0x1ffa55=a142_0x437d17,_0x17cf81={};_0x17cf81['eszWX']=_0x1ffa55(0x114);const _0x273655=_0x17cf81,_0x5a586d=await this[_0x1ffa55(0x116)](_0x3a4124[_0x1ffa55(0x12d)]);if(!_0x5a586d){logger[_0x1ffa55(0x131)](_0x273655[_0x1ffa55(0x164)]);const _0x3e4440=await this[_0x1ffa55(0x146)](_0x5b9c7d,_0x10ad45);return _0x3e4440[_0x1ffa55(0x12d)];}return _0x3a4124[_0x1ffa55(0x12d)];}async['getBinaryPath'](_0x3cb3a5){const _0xa4ad01=a142_0x437d17,_0x11f6b1={};_0x11f6b1[_0xa4ad01(0x107)]=_0xa4ad01(0x176),_0x11f6b1['nvUVz']=_0xa4ad01(0x174);const _0x17eeb1=_0x11f6b1,_0x3766e8=this.#getAvailableDirs(),_0x3f57e2=path['join'](_0x3766e8,this.#binaryName);if(this.#checkPath(_0x3f57e2,fs[_0xa4ad01(0x129)])){const _0x38f804=this.#loadETag(_0x3766e8);if(_0x38f804)try{const _0x243f9d=await this[_0xa4ad01(0x146)](_0x3cb3a5,_0x3766e8,_0x38f804);if(!_0x243f9d[_0xa4ad01(0x177)])return logger[_0xa4ad01(0x136)](_0x17eeb1[_0xa4ad01(0x107)]),_0x3f57e2;return logger[_0xa4ad01(0x136)](_0x17eeb1[_0xa4ad01(0x128)]),await this.#handleBinaryDownload(_0x243f9d,_0x3cb3a5,_0x3766e8);}catch(_0x313293){return logger[_0xa4ad01(0xf2)](_0xa4ad01(0xee)+_0x313293),_0x3f57e2;}}const _0x13d997=await this['download'](_0x3cb3a5,_0x3766e8);return await this.#handleBinaryDownload(_0x13d997,_0x3cb3a5,_0x3766e8);}[a142_0x437d17(0x146)](_0x3ac17f,_0x2d3c3c,_0x15cd7c=null){const _0x12843b=a142_0x437d17,_0x1c8040={'tbBNI':function(_0x44bc49,_0x1aeba1){return _0x44bc49(_0x1aeba1);},'ThxSF':function(_0x3a2825,_0x20b7be){return _0x3a2825===_0x20b7be;},'eTgZY':function(_0x69b1a3,_0x5e7123){return _0x69b1a3(_0x5e7123);},'QxvrC':_0x12843b(0x131),'bfoET':_0x12843b(0x108),'FZvPe':function(_0x409fc5,_0x8cab13){return _0x409fc5(_0x8cab13);},'sojfX':function(_0x55bd48,_0x94801f){return _0x55bd48+_0x94801f;},'IyJiM':_0x12843b(0x159)};_0x2d3c3c&&!this.#checkPath(_0x2d3c3c)&&fs['mkdirSync'](_0x2d3c3c);const _0x35f874=this.#binaryName,_0x4e6ce3=path[_0x12843b(0x16e)](_0x2d3c3c,_0x1c8040['sojfX'](_0x35f874,_0x1c8040['IyJiM'])),_0x52f23f=fs['createWriteStream'](_0x4e6ce3),_0x1e268d=url[_0x12843b(0x168)](this.#httpPath);if(_0x3ac17f['proxyHost']&&_0x3ac17f['proxyPort']){const _0x57f7b8={};_0x57f7b8[_0x12843b(0x12a)]=_0x3ac17f[_0x12843b(0x112)],_0x57f7b8[_0x12843b(0x173)]=_0x3ac17f[_0x12843b(0x12c)],_0x1e268d[_0x12843b(0x10e)]=new HttpsProxyAgent(_0x57f7b8);}if(_0x3ac17f[_0x12843b(0x13d)])try{_0x1e268d['ca']=fs[_0x12843b(0x13e)](_0x3ac17f[_0x12843b(0x13d)]);}catch(_0x3dce44){logger[_0x12843b(0x131)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x3dce44);}if(_0x15cd7c){const _0x15395b={};_0x15395b[_0x12843b(0x135)]=_0x15cd7c,_0x15395b['Connection']=_0x1c8040[_0x12843b(0x13c)],_0x1e268d[_0x12843b(0xff)]=_0x15395b;}else{const _0x58296e={};_0x58296e[_0x12843b(0xed)]=_0x1c8040['bfoET'],_0x1e268d['headers']=_0x58296e;}return new Promise((_0xbfdef,_0x57ded9)=>{const _0x383f25=_0x12843b,_0x5562e2={'rlLGg':function(_0x5360b5,_0x42b7cf){return _0x1c8040['FZvPe'](_0x5360b5,_0x42b7cf);},'zEPuJ':function(_0x319d80,_0x24a4d8){const _0x107691=a142_0x593b;return _0x1c8040[_0x107691(0x167)](_0x319d80,_0x24a4d8);}};https[_0x383f25(0x161)](_0x1e268d,_0x3cdc1a=>{const _0x232741=_0x383f25,_0x1cdc69={'amtSF':function(_0x41652e,_0x817c15){const _0x4d3a96=a142_0x593b;return _0x1c8040[_0x4d3a96(0x139)](_0x41652e,_0x817c15);}};if(_0x15cd7c&&_0x1c8040[_0x232741(0xfe)](_0x3cdc1a[_0x232741(0x15c)],0x130)){_0x52f23f[_0x232741(0x130)]();const _0x13e557={};_0x13e557[_0x232741(0x177)]=![],_0x1c8040[_0x232741(0x166)](_0xbfdef,_0x13e557);return;}const _0x320698=_0x3cdc1a[_0x232741(0xff)][_0x232741(0x16f)];_0x320698&&this.#saveETag(_0x2d3c3c,_0x320698),_0x3cdc1a[_0x232741(0x143)](_0x52f23f),_0x3cdc1a['on'](_0x1c8040[_0x232741(0x105)],function(_0x41acc2){const _0x287ae2=_0x232741;logger[_0x287ae2(0x131)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x41acc2),_0x1cdc69['amtSF'](_0x57ded9,_0x41acc2);}),_0x52f23f['on'](_0x1c8040['QxvrC'],function(_0x745074){const _0x2353e5=_0x232741;logger[_0x2353e5(0x131)](_0x2353e5(0x147)+_0x745074),_0x5562e2[_0x2353e5(0x141)](_0x57ded9,_0x745074);}),_0x52f23f['on'](_0x1c8040['bfoET'],()=>{const _0x337ab6=_0x232741;this[_0x337ab6(0x13b)](_0x4e6ce3,_0x2d3c3c)['then'](_0x1df256=>_0xbfdef({'needsUpdate':!![],'binaryPath':_0x1df256}))[_0x337ab6(0x14e)](_0x57ded9);});})['on'](_0x1c8040['QxvrC'],function(_0x34ff3e){const _0xa0cd78=_0x383f25;logger[_0xa0cd78(0x131)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x34ff3e),_0x5562e2['zEPuJ'](_0x57ded9,_0x34ff3e);});});}[a142_0x437d17(0x13b)](_0x268e2a,_0x4de64c){const _0x5270f2=a142_0x437d17,_0x484723={'EGMKW':function(_0x3cc505,_0xf3b5a4){return _0x3cc505(_0xf3b5a4);},'xNcLP':'end','ZUwTN':function(_0x48184a,_0x282977){return _0x48184a===_0x282977;},'aEROC':function(_0x11128d,_0x2eb946){return _0x11128d(_0x2eb946);},'ERpfO':_0x5270f2(0x140),'fDSFN':function(_0x31f8c9,_0x3a870a){return _0x31f8c9(_0x3a870a);},'UcbVQ':'entry','lVfsA':_0x5270f2(0x131),'CLDVQ':function(_0x24d70b,_0x202572){return _0x24d70b(_0x202572);}},_0x383e17=this.#binaryName,_0x108711=path['join'](_0x4de64c,_0x383e17);return new Promise((_0x12bec7,_0x405dd8)=>{const _0x2a83d1=_0x5270f2,_0x383499={'cpbae':function(_0x1af5bb,_0x525194){const _0x1a7fd5=a142_0x593b;return _0x484723[_0x1a7fd5(0xf3)](_0x1af5bb,_0x525194);}},_0x39a11d={};_0x39a11d[_0x2a83d1(0x11e)]=!![],yauzl[_0x2a83d1(0x10d)](_0x268e2a,_0x39a11d,function(_0x3e7e24,_0x21e18c){const _0x6c8f08=_0x2a83d1,_0xd24998={'JDHEH':function(_0x46e48a,_0x415564){const _0x2df14d=a142_0x593b;return _0x484723[_0x2df14d(0xf1)](_0x46e48a,_0x415564);},'PDVml':_0x484723[_0x6c8f08(0x104)],'CmIEp':function(_0x2725c0,_0x59f078){return _0x484723['ZUwTN'](_0x2725c0,_0x59f078);},'mYOWj':function(_0x503b8f,_0x4f6e50){const _0xb5546a=_0x6c8f08;return _0x484723[_0xb5546a(0xf1)](_0x503b8f,_0x4f6e50);},'RaeqI':function(_0x2facd7,_0x18a193){const _0x5dd691=_0x6c8f08;return _0x484723[_0x5dd691(0x154)](_0x2facd7,_0x18a193);},'cCpLH':_0x484723['ERpfO']};_0x3e7e24&&_0x484723[_0x6c8f08(0x17a)](_0x405dd8,_0x3e7e24),_0x21e18c[_0x6c8f08(0x171)](),_0x21e18c['on'](_0x484723[_0x6c8f08(0xfb)],_0x4104f6=>{const _0x2b3f64=_0x6c8f08,_0x138fee={'EnhPL':function(_0x20b5af,_0x3fb244){const _0x32a334=a142_0x593b;return _0xd24998[_0x32a334(0x16c)](_0x20b5af,_0x3fb244);},'ryogN':_0xd24998[_0x2b3f64(0x113)]};if(/\/$/[_0x2b3f64(0xfc)](_0x4104f6['fileName']))_0x21e18c['readEntry']();else{const _0x4bc5e9=fs[_0x2b3f64(0x11a)](path[_0x2b3f64(0x16e)](_0x4de64c,_0x4104f6[_0x2b3f64(0x122)]));_0x21e18c[_0x2b3f64(0x127)](_0x4104f6,function(_0x445dcb,_0x2a9d1){const _0x1cf7c3=_0x2b3f64;_0x445dcb&&_0x138fee[_0x1cf7c3(0x178)](_0x405dd8,_0x3e7e24),_0x2a9d1['on'](_0x138fee['ryogN'],function(){const _0x1c7fd9=_0x1cf7c3;_0x4bc5e9[_0x1c7fd9(0x108)](),_0x21e18c[_0x1c7fd9(0x171)]();}),_0x2a9d1[_0x1cf7c3(0x143)](_0x4bc5e9);}),_0xd24998['CmIEp'](_0x4104f6['fileName'],_0x383e17)&&_0x21e18c['close']();}}),_0x21e18c['on'](_0x484723[_0x6c8f08(0x111)],_0x3ade93=>{_0x383499['cpbae'](_0x405dd8,_0x3ade93);}),_0x21e18c[_0x6c8f08(0x158)](_0x484723['xNcLP'],()=>{const _0x40c341=_0x6c8f08;fs[_0x40c341(0x12b)](_0x108711,_0xd24998[_0x40c341(0x11c)],function(_0x1a682b){const _0x4e772d=_0x40c341;_0x1a682b&&_0xd24998[_0x4e772d(0x153)](_0x405dd8,_0x1a682b),_0xd24998['RaeqI'](_0x12bec7,_0x108711);}),_0x21e18c[_0x40c341(0x108)]();});});});}async['validateBinary'](_0x48e51b){const _0x161753=a142_0x437d17,_0x40e8fb={'nuwXr':function(_0x5696ea,_0x950660){return _0x5696ea(_0x950660);},'OXjZu':function(_0x3f1080,_0x5769b6){return _0x3f1080(_0x5769b6);},'gqTeh':function(_0x43d242,_0x1f88ff,_0x4d158b,_0x4da7ad){return _0x43d242(_0x1f88ff,_0x4d158b,_0x4da7ad);},'jPWNo':_0x161753(0x15a),'UioMi':_0x161753(0x115),'iSQQp':'close'},_0x38ab38=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x211f06,_0x5c8961)=>{const _0x290c1c=_0x161753,_0x4e4fb0={};_0x4e4fb0['env']=process[_0x290c1c(0x125)];const _0xd33b41=_0x40e8fb['gqTeh'](spawn,_0x48e51b,[_0x40e8fb[_0x290c1c(0x13a)]],_0x4e4fb0);_0xd33b41[_0x290c1c(0x157)]['on'](_0x40e8fb[_0x290c1c(0x165)],_0x10c462=>{const _0x8d463e=_0x290c1c;_0x38ab38[_0x8d463e(0xfc)](_0x10c462)&&_0x40e8fb[_0x8d463e(0x132)](_0x211f06,!![]);}),_0xd33b41['on'](_0x40e8fb[_0x290c1c(0x12e)],()=>{const _0x2d365e=_0x290c1c;_0x40e8fb[_0x2d365e(0xef)](_0x211f06,![]);});});}#homedir(){const _0x1a9eef=a142_0x437d17,_0x516c05={};_0x516c05['PSQLn']=function(_0x37b330,_0x4e0705){return _0x37b330===_0x4e0705;},_0x516c05[_0x1a9eef(0x155)]='function',_0x516c05[_0x1a9eef(0x124)]=_0x1a9eef(0x162),_0x516c05['ZkFxd']=function(_0x3062d6,_0x1f6575){return _0x3062d6+_0x1f6575;},_0x516c05[_0x1a9eef(0x17b)]=function(_0x3a32f0,_0x16b563){return _0x3a32f0===_0x16b563;},_0x516c05[_0x1a9eef(0x160)]=_0x1a9eef(0x12f),_0x516c05['KDfLI']='/Users/',_0x516c05[_0x1a9eef(0xf0)]=_0x1a9eef(0x156),_0x516c05[_0x1a9eef(0x14c)]=function(_0x495e3a,_0xc26d6a){return _0x495e3a===_0xc26d6a;},_0x516c05['uUpfg']=_0x1a9eef(0x10a),_0x516c05[_0x1a9eef(0xf8)]=function(_0x21eac5,_0x15cc16){return _0x21eac5+_0x15cc16;},_0x516c05[_0x1a9eef(0x15e)]=_0x1a9eef(0x148),_0x516c05['fdJYc']=function(_0x3a7a24,_0x24a7a4){return _0x3a7a24||_0x24a7a4;};const _0x1dc784=_0x516c05;if(_0x1dc784['PSQLn'](typeof os[_0x1a9eef(0x172)],_0x1dc784[_0x1a9eef(0x155)]))return os[_0x1a9eef(0x172)]();const _0x18ccdc=process[_0x1a9eef(0x125)],_0x2c562a=_0x18ccdc['HOME'],_0x4554a3=_0x18ccdc[_0x1a9eef(0x121)]||_0x18ccdc['USER']||_0x18ccdc[_0x1a9eef(0x102)]||_0x18ccdc['USERNAME'];if(_0x1dc784[_0x1a9eef(0x169)](process[_0x1a9eef(0xfd)],_0x1dc784[_0x1a9eef(0x124)]))return _0x18ccdc[_0x1a9eef(0x11d)]||_0x1dc784['ZkFxd'](_0x18ccdc[_0x1a9eef(0x10c)],_0x18ccdc['HOMEPATH'])||_0x2c562a||null;if(_0x1dc784[_0x1a9eef(0x17b)](process[_0x1a9eef(0xfd)],_0x1dc784[_0x1a9eef(0x160)]))return _0x2c562a||(_0x4554a3?_0x1dc784['ZkFxd'](_0x1dc784['KDfLI'],_0x4554a3):null);if(_0x1dc784[_0x1a9eef(0x17b)](process[_0x1a9eef(0xfd)],_0x1dc784[_0x1a9eef(0xf0)]))return _0x2c562a||(_0x1dc784[_0x1a9eef(0x14c)](process[_0x1a9eef(0x144)](),0x0)?_0x1dc784[_0x1a9eef(0x15b)]:_0x4554a3?_0x1dc784['QZOja'](_0x1dc784[_0x1a9eef(0x15e)],_0x4554a3):null);return _0x1dc784[_0x1a9eef(0x151)](_0x2c562a,null);}}module[a142_0x437d17(0x14a)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a143_0xf6ee(){var _0x4b462f=['3090556dgRXDP','getName','get','596165RpDOyn','1198768wezops','63Cqxasc','2TcEXVG','4070922hjvxiM','3943385oKUenn','218604gXdUMo','exports','1015336lNUPgk','increment'];a143_0xf6ee=function(){return _0x4b462f;};return a143_0xf6ee();}var a143_0x53cea9=a143_0x5b33;function a143_0x5b33(_0x502229,_0x2901d7){var _0xf6ee29=a143_0xf6ee();return a143_0x5b33=function(_0x5b3384,_0x3f0655){_0x5b3384=_0x5b3384-0x1a5;var _0x3f579f=_0xf6ee29[_0x5b3384];return _0x3f579f;},a143_0x5b33(_0x502229,_0x2901d7);}(function(_0x32c19a,_0x4b5cd5){var _0x5cd1af=a143_0x5b33,_0x2b99b3=_0x32c19a();while(!![]){try{var _0x18e2b2=parseInt(_0x5cd1af(0x1a8))/0x1*(parseInt(_0x5cd1af(0x1ab))/0x2)+parseInt(_0x5cd1af(0x1ae))/0x3+parseInt(_0x5cd1af(0x1a5))/0x4+-parseInt(_0x5cd1af(0x1ad))/0x5+parseInt(_0x5cd1af(0x1ac))/0x6+parseInt(_0x5cd1af(0x1b0))/0x7+parseInt(_0x5cd1af(0x1a9))/0x8*(-parseInt(_0x5cd1af(0x1aa))/0x9);if(_0x18e2b2===_0x4b5cd5)break;else _0x2b99b3['push'](_0x2b99b3['shift']());}catch(_0x5423f5){_0x2b99b3['push'](_0x2b99b3['shift']());}}}(a143_0xf6ee,0x68658));class PercyCaptureMap{#map={};[a143_0x53cea9(0x1b1)](_0x30fa35,_0x5cf83e){!this.#map[_0x30fa35]&&(this.#map[_0x30fa35]={}),!this.#map[_0x30fa35][_0x5cf83e]&&(this.#map[_0x30fa35][_0x5cf83e]=0x0),this.#map[_0x30fa35][_0x5cf83e]++;}[a143_0x53cea9(0x1a6)](_0x116b79,_0x47a26c){var _0x3e9a54=a143_0x53cea9;return _0x116b79+'-'+_0x47a26c+'-'+this[_0x3e9a54(0x1a7)](_0x116b79,_0x47a26c);}['get'](_0x18905f,_0x21edd8){if(!this.#map[_0x18905f])return 0x0;if(!this.#map[_0x18905f][_0x21edd8])return 0x0;return this.#map[_0x18905f][_0x21edd8];}}module[a143_0x53cea9(0x1af)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x465a4e=a144_0x46e2;(function(_0x305e26,_0x2b623b){var _0x3b30a8=a144_0x46e2,_0x1284f9=_0x305e26();while(!![]){try{var _0x59ef1=parseInt(_0x3b30a8(0x90))/0x1*(-parseInt(_0x3b30a8(0x96))/0x2)+-parseInt(_0x3b30a8(0x8c))/0x3+-parseInt(_0x3b30a8(0x93))/0x4*(parseInt(_0x3b30a8(0x88))/0x5)+-parseInt(_0x3b30a8(0x8d))/0x6+-parseInt(_0x3b30a8(0x95))/0x7*(parseInt(_0x3b30a8(0x89))/0x8)+parseInt(_0x3b30a8(0x94))/0x9+-parseInt(_0x3b30a8(0x8b))/0xa*(-parseInt(_0x3b30a8(0x8f))/0xb);if(_0x59ef1===_0x2b623b)break;else _0x1284f9['push'](_0x1284f9['shift']());}catch(_0x246f36){_0x1284f9['push'](_0x1284f9['shift']());}}}(a144_0x428c,0xe9439));function a144_0x46e2(_0x3dd085,_0x5c0efc){var _0x428cb1=a144_0x428c();return a144_0x46e2=function(_0x46e2a3,_0x1582f7){_0x46e2a3=_0x46e2a3-0x87;var _0x1d0eab=_0x428cb1[_0x46e2a3];return _0x1d0eab;},a144_0x46e2(_0x3dd085,_0x5c0efc);}var a144_0x266b7f={};a144_0x266b7f[a144_0x465a4e(0x98)]=[a144_0x465a4e(0x91)],a144_0x266b7f[a144_0x465a4e(0x92)]=[a144_0x465a4e(0x97),a144_0x465a4e(0x8e)];var a144_0xce921f={};a144_0xce921f[a144_0x465a4e(0x98)]=[a144_0x465a4e(0x91)];var a144_0x4184bf={};a144_0x4184bf['element']=['click'];function a144_0x428c(){var _0x8d8896=['884CIvNkd','click','driver','screenshot','7797205VgrQOk','48FhuNCh','testcase','670aBZjYh','1835652mWavjZ','1575960TlCwrm','sendKeys','858341PqwRZG','1919gRkxZT','takeScreenshot','element','4SJOTgS','7391727WfNCJV','2113706hqQlDe'];a144_0x428c=function(){return _0x8d8896;};return a144_0x428c();}var a144_0x1c48eb={};a144_0x1c48eb['auto']=a144_0x266b7f,a144_0x1c48eb[a144_0x465a4e(0x87)]=a144_0xce921f,a144_0x1c48eb['click']=a144_0x4184bf,a144_0x1c48eb[a144_0x465a4e(0x8a)]={},a144_0x1c48eb['manual']={},module['exports']=a144_0x1c48eb;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a145_0x56cbeb=a145_0x1054;(function(_0x20b32b,_0xc2a21d){const _0x1726e3=a145_0x1054,_0x299d05=_0x20b32b();while(!![]){try{const _0x43293b=parseInt(_0x1726e3(0x1ce))/0x1*(parseInt(_0x1726e3(0x1ed))/0x2)+-parseInt(_0x1726e3(0x1d9))/0x3*(-parseInt(_0x1726e3(0x1de))/0x4)+parseInt(_0x1726e3(0x1e4))/0x5+-parseInt(_0x1726e3(0x1ee))/0x6+-parseInt(_0x1726e3(0x1e1))/0x7+-parseInt(_0x1726e3(0x1e7))/0x8+-parseInt(_0x1726e3(0x1d2))/0x9*(-parseInt(_0x1726e3(0x1e8))/0xa);if(_0x43293b===_0xc2a21d)break;else _0x299d05['push'](_0x299d05['shift']());}catch(_0x5cfbae){_0x299d05['push'](_0x299d05['shift']());}}}(a145_0x1bff,0xaa64a));function a145_0x1bff(){const _0x3815bd=['Unsupported\x20driver\x20for\x20percy','apply','eMlnr','16UahkbB','1490856BxfUEf','../../helpers/testhub/utils','thTestCaseExecutionId','SCREENSHOT_APP','SNAPSHOT','130323Zeboyw','screenshot','error','measure','247869iPjHYr','platformIndex','@percy/selenium-webdriver','../logger','SlNIb','../performance/performance-tester','YUaEe','39xAsEXc','testCase','browserstackPercyBestPlatform','zCghG','../performance/constants','346264gJeimF','uuid','name','4440548NdrzmQ','browserstackPlatformIndex','length','2442385tDgOrQ','screenshotApp','eVQiW','9706832swwDLA','50qAkWHw','IWCfw'];a145_0x1bff=function(){return _0x3815bd;};return a145_0x1bff();}function a145_0x1054(_0x4a326a,_0x6cdafb){const _0x1bffe4=a145_0x1bff();return a145_0x1054=function(_0x105445,_0x23d25d){_0x105445=_0x105445-0x1cd;let _0x298ce1=_0x1bffe4[_0x105445];return _0x298ce1;},a145_0x1054(_0x4a326a,_0x6cdafb);}const tryRequire=function(_0x17469c,_0x2e4541){const _0x3bab63={'xchgA':function(_0x2f72e8,_0x4a447f){return _0x2f72e8(_0x4a447f);}};try{return _0x3bab63['xchgA'](require,_0x17469c);}catch{return _0x2e4541;}},percySnapshot=tryRequire(a145_0x56cbeb(0x1d4),null),{percyScreenshot}=tryRequire(a145_0x56cbeb(0x1d4),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a145_0x56cbeb(0x1ef)),PerformanceTester=require(a145_0x56cbeb(0x1d7)),{PERCY_EVENTS:PerformanceEvents}=require(a145_0x56cbeb(0x1dd)),logger=require(a145_0x56cbeb(0x1d5))['winstonLogger'];percySnapshot&&(exports['snapshot']=async function(){const _0x190beb=a145_0x56cbeb,_0x3d1b75={'eVQiW':function(_0x5cf360,_0xb1547c){return _0x5cf360!==_0xb1547c;},'SlNIb':function(_0x1c18ca,_0x3f8aad){return _0x1c18ca>=_0x3f8aad;},'IWCfw':function(_0x55125f){return _0x55125f();}};if(global[_0x190beb(0x1e2)]&&_0x3d1b75[_0x190beb(0x1e6)](global[_0x190beb(0x1e2)],global[_0x190beb(0x1db)]))return;const _0x5a56a7=_0x3d1b75[_0x190beb(0x1d6)](arguments[_0x190beb(0x1e3)],0x2)?arguments[0x1]:'',_0x49874a=_0x3d1b75[_0x190beb(0x1e9)](getCurrentTestData),_0x27ca6f={};return _0x27ca6f[_0x190beb(0x1e0)]=_0x5a56a7,_0x27ca6f[_0x190beb(0x1da)]=_0x49874a['name']||'',_0x27ca6f['thTestCaseExecutionId']=_0x49874a[_0x190beb(0x1df)]||'',_0x27ca6f[_0x190beb(0x1d3)]=global[_0x190beb(0x1e2)],await PerformanceTester[_0x190beb(0x1d1)](PerformanceEvents[_0x190beb(0x1cd)],()=>percySnapshot[_0x190beb(0x1eb)](null,arguments),_0x27ca6f);});percyScreenshot?exports[a145_0x56cbeb(0x1cf)]=async function(){const _0x3cb15f=a145_0x56cbeb,_0x26b126={'autxH':function(_0x1baa36,_0x44eb3c){return _0x1baa36>=_0x44eb3c;},'jxkSu':function(_0x5e4c6b){return _0x5e4c6b();}},_0x178dfa=_0x26b126['autxH'](arguments['length'],0x2)?arguments[0x1]:'',_0x137e8a=_0x26b126['jxkSu'](getCurrentTestData),_0x8525eb={};return _0x8525eb['name']=_0x178dfa,_0x8525eb[_0x3cb15f(0x1da)]=_0x137e8a['name']||'',_0x8525eb[_0x3cb15f(0x1f0)]=_0x137e8a['uuid']||'',_0x8525eb[_0x3cb15f(0x1d3)]=global[_0x3cb15f(0x1e2)],await PerformanceTester['measure'](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot[_0x3cb15f(0x1eb)](null,arguments),_0x8525eb);}:exports[a145_0x56cbeb(0x1cf)]=()=>{const _0xbae730=a145_0x56cbeb,_0x5615c9={};_0x5615c9[_0xbae730(0x1d8)]=_0xbae730(0x1ea);const _0xd6abb5=_0x5615c9;logger[_0xbae730(0x1d0)](_0xd6abb5[_0xbae730(0x1d8)]);};exports[a145_0x56cbeb(0x1e5)]=async function(){const _0x535eba=a145_0x56cbeb,_0x2e349f={'zCghG':function(_0xeec701,_0x5614f2){return _0xeec701>=_0x5614f2;},'eMlnr':function(_0x226e3b){return _0x226e3b();}},_0x3d969a=_0x2e349f[_0x535eba(0x1dc)](arguments['length'],0x2)?arguments[0x1]:'',_0x23d5a4=_0x2e349f[_0x535eba(0x1ec)](getCurrentTestData),_0x3ee601={};return _0x3ee601[_0x535eba(0x1e0)]=_0x3d969a,_0x3ee601[_0x535eba(0x1da)]=_0x23d5a4[_0x535eba(0x1e0)]||'',_0x3ee601[_0x535eba(0x1f0)]=_0x23d5a4['uuid']||'',_0x3ee601[_0x535eba(0x1d3)]=global[_0x535eba(0x1e2)],await PerformanceTester[_0x535eba(0x1d1)](PerformanceEvents[_0x535eba(0x1f1)],()=>percyAppScreenshot['apply'](null,arguments),_0x3ee601);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a146_0x5777d4=a146_0x2fb5;(function(_0x4b85d5,_0x1a36d8){var _0xc9a323=a146_0x2fb5,_0xa2ab31=_0x4b85d5();while(!![]){try{var _0x2868f1=parseInt(_0xc9a323(0x1a4))/0x1+parseInt(_0xc9a323(0x19d))/0x2+parseInt(_0xc9a323(0x1a5))/0x3*(-parseInt(_0xc9a323(0x1a0))/0x4)+-parseInt(_0xc9a323(0x1a2))/0x5*(parseInt(_0xc9a323(0x19c))/0x6)+parseInt(_0xc9a323(0x1a3))/0x7+-parseInt(_0xc9a323(0x1a6))/0x8*(parseInt(_0xc9a323(0x19e))/0x9)+parseInt(_0xc9a323(0x1a1))/0xa;if(_0x2868f1===_0x1a36d8)break;else _0xa2ab31['push'](_0xa2ab31['shift']());}catch(_0x176bdb){_0xa2ab31['push'](_0xa2ab31['shift']());}}}(a146_0x129d,0xcf094),module[a146_0x5777d4(0x19f)]=require(a146_0x5777d4(0x19b)));function a146_0x2fb5(_0x52283e,_0x2b2307){var _0x129d29=a146_0x129d();return a146_0x2fb5=function(_0x2fb5ef,_0x549e69){_0x2fb5ef=_0x2fb5ef-0x19b;var _0x466219=_0x129d29[_0x2fb5ef];return _0x466219;},a146_0x2fb5(_0x52283e,_0x2b2307);}function a146_0x129d(){var _0x18904e=['163746IwQxwn','3174832URizVr','18pqLANa','exports','20128tJCSPU','8382990atHvng','25lowowc','6546274bMKWYu','299624ElQbKJ','891Gkzcub','4726168RcngCI','./Percy'];a146_0x129d=function(){return _0x18904e;};return a146_0x129d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x4fdef6=a147_0x446e;function a147_0x446e(_0x329ace,_0x51895d){const _0x2a05b3=a147_0x2a05();return a147_0x446e=function(_0x446ef2,_0x289eba){_0x446ef2=_0x446ef2-0xf1;let _0xe9713d=_0x2a05b3[_0x446ef2];return _0xe9713d;},a147_0x446e(_0x329ace,_0x51895d);}function a147_0x2a05(){const _0x38cc20=['START','chrome','1447539nLtQty','safari','DNbqr','percy','STOP','Stopping\x20percy','increment','gJoxh','patchDriverPercy','auto','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','browserStackPercyOptions','maPAJ','percyCaptureMode','stop','onBFR','measureWrapper','1501156QQlIzP','10NDzJzp','deviceName','isAppAutomateSession','119600IitQze','browserstackPercyBestPlatform','./Percy','../logger','Error\x20patching\x20','browserstackPercyMap','5CgFGAq','4399731pwxIIx','vgHhx','gSvGG','4887642odkFhc','getName','platforms','percyAutoCapture','hXDvi','../helper','229152xwYKzK','evwRw','edge','screenshotApp','351958ycEmqB','start','getBestPlatformForPercySnapshot','browserName','prototype','toLowerCase','FSdzn','browserstackSessionName','forEach','firefox','anCSU','driver','\x20for\x20percy\x20','getPercyOptions','./PercyCaptureMap','overrideXforPercy','./PercySDK','./PercyCaptureModes','apply','stopPercy','init','reduce','7PyuJxJ','Starting\x20percy','patch','then','fWMFP'];a147_0x2a05=function(){return _0x38cc20;};return a147_0x2a05();}(function(_0x45aec7,_0x49e3fe){const _0x324e81=a147_0x446e,_0x4f4cb7=_0x45aec7();while(!![]){try{const _0x347cc6=parseInt(_0x324e81(0x118))/0x1*(parseInt(_0x324e81(0x126))/0x2)+-parseInt(_0x324e81(0xfd))/0x3+parseInt(_0x324e81(0x10e))/0x4+-parseInt(_0x324e81(0x112))/0x5+-parseInt(_0x324e81(0x11c))/0x6*(parseInt(_0x324e81(0xf6))/0x7)+parseInt(_0x324e81(0x122))/0x8+-parseInt(_0x324e81(0x119))/0x9*(-parseInt(_0x324e81(0x10f))/0xa);if(_0x347cc6===_0x49e3fe)break;else _0x4f4cb7['push'](_0x4f4cb7['shift']());}catch(_0x5cb4e1){_0x4f4cb7['push'](_0x4f4cb7['shift']());}}}(a147_0x2a05,0x6e43f));const Percy=require(a147_0x4fdef6(0x114)),PercySDK=require(a147_0x4fdef6(0x136)),PercyCaptureModes=require(a147_0x4fdef6(0xf1)),PercyCaptureMap=require(a147_0x4fdef6(0x134)),logger=require(a147_0x4fdef6(0x115))['winstonLogger'],helper=require(a147_0x4fdef6(0x121)),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants');exports['startPercy']=PerformanceTester[a147_0x4fdef6(0x10d)](PerformanceEvents[a147_0x4fdef6(0xfb)],async _0x216820=>{const _0x3b7143=a147_0x4fdef6,_0x3dfb32={};_0x3dfb32[_0x3b7143(0xfa)]=_0x3b7143(0xf7);const _0x28c673=_0x3dfb32;logger['debug'](_0x28c673[_0x3b7143(0xfa)]);const _0x4198e3=new Percy(_0x216820),_0x9fa1e7=await _0x4198e3[_0x3b7143(0x127)]();if(_0x9fa1e7)return _0x4198e3;return null;}),exports[a147_0x4fdef6(0xf3)]=PerformanceTester[a147_0x4fdef6(0x10d)](PerformanceEvents[a147_0x4fdef6(0x101)],async _0x395c2f=>{const _0x501e1b=a147_0x4fdef6,_0x4a0df7={};_0x4a0df7[_0x501e1b(0x120)]=_0x501e1b(0x102);const _0x587b49=_0x4a0df7;return logger['debug'](_0x587b49[_0x501e1b(0x120)]),_0x395c2f[_0x501e1b(0x10b)]();}),exports[a147_0x4fdef6(0x128)]=_0x1e9fb9=>{const _0x2ca924=a147_0x4fdef6,_0x591081={};_0x591081['hiMhP']=function(_0x4ff672,_0xeeff8d){return _0x4ff672<_0xeeff8d;};const _0x5f1281=_0x591081,_0x512d97={};_0x512d97[_0x2ca924(0xfc)]=0x0,_0x512d97[_0x2ca924(0x12f)]=0x1,_0x512d97[_0x2ca924(0x124)]=0x2,_0x512d97[_0x2ca924(0xfe)]=0x3;const _0x142a88=_0x512d97;return _0x1e9fb9[_0x2ca924(0xf5)]((_0x50d665,_0x20e0ef,_0x48b95c)=>{const _0x3b4103=_0x2ca924,_0x1473ba=_0x1e9fb9[_0x50d665];if(_0x20e0ef[_0x3b4103(0x110)])return _0x50d665;if(_0x1473ba[_0x3b4103(0x110)])return _0x48b95c;const _0x517c96=_0x20e0ef['browser']?_0x20e0ef['browser']:_0x20e0ef[_0x3b4103(0x129)];if(_0x517c96&&_0x5f1281['hiMhP'](_0x142a88[_0x517c96['toLowerCase']()],_0x142a88[_0x517c96[_0x3b4103(0x12b)]()]))return _0x48b95c;return _0x50d665;},0x0);},exports['percyAutoCapture']=PerformanceTester[a147_0x4fdef6(0x10d)](PerformanceEvents['AUTO_CAPTURE'],async(_0x154a2a,_0x5835cc,_0x4dae00)=>{const _0x2a46ad=a147_0x4fdef6,_0x59bdc2={};_0x59bdc2['onBFR']=_0x2a46ad(0x107);const _0x226b0f=_0x59bdc2,_0x50da82=_0x154a2a[_0x2a46ad(0x117)];if(helper['isUndefined'](_0x154a2a[_0x2a46ad(0x12d)])){logger['debug'](_0x226b0f[_0x2a46ad(0x10c)]);return;}const _0x550191=_0x50da82[_0x2a46ad(0x11d)](_0x154a2a[_0x2a46ad(0x12d)],_0x5835cc);helper[_0x2a46ad(0x111)](_0x4dae00)?await PercySDK[_0x2a46ad(0x125)](_0x154a2a,_0x550191):await PercySDK['screenshot'](_0x154a2a,_0x550191),_0x50da82[_0x2a46ad(0x103)](_0x154a2a[_0x2a46ad(0x12d)],_0x5835cc);}),exports[a147_0x4fdef6(0x105)]=(_0x517d27,_0x308812,_0x3804a2)=>{const _0x234f43=a147_0x4fdef6,_0x220ff5={};_0x220ff5[_0x234f43(0x11b)]=_0x234f43(0x108),_0x220ff5[_0x234f43(0x109)]=_0x234f43(0x100),_0x220ff5[_0x234f43(0x12c)]=function(_0xd2d112,_0x3a006d){return _0xd2d112!==_0x3a006d;},_0x220ff5[_0x234f43(0x104)]='manual';const _0x441876=_0x220ff5;if(!helper['nestedKeyValue'](_0x3804a2,[_0x441876['gSvGG'],_0x441876[_0x234f43(0x109)]]))return;if(_0x3804a2[_0x234f43(0x108)][_0x234f43(0x100)]&&_0x3804a2[_0x234f43(0x108)][_0x234f43(0x10a)]&&_0x441876[_0x234f43(0x12c)](_0x3804a2['browserStackPercyOptions'][_0x234f43(0x10a)],_0x441876[_0x234f43(0x104)])&&!_0x517d27[_0x234f43(0x117)]){global[_0x234f43(0x12d)]&&(_0x517d27[_0x234f43(0x12d)]=global[_0x234f43(0x12d)]),_0x517d27[_0x234f43(0x117)]=new PercyCaptureMap();const _0x12ba8c=PercyCaptureModes[_0x3804a2[_0x234f43(0x108)][_0x234f43(0x10a)]];_0x12ba8c[_0x234f43(0x131)]&&_0x12ba8c[_0x234f43(0x131)][_0x234f43(0x12e)](_0x15dc51=>this['overrideXforPercy'](_0x517d27,_0x15dc51,_0x3804a2)),_0x12ba8c['element']&&_0x12ba8c['element']['forEach'](_0x223e8d=>{const _0x2de68c=_0x234f43;if(_0x308812[_0x2de68c(0x12a)]['patch'+_0x223e8d])return;_0x308812[_0x2de68c(0x12a)][_0x2de68c(0xf8)+_0x223e8d]=!![];const _0x5dce39=_0x308812['prototype'][_0x223e8d];_0x308812[_0x2de68c(0x12a)][_0x223e8d]=async function(){const _0x5d29ac=_0x2de68c;let _0x15ed14=_0x5dce39[_0x5d29ac(0xf2)](this,arguments);_0x15ed14&&_0x15ed14[_0x5d29ac(0xf9)]&&(_0x15ed14=await _0x15ed14);try{const _0x170f06=this['getDriver']();await exports[_0x5d29ac(0x11f)](_0x170f06,_0x223e8d,_0x3804a2);}catch(_0x45c154){logger['error'](_0x5d29ac(0x116)+_0x223e8d+_0x5d29ac(0x132)+_0x45c154);}return _0x15ed14;};});}},exports[a147_0x4fdef6(0x135)]=function(_0xc05274,_0x2edbeb,_0x3b6dc5){const _0x5368e3=a147_0x4fdef6,_0x555e47={};_0x555e47[_0x5368e3(0x11a)]=function(_0x5cb7ff,_0x3203dc){return _0x5cb7ff+_0x3203dc;},_0x555e47[_0x5368e3(0x123)]=_0x5368e3(0xf8),_0x555e47[_0x5368e3(0xff)]=_0x5368e3(0xf4);const _0x41287d=_0x555e47,_0x3be1e4=_0x41287d[_0x5368e3(0x11a)](_0x41287d[_0x5368e3(0x123)],_0x2edbeb),_0x31f43f=_0x41287d['vgHhx'](_0x41287d[_0x5368e3(0xff)],_0x2edbeb),_0x2b88df=this;if(_0xc05274[_0x3be1e4]||!_0xc05274[_0x2edbeb])return;_0xc05274[_0x3be1e4]=!![],_0xc05274[_0x31f43f]=_0xc05274[_0x2edbeb],_0xc05274[_0x2edbeb]=async()=>{const _0x10a04e=_0x5368e3;try{await _0x2b88df['percyAutoCapture'](_0xc05274,_0x2edbeb,_0x3b6dc5);}catch(_0x48a019){logger['error']('Error\x20patching\x20'+_0x2edbeb+_0x10a04e(0x132)+_0x48a019);}return await _0xc05274[_0x31f43f]['apply'](_0xc05274,arguments);};},exports[a147_0x4fdef6(0x133)]=_0x90122f=>{const _0x19272e=a147_0x4fdef6,_0x261465={};_0x261465[_0x19272e(0x130)]=_0x19272e(0x106);const _0x3a963e=_0x261465,_0x27263f={};_0x27263f[_0x19272e(0x100)]=_0x90122f[_0x19272e(0x100)],_0x27263f[_0x19272e(0x10a)]=_0x90122f[_0x19272e(0x10a)]||_0x3a963e[_0x19272e(0x130)];const _0x16b22a=_0x27263f;_0x90122f['percy']&&(_0x16b22a[_0x19272e(0x113)]=exports[_0x19272e(0x128)](_0x90122f[_0x19272e(0x11e)]));;return _0x16b22a;};
|