browserstack-node-sdk 1.49.0 → 1.49.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x4dd8e6=a109_0x8184;(function(_0x3c8d90,_0x4fbc1e){const _0x4ddb7c=a109_0x8184,_0x530554=_0x3c8d90();while(!![]){try{const _0x33a584=parseInt(_0x4ddb7c(0xe0))/0x1+-parseInt(_0x4ddb7c(0xf5))/0x2+-parseInt(_0x4ddb7c(0x10b))/0x3*(-parseInt(_0x4ddb7c(0xf9))/0x4)+-parseInt(_0x4ddb7c(0xe6))/0x5+-parseInt(_0x4ddb7c(0xd9))/0x6+parseInt(_0x4ddb7c(0x101))/0x7*(parseInt(_0x4ddb7c(0xc8))/0x8)+parseInt(_0x4ddb7c(0xef))/0x9*(parseInt(_0x4ddb7c(0xeb))/0xa);if(_0x33a584===_0x4fbc1e)break;else _0x530554['push'](_0x530554['shift']());}catch(_0x43c004){_0x530554['push'](_0x530554['shift']());}}}(a109_0x5e81,0x1d8c8));const winston=require('winston'),path=require(a109_0x4dd8e6(0xe9)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a109_0x4dd8e6(0xd5)),tempLogDir=a109_0x4dd8e6(0xd4),logFormat=winston[a109_0x4dd8e6(0xf8)](_0x4e3c3e=>{const _0x4f7910=a109_0x4dd8e6,_0x266840={};_0x266840[_0x4f7910(0xf1)]=function(_0x312cbc,_0x48cf40){return _0x312cbc!==_0x48cf40;},_0x266840[_0x4f7910(0xe3)]=_0x4f7910(0xca),_0x266840[_0x4f7910(0xfb)]=function(_0x54fe92,_0x5152ae){return _0x54fe92===_0x5152ae;},_0x266840[_0x4f7910(0x10f)]=_0x4f7910(0xdb);const _0x3cdff1=_0x266840;return _0x3cdff1[_0x4f7910(0xf1)](typeof _0x4e3c3e[_0x4f7910(0xf3)],_0x3cdff1['Lsakv'])&&(_0x4e3c3e[_0x4f7910(0xf3)]=JSON['stringify'](_0x4e3c3e[_0x4f7910(0xf3)])),global['session']?.[_0x4f7910(0x10a)]?.[_0x4f7910(0xcf)]&&_0x3cdff1['JDeqH'](typeof _0x4e3c3e[_0x4f7910(0xf3)],_0x3cdff1[_0x4f7910(0xe3)])&&(_0x4e3c3e['message']=_0x4e3c3e[_0x4f7910(0xf3)]['replace'](new RegExp(global[_0x4f7910(0xf7)][_0x4f7910(0x10a)][_0x4f7910(0xcf)],'g'),_0x3cdff1['PGwer'])),global['session']?.[_0x4f7910(0x10a)]?.[_0x4f7910(0x107)]&&_0x3cdff1[_0x4f7910(0xfb)](typeof _0x4e3c3e['message'],_0x3cdff1[_0x4f7910(0xe3)])&&(_0x4e3c3e[_0x4f7910(0xf3)]=_0x4e3c3e[_0x4f7910(0xf3)][_0x4f7910(0xde)](new RegExp(global[_0x4f7910(0xf7)][_0x4f7910(0x10a)][_0x4f7910(0x107)],'g'),_0x3cdff1[_0x4f7910(0x10f)])),_0x4e3c3e;}),fetchLogDir=()=>{const _0x4359c0=a109_0x4dd8e6;if(process[_0x4359c0(0x102)][_0x4359c0(0xf4)])return process[_0x4359c0(0x102)][_0x4359c0(0xf4)];else!fs[_0x4359c0(0xd1)](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x566062=a109_0x4dd8e6,_0x2ee91e={};_0x2ee91e['JNshY']=_0x566062(0xc9);const _0x501a47=_0x2ee91e,_0xffbda1=process[_0x566062(0x102)][_0x566062(0xe5)],_0x12f9fc=Object['keys'](winston['config'][_0x566062(0x10e)][_0x566062(0xda)]);if(_0xffbda1&&_0x12f9fc[_0x566062(0xe4)](_0xffbda1[_0x566062(0xd7)]()))return _0xffbda1[_0x566062(0xd7)]();return _0x501a47['JNshY'];},initialLogLevel=getInitialLogLevel(),a109_0x3efd4b={};a109_0x3efd4b[a109_0x4dd8e6(0xfc)]=a109_0x4dd8e6(0x100),a109_0x3efd4b[a109_0x4dd8e6(0xd3)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x4dd8e6(0x104))]['Console'](a109_0x3efd4b),'loggerFile':new winston['transports'][(a109_0x4dd8e6(0x103))]({'filename':path[a109_0x4dd8e6(0xcb)](logDir,a109_0x4dd8e6(0xd2)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a109_0x4dd8e6(0x104))][(a109_0x4dd8e6(0x103))]({'filename':path[a109_0x4dd8e6(0xcb)](logDir,'/usage-debug.log'),'level':a109_0x4dd8e6(0xd0)}),'debugCliLoggerFile':new winston['transports']['File']({'filename':path[a109_0x4dd8e6(0xcb)](logDir,'/sdk-cli-debug.log'),'level':a109_0x4dd8e6(0xd0)}),'buildLinkTransport':new winston['transports'][(a109_0x4dd8e6(0x103))]({'filename':path[a109_0x4dd8e6(0xcb)](logDir,a109_0x4dd8e6(0xd2)),'level':'silly'})},automationTransports={};process[a109_0x4dd8e6(0x102)]['BROWSERSTACK_AUTOMATION_LOGS']===a109_0x4dd8e6(0x109)&&(automationTransports['automationLoggerFile']=new winston[(a109_0x4dd8e6(0x104))][(a109_0x4dd8e6(0x103))]({'filename':path['join'](logDir,a109_0x4dd8e6(0x106)),'level':a109_0x4dd8e6(0xd0)}));transports['loggerConsole']['on'](a109_0x4dd8e6(0xdf),_0x57f332=>{const _0x4fabc5=a109_0x4dd8e6,_0x5d3fed={};_0x5d3fed['QplCR']=function(_0x472b74,_0x575f7a){return _0x472b74===_0x575f7a;},_0x5d3fed['EVpsA']='EPIPE',_0x5d3fed[_0x4fabc5(0xdd)]='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x2f52aa=_0x5d3fed;if(_0x2f52aa[_0x4fabc5(0xcc)](_0x57f332[_0x4fabc5(0x110)],_0x2f52aa[_0x4fabc5(0xe2)])){console['log'](_0x2f52aa[_0x4fabc5(0xdd)],_0x57f332[_0x4fabc5(0xf3)]);return;}throw _0x57f332;});const a109_0x569454={};function a109_0x5e81(){const _0xaf5b45=['createLogger','wcIcm','replace','error','213751PWGPGJ','combine','EVpsA','Lsakv','includes','BROWSERSTACK_LOG_LEVEL','1031390uheomV','buildLogger','\x20-\x20','path','buildLinkTransport','3970jvfpLB','http','loggerFile','debug','5571vBtOQG','printf','Mlmns','initialize','message','BROWSERSTACK_INTERNAL_LOG_DIR','192536DhTfoq','colorize','session','format','21072WgxqBu','timestamp','JDeqH','name','winstonLogger','debugLoggerFile','ImkHi','console.info','597891wUiLAX','env','File','transports','add','automation.log','accessKey','logDir','true','config','3uRJxal','fileLogger','automationLoggerFile','npm','PGwer','code','YYYY-MM-DD\x20HH:mm:ss','16GSNYlf','info','string','join','QplCR','getLogDir','automationLogger','userName','silly','existsSync','/usage.log','level','log','../bin/utils/constants','Console','toLowerCase','loggerConsole','1272060krNmaO','levels','[REDACTED]'];a109_0x5e81=function(){return _0xaf5b45;};return a109_0x5e81();}a109_0x569454[a109_0x4dd8e6(0xf8)]=a109_0x4dd8e6(0x111);function a109_0x8184(_0x55e499,_0x2c2c5c){const _0x5e81c1=a109_0x5e81();return a109_0x8184=function(_0x8184b4,_0x52f58a){_0x8184b4=_0x8184b4-0xc8;let _0xdc994e=_0x5e81c1[_0x8184b4];return _0xdc994e;},a109_0x8184(_0x55e499,_0x2c2c5c);}const a109_0x1254bc={};a109_0x1254bc[a109_0x4dd8e6(0xd3)]=!![];const winstonLoggerParams={'format':winston[a109_0x4dd8e6(0xf8)]['combine'](winston['format'][a109_0x4dd8e6(0xfa)](a109_0x569454),winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xf6)](a109_0x1254bc),winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xf0)](_0x13e96b=>_0x13e96b['timestamp']+a109_0x4dd8e6(0xe8)+_0x13e96b[a109_0x4dd8e6(0xd3)]+':\x20'+_0x13e96b[a109_0x4dd8e6(0xf3)])),'transports':[transports[a109_0x4dd8e6(0xd8)]]},a109_0x3cc5f8={};a109_0x3cc5f8[a109_0x4dd8e6(0xf8)]=a109_0x4dd8e6(0x111);const a109_0x4fe603={};a109_0x4fe603[a109_0x4dd8e6(0xd3)]=!![];const winstonFileLoggerParams={'format':winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xe1)](winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xfa)](a109_0x3cc5f8),winston['format']['colorize'](a109_0x4fe603),winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xf0)](_0x54cc72=>_0x54cc72[a109_0x4dd8e6(0xd3)]+':\x20'+_0x54cc72[a109_0x4dd8e6(0xf3)])),'transports':[]},a109_0x346a7d={};a109_0x346a7d[a109_0x4dd8e6(0xf8)]='YYYY-MM-DD\x20HH:mm:ss';const a109_0x1d41cb={};a109_0x1d41cb[a109_0x4dd8e6(0xd3)]=!![];const a109_0x418021={};a109_0x418021[a109_0x4dd8e6(0xd3)]=a109_0x4dd8e6(0xd0);const BuildLoggerParams={'format':winston['format'][a109_0x4dd8e6(0xe1)](winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xfa)](a109_0x346a7d),winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xf6)](a109_0x1d41cb),winston['format']['printf'](_0x4f3f82=>_0x4f3f82[a109_0x4dd8e6(0xfa)]+a109_0x4dd8e6(0xe8)+_0x4f3f82[a109_0x4dd8e6(0xd3)]+':\x20'+_0x4f3f82['message'])),'transports':[transports[a109_0x4dd8e6(0xea)],new winston['transports'][(a109_0x4dd8e6(0xd6))](a109_0x418021)]},a109_0x4fe9a9={};a109_0x4fe9a9[a109_0x4dd8e6(0xec)]=()=>{},a109_0x4fe9a9[a109_0x4dd8e6(0xc9)]=()=>{},a109_0x4fe9a9['warn']=()=>{},a109_0x4fe9a9['error']=()=>{},a109_0x4fe9a9[a109_0x4dd8e6(0xee)]=()=>{},a109_0x4fe9a9[a109_0x4dd8e6(0xd0)]=()=>{},exports[a109_0x4dd8e6(0xce)]=process[a109_0x4dd8e6(0x102)]['BROWSERSTACK_AUTOMATION_LOGS']===a109_0x4dd8e6(0x109)?winston[a109_0x4dd8e6(0xdc)]({'format':winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xe1)](winston['format']['uncolorize'](),winston[a109_0x4dd8e6(0xf8)][a109_0x4dd8e6(0xfa)](),logFormat(),winston[a109_0x4dd8e6(0xf8)]['printf'](_0x3c4c78=>_0x3c4c78[a109_0x4dd8e6(0xd3)]+':\x20'+_0x3c4c78['message'])),'transports':[automationTransports[a109_0x4dd8e6(0x10d)]]}):a109_0x4fe9a9;const initialize=()=>{const _0x2fa118=a109_0x4dd8e6,_0x36d76c={};_0x36d76c[_0x2fa118(0xff)]=_0x2fa118(0xd0);const _0x20d6c0=_0x36d76c,_0x931341=transports['loggerConsole']['level']||initialLogLevel;transports[_0x2fa118(0xed)]=new winston[(_0x2fa118(0x104))][(_0x2fa118(0x103))]({'filename':path[_0x2fa118(0xcb)](exports[_0x2fa118(0x108)],LOG_FILE_NAME),'level':_0x931341}),transports[_0x2fa118(0xfe)]=new winston[(_0x2fa118(0x104))]['File']({'filename':path[_0x2fa118(0xcb)](exports[_0x2fa118(0x108)],DEBUG_LOG_FILE_NAME),'level':_0x20d6c0[_0x2fa118(0xff)]}),exports[_0x2fa118(0xfd)][_0x2fa118(0x105)](transports[_0x2fa118(0xed)]),exports[_0x2fa118(0xfd)][_0x2fa118(0x105)](transports['debugLoggerFile']),exports[_0x2fa118(0x10c)][_0x2fa118(0x105)](transports[_0x2fa118(0xed)]),exports[_0x2fa118(0x10c)][_0x2fa118(0x105)](transports[_0x2fa118(0xfe)]);};exports[a109_0x4dd8e6(0xfd)]=new winston[(a109_0x4dd8e6(0xdc))](winstonLoggerParams),exports[a109_0x4dd8e6(0x10c)]=new winston[(a109_0x4dd8e6(0xdc))](winstonFileLoggerParams),exports[a109_0x4dd8e6(0xe7)]=new winston['createLogger'](BuildLoggerParams),exports[a109_0x4dd8e6(0x108)]=logDir,exports[a109_0x4dd8e6(0xcd)]=()=>{const _0x28f135=a109_0x4dd8e6;return exports[_0x28f135(0x108)];},exports[a109_0x4dd8e6(0x104)]=transports,exports[a109_0x4dd8e6(0xf2)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a110_0x4578(_0x4bfe62,_0x4b8e22){const _0x5e7c2c=a110_0x5e7c();return a110_0x4578=function(_0x4578cf,_0x20b6ad){_0x4578cf=_0x4578cf-0xf4;let _0x272e6f=_0x5e7c2c[_0x4578cf];return _0x272e6f;},a110_0x4578(_0x4bfe62,_0x4b8e22);}const a110_0x55c307=a110_0x4578;(function(_0x37dba1,_0xcf74f2){const _0x3f9cfe=a110_0x4578,_0xde6207=_0x37dba1();while(!![]){try{const _0xa3f20a=-parseInt(_0x3f9cfe(0x105))/0x1*(parseInt(_0x3f9cfe(0x101))/0x2)+parseInt(_0x3f9cfe(0x111))/0x3+parseInt(_0x3f9cfe(0xf4))/0x4+-parseInt(_0x3f9cfe(0xfd))/0x5*(-parseInt(_0x3f9cfe(0x108))/0x6)+parseInt(_0x3f9cfe(0xf8))/0x7+parseInt(_0x3f9cfe(0x10c))/0x8*(parseInt(_0x3f9cfe(0xf9))/0x9)+-parseInt(_0x3f9cfe(0x103))/0xa*(parseInt(_0x3f9cfe(0xf5))/0xb);if(_0xa3f20a===_0xcf74f2)break;else _0xde6207['push'](_0xde6207['shift']());}catch(_0x623ed8){_0xde6207['push'](_0xde6207['shift']());}}}(a110_0x5e7c,0xe812c));function a110_0x5e7c(){const _0x5b1461=['11UfZfxq','length','LfstQ','1724919toSpDX','678231sBYlyD','OWIku','./logger','oVCtP','1321415FjfRxP','testRunUUID','getGlobal','get','13586EIImIK','edKSf','12452510Asdijy','setGlobal','223PcbIuI','deFIe','cPTAL','18GkvgGF','The\x20metadata\x20object\x20is\x20not\x20valid.','exports','winstonLogger','40XEbuNw','testMeta-','lcnc','getCentralUser','testMeta','3196044LGUuom','warn','sDTSf','4917012BiMGvl'];a110_0x5e7c=function(){return _0x5b1461;};return a110_0x5e7c();}const globals=require('./globals'),helper=require('./helper'),logger=require(a110_0x55c307(0xfb))[a110_0x55c307(0x10b)];module[a110_0x55c307(0x10a)]=class TestMetadata{static['set'](_0x3a4243={}){const _0x54b7ef=a110_0x55c307,_0x49db6b={};_0x49db6b[_0x54b7ef(0x107)]=_0x54b7ef(0xfe),_0x49db6b['edKSf']=function(_0x147c78,_0x5f1823){return _0x147c78===_0x5f1823;},_0x49db6b['LfstQ']='string',_0x49db6b[_0x54b7ef(0xfc)]=function(_0x4769e7,_0x33c261){return _0x4769e7<=_0x33c261;},_0x49db6b[_0x54b7ef(0x113)]=_0x54b7ef(0x110),_0x49db6b[_0x54b7ef(0xfa)]=_0x54b7ef(0x109);const _0x4fa1f9=_0x49db6b,_0x4f3b01=globals[_0x54b7ef(0xff)](_0x4fa1f9[_0x54b7ef(0x107)]),_0x17643=_0x3a4243['identifier'];helper[_0x54b7ef(0x10f)]()[_0x54b7ef(0x10e)]&&(_0x4fa1f9[_0x54b7ef(0x102)](typeof _0x17643,_0x4fa1f9[_0x54b7ef(0xf7)])&&_0x4fa1f9[_0x54b7ef(0xfc)](_0x17643[_0x54b7ef(0xf6)],0x28)?_0x4f3b01?globals[_0x54b7ef(0x104)](_0x54b7ef(0x10d)+_0x4f3b01,_0x3a4243):globals[_0x54b7ef(0x104)](_0x4fa1f9[_0x54b7ef(0x113)],_0x3a4243):logger[_0x54b7ef(0x112)](_0x4fa1f9[_0x54b7ef(0xfa)]));}static[a110_0x55c307(0x100)](_0x4eebb3){const _0x43bc36=a110_0x55c307,_0xb37d42={};_0xb37d42[_0x43bc36(0x106)]='testMeta';const _0x2b8efd=_0xb37d42;if(helper[_0x43bc36(0x10f)]()[_0x43bc36(0x10e)])return globals[_0x43bc36(0xff)]('testMeta-'+_0x4eebb3)||globals[_0x43bc36(0xff)](_0x2b8efd[_0x43bc36(0x106)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x498ac8=a111_0x2e11;(function(_0x2d20e8,_0x177ac0){const _0x1eea44=a111_0x2e11,_0x1dfe17=_0x2d20e8();while(!![]){try{const _0x2e4990=-parseInt(_0x1eea44(0xa5))/0x1*(-parseInt(_0x1eea44(0xb3))/0x2)+parseInt(_0x1eea44(0xe7))/0x3*(-parseInt(_0x1eea44(0xc2))/0x4)+-parseInt(_0x1eea44(0xb4))/0x5+parseInt(_0x1eea44(0xca))/0x6+-parseInt(_0x1eea44(0xe8))/0x7*(parseInt(_0x1eea44(0xd8))/0x8)+-parseInt(_0x1eea44(0xf2))/0x9*(-parseInt(_0x1eea44(0x8f))/0xa)+parseInt(_0x1eea44(0x96))/0xb;if(_0x2e4990===_0x177ac0)break;else _0x1dfe17['push'](_0x1dfe17['shift']());}catch(_0x5b585b){_0x1dfe17['push'](_0x1dfe17['shift']());}}}(a111_0x166a,0x599ba));const {aiSdkWrapper}=require(a111_0x498ac8(0x97)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require(a111_0x498ac8(0xbe)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require(a111_0x498ac8(0xc3)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x498ac8(0xf4)),util=require('util');exports[a111_0x498ac8(0x93)]=(_0x38db66,_0x6232e2)=>{const _0x5c285f=a111_0x498ac8,_0x3b9f81={'tAIDR':_0x5c285f(0xfa),'WCtoq':function(_0xf514d5,_0x165270){return _0xf514d5===_0x165270;},'TIsAq':_0x5c285f(0xf8),'ZfNin':_0x5c285f(0xce),'eDYTx':_0x5c285f(0xc6),'GEleO':_0x5c285f(0xd2),'leTur':function(_0x5e30d4){return _0x5e30d4();},'JtvNO':_0x5c285f(0xd1),'HqZKm':function(_0x1e9bd4,_0x4dffd8){return _0x1e9bd4===_0x4dffd8;},'JwoQb':'NoSuchElementError','fgeuW':function(_0x102535,_0x10acc4){return _0x102535===_0x10acc4;},'vtend':_0x5c285f(0xbf),'NaeoR':function(_0x3e766c,_0x37113e){return _0x3e766c===_0x37113e;},'mMxHN':_0x5c285f(0xd4),'YGFkH':function(_0x2fc355,_0x3923cc){return _0x2fc355+_0x3923cc;},'lBUiG':_0x5c285f(0xf9),'ufDxN':_0x5c285f(0xc5),'lvyPh':function(_0x2f2467,_0x1f6019){return _0x2f2467+_0x1f6019;},'uPlEn':function(_0x4e1b05,_0x5701ba){return _0x4e1b05+_0x5701ba;},'LtQhO':_0x5c285f(0xf6),'CAffD':_0x5c285f(0x99),'BkgAm':function(_0x88ab94,_0x29e006){return _0x88ab94&&_0x29e006;},'RGTBh':function(_0x111d52,_0x13b6dd){return _0x111d52===_0x13b6dd;},'oJwkD':function(_0x41bc16,_0x3e3557){return _0x41bc16+_0x3e3557;},'qpXrl':_0x5c285f(0x101),'pbQfH':function(_0x2e62e8,_0x47b118){return _0x2e62e8+_0x47b118;},'JMCfe':function(_0x34dd98,_0x30b2bf){return _0x34dd98+_0x30b2bf;},'KePYO':_0x5c285f(0xd3),'KCIur':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','wOLSJ':_0x5c285f(0xb9),'MCHLv':_0x5c285f(0xbc),'CwHbn':_0x5c285f(0xec),'sLxVO':'url','nrDAs':_0x5c285f(0xa6),'KfrbF':_0x5c285f(0xaa),'WmNAT':function(_0x1e36cf){return _0x1e36cf();},'zLpJH':'executeAsyncScript','fXpLE':function(_0x419881,_0x5ac121){return _0x419881===_0x5ac121;},'YbTtc':_0x5c285f(0xb5),'rnEvK':_0x5c285f(0xc9),'GXGUn':'capability','qlaFU':_0x5c285f(0xe0),'qYUVL':'bstack:options','XmBFj':_0x5c285f(0x100)},_0x485a7e=_0x38db66['patchExecute']||(helper[_0x5c285f(0xe6)](_0x6232e2,[_0x3b9f81[_0x5c285f(0xbb)],_0x3b9f81[_0x5c285f(0xb2)]])||helper[_0x5c285f(0xe6)](_0x6232e2,[_0x3b9f81['GXGUn'],_0x3b9f81['qYUVL'],_0x3b9f81['XmBFj']]));if(!globals[_0x5c285f(0xa3)](_0x3b9f81[_0x5c285f(0xed)])&&!globals[_0x5c285f(0xa3)](_0x3b9f81[_0x5c285f(0xc4)])&&_0x485a7e)return;_0x38db66[_0x5c285f(0xd5)]=!![],_0x38db66[_0x5c285f(0xdb)]=_0x38db66[_0x5c285f(0xe5)],_0x38db66[_0x5c285f(0xe5)]=async _0x5c59ef=>{const _0x3bf29c=_0x5c285f,_0x3da67a={'pXGCn':_0x3b9f81['ZfNin'],'rLBEx':_0x3b9f81[_0x3bf29c(0xf0)],'zomqx':function(_0x5e8f75){const _0x26c10d=_0x3bf29c;return _0x3b9f81[_0x26c10d(0xe2)](_0x5e8f75);}};try{const _0x169407={};_0x169407[_0x3bf29c(0xcc)]=_0x5c59ef[_0x3bf29c(0xf5)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x3bf29c(0xac)],async()=>{const _0x591172=_0x3bf29c;if(!commandRepository[_0x591172(0xf7)]()&&globals[_0x591172(0xa3)](_0x3da67a[_0x591172(0x8d)])){const _0x31d516=PerformanceTester[_0x591172(0x102)](_0x3da67a[_0x591172(0xa8)],async()=>{const _0xd24e5e=_0x591172;try{commandRepository[_0xd24e5e(0xba)](!![]),await aiSdkWrapper[_0xd24e5e(0xe9)]((await _0x38db66['getSession']())[_0xd24e5e(0xae)]());const _0x10491c=globals[_0xd24e5e(0xa3)](_0x3da67a[_0xd24e5e(0x8d)]);_0x10491c&&commandRepository['setAiSessionTimeStamp']((await _0x38db66['getSession']())[_0xd24e5e(0xae)]());}catch(_0x47da62){logger[_0xd24e5e(0x9f)](_0xd24e5e(0x9e)+_0x47da62);}});await _0x3da67a[_0x591172(0x91)](_0x31d516);}},_0x169407)();const _0xb7e57a=await _0x38db66[_0x3bf29c(0xdb)](_0x5c59ef);try{if(_0x3b9f81[_0x3bf29c(0xf3)](_0x5c59ef[_0x3bf29c(0xf5)],_0x3b9f81[_0x3bf29c(0xc8)])||_0x3b9f81[_0x3bf29c(0xa9)](_0x5c59ef[_0x3bf29c(0xf5)],_0x3b9f81[_0x3bf29c(0x98)])){const _0x2b8f6e=_0x5c59ef[_0x3bf29c(0xec)]&&_0x5c59ef[_0x3bf29c(0xec)][_0x3bf29c(0xc0)],_0x5e48fa=_0x5c59ef[_0x3bf29c(0xec)]&&_0x5c59ef['parameters_'][_0x3bf29c(0xb0)],_0x44d29d=_0x5e48fa&&util[_0x3bf29c(0x95)]('%j',_0x5e48fa);if(_0x2b8f6e&&_0x3b9f81[_0x3bf29c(0xd7)](typeof _0x2b8f6e,_0x3b9f81['rnEvK'])){const _0x1d9596=constants['AUTOMATION_LOG_COMMANDS']['find'](_0xf671c4=>_0x2b8f6e[_0x3bf29c(0xad)](_0xf671c4)||_0x44d29d&&_0x44d29d[_0x3bf29c(0xad)](_0xf671c4));if(_0x1d9596){const _0x2f0148={};_0x2f0148[_0x3bf29c(0xcc)]=_0x1d9596,_0x2f0148[_0x3bf29c(0xa7)]=_0x5e48fa;const _0x4d1681={};_0x4d1681['body']=_0xb7e57a;const _0x48419e={};_0x48419e[_0x3bf29c(0x9d)]=_0x2f0148,_0x48419e['response']=_0x4d1681,automationLogger[_0x3bf29c(0xa0)]('['+new Date()['toISOString']()+_0x3bf29c(0xb7)+util[_0x3bf29c(0x95)]('%j',_0x48419e));}}}}catch(_0xbc3012){logger[_0x3bf29c(0xa0)](_0x3bf29c(0x9a)+_0xbc3012['message']);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x3bf29c(0xd0)],async()=>{const _0x55047a=_0x3bf29c;if(!helper['isBrowserstackInfra']()&&(commandRepository['isSelfHealEnabled']()||globals['getGlobal'](_0x3b9f81[_0x55047a(0xaf)]))&&_0x3b9f81[_0x55047a(0xf3)](_0x5c59ef['name_'],_0x3b9f81[_0x55047a(0xab)])&&!_0x5c59ef[_0x55047a(0xff)]&&globals[_0x55047a(0xa3)](_0x3b9f81[_0x55047a(0xed)])&&globals[_0x55047a(0xa3)](_0x3b9f81[_0x55047a(0xc4)])){const _0x392baf=new Date(),_0x465c65=PerformanceTester[_0x55047a(0x102)](_0x3b9f81[_0x55047a(0x9c)],async()=>{const _0x965613=_0x55047a;return await aiSdkWrapper[_0x965613(0xc7)](_0x6232e2,_0x38db66,_0x5c59ef);});await _0x3b9f81['leTur'](_0x465c65);}},{'command':_0x5c59ef['name_']})(),_0xb7e57a;}catch(_0x7d07b9){await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x3bf29c(0xd0)],async()=>{const _0x470be3=_0x3bf29c;logger[_0x470be3(0x8e)](_0x3b9f81[_0x470be3(0xe1)]);try{if(!helper[_0x470be3(0xbd)]()&&(_0x3b9f81[_0x470be3(0xf1)](_0x7d07b9[_0x470be3(0xcf)],_0x3b9f81[_0x470be3(0xd6)])||_0x3b9f81[_0x470be3(0xfb)](_0x7d07b9[_0x470be3(0xcf)],_0x3b9f81[_0x470be3(0x103)]))&&_0x3b9f81[_0x470be3(0xcb)](_0x5c59ef[_0x470be3(0xf5)],_0x3b9f81[_0x470be3(0xab)])&&commandRepository[_0x470be3(0xa4)]()&&globals[_0x470be3(0xa3)](_0x3b9f81[_0x470be3(0xed)])&&globals['getGlobal'](_0x3b9f81[_0x470be3(0xc4)])){_0x3b9f81['NaeoR'](_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xcd)],_0x3b9f81[_0x470be3(0xb8)])?logger[_0x470be3(0xfe)](_0x3b9f81[_0x470be3(0x94)](_0x3b9f81['YGFkH'](_0x3b9f81[_0x470be3(0x9b)],_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xdc)]),_0x3b9f81[_0x470be3(0xb1)])):logger[_0x470be3(0xfe)](_0x3b9f81[_0x470be3(0x94)](_0x3b9f81['lvyPh'](_0x3b9f81[_0x470be3(0x94)](_0x3b9f81[_0x470be3(0xa2)](_0x3b9f81['LtQhO'],_0x5c59ef['parameters_'][_0x470be3(0xcd)]),':\x20'),_0x5c59ef['parameters_'][_0x470be3(0xdc)]),_0x3b9f81['ufDxN']));const _0x4c0243=PerformanceTester['measureWrapper'](_0x3b9f81[_0x470be3(0xdf)],async()=>{const _0x1670a3=_0x470be3;return await aiSdkWrapper[_0x1670a3(0xd9)](_0x6232e2,_0x38db66,_0x5c59ef);}),_0x17cb92=new Date(),{locatorType:_0x361d0f,locatorValue:_0x44b16b,commandHealed:_0x14755e}=await _0x3b9f81['leTur'](_0x4c0243);if(_0x3b9f81[_0x470be3(0xef)](_0x361d0f,_0x44b16b)){_0x5c59ef['parameters_'][_0x470be3(0xcd)]=_0x361d0f,_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xdc)]=_0x44b16b,_0x5c59ef[_0x470be3(0xff)]=!![];const _0x4c95b2=_0x38db66[_0x470be3(0xe5)](_0x5c59ef);return _0x3b9f81[_0x470be3(0xd7)](_0x361d0f,_0x3b9f81['mMxHN'])?logger[_0x470be3(0xfe)](_0x3b9f81[_0x470be3(0xea)](_0x3b9f81[_0x470be3(0xeb)],_0x44b16b)):logger[_0x470be3(0xfe)](_0x3b9f81[_0x470be3(0xee)](_0x3b9f81[_0x470be3(0xb6)](_0x3b9f81[_0x470be3(0x94)](_0x3b9f81[_0x470be3(0xc1)],_0x361d0f),':\x20'),_0x44b16b)),_0x4c95b2;}else!_0x14755e&&(_0x3b9f81[_0x470be3(0xf3)](_0x361d0f,_0x3b9f81[_0x470be3(0xb8)])?logger[_0x470be3(0xfe)](_0x3b9f81[_0x470be3(0xee)](_0x3b9f81[_0x470be3(0xde)],_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xdc)])):logger[_0x470be3(0xfe)](_0x3b9f81['YGFkH'](_0x3b9f81[_0x470be3(0xda)](_0x3b9f81[_0x470be3(0xda)](_0x3b9f81['wOLSJ'],_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xcd)]),':\x20'),_0x5c59ef[_0x470be3(0xec)][_0x470be3(0xdc)])));}!_0x485a7e&&_0x3b9f81['fgeuW'](_0x5c59ef[_0x470be3(0xf5)],_0x3b9f81[_0x470be3(0x92)])&&helper[_0x470be3(0xe6)](_0x5c59ef,[_0x3b9f81['CwHbn'],_0x3b9f81[_0x470be3(0x90)]])&&!!constants[_0x470be3(0xe4)][_0x470be3(0xfc)](_0x33d095=>{const _0x25a853=_0x470be3;return _0x7d07b9[_0x25a853(0xfd)]()[_0x25a853(0xad)](_0x33d095);})&&helper[_0x470be3(0xe3)](_0x5c59ef['parameters_'][_0x470be3(0xa1)],!![]);}catch(_0x46bfdf){logger['debug'](_0x3b9f81[_0x470be3(0xdd)],_0x46bfdf);}},{'success':![],'failure':_0x7d07b9})();throw _0x7d07b9;}};};function a111_0x2e11(_0x3f1f66,_0x10b13b){const _0x166ac4=a111_0x166a();return a111_0x2e11=function(_0x2e1132,_0x48bc08){_0x2e1132=_0x2e1132-0x8d;let _0x47d455=_0x166ac4[_0x2e1132];return _0x47d455;},a111_0x2e11(_0x3f1f66,_0x10b13b);}function a111_0x166a(){const _0x23136f=['name_','findElement\x20command\x20failed\x20with\x20','getTcgTokenStatus','findElement','findElement\x20command\x20failed\x20with\x20cssPath:\x20','aiSdk_defaultLogDataEnabled','fgeuW','find','toString','info','skipHealingSuccess','local','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','measureWrapper','vtend','pXGCn','debug','155660rBjMAv','sLxVO','zomqx','MCHLv','overrideExecute','YGFkH','format','9213116SxUsYP','./ai-sdk/aiSdkWrapper','YbTtc','aiHeal:findElementFailure','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','lBUiG','GEleO','request','Error\x20in\x20handling\x20TCG\x20Auth:\x20','error','silly','url','uPlEn','getGlobal','isSelfHealEnabled','13499NGzvNz','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','parameters','rLBEx','fXpLE','aiHeal:setToken','TIsAq','PRE_EXECUTE','includes','getId','tAIDR','args','ufDxN','qlaFU','50PaDPmh','3149695LspIHt','executeScript','JMCfe','][\x20SDK-AUTOMATION\x20]\x20','mMxHN','Healing\x20failed\x20for\x20command\x20using\x20','setTcgTokenStatus','GXGUn','get','isBrowserstackInfra','./performance/performance-tester','JavascriptError','script','KePYO','4khlZVW','./helper','eDYTx',';\x20Trying\x20to\x20heal','aiHeal_isHealingEnabled','handleSuccess','zLpJH','string','754746tscIkO','NaeoR','command','using','aiHeal_isAuthenticated','name','POST_EXECUTE','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','aiHeal:findElementSuccess','Successfully\x20healed\x20command\x20using\x20new\x20','css\x20selector','patchExecute','JwoQb','RGTBh','368cRaQGD','handleFailure','lvyPh','initExecute','value','nrDAs','KCIur','CAffD','browserstack.local','JtvNO','WmNAT','getNudgeLocalNotSetError','NUDGE_LOCAL_ERRORS','execute','nestedKeyValue','887703NWUpHw','105434PPFPxZ','setTcgToken','oJwkD','qpXrl','parameters_','ZfNin','pbQfH','BkgAm','KfrbF','HqZKm','396zPHZzt','WCtoq','./performance/constants'];a111_0x166a=function(){return _0x23136f;};return a111_0x166a();}
|
|
1
|
+
function a111_0x1c60(_0x47b9e3,_0x1c8413){const _0x729dd4=a111_0x729d();return a111_0x1c60=function(_0x1c60be,_0x1ef26a){_0x1c60be=_0x1c60be-0x150;let _0x2127f6=_0x729dd4[_0x1c60be];return _0x2127f6;},a111_0x1c60(_0x47b9e3,_0x1c8413);}const a111_0x4517a1=a111_0x1c60;(function(_0x350a18,_0xf5c221){const _0x10ebc6=a111_0x1c60,_0x4cf4ab=_0x350a18();while(!![]){try{const _0x1945bb=parseInt(_0x10ebc6(0x161))/0x1*(-parseInt(_0x10ebc6(0x151))/0x2)+-parseInt(_0x10ebc6(0x1b5))/0x3*(parseInt(_0x10ebc6(0x1b0))/0x4)+-parseInt(_0x10ebc6(0x1a2))/0x5*(-parseInt(_0x10ebc6(0x18e))/0x6)+parseInt(_0x10ebc6(0x1c4))/0x7*(parseInt(_0x10ebc6(0x1b3))/0x8)+-parseInt(_0x10ebc6(0x1ab))/0x9*(-parseInt(_0x10ebc6(0x167))/0xa)+-parseInt(_0x10ebc6(0x183))/0xb*(parseInt(_0x10ebc6(0x193))/0xc)+parseInt(_0x10ebc6(0x162))/0xd;if(_0x1945bb===_0xf5c221)break;else _0x4cf4ab['push'](_0x4cf4ab['shift']());}catch(_0x4189ec){_0x4cf4ab['push'](_0x4cf4ab['shift']());}}}(a111_0x729d,0xab843));function a111_0x729d(){const _0x1387ca=['PfwBM','7bkeSiY','5580614rRbABZ','command','qPIOI','using','Successfully\x20healed\x20command\x20using\x20new\x20','25980RMYDNy','aiHeal:setToken','zRDXi','includes','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','jLJOU','findElement\x20command\x20failed\x20with\x20','getId','script','measureWrapper','error','pzZgY','LZQYo','TBrVd','Unfet','isSelfHealEnabled','getGlobal','xRrho','jGfGH','Healing\x20failed\x20for\x20command\x20using\x20','oxNfB','pEsVb','handleFailure','pLXta','nestedKeyValue','util','wNNLS','browserstack.local','11zmgcKo','name_','info','MqZaR','aiHeal:findElementFailure','parameters_','IsUfB','url','./helper','aiHeal:findElementSuccess','ppRJL','3222ObaOXu','josYL','../bin/utils/constants','cVmAD','setTcgToken','8357640OqDWlT','nfrFE','silly','raRiq','toString','JavascriptError','./performance/constants','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','POST_EXECUTE','./ai-sdk/aiSdkWrapper','RpZOk','toISOString','gmtHK','initExecute','9245EhXLdE','DWaUk','message','BkTbe','uOLRO','oQCKW','capability','executeAsyncScript','value','4293SyjxpU','SdPXE','name','][\x20SDK-AUTOMATION\x20]\x20','LcVDm','2780brLhUl','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','GqcSO','16uvZHBv','getNudgeLocalNotSetError','1437XWARjh','LSOfv','XGmCe','getSession','executeScript','Akfsn','isBrowserstackInfra','args','./logger','Diwcc','request','./ai-sdk/autoHealHelper','NFIbA','findElement','string','1304254ZJUhvx','skipHealingSuccess','372050zCfhij','aiHeal_isAuthenticated','execute','format','find','ivXHG','OGruT','patchExecute','response','parameters','PRE_EXECUTE','oqdYC','setTcgTokenStatus','bxxMq','./performance/performance-tester'];a111_0x729d=function(){return _0x1387ca;};return a111_0x729d();}const {aiSdkWrapper}=require(a111_0x4517a1(0x19d)),{commandRepository}=require(a111_0x4517a1(0x1c0)),PerformanceTester=require(a111_0x4517a1(0x15f)),globals=require('./globals'),{winstonLogger:logger,automationLogger}=require(a111_0x4517a1(0x1bd)),helper=require(a111_0x4517a1(0x18b)),constants=require(a111_0x4517a1(0x190)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x4517a1(0x199)),util=require(a111_0x4517a1(0x180));exports['overrideExecute']=(_0x24193c,_0x3a1b16)=>{const _0x13365c=a111_0x4517a1,_0x2b22bb={'TBrVd':_0x13365c(0x152),'BkTbe':_0x13365c(0x168),'XGmCe':function(_0x598f24){return _0x598f24();},'NNYcE':_0x13365c(0x19b),'gmtHK':function(_0x387784,_0x2b48fa){return _0x387784===_0x2b48fa;},'LcVDm':'NoSuchElementError','Cvfod':function(_0x344842,_0x3f75c7){return _0x344842===_0x3f75c7;},'oqdYC':_0x13365c(0x198),'cVmAD':function(_0x2cbd67,_0x447e8a){return _0x2cbd67===_0x447e8a;},'xRrho':_0x13365c(0x1c2),'PfwBM':'aiHeal_isHealingEnabled','jLJOU':function(_0x2110b8,_0x23768e){return _0x2110b8===_0x23768e;},'ppRJL':'css\x20selector','bxxMq':function(_0x394913,_0x38e6f8){return _0x394913+_0x38e6f8;},'GqcSO':function(_0x46488c,_0x11bb40){return _0x46488c+_0x11bb40;},'zRDXi':'findElement\x20command\x20failed\x20with\x20cssPath:\x20','Akfsn':';\x20Trying\x20to\x20heal','LSOfv':function(_0x54f888,_0x33fd16){return _0x54f888+_0x33fd16;},'vwGNr':function(_0x1daae7,_0x57404a){return _0x1daae7+_0x57404a;},'voVgi':_0x13365c(0x16d),'wNNLS':_0x13365c(0x187),'Diwcc':function(_0x46f76e,_0x13e140){return _0x46f76e&&_0x13e140;},'wQLrd':function(_0x306f07,_0x56c5c4){return _0x306f07+_0x56c5c4;},'zxRcW':'Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Unfet':_0x13365c(0x166),'raRiq':function(_0x21e4a0,_0x452173){return _0x21e4a0+_0x452173;},'PwSGb':_0x13365c(0x19a),'uOLRO':function(_0x37e4dc,_0x372819){return _0x37e4dc+_0x372819;},'pzZgY':function(_0x2f5ce0,_0x26eb02){return _0x2f5ce0+_0x26eb02;},'NFIbA':_0x13365c(0x17a),'MqZaR':function(_0x359233,_0x3d62d2){return _0x359233===_0x3d62d2;},'fvWdJ':'get','oQCKW':_0x13365c(0x188),'DWaUk':_0x13365c(0x18a),'josYL':_0x13365c(0x16b),'ZdyTn':'aiSdk_defaultLogDataEnabled','RpZOk':function(_0x2031c3,_0x2fe524){return _0x2031c3===_0x2fe524;},'HFJdw':_0x13365c(0x18c),'SdPXE':_0x13365c(0x1a9),'ivXHG':_0x13365c(0x1b9),'OGruT':_0x13365c(0x1c3),'IsUfB':_0x13365c(0x1a8),'nfrFE':_0x13365c(0x182),'KgAAi':'bstack:options','pEsVb':'local'},_0x307403=_0x24193c[_0x13365c(0x158)]||(helper['nestedKeyValue'](_0x3a1b16,[_0x2b22bb[_0x13365c(0x189)],_0x2b22bb[_0x13365c(0x194)]])||helper['nestedKeyValue'](_0x3a1b16,[_0x2b22bb[_0x13365c(0x189)],_0x2b22bb['KgAAi'],_0x2b22bb[_0x13365c(0x17c)]]));if(!globals[_0x13365c(0x177)](_0x2b22bb['TBrVd'])&&!globals[_0x13365c(0x177)](_0x2b22bb[_0x13365c(0x160)])&&_0x307403)return;_0x24193c[_0x13365c(0x158)]=!![],_0x24193c[_0x13365c(0x1a1)]=_0x24193c[_0x13365c(0x153)],_0x24193c[_0x13365c(0x153)]=async _0x4a19f7=>{const _0x47ecf3=_0x13365c,_0x29cbff={'pLXta':_0x2b22bb[_0x47ecf3(0x174)],'LZQYo':_0x2b22bb['ZdyTn'],'xECHr':function(_0x2b989a,_0x322e8f){const _0x37f481=_0x47ecf3;return _0x2b22bb[_0x37f481(0x19e)](_0x2b989a,_0x322e8f);},'jGfGH':_0x2b22bb[_0x47ecf3(0x178)],'PubwO':_0x2b22bb[_0x47ecf3(0x160)],'qPIOI':_0x2b22bb['HFJdw'],'oxNfB':function(_0x23c7ca){const _0x1321a9=_0x47ecf3;return _0x2b22bb[_0x1321a9(0x1b7)](_0x23c7ca);}};try{const _0x183a1a={};_0x183a1a['command']=_0x4a19f7['name_'],await PerformanceTester[_0x47ecf3(0x170)](PerformanceDriverEvents[_0x47ecf3(0x15b)],async()=>{const _0x23a656=_0x47ecf3;if(!commandRepository['getTcgTokenStatus']()&&globals['getGlobal'](_0x2b22bb[_0x23a656(0x174)])){const _0x47b738=PerformanceTester[_0x23a656(0x170)](_0x2b22bb[_0x23a656(0x1a5)],async()=>{const _0x8f3fb0=_0x23a656;try{commandRepository[_0x8f3fb0(0x15d)](!![]),await aiSdkWrapper[_0x8f3fb0(0x192)]((await _0x24193c[_0x8f3fb0(0x1b8)]())[_0x8f3fb0(0x16e)]());const _0x1d56de=globals[_0x8f3fb0(0x177)](_0x29cbff[_0x8f3fb0(0x17e)]);_0x1d56de&&commandRepository['setAiSessionTimeStamp']((await _0x24193c[_0x8f3fb0(0x1b8)]())['getId']());}catch(_0x17cc3c){logger[_0x8f3fb0(0x171)]('Error\x20in\x20handling\x20TCG\x20Auth:\x20'+_0x17cc3c);}});await _0x2b22bb[_0x23a656(0x1b7)](_0x47b738);}},_0x183a1a)();const _0x3401a8=await _0x24193c[_0x47ecf3(0x1a1)](_0x4a19f7);try{if(_0x2b22bb[_0x47ecf3(0x16c)](_0x4a19f7[_0x47ecf3(0x184)],_0x2b22bb[_0x47ecf3(0x1ac)])||_0x2b22bb[_0x47ecf3(0x191)](_0x4a19f7['name_'],_0x2b22bb[_0x47ecf3(0x156)])){const _0x3ccc9d=_0x4a19f7[_0x47ecf3(0x188)]&&_0x4a19f7[_0x47ecf3(0x188)][_0x47ecf3(0x16f)],_0x24511a=_0x4a19f7[_0x47ecf3(0x188)]&&_0x4a19f7[_0x47ecf3(0x188)][_0x47ecf3(0x1bc)],_0x1d38e7=_0x24511a&&util[_0x47ecf3(0x154)]('%j',_0x24511a);if(_0x3ccc9d&&_0x2b22bb[_0x47ecf3(0x1a0)](typeof _0x3ccc9d,_0x2b22bb[_0x47ecf3(0x157)])){const _0x4ce833=constants['AUTOMATION_LOG_COMMANDS'][_0x47ecf3(0x155)](_0x338ac1=>_0x3ccc9d[_0x47ecf3(0x16a)](_0x338ac1)||_0x1d38e7&&_0x1d38e7['includes'](_0x338ac1));if(_0x4ce833){const _0x3b4954={};_0x3b4954[_0x47ecf3(0x163)]=_0x4ce833,_0x3b4954[_0x47ecf3(0x15a)]=_0x24511a;const _0x500666={};_0x500666['body']=_0x3401a8;const _0x1bf779={};_0x1bf779[_0x47ecf3(0x1bf)]=_0x3b4954,_0x1bf779[_0x47ecf3(0x159)]=_0x500666,automationLogger[_0x47ecf3(0x195)]('['+new Date()[_0x47ecf3(0x19f)]()+_0x47ecf3(0x1ae)+util[_0x47ecf3(0x154)]('%j',_0x1bf779));}}}}catch(_0x1da438){logger[_0x47ecf3(0x195)](_0x47ecf3(0x1b1)+_0x1da438[_0x47ecf3(0x1a4)]);}return await PerformanceTester[_0x47ecf3(0x170)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x1e156c=_0x47ecf3;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0x1e156c(0x176)]()||globals[_0x1e156c(0x177)](_0x29cbff[_0x1e156c(0x173)]))&&_0x29cbff['xECHr'](_0x4a19f7[_0x1e156c(0x184)],_0x29cbff[_0x1e156c(0x179)])&&!_0x4a19f7['skipHealingSuccess']&&globals[_0x1e156c(0x177)](_0x29cbff[_0x1e156c(0x17e)])&&globals[_0x1e156c(0x177)](_0x29cbff['PubwO'])){const _0x5655d0=new Date(),_0x5ab2d3=PerformanceTester[_0x1e156c(0x170)](_0x29cbff[_0x1e156c(0x164)],async()=>{return await aiSdkWrapper['handleSuccess'](_0x3a1b16,_0x24193c,_0x4a19f7);});await _0x29cbff[_0x1e156c(0x17b)](_0x5ab2d3);}},{'command':_0x4a19f7[_0x47ecf3(0x184)]})(),_0x3401a8;}catch(_0x27eca4){await PerformanceTester[_0x47ecf3(0x170)](PerformanceDriverEvents[_0x47ecf3(0x19c)],async()=>{const _0x2ba361=_0x47ecf3;logger['debug'](_0x2b22bb['NNYcE']);try{if(!helper[_0x2ba361(0x1bb)]()&&(_0x2b22bb[_0x2ba361(0x1a0)](_0x27eca4[_0x2ba361(0x1ad)],_0x2b22bb[_0x2ba361(0x1af)])||_0x2b22bb['Cvfod'](_0x27eca4[_0x2ba361(0x1ad)],_0x2b22bb[_0x2ba361(0x15c)]))&&_0x2b22bb[_0x2ba361(0x191)](_0x4a19f7[_0x2ba361(0x184)],_0x2b22bb[_0x2ba361(0x178)])&&commandRepository[_0x2ba361(0x176)]()&&globals[_0x2ba361(0x177)](_0x2b22bb[_0x2ba361(0x174)])&&globals[_0x2ba361(0x177)](_0x2b22bb[_0x2ba361(0x160)])){_0x2b22bb[_0x2ba361(0x16c)](_0x4a19f7[_0x2ba361(0x188)]['using'],_0x2b22bb[_0x2ba361(0x18d)])?logger['info'](_0x2b22bb[_0x2ba361(0x15e)](_0x2b22bb['GqcSO'](_0x2b22bb[_0x2ba361(0x169)],_0x4a19f7['parameters_'][_0x2ba361(0x1aa)]),_0x2b22bb[_0x2ba361(0x1ba)])):logger[_0x2ba361(0x185)](_0x2b22bb[_0x2ba361(0x1b2)](_0x2b22bb[_0x2ba361(0x1b2)](_0x2b22bb['LSOfv'](_0x2b22bb['vwGNr'](_0x2b22bb['voVgi'],_0x4a19f7[_0x2ba361(0x188)][_0x2ba361(0x165)]),':\x20'),_0x4a19f7['parameters_'][_0x2ba361(0x1aa)]),_0x2b22bb[_0x2ba361(0x1ba)]));const _0x53cb15=PerformanceTester[_0x2ba361(0x170)](_0x2b22bb[_0x2ba361(0x181)],async()=>{const _0x522ba6=_0x2ba361;return await aiSdkWrapper[_0x522ba6(0x17d)](_0x3a1b16,_0x24193c,_0x4a19f7);}),_0x593b62=new Date(),{locatorType:_0x27c08f,locatorValue:_0x42f7d1,commandHealed:_0x283620}=await _0x2b22bb[_0x2ba361(0x1b7)](_0x53cb15);if(_0x2b22bb[_0x2ba361(0x1be)](_0x27c08f,_0x42f7d1)){_0x4a19f7[_0x2ba361(0x188)][_0x2ba361(0x165)]=_0x27c08f,_0x4a19f7[_0x2ba361(0x188)]['value']=_0x42f7d1,_0x4a19f7[_0x2ba361(0x150)]=!![];const _0x3d936d=_0x24193c[_0x2ba361(0x153)](_0x4a19f7);return _0x2b22bb[_0x2ba361(0x1a0)](_0x27c08f,_0x2b22bb[_0x2ba361(0x18d)])?logger[_0x2ba361(0x185)](_0x2b22bb['wQLrd'](_0x2b22bb['zxRcW'],_0x42f7d1)):logger[_0x2ba361(0x185)](_0x2b22bb[_0x2ba361(0x1b2)](_0x2b22bb[_0x2ba361(0x1b6)](_0x2b22bb[_0x2ba361(0x15e)](_0x2b22bb[_0x2ba361(0x175)],_0x27c08f),':\x20'),_0x42f7d1)),_0x3d936d;}else!_0x283620&&(_0x2b22bb['jLJOU'](_0x27c08f,_0x2b22bb[_0x2ba361(0x18d)])?logger[_0x2ba361(0x185)](_0x2b22bb[_0x2ba361(0x196)](_0x2b22bb['PwSGb'],_0x4a19f7[_0x2ba361(0x188)][_0x2ba361(0x1aa)])):logger['info'](_0x2b22bb[_0x2ba361(0x1a6)](_0x2b22bb[_0x2ba361(0x172)](_0x2b22bb[_0x2ba361(0x196)](_0x2b22bb[_0x2ba361(0x1c1)],_0x4a19f7[_0x2ba361(0x188)][_0x2ba361(0x165)]),':\x20'),_0x4a19f7['parameters_']['value'])));}!_0x307403&&_0x2b22bb[_0x2ba361(0x186)](_0x4a19f7['name_'],_0x2b22bb['fvWdJ'])&&helper[_0x2ba361(0x17f)](_0x4a19f7,[_0x2b22bb[_0x2ba361(0x1a7)],_0x2b22bb[_0x2ba361(0x1a3)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x2ba361(0x155)](_0x1778db=>{const _0x1b0cfb=_0x2ba361;return _0x27eca4[_0x1b0cfb(0x197)]()[_0x1b0cfb(0x16a)](_0x1778db);})&&helper[_0x2ba361(0x1b4)](_0x4a19f7['parameters_'][_0x2ba361(0x18a)],!![]);}catch(_0x2b1901){logger['debug'](_0x2b22bb[_0x2ba361(0x18f)],_0x2b1901);}},{'success':![],'failure':_0x27eca4})();throw _0x27eca4;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x112f55=a112_0x2535;function a112_0x2535(_0x1def48,_0x3ac5da){const _0x5b8950=a112_0x5b89();return a112_0x2535=function(_0x253563,_0x184dc1){_0x253563=_0x253563-0xe5;let _0x110152=_0x5b8950[_0x253563];return _0x110152;},a112_0x2535(_0x1def48,_0x3ac5da);}(function(_0x2c085d,_0x1d3f7e){const _0x465f12=a112_0x2535,_0x24a8ab=_0x2c085d();while(!![]){try{const _0x30616d=parseInt(_0x465f12(0xfa))/0x1*(-parseInt(_0x465f12(0xea))/0x2)+parseInt(_0x465f12(0xe8))/0x3+parseInt(_0x465f12(0x104))/0x4*(parseInt(_0x465f12(0x107))/0x5)+-parseInt(_0x465f12(0xe6))/0x6+-parseInt(_0x465f12(0xff))/0x7*(parseInt(_0x465f12(0xf4))/0x8)+parseInt(_0x465f12(0xf0))/0x9+parseInt(_0x465f12(0x106))/0xa;if(_0x30616d===_0x1d3f7e)break;else _0x24a8ab['push'](_0x24a8ab['shift']());}catch(_0x1268f5){_0x24a8ab['push'](_0x24a8ab['shift']());}}}(a112_0x5b89,0x65099));const PerformanceTester=require(a112_0x112f55(0xfd)),O11yEvents=require(a112_0x112f55(0xef))['O11y_EVENTS'];exports[a112_0x112f55(0xf5)]=_0x49a998=>{const _0x3654b5=a112_0x112f55,_0x370d7a={'KtzlZ':_0x3654b5(0x101),'apPRv':function(_0x508fa7,_0x547aa2){return _0x508fa7(_0x547aa2);},'uEHpE':function(_0xdbe9bd,_0x279fb7){return _0xdbe9bd!==_0x279fb7;},'DVZqm':'true'};if(_0x370d7a[_0x3654b5(0x100)](process[_0x3654b5(0x108)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x370d7a[_0x3654b5(0xf6)]))return;if(_0x49a998[_0x3654b5(0xf2)])return;_0x49a998[_0x3654b5(0xf2)]=!![],_0x49a998[_0x3654b5(0xeb)]=_0x49a998[_0x3654b5(0xee)],_0x49a998[_0x3654b5(0xee)]=()=>{const _0x269e67={'NmqHJ':_0x370d7a['KtzlZ'],'uGpuV':function(_0x384b69,_0x379488){return _0x370d7a['apPRv'](_0x384b69,_0x379488);},'cLqtF':function(_0x510301,_0x55bb32){const _0x1842da=a112_0x2535;return _0x370d7a[_0x1842da(0x105)](_0x510301,_0x55bb32);}};return new Promise(function(_0x26676a,_0x167589){const _0x499d45=a112_0x2535;_0x49a998[_0x499d45(0xeb)]()['then'](_0x2c79b3=>{const _0x41066a=_0x499d45;PerformanceTester[_0x41066a(0xf8)](O11yEvents[_0x41066a(0xec)]),process[_0x41066a(0xf3)](_0x41066a(0xe5)+process[_0x41066a(0xfb)],{'timestamp':new Date()[_0x41066a(0xe7)](),'message':_0x2c79b3,'kind':_0x269e67[_0x41066a(0xfe)]}),_0x269e67['uGpuV'](_0x26676a,_0x2c79b3),PerformanceTester['end'](O11yEvents[_0x41066a(0xec)]);})[_0x499d45(0x102)](_0x5b84e2=>{const _0x309241=_0x499d45;PerformanceTester['end'](O11yEvents[_0x309241(0xec)]),_0x269e67[_0x309241(0x103)](_0x167589,_0x5b84e2);});});};},exports['overrideQuit']=(_0x4b2e76,_0x297804=null)=>{const _0x170000=a112_0x112f55,_0x50a4fc={'EYGkh':function(_0x453774){return _0x453774();},'zKLwu':function(_0x150f6f,_0x49e6dc){return _0x150f6f>_0x49e6dc;}};if(_0x4b2e76[_0x170000(0xf9)])return;_0x4b2e76[_0x170000(0xf9)]=!![],_0x4b2e76[_0x170000(0xf1)]=_0x4b2e76[_0x170000(0xed)],_0x4b2e76[_0x170000(0xed)]=()=>{const _0x36dc7d=_0x170000;if(_0x297804){_0x297804[_0x36dc7d(0xe9)]+=0x1;if(_0x50a4fc[_0x36dc7d(0xf7)](_0x297804[_0x36dc7d(0xe9)],0x1))return _0x4b2e76[_0x36dc7d(0xf1)]();}else{_0x4b2e76['quitCount_']+=0x1;if(_0x50a4fc[_0x36dc7d(0xf7)](_0x4b2e76[_0x36dc7d(0xe9)],0x1))return _0x4b2e76[_0x36dc7d(0xf1)]();}return new Promise(function(_0x191694){const _0x5884a3=_0x36dc7d;_0x50a4fc[_0x5884a3(0xfc)](_0x191694);});};};function a112_0x5b89(){const _0x3f9b9e=['4483446obrzyi','toISOString','1473675FTaTXA','quitCount_','8TgjjHw','initScreenshot','TAKE_SCREENSHOT','quit','takeScreenshot','./performance/constants','4830966wbznRH','initQuit','patchScreenshot','emit','1576pxzohY','overrideTakeScreenshot','DVZqm','zKLwu','start','patchQuit','91529uDvuFt','pid','EYGkh','./performance/performance-tester','NmqHJ','20076DQSaTY','uEHpE','TEST_SCREENSHOT','catch','cLqtF','254972QTpTCQ','apPRv','5542590ucKxUO','40aAReXa','env','bs:addLog:'];a112_0x5b89=function(){return _0x3f9b9e;};return a112_0x5b89();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x5de73f=a113_0x40de;(function(_0x56464f,_0x3c345e){const _0x59a6b0=a113_0x40de,_0x4001a8=_0x56464f();while(!![]){try{const _0xe87964=-parseInt(_0x59a6b0(0x1ae))/0x1*(-parseInt(_0x59a6b0(0x1aa))/0x2)+-parseInt(_0x59a6b0(0x1c0))/0x3+-parseInt(_0x59a6b0(0x191))/0x4*(-parseInt(_0x59a6b0(0x188))/0x5)+parseInt(_0x59a6b0(0x193))/0x6*(-parseInt(_0x59a6b0(0x1c7))/0x7)+-parseInt(_0x59a6b0(0x18b))/0x8+-parseInt(_0x59a6b0(0x1b4))/0x9*(-parseInt(_0x59a6b0(0x194))/0xa)+parseInt(_0x59a6b0(0x1b5))/0xb;if(_0xe87964===_0x3c345e)break;else _0x4001a8['push'](_0x4001a8['shift']());}catch(_0x1a7a5c){_0x4001a8['push'](_0x4001a8['shift']());}}}(a113_0x2504,0xb8733));function a113_0x2504(){const _0x5d0d2e=['1165251dSdKMS','MCuWH','percy/healthcheck','OTqRL','getBinaryPath','start','MmNnK','878654hrxEWh','stderr','Error\x20creating\x20percy\x20config:\x20','../logger','data','path','flags','healthcheck','hCYQB','createWriteStream','exec','qGAye','exec:stop','end','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','createPercyConfig','app','QIGQy','env','153060hWoKdK','error','mvujQ','2839784BAXMRn','stop','percyOptions','EcawU','XDqXi','GowAn','4wwOxej','BROWSERSTACK_TESTHUB_UUID','60DLTuII','10qIbuoE','../../helpers/performance/performance-tester','join','isRunning','winstonLogger','ClyqC','Percy\x20fetch\x20token\x20success','app:exec','mVoHt','../../helpers/testhub/constants','assign','version','fetchPercyToken','http://localhost:5338','PERCY_SERVER_ADDRESS','stringify','GET','Tpisx','DOWNLOAD','projectName','../../helpers/performance/constants','tFkPj','542044SHHTyQ','debug','writeFile','ifCue','4EUQLPM','Percy\x20config\x20created\x20at\x20','isProcessRunning','lTVUD','AyZYu','../helper','11618091PCDEza','3833698WLEpnJ','xIWkD','nkkmJ','close','ENV_VAR','uRgMu','Percy\x20healthcheck\x20successful','stdout',':start','./PercyBinary','push'];a113_0x2504=function(){return _0x5d0d2e;};return a113_0x2504();}const fs=require('fs'),path=require(a113_0x5de73f(0x1cc)),os=require('os'),{spawn}=require('child_process'),helper=require(a113_0x5de73f(0x1b3)),logger=require(a113_0x5de73f(0x1ca))[a113_0x5de73f(0x198)],{getLogDir}=require(a113_0x5de73f(0x1ca)),testHubConstants=require(a113_0x5de73f(0x19d)),PerformanceTester=require(a113_0x5de73f(0x195)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0x5de73f(0x1a8)),PercyBinary=require(a113_0x5de73f(0x1be));class Percy{#logfile=path[a113_0x5de73f(0x196)](getLogDir(),'percy.log');#address=process[a113_0x5de73f(0x187)][a113_0x5de73f(0x1a2)]||a113_0x5de73f(0x1a1);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x201a74){this.#config=_0x201a74,!!_0x201a74['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x16fc25=a113_0x5de73f;if(!this.#binaryPath){const _0x1cc6ba=new PercyBinary();PerformanceTester[_0x16fc25(0x1c5)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x1cc6ba[_0x16fc25(0x1c4)](this.#config),PerformanceTester[_0x16fc25(0x1d4)](PerformanceEvents[_0x16fc25(0x1a6)]);}return this.#binaryPath;}async #sleep(_0x5a3118){return new Promise(_0x360f77=>setTimeout(_0x360f77,_0x5a3118));}async[a113_0x5de73f(0x1ce)](){const _0x5e35d8=a113_0x5de73f,_0x324cef={};_0x324cef[_0x5e35d8(0x18e)]=_0x5e35d8(0x1a4),_0x324cef['ifCue']=_0x5e35d8(0x1c2);const _0x4664fb=_0x324cef;try{const _0x4c2822=await helper['nodeRequest'](_0x4664fb[_0x5e35d8(0x18e)],_0x4664fb[_0x5e35d8(0x1ad)],null,null,this.#address);if(_0x4c2822)return!![];}catch(_0x63a21){return![];}}async[a113_0x5de73f(0x1c5)](){const _0x3c08fa=a113_0x5de73f,_0x1b9a74={'rDNzN':_0x3c08fa(0x19b),'mVoHt':_0x3c08fa(0x1d1),'OTqRL':function(_0x2e5dd6,_0x1c4647,_0x4d62dd,_0x41fe25){return _0x2e5dd6(_0x1c4647,_0x4d62dd,_0x41fe25);},'lTVUD':_0x3c08fa(0x1b8),'MCuWH':_0x3c08fa(0x1bb)},_0xff0433=await this.#getBinaryPath(),_0x57d1de={};_0x57d1de[_0x3c08fa(0x1cd)]='a',this.#logStream=fs[_0x3c08fa(0x1d0)](this.#logfile,_0x57d1de);const _0x44d8b9=await this[_0x3c08fa(0x1a0)](),_0x56b2a0=await this['createPercyConfig']();if(!_0x44d8b9)return![];const _0x2183d2=[(this.#isApp?_0x1b9a74['rDNzN']:_0x1b9a74[_0x3c08fa(0x19c)])+_0x3c08fa(0x1bd)];_0x56b2a0&&_0x2183d2[_0x3c08fa(0x1bf)]('-c',_0x56b2a0);this.#proc=_0x1b9a74[_0x3c08fa(0x1c3)](spawn,_0xff0433,_0x2183d2,{'env':Object[_0x3c08fa(0x19e)](process[_0x3c08fa(0x187)],{'PERCY_TOKEN':_0x44d8b9,'TH_BUILD_UUID':process[_0x3c08fa(0x187)][testHubConstants[_0x3c08fa(0x1b9)][_0x3c08fa(0x192)]]})}),this.#proc[_0x3c08fa(0x1bc)]['pipe'](this.#logStream),this.#proc[_0x3c08fa(0x1c8)]['pipe'](this.#logStream),this[_0x3c08fa(0x1b0)]=!![];var _0x48b829=this;this.#proc['on'](_0x1b9a74[_0x3c08fa(0x1b1)],function(_0x3df7fa){const _0x1fc752=_0x3c08fa;_0x48b829[_0x1fc752(0x1b0)]=![];});do{const _0x121461=await this[_0x3c08fa(0x1ce)]();if(_0x121461)return logger['debug'](_0x1b9a74[_0x3c08fa(0x1c1)]),!![];await this.#sleep(0x3e8);}while(this[_0x3c08fa(0x1b0)]);return![];}async[a113_0x5de73f(0x18c)](){const _0x4c2bf9=a113_0x5de73f,_0x3e4e37={'kCuUi':function(_0x41b3bf,_0x22e906){return _0x41b3bf(_0x22e906);},'mvujQ':function(_0x354fdd,_0x16bb4d,_0x504585){return _0x354fdd(_0x16bb4d,_0x504585);},'QIGQy':_0x4c2bf9(0x1d3),'ClyqC':'close'},_0x2ce7f5=await this.#getBinaryPath();return new Promise((_0x7b4b43,_0x3cb1a8)=>{const _0x1abd41=_0x4c2bf9,_0x48406d=_0x3e4e37[_0x1abd41(0x18a)](spawn,_0x2ce7f5,[_0x3e4e37[_0x1abd41(0x186)]]);_0x48406d['on'](_0x3e4e37[_0x1abd41(0x199)],_0x152b81=>{const _0x3b77d0=_0x1abd41;this[_0x3b77d0(0x1b0)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x3e4e37['kCuUi'](_0x7b4b43,_0x152b81);});});}[a113_0x5de73f(0x197)](){return this['isProcessRunning'];}async[a113_0x5de73f(0x1a0)](){const _0x414ac3=a113_0x5de73f,_0x2bd3ca={};_0x2bd3ca[_0x414ac3(0x1b2)]=_0x414ac3(0x185),_0x2bd3ca[_0x414ac3(0x1c6)]='automate',_0x2bd3ca[_0x414ac3(0x1ba)]=_0x414ac3(0x1a4),_0x2bd3ca[_0x414ac3(0x190)]=_0x414ac3(0x19a);const _0x4efffd=_0x2bd3ca,_0x4d0fde=this.#config[_0x414ac3(0x1a7)];try{const _0x13d2ba=this.#isApp?_0x4efffd[_0x414ac3(0x1b2)]:_0x4efffd['MmNnK'],_0x419806=await helper['nodeRequest'](_0x4efffd[_0x414ac3(0x1ba)],'api/app_percy/get_project_token?name='+_0x4d0fde+'&type='+_0x13d2ba,{},this.#config),_0x3bae96=_0x419806[_0x414ac3(0x1cb)];return logger[_0x414ac3(0x1ab)](_0x4efffd[_0x414ac3(0x190)]),_0x3bae96['token'];}catch(_0x15e25f){return logger[_0x414ac3(0x189)](_0x414ac3(0x1d5)+_0x15e25f),null;}}async[a113_0x5de73f(0x1d6)](){const _0x5c993b=a113_0x5de73f,_0x3c4133={'qGAye':function(_0x2c56b8,_0x1474d1){return _0x2c56b8(_0x1474d1);},'xIWkD':function(_0x42f4bd,_0x40c8ca){return _0x42f4bd+_0x40c8ca;},'XDqXi':_0x5c993b(0x1af),'nkkmJ':'percy.json'};if(!this.#config['percyOptions'])return null;const _0x20b3e3=path[_0x5c993b(0x196)](os['tmpdir'](),_0x3c4133[_0x5c993b(0x1b7)]),_0x5d1f1c=this.#config[_0x5c993b(0x18d)];return!_0x5d1f1c[_0x5c993b(0x19f)]&&(_0x5d1f1c['version']='2'),new Promise((_0x50adf7,_0x490cc7)=>{const _0x3bfec4=_0x5c993b,_0x178164={'tFkPj':function(_0x315612,_0x5ef8ff){const _0x32b0d8=a113_0x40de;return _0x3c4133[_0x32b0d8(0x1d2)](_0x315612,_0x5ef8ff);},'Tpisx':function(_0x12cfe7,_0x5e4b66){const _0x222b05=a113_0x40de;return _0x3c4133[_0x222b05(0x1b6)](_0x12cfe7,_0x5e4b66);},'hCYQB':_0x3c4133[_0x3bfec4(0x18f)],'LVUBd':function(_0x941f86,_0xfed6e7){const _0x1887ac=_0x3bfec4;return _0x3c4133[_0x1887ac(0x1d2)](_0x941f86,_0xfed6e7);}};fs[_0x3bfec4(0x1ac)](_0x20b3e3,JSON[_0x3bfec4(0x1a3)](_0x5d1f1c),_0x333da5=>{const _0x3ee703=_0x3bfec4;_0x333da5&&(logger[_0x3ee703(0x189)](_0x3ee703(0x1c9)+_0x333da5),_0x178164[_0x3ee703(0x1a9)](_0x50adf7,null)),logger[_0x3ee703(0x1ab)](_0x178164[_0x3ee703(0x1a5)](_0x178164[_0x3ee703(0x1cf)],_0x20b3e3)),_0x178164['LVUBd'](_0x50adf7,_0x20b3e3);});});}}function a113_0x40de(_0x2781bd,_0x3200bb){const _0x250455=a113_0x2504();return a113_0x40de=function(_0x40de3f,_0x44da31){_0x40de3f=_0x40de3f-0x185;let _0x168aed=_0x250455[_0x40de3f];return _0x168aed;},a113_0x40de(_0x2781bd,_0x3200bb);}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a114_0x26f3(_0x1c6e40,_0x448376){const _0x266cd6=a114_0x266c();return a114_0x26f3=function(_0x26f3ff,_0x2002f3){_0x26f3ff=_0x26f3ff-0xf8;let _0x1f0118=_0x266cd6[_0x26f3ff];return _0x1f0118;},a114_0x26f3(_0x1c6e40,_0x448376);}const a114_0x31072b=a114_0x26f3;(function(_0x2a6d99,_0x51940d){const _0x3138a4=a114_0x26f3,_0x25372c=_0x2a6d99();while(!![]){try{const _0x379f42=-parseInt(_0x3138a4(0x12f))/0x1+-parseInt(_0x3138a4(0x164))/0x2+parseInt(_0x3138a4(0x177))/0x3+parseInt(_0x3138a4(0x12a))/0x4+-parseInt(_0x3138a4(0x11f))/0x5*(parseInt(_0x3138a4(0x10d))/0x6)+-parseInt(_0x3138a4(0x163))/0x7+parseInt(_0x3138a4(0x168))/0x8*(parseInt(_0x3138a4(0x119))/0x9);if(_0x379f42===_0x51940d)break;else _0x25372c['push'](_0x25372c['shift']());}catch(_0x53a40c){_0x25372c['push'](_0x25372c['shift']());}}}(a114_0x266c,0x98b3e));const {https}=require(a114_0x31072b(0x114)),url=require(a114_0x31072b(0x131)),yauzl=require(a114_0x31072b(0x11e)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a114_0x31072b(0x17a)),HttpsProxyAgent=require(a114_0x31072b(0x167)),logger=require('../logger')[a114_0x31072b(0x174)];function a114_0x266c(){const _0x2ede64=['2192343GTLAeT','tDttn','chmod','child_process','HOMEDRIVE','XqVMn','validateBinary','RnzXx','dzkYQ','znlTH','undefined','VrYeN','rVkIk','qWmRD','linux','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','pdDiR','EdnUw','get','wLVxc','needsUpdate','host','/percy-linux.zip','percy','debug','cwd','open','difvH','error','Error\x20trying\x20to\x20download\x20percy\x20binary','XxhJm','warn','/home/','then','CIgsY','kuRhk','binaryPath','utf8','cxPwH','GaKzP','platform','createWriteStream','jEEyH','157254ggeiOZ','If-None-Match','accessSync','once','R_OK','data','WxuxL','follow-redirects','FPCJe','mkdirSync','HOMEPATH','useCaCertificate','24597ZJiqqs','EtvkV','SLwIa','stdout','proxyPort','yauzl','110iXgZie','.etag','exports','XosLh','uIjAf','homedir','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','getuid','znWCa','close','proxyHost','304808cpyzUv','win32','kxKrZ','getBinaryPath','HOME','250372LgyamX','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','url','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','LOGNAME','etag','W_OK','HloBc','join','Cmjwx','length','MGtLL','darwin','USERNAME','download','AwUua','kInyB','CLFXI','gUJYj','ksdEv','entry','.browserstack','/percy-win.zip','readFileSync','MINmQ','fileName','pipe','env','https://github.com/percy/cli/releases/latest/download','port','headers','NUmgX','kAjYN','Connection','openReadStream','readEntry','TeJqB','/percy-osx.zip','YAWoY','FOTxq','eykcO','percy.exe','jkwVP','test','yopRz','Exzjh','xwpiv','/root','MTraL','extractAndSaveBinary','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','7908026uIOWhB','193860xqOcsK','sIbKD','Metxk','https-proxy-agent','5480POvvnv','pjvuJ','parse','0755','bAvap','dYWua','XZuvm','statusCode','KksMH','match','Saved\x20new\x20ETag\x20for\x20percy\x20binary','function','winstonLogger','ePyAN','Gftsu'];a114_0x266c=function(){return _0x2ede64;};return a114_0x266c();}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a114_0x31072b(0xf9);#orderedPaths=[path[a114_0x31072b(0x138)](this.#homedir(),a114_0x31072b(0x145)),process[a114_0x31072b(0xfb)](),os['tmpdir']()];constructor(){const _0x5cfdea=a114_0x31072b,_0x500c4d={};_0x500c4d['fiIiN']=_0x5cfdea(0x14c),_0x500c4d[_0x5cfdea(0x184)]=function(_0x50bca9,_0xee8ef5){return _0x50bca9+_0xee8ef5;},_0x500c4d['acDJy']=_0x5cfdea(0x155),_0x500c4d[_0x5cfdea(0x15c)]=_0x5cfdea(0x146),_0x500c4d[_0x5cfdea(0x109)]=_0x5cfdea(0x159),_0x500c4d[_0x5cfdea(0x100)]=_0x5cfdea(0xf8);const _0x4e01d9=_0x500c4d,_0x4664bd=_0x4e01d9['fiIiN'];if(this.#hostOS[_0x5cfdea(0x171)](/darwin|mac os/i))this.#httpPath=_0x4e01d9[_0x5cfdea(0x184)](_0x4664bd,_0x4e01d9['acDJy']);else this.#hostOS[_0x5cfdea(0x171)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4e01d9[_0x5cfdea(0x184)](_0x4664bd,_0x4e01d9[_0x5cfdea(0x15c)]),this.#binaryName=_0x4e01d9[_0x5cfdea(0x109)]):this.#httpPath=_0x4e01d9[_0x5cfdea(0x184)](_0x4664bd,_0x4e01d9[_0x5cfdea(0x100)]);}#getAvailableDirs(){const _0x5bb6d1=a114_0x31072b,_0x542e8a={};_0x542e8a[_0x5bb6d1(0x182)]=function(_0x2875e3,_0xbdf854){return _0x2875e3<_0xbdf854;},_0x542e8a['NJnry']=_0x5bb6d1(0xff);const _0x53c58e=_0x542e8a;for(var _0x464e02=0x0;_0x53c58e['VrYeN'](_0x464e02,this.#orderedPaths[_0x5bb6d1(0x13a)]);_0x464e02++){var _0x36dd0b=this.#orderedPaths[_0x464e02];if(this.#makePath(_0x36dd0b))return _0x36dd0b;}throw new Error(_0x53c58e['NJnry']);}#makePath(_0x160f26){const _0x17760a=a114_0x31072b;try{return _0x160f26&&!this.#checkPath(_0x160f26)&&fs[_0x17760a(0x116)](_0x160f26),!![];}catch{return![];}}#checkPath(_0x39802d,_0x370300){const _0x8379a=a114_0x31072b,_0x5ca8ee={};_0x5ca8ee[_0x8379a(0x148)]=function(_0x1cdd8b,_0x2666b5){return _0x1cdd8b|_0x2666b5;},_0x5ca8ee[_0x8379a(0x150)]=function(_0x5e097a,_0x11d07c){return _0x5e097a!==_0x11d07c;},_0x5ca8ee['FPCJe']=_0x8379a(0x181);const _0x52ecf7=_0x5ca8ee;_0x370300=_0x370300||_0x52ecf7[_0x8379a(0x148)](fs[_0x8379a(0x111)],fs[_0x8379a(0x136)]);try{return fs[_0x8379a(0x10f)](_0x39802d,_0x370300),!![];}catch(_0x348571){if(_0x52ecf7['kAjYN'](typeof fs[_0x8379a(0x10f)],_0x52ecf7[_0x8379a(0x115)]))return![];try{return fs['statSync'](_0x39802d),!![];}catch(_0xf42700){return![];}}}#getETagPath(_0x1d9ffe){const _0x42c55e=a114_0x31072b;return path[_0x42c55e(0x138)](_0x1d9ffe,this.#binaryName+_0x42c55e(0x120));}#loadETag(_0x4adeb5){const _0x43b4b7=a114_0x31072b,_0x1cd266={};_0x1cd266[_0x43b4b7(0x15e)]=_0x43b4b7(0x107);const _0x564427=_0x1cd266,_0x235c48=this.#getETagPath(_0x4adeb5);if(this.#checkPath(_0x235c48))try{return fs['readFileSync'](_0x235c48,_0x564427[_0x43b4b7(0x15e)])['trim']();}catch(_0x14e4c6){logger[_0x43b4b7(0x101)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x14e4c6);}return null;}#saveETag(_0x53c0c3,_0xf7d4e5){const _0x40b26e=a114_0x31072b,_0x415606={};_0x415606[_0x40b26e(0x188)]=_0x40b26e(0x172);const _0x4ceecb=_0x415606;if(!_0xf7d4e5)return;try{const _0x175e06=this.#getETagPath(_0x53c0c3);fs['writeFileSync'](_0x175e06,_0xf7d4e5),logger[_0x40b26e(0xfa)](_0x4ceecb['EdnUw']);}catch(_0x33cd53){logger[_0x40b26e(0x101)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x33cd53);}}async #handleBinaryDownload(_0x4b1795,_0x53db5a,_0x566b07){const _0x528597=a114_0x31072b,_0x371f8b={};_0x371f8b[_0x528597(0x15d)]=_0x528597(0x132);const _0x5d45c5=_0x371f8b,_0x2460a2=await this[_0x528597(0x17d)](_0x4b1795['binaryPath']);if(!_0x2460a2){logger[_0x528597(0xfe)](_0x5d45c5['Exzjh']);const _0x5747a6=await this['download'](_0x53db5a,_0x566b07);return _0x5747a6[_0x528597(0x106)];}return _0x4b1795[_0x528597(0x106)];}async[a114_0x31072b(0x12d)](_0x531413){const _0x36a9e2=a114_0x31072b,_0xb48c48={};_0xb48c48['VxNkH']=_0x36a9e2(0x133),_0xb48c48['DqjuI']=_0x36a9e2(0x125);const _0x56a0c1=_0xb48c48,_0x5c08e7=this.#getAvailableDirs(),_0x4da7a1=path[_0x36a9e2(0x138)](_0x5c08e7,this.#binaryName);if(this.#checkPath(_0x4da7a1,fs['X_OK'])){const _0x496454=this.#loadETag(_0x5c08e7);if(_0x496454)try{const _0x12d759=await this[_0x36a9e2(0x13e)](_0x531413,_0x5c08e7,_0x496454);if(!_0x12d759['needsUpdate'])return logger[_0x36a9e2(0xfa)](_0x56a0c1['VxNkH']),_0x4da7a1;return logger[_0x36a9e2(0xfa)](_0x56a0c1['DqjuI']),await this.#handleBinaryDownload(_0x12d759,_0x531413,_0x5c08e7);}catch(_0x452ed9){return logger['warn']('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x452ed9),_0x4da7a1;}}const _0x5f2b32=await this[_0x36a9e2(0x13e)](_0x531413,_0x5c08e7);return await this.#handleBinaryDownload(_0x5f2b32,_0x531413,_0x5c08e7);}[a114_0x31072b(0x13e)](_0x53a13e,_0x2240d7,_0x3014cc=null){const _0x597fc2=a114_0x31072b,_0x2041d9={'EtvkV':function(_0x2fe558,_0x574e9c){return _0x2fe558===_0x574e9c;},'FOTxq':function(_0x219846,_0x9f0d74){return _0x219846(_0x9f0d74);},'CIgsY':'error','znWCa':'close','cxPwH':function(_0x8999dc,_0xa1035e){return _0x8999dc(_0xa1035e);},'znlTH':function(_0x5ccd37,_0x516618){return _0x5ccd37+_0x516618;},'Metxk':'.zip'};_0x2240d7&&!this.#checkPath(_0x2240d7)&&fs['mkdirSync'](_0x2240d7);const _0x3c1b00=this.#binaryName,_0x3a538c=path[_0x597fc2(0x138)](_0x2240d7,_0x2041d9[_0x597fc2(0x180)](_0x3c1b00,_0x2041d9[_0x597fc2(0x166)])),_0x2f1d09=fs['createWriteStream'](_0x3a538c),_0x3e92ae=url[_0x597fc2(0x16a)](this.#httpPath);if(_0x53a13e['proxyHost']&&_0x53a13e['proxyPort']){const _0x4d8929={};_0x4d8929[_0x597fc2(0x18c)]=_0x53a13e[_0x597fc2(0x129)],_0x4d8929[_0x597fc2(0x14d)]=_0x53a13e[_0x597fc2(0x11d)],_0x3e92ae['agent']=new HttpsProxyAgent(_0x4d8929);}if(_0x53a13e[_0x597fc2(0x118)])try{_0x3e92ae['ca']=fs[_0x597fc2(0x147)](_0x53a13e[_0x597fc2(0x118)]);}catch(_0x1b5c3f){logger[_0x597fc2(0xfe)](_0x597fc2(0x186)+_0x1b5c3f);}if(_0x3014cc){const _0x364c9d={};_0x364c9d[_0x597fc2(0x10e)]=_0x3014cc,_0x364c9d['Connection']=_0x2041d9[_0x597fc2(0x127)],_0x3e92ae[_0x597fc2(0x14e)]=_0x364c9d;}else{const _0x6f3f89={};_0x6f3f89[_0x597fc2(0x151)]=_0x2041d9[_0x597fc2(0x127)],_0x3e92ae['headers']=_0x6f3f89;}return new Promise((_0x35f537,_0x3ada7b)=>{const _0x130f36=_0x597fc2,_0x1647d1={'FbLjw':function(_0x4a0f12,_0x4075a6){const _0x54c17d=a114_0x26f3;return _0x2041d9[_0x54c17d(0x108)](_0x4a0f12,_0x4075a6);},'DQXCV':function(_0x446275,_0x11e68f){const _0x45501f=a114_0x26f3;return _0x2041d9[_0x45501f(0x157)](_0x446275,_0x11e68f);}};https[_0x130f36(0x189)](_0x3e92ae,_0x4506c3=>{const _0x5cf491=_0x130f36;if(_0x3014cc&&_0x2041d9[_0x5cf491(0x11a)](_0x4506c3[_0x5cf491(0x16f)],0x130)){_0x2f1d09['destroy']();const _0x39ea88={};_0x39ea88[_0x5cf491(0x18b)]=![],_0x2041d9[_0x5cf491(0x157)](_0x35f537,_0x39ea88);return;}const _0x2a6c17=_0x4506c3[_0x5cf491(0x14e)][_0x5cf491(0x135)];_0x2a6c17&&this.#saveETag(_0x2240d7,_0x2a6c17),_0x4506c3[_0x5cf491(0x14a)](_0x2f1d09),_0x4506c3['on'](_0x2041d9[_0x5cf491(0x104)],function(_0x26efef){const _0x33e935=_0x5cf491;logger['error'](_0x33e935(0x162)+_0x26efef),_0x1647d1['FbLjw'](_0x3ada7b,_0x26efef);}),_0x2f1d09['on'](_0x2041d9['CIgsY'],function(_0x2f828b){const _0x567055=_0x5cf491;logger[_0x567055(0xfe)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x2f828b),_0x1647d1['DQXCV'](_0x3ada7b,_0x2f828b);}),_0x2f1d09['on'](_0x2041d9['znWCa'],()=>{const _0x4dee7c=_0x5cf491;this[_0x4dee7c(0x161)](_0x3a538c,_0x2240d7)[_0x4dee7c(0x103)](_0x1654d6=>_0x35f537({'needsUpdate':!![],'binaryPath':_0x1654d6}))['catch'](_0x3ada7b);});})['on'](_0x2041d9[_0x130f36(0x104)],function(_0x102d2f){const _0x1de260=_0x130f36;logger['error'](_0x1de260(0x130)+_0x102d2f),_0x2041d9[_0x1de260(0x157)](_0x3ada7b,_0x102d2f);});});}[a114_0x31072b(0x161)](_0x23b51c,_0x595b97){const _0x1ca319=a114_0x31072b,_0x5178ae={'wLVxc':function(_0x6bd39c,_0x4ef658){return _0x6bd39c(_0x4ef658);},'WxuxL':'end','RbFBz':function(_0x300381,_0x558c53){return _0x300381===_0x558c53;},'ASjKN':_0x1ca319(0x16b),'RnzXx':_0x1ca319(0x144),'jkwVP':_0x1ca319(0xfe)},_0x18154c=this.#binaryName,_0x5a7615=path['join'](_0x595b97,_0x18154c);return new Promise((_0x311f69,_0x56d788)=>{const _0x4a308e=_0x1ca319,_0x16c6c1={'eykcO':function(_0x40c9e6,_0x17b108){const _0x4f4a01=a114_0x26f3;return _0x5178ae[_0x4f4a01(0x18a)](_0x40c9e6,_0x17b108);},'WAsPD':_0x5178ae[_0x4a308e(0x113)],'kInyB':function(_0x39e120,_0x32f0fd){return _0x5178ae['RbFBz'](_0x39e120,_0x32f0fd);},'rVkIk':function(_0x25d0b7,_0x19667f){const _0x245b89=_0x4a308e;return _0x5178ae[_0x245b89(0x18a)](_0x25d0b7,_0x19667f);},'XosLh':_0x5178ae['ASjKN'],'XqVMn':_0x5178ae[_0x4a308e(0x17e)],'Gftsu':_0x5178ae[_0x4a308e(0x15a)]},_0x431d48={};_0x431d48['lazyEntries']=!![],yauzl[_0x4a308e(0xfc)](_0x23b51c,_0x431d48,function(_0x4abbb7,_0x50801b){const _0x259649=_0x4a308e,_0x4fba04={'ksdEv':function(_0x3b8d08,_0x41955f){const _0x254a61=a114_0x26f3;return _0x16c6c1[_0x254a61(0x158)](_0x3b8d08,_0x41955f);},'Cmjwx':function(_0x96d9a4,_0x4450bf){const _0x22b6fd=a114_0x26f3;return _0x16c6c1[_0x22b6fd(0x183)](_0x96d9a4,_0x4450bf);},'gUJYj':_0x16c6c1[_0x259649(0x122)]};_0x4abbb7&&_0x16c6c1['rVkIk'](_0x56d788,_0x4abbb7),_0x50801b[_0x259649(0x153)](),_0x50801b['on'](_0x16c6c1[_0x259649(0x17c)],_0x158cb1=>{const _0x2d5f06=_0x259649,_0x537974={'pjvuJ':function(_0x127588,_0x37ce2a){return _0x16c6c1['eykcO'](_0x127588,_0x37ce2a);},'ZUcHJ':_0x16c6c1['WAsPD']};if(/\/$/[_0x2d5f06(0x15b)](_0x158cb1[_0x2d5f06(0x149)]))_0x50801b[_0x2d5f06(0x153)]();else{const _0x2e9535=fs[_0x2d5f06(0x10b)](path[_0x2d5f06(0x138)](_0x595b97,_0x158cb1[_0x2d5f06(0x149)]));_0x50801b[_0x2d5f06(0x152)](_0x158cb1,function(_0x4b316f,_0x44bbcb){const _0x1549ff=_0x2d5f06;_0x4b316f&&_0x537974[_0x1549ff(0x169)](_0x56d788,_0x4abbb7),_0x44bbcb['on'](_0x537974['ZUcHJ'],function(){const _0xcddd9c=_0x1549ff;_0x2e9535['close'](),_0x50801b[_0xcddd9c(0x153)]();}),_0x44bbcb[_0x1549ff(0x14a)](_0x2e9535);}),_0x16c6c1[_0x2d5f06(0x140)](_0x158cb1[_0x2d5f06(0x149)],_0x18154c)&&_0x50801b[_0x2d5f06(0x128)]();}}),_0x50801b['on'](_0x16c6c1[_0x259649(0x176)],_0x2dbb1f=>{const _0x29eb39=_0x259649;_0x4fba04[_0x29eb39(0x143)](_0x56d788,_0x2dbb1f);}),_0x50801b[_0x259649(0x110)](_0x16c6c1['WAsPD'],()=>{const _0x5067fa=_0x259649,_0xb2f00f={'apMTD':function(_0x137ae0,_0x2947ac){const _0x137e5a=a114_0x26f3;return _0x4fba04[_0x137e5a(0x143)](_0x137ae0,_0x2947ac);},'kuRhk':function(_0x567b7a,_0x18377c){const _0x180770=a114_0x26f3;return _0x4fba04[_0x180770(0x139)](_0x567b7a,_0x18377c);}};fs[_0x5067fa(0x179)](_0x5a7615,_0x4fba04[_0x5067fa(0x142)],function(_0x4f669a){const _0x390266=_0x5067fa;_0x4f669a&&_0xb2f00f['apMTD'](_0x56d788,_0x4f669a),_0xb2f00f[_0x390266(0x105)](_0x311f69,_0x5a7615);}),_0x50801b[_0x5067fa(0x128)]();});});});}async['validateBinary'](_0x1c5d2e){const _0x3603b8=a114_0x31072b,_0x4b49d4={'HloBc':function(_0x58aef8,_0x171833){return _0x58aef8(_0x171833);},'uIjAf':function(_0x352f2f,_0x4baf9c,_0x21d5fc,_0x45ea20){return _0x352f2f(_0x4baf9c,_0x21d5fc,_0x45ea20);},'TeJqB':'--version','MTraL':_0x3603b8(0x112),'YAWoY':'close'},_0x34a313=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x507a1c,_0x7f0c69)=>{const _0x1eb71b=_0x3603b8,_0x12701d={'kxKrZ':function(_0x500235,_0x1119f6){const _0x4a793f=a114_0x26f3;return _0x4b49d4[_0x4a793f(0x137)](_0x500235,_0x1119f6);}},_0x55e172={};_0x55e172['env']=process[_0x1eb71b(0x14b)];const _0x460da2=_0x4b49d4[_0x1eb71b(0x123)](spawn,_0x1c5d2e,[_0x4b49d4[_0x1eb71b(0x154)]],_0x55e172);_0x460da2[_0x1eb71b(0x11c)]['on'](_0x4b49d4[_0x1eb71b(0x160)],_0x3cbbf2=>{const _0x443729=_0x1eb71b;_0x34a313[_0x443729(0x15b)](_0x3cbbf2)&&_0x12701d[_0x443729(0x12c)](_0x507a1c,!![]);}),_0x460da2['on'](_0x4b49d4[_0x1eb71b(0x156)],()=>{_0x12701d['kxKrZ'](_0x507a1c,![]);});});}#homedir(){const _0x20d185=a114_0x31072b,_0x34bfb4={};_0x34bfb4[_0x20d185(0x16c)]=function(_0x9e3986,_0x24e9b9){return _0x9e3986===_0x24e9b9;},_0x34bfb4[_0x20d185(0x11b)]=_0x20d185(0x173),_0x34bfb4['dzkYQ']=function(_0x3d4691,_0x131bcc){return _0x3d4691===_0x131bcc;},_0x34bfb4['KksMH']=_0x20d185(0x12b),_0x34bfb4[_0x20d185(0x141)]=function(_0x38c52b,_0x181a8f){return _0x38c52b+_0x181a8f;},_0x34bfb4[_0x20d185(0x187)]=function(_0x21dd4f,_0x282f0f){return _0x21dd4f===_0x282f0f;},_0x34bfb4[_0x20d185(0x13b)]=_0x20d185(0x13c),_0x34bfb4[_0x20d185(0x178)]=function(_0x24cf34,_0x4adf9f){return _0x24cf34+_0x4adf9f;},_0x34bfb4[_0x20d185(0x13f)]='/Users/',_0x34bfb4[_0x20d185(0x165)]=function(_0x5e0193,_0x551ad5){return _0x5e0193===_0x551ad5;},_0x34bfb4[_0x20d185(0x16e)]=_0x20d185(0x185),_0x34bfb4[_0x20d185(0x16d)]=function(_0x186503,_0x456ccc){return _0x186503===_0x456ccc;},_0x34bfb4[_0x20d185(0xfd)]=_0x20d185(0x15f),_0x34bfb4[_0x20d185(0x10c)]=function(_0x1d4ce7,_0x15b382){return _0x1d4ce7+_0x15b382;},_0x34bfb4[_0x20d185(0x175)]=_0x20d185(0x102),_0x34bfb4[_0x20d185(0x14f)]=function(_0x3acaa0,_0x50fc90){return _0x3acaa0||_0x50fc90;};const _0x5ced03=_0x34bfb4;if(_0x5ced03[_0x20d185(0x16c)](typeof os[_0x20d185(0x124)],_0x5ced03[_0x20d185(0x11b)]))return os[_0x20d185(0x124)]();const _0xce1f83=process[_0x20d185(0x14b)],_0x46baf6=_0xce1f83[_0x20d185(0x12e)],_0x39a743=_0xce1f83[_0x20d185(0x134)]||_0xce1f83['USER']||_0xce1f83['LNAME']||_0xce1f83[_0x20d185(0x13d)];if(_0x5ced03[_0x20d185(0x17f)](process['platform'],_0x5ced03[_0x20d185(0x170)]))return _0xce1f83['USERPROFILE']||_0x5ced03[_0x20d185(0x141)](_0xce1f83[_0x20d185(0x17b)],_0xce1f83[_0x20d185(0x117)])||_0x46baf6||null;if(_0x5ced03[_0x20d185(0x187)](process[_0x20d185(0x10a)],_0x5ced03[_0x20d185(0x13b)]))return _0x46baf6||(_0x39a743?_0x5ced03[_0x20d185(0x178)](_0x5ced03[_0x20d185(0x13f)],_0x39a743):null);if(_0x5ced03[_0x20d185(0x165)](process[_0x20d185(0x10a)],_0x5ced03[_0x20d185(0x16e)]))return _0x46baf6||(_0x5ced03['dYWua'](process[_0x20d185(0x126)](),0x0)?_0x5ced03[_0x20d185(0xfd)]:_0x39a743?_0x5ced03[_0x20d185(0x10c)](_0x5ced03[_0x20d185(0x175)],_0x39a743):null);return _0x5ced03[_0x20d185(0x14f)](_0x46baf6,null);}}module[a114_0x31072b(0x121)]=PercyBinary;
|
|
1
|
+
function a114_0x2613(){const _0x41a062=['lazyEntries','getuid','get','binaryPath','port','vfIAc','agent','obOpV','tGTLw','cUyEs','extractAndSaveBinary','https-proxy-agent','rfsUJ','data','CcnDH','701354fpSwto','AnbSc','5ticDcs','accessSync','tBhfR','nUXFg','close','function','OIyLA','getBinaryPath','LvaYA','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','ySYFF','HfuLe','pipe','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','follow-redirects','JOtUL','env','needsUpdate','W_OK','Saved\x20new\x20ETag\x20for\x20percy\x20binary','/root','HJtFx','error','EaMya','pEVCO','then','openReadStream','../logger','WrNJt','proxyPort','ABXSt','homedir','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','kagiG','kkXXW','epuAT','stdout','mkdirSync','exports','6579822xeHiCL','once','fileName','0755','1152008XdqeEi','--version','destroy','ewsdY','warn','HOMEDRIVE','Error\x20trying\x20to\x20download\x20percy\x20binary','13046560pOITuq','MDTZM','edKjS','cmZTH','gDJHt','OvDXP','/percy-osx.zip','arYJk','Failed\x20to\x20read\x20ETag\x20file:\x20','HOMEPATH','uXPKt','debug','statusCode','QRQog','win32','IiZJt','LOGNAME','nrQKK','KqIuV','chZff','validateBinary','/percy-linux.zip','MmipC','ToVVE','2401005SddFMo','USER','zfuEy','writeFileSync','VITTi','MFrtD','LNAME','nHpDI','Failed\x20to\x20save\x20ETag\x20file:\x20','R_OK','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','3475964acYUHv','readFileSync','Connection','/Users/','27DLzsLv','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','nWYbJ','If-None-Match','tmpdir','percy.exe','UojwU','download','jKfoK','linux','join','statSync','lMHBH','jFsRc','1122891DaGwFK','catch','headers','match','platform','jYGVQ','/home/','.etag','utf8','path','proxyHost','etag','useCaCertificate','readEntry','yWoAl','PmBAi','gRiCM','ajgfq','USERNAME','trim','EWgHk','bmnyz','undefined','.zip','YWwXb','UvULu','2wRMTZB','qific','jVoLX','HOME','VTRmm','test','entry','YedGJ','cwd','/percy-win.zip','AWZsp','end'];a114_0x2613=function(){return _0x41a062;};return a114_0x2613();}const a114_0x355875=a114_0x5ac9;(function(_0x358d30,_0xe39a1c){const _0x57127b=a114_0x5ac9,_0x126083=_0x358d30();while(!![]){try{const _0x41d4f8=parseInt(_0x57127b(0x162))/0x1*(-parseInt(_0x57127b(0x147))/0x2)+-parseInt(_0x57127b(0x1ae))/0x3+-parseInt(_0x57127b(0x1b9))/0x4+-parseInt(_0x57127b(0x164))/0x5*(-parseInt(_0x57127b(0x18b))/0x6)+parseInt(_0x57127b(0x12d))/0x7+parseInt(_0x57127b(0x18f))/0x8*(parseInt(_0x57127b(0x1bd))/0x9)+parseInt(_0x57127b(0x196))/0xa;if(_0x41d4f8===_0xe39a1c)break;else _0x126083['push'](_0x126083['shift']());}catch(_0x56661e){_0x126083['push'](_0x126083['shift']());}}}(a114_0x2613,0x981b5));const {https}=require(a114_0x355875(0x172)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a114_0x355875(0x136)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a114_0x355875(0x15e)),logger=require(a114_0x355875(0x17f))['winstonLogger'];function a114_0x5ac9(_0x458a6b,_0x4f60cd){const _0x261385=a114_0x2613();return a114_0x5ac9=function(_0x5ac98d,_0x3070d2){_0x5ac98d=_0x5ac98d-0x122;let _0x368705=_0x261385[_0x5ac98d];return _0x368705;},a114_0x5ac9(_0x458a6b,_0x4f60cd);}class PercyBinary{#hostOS=process[a114_0x355875(0x131)];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),'.browserstack'),process[a114_0x355875(0x14f)](),os[a114_0x355875(0x123)]()];constructor(){const _0x4db0e3=a114_0x355875,_0xfa0450={};_0xfa0450[_0x4db0e3(0x179)]='https://github.com/percy/cli/releases/latest/download',_0xfa0450[_0x4db0e3(0x14e)]=function(_0xa92ada,_0x48bd99){return _0xa92ada+_0x48bd99;},_0xfa0450[_0x4db0e3(0x17c)]=_0x4db0e3(0x19c),_0xfa0450[_0x4db0e3(0x14b)]=function(_0x127cee,_0x478d8a){return _0x127cee+_0x478d8a;},_0xfa0450[_0x4db0e3(0x12c)]=_0x4db0e3(0x150),_0xfa0450['tBhfR']=_0x4db0e3(0x124),_0xfa0450[_0x4db0e3(0x167)]=function(_0x186a73,_0x51ee96){return _0x186a73+_0x51ee96;},_0xfa0450[_0x4db0e3(0x1a9)]=_0x4db0e3(0x1ab);const _0x115019=_0xfa0450,_0x58e4=_0x115019[_0x4db0e3(0x179)];if(this.#hostOS[_0x4db0e3(0x130)](/darwin|mac os/i))this.#httpPath=_0x115019[_0x4db0e3(0x14e)](_0x58e4,_0x115019['pEVCO']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x115019[_0x4db0e3(0x14b)](_0x58e4,_0x115019[_0x4db0e3(0x12c)]),this.#binaryName=_0x115019[_0x4db0e3(0x166)]):this.#httpPath=_0x115019['nUXFg'](_0x58e4,_0x115019[_0x4db0e3(0x1a9)]);}#getAvailableDirs(){const _0x32a572=a114_0x355875,_0x1efb23={};_0x1efb23[_0x32a572(0x16f)]=function(_0x40f0ba,_0x2d33ca){return _0x40f0ba<_0x2d33ca;},_0x1efb23[_0x32a572(0x163)]=_0x32a572(0x195);const _0x39db1f=_0x1efb23;for(var _0x2fa158=0x0;_0x39db1f['HfuLe'](_0x2fa158,this.#orderedPaths['length']);_0x2fa158++){var _0x496e23=this.#orderedPaths[_0x2fa158];if(this.#makePath(_0x496e23))return _0x496e23;}throw new Error(_0x39db1f[_0x32a572(0x163)]);}#makePath(_0x3fc6be){const _0x414d52=a114_0x355875;try{return _0x3fc6be&&!this.#checkPath(_0x3fc6be)&&fs[_0x414d52(0x189)](_0x3fc6be),!![];}catch{return![];}}#checkPath(_0x346a1f,_0x2e53e3){const _0x3fb3e2=a114_0x355875,_0x6d5018={};_0x6d5018[_0x3fb3e2(0x16c)]=function(_0x4c5e28,_0x48ae6e){return _0x4c5e28|_0x48ae6e;},_0x6d5018[_0x3fb3e2(0x158)]=function(_0x510fce,_0x43f593){return _0x510fce!==_0x43f593;},_0x6d5018[_0x3fb3e2(0x185)]=_0x3fb3e2(0x143);const _0x268e42=_0x6d5018;_0x2e53e3=_0x2e53e3||_0x268e42['LvaYA'](fs[_0x3fb3e2(0x1b7)],fs[_0x3fb3e2(0x176)]);try{return fs['accessSync'](_0x346a1f,_0x2e53e3),!![];}catch(_0x139958){if(_0x268e42[_0x3fb3e2(0x158)](typeof fs[_0x3fb3e2(0x165)],_0x268e42[_0x3fb3e2(0x185)]))return![];try{return fs[_0x3fb3e2(0x12a)](_0x346a1f),!![];}catch(_0x38eeb9){return![];}}}#getETagPath(_0x237b7d){const _0x342adc=a114_0x355875;return path[_0x342adc(0x129)](_0x237b7d,this.#binaryName+_0x342adc(0x134));}#loadETag(_0x15c6ab){const _0x125bdc=a114_0x355875,_0xa25ae7={};_0xa25ae7[_0x125bdc(0x199)]=_0x125bdc(0x135);const _0x15a511=_0xa25ae7,_0x3435d6=this.#getETagPath(_0x15c6ab);if(this.#checkPath(_0x3435d6))try{return fs[_0x125bdc(0x1ba)](_0x3435d6,_0x15a511['cmZTH'])[_0x125bdc(0x140)]();}catch(_0x557238){logger[_0x125bdc(0x193)](_0x125bdc(0x19e)+_0x557238);}return null;}#saveETag(_0x1966c0,_0x5ceb0f){const _0x1812f0=a114_0x355875,_0x1e3d29={};_0x1e3d29[_0x1812f0(0x15f)]=_0x1812f0(0x177);const _0x2b4355=_0x1e3d29;if(!_0x5ceb0f)return;try{const _0x1af4ad=this.#getETagPath(_0x1966c0);fs[_0x1812f0(0x1b1)](_0x1af4ad,_0x5ceb0f),logger[_0x1812f0(0x1a1)](_0x2b4355['rfsUJ']);}catch(_0x455b63){logger['warn'](_0x1812f0(0x1b6)+_0x455b63);}}async #handleBinaryDownload(_0xa12ae1,_0x3ecd91,_0x4ee522){const _0x33b298=a114_0x355875,_0x5b2a82={};_0x5b2a82[_0x33b298(0x180)]=_0x33b298(0x1be);const _0x18ff24=_0x5b2a82,_0x3af7a0=await this[_0x33b298(0x1aa)](_0xa12ae1['binaryPath']);if(!_0x3af7a0){logger[_0x33b298(0x17a)](_0x18ff24[_0x33b298(0x180)]);const _0x1f4e95=await this['download'](_0x3ecd91,_0x4ee522);return _0x1f4e95[_0x33b298(0x156)];}return _0xa12ae1['binaryPath'];}async[a114_0x355875(0x16b)](_0x2ea4fc){const _0x83def8=a114_0x355875,_0x5b8122={};_0x5b8122[_0x83def8(0x125)]=_0x83def8(0x184),_0x5b8122[_0x83def8(0x15c)]=_0x83def8(0x16d);const _0x466f9e=_0x5b8122,_0x3fd4bf=this.#getAvailableDirs(),_0x339111=path[_0x83def8(0x129)](_0x3fd4bf,this.#binaryName);if(this.#checkPath(_0x339111,fs['X_OK'])){const _0x5320eb=this.#loadETag(_0x3fd4bf);if(_0x5320eb)try{const _0x53a2ce=await this[_0x83def8(0x126)](_0x2ea4fc,_0x3fd4bf,_0x5320eb);if(!_0x53a2ce['needsUpdate'])return logger[_0x83def8(0x1a1)](_0x466f9e[_0x83def8(0x125)]),_0x339111;return logger[_0x83def8(0x1a1)](_0x466f9e[_0x83def8(0x15c)]),await this.#handleBinaryDownload(_0x53a2ce,_0x2ea4fc,_0x3fd4bf);}catch(_0x330ddf){return logger['warn'](_0x83def8(0x1b8)+_0x330ddf),_0x339111;}}const _0x10383f=await this['download'](_0x2ea4fc,_0x3fd4bf);return await this.#handleBinaryDownload(_0x10383f,_0x2ea4fc,_0x3fd4bf);}['download'](_0x167b3,_0x21b85c,_0x56bcf6=null){const _0x57c627=a114_0x355875,_0x566533={'OGghv':function(_0x556060,_0x1a9218){return _0x556060(_0x1a9218);},'PmBAi':function(_0x3a5414,_0x6245f1){return _0x3a5414===_0x6245f1;},'JOtUL':function(_0xcd6364,_0x2fe658){return _0xcd6364(_0x2fe658);},'ABXSt':_0x57c627(0x17a),'ajgfq':_0x57c627(0x168),'jKfoK':function(_0x5253ac,_0x95e19c){return _0x5253ac(_0x95e19c);},'KDsEz':function(_0xba5698,_0xa9aad1){return _0xba5698+_0xa9aad1;},'ySYFF':_0x57c627(0x144)};_0x21b85c&&!this.#checkPath(_0x21b85c)&&fs['mkdirSync'](_0x21b85c);const _0x1ca933=this.#binaryName,_0x1a797f=path[_0x57c627(0x129)](_0x21b85c,_0x566533['KDsEz'](_0x1ca933,_0x566533[_0x57c627(0x16e)])),_0x10f231=fs['createWriteStream'](_0x1a797f),_0x10905e=url['parse'](this.#httpPath);if(_0x167b3[_0x57c627(0x137)]&&_0x167b3[_0x57c627(0x181)]){const _0x1ddd34={};_0x1ddd34['host']=_0x167b3[_0x57c627(0x137)],_0x1ddd34[_0x57c627(0x157)]=_0x167b3[_0x57c627(0x181)],_0x10905e[_0x57c627(0x159)]=new HttpsProxyAgent(_0x1ddd34);}if(_0x167b3[_0x57c627(0x139)])try{_0x10905e['ca']=fs['readFileSync'](_0x167b3[_0x57c627(0x139)]);}catch(_0x32ce0f){logger['error'](_0x57c627(0x171)+_0x32ce0f);}if(_0x56bcf6){const _0xddf51={};_0xddf51[_0x57c627(0x122)]=_0x56bcf6,_0xddf51[_0x57c627(0x1bb)]=_0x566533[_0x57c627(0x13e)],_0x10905e[_0x57c627(0x12f)]=_0xddf51;}else{const _0x7055d7={};_0x7055d7['Connection']=_0x566533[_0x57c627(0x13e)],_0x10905e['headers']=_0x7055d7;}return new Promise((_0x477757,_0x5c2cd7)=>{const _0x35a831=_0x57c627,_0x491a1e={'YWwXb':function(_0x2ed295,_0x273c95){const _0x34af15=a114_0x5ac9;return _0x566533[_0x34af15(0x127)](_0x2ed295,_0x273c95);},'sdISm':function(_0x409d01,_0x522cd1){const _0xe66476=a114_0x5ac9;return _0x566533[_0xe66476(0x127)](_0x409d01,_0x522cd1);}};https[_0x35a831(0x155)](_0x10905e,_0x107da7=>{const _0x1de56a=_0x35a831,_0x3c9ccd={'OIyLA':function(_0x5d22bf,_0x16b496){return _0x566533['OGghv'](_0x5d22bf,_0x16b496);}};if(_0x56bcf6&&_0x566533[_0x1de56a(0x13c)](_0x107da7[_0x1de56a(0x1a2)],0x130)){_0x10f231[_0x1de56a(0x191)]();const _0x214a37={};_0x214a37[_0x1de56a(0x175)]=![],_0x566533[_0x1de56a(0x173)](_0x477757,_0x214a37);return;}const _0x20042c=_0x107da7['headers'][_0x1de56a(0x138)];_0x20042c&&this.#saveETag(_0x21b85c,_0x20042c),_0x107da7[_0x1de56a(0x170)](_0x10f231),_0x107da7['on'](_0x566533[_0x1de56a(0x182)],function(_0x484b64){const _0x343ed8=_0x1de56a;logger[_0x343ed8(0x17a)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x484b64),_0x3c9ccd[_0x343ed8(0x16a)](_0x5c2cd7,_0x484b64);}),_0x10f231['on'](_0x566533[_0x1de56a(0x182)],function(_0x390b6c){const _0x1f4a28=_0x1de56a;logger[_0x1f4a28(0x17a)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x390b6c),_0x491a1e[_0x1f4a28(0x145)](_0x5c2cd7,_0x390b6c);}),_0x10f231['on'](_0x566533['ajgfq'],()=>{const _0xf3f3ff=_0x1de56a;this[_0xf3f3ff(0x15d)](_0x1a797f,_0x21b85c)[_0xf3f3ff(0x17d)](_0x2e7e5b=>_0x477757({'needsUpdate':!![],'binaryPath':_0x2e7e5b}))[_0xf3f3ff(0x12e)](_0x5c2cd7);});})['on'](_0x566533[_0x35a831(0x182)],function(_0x1cc748){const _0x5b6db6=_0x35a831;logger[_0x5b6db6(0x17a)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x1cc748),_0x491a1e['sdISm'](_0x5c2cd7,_0x1cc748);});});}[a114_0x355875(0x15d)](_0x4da21e,_0x1b6aea){const _0x49d8d7=a114_0x355875,_0xafdb0={'MDTZM':function(_0x5cde17,_0x1a5208){return _0x5cde17(_0x1a5208);},'IiZJt':_0x49d8d7(0x18e),'edKjS':function(_0x44577f,_0x14e79f){return _0x44577f(_0x14e79f);},'uXPKt':_0x49d8d7(0x152),'yWoAl':function(_0x40ffe4,_0x55c5e7){return _0x40ffe4===_0x55c5e7;},'KqIuV':_0x49d8d7(0x14d),'jVoLX':_0x49d8d7(0x17a)},_0x3f18f9=this.#binaryName,_0x1dae7b=path[_0x49d8d7(0x129)](_0x1b6aea,_0x3f18f9);return new Promise((_0x3ae4fa,_0x5e9cae)=>{const _0x30d3c1=_0x49d8d7,_0x101f3a={'OvDXP':function(_0x445c52,_0x1ce149){const _0x2c9648=a114_0x5ac9;return _0xafdb0[_0x2c9648(0x197)](_0x445c52,_0x1ce149);},'ieSJh':_0xafdb0[_0x30d3c1(0x1a5)],'arYJk':function(_0x54ffbc,_0x5b215c){const _0x4fb874=_0x30d3c1;return _0xafdb0[_0x4fb874(0x198)](_0x54ffbc,_0x5b215c);},'jYGVQ':_0xafdb0[_0x30d3c1(0x1a0)],'DgOge':function(_0x5679e6,_0x2bcfeb){const _0x5be5c0=_0x30d3c1;return _0xafdb0[_0x5be5c0(0x13b)](_0x5679e6,_0x2bcfeb);},'CcnDH':_0xafdb0[_0x30d3c1(0x1a8)],'AWZsp':_0xafdb0[_0x30d3c1(0x149)]},_0x5c2ffe={};_0x5c2ffe[_0x30d3c1(0x153)]=!![],yauzl['open'](_0x4da21e,_0x5c2ffe,function(_0x403911,_0xe6db6a){const _0x3facf5=_0x30d3c1,_0x3e6b88={'nHpDI':function(_0x2ddcf4,_0x2c7eb1){const _0x18df15=a114_0x5ac9;return _0x101f3a[_0x18df15(0x19d)](_0x2ddcf4,_0x2c7eb1);},'MmipC':_0x101f3a[_0x3facf5(0x132)],'obOpV':function(_0x442e38,_0x29fed5){return _0x101f3a['DgOge'](_0x442e38,_0x29fed5);},'kkXXW':function(_0x5220a2,_0x5a47e6){const _0x1485a5=_0x3facf5;return _0x101f3a[_0x1485a5(0x19d)](_0x5220a2,_0x5a47e6);}};_0x403911&&_0x101f3a['arYJk'](_0x5e9cae,_0x403911),_0xe6db6a[_0x3facf5(0x13a)](),_0xe6db6a['on'](_0x101f3a[_0x3facf5(0x161)],_0x50d5b5=>{const _0x6f86cc=_0x3facf5;if(/\/$/[_0x6f86cc(0x14c)](_0x50d5b5['fileName']))_0xe6db6a[_0x6f86cc(0x13a)]();else{const _0x3a3917=fs['createWriteStream'](path[_0x6f86cc(0x129)](_0x1b6aea,_0x50d5b5[_0x6f86cc(0x18d)]));_0xe6db6a[_0x6f86cc(0x17e)](_0x50d5b5,function(_0x5a8507,_0x148f02){const _0x2521f5=_0x6f86cc;_0x5a8507&&_0x3e6b88[_0x2521f5(0x1b5)](_0x5e9cae,_0x403911),_0x148f02['on'](_0x3e6b88[_0x2521f5(0x1ac)],function(){const _0x3a4978=_0x2521f5;_0x3a3917[_0x3a4978(0x168)](),_0xe6db6a[_0x3a4978(0x13a)]();}),_0x148f02[_0x2521f5(0x170)](_0x3a3917);}),_0x3e6b88[_0x6f86cc(0x15a)](_0x50d5b5[_0x6f86cc(0x18d)],_0x3f18f9)&&_0xe6db6a[_0x6f86cc(0x168)]();}}),_0xe6db6a['on'](_0x101f3a[_0x3facf5(0x151)],_0x1334b8=>{const _0x3ca687=_0x3facf5;_0x101f3a[_0x3ca687(0x19b)](_0x5e9cae,_0x1334b8);}),_0xe6db6a[_0x3facf5(0x18c)](_0x101f3a[_0x3facf5(0x132)],()=>{const _0x411a29=_0x3facf5;fs['chmod'](_0x1dae7b,_0x101f3a['ieSJh'],function(_0x47a98a){const _0x28630a=a114_0x5ac9;_0x47a98a&&_0x3e6b88[_0x28630a(0x186)](_0x5e9cae,_0x47a98a),_0x3e6b88[_0x28630a(0x1b5)](_0x3ae4fa,_0x1dae7b);}),_0xe6db6a[_0x411a29(0x168)]();});});});}async[a114_0x355875(0x1aa)](_0x5a7779){const _0x4e423a=a114_0x355875,_0x55cc32={'nrQKK':function(_0x499ef1,_0x4e7864){return _0x499ef1(_0x4e7864);},'EaMya':function(_0x4c0294,_0xa11853){return _0x4c0294(_0xa11853);},'UvULu':function(_0x1347aa,_0x48c1af,_0x257fc9,_0x3a4641){return _0x1347aa(_0x48c1af,_0x257fc9,_0x3a4641);},'epuAT':_0x4e423a(0x190),'ToVVE':_0x4e423a(0x160),'nWYbJ':'close'},_0x9d9b8=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x57a072,_0x29c11c)=>{const _0x376d96=_0x4e423a,_0x448abf={'zfuEy':function(_0x396d5f,_0x382934){const _0x2a70e1=a114_0x5ac9;return _0x55cc32[_0x2a70e1(0x17b)](_0x396d5f,_0x382934);}},_0x452c87={};_0x452c87[_0x376d96(0x174)]=process[_0x376d96(0x174)];const _0x1fa4e6=_0x55cc32[_0x376d96(0x146)](spawn,_0x5a7779,[_0x55cc32[_0x376d96(0x187)]],_0x452c87);_0x1fa4e6[_0x376d96(0x188)]['on'](_0x55cc32[_0x376d96(0x1ad)],_0x5100bf=>{const _0x5a4ab5=_0x376d96;_0x9d9b8['test'](_0x5100bf)&&_0x55cc32[_0x5a4ab5(0x1a7)](_0x57a072,!![]);}),_0x1fa4e6['on'](_0x55cc32[_0x376d96(0x1bf)],()=>{const _0x3a3b5b=_0x376d96;_0x448abf[_0x3a3b5b(0x1b0)](_0x57a072,![]);});});}#homedir(){const _0x4f237e=a114_0x355875,_0x231747={};_0x231747[_0x4f237e(0x142)]=function(_0x2fafa5,_0x3e227d){return _0x2fafa5===_0x3e227d;},_0x231747[_0x4f237e(0x19a)]=_0x4f237e(0x169),_0x231747['tGTLw']=_0x4f237e(0x1a4),_0x231747[_0x4f237e(0x1b3)]=function(_0x48d402,_0x2f1be3){return _0x48d402+_0x2f1be3;},_0x231747[_0x4f237e(0x1a3)]=function(_0x2fa72d,_0x4f4838){return _0x2fa72d===_0x4f4838;},_0x231747[_0x4f237e(0x192)]='darwin',_0x231747[_0x4f237e(0x141)]=_0x4f237e(0x1bc),_0x231747[_0x4f237e(0x13d)]=_0x4f237e(0x128),_0x231747['IsaNB']=_0x4f237e(0x178),_0x231747['VITTi']=function(_0x19f420,_0x261809){return _0x19f420+_0x261809;},_0x231747[_0x4f237e(0x148)]=_0x4f237e(0x133),_0x231747[_0x4f237e(0x12b)]=function(_0x29f23b,_0x402e71){return _0x29f23b||_0x402e71;};const _0x1bb969=_0x231747;if(_0x1bb969[_0x4f237e(0x142)](typeof os[_0x4f237e(0x183)],_0x1bb969[_0x4f237e(0x19a)]))return os[_0x4f237e(0x183)]();const _0xd58178=process['env'],_0x5d83e7=_0xd58178[_0x4f237e(0x14a)],_0x150341=_0xd58178[_0x4f237e(0x1a6)]||_0xd58178[_0x4f237e(0x1af)]||_0xd58178[_0x4f237e(0x1b4)]||_0xd58178[_0x4f237e(0x13f)];if(_0x1bb969['bmnyz'](process['platform'],_0x1bb969[_0x4f237e(0x15b)]))return _0xd58178['USERPROFILE']||_0x1bb969[_0x4f237e(0x1b3)](_0xd58178[_0x4f237e(0x194)],_0xd58178[_0x4f237e(0x19f)])||_0x5d83e7||null;if(_0x1bb969[_0x4f237e(0x1a3)](process[_0x4f237e(0x131)],_0x1bb969[_0x4f237e(0x192)]))return _0x5d83e7||(_0x150341?_0x1bb969[_0x4f237e(0x1b3)](_0x1bb969[_0x4f237e(0x141)],_0x150341):null);if(_0x1bb969[_0x4f237e(0x142)](process[_0x4f237e(0x131)],_0x1bb969[_0x4f237e(0x13d)]))return _0x5d83e7||(_0x1bb969['bmnyz'](process[_0x4f237e(0x154)](),0x0)?_0x1bb969['IsaNB']:_0x150341?_0x1bb969[_0x4f237e(0x1b2)](_0x1bb969[_0x4f237e(0x148)],_0x150341):null);return _0x1bb969['lMHBH'](_0x5d83e7,null);}}module[a114_0x355875(0x18a)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a115_0x49a1(_0xfdbf2a,_0x2adfa5){var _0x5d4eb1=a115_0x5d4e();return a115_0x49a1=function(_0x49a10f,_0x39ba53){_0x49a10f=_0x49a10f-0xe8;var _0x146ba8=_0x5d4eb1[_0x49a10f];return _0x146ba8;},a115_0x49a1(_0xfdbf2a,_0x2adfa5);}var a115_0x3d6c12=a115_0x49a1;(function(_0x3b25d6,_0x4b5ef1){var _0x257be7=a115_0x49a1,_0x2d61db=_0x3b25d6();while(!![]){try{var _0x5d0ec9=-parseInt(_0x257be7(0xf3))/0x1*(parseInt(_0x257be7(0xf5))/0x2)+parseInt(_0x257be7(0xe9))/0x3*(-parseInt(_0x257be7(0xf6))/0x4)+parseInt(_0x257be7(0xf7))/0x5*(-parseInt(_0x257be7(0xf4))/0x6)+-parseInt(_0x257be7(0xef))/0x7*(parseInt(_0x257be7(0xee))/0x8)+-parseInt(_0x257be7(0xe8))/0x9+-parseInt(_0x257be7(0xf1))/0xa+parseInt(_0x257be7(0xeb))/0xb*(parseInt(_0x257be7(0xea))/0xc);if(_0x5d0ec9===_0x4b5ef1)break;else _0x2d61db['push'](_0x2d61db['shift']());}catch(_0x2f5b45){_0x2d61db['push'](_0x2d61db['shift']());}}}(a115_0x5d4e,0x8d7a7));function a115_0x5d4e(){var _0x2eed43=['1212935TOdgoo','6130980HaXKLM','3JBXAkp','36OnvrHP','19018714FqWIZf','exports','increment','169352mbVEPq','322OHTYBK','get','10856770UunjQr','getName','9352IhNobs','18qSzKjy','2QmsSzd','4518572xfFrRg'];a115_0x5d4e=function(){return _0x2eed43;};return a115_0x5d4e();}class PercyCaptureMap{#map={};[a115_0x3d6c12(0xed)](_0x2eb35d,_0x58d414){!this.#map[_0x2eb35d]&&(this.#map[_0x2eb35d]={}),!this.#map[_0x2eb35d][_0x58d414]&&(this.#map[_0x2eb35d][_0x58d414]=0x0),this.#map[_0x2eb35d][_0x58d414]++;}[a115_0x3d6c12(0xf2)](_0xfa7ea6,_0x46afa8){var _0x201c2f=a115_0x3d6c12;return _0xfa7ea6+'-'+_0x46afa8+'-'+this[_0x201c2f(0xf0)](_0xfa7ea6,_0x46afa8);}[a115_0x3d6c12(0xf0)](_0xb6c6b9,_0x589080){if(!this.#map[_0xb6c6b9])return 0x0;if(!this.#map[_0xb6c6b9][_0x589080])return 0x0;return this.#map[_0xb6c6b9][_0x589080];}}module[a115_0x3d6c12(0xec)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a116_0x5f501b=a116_0x221d;(function(_0x431713,_0x4b1c4d){var _0x3bfada=a116_0x221d,_0x213ea3=_0x431713();while(!![]){try{var _0x4c3ebe=-parseInt(_0x3bfada(0x101))/0x1+parseInt(_0x3bfada(0xf8))/0x2+-parseInt(_0x3bfada(0xfe))/0x3+-parseInt(_0x3bfada(0xfd))/0x4+-parseInt(_0x3bfada(0x108))/0x5*(parseInt(_0x3bfada(0xfc))/0x6)+-parseInt(_0x3bfada(0xf7))/0x7*(parseInt(_0x3bfada(0xfa))/0x8)+parseInt(_0x3bfada(0xfb))/0x9;if(_0x4c3ebe===_0x4b1c4d)break;else _0x213ea3['push'](_0x213ea3['shift']());}catch(_0x4625ba){_0x213ea3['push'](_0x213ea3['shift']());}}}(a116_0x52ba,0x4389f));var a116_0x936d6f={};a116_0x936d6f[a116_0x5f501b(0x105)]=[a116_0x5f501b(0xf9)],a116_0x936d6f['element']=['click',a116_0x5f501b(0x104)];function a116_0x221d(_0xa477bf,_0x55066f){var _0x52ba74=a116_0x52ba();return a116_0x221d=function(_0x221dac,_0x548c4f){_0x221dac=_0x221dac-0xf7;var _0x394493=_0x52ba74[_0x221dac];return _0x394493;},a116_0x221d(_0xa477bf,_0x55066f);}var a116_0x333795={};a116_0x333795['driver']=[a116_0x5f501b(0xf9)];var a116_0x141bf4={};a116_0x141bf4[a116_0x5f501b(0x103)]=['click'];function a116_0x52ba(){var _0x19dab5=['auto','element','sendKeys','driver','click','exports','155gkyBze','14uFmpeD','956268AyBDLn','takeScreenshot','1049008rTRWir','15845688kAzmix','74730PKkxsm','1808732eoDzsR','1244163lBPgoJ','manual','testcase','446866zQENSJ'];a116_0x52ba=function(){return _0x19dab5;};return a116_0x52ba();}var a116_0x327a7d={};a116_0x327a7d[a116_0x5f501b(0x102)]=a116_0x936d6f,a116_0x327a7d['screenshot']=a116_0x333795,a116_0x327a7d[a116_0x5f501b(0x106)]=a116_0x141bf4,a116_0x327a7d[a116_0x5f501b(0x100)]={},a116_0x327a7d[a116_0x5f501b(0xff)]={},module[a116_0x5f501b(0x107)]=a116_0x327a7d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x456230=a117_0xb801;function a117_0x4c6f(){const _0x4fa8e3=['6009460kHGMrd','PgJmh','length','Unsupported\x20driver\x20for\x20percy','2429xNIigu','browserstackPercyBestPlatform','../../helpers/testhub/utils','3467480egGBLW','102KEZWNw','1866AvAFvw','lLSUZ','9CNicbk','screenshotApp','testCase','SoaFd','apply','SCREENSHOT_APP','../logger','SNAPSHOT','browserstackPlatformIndex','../performance/performance-tester','KRVPe','screenshot','name','error','4626555AKQQyR','snapshot','@percy/selenium-webdriver','uuid','DivrR','thTestCaseExecutionId','1496148PNJEoL','measure','3451HoGhZF','winstonLogger','platformIndex','5216570GGvwVv','SCREENSHOT'];a117_0x4c6f=function(){return _0x4fa8e3;};return a117_0x4c6f();}(function(_0x351767,_0x97db){const _0x26206b=a117_0xb801,_0x1446f4=_0x351767();while(!![]){try{const _0x1589b5=parseInt(_0x26206b(0x1eb))/0x1*(-parseInt(_0x26206b(0x1ef))/0x2)+parseInt(_0x26206b(0x1da))/0x3+parseInt(_0x26206b(0x1e0))/0x4+-parseInt(_0x26206b(0x1e7))/0x5+-parseInt(_0x26206b(0x1f0))/0x6*(-parseInt(_0x26206b(0x1e2))/0x7)+parseInt(_0x26206b(0x1ee))/0x8*(-parseInt(_0x26206b(0x1f2))/0x9)+parseInt(_0x26206b(0x1e5))/0xa;if(_0x1589b5===_0x97db)break;else _0x1446f4['push'](_0x1446f4['shift']());}catch(_0x1c32cf){_0x1446f4['push'](_0x1446f4['shift']());}}}(a117_0x4c6f,0xcb1fc));function a117_0xb801(_0x37dabc,_0x557654){const _0x4c6fbc=a117_0x4c6f();return a117_0xb801=function(_0xb80135,_0x568bf0){_0xb80135=_0xb80135-0x1cd;let _0x1a4f75=_0x4c6fbc[_0xb80135];return _0x1a4f75;},a117_0xb801(_0x37dabc,_0x557654);}const tryRequire=function(_0x5c0916,_0x7e5e4c){const _0x24203c={'ZBcYP':function(_0x3c163c,_0x3ae397){return _0x3c163c(_0x3ae397);}};try{return _0x24203c['ZBcYP'](require,_0x5c0916);}catch{return _0x7e5e4c;}},percySnapshot=tryRequire(a117_0x456230(0x1dc),null),{percyScreenshot}=tryRequire(a117_0x456230(0x1dc),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a117_0x456230(0x1ed)),PerformanceTester=require(a117_0x456230(0x1d5)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a117_0x456230(0x1d2))[a117_0x456230(0x1e3)];percySnapshot&&(exports[a117_0x456230(0x1db)]=async function(){const _0x4e7549=a117_0x456230,_0x2a9f23={'SoaFd':function(_0x44ad22,_0x51828f){return _0x44ad22!==_0x51828f;},'lLSUZ':function(_0x9ce678,_0xb76e52){return _0x9ce678>=_0xb76e52;},'DivrR':function(_0x78f188){return _0x78f188();}};if(global[_0x4e7549(0x1d4)]&&_0x2a9f23[_0x4e7549(0x1cf)](global['browserstackPlatformIndex'],global[_0x4e7549(0x1ec)]))return;const _0x55aaa9=_0x2a9f23[_0x4e7549(0x1f1)](arguments[_0x4e7549(0x1e9)],0x2)?arguments[0x1]:'',_0x41f5b7=_0x2a9f23[_0x4e7549(0x1de)](getCurrentTestData),_0x191b09={};return _0x191b09[_0x4e7549(0x1d8)]=_0x55aaa9,_0x191b09['testCase']=_0x41f5b7[_0x4e7549(0x1d8)]||'',_0x191b09[_0x4e7549(0x1df)]=_0x41f5b7['uuid']||'',_0x191b09[_0x4e7549(0x1e4)]=global[_0x4e7549(0x1d4)],await PerformanceTester[_0x4e7549(0x1e1)](PerformanceEvents[_0x4e7549(0x1d3)],()=>percySnapshot[_0x4e7549(0x1d0)](null,arguments),_0x191b09);});percyScreenshot?exports[a117_0x456230(0x1d7)]=async function(){const _0x6b5213=a117_0x456230,_0x5a9247={'PgJmh':function(_0x2048ee,_0x287c5e){return _0x2048ee>=_0x287c5e;},'KRVPe':function(_0x1079b2){return _0x1079b2();}},_0x175412=_0x5a9247[_0x6b5213(0x1e8)](arguments['length'],0x2)?arguments[0x1]:'',_0x1f8f7e=_0x5a9247[_0x6b5213(0x1d6)](getCurrentTestData),_0x4d6599={};return _0x4d6599['name']=_0x175412,_0x4d6599[_0x6b5213(0x1ce)]=_0x1f8f7e[_0x6b5213(0x1d8)]||'',_0x4d6599[_0x6b5213(0x1df)]=_0x1f8f7e['uuid']||'',_0x4d6599['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x6b5213(0x1e1)](PerformanceEvents[_0x6b5213(0x1e6)],()=>percyScreenshot['apply'](null,arguments),_0x4d6599);}:exports[a117_0x456230(0x1d7)]=()=>{const _0x3b49ec=a117_0x456230,_0x171fd5={};_0x171fd5['VyJzh']=_0x3b49ec(0x1ea);const _0xf1fca4=_0x171fd5;logger[_0x3b49ec(0x1d9)](_0xf1fca4['VyJzh']);};exports[a117_0x456230(0x1cd)]=async function(){const _0x8ee3b4=a117_0x456230,_0x524f0e={'VgDCY':function(_0x57ebc5,_0x593ae7){return _0x57ebc5>=_0x593ae7;},'vAZgJ':function(_0x196655){return _0x196655();}},_0x294e2c=_0x524f0e['VgDCY'](arguments[_0x8ee3b4(0x1e9)],0x2)?arguments[0x1]:'',_0x4cf8e5=_0x524f0e['vAZgJ'](getCurrentTestData),_0x9faa14={};return _0x9faa14[_0x8ee3b4(0x1d8)]=_0x294e2c,_0x9faa14[_0x8ee3b4(0x1ce)]=_0x4cf8e5[_0x8ee3b4(0x1d8)]||'',_0x9faa14[_0x8ee3b4(0x1df)]=_0x4cf8e5[_0x8ee3b4(0x1dd)]||'',_0x9faa14[_0x8ee3b4(0x1e4)]=global[_0x8ee3b4(0x1d4)],await PerformanceTester[_0x8ee3b4(0x1e1)](PerformanceEvents[_0x8ee3b4(0x1d1)],()=>percyAppScreenshot[_0x8ee3b4(0x1d0)](null,arguments),_0x9faa14);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a118_0x25f933=a118_0x1261;function a118_0x1261(_0x40848e,_0xb11162){var _0x217b4b=a118_0x217b();return a118_0x1261=function(_0x1261cc,_0x12e253){_0x1261cc=_0x1261cc-0xbb;var _0x3223eb=_0x217b4b[_0x1261cc];return _0x3223eb;},a118_0x1261(_0x40848e,_0xb11162);}(function(_0xd05f12,_0x1fe96b){var _0x4bd799=a118_0x1261,_0x52f465=_0xd05f12();while(!![]){try{var _0xba229=parseInt(_0x4bd799(0xbe))/0x1*(-parseInt(_0x4bd799(0xc7))/0x2)+parseInt(_0x4bd799(0xc5))/0x3+parseInt(_0x4bd799(0xc3))/0x4+parseInt(_0x4bd799(0xbd))/0x5*(parseInt(_0x4bd799(0xc0))/0x6)+parseInt(_0x4bd799(0xbf))/0x7*(-parseInt(_0x4bd799(0xbb))/0x8)+-parseInt(_0x4bd799(0xc1))/0x9+-parseInt(_0x4bd799(0xc4))/0xa*(parseInt(_0x4bd799(0xbc))/0xb);if(_0xba229===_0x1fe96b)break;else _0x52f465['push'](_0x52f465['shift']());}catch(_0x25a931){_0x52f465['push'](_0x52f465['shift']());}}}(a118_0x217b,0xedb09),module[a118_0x25f933(0xc6)]=require(a118_0x25f933(0xc2)));function a118_0x217b(){var _0x2920a9=['500QpnDsc','3246846YBrwxq','exports','1797178BSNKjP','67856zXfWkZ','193963aVJTkr','5qKTxzr','1MwKVwM','133Cbaazo','3336348JcNoDt','3515220dgQine','./Percy','6668856iqLCwy'];a118_0x217b=function(){return _0x2920a9;};return a118_0x217b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a119_0x4cca(_0x5ca4a1,_0x428c81){const _0x320ff7=a119_0x320f();return a119_0x4cca=function(_0x4cca5f,_0x1b1b5a){_0x4cca5f=_0x4cca5f-0x99;let _0x3ec6c2=_0x320ff7[_0x4cca5f];return _0x3ec6c2;},a119_0x4cca(_0x5ca4a1,_0x428c81);}const a119_0x21b10a=a119_0x4cca;(function(_0x144c75,_0x5eb49a){const _0x4a1c50=a119_0x4cca,_0x304e47=_0x144c75();while(!![]){try{const _0x1648f8=-parseInt(_0x4a1c50(0xcc))/0x1*(-parseInt(_0x4a1c50(0xc2))/0x2)+-parseInt(_0x4a1c50(0xa6))/0x3*(parseInt(_0x4a1c50(0xb4))/0x4)+-parseInt(_0x4a1c50(0xab))/0x5+parseInt(_0x4a1c50(0xaa))/0x6*(parseInt(_0x4a1c50(0xd2))/0x7)+-parseInt(_0x4a1c50(0xd8))/0x8+parseInt(_0x4a1c50(0x9e))/0x9*(-parseInt(_0x4a1c50(0xd9))/0xa)+parseInt(_0x4a1c50(0xcf))/0xb;if(_0x1648f8===_0x5eb49a)break;else _0x304e47['push'](_0x304e47['shift']());}catch(_0x1f9512){_0x304e47['push'](_0x304e47['shift']());}}}(a119_0x320f,0xf276e));function a119_0x320f(){const _0x46a1d=['GMRbH','../performance/constants','AUTO_CAPTURE','browser','21eYbwxy','app','manual','24213189zjDUEI','STOP','debug','42DMcjcZ','./Percy','init','safari','forEach','Stopping\x20percy','13873488jYNapL','7131710hfVeFG','percy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','error','yTDnt','stopPercy','YaiBP','START','browserstackSessionName','getDriver','dIIQS','../performance/performance-tester','platforms','prototype','browserStackPercyOptions','getName','9TcynCP','overrideXforPercy','gZuIz','./PercyCaptureMap','percyCaptureMode','start','patch','browserstackPercyMap','3861444NjZZnq','Error\x20patching\x20','apply','yYDLC','1552002EaQjFZ','1802555QIKWvb','LtgWC','toLowerCase','patchDriverPercy','driver','isUndefined','browserName','./PercyCaptureModes','Starting\x20percy','4IwSlZv','percyAutoCapture','increment','winstonLogger','getPercyOptions','browserstackPercyBestPlatform','startPercy','../logger','./PercySDK','firefox','Neilz','SIATs','nestedKeyValue','screenshot','127138DCDIdn','element','heVbK','measureWrapper','getBestPlatformForPercySnapshot','screenshotApp'];a119_0x320f=function(){return _0x46a1d;};return a119_0x320f();}const Percy=require(a119_0x21b10a(0xd3)),PercySDK=require(a119_0x21b10a(0xbc)),PercyCaptureModes=require(a119_0x21b10a(0xb2)),PercyCaptureMap=require(a119_0x21b10a(0xa1)),logger=require(a119_0x21b10a(0xbb))[a119_0x21b10a(0xb7)],helper=require('../helper'),PerformanceTester=require(a119_0x21b10a(0x99)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x21b10a(0xc9));exports[a119_0x21b10a(0xba)]=PerformanceTester[a119_0x21b10a(0xc5)](PerformanceEvents[a119_0x21b10a(0xe0)],async _0x16ee4e=>{const _0x546d68=a119_0x21b10a,_0x11db59={};_0x11db59[_0x546d68(0xe3)]=_0x546d68(0xb3);const _0x30f221=_0x11db59;logger[_0x546d68(0xd1)](_0x30f221['dIIQS']);const _0xf34027=new Percy(_0x16ee4e),_0x59ace3=await _0xf34027[_0x546d68(0xa3)]();if(_0x59ace3)return _0xf34027;return null;}),exports[a119_0x21b10a(0xde)]=PerformanceTester[a119_0x21b10a(0xc5)](PerformanceEvents[a119_0x21b10a(0xd0)],async _0x26c00d=>{const _0x149739=a119_0x21b10a,_0x1e5ac5={};_0x1e5ac5[_0x149739(0xc8)]=_0x149739(0xd7);const _0x49fd69=_0x1e5ac5;return logger[_0x149739(0xd1)](_0x49fd69[_0x149739(0xc8)]),_0x26c00d['stop']();}),exports[a119_0x21b10a(0xc6)]=_0x22deb7=>{const _0x33ce72=a119_0x21b10a,_0x419f4a={};_0x419f4a['BvRkk']=function(_0x1260db,_0x3e3580){return _0x1260db<_0x3e3580;};const _0x356ded=_0x419f4a,_0x17d0b3={};_0x17d0b3['chrome']=0x0,_0x17d0b3[_0x33ce72(0xbd)]=0x1,_0x17d0b3['edge']=0x2,_0x17d0b3[_0x33ce72(0xd5)]=0x3;const _0x4998bc=_0x17d0b3;return _0x22deb7['reduce']((_0x476083,_0x1c8355,_0x507144)=>{const _0xf10371=_0x33ce72,_0x41743e=_0x22deb7[_0x476083];if(_0x1c8355['deviceName'])return _0x476083;if(_0x41743e['deviceName'])return _0x507144;const _0x5da6a0=_0x1c8355[_0xf10371(0xcb)]?_0x1c8355[_0xf10371(0xcb)]:_0x1c8355[_0xf10371(0xb1)];if(_0x5da6a0&&_0x356ded['BvRkk'](_0x4998bc[_0x5da6a0[_0xf10371(0xad)]()],_0x4998bc[_0x5da6a0[_0xf10371(0xad)]()]))return _0x507144;return _0x476083;},0x0);},exports[a119_0x21b10a(0xb5)]=PerformanceTester[a119_0x21b10a(0xc5)](PerformanceEvents[a119_0x21b10a(0xca)],async(_0x4e74e6,_0x268ff5,_0x3d610f)=>{const _0x2fd959=a119_0x21b10a,_0x1b304c={};_0x1b304c[_0x2fd959(0xc4)]=_0x2fd959(0xdb);const _0x1e3e36=_0x1b304c,_0x463576=_0x4e74e6['browserstackPercyMap'];if(helper[_0x2fd959(0xb0)](_0x4e74e6[_0x2fd959(0xe1)])){logger['debug'](_0x1e3e36['heVbK']);return;}const _0x243d3d=_0x463576[_0x2fd959(0x9d)](_0x4e74e6[_0x2fd959(0xe1)],_0x268ff5);_0x3d610f[_0x2fd959(0xcd)]?await PercySDK[_0x2fd959(0xc7)](_0x4e74e6,_0x243d3d):await PercySDK[_0x2fd959(0xc1)](_0x4e74e6,_0x243d3d),_0x463576[_0x2fd959(0xb6)](_0x4e74e6[_0x2fd959(0xe1)],_0x268ff5);}),exports[a119_0x21b10a(0xae)]=(_0x41309a,_0x2e67fc,_0x3435c1)=>{const _0x342f82=a119_0x21b10a,_0x44d08a={};_0x44d08a[_0x342f82(0xdd)]=_0x342f82(0x9c),_0x44d08a[_0x342f82(0xdf)]=_0x342f82(0xda),_0x44d08a[_0x342f82(0xbf)]=function(_0x18a7c8,_0x19a30e){return _0x18a7c8!==_0x19a30e;},_0x44d08a['fpTcz']=_0x342f82(0xce);const _0x160109=_0x44d08a;if(!helper[_0x342f82(0xc0)](_0x3435c1,[_0x160109[_0x342f82(0xdd)],_0x160109[_0x342f82(0xdf)]]))return;if(_0x3435c1['browserStackPercyOptions'][_0x342f82(0xda)]&&_0x3435c1[_0x342f82(0x9c)][_0x342f82(0xa2)]&&_0x160109['SIATs'](_0x3435c1[_0x342f82(0x9c)]['percyCaptureMode'],_0x160109['fpTcz'])&&!_0x41309a['browserstackPercyMap']){global[_0x342f82(0xe1)]&&(_0x41309a[_0x342f82(0xe1)]=global[_0x342f82(0xe1)]),_0x41309a[_0x342f82(0xa5)]=new PercyCaptureMap();const _0x45c97e=PercyCaptureModes[_0x3435c1[_0x342f82(0x9c)][_0x342f82(0xa2)]];_0x45c97e['driver']&&_0x45c97e[_0x342f82(0xaf)]['forEach'](_0xfa55ec=>this[_0x342f82(0x9f)](_0x41309a,_0xfa55ec,_0x3435c1)),_0x45c97e[_0x342f82(0xc3)]&&_0x45c97e[_0x342f82(0xc3)][_0x342f82(0xd6)](_0x11b01a=>{const _0x425151=_0x342f82;if(_0x2e67fc[_0x425151(0x9b)][_0x425151(0xa4)+_0x11b01a])return;_0x2e67fc[_0x425151(0x9b)]['patch'+_0x11b01a]=!![];const _0x81cbf5=_0x2e67fc[_0x425151(0x9b)][_0x11b01a];_0x2e67fc[_0x425151(0x9b)][_0x11b01a]=async function(){const _0xa7c640=_0x425151;let _0x189a5d=_0x81cbf5[_0xa7c640(0xa8)](this,arguments);_0x189a5d&&_0x189a5d['then']&&(_0x189a5d=await _0x189a5d);try{const _0x234c55=this[_0xa7c640(0xe2)]();await exports[_0xa7c640(0xb5)](_0x234c55,_0x11b01a,_0x3435c1);}catch(_0x12255b){logger[_0xa7c640(0xdc)](_0xa7c640(0xa7)+_0x11b01a+'\x20for\x20percy\x20'+_0x12255b);}return _0x189a5d;};});}},exports[a119_0x21b10a(0x9f)]=function(_0x3b72ab,_0x4feef8,_0x29841c){const _0x493eed=a119_0x21b10a,_0xcc3498={};_0xcc3498['Neilz']=function(_0x4faeac,_0x220d40){return _0x4faeac+_0x220d40;},_0xcc3498[_0x493eed(0xa0)]=_0x493eed(0xa4),_0xcc3498[_0x493eed(0xa9)]=_0x493eed(0xd4);const _0x23920=_0xcc3498,_0x6d77b9=_0x23920[_0x493eed(0xbe)](_0x23920[_0x493eed(0xa0)],_0x4feef8),_0x5ba4a0=_0x23920[_0x493eed(0xbe)](_0x23920['yYDLC'],_0x4feef8),_0x457ed4=this;if(_0x3b72ab[_0x6d77b9]||!_0x3b72ab[_0x4feef8])return;_0x3b72ab[_0x6d77b9]=!![],_0x3b72ab[_0x5ba4a0]=_0x3b72ab[_0x4feef8],_0x3b72ab[_0x4feef8]=async()=>{const _0x333ded=_0x493eed;try{await _0x457ed4['percyAutoCapture'](_0x3b72ab,_0x4feef8,_0x29841c);}catch(_0x57d50a){logger[_0x333ded(0xdc)]('Error\x20patching\x20'+_0x4feef8+'\x20for\x20percy\x20'+_0x57d50a);}return await _0x3b72ab[_0x5ba4a0][_0x333ded(0xa8)](_0x3b72ab,arguments);};},exports[a119_0x21b10a(0xb8)]=_0x28cf6f=>{const _0x51eb24=a119_0x21b10a,_0x16c484={};_0x16c484['LtgWC']='auto';const _0x242dc3=_0x16c484,_0x401fc5={};_0x401fc5[_0x51eb24(0xda)]=_0x28cf6f[_0x51eb24(0xda)],_0x401fc5['percyCaptureMode']=_0x28cf6f[_0x51eb24(0xa2)]||_0x242dc3[_0x51eb24(0xac)];const _0x3c570c=_0x401fc5;_0x28cf6f[_0x51eb24(0xda)]&&(_0x3c570c[_0x51eb24(0xb9)]=exports[_0x51eb24(0xc6)](_0x28cf6f[_0x51eb24(0x9a)]));;return _0x3c570c;};
|