browserstack-node-sdk 1.54.2 → 1.55.0
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 +3 -3
- 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/newman/command.js +2 -0
- package/src/bin/newman/helper.js +1 -0
- package/src/bin/newman/reporter/index.js +1 -0
- package/src/bin/newman/scriptRunner.js +2 -0
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/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/puppeteer-helper.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 a115_0x607412=a115_0x4e82;(function(_0x294f62,_0x54f472){const _0x49b920=a115_0x4e82,_0x3d7a03=_0x294f62();while(!![]){try{const _0x538d1b=parseInt(_0x49b920(0x1d6))/0x1*(parseInt(_0x49b920(0x201))/0x2)+parseInt(_0x49b920(0x1d4))/0x3*(parseInt(_0x49b920(0x1e8))/0x4)+parseInt(_0x49b920(0x207))/0x5*(parseInt(_0x49b920(0x1be))/0x6)+parseInt(_0x49b920(0x1b9))/0x7*(-parseInt(_0x49b920(0x1f9))/0x8)+parseInt(_0x49b920(0x1e9))/0x9*(-parseInt(_0x49b920(0x1d5))/0xa)+parseInt(_0x49b920(0x1ca))/0xb*(parseInt(_0x49b920(0x1c1))/0xc)+parseInt(_0x49b920(0x1e5))/0xd*(-parseInt(_0x49b920(0x1e0))/0xe);if(_0x538d1b===_0x54f472)break;else _0x3d7a03['push'](_0x3d7a03['shift']());}catch(_0x24d66e){_0x3d7a03['push'](_0x3d7a03['shift']());}}}(a115_0x398a,0x536d6));const winston=require(a115_0x607412(0x204)),path=require(a115_0x607412(0x209)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a115_0x607412(0x1f8)),tempLogDir=a115_0x607412(0x1fc);let redactRegex=null,lastConfigHash='';const logFormat=winston[a115_0x607412(0x1d3)](_0xd6dfbc=>{const _0xc706a2=a115_0x607412,_0x3ac093={};_0x3ac093[_0xc706a2(0x1c3)]=function(_0x3f3ea8,_0x3a995f){return _0x3f3ea8!==_0x3a995f;},_0x3ac093['zPjwL']='string',_0x3ac093['AuisR']=function(_0x40fef7,_0x4903cd){return _0x40fef7+_0x4903cd;},_0x3ac093[_0xc706a2(0x203)]=function(_0x46ce83,_0x1b4d81){return _0x46ce83+_0x1b4d81;},_0x3ac093[_0xc706a2(0x1d7)]=function(_0x30b125,_0x344fa3){return _0x30b125!==_0x344fa3;},_0x3ac093[_0xc706a2(0x1fd)]=function(_0x4c4b3a,_0x546016){return _0x4c4b3a>_0x546016;},_0x3ac093[_0xc706a2(0x1b5)]=_0xc706a2(0x1e1);const _0x5c7503=_0x3ac093;_0x5c7503['hhHYe'](typeof _0xd6dfbc[_0xc706a2(0x1e3)],_0x5c7503[_0xc706a2(0x1bf)])&&(_0xd6dfbc[_0xc706a2(0x1e3)]=JSON[_0xc706a2(0x1c2)](_0xd6dfbc[_0xc706a2(0x1e3)]));const _0x368a27=global['config']&&global[_0xc706a2(0x1ba)][_0xc706a2(0x1f5)]||'',_0x45bf53=global[_0xc706a2(0x1ba)]&&global['config'][_0xc706a2(0x1de)]||'',_0x1976c2=_0x5c7503[_0xc706a2(0x1e7)](_0x5c7503[_0xc706a2(0x203)](_0x368a27,'|'),_0x45bf53);if(_0x5c7503[_0xc706a2(0x1d7)](_0x1976c2,lastConfigHash)){lastConfigHash=_0x1976c2;const _0x323029=[_0x368a27,_0x45bf53][_0xc706a2(0x1bd)](Boolean);if(_0x5c7503[_0xc706a2(0x1fd)](_0x323029[_0xc706a2(0x1c9)],0x0)){const _0x7a33e8=_0x323029['map'](_0x309030=>_0x309030[_0xc706a2(0x1eb)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0xc706a2(0x1ed)]('|');redactRegex=new RegExp(_0x7a33e8,'g');}else redactRegex=null;}return redactRegex&&(_0xd6dfbc[_0xc706a2(0x1e3)]=_0xd6dfbc[_0xc706a2(0x1e3)][_0xc706a2(0x1eb)](redactRegex,_0x5c7503[_0xc706a2(0x1b5)])),_0xd6dfbc;}),fetchLogDir=()=>{const _0x2e20d9=a115_0x607412;if(process[_0x2e20d9(0x1ff)][_0x2e20d9(0x1f0)])return process[_0x2e20d9(0x1ff)][_0x2e20d9(0x1f0)];else!fs[_0x2e20d9(0x1fe)](tempLogDir)&&fs[_0x2e20d9(0x1e4)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xf292d6=a115_0x607412,_0x233d3b={};_0x233d3b[_0xf292d6(0x1c7)]=_0xf292d6(0x1cf);const _0x14b78d=_0x233d3b,_0x5ca456=process[_0xf292d6(0x1ff)][_0xf292d6(0x202)],_0x5c55a2=Object[_0xf292d6(0x1cb)](winston[_0xf292d6(0x1ba)][_0xf292d6(0x1f4)]['levels']);if(_0x5ca456&&_0x5c55a2[_0xf292d6(0x1e6)](_0x5ca456[_0xf292d6(0x1c4)]()))return _0x5ca456[_0xf292d6(0x1c4)]();return _0x14b78d[_0xf292d6(0x1c7)];},initialLogLevel=getInitialLogLevel(),a115_0x1e0f60={};a115_0x1e0f60['name']='console.info',a115_0x1e0f60[a115_0x607412(0x1d2)]=initialLogLevel;const transports={'loggerConsole':new winston[(a115_0x607412(0x1f1))][(a115_0x607412(0x1ee))](a115_0x1e0f60),'loggerFile':new winston[(a115_0x607412(0x1f1))][(a115_0x607412(0x1d0))]({'filename':path[a115_0x607412(0x1ed)](logDir,a115_0x607412(0x1cc)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a115_0x607412(0x1f1))][(a115_0x607412(0x1d0))]({'filename':path[a115_0x607412(0x1ed)](logDir,a115_0x607412(0x1e2)),'level':a115_0x607412(0x1ec)}),'debugCliLoggerFile':new winston[(a115_0x607412(0x1f1))]['File']({'filename':path[a115_0x607412(0x1ed)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a115_0x607412(0x1ec)}),'buildLinkTransport':new winston['transports']['File']({'filename':path['join'](logDir,'/usage.log'),'level':a115_0x607412(0x1ec)})},automationTransports={};process[a115_0x607412(0x1ff)][a115_0x607412(0x1c8)]==='true'&&(automationTransports[a115_0x607412(0x206)]=new winston[(a115_0x607412(0x1f1))]['File']({'filename':path[a115_0x607412(0x1ed)](logDir,a115_0x607412(0x1fa)),'level':a115_0x607412(0x1ec)}));transports['loggerConsole']['on'](a115_0x607412(0x1d1),_0x3c4960=>{const _0x4fb88c=a115_0x607412,_0x1b9bc0={};_0x1b9bc0[_0x4fb88c(0x1d9)]=function(_0x57351f,_0x32c4cb){return _0x57351f===_0x32c4cb;},_0x1b9bc0[_0x4fb88c(0x1c6)]=_0x4fb88c(0x1bc),_0x1b9bc0['IlmSF']=_0x4fb88c(0x205);const _0x233144=_0x1b9bc0;if(_0x233144[_0x4fb88c(0x1d9)](_0x3c4960[_0x4fb88c(0x1f6)],_0x233144['AawIp'])){console[_0x4fb88c(0x1fc)](_0x233144[_0x4fb88c(0x1f7)],_0x3c4960[_0x4fb88c(0x1e3)]);return;}throw _0x3c4960;});const a115_0x28fa58={};a115_0x28fa58[a115_0x607412(0x1d3)]='YYYY-MM-DD\x20HH:mm:ss';const a115_0x4dda59={};a115_0x4dda59[a115_0x607412(0x1d2)]=!![];const winstonLoggerParams={'format':winston[a115_0x607412(0x1d3)]['combine'](winston[a115_0x607412(0x1d3)]['timestamp'](a115_0x28fa58),winston[a115_0x607412(0x1d3)]['colorize'](a115_0x4dda59),winston[a115_0x607412(0x1d3)][a115_0x607412(0x1dc)](_0x3935d3=>_0x3935d3[a115_0x607412(0x1db)]+'\x20-\x20'+_0x3935d3[a115_0x607412(0x1d2)]+':\x20'+_0x3935d3[a115_0x607412(0x1e3)])),'transports':[transports['loggerConsole']]},a115_0x57f18b={};a115_0x57f18b[a115_0x607412(0x1d3)]='YYYY-MM-DD\x20HH:mm:ss';const a115_0x18ab01={};a115_0x18ab01[a115_0x607412(0x1d2)]=!![];const winstonFileLoggerParams={'format':winston[a115_0x607412(0x1d3)][a115_0x607412(0x1ea)](winston[a115_0x607412(0x1d3)][a115_0x607412(0x1db)](a115_0x57f18b),winston['format'][a115_0x607412(0x1ce)](a115_0x18ab01),winston[a115_0x607412(0x1d3)][a115_0x607412(0x1dc)](_0x19ccf2=>_0x19ccf2[a115_0x607412(0x1d2)]+':\x20'+_0x19ccf2['message'])),'transports':[]},a115_0x4f69b0={};function a115_0x398a(){const _0x28f0bb=['createLogger','42lFjIWM','config','loggerFile','EPIPE','filter','6eUvCHz','zPjwL','automationLogger','228xPZrpM','stringify','hhHYe','toLowerCase','buildLogger','AawIp','fjstX','BROWSERSTACK_AUTOMATION_LOGS','length','7821rUbkeP','keys','/usage.log','initialize','colorize','info','File','error','level','format','62229vowZnJ','1305890fkDPSr','109413XAZjjL','kIcNk','getLogDir','lamaZ','add','timestamp','printf','http','accessKey','fileLogger','56CvPmMc','[REDACTED]','/usage-debug.log','message','mkdirSync','479830aOETQW','includes','AuisR','124SvcAVz','18XumXHt','combine','replace','silly','join','Console','debugCliLoggerFile','BROWSERSTACK_INTERNAL_LOG_DIR','transports','debugLoggerFile','buildLinkTransport','npm','userName','code','IlmSF','../bin/utils/constants','197368GJOfmY','automation.log','true','log','PvvFJ','existsSync','env','logDir','2fImXDy','BROWSERSTACK_LOG_LEVEL','wKjRr','winston','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','automationLoggerFile','663035mNrpcR','fRNuP','path','remove','winstonLogger','loggerConsole','PyMfo','uncolorize','YYYY-MM-DD\x20HH:mm:ss'];a115_0x398a=function(){return _0x28f0bb;};return a115_0x398a();}a115_0x4f69b0[a115_0x607412(0x1d3)]=a115_0x607412(0x1b7);function a115_0x4e82(_0x48c49c,_0x377635){const _0x398afd=a115_0x398a();return a115_0x4e82=function(_0x4e8209,_0x5b0015){_0x4e8209=_0x4e8209-0x1b4;let _0x3217bb=_0x398afd[_0x4e8209];return _0x3217bb;},a115_0x4e82(_0x48c49c,_0x377635);}const a115_0x454ecc={};a115_0x454ecc[a115_0x607412(0x1d2)]=!![];const a115_0x3a809a={};a115_0x3a809a[a115_0x607412(0x1d2)]=a115_0x607412(0x1ec);const BuildLoggerParams={'format':winston[a115_0x607412(0x1d3)][a115_0x607412(0x1ea)](winston[a115_0x607412(0x1d3)][a115_0x607412(0x1db)](a115_0x4f69b0),winston[a115_0x607412(0x1d3)][a115_0x607412(0x1ce)](a115_0x454ecc),winston['format'][a115_0x607412(0x1dc)](_0xedfd96=>_0xedfd96[a115_0x607412(0x1db)]+'\x20-\x20'+_0xedfd96[a115_0x607412(0x1d2)]+':\x20'+_0xedfd96[a115_0x607412(0x1e3)])),'transports':[transports[a115_0x607412(0x1f3)],new winston[(a115_0x607412(0x1f1))][(a115_0x607412(0x1ee))](a115_0x3a809a)]},a115_0x410d8e={};a115_0x410d8e[a115_0x607412(0x1dd)]=()=>{},a115_0x410d8e['info']=()=>{},a115_0x410d8e['warn']=()=>{},a115_0x410d8e[a115_0x607412(0x1d1)]=()=>{},a115_0x410d8e['debug']=()=>{},a115_0x410d8e['silly']=()=>{},exports[a115_0x607412(0x1c0)]=process[a115_0x607412(0x1ff)]['BROWSERSTACK_AUTOMATION_LOGS']===a115_0x607412(0x1fb)?winston[a115_0x607412(0x1b8)]({'format':winston[a115_0x607412(0x1d3)][a115_0x607412(0x1ea)](winston[a115_0x607412(0x1d3)][a115_0x607412(0x1b6)](),winston['format'][a115_0x607412(0x1db)](),logFormat(),winston[a115_0x607412(0x1d3)][a115_0x607412(0x1dc)](_0x321c93=>_0x321c93[a115_0x607412(0x1d2)]+':\x20'+_0x321c93[a115_0x607412(0x1e3)])),'transports':[automationTransports[a115_0x607412(0x206)]]}):a115_0x410d8e;const initialize=()=>{const _0x42110c=a115_0x607412,_0x3f114c={};_0x3f114c[_0x42110c(0x208)]=_0x42110c(0x1ec);const _0x32d883=_0x3f114c,_0x2298c7=transports[_0x42110c(0x1b4)][_0x42110c(0x1d2)]||initialLogLevel;transports[_0x42110c(0x1bb)]&&(exports[_0x42110c(0x20b)]['remove'](transports[_0x42110c(0x1bb)]),exports[_0x42110c(0x1df)]['remove'](transports[_0x42110c(0x1bb)])),transports[_0x42110c(0x1f2)]&&(exports[_0x42110c(0x20b)]['remove'](transports[_0x42110c(0x1f2)]),exports[_0x42110c(0x1df)][_0x42110c(0x20a)](transports[_0x42110c(0x1f2)])),transports[_0x42110c(0x1bb)]=new winston['transports']['File']({'filename':path[_0x42110c(0x1ed)](exports[_0x42110c(0x200)],LOG_FILE_NAME),'level':_0x2298c7}),transports[_0x42110c(0x1f2)]=new winston[(_0x42110c(0x1f1))][(_0x42110c(0x1d0))]({'filename':path[_0x42110c(0x1ed)](exports[_0x42110c(0x200)],DEBUG_LOG_FILE_NAME),'level':_0x32d883['fRNuP']}),transports[_0x42110c(0x1ef)]=new winston['transports'][(_0x42110c(0x1d0))]({'filename':path[_0x42110c(0x1ed)](exports[_0x42110c(0x200)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x32d883[_0x42110c(0x208)]}),exports[_0x42110c(0x20b)][_0x42110c(0x1da)](transports[_0x42110c(0x1bb)]),exports[_0x42110c(0x20b)][_0x42110c(0x1da)](transports['debugLoggerFile']),exports[_0x42110c(0x1df)][_0x42110c(0x1da)](transports['loggerFile']),exports[_0x42110c(0x1df)][_0x42110c(0x1da)](transports[_0x42110c(0x1f2)]);};exports[a115_0x607412(0x20b)]=new winston[(a115_0x607412(0x1b8))](winstonLoggerParams),exports[a115_0x607412(0x1df)]=new winston[(a115_0x607412(0x1b8))](winstonFileLoggerParams),exports[a115_0x607412(0x1c5)]=new winston['createLogger'](BuildLoggerParams),exports[a115_0x607412(0x200)]=logDir,exports[a115_0x607412(0x1d8)]=()=>{const _0x21d273=a115_0x607412;return exports[_0x21d273(0x200)];},exports[a115_0x607412(0x1f1)]=transports,exports[a115_0x607412(0x1cd)]=initialize;logDir&&initialize();
|
|
1
|
+
const a120_0xf652bb=a120_0x3a90;(function(_0x4161a6,_0x3f3d9e){const _0x3dab39=a120_0x3a90,_0x2fed99=_0x4161a6();while(!![]){try{const _0x426099=-parseInt(_0x3dab39(0x157))/0x1*(parseInt(_0x3dab39(0x15d))/0x2)+parseInt(_0x3dab39(0x14d))/0x3*(parseInt(_0x3dab39(0x178))/0x4)+-parseInt(_0x3dab39(0x160))/0x5*(-parseInt(_0x3dab39(0x175))/0x6)+parseInt(_0x3dab39(0x16f))/0x7*(parseInt(_0x3dab39(0x166))/0x8)+-parseInt(_0x3dab39(0x16c))/0x9*(-parseInt(_0x3dab39(0x14c))/0xa)+-parseInt(_0x3dab39(0x188))/0xb*(parseInt(_0x3dab39(0x145))/0xc)+-parseInt(_0x3dab39(0x147))/0xd*(parseInt(_0x3dab39(0x180))/0xe);if(_0x426099===_0x3f3d9e)break;else _0x2fed99['push'](_0x2fed99['shift']());}catch(_0x310a9c){_0x2fed99['push'](_0x2fed99['shift']());}}}(a120_0x3f9f,0xa8a2a));const winston=require(a120_0xf652bb(0x162)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a120_0xf652bb(0x191)),tempLogDir='log';let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x492908=>{const _0x158b4c=a120_0xf652bb,_0x22d4d9={};_0x22d4d9[_0x158b4c(0x154)]=function(_0x27e508,_0xcde8d3){return _0x27e508!==_0xcde8d3;},_0x22d4d9[_0x158b4c(0x144)]=_0x158b4c(0x165),_0x22d4d9[_0x158b4c(0x17c)]=function(_0x2297d1,_0x4cabab){return _0x2297d1+_0x4cabab;},_0x22d4d9[_0x158b4c(0x185)]=function(_0x180511,_0x2f3e5d){return _0x180511+_0x2f3e5d;},_0x22d4d9[_0x158b4c(0x155)]=function(_0x362531,_0x46c153){return _0x362531!==_0x46c153;},_0x22d4d9[_0x158b4c(0x164)]=function(_0x117ef1,_0x4e3c0a){return _0x117ef1>_0x4e3c0a;},_0x22d4d9[_0x158b4c(0x190)]='[REDACTED]';const _0x31756e=_0x22d4d9;_0x31756e[_0x158b4c(0x154)](typeof _0x492908[_0x158b4c(0x199)],_0x31756e[_0x158b4c(0x144)])&&(_0x492908[_0x158b4c(0x199)]=JSON[_0x158b4c(0x15b)](_0x492908[_0x158b4c(0x199)]));const _0x325be5=global['config']&&global[_0x158b4c(0x15a)][_0x158b4c(0x18b)]||'',_0x1bbeae=global['config']&&global[_0x158b4c(0x15a)][_0x158b4c(0x153)]||'',_0x359aed=_0x31756e['oAYax'](_0x31756e[_0x158b4c(0x185)](_0x325be5,'|'),_0x1bbeae);if(_0x31756e[_0x158b4c(0x155)](_0x359aed,lastConfigHash)){lastConfigHash=_0x359aed;const _0x18cb24=[_0x325be5,_0x1bbeae][_0x158b4c(0x152)](Boolean);if(_0x31756e[_0x158b4c(0x164)](_0x18cb24[_0x158b4c(0x194)],0x0)){const _0x1f00ae=_0x18cb24[_0x158b4c(0x151)](_0x4db54c=>_0x4db54c[_0x158b4c(0x182)](/[.*+?^${}()|[\]\\]/g,_0x158b4c(0x177)))[_0x158b4c(0x174)]('|');redactRegex=new RegExp(_0x1f00ae,'g');}else redactRegex=null;}return redactRegex&&(_0x492908[_0x158b4c(0x199)]=_0x492908[_0x158b4c(0x199)]['replace'](redactRegex,_0x31756e[_0x158b4c(0x190)])),_0x492908;}),fetchLogDir=()=>{const _0x14a395=a120_0xf652bb;if(process['env']['BROWSERSTACK_INTERNAL_LOG_DIR'])return process[_0x14a395(0x187)][_0x14a395(0x171)];else!fs['existsSync'](tempLogDir)&&fs[_0x14a395(0x17a)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x4d130a=a120_0xf652bb,_0x103ad5={};_0x103ad5[_0x4d130a(0x196)]=_0x4d130a(0x193);const _0x28b19b=_0x103ad5,_0x2a960a=process[_0x4d130a(0x187)][_0x4d130a(0x16b)],_0x3cc848=Object['keys'](winston[_0x4d130a(0x15a)]['npm']['levels']);if(_0x2a960a&&_0x3cc848[_0x4d130a(0x16d)](_0x2a960a[_0x4d130a(0x18d)]()))return _0x2a960a[_0x4d130a(0x18d)]();return _0x28b19b[_0x4d130a(0x196)];},initialLogLevel=getInitialLogLevel(),a120_0x206862={};a120_0x206862[a120_0xf652bb(0x18a)]=a120_0xf652bb(0x148),a120_0x206862[a120_0xf652bb(0x183)]=initialLogLevel;const transports={'loggerConsole':new winston[(a120_0xf652bb(0x198))]['Console'](a120_0x206862),'loggerFile':new winston[(a120_0xf652bb(0x198))][(a120_0xf652bb(0x156))]({'filename':path[a120_0xf652bb(0x174)](logDir,a120_0xf652bb(0x167)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a120_0xf652bb(0x198))][(a120_0xf652bb(0x156))]({'filename':path['join'](logDir,a120_0xf652bb(0x14e)),'level':'silly'}),'debugCliLoggerFile':new winston[(a120_0xf652bb(0x198))]['File']({'filename':path[a120_0xf652bb(0x174)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':'silly'}),'buildLinkTransport':new winston[(a120_0xf652bb(0x198))][(a120_0xf652bb(0x156))]({'filename':path[a120_0xf652bb(0x174)](logDir,a120_0xf652bb(0x167)),'level':'silly'})},automationTransports={};process['env'][a120_0xf652bb(0x17e)]==='true'&&(automationTransports['automationLoggerFile']=new winston[(a120_0xf652bb(0x198))][(a120_0xf652bb(0x156))]({'filename':path[a120_0xf652bb(0x174)](logDir,a120_0xf652bb(0x169)),'level':a120_0xf652bb(0x17b)}));transports[a120_0xf652bb(0x14b)]['on']('error',_0x135740=>{const _0x4e625c=a120_0xf652bb,_0x401e95={};_0x401e95[_0x4e625c(0x161)]=function(_0x146003,_0x3aaae2){return _0x146003===_0x3aaae2;},_0x401e95[_0x4e625c(0x146)]=_0x4e625c(0x14f),_0x401e95[_0x4e625c(0x189)]=_0x4e625c(0x197);const _0x2a9a14=_0x401e95;if(_0x2a9a14[_0x4e625c(0x161)](_0x135740[_0x4e625c(0x17d)],_0x2a9a14[_0x4e625c(0x146)])){console[_0x4e625c(0x186)](_0x2a9a14[_0x4e625c(0x189)],_0x135740[_0x4e625c(0x199)]);return;}throw _0x135740;});const a120_0x53c0ff={};a120_0x53c0ff[a120_0xf652bb(0x16a)]='YYYY-MM-DD\x20HH:mm:ss';function a120_0x3f9f(){const _0xec3657=['winston','YYYY-MM-DD\x20HH:mm:ss','lxqzb','string','72KlOwJS','/usage.log','logDir','automation.log','format','BROWSERSTACK_LOG_LEVEL','813204PIprfa','includes','fileLogger','1005193qjiavV','debugLoggerFile','BROWSERSTACK_INTERNAL_LOG_DIR','add','IVTSK','join','264adQhuY','debugCliLoggerFile','\x5c$&','36932mWiTpK','combine','mkdirSync','silly','oAYax','code','BROWSERSTACK_AUTOMATION_LOGS','getLogDir','182AMUsYj','loggerFile','replace','level','warn','teJjW','log','env','765853cNiNIW','kUtRf','name','userName','createLogger','toLowerCase','buildLogger','http','DVVKH','../bin/utils/constants','initialize','info','length','error','DrUwr','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','transports','message','\x20-\x20','suMwr','156wbmliP','tiuyR','162175OBeiVZ','console.info','colorize','remove','loggerConsole','70ePJdek','15MZLiHV','/usage-debug.log','EPIPE','true','map','filter','accessKey','Dullx','WAaeZ','File','1184300ooYqSg','timestamp','winstonLogger','config','stringify','automationLogger','2SZLUpv','debug','printf','110370ULolDO','mMOuB'];a120_0x3f9f=function(){return _0xec3657;};return a120_0x3f9f();}const a120_0x7cf5db={};a120_0x7cf5db[a120_0xf652bb(0x183)]=!![];const winstonLoggerParams={'format':winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x179)](winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x158)](a120_0x53c0ff),winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x149)](a120_0x7cf5db),winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x15f)](_0x428ad0=>_0x428ad0[a120_0xf652bb(0x158)]+a120_0xf652bb(0x19a)+_0x428ad0[a120_0xf652bb(0x183)]+':\x20'+_0x428ad0[a120_0xf652bb(0x199)])),'transports':[transports[a120_0xf652bb(0x14b)]]},a120_0x122947={};function a120_0x3a90(_0x4d6c54,_0x1a0935){const _0x3f9f09=a120_0x3f9f();return a120_0x3a90=function(_0x3a9080,_0x32d379){_0x3a9080=_0x3a9080-0x144;let _0x3f8ad0=_0x3f9f09[_0x3a9080];return _0x3f8ad0;},a120_0x3a90(_0x4d6c54,_0x1a0935);}a120_0x122947[a120_0xf652bb(0x16a)]=a120_0xf652bb(0x163);const a120_0xe51b6c={};a120_0xe51b6c[a120_0xf652bb(0x183)]=!![];const winstonFileLoggerParams={'format':winston[a120_0xf652bb(0x16a)]['combine'](winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x158)](a120_0x122947),winston[a120_0xf652bb(0x16a)]['colorize'](a120_0xe51b6c),winston['format'][a120_0xf652bb(0x15f)](_0x465343=>_0x465343['level']+':\x20'+_0x465343['message'])),'transports':[]},a120_0x20cbd0={};a120_0x20cbd0['format']=a120_0xf652bb(0x163);const a120_0x30145a={};a120_0x30145a[a120_0xf652bb(0x183)]=!![];const a120_0x698215={};a120_0x698215[a120_0xf652bb(0x183)]='silly';const BuildLoggerParams={'format':winston[a120_0xf652bb(0x16a)]['combine'](winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x158)](a120_0x20cbd0),winston[a120_0xf652bb(0x16a)]['colorize'](a120_0x30145a),winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x15f)](_0x5039be=>_0x5039be[a120_0xf652bb(0x158)]+a120_0xf652bb(0x19a)+_0x5039be[a120_0xf652bb(0x183)]+':\x20'+_0x5039be[a120_0xf652bb(0x199)])),'transports':[transports['buildLinkTransport'],new winston[(a120_0xf652bb(0x198))]['Console'](a120_0x698215)]},a120_0x3f5887={};a120_0x3f5887[a120_0xf652bb(0x18f)]=()=>{},a120_0x3f5887['info']=()=>{},a120_0x3f5887[a120_0xf652bb(0x184)]=()=>{},a120_0x3f5887[a120_0xf652bb(0x195)]=()=>{},a120_0x3f5887[a120_0xf652bb(0x15e)]=()=>{},a120_0x3f5887['silly']=()=>{},exports[a120_0xf652bb(0x15c)]=process[a120_0xf652bb(0x187)][a120_0xf652bb(0x17e)]===a120_0xf652bb(0x150)?winston[a120_0xf652bb(0x18c)]({'format':winston['format'][a120_0xf652bb(0x179)](winston[a120_0xf652bb(0x16a)]['uncolorize'](),winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x158)](),logFormat(),winston[a120_0xf652bb(0x16a)][a120_0xf652bb(0x15f)](_0x6a66f2=>_0x6a66f2[a120_0xf652bb(0x183)]+':\x20'+_0x6a66f2[a120_0xf652bb(0x199)])),'transports':[automationTransports['automationLoggerFile']]}):a120_0x3f5887;const initialize=()=>{const _0x84428c=a120_0xf652bb,_0x58f964={};_0x58f964[_0x84428c(0x173)]=_0x84428c(0x17b);const _0x17b5e6=_0x58f964,_0x3afab3=transports[_0x84428c(0x14b)][_0x84428c(0x183)]||initialLogLevel;transports[_0x84428c(0x181)]&&(exports[_0x84428c(0x159)][_0x84428c(0x14a)](transports[_0x84428c(0x181)]),exports['fileLogger'][_0x84428c(0x14a)](transports[_0x84428c(0x181)])),transports['debugLoggerFile']&&(exports[_0x84428c(0x159)][_0x84428c(0x14a)](transports[_0x84428c(0x170)]),exports[_0x84428c(0x16e)]['remove'](transports[_0x84428c(0x170)])),transports['loggerFile']=new winston[(_0x84428c(0x198))]['File']({'filename':path[_0x84428c(0x174)](exports[_0x84428c(0x168)],LOG_FILE_NAME),'level':_0x3afab3}),transports[_0x84428c(0x170)]=new winston[(_0x84428c(0x198))][(_0x84428c(0x156))]({'filename':path['join'](exports[_0x84428c(0x168)],DEBUG_LOG_FILE_NAME),'level':_0x17b5e6[_0x84428c(0x173)]}),transports[_0x84428c(0x176)]=new winston[(_0x84428c(0x198))]['File']({'filename':path[_0x84428c(0x174)](exports[_0x84428c(0x168)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x17b5e6['IVTSK']}),exports[_0x84428c(0x159)][_0x84428c(0x172)](transports[_0x84428c(0x181)]),exports[_0x84428c(0x159)]['add'](transports[_0x84428c(0x170)]),exports[_0x84428c(0x16e)]['add'](transports[_0x84428c(0x181)]),exports['fileLogger'][_0x84428c(0x172)](transports[_0x84428c(0x170)]);};exports['winstonLogger']=new winston[(a120_0xf652bb(0x18c))](winstonLoggerParams),exports[a120_0xf652bb(0x16e)]=new winston[(a120_0xf652bb(0x18c))](winstonFileLoggerParams),exports[a120_0xf652bb(0x18e)]=new winston[(a120_0xf652bb(0x18c))](BuildLoggerParams),exports[a120_0xf652bb(0x168)]=logDir,exports[a120_0xf652bb(0x17f)]=()=>{const _0x1bdcc1=a120_0xf652bb;return exports[_0x1bdcc1(0x168)];},exports[a120_0xf652bb(0x198)]=transports,exports[a120_0xf652bb(0x192)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x1ee4df=a121_0x1366;function a121_0x49f8(){const _0x3d65ef=['testRunUUID','lcnc','2790613EtEAYX','1145836hIvUDX','setGlobal','2765272PuGdfG','The\x20metadata\x20object\x20is\x20not\x20valid.','3492597wlKWoP','getGlobal','./globals','5thnPSA','2651kDKhqD','testMeta-','tHoqM','46730qbdaeD','testMeta','./helper','exports','mwCaQ','OmDSq','3451594lFOUcG','24583404JiFpiV','string','warn','24nNiNmQ','identifier','GNVpX','getCentralUser','18wzQAQG','LbPpW','winstonLogger','LZzvq','./logger','1JbEKtC','jsiQK'];a121_0x49f8=function(){return _0x3d65ef;};return a121_0x49f8();}function a121_0x1366(_0x162c1b,_0x2c7e2a){const _0x49f85e=a121_0x49f8();return a121_0x1366=function(_0x1366e5,_0x534e23){_0x1366e5=_0x1366e5-0xf5;let _0x139dd0=_0x49f85e[_0x1366e5];return _0x139dd0;},a121_0x1366(_0x162c1b,_0x2c7e2a);}(function(_0x5e447d,_0xdac6f1){const _0x1d26b2=a121_0x1366,_0x4fa3f8=_0x5e447d();while(!![]){try{const _0x352137=-parseInt(_0x1d26b2(0x101))/0x1*(-parseInt(_0x1d26b2(0x117))/0x2)+parseInt(_0x1d26b2(0x10a))/0x3+parseInt(_0x1d26b2(0x106))/0x4*(parseInt(_0x1d26b2(0x10d))/0x5)+-parseInt(_0x1d26b2(0xf8))/0x6*(-parseInt(_0x1d26b2(0x105))/0x7)+parseInt(_0x1d26b2(0x108))/0x8*(-parseInt(_0x1d26b2(0xfc))/0x9)+parseInt(_0x1d26b2(0x111))/0xa*(-parseInt(_0x1d26b2(0x10e))/0xb)+-parseInt(_0x1d26b2(0xf5))/0xc;if(_0x352137===_0xdac6f1)break;else _0x4fa3f8['push'](_0x4fa3f8['shift']());}catch(_0x18e100){_0x4fa3f8['push'](_0x4fa3f8['shift']());}}}(a121_0x49f8,0xdcf03));const globals=require(a121_0x1ee4df(0x10c)),helper=require(a121_0x1ee4df(0x113)),logger=require(a121_0x1ee4df(0x100))[a121_0x1ee4df(0xfe)];module[a121_0x1ee4df(0x114)]=class TestMetadata{static['set'](_0x3dd5ae={}){const _0x4e667d=a121_0x1ee4df,_0x13a0c2={};_0x13a0c2['GNVpX']=_0x4e667d(0x103),_0x13a0c2['OmDSq']=function(_0x1cb1b9,_0x3c94d9){return _0x1cb1b9===_0x3c94d9;},_0x13a0c2[_0x4e667d(0x102)]=_0x4e667d(0xf6),_0x13a0c2[_0x4e667d(0x115)]=function(_0x565470,_0x5c1370){return _0x565470<=_0x5c1370;},_0x13a0c2[_0x4e667d(0x110)]=_0x4e667d(0x112),_0x13a0c2['LZzvq']=_0x4e667d(0x109);const _0x40336b=_0x13a0c2,_0x212a6e=globals[_0x4e667d(0x10b)](_0x40336b[_0x4e667d(0xfa)]),_0x1a08ed=_0x3dd5ae[_0x4e667d(0xf9)];helper[_0x4e667d(0xfb)]()[_0x4e667d(0x104)]&&(_0x40336b[_0x4e667d(0x116)](typeof _0x1a08ed,_0x40336b['jsiQK'])&&_0x40336b[_0x4e667d(0x115)](_0x1a08ed['length'],0x28)?_0x212a6e?globals[_0x4e667d(0x107)]('testMeta-'+_0x212a6e,_0x3dd5ae):globals[_0x4e667d(0x107)](_0x40336b[_0x4e667d(0x110)],_0x3dd5ae):logger[_0x4e667d(0xf7)](_0x40336b[_0x4e667d(0xff)]));}static['get'](_0x34c1d0){const _0x1ecd07=a121_0x1ee4df,_0x42fd76={};_0x42fd76[_0x1ecd07(0xfd)]=_0x1ecd07(0x112);const _0x102597=_0x42fd76;if(helper[_0x1ecd07(0xfb)]()['lcnc'])return globals[_0x1ecd07(0x10b)](_0x1ecd07(0x10f)+_0x34c1d0)||globals[_0x1ecd07(0x10b)](_0x102597['LbPpW'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117_0x18a1ef=a117_0x2c31;(function(_0x4b6426,_0x1f6e3e){const _0x5b53bb=a117_0x2c31,_0x58e3df=_0x4b6426();while(!![]){try{const _0x247924=parseInt(_0x5b53bb(0xc4))/0x1*(parseInt(_0x5b53bb(0xea))/0x2)+-parseInt(_0x5b53bb(0xe0))/0x3*(parseInt(_0x5b53bb(0xce))/0x4)+parseInt(_0x5b53bb(0xf3))/0x5+parseInt(_0x5b53bb(0xee))/0x6+-parseInt(_0x5b53bb(0xb1))/0x7+-parseInt(_0x5b53bb(0xf1))/0x8+-parseInt(_0x5b53bb(0x9e))/0x9*(parseInt(_0x5b53bb(0x97))/0xa);if(_0x247924===_0x1f6e3e)break;else _0x58e3df['push'](_0x58e3df['shift']());}catch(_0x520306){_0x58e3df['push'](_0x58e3df['shift']());}}}(a117_0x238b,0x624a7));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a117_0x18a1ef(0xda)),PerformanceTester=require(a117_0x18a1ef(0xa0)),globals=require(a117_0x18a1ef(0xe4)),{winstonLogger:logger,automationLogger}=require(a117_0x18a1ef(0xbe)),helper=require(a117_0x18a1ef(0xd9)),constants=require(a117_0x18a1ef(0xa5)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a117_0x18a1ef(0xb5)),util=require('util');function a117_0x238b(){const _0x54687d=['css\x20selector','hPSPL','aiHeal:findElementFailure','setTcgTokenStatus','aiHeal:setToken','name','findElement','tlkqI','TLRkN','./helper','./ai-sdk/autoHealHelper','DsFTE','CGbzw','parameters','setTcgToken','RRtKx','174pbiJPg','DFLmY','args','PRE_EXECUTE','./globals','iRIyb','cIyNa','request','parameters_','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','4YebcmQ','rvrYu','initExecute','rNwpT','1099794ApIGjV','Successfully\x20healed\x20command\x20using\x20new\x20','CZZXZ','828912sUhMZk','aiHeal_isHealingEnabled','3630530uzJmtS','mDJQV','eXKBc','xneaY','getGlobal','getNudgeLocalNotSetError','executeAsyncScript','toISOString','qIzQG','silly','Mscao','amOfW','bjSdr','patchExecute','POST_EXECUTE','execute','YiOuo','skipHealingSuccess','bjxbq','capability','ElfSd','wjjRI','TyJLw','aiSdk_defaultLogDataEnabled','using','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','JEXBU','NoSuchElementError','info','error','executeScript','value','getId','bUons','aiHeal_isAuthenticated','130cHvPVM','DXSOc','findElement\x20command\x20failed\x20with\x20','AUTOMATION_LOG_COMMANDS','VZCZs','script','VAiSO','120816bfgzby','oUHJo','./performance/performance-tester','isBrowserstackInfra','handleSuccess','isSelfHealEnabled','local','../bin/utils/constants','measureWrapper','JihTl','MpgVg','getSession','browserstack.local','yYvAn','qkSSH','find','name_','Healing\x20failed\x20for\x20command\x20using\x20','command','1713978oVDFex','includes','ntwKV','setAiSessionTimeStamp','./performance/constants','PxURZ','vbYNc','dfmaE','Error\x20in\x20handling\x20TCG\x20Auth:\x20','][\x20SDK-AUTOMATION\x20]\x20','body','UzqKr','oMXwW','./logger','fnhGo','url','JmwSS','findElement\x20command\x20failed\x20with\x20cssPath:\x20','debug','16903LhwyFr','response','LAQll','message','YcmET','nynkZ','zuQeY','handleFailure','nestedKeyValue','aTWaY','1216kVZfKt','aKRoN'];a117_0x238b=function(){return _0x54687d;};return a117_0x238b();}function a117_0x2c31(_0x483fc2,_0x48d371){const _0x238bf6=a117_0x238b();return a117_0x2c31=function(_0x2c31af,_0xcbce30){_0x2c31af=_0x2c31af-0x86;let _0x1f7748=_0x238bf6[_0x2c31af];return _0x1f7748;},a117_0x2c31(_0x483fc2,_0x48d371);}exports['overrideExecute']=(_0x2c4b41,_0x47ec48)=>{const _0xf9b75a=a117_0x18a1ef,_0x38c13e={'etGaq':_0xf9b75a(0x8c),'CZZXZ':function(_0x2da502,_0x559ca1){return _0x2da502===_0x559ca1;},'iRIyb':_0xf9b75a(0x8f),'vbYNc':'JavascriptError','bjSdr':function(_0x44838f,_0x414054){return _0x44838f===_0x414054;},'Mscao':_0xf9b75a(0xd6),'fnhGo':_0xf9b75a(0x96),'aKRoN':_0xf9b75a(0xf2),'sXOih':function(_0x10dcbf,_0x5d26c0){return _0x10dcbf===_0x5d26c0;},'qIzQG':_0xf9b75a(0xd0),'nynkZ':function(_0x49674f,_0x1f81a1){return _0x49674f+_0x1f81a1;},'qkSSH':_0xf9b75a(0xc2),'PxURZ':';\x20Trying\x20to\x20heal','TyJLw':function(_0x7e0d31,_0x2dcb16){return _0x7e0d31+_0x2dcb16;},'EbwBh':_0xf9b75a(0x99),'ElfSd':_0xf9b75a(0xd2),'VAiSO':function(_0x286407){return _0x286407();},'YcmET':function(_0x2bc206,_0x21a2ef){return _0x2bc206&&_0x21a2ef;},'yYvAn':function(_0x4018af,_0x2ec60d){return _0x4018af+_0x2ec60d;},'JihTl':_0xf9b75a(0xe9),'VZCZs':function(_0x5a01a0,_0x1a087d){return _0x5a01a0+_0x1a087d;},'eXKBc':function(_0x544caf,_0x49f473){return _0x544caf+_0x49f473;},'mDJQV':function(_0x148169,_0x11e1c8){return _0x148169+_0x11e1c8;},'NLtVr':_0xf9b75a(0xef),'xneaY':function(_0x3dad38,_0x27c39b){return _0x3dad38===_0x27c39b;},'LAQll':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','rvrYu':function(_0x38767c,_0x334cc3){return _0x38767c+_0x334cc3;},'TLRkN':function(_0xc62ab2,_0x57615f){return _0xc62ab2+_0x57615f;},'rNwpT':function(_0x5a78da,_0xd9ef72){return _0x5a78da+_0xd9ef72;},'bjxbq':_0xf9b75a(0xaf),'ntwKV':'get','Roszz':_0xf9b75a(0xe8),'VoKpK':'url','tlkqI':_0xf9b75a(0x8d),'dfmaE':_0xf9b75a(0xd4),'DsFTE':function(_0x4608ff){return _0x4608ff();},'CGbzw':_0xf9b75a(0x8a),'oMXwW':'aiHeal:findElementSuccess','JEXBU':function(_0xc719f5){return _0xc719f5();},'PCsYs':function(_0x48fa89,_0x3138be){return _0x48fa89===_0x3138be;},'cIyNa':_0xf9b75a(0xf9),'KxrOR':_0xf9b75a(0x92),'oUHJo':function(_0x3df97f,_0x31aeec){return _0x3df97f===_0x31aeec;},'bUons':'string','wjjRI':_0xf9b75a(0x86),'JmwSS':_0xf9b75a(0xaa),'qyqLN':'bstack:options','UzqKr':_0xf9b75a(0xa4)},_0x542048=_0x2c4b41[_0xf9b75a(0x100)]||(helper[_0xf9b75a(0xcc)](_0x47ec48,[_0x38c13e[_0xf9b75a(0x88)],_0x38c13e[_0xf9b75a(0xc1)]])||helper[_0xf9b75a(0xcc)](_0x47ec48,[_0x38c13e['wjjRI'],_0x38c13e['qyqLN'],_0x38c13e[_0xf9b75a(0xbc)]]));if(!globals[_0xf9b75a(0xf7)](_0x38c13e[_0xf9b75a(0xbf)])&&!globals['getGlobal'](_0x38c13e[_0xf9b75a(0xcf)])&&_0x542048)return;_0x2c4b41[_0xf9b75a(0x100)]=!![],_0x2c4b41[_0xf9b75a(0xec)]=_0x2c4b41[_0xf9b75a(0x102)],_0x2c4b41[_0xf9b75a(0x102)]=async _0x1ae348=>{const _0x87ecba=_0xf9b75a,_0x8a780d={'YiOuo':_0x38c13e[_0x87ecba(0xbf)],'hPSPL':_0x38c13e[_0x87ecba(0xb8)],'aTWaY':function(_0x4a06c7){const _0xeb27b8=_0x87ecba;return _0x38c13e[_0xeb27b8(0xdb)](_0x4a06c7);},'DXSOc':_0x38c13e[_0x87ecba(0xdc)],'MpgVg':function(_0x4fecd7,_0x6074a8){const _0x4fdc1e=_0x87ecba;return _0x38c13e[_0x4fdc1e(0xf0)](_0x4fecd7,_0x6074a8);},'amOfW':_0x38c13e[_0x87ecba(0xfd)],'RRtKx':_0x38c13e[_0x87ecba(0xcf)],'ySCFG':_0x38c13e[_0x87ecba(0xbd)],'zuQeY':function(_0x593e7b){const _0x4c5a50=_0x87ecba;return _0x38c13e[_0x4c5a50(0x8e)](_0x593e7b);}};try{const _0x5b3615={};_0x5b3615[_0x87ecba(0xb0)]=_0x1ae348[_0x87ecba(0xae)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x87ecba(0xe3)],async()=>{const _0x4e8881=_0x87ecba,_0x1cd050={};_0x1cd050[_0x4e8881(0xe1)]=_0x8a780d[_0x4e8881(0x103)];const _0x5cd8bf=_0x1cd050;if(!commandRepository['getTcgTokenStatus']()&&globals[_0x4e8881(0xf7)](_0x8a780d[_0x4e8881(0x103)])){const _0x245d0e=PerformanceTester[_0x4e8881(0xa6)](_0x8a780d[_0x4e8881(0xd1)],async()=>{const _0x5588f1=_0x4e8881;try{commandRepository[_0x5588f1(0xd3)](!![]),await aiSdkWrapper[_0x5588f1(0xde)]((await _0x2c4b41[_0x5588f1(0xa9)]())[_0x5588f1(0x94)]());const _0x20222f=globals['getGlobal'](_0x5cd8bf['DFLmY']);_0x20222f&&commandRepository[_0x5588f1(0xb4)]((await _0x2c4b41[_0x5588f1(0xa9)]())[_0x5588f1(0x94)]());}catch(_0x84de9){logger[_0x5588f1(0x91)](_0x5588f1(0xb9)+_0x84de9);}});await _0x8a780d[_0x4e8881(0xcd)](_0x245d0e);}},_0x5b3615)();const _0xf96662=await _0x2c4b41[_0x87ecba(0xec)](_0x1ae348);try{if(_0x38c13e['PCsYs'](_0x1ae348[_0x87ecba(0xae)],_0x38c13e[_0x87ecba(0xe6)])||_0x38c13e[_0x87ecba(0xff)](_0x1ae348[_0x87ecba(0xae)],_0x38c13e['KxrOR'])){const _0x408c35=_0x1ae348[_0x87ecba(0xe8)]&&_0x1ae348[_0x87ecba(0xe8)][_0x87ecba(0x9c)],_0x2302f5=_0x1ae348[_0x87ecba(0xe8)]&&_0x1ae348[_0x87ecba(0xe8)][_0x87ecba(0xe2)],_0x470b04=_0x2302f5&&util['format']('%j',_0x2302f5);if(_0x408c35&&_0x38c13e[_0x87ecba(0x9f)](typeof _0x408c35,_0x38c13e[_0x87ecba(0x95)])){const _0x3e9c73=constants[_0x87ecba(0x9a)][_0x87ecba(0xad)](_0x5cd140=>_0x408c35[_0x87ecba(0xb2)](_0x5cd140)||_0x470b04&&_0x470b04[_0x87ecba(0xb2)](_0x5cd140));if(_0x3e9c73){const _0x3b4467={};_0x3b4467[_0x87ecba(0xb0)]=_0x3e9c73,_0x3b4467[_0x87ecba(0xdd)]=_0x2302f5;const _0x1c3890={};_0x1c3890[_0x87ecba(0xbb)]=_0xf96662;const _0x389921={};_0x389921[_0x87ecba(0xe7)]=_0x3b4467,_0x389921[_0x87ecba(0xc5)]=_0x1c3890,automationLogger[_0x87ecba(0xfc)]('['+new Date()[_0x87ecba(0xfa)]()+_0x87ecba(0xba)+util['format']('%j',_0x389921));}}}}catch(_0x4e158c){logger[_0x87ecba(0xfc)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x4e158c[_0x87ecba(0xc7)]);}return await PerformanceTester[_0x87ecba(0xa6)](PerformanceDriverEvents[_0x87ecba(0x101)],async()=>{const _0xe017c=_0x87ecba;if(!helper['isBrowserstackInfra']()&&(commandRepository[_0xe017c(0xa3)]()||globals[_0xe017c(0xf7)](_0x8a780d[_0xe017c(0x98)]))&&_0x8a780d[_0xe017c(0xa8)](_0x1ae348[_0xe017c(0xae)],_0x8a780d[_0xe017c(0xfe)])&&!_0x1ae348[_0xe017c(0x104)]&&globals['getGlobal'](_0x8a780d[_0xe017c(0x103)])&&globals[_0xe017c(0xf7)](_0x8a780d[_0xe017c(0xdf)])){const _0x277325=new Date(),_0xe88457=PerformanceTester['measureWrapper'](_0x8a780d['ySCFG'],async()=>{const _0x641e4c=_0xe017c;return await aiSdkWrapper[_0x641e4c(0xa2)](_0x47ec48,_0x2c4b41,_0x1ae348);});await _0x8a780d[_0xe017c(0xca)](_0xe88457);}},{'command':_0x1ae348[_0x87ecba(0xae)]})(),_0xf96662;}catch(_0x1b0b11){await PerformanceTester[_0x87ecba(0xa6)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x41df02=_0x87ecba;logger[_0x41df02(0xc3)](_0x38c13e['etGaq']);try{if(!helper[_0x41df02(0xa1)]()&&(_0x38c13e[_0x41df02(0xf0)](_0x1b0b11[_0x41df02(0xd5)],_0x38c13e[_0x41df02(0xe5)])||_0x38c13e[_0x41df02(0xf0)](_0x1b0b11['name'],_0x38c13e[_0x41df02(0xb7)]))&&_0x38c13e[_0x41df02(0xff)](_0x1ae348[_0x41df02(0xae)],_0x38c13e[_0x41df02(0xfd)])&&commandRepository[_0x41df02(0xa3)]()&&globals['getGlobal'](_0x38c13e[_0x41df02(0xbf)])&&globals[_0x41df02(0xf7)](_0x38c13e[_0x41df02(0xcf)])){_0x38c13e['sXOih'](_0x1ae348['parameters_'][_0x41df02(0x8b)],_0x38c13e[_0x41df02(0xfb)])?logger[_0x41df02(0x90)](_0x38c13e[_0x41df02(0xc9)](_0x38c13e[_0x41df02(0xc9)](_0x38c13e[_0x41df02(0xac)],_0x1ae348[_0x41df02(0xe8)]['value']),_0x38c13e[_0x41df02(0xb6)])):logger['info'](_0x38c13e[_0x41df02(0xc9)](_0x38c13e[_0x41df02(0x89)](_0x38c13e[_0x41df02(0xc9)](_0x38c13e[_0x41df02(0xc9)](_0x38c13e['EbwBh'],_0x1ae348[_0x41df02(0xe8)][_0x41df02(0x8b)]),':\x20'),_0x1ae348[_0x41df02(0xe8)][_0x41df02(0x93)]),_0x38c13e[_0x41df02(0xb6)]));const _0x1b5daf=PerformanceTester[_0x41df02(0xa6)](_0x38c13e[_0x41df02(0x87)],async()=>{const _0x49ee89=_0x41df02;return await aiSdkWrapper[_0x49ee89(0xcb)](_0x47ec48,_0x2c4b41,_0x1ae348);}),_0x46fa7d=new Date(),{locatorType:_0x651b8a,locatorValue:_0xb36790,commandHealed:_0x1358e5}=await _0x38c13e[_0x41df02(0x9d)](_0x1b5daf);if(_0x38c13e[_0x41df02(0xc8)](_0x651b8a,_0xb36790)){_0x1ae348[_0x41df02(0xe8)][_0x41df02(0x8b)]=_0x651b8a,_0x1ae348[_0x41df02(0xe8)][_0x41df02(0x93)]=_0xb36790,_0x1ae348['skipHealingSuccess']=!![];const _0x1fd1fb=_0x2c4b41[_0x41df02(0x102)](_0x1ae348);return _0x38c13e['bjSdr'](_0x651b8a,_0x38c13e[_0x41df02(0xfb)])?logger['info'](_0x38c13e[_0x41df02(0xab)](_0x38c13e[_0x41df02(0xa7)],_0xb36790)):logger[_0x41df02(0x90)](_0x38c13e[_0x41df02(0x9b)](_0x38c13e[_0x41df02(0xf5)](_0x38c13e[_0x41df02(0xf4)](_0x38c13e['NLtVr'],_0x651b8a),':\x20'),_0xb36790)),_0x1fd1fb;}else!_0x1358e5&&(_0x38c13e[_0x41df02(0xf6)](_0x651b8a,_0x38c13e[_0x41df02(0xfb)])?logger['info'](_0x38c13e[_0x41df02(0xab)](_0x38c13e[_0x41df02(0xc6)],_0x1ae348['parameters_'][_0x41df02(0x93)])):logger[_0x41df02(0x90)](_0x38c13e[_0x41df02(0xeb)](_0x38c13e[_0x41df02(0xd8)](_0x38c13e[_0x41df02(0xed)](_0x38c13e[_0x41df02(0x105)],_0x1ae348[_0x41df02(0xe8)][_0x41df02(0x8b)]),':\x20'),_0x1ae348['parameters_'][_0x41df02(0x93)])));}!_0x542048&&_0x38c13e['CZZXZ'](_0x1ae348[_0x41df02(0xae)],_0x38c13e[_0x41df02(0xb3)])&&helper[_0x41df02(0xcc)](_0x1ae348,[_0x38c13e['Roszz'],_0x38c13e['VoKpK']])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x41df02(0xad)](_0x20935e=>{return _0x1b0b11['toString']()['includes'](_0x20935e);})&&helper[_0x41df02(0xf8)](_0x1ae348['parameters_'][_0x41df02(0xc0)],!![]);}catch(_0x1c2493){logger[_0x41df02(0xc3)](_0x38c13e[_0x41df02(0xd7)],_0x1c2493);}},{'success':![],'failure':_0x1b0b11})();throw _0x1b0b11;}};};
|
|
1
|
+
const a122_0x39528c=a122_0x48e5;(function(_0x4da912,_0x4e7a9e){const _0x44b7cc=a122_0x48e5,_0x449576=_0x4da912();while(!![]){try{const _0x55f830=-parseInt(_0x44b7cc(0x11b))/0x1*(parseInt(_0x44b7cc(0x164))/0x2)+parseInt(_0x44b7cc(0x117))/0x3+-parseInt(_0x44b7cc(0x133))/0x4+parseInt(_0x44b7cc(0x142))/0x5*(parseInt(_0x44b7cc(0x186))/0x6)+-parseInt(_0x44b7cc(0x113))/0x7*(parseInt(_0x44b7cc(0x14a))/0x8)+parseInt(_0x44b7cc(0x161))/0x9+parseInt(_0x44b7cc(0x181))/0xa;if(_0x55f830===_0x4e7a9e)break;else _0x449576['push'](_0x449576['shift']());}catch(_0x575b9a){_0x449576['push'](_0x449576['shift']());}}}(a122_0x4de9,0x9f40a));function a122_0x48e5(_0x1b9536,_0x4d53c7){const _0x4de9a8=a122_0x4de9();return a122_0x48e5=function(_0x48e541,_0x1cafd8){_0x48e541=_0x48e541-0x110;let _0x44e204=_0x4de9a8[_0x48e541];return _0x44e204;},a122_0x48e5(_0x1b9536,_0x4d53c7);}function a122_0x4de9(){const _0x20d7f0=['parameters_','./performance/constants','isBrowserstackInfra','./logger','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','includes','setTcgToken','UkNgJ','hemXP','Healing\x20failed\x20for\x20command\x20using\x20','bVPTw','nestedKeyValue','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','toISOString','browserstack.local','][\x20SDK-AUTOMATION\x20]\x20','zCGIS','iidCr','initExecute','IpMUA','SLkTG','gYIxR','using','Error\x20in\x20handling\x20TCG\x20Auth:\x20','14607670prHNUP','CLSDH','./ai-sdk/aiSdkWrapper','handleSuccess','uaPIa','6YHwlQb','response','name_','DIkwa','local','taJPp','MGidH','css\x20selector','Successfully\x20healed\x20command\x20using\x20new\x20','oCfGt','NxJar','measureWrapper','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','capability','hEKnS','NoSuchElementError','epTlv','TcUsm','YouHQ','qhbvp','getId','NPNti','VtkBo','findElement\x20command\x20failed\x20with\x20cssPath:\x20','format','119XeWTAn','ujysK','../bin/utils/constants','LXJlY','158229CZQjHe','dcjjs','RSsrD','iccFX','65173VFNnTJ','isSelfHealEnabled','nTwgl','Gxazq','iVZut','kgVRe','GESLJ','getSession','xmbyL','POST_EXECUTE','util','silly','setAiSessionTimeStamp','pRyIf','aiHeal_isHealingEnabled','njjDK','pqWEO','UjWsb','bstack:options','tqhPQ','DEcBO','hwUMg','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','DyqFx','3161812jFKAyb',';\x20Trying\x20to\x20heal','name','rtDxk','UlxuI','string','./globals','aiHeal:findElementSuccess','YfxCu','debug','SordM','FUNqQ','QydTt','aiHeal:findElementFailure','skipHealingSuccess','5587195mImCKR','aiHeal_isAuthenticated','XiXkO','value','info','overrideExecute','args','ihSwh','535368VmBxvK','BeTxo','ugNBI','execute','url','wKeiq','GDnis','findElement\x20command\x20failed\x20with\x20','sHupd','xEWhv','fxqGC','body','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','request','JavascriptError','PBByy','dBrcV','handleFailure','executeScript','patchExecute','ANxLd','Zvhqt','LQbNu','4237587iGZEXp','getGlobal','WLzrz','16HTmpNP','error','oMxzQ','rrXux','command'];a122_0x4de9=function(){return _0x20d7f0;};return a122_0x4de9();}const {aiSdkWrapper}=require(a122_0x39528c(0x183)),{commandRepository}=require('./ai-sdk/autoHealHelper'),PerformanceTester=require('./performance/performance-tester'),globals=require(a122_0x39528c(0x139)),{winstonLogger:logger,automationLogger}=require(a122_0x39528c(0x16c)),helper=require('./helper'),constants=require(a122_0x39528c(0x115)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a122_0x39528c(0x16a)),util=require(a122_0x39528c(0x125));exports[a122_0x39528c(0x147)]=(_0x2b87fd,_0x417f83)=>{const _0x3adf10=a122_0x39528c,_0x302c07={'QydTt':'aiSdk_defaultLogDataEnabled','DEcBO':function(_0xb39b93,_0x158728){return _0xb39b93===_0x158728;},'nTwgl':'findElement','RSsrD':_0x3adf10(0x143),'Gxazq':_0x3adf10(0x129),'hwUMg':_0x3adf10(0x13a),'fxqGC':function(_0x3e12ea){return _0x3e12ea();},'FUNqQ':'aiHeal:setToken','dcjjs':_0x3adf10(0x156),'VtkBo':_0x3adf10(0x195),'ugNBI':_0x3adf10(0x158),'epTlv':function(_0x491f7c,_0xaffbf8){return _0x491f7c===_0xaffbf8;},'xEWhv':function(_0x179311,_0x5d56b0){return _0x179311===_0x5d56b0;},'oCfGt':_0x3adf10(0x18d),'GDnis':function(_0x981127,_0x17d06f){return _0x981127+_0x17d06f;},'rtDxk':_0x3adf10(0x111),'ANxLd':_0x3adf10(0x134),'oMxzQ':_0x3adf10(0x151),'dBrcV':_0x3adf10(0x140),'DeeJF':function(_0x2f20f4,_0x179c22){return _0x2f20f4&&_0x179c22;},'xmbyL':_0x3adf10(0x16d),'MGidH':function(_0x562b40,_0x244151){return _0x562b40+_0x244151;},'iVZut':function(_0x4b4b10,_0x43e888){return _0x4b4b10+_0x43e888;},'pRyIf':_0x3adf10(0x18e),'BeTxo':_0x3adf10(0x131),'kgVRe':_0x3adf10(0x172),'iidCr':function(_0x470a09,_0x1b1d61){return _0x470a09===_0x1b1d61;},'VowmB':'get','ujysK':_0x3adf10(0x169),'rPYvO':_0x3adf10(0x14e),'wIrzY':_0x3adf10(0x192),'cujxh':function(_0x4d7a4a,_0x379394){return _0x4d7a4a===_0x379394;},'bdiTJ':'executeAsyncScript','UkNgJ':function(_0x4180de,_0x248911){return _0x4180de===_0x248911;},'NPNti':_0x3adf10(0x15c),'qhbvp':_0x3adf10(0x138),'Luaup':_0x3adf10(0x193),'DIkwa':_0x3adf10(0x177),'aKYeJ':_0x3adf10(0x12d),'YfxCu':_0x3adf10(0x18a)},_0x5d4092=_0x2b87fd[_0x3adf10(0x15d)]||(helper['nestedKeyValue'](_0x417f83,[_0x302c07['Luaup'],_0x302c07[_0x3adf10(0x189)]])||helper[_0x3adf10(0x174)](_0x417f83,[_0x302c07['Luaup'],_0x302c07['aKYeJ'],_0x302c07[_0x3adf10(0x13b)]]));if(!globals['getGlobal'](_0x302c07[_0x3adf10(0x119)])&&!globals[_0x3adf10(0x162)](_0x302c07[_0x3adf10(0x11e)])&&_0x5d4092)return;_0x2b87fd['patchExecute']=!![],_0x2b87fd['initExecute']=_0x2b87fd[_0x3adf10(0x14d)],_0x2b87fd['execute']=async _0x3d3633=>{const _0x575bf2=_0x3adf10,_0xe24680={'rrXux':_0x302c07[_0x575bf2(0x119)],'LXJlY':_0x302c07[_0x575bf2(0x13e)],'taJPp':function(_0x2e7446){const _0x2b795c=_0x575bf2;return _0x302c07[_0x2b795c(0x154)](_0x2e7446);},'TcUsm':_0x302c07[_0x575bf2(0x118)],'CLSDH':function(_0x32f40a,_0x107cef){const _0x4bbe7f=_0x575bf2;return _0x302c07[_0x4bbe7f(0x12f)](_0x32f40a,_0x107cef);},'NxJar':_0x302c07[_0x575bf2(0x110)],'gYIxR':_0x302c07[_0x575bf2(0x14c)],'PBByy':function(_0x3d450e,_0x60f037){const _0x5efe9d=_0x575bf2;return _0x302c07[_0x5efe9d(0x196)](_0x3d450e,_0x60f037);},'WLzrz':_0x302c07[_0x575bf2(0x11d)],'UlxuI':_0x302c07[_0x575bf2(0x11e)],'Zvhqt':function(_0x2e55d5,_0x2bd038){return _0x302c07['xEWhv'](_0x2e55d5,_0x2bd038);},'DyqFx':_0x302c07[_0x575bf2(0x18f)],'iccFX':function(_0x1f66f9,_0x528453){return _0x302c07['GDnis'](_0x1f66f9,_0x528453);},'XiXkO':_0x302c07[_0x575bf2(0x136)],'hemXP':_0x302c07[_0x575bf2(0x15e)],'ihSwh':function(_0x1c2b75,_0x524eee){return _0x302c07['GDnis'](_0x1c2b75,_0x524eee);},'wKeiq':function(_0x3395c8,_0x5bb667){return _0x302c07['GDnis'](_0x3395c8,_0x5bb667);},'sHupd':_0x302c07[_0x575bf2(0x166)],'bVPTw':_0x302c07[_0x575bf2(0x15a)],'pqWEO':function(_0xc6d1c5,_0x3d7e7f){return _0x302c07['DeeJF'](_0xc6d1c5,_0x3d7e7f);},'hEKnS':function(_0x3ed9c4,_0x463535){const _0x30cdef=_0x575bf2;return _0x302c07[_0x30cdef(0x150)](_0x3ed9c4,_0x463535);},'YouHQ':_0x302c07[_0x575bf2(0x123)],'SLkTG':function(_0x11ce8d,_0x50bd29){const _0x3c1f71=_0x575bf2;return _0x302c07[_0x3c1f71(0x18c)](_0x11ce8d,_0x50bd29);},'njjDK':function(_0x2f2343,_0x1a2fbc){return _0x302c07['iVZut'](_0x2f2343,_0x1a2fbc);},'tqhPQ':_0x302c07[_0x575bf2(0x128)],'fxtuT':function(_0x5fea36,_0x342829){const _0xb46cd1=_0x575bf2;return _0x302c07[_0xb46cd1(0x153)](_0x5fea36,_0x342829);},'LQbNu':function(_0x112b1a,_0x439f78){const _0x5b87cd=_0x575bf2;return _0x302c07[_0x5b87cd(0x11f)](_0x112b1a,_0x439f78);},'SordM':_0x302c07[_0x575bf2(0x14b)],'QliAT':function(_0x7d1135,_0x25ae02){const _0x160b8e=_0x575bf2;return _0x302c07[_0x160b8e(0x150)](_0x7d1135,_0x25ae02);},'UjWsb':_0x302c07[_0x575bf2(0x120)],'ktsLX':function(_0xc1874c,_0x5970fd){const _0x59e635=_0x575bf2;return _0x302c07[_0x59e635(0x17a)](_0xc1874c,_0x5970fd);},'GESLJ':_0x302c07['VowmB'],'uaPIa':_0x302c07[_0x575bf2(0x114)],'IpMUA':_0x302c07['rPYvO'],'zCGIS':_0x302c07['wIrzY']};try{const _0x550028={};_0x550028[_0x575bf2(0x168)]=_0x3d3633[_0x575bf2(0x188)],await PerformanceTester[_0x575bf2(0x191)](PerformanceDriverEvents['PRE_EXECUTE'],async()=>{const _0x41ee82=_0x575bf2;if(!commandRepository['getTcgTokenStatus']()&&globals[_0x41ee82(0x162)](_0xe24680[_0x41ee82(0x167)])){const _0x4d4b70=PerformanceTester[_0x41ee82(0x191)](_0xe24680[_0x41ee82(0x116)],async()=>{const _0x16a430=_0x41ee82;try{commandRepository['setTcgTokenStatus'](!![]),await aiSdkWrapper[_0x16a430(0x16f)]((await _0x2b87fd[_0x16a430(0x122)]())[_0x16a430(0x19a)]());const _0x2b3bdd=globals[_0x16a430(0x162)](_0xe24680[_0x16a430(0x167)]);_0x2b3bdd&&commandRepository[_0x16a430(0x127)]((await _0x2b87fd[_0x16a430(0x122)]())['getId']());}catch(_0x2a89ab){logger[_0x16a430(0x165)](_0x16a430(0x180)+_0x2a89ab);}});await _0xe24680[_0x41ee82(0x18b)](_0x4d4b70);}},_0x550028)();const _0xc8bfe9=await _0x2b87fd[_0x575bf2(0x17b)](_0x3d3633);try{if(_0x302c07['cujxh'](_0x3d3633[_0x575bf2(0x188)],_0x302c07['bdiTJ'])||_0x302c07[_0x575bf2(0x170)](_0x3d3633['name_'],_0x302c07[_0x575bf2(0x19b)])){const _0x5d1468=_0x3d3633[_0x575bf2(0x169)]&&_0x3d3633[_0x575bf2(0x169)]['script'],_0x20750f=_0x3d3633[_0x575bf2(0x169)]&&_0x3d3633[_0x575bf2(0x169)][_0x575bf2(0x148)],_0x4e0398=_0x20750f&&util[_0x575bf2(0x112)]('%j',_0x20750f);if(_0x5d1468&&_0x302c07[_0x575bf2(0x170)](typeof _0x5d1468,_0x302c07[_0x575bf2(0x199)])){const _0x32d1f4=constants['AUTOMATION_LOG_COMMANDS']['find'](_0xdc583e=>_0x5d1468['includes'](_0xdc583e)||_0x4e0398&&_0x4e0398['includes'](_0xdc583e));if(_0x32d1f4){const _0x564fbf={};_0x564fbf[_0x575bf2(0x168)]=_0x32d1f4,_0x564fbf['parameters']=_0x20750f;const _0x3f81d6={};_0x3f81d6[_0x575bf2(0x155)]=_0xc8bfe9;const _0x3a0ee8={};_0x3a0ee8[_0x575bf2(0x157)]=_0x564fbf,_0x3a0ee8[_0x575bf2(0x187)]=_0x3f81d6,automationLogger[_0x575bf2(0x126)]('['+new Date()[_0x575bf2(0x176)]()+_0x575bf2(0x178)+util[_0x575bf2(0x112)]('%j',_0x3a0ee8));}}}}catch(_0x2d4815){logger[_0x575bf2(0x126)](_0x575bf2(0x175)+_0x2d4815['message']);}return await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x575bf2(0x124)],async()=>{const _0x59ee61=_0x575bf2;if(!helper[_0x59ee61(0x16b)]()&&(commandRepository[_0x59ee61(0x11c)]()||globals[_0x59ee61(0x162)](_0x302c07[_0x59ee61(0x13f)]))&&_0x302c07[_0x59ee61(0x12f)](_0x3d3633[_0x59ee61(0x188)],_0x302c07[_0x59ee61(0x11d)])&&!_0x3d3633[_0x59ee61(0x141)]&&globals['getGlobal'](_0x302c07[_0x59ee61(0x119)])&&globals[_0x59ee61(0x162)](_0x302c07['Gxazq'])){const _0x3857d3=new Date(),_0x3d5289=PerformanceTester[_0x59ee61(0x191)](_0x302c07[_0x59ee61(0x130)],async()=>{const _0x2406e0=_0x59ee61;return await aiSdkWrapper[_0x2406e0(0x184)](_0x417f83,_0x2b87fd,_0x3d3633);});await _0x302c07[_0x59ee61(0x154)](_0x3d5289);}},{'command':_0x3d3633[_0x575bf2(0x188)]})(),_0xc8bfe9;}catch(_0x235fe4){await PerformanceTester[_0x575bf2(0x191)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x27578d=_0x575bf2;logger[_0x27578d(0x13c)](_0xe24680[_0x27578d(0x197)]);try{if(!helper[_0x27578d(0x16b)]()&&(_0xe24680[_0x27578d(0x182)](_0x235fe4[_0x27578d(0x135)],_0xe24680[_0x27578d(0x190)])||_0xe24680['CLSDH'](_0x235fe4[_0x27578d(0x135)],_0xe24680[_0x27578d(0x17e)]))&&_0xe24680[_0x27578d(0x159)](_0x3d3633[_0x27578d(0x188)],_0xe24680[_0x27578d(0x163)])&&commandRepository[_0x27578d(0x11c)]()&&globals['getGlobal'](_0xe24680[_0x27578d(0x167)])&&globals[_0x27578d(0x162)](_0xe24680[_0x27578d(0x137)])){_0xe24680['Zvhqt'](_0x3d3633[_0x27578d(0x169)][_0x27578d(0x17f)],_0xe24680['DyqFx'])?logger['info'](_0xe24680[_0x27578d(0x11a)](_0xe24680[_0x27578d(0x11a)](_0xe24680[_0x27578d(0x144)],_0x3d3633[_0x27578d(0x169)][_0x27578d(0x145)]),_0xe24680[_0x27578d(0x171)])):logger[_0x27578d(0x146)](_0xe24680[_0x27578d(0x149)](_0xe24680[_0x27578d(0x11a)](_0xe24680[_0x27578d(0x14f)](_0xe24680['ihSwh'](_0xe24680[_0x27578d(0x152)],_0x3d3633['parameters_'][_0x27578d(0x17f)]),':\x20'),_0x3d3633[_0x27578d(0x169)][_0x27578d(0x145)]),_0xe24680[_0x27578d(0x171)]));const _0x46f476=PerformanceTester[_0x27578d(0x191)](_0xe24680[_0x27578d(0x173)],async()=>{const _0x27cca2=_0x27578d;return await aiSdkWrapper[_0x27cca2(0x15b)](_0x417f83,_0x2b87fd,_0x3d3633);}),_0x5301a9=new Date(),{locatorType:_0xc267c4,locatorValue:_0x1727e4,commandHealed:_0x330a50}=await _0xe24680[_0x27578d(0x18b)](_0x46f476);if(_0xe24680[_0x27578d(0x12b)](_0xc267c4,_0x1727e4)){_0x3d3633['parameters_'][_0x27578d(0x17f)]=_0xc267c4,_0x3d3633[_0x27578d(0x169)][_0x27578d(0x145)]=_0x1727e4,_0x3d3633[_0x27578d(0x141)]=!![];const _0x4cb211=_0x2b87fd['execute'](_0x3d3633);return _0xe24680[_0x27578d(0x15f)](_0xc267c4,_0xe24680['DyqFx'])?logger['info'](_0xe24680[_0x27578d(0x194)](_0xe24680[_0x27578d(0x198)],_0x1727e4)):logger[_0x27578d(0x146)](_0xe24680[_0x27578d(0x17d)](_0xe24680[_0x27578d(0x12a)](_0xe24680['hEKnS'](_0xe24680[_0x27578d(0x12e)],_0xc267c4),':\x20'),_0x1727e4)),_0x4cb211;}else!_0x330a50&&(_0xe24680['fxtuT'](_0xc267c4,_0xe24680[_0x27578d(0x132)])?logger[_0x27578d(0x146)](_0xe24680[_0x27578d(0x160)](_0xe24680[_0x27578d(0x13d)],_0x3d3633[_0x27578d(0x169)][_0x27578d(0x145)])):logger[_0x27578d(0x146)](_0xe24680[_0x27578d(0x160)](_0xe24680['QliAT'](_0xe24680[_0x27578d(0x11a)](_0xe24680[_0x27578d(0x12c)],_0x3d3633[_0x27578d(0x169)]['using']),':\x20'),_0x3d3633[_0x27578d(0x169)][_0x27578d(0x145)])));}!_0x5d4092&&_0xe24680['ktsLX'](_0x3d3633['name_'],_0xe24680[_0x27578d(0x121)])&&helper['nestedKeyValue'](_0x3d3633,[_0xe24680[_0x27578d(0x185)],_0xe24680[_0x27578d(0x17c)]])&&!!constants['NUDGE_LOCAL_ERRORS']['find'](_0x39951a=>{const _0x3da6c2=_0x27578d;return _0x235fe4['toString']()[_0x3da6c2(0x16e)](_0x39951a);})&&helper['getNudgeLocalNotSetError'](_0x3d3633[_0x27578d(0x169)]['url'],!![]);}catch(_0x2ccabf){logger[_0x27578d(0x13c)](_0xe24680[_0x27578d(0x179)],_0x2ccabf);}},{'success':![],'failure':_0x235fe4})();throw _0x235fe4;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x133d(){const _0x14c8ef=['patchScreenshot','bs:addLog:','overrideQuit','1111rbbqhI','BS_TESTOPS_ALLOW_SCREENSHOTS','JLlJy','toISOString','start','30XlSNGv','3747VROWvD','8QCkFqg','patchQuit','AEjiN','./performance/performance-tester','emit','O11y_EVENTS','./performance/constants','quit','5389452Ovwseq','initQuit','quitCount_','YXnbN','true','takeScreenshot','hNelc','overrideTakeScreenshot','45470Erzmaq','lDAYh','qTnWH','env','2644258agtQEK','TAKE_SCREENSHOT','end','catch','1YrYKCa','820LbuypH','15967953NJoDJR','pid','623190LMONKB','IYDLW','2867543cgRVgL','initScreenshot'];a123_0x133d=function(){return _0x14c8ef;};return a123_0x133d();}const a123_0x5379e0=a123_0x5659;function a123_0x5659(_0x146f77,_0x465f3f){const _0x133da0=a123_0x133d();return a123_0x5659=function(_0x565980,_0x4a5c15){_0x565980=_0x565980-0x161;let _0x5b849e=_0x133da0[_0x565980];return _0x5b849e;},a123_0x5659(_0x146f77,_0x465f3f);}(function(_0x3b8917,_0x2542ff){const _0x5072b7=a123_0x5659,_0x410366=_0x3b8917();while(!![]){try{const _0x43bb95=parseInt(_0x5072b7(0x16d))/0x1*(-parseInt(_0x5072b7(0x169))/0x2)+parseInt(_0x5072b7(0x17e))/0x3*(parseInt(_0x5072b7(0x16e))/0x4)+parseInt(_0x5072b7(0x171))/0x5*(parseInt(_0x5072b7(0x17d))/0x6)+-parseInt(_0x5072b7(0x173))/0x7+-parseInt(_0x5072b7(0x17f))/0x8*(-parseInt(_0x5072b7(0x16f))/0x9)+parseInt(_0x5072b7(0x165))/0xa*(-parseInt(_0x5072b7(0x178))/0xb)+parseInt(_0x5072b7(0x187))/0xc;if(_0x43bb95===_0x2542ff)break;else _0x410366['push'](_0x410366['shift']());}catch(_0x920292){_0x410366['push'](_0x410366['shift']());}}}(a123_0x133d,0xde8bc));const PerformanceTester=require(a123_0x5379e0(0x182)),O11yEvents=require(a123_0x5379e0(0x185))[a123_0x5379e0(0x184)];exports[a123_0x5379e0(0x164)]=_0x1edf8f=>{const _0x12c23b=a123_0x5379e0,_0x156c73={'YXnbN':'TEST_SCREENSHOT','hNelc':function(_0x39694d,_0x352768){return _0x39694d(_0x352768);},'IYDLW':function(_0x8dc53e,_0x13112b){return _0x8dc53e(_0x13112b);},'UlwCq':function(_0xe7639a,_0x12dc40){return _0xe7639a!==_0x12dc40;},'AEjiN':_0x12c23b(0x161)};if(_0x156c73['UlwCq'](process[_0x12c23b(0x168)][_0x12c23b(0x179)],_0x156c73[_0x12c23b(0x181)]))return;if(_0x1edf8f[_0x12c23b(0x175)])return;_0x1edf8f[_0x12c23b(0x175)]=!![],_0x1edf8f[_0x12c23b(0x174)]=_0x1edf8f['takeScreenshot'],_0x1edf8f[_0x12c23b(0x162)]=()=>{const _0x2e035c=_0x12c23b,_0x62873d={'NyooV':_0x156c73[_0x2e035c(0x18a)],'pfJsf':function(_0x2e66b6,_0x273c2d){const _0x31dce6=_0x2e035c;return _0x156c73[_0x31dce6(0x163)](_0x2e66b6,_0x273c2d);},'JLlJy':function(_0x45c31f,_0x3f0db8){const _0x1a3a8d=_0x2e035c;return _0x156c73[_0x1a3a8d(0x172)](_0x45c31f,_0x3f0db8);}};return new Promise(function(_0x315be9,_0x4bbd23){const _0x1e5ed6=_0x2e035c,_0x40948b={'FAtzy':function(_0x28a0db,_0x5bdd10){const _0x60cddf=a123_0x5659;return _0x62873d[_0x60cddf(0x17a)](_0x28a0db,_0x5bdd10);}};_0x1edf8f[_0x1e5ed6(0x174)]()['then'](_0x20ad6d=>{const _0x4cd53d=_0x1e5ed6;PerformanceTester[_0x4cd53d(0x17c)](O11yEvents[_0x4cd53d(0x16a)]),process[_0x4cd53d(0x183)](_0x4cd53d(0x176)+process[_0x4cd53d(0x170)],{'timestamp':new Date()[_0x4cd53d(0x17b)](),'message':_0x20ad6d,'kind':_0x62873d['NyooV']}),_0x62873d['pfJsf'](_0x315be9,_0x20ad6d),PerformanceTester[_0x4cd53d(0x16b)](O11yEvents['TAKE_SCREENSHOT']);})[_0x1e5ed6(0x16c)](_0x164946=>{const _0x18b53c=_0x1e5ed6;PerformanceTester['end'](O11yEvents[_0x18b53c(0x16a)]),_0x40948b['FAtzy'](_0x4bbd23,_0x164946);});});};},exports[a123_0x5379e0(0x177)]=(_0x11cfa7,_0x402fcf=null)=>{const _0x23bd46=a123_0x5379e0,_0x18180d={'YMeJx':function(_0x52cb66){return _0x52cb66();},'lDAYh':function(_0x1b658c,_0x3eba06){return _0x1b658c>_0x3eba06;},'qTnWH':function(_0x1fcfcd,_0x41e00e){return _0x1fcfcd>_0x41e00e;}};if(_0x11cfa7[_0x23bd46(0x180)])return;_0x11cfa7[_0x23bd46(0x180)]=!![],_0x11cfa7['initQuit']=_0x11cfa7[_0x23bd46(0x186)],_0x11cfa7[_0x23bd46(0x186)]=()=>{const _0x10cf19=_0x23bd46;if(_0x402fcf){_0x402fcf[_0x10cf19(0x189)]+=0x1;if(_0x18180d[_0x10cf19(0x166)](_0x402fcf[_0x10cf19(0x189)],0x1))return _0x11cfa7[_0x10cf19(0x188)]();}else{_0x11cfa7['quitCount_']+=0x1;if(_0x18180d[_0x10cf19(0x167)](_0x11cfa7[_0x10cf19(0x189)],0x1))return _0x11cfa7[_0x10cf19(0x188)]();}return new Promise(function(_0x29a8ac){_0x18180d['YMeJx'](_0x29a8ac);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x275fde=a124_0xb693;function a124_0xb693(_0x24397d,_0x26cde6){const _0x3eac0d=a124_0x3eac();return a124_0xb693=function(_0xb693a4,_0x1760a4){_0xb693a4=_0xb693a4-0x130;let _0x39b97a=_0x3eac0d[_0xb693a4];return _0x39b97a;},a124_0xb693(_0x24397d,_0x26cde6);}function a124_0x3eac(){const _0x9b5cfc=['LAKDe','1079449xFyiEq','GET','1303720jBPoUO','exports','115315BPedgU','1232274pyaRFQ','tmpdir','3SgnxtA','exec:stop','hVXrC','PERCY_SERVER_ADDRESS','../helper','GZFWW','1324032yVulzj','iilMC','percyOptions','itxHe','fpDKW','../../helpers/testhub/constants',':start','healthcheck','nodeRequest','close','join','sQLKG','RarYI','../logger','error','../../helpers/performance/performance-tester','349172mdWuuO','pipe','version','eFrpb','Percy\x20fetch\x20token\x20success','stdout','percy/healthcheck','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','ccHTM','32396ADJBNU','WdsAe','gJNfn','app','winstonLogger','createPercyConfig','getBinaryPath','isProcessRunning','writeFile','debug','./PercyBinary','wXqXe','ENV_VAR','createWriteStream','env','bUwoS','36gQfyqj','percy.log','BAPaE','flags','isRunning','UKVWv','DOWNLOAD','stop','Percy\x20healthcheck\x20successful','jqpCl','nWULw','child_process','automate','jeTUn','data','start','Percy\x20config\x20created\x20at\x20','assign','fetchPercyToken'];a124_0x3eac=function(){return _0x9b5cfc;};return a124_0x3eac();}(function(_0x259e72,_0x1f5552){const _0x47b933=a124_0xb693,_0x2a6f0f=_0x259e72();while(!![]){try{const _0x5c6478=-parseInt(_0x47b933(0x156))/0x1+-parseInt(_0x47b933(0x178))/0x2+-parseInt(_0x47b933(0x159))/0x3*(parseInt(_0x47b933(0x16f))/0x4)+-parseInt(_0x47b933(0x154))/0x5+parseInt(_0x47b933(0x157))/0x6+-parseInt(_0x47b933(0x152))/0x7+-parseInt(_0x47b933(0x15f))/0x8*(-parseInt(_0x47b933(0x13e))/0x9);if(_0x5c6478===_0x1f5552)break;else _0x2a6f0f['push'](_0x2a6f0f['shift']());}catch(_0x89d5ec){_0x2a6f0f['push'](_0x2a6f0f['shift']());}}}(a124_0x3eac,0x390a6));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a124_0x275fde(0x149)),helper=require(a124_0x275fde(0x15d)),logger=require(a124_0x275fde(0x16c))[a124_0x275fde(0x132)],{getLogDir}=require(a124_0x275fde(0x16c)),testHubConstants=require(a124_0x275fde(0x164)),PerformanceTester=require(a124_0x275fde(0x16e)),{PERCY_EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),PercyBinary=require(a124_0x275fde(0x138));class Percy{#logfile=path['join'](getLogDir(),a124_0x275fde(0x13f));#address=process[a124_0x275fde(0x13c)][a124_0x275fde(0x15c)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a124_0x275fde(0x135)]=![];constructor(_0x3843c5){this.#config=_0x3843c5,!!_0x3843c5['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x5a410=a124_0x275fde;if(!this.#binaryPath){const _0x2f3c7a=new PercyBinary();PerformanceTester[_0x5a410(0x14d)](PerformanceEvents[_0x5a410(0x144)]),this.#binaryPath=await _0x2f3c7a[_0x5a410(0x134)](this.#config),PerformanceTester['end'](PerformanceEvents[_0x5a410(0x144)]);}return this.#binaryPath;}async #sleep(_0x4cc5d){return new Promise(_0x239cdf=>setTimeout(_0x239cdf,_0x4cc5d));}async[a124_0x275fde(0x166)](){const _0x192000=a124_0x275fde,_0x4c5d87={};_0x4c5d87[_0x192000(0x143)]=_0x192000(0x153),_0x4c5d87['BAPaE']=_0x192000(0x175);const _0x23d27c=_0x4c5d87;try{const _0x1287f8=await helper['nodeRequest'](_0x23d27c['UKVWv'],_0x23d27c[_0x192000(0x140)],null,null,this.#address);if(_0x1287f8)return!![];}catch(_0x37416e){return![];}}async[a124_0x275fde(0x14d)](){const _0x5ea823=a124_0x275fde,_0xd67f45={'nWULw':'app:exec','itxHe':'exec','FsuLm':function(_0x1b2f99,_0x2e8968,_0x3af696,_0xc2446c){return _0x1b2f99(_0x2e8968,_0x3af696,_0xc2446c);},'jqpCl':_0x5ea823(0x168),'RarYI':_0x5ea823(0x146)},_0x30aa8e=await this.#getBinaryPath(),_0x35dd72={};_0x35dd72[_0x5ea823(0x141)]='a',this.#logStream=fs[_0x5ea823(0x13b)](this.#logfile,_0x35dd72);const _0x32f17b=await this['fetchPercyToken'](),_0x14c8d9=await this[_0x5ea823(0x133)]();if(!_0x32f17b)return![];const _0x215107=[(this.#isApp?_0xd67f45[_0x5ea823(0x148)]:_0xd67f45[_0x5ea823(0x162)])+_0x5ea823(0x165)];_0x14c8d9&&_0x215107['push']('-c',_0x14c8d9);this.#proc=_0xd67f45['FsuLm'](spawn,_0x30aa8e,_0x215107,{'env':Object[_0x5ea823(0x14f)](process[_0x5ea823(0x13c)],{'PERCY_TOKEN':_0x32f17b,'TH_BUILD_UUID':process[_0x5ea823(0x13c)][testHubConstants[_0x5ea823(0x13a)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x5ea823(0x174)][_0x5ea823(0x170)](this.#logStream),this.#proc['stderr'][_0x5ea823(0x170)](this.#logStream),this[_0x5ea823(0x135)]=!![];var _0x5aaa70=this;this.#proc['on'](_0xd67f45[_0x5ea823(0x147)],function(_0x1d0280){_0x5aaa70['isProcessRunning']=![];});do{const _0x19d5e5=await this[_0x5ea823(0x166)]();if(_0x19d5e5)return logger[_0x5ea823(0x137)](_0xd67f45[_0x5ea823(0x16b)]),!![];await this.#sleep(0x3e8);}while(this[_0x5ea823(0x135)]);return![];}async[a124_0x275fde(0x145)](){const _0x4c08f4=a124_0x275fde,_0x10ea6b={'NIWOs':function(_0x54c33d,_0x510ca8){return _0x54c33d(_0x510ca8);},'GZFWW':function(_0x1ef140,_0x43d05c,_0x2dbe64){return _0x1ef140(_0x43d05c,_0x2dbe64);},'wXqXe':_0x4c08f4(0x15a),'YTiuh':_0x4c08f4(0x168)},_0x567397=await this.#getBinaryPath();return new Promise((_0x128f26,_0x310726)=>{const _0x4af8fc=_0x4c08f4,_0x3e7b3e=_0x10ea6b[_0x4af8fc(0x15e)](spawn,_0x567397,[_0x10ea6b[_0x4af8fc(0x139)]]);_0x3e7b3e['on'](_0x10ea6b['YTiuh'],_0x5da446=>{const _0x26ed1b=_0x4af8fc;this[_0x26ed1b(0x135)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x10ea6b['NIWOs'](_0x128f26,_0x5da446);});});}[a124_0x275fde(0x142)](){const _0xd95ac4=a124_0x275fde;return this[_0xd95ac4(0x135)];}async[a124_0x275fde(0x150)](){const _0x899bdc=a124_0x275fde,_0x49c063={};_0x49c063[_0x899bdc(0x14b)]=_0x899bdc(0x131),_0x49c063[_0x899bdc(0x177)]=_0x899bdc(0x14a),_0x49c063[_0x899bdc(0x172)]=_0x899bdc(0x153),_0x49c063[_0x899bdc(0x163)]=_0x899bdc(0x173);const _0x152fb6=_0x49c063,_0x114534=this.#config['projectName'];try{const _0x5189ac=this.#isApp?_0x152fb6[_0x899bdc(0x14b)]:_0x152fb6[_0x899bdc(0x177)],_0x29ffac=await helper[_0x899bdc(0x167)](_0x152fb6[_0x899bdc(0x172)],'api/app_percy/get_project_token?name='+_0x114534+'&type='+_0x5189ac,{},this.#config),_0x44a3e9=_0x29ffac[_0x899bdc(0x14c)];return logger[_0x899bdc(0x137)](_0x152fb6[_0x899bdc(0x163)]),_0x44a3e9['token'];}catch(_0x3a533f){return logger[_0x899bdc(0x16d)](_0x899bdc(0x176)+_0x3a533f),null;}}async[a124_0x275fde(0x133)](){const _0x1bceaf=a124_0x275fde,_0x5f5af7={'bUwoS':function(_0x1f70a9,_0x560f45){return _0x1f70a9(_0x560f45);},'iilMC':function(_0x99bbaa,_0x489a97){return _0x99bbaa+_0x489a97;},'gJNfn':_0x1bceaf(0x14e),'hVXrC':'percy.json'};if(!this.#config[_0x1bceaf(0x161)])return null;const _0x552dec=path[_0x1bceaf(0x169)](os[_0x1bceaf(0x158)](),_0x5f5af7[_0x1bceaf(0x15b)]),_0x4817db=this.#config[_0x1bceaf(0x161)];return!_0x4817db['version']&&(_0x4817db[_0x1bceaf(0x171)]='2'),new Promise((_0x56ff6f,_0x1a4624)=>{const _0x1374d7=_0x1bceaf,_0x3f5af0={'WdsAe':function(_0x3fc542,_0x3df906){const _0x5dae79=a124_0xb693;return _0x5f5af7[_0x5dae79(0x13d)](_0x3fc542,_0x3df906);},'LAKDe':function(_0x5aef08,_0x916a7c){const _0x325da9=a124_0xb693;return _0x5f5af7[_0x325da9(0x160)](_0x5aef08,_0x916a7c);},'sQLKG':_0x5f5af7[_0x1374d7(0x130)]};fs[_0x1374d7(0x136)](_0x552dec,JSON['stringify'](_0x4817db),_0x23a77e=>{const _0x29382=_0x1374d7;_0x23a77e&&(logger[_0x29382(0x16d)]('Error\x20creating\x20percy\x20config:\x20'+_0x23a77e),_0x3f5af0[_0x29382(0x179)](_0x56ff6f,null)),logger['debug'](_0x3f5af0[_0x29382(0x151)](_0x3f5af0[_0x29382(0x16a)],_0x552dec)),_0x3f5af0[_0x29382(0x179)](_0x56ff6f,_0x552dec);});});}}module[a124_0x275fde(0x155)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a120_0x3b06(_0x1dc7f7,_0xdc1b56){const _0x3123e9=a120_0x3123();return a120_0x3b06=function(_0x3b06fa,_0x16ca87){_0x3b06fa=_0x3b06fa-0x119;let _0x85ab25=_0x3123e9[_0x3b06fa];return _0x85ab25;},a120_0x3b06(_0x1dc7f7,_0xdc1b56);}const a120_0x371728=a120_0x3b06;(function(_0x4a242c,_0x54c2a6){const _0xce195=a120_0x3b06,_0x1ec540=_0x4a242c();while(!![]){try{const _0x148bf5=-parseInt(_0xce195(0x170))/0x1+-parseInt(_0xce195(0x15f))/0x2*(parseInt(_0xce195(0x19b))/0x3)+-parseInt(_0xce195(0x1ab))/0x4*(parseInt(_0xce195(0x192))/0x5)+parseInt(_0xce195(0x1a9))/0x6+-parseInt(_0xce195(0x1a8))/0x7*(-parseInt(_0xce195(0x182))/0x8)+parseInt(_0xce195(0x14f))/0x9*(-parseInt(_0xce195(0x13d))/0xa)+parseInt(_0xce195(0x185))/0xb*(parseInt(_0xce195(0x127))/0xc);if(_0x148bf5===_0x54c2a6)break;else _0x1ec540['push'](_0x1ec540['shift']());}catch(_0x1f05e1){_0x1ec540['push'](_0x1ec540['shift']());}}}(a120_0x3123,0xb07ae));function a120_0x3123(){const _0x4fa808=['LOGNAME','baOgI','once','/percy-win.zip','/root','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','homedir','BoXJW','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','rqDde','readEntry','EsnDd','392140ZsLPTE','PnjXW','nAxIl','fTdNi','W_OK','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','nZKcI','host','aGahA','agent','statusCode','readFileSync','IYOup','gfJWb','USERPROFILE','proxyHost','JzbTP','linux','8okjHGZ','RKeuy','uIylY','22zWECzS','jWvkO','/home/','WNhhE','winstonLogger','wvaqm','bBJxu','/percy-linux.zip','extractAndSaveBinary','fileName','If-None-Match','cMVDt','close','365QhENAR','/percy-osx.zip','RioTj','entry','MrPAP','USERNAME','UjhSN','match','lazyEntries','3PmmKue','KLdtP','Failed\x20to\x20save\x20ETag\x20file:\x20','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','Error\x20trying\x20to\x20download\x20percy\x20binary','baeZI','parse','eaUws','HOME','R_OK','Failed\x20to\x20read\x20ETag\x20file:\x20','accessSync','download','5030242iHhnVJ','6614244ITgOZy','proxyPort','15556uHRdZS','needsUpdate','RkZyc','lVybB','pveYg','skcPN','etag','XgFnu','error','DFxbX','nzWNm','0755','NMhbj','iOJQF','aykKp','dAmzJ','juOcC','data','then','Saved\x20new\x20ETag\x20for\x20percy\x20binary','path','hwxsu','headers','YGfnu','statSync','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','wjEkt','SoiKd','6232968KphwJd','BoqhG','--version','destroy','https://github.com/percy/cli/releases/latest/download','PnJSY','tmpdir','EfOsN','warn','utf8','.zip','aJUny','catch','tKLrq','mkdirSync','percy.exe','test','/Users/','function','stdout','CbBIN','exports','110hwjZGV','chmod','length','lUREy','vjsTM','Connection','SpjWa','pipe','createWriteStream','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','debug','cwd','stoIE','kZJiB','get','binaryPath','sqHOL','fHcPO','1055322oPTOmt','gUshT','.etag','port','ctSEy','rhPzX','platform','NfcDn','useCaCertificate','trim','HOMEPATH','.browserstack','yauzl','validateBinary','join','env','342142EdCnKp','pLRJH','https-proxy-agent','xKPtH','getuid'];a120_0x3123=function(){return _0x4fa808;};return a120_0x3123();}const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a120_0x371728(0x15b)),fs=require('fs'),path=require(a120_0x371728(0x11e)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a120_0x371728(0x161)),logger=require('../logger')[a120_0x371728(0x189)];class PercyBinary{#hostOS=process[a120_0x371728(0x155)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a120_0x371728(0x15d)](this.#homedir(),a120_0x371728(0x15a)),process[a120_0x371728(0x148)](),os[a120_0x371728(0x12d)]()];constructor(){const _0x17820e=a120_0x371728,_0x3607a7={};_0x3607a7[_0x17820e(0x16f)]=_0x17820e(0x12b),_0x3607a7[_0x17820e(0x18a)]=function(_0xbe7ac8,_0x41f6c2){return _0xbe7ac8+_0x41f6c2;},_0x3607a7[_0x17820e(0x16b)]=_0x17820e(0x193),_0x3607a7['sqHOL']=function(_0x1e4adf,_0x53d3a4){return _0x1e4adf+_0x53d3a4;},_0x3607a7[_0x17820e(0x1af)]=_0x17820e(0x167),_0x3607a7['CbBIN']=_0x17820e(0x136),_0x3607a7['lVybB']=_0x17820e(0x18c);const _0x3314f0=_0x3607a7,_0x5befc7=_0x3314f0[_0x17820e(0x16f)];if(this.#hostOS[_0x17820e(0x199)](/darwin|mac os/i))this.#httpPath=_0x3314f0[_0x17820e(0x18a)](_0x5befc7,_0x3314f0[_0x17820e(0x16b)]);else this.#hostOS[_0x17820e(0x199)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3314f0[_0x17820e(0x14d)](_0x5befc7,_0x3314f0['pveYg']),this.#binaryName=_0x3314f0[_0x17820e(0x13b)]):this.#httpPath=_0x3314f0[_0x17820e(0x14d)](_0x5befc7,_0x3314f0[_0x17820e(0x1ae)]);}#getAvailableDirs(){const _0x355276=a120_0x371728,_0x1a4b1d={};_0x1a4b1d[_0x355276(0x1b0)]=function(_0x34a689,_0x3bbb22){return _0x34a689<_0x3bbb22;},_0x1a4b1d[_0x355276(0x180)]=_0x355276(0x19f);const _0x599597=_0x1a4b1d;for(var _0x4a2789=0x0;_0x599597[_0x355276(0x1b0)](_0x4a2789,this.#orderedPaths[_0x355276(0x13f)]);_0x4a2789++){var _0x318a21=this.#orderedPaths[_0x4a2789];if(this.#makePath(_0x318a21))return _0x318a21;}throw new Error(_0x599597[_0x355276(0x180)]);}#makePath(_0x1065b1){const _0x1229df=a120_0x371728;try{return _0x1065b1&&!this.#checkPath(_0x1065b1)&&fs[_0x1229df(0x135)](_0x1065b1),!![];}catch{return![];}}#checkPath(_0x2a2749,_0x2a6a9c){const _0x4f3868=a120_0x371728,_0xa04c97={};_0xa04c97[_0x4f3868(0x178)]=function(_0x2e97a1,_0x4920fe){return _0x2e97a1|_0x4920fe;},_0xa04c97[_0x4f3868(0x1b2)]=function(_0x56cba1,_0x41f4c9){return _0x56cba1!==_0x41f4c9;},_0xa04c97[_0x4f3868(0x1ad)]='undefined';const _0x1d5239=_0xa04c97;_0x2a6a9c=_0x2a6a9c||_0x1d5239[_0x4f3868(0x178)](fs[_0x4f3868(0x1a4)],fs[_0x4f3868(0x174)]);try{return fs[_0x4f3868(0x1a6)](_0x2a2749,_0x2a6a9c),!![];}catch(_0x21b4d8){if(_0x1d5239[_0x4f3868(0x1b2)](typeof fs[_0x4f3868(0x1a6)],_0x1d5239['RkZyc']))return![];try{return fs[_0x4f3868(0x122)](_0x2a2749),!![];}catch(_0x21f1ac){return![];}}}#getETagPath(_0x2211a2){const _0x200bb1=a120_0x371728;return path[_0x200bb1(0x15d)](_0x2211a2,this.#binaryName+_0x200bb1(0x151));}#loadETag(_0x11ebf8){const _0x45d33b=a120_0x371728,_0xb5a788={};_0xb5a788['stoIE']=_0x45d33b(0x130);const _0x4f31cb=_0xb5a788,_0x573fe2=this.#getETagPath(_0x11ebf8);if(this.#checkPath(_0x573fe2))try{return fs[_0x45d33b(0x17b)](_0x573fe2,_0x4f31cb[_0x45d33b(0x149)])[_0x45d33b(0x158)]();}catch(_0x2b6a15){logger[_0x45d33b(0x12f)](_0x45d33b(0x1a5)+_0x2b6a15);}return null;}#saveETag(_0xeeb8bc,_0x952af0){const _0x44bdad=a120_0x371728,_0x5bcc24={};_0x5bcc24[_0x44bdad(0x1b9)]=_0x44bdad(0x11d);const _0x27b71d=_0x5bcc24;if(!_0x952af0)return;try{const _0xbddf63=this.#getETagPath(_0xeeb8bc);fs['writeFileSync'](_0xbddf63,_0x952af0),logger['debug'](_0x27b71d[_0x44bdad(0x1b9)]);}catch(_0x51b16e){logger['warn'](_0x44bdad(0x19d)+_0x51b16e);}}async #handleBinaryDownload(_0xb24781,_0x1d414b,_0x383106){const _0x5534e8=a120_0x371728,_0x37bb6c={};_0x37bb6c['dAmzJ']=_0x5534e8(0x146);const _0x465253=_0x37bb6c,_0x580865=await this[_0x5534e8(0x15c)](_0xb24781[_0x5534e8(0x14c)]);if(!_0x580865){logger[_0x5534e8(0x1b3)](_0x465253[_0x5534e8(0x119)]);const _0x5498fb=await this[_0x5534e8(0x1a7)](_0x1d414b,_0x383106);return _0x5498fb[_0x5534e8(0x14c)];}return _0xb24781[_0x5534e8(0x14c)];}async['getBinaryPath'](_0x3bbabe){const _0x1eb726=a120_0x371728,_0x3e30df={};_0x3e30df[_0x1eb726(0x190)]=_0x1eb726(0x175),_0x3e30df[_0x1eb726(0x186)]=_0x1eb726(0x16c);const _0x17b294=_0x3e30df,_0x202c83=this.#getAvailableDirs(),_0x2ccd1b=path[_0x1eb726(0x15d)](_0x202c83,this.#binaryName);if(this.#checkPath(_0x2ccd1b,fs['X_OK'])){const _0xb70789=this.#loadETag(_0x202c83);if(_0xb70789)try{const _0x29519e=await this['download'](_0x3bbabe,_0x202c83,_0xb70789);if(!_0x29519e[_0x1eb726(0x1ac)])return logger[_0x1eb726(0x147)](_0x17b294['cMVDt']),_0x2ccd1b;return logger[_0x1eb726(0x147)](_0x17b294[_0x1eb726(0x186)]),await this.#handleBinaryDownload(_0x29519e,_0x3bbabe,_0x202c83);}catch(_0x3cdaf0){return logger[_0x1eb726(0x12f)](_0x1eb726(0x19e)+_0x3cdaf0),_0x2ccd1b;}}const _0x25855e=await this[_0x1eb726(0x1a7)](_0x3bbabe,_0x202c83);return await this.#handleBinaryDownload(_0x25855e,_0x3bbabe,_0x202c83);}['download'](_0xef9c6f,_0x49fe2f,_0x58edff=null){const _0xfa9b65=a120_0x371728,_0x411fa1={'KLdtP':function(_0x1fd14e,_0x162454){return _0x1fd14e(_0x162454);},'xLiww':function(_0x2d5507,_0x4cf845){return _0x2d5507===_0x4cf845;},'pLRJH':_0xfa9b65(0x1b3),'iOJQF':'close','UjhSN':function(_0x492f55,_0xc374d9){return _0x492f55+_0xc374d9;},'SoiKd':_0xfa9b65(0x131)};_0x49fe2f&&!this.#checkPath(_0x49fe2f)&&fs[_0xfa9b65(0x135)](_0x49fe2f);const _0x333cc6=this.#binaryName,_0x213acc=path['join'](_0x49fe2f,_0x411fa1[_0xfa9b65(0x198)](_0x333cc6,_0x411fa1[_0xfa9b65(0x126)])),_0x252837=fs[_0xfa9b65(0x145)](_0x213acc),_0x36b543=url[_0xfa9b65(0x1a1)](this.#httpPath);if(_0xef9c6f[_0xfa9b65(0x17f)]&&_0xef9c6f[_0xfa9b65(0x1aa)]){const _0x231477={};_0x231477[_0xfa9b65(0x177)]=_0xef9c6f[_0xfa9b65(0x17f)],_0x231477[_0xfa9b65(0x152)]=_0xef9c6f[_0xfa9b65(0x1aa)],_0x36b543[_0xfa9b65(0x179)]=new HttpsProxyAgent(_0x231477);}if(_0xef9c6f['useCaCertificate'])try{_0x36b543['ca']=fs[_0xfa9b65(0x17b)](_0xef9c6f[_0xfa9b65(0x157)]);}catch(_0x5b270a){logger[_0xfa9b65(0x1b3)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x5b270a);}if(_0x58edff){const _0x293124={};_0x293124[_0xfa9b65(0x18f)]=_0x58edff,_0x293124[_0xfa9b65(0x142)]=_0x411fa1['iOJQF'],_0x36b543['headers']=_0x293124;}else{const _0x2d10fc={};_0x2d10fc[_0xfa9b65(0x142)]=_0x411fa1[_0xfa9b65(0x1b8)],_0x36b543[_0xfa9b65(0x120)]=_0x2d10fc;}return new Promise((_0x5b85eb,_0x7e1021)=>{const _0x517bba=_0xfa9b65,_0x52eb91={'PnJSY':function(_0x3ab373,_0x184333){const _0x2fb6d4=a120_0x3b06;return _0x411fa1[_0x2fb6d4(0x19c)](_0x3ab373,_0x184333);},'nAxIl':function(_0x178e43,_0x4a9857){return _0x411fa1['xLiww'](_0x178e43,_0x4a9857);},'gUshT':_0x411fa1[_0x517bba(0x160)],'ctSEy':_0x411fa1[_0x517bba(0x1b8)],'wjEkt':function(_0x4384cc,_0x90d39d){const _0x38e195=_0x517bba;return _0x411fa1[_0x38e195(0x19c)](_0x4384cc,_0x90d39d);}};https[_0x517bba(0x14b)](_0x36b543,_0x1de2fd=>{const _0x4759af=_0x517bba,_0xb192b4={'bTpss':function(_0x3d3bc2,_0x250627){const _0x16fbf4=a120_0x3b06;return _0x52eb91[_0x16fbf4(0x12c)](_0x3d3bc2,_0x250627);},'SNvQX':function(_0xb4c792,_0x102594){const _0x9a537=a120_0x3b06;return _0x52eb91[_0x9a537(0x12c)](_0xb4c792,_0x102594);}};if(_0x58edff&&_0x52eb91[_0x4759af(0x172)](_0x1de2fd[_0x4759af(0x17a)],0x130)){_0x252837[_0x4759af(0x12a)]();const _0x2f9ae6={};_0x2f9ae6[_0x4759af(0x1ac)]=![],_0x52eb91[_0x4759af(0x12c)](_0x5b85eb,_0x2f9ae6);return;}const _0x2c2fbc=_0x1de2fd[_0x4759af(0x120)][_0x4759af(0x1b1)];_0x2c2fbc&&this.#saveETag(_0x49fe2f,_0x2c2fbc),_0x1de2fd['pipe'](_0x252837),_0x1de2fd['on'](_0x52eb91[_0x4759af(0x150)],function(_0x50b2ed){const _0x3dd395=_0x4759af;logger[_0x3dd395(0x1b3)](_0x3dd395(0x123)+_0x50b2ed),_0xb192b4['bTpss'](_0x7e1021,_0x50b2ed);}),_0x252837['on'](_0x52eb91[_0x4759af(0x150)],function(_0x1068e8){const _0x52dc36=_0x4759af;logger['error'](_0x52dc36(0x169)+_0x1068e8),_0xb192b4['SNvQX'](_0x7e1021,_0x1068e8);}),_0x252837['on'](_0x52eb91[_0x4759af(0x153)],()=>{const _0x5c3c48=_0x4759af;this['extractAndSaveBinary'](_0x213acc,_0x49fe2f)[_0x5c3c48(0x11c)](_0x35c372=>_0x5b85eb({'needsUpdate':!![],'binaryPath':_0x35c372}))[_0x5c3c48(0x133)](_0x7e1021);});})['on'](_0x411fa1[_0x517bba(0x160)],function(_0x580fb1){const _0x4ddc6c=_0x517bba;logger[_0x4ddc6c(0x1b3)](_0x4ddc6c(0x124)+_0x580fb1),_0x52eb91[_0x4ddc6c(0x125)](_0x7e1021,_0x580fb1);});});}[a120_0x371728(0x18d)](_0x53aff2,_0x4d949f){const _0x56ccfc=a120_0x371728,_0x1cdd26={'nzWNm':function(_0x5a0391,_0x332cd0){return _0x5a0391(_0x332cd0);},'NKTXa':_0x56ccfc(0x1b6),'RioTj':'end','PnjXW':function(_0x13cc04,_0x3d7eff){return _0x13cc04===_0x3d7eff;},'baOgI':_0x56ccfc(0x195),'DdaaZ':_0x56ccfc(0x1b3)},_0x5dd3db=this.#binaryName,_0x5d325a=path[_0x56ccfc(0x15d)](_0x4d949f,_0x5dd3db);return new Promise((_0x45005b,_0x35854c)=>{const _0x495c2d=_0x56ccfc,_0x21f134={'juOcC':function(_0x851e9b,_0x39793f){const _0x38b0f=a120_0x3b06;return _0x1cdd26[_0x38b0f(0x1b5)](_0x851e9b,_0x39793f);},'tKLrq':_0x1cdd26['NKTXa'],'baeZI':_0x1cdd26[_0x495c2d(0x194)],'uIylY':function(_0x1ac43a,_0x1e9e28){const _0x2acc4b=_0x495c2d;return _0x1cdd26[_0x2acc4b(0x171)](_0x1ac43a,_0x1e9e28);},'SpjWa':function(_0x39abf0,_0x1e1c03){const _0xdc1fa0=_0x495c2d;return _0x1cdd26[_0xdc1fa0(0x1b5)](_0x39abf0,_0x1e1c03);},'rqDde':function(_0x4da651,_0x46c201){const _0x42425a=_0x495c2d;return _0x1cdd26[_0x42425a(0x1b5)](_0x4da651,_0x46c201);},'bBJxu':_0x1cdd26[_0x495c2d(0x165)],'IYOup':_0x1cdd26['DdaaZ']},_0x33611f={};_0x33611f[_0x495c2d(0x19a)]=!![],yauzl['open'](_0x53aff2,_0x33611f,function(_0x1087f1,_0x3e307e){const _0x14cd93=_0x495c2d,_0x542572={'JqKhm':function(_0x45861f,_0x3049d8){const _0x1df93f=a120_0x3b06;return _0x21f134[_0x1df93f(0x11a)](_0x45861f,_0x3049d8);},'SecNt':_0x21f134[_0x14cd93(0x1a0)],'ewcic':function(_0x57b2ee,_0xb70e7e){const _0x3ce457=_0x14cd93;return _0x21f134[_0x3ce457(0x184)](_0x57b2ee,_0xb70e7e);},'OVzhx':function(_0x6c54a,_0x2357d5){const _0x579234=_0x14cd93;return _0x21f134[_0x579234(0x143)](_0x6c54a,_0x2357d5);},'NfcDn':function(_0x7f9f41,_0x2a4f51){const _0x18ab3e=_0x14cd93;return _0x21f134[_0x18ab3e(0x16d)](_0x7f9f41,_0x2a4f51);}};_0x1087f1&&_0x21f134[_0x14cd93(0x11a)](_0x35854c,_0x1087f1),_0x3e307e[_0x14cd93(0x16e)](),_0x3e307e['on'](_0x21f134[_0x14cd93(0x18b)],_0x203dec=>{const _0x5f169a=_0x14cd93;if(/\/$/[_0x5f169a(0x137)](_0x203dec[_0x5f169a(0x18e)]))_0x3e307e[_0x5f169a(0x16e)]();else{const _0x2238d6=fs[_0x5f169a(0x145)](path[_0x5f169a(0x15d)](_0x4d949f,_0x203dec[_0x5f169a(0x18e)]));_0x3e307e['openReadStream'](_0x203dec,function(_0x184537,_0x6ee7b6){const _0x2ab2ba=_0x5f169a;_0x184537&&_0x542572['JqKhm'](_0x35854c,_0x1087f1),_0x6ee7b6['on'](_0x542572['SecNt'],function(){const _0x3f498d=a120_0x3b06;_0x2238d6[_0x3f498d(0x191)](),_0x3e307e['readEntry']();}),_0x6ee7b6[_0x2ab2ba(0x144)](_0x2238d6);}),_0x542572['ewcic'](_0x203dec['fileName'],_0x5dd3db)&&_0x3e307e['close']();}}),_0x3e307e['on'](_0x21f134[_0x14cd93(0x17c)],_0x42ab3a=>{_0x21f134['juOcC'](_0x35854c,_0x42ab3a);}),_0x3e307e[_0x14cd93(0x166)](_0x21f134[_0x14cd93(0x1a0)],()=>{const _0x298193=_0x14cd93;fs[_0x298193(0x13e)](_0x5d325a,_0x21f134[_0x298193(0x134)],function(_0x5eeefd){const _0xc08fdb=_0x298193;_0x5eeefd&&_0x542572['OVzhx'](_0x35854c,_0x5eeefd),_0x542572[_0xc08fdb(0x156)](_0x45005b,_0x5d325a);}),_0x3e307e['close']();});});});}async[a120_0x371728(0x15c)](_0x2254c0){const _0x11e1c2=a120_0x371728,_0x444744={'RKeuy':function(_0x439493,_0x1dfd00){return _0x439493(_0x1dfd00);},'EfOsN':function(_0x55c9c2,_0xf78069){return _0x55c9c2(_0xf78069);},'lUREy':function(_0x6ca4b7,_0x35b04b,_0x34ff64,_0xbb3cd8){return _0x6ca4b7(_0x35b04b,_0x34ff64,_0xbb3cd8);},'DFxbX':_0x11e1c2(0x129),'hwxsu':_0x11e1c2(0x11b),'BoqhG':_0x11e1c2(0x191)},_0x210444=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x542bba,_0x55e7cf)=>{const _0x576647=_0x11e1c2,_0x2c8aa4={'YGfnu':function(_0x2b394c,_0x508262){const _0x49ca29=a120_0x3b06;return _0x444744[_0x49ca29(0x12e)](_0x2b394c,_0x508262);}},_0x4b2992={};_0x4b2992[_0x576647(0x15e)]=process['env'];const _0x4ffe68=_0x444744[_0x576647(0x140)](spawn,_0x2254c0,[_0x444744[_0x576647(0x1b4)]],_0x4b2992);_0x4ffe68[_0x576647(0x13a)]['on'](_0x444744[_0x576647(0x11f)],_0x4d84a2=>{const _0xb4a948=_0x576647;_0x210444[_0xb4a948(0x137)](_0x4d84a2)&&_0x2c8aa4[_0xb4a948(0x121)](_0x542bba,!![]);}),_0x4ffe68['on'](_0x444744[_0x576647(0x128)],()=>{const _0x4fe2a9=_0x576647;_0x444744[_0x4fe2a9(0x183)](_0x542bba,![]);});});}#homedir(){const _0x32f08a=a120_0x371728,_0x5c3715={};_0x5c3715[_0x32f08a(0x17d)]=function(_0xd26be4,_0x31423c){return _0xd26be4===_0x31423c;},_0x5c3715[_0x32f08a(0x173)]=_0x32f08a(0x139),_0x5c3715[_0x32f08a(0x132)]=function(_0x2bf29f,_0x5ebbda){return _0x2bf29f===_0x5ebbda;},_0x5c3715[_0x32f08a(0x1a2)]='win32',_0x5c3715[_0x32f08a(0x188)]=function(_0x4a5e58,_0x3fb296){return _0x4a5e58+_0x3fb296;},_0x5c3715[_0x32f08a(0x154)]=function(_0x4d27a0,_0x209809){return _0x4d27a0===_0x209809;},_0x5c3715['vjsTM']='darwin',_0x5c3715[_0x32f08a(0x196)]=_0x32f08a(0x138),_0x5c3715['BMsCD']=function(_0x5653e9,_0x325520){return _0x5653e9===_0x325520;},_0x5c3715[_0x32f08a(0x14a)]=_0x32f08a(0x181),_0x5c3715['xKPtH']=function(_0x498c7b,_0x5661bd){return _0x498c7b===_0x5661bd;},_0x5c3715[_0x32f08a(0x1b7)]=_0x32f08a(0x168),_0x5c3715['nZKcI']=_0x32f08a(0x187),_0x5c3715[_0x32f08a(0x14e)]=function(_0x25162c,_0x273ba5){return _0x25162c||_0x273ba5;};const _0x9e7cb8=_0x5c3715;if(_0x9e7cb8['gfJWb'](typeof os[_0x32f08a(0x16a)],_0x9e7cb8[_0x32f08a(0x173)]))return os[_0x32f08a(0x16a)]();const _0x14952a=process[_0x32f08a(0x15e)],_0x3f3ac1=_0x14952a[_0x32f08a(0x1a3)],_0x40e942=_0x14952a[_0x32f08a(0x164)]||_0x14952a['USER']||_0x14952a['LNAME']||_0x14952a[_0x32f08a(0x197)];if(_0x9e7cb8['aJUny'](process[_0x32f08a(0x155)],_0x9e7cb8['eaUws']))return _0x14952a[_0x32f08a(0x17e)]||_0x9e7cb8[_0x32f08a(0x188)](_0x14952a['HOMEDRIVE'],_0x14952a[_0x32f08a(0x159)])||_0x3f3ac1||null;if(_0x9e7cb8[_0x32f08a(0x154)](process[_0x32f08a(0x155)],_0x9e7cb8[_0x32f08a(0x141)]))return _0x3f3ac1||(_0x40e942?_0x9e7cb8[_0x32f08a(0x188)](_0x9e7cb8[_0x32f08a(0x196)],_0x40e942):null);if(_0x9e7cb8['BMsCD'](process[_0x32f08a(0x155)],_0x9e7cb8['kZJiB']))return _0x3f3ac1||(_0x9e7cb8[_0x32f08a(0x162)](process[_0x32f08a(0x163)](),0x0)?_0x9e7cb8[_0x32f08a(0x1b7)]:_0x40e942?_0x9e7cb8[_0x32f08a(0x188)](_0x9e7cb8[_0x32f08a(0x176)],_0x40e942):null);return _0x9e7cb8[_0x32f08a(0x14e)](_0x3f3ac1,null);}}module[a120_0x371728(0x13c)]=PercyBinary;
|
|
1
|
+
function a125_0x48d5(_0x4336a8,_0x367a8b){const _0x12c388=a125_0x12c3();return a125_0x48d5=function(_0x48d5cf,_0x51c676){_0x48d5cf=_0x48d5cf-0x85;let _0x4fd72e=_0x12c388[_0x48d5cf];return _0x4fd72e;},a125_0x48d5(_0x4336a8,_0x367a8b);}const a125_0x55c263=a125_0x48d5;(function(_0x22fbc7,_0x16ddf1){const _0x53216e=a125_0x48d5,_0x235e56=_0x22fbc7();while(!![]){try{const _0xcbc7c2=-parseInt(_0x53216e(0x9d))/0x1+parseInt(_0x53216e(0xe2))/0x2+parseInt(_0x53216e(0xe0))/0x3*(-parseInt(_0x53216e(0x8a))/0x4)+parseInt(_0x53216e(0xc9))/0x5+-parseInt(_0x53216e(0x91))/0x6*(-parseInt(_0x53216e(0xd2))/0x7)+-parseInt(_0x53216e(0x86))/0x8+-parseInt(_0x53216e(0xc8))/0x9;if(_0xcbc7c2===_0x16ddf1)break;else _0x235e56['push'](_0x235e56['shift']());}catch(_0x13efcb){_0x235e56['push'](_0x235e56['shift']());}}}(a125_0x12c3,0x54c65));const {https}=require(a125_0x55c263(0xfa)),url=require(a125_0x55c263(0x87)),yauzl=require(a125_0x55c263(0x97)),fs=require('fs'),path=require(a125_0x55c263(0xe9)),os=require('os'),{spawn}=require(a125_0x55c263(0xd3)),HttpsProxyAgent=require(a125_0x55c263(0xaa)),logger=require(a125_0x55c263(0xf8))[a125_0x55c263(0x101)];class PercyBinary{#hostOS=process[a125_0x55c263(0x9c)];#httpPath=null;#binaryName=a125_0x55c263(0xbe);#orderedPaths=[path[a125_0x55c263(0x89)](this.#homedir(),'.browserstack'),process[a125_0x55c263(0xc5)](),os[a125_0x55c263(0x106)]()];constructor(){const _0x2a461a=a125_0x55c263,_0x21008b={};_0x21008b[_0x2a461a(0x90)]=_0x2a461a(0x11d),_0x21008b[_0x2a461a(0x88)]=function(_0xd8ef5b,_0x529a3b){return _0xd8ef5b+_0x529a3b;},_0x21008b[_0x2a461a(0xaf)]=_0x2a461a(0xc3),_0x21008b[_0x2a461a(0x109)]='/percy-win.zip',_0x21008b[_0x2a461a(0xd9)]='percy.exe',_0x21008b['uhoem']='/percy-linux.zip';const _0x2d815c=_0x21008b,_0x4c3e28=_0x2d815c[_0x2a461a(0x90)];if(this.#hostOS[_0x2a461a(0xb7)](/darwin|mac os/i))this.#httpPath=_0x2d815c[_0x2a461a(0x88)](_0x4c3e28,_0x2d815c['jArLz']);else this.#hostOS[_0x2a461a(0xb7)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2d815c[_0x2a461a(0x88)](_0x4c3e28,_0x2d815c['kpKBA']),this.#binaryName=_0x2d815c[_0x2a461a(0xd9)]):this.#httpPath=_0x2d815c[_0x2a461a(0x88)](_0x4c3e28,_0x2d815c[_0x2a461a(0xb8)]);}#getAvailableDirs(){const _0x1e1fd8=a125_0x55c263,_0x586f6b={};_0x586f6b[_0x1e1fd8(0xfe)]=function(_0x206200,_0x38f00e){return _0x206200<_0x38f00e;},_0x586f6b[_0x1e1fd8(0xeb)]=_0x1e1fd8(0x11b);const _0xafa8df=_0x586f6b;for(var _0x5b43cc=0x0;_0xafa8df[_0x1e1fd8(0xfe)](_0x5b43cc,this.#orderedPaths[_0x1e1fd8(0x11e)]);_0x5b43cc++){var _0x2524e7=this.#orderedPaths[_0x5b43cc];if(this.#makePath(_0x2524e7))return _0x2524e7;}throw new Error(_0xafa8df['GPfUw']);}#makePath(_0x5f47a7){const _0x400254=a125_0x55c263;try{return _0x5f47a7&&!this.#checkPath(_0x5f47a7)&&fs[_0x400254(0xe1)](_0x5f47a7),!![];}catch{return![];}}#checkPath(_0x517a89,_0x324a4e){const _0x69661d=a125_0x55c263,_0x539ba5={};_0x539ba5[_0x69661d(0xa6)]=function(_0x2e6a6b,_0x3193b5){return _0x2e6a6b|_0x3193b5;},_0x539ba5[_0x69661d(0xd5)]=function(_0x72ac55,_0x24d1e1){return _0x72ac55!==_0x24d1e1;},_0x539ba5[_0x69661d(0x102)]=_0x69661d(0xc7);const _0xa0cfbe=_0x539ba5;_0x324a4e=_0x324a4e||_0xa0cfbe['wqYfW'](fs['R_OK'],fs['W_OK']);try{return fs['accessSync'](_0x517a89,_0x324a4e),!![];}catch(_0x5ce340){if(_0xa0cfbe[_0x69661d(0xd5)](typeof fs['accessSync'],_0xa0cfbe[_0x69661d(0x102)]))return![];try{return fs[_0x69661d(0xd8)](_0x517a89),!![];}catch(_0x58f065){return![];}}}#getETagPath(_0x888666){const _0x14ca05=a125_0x55c263;return path[_0x14ca05(0x89)](_0x888666,this.#binaryName+_0x14ca05(0x119));}#loadETag(_0x2f7e49){const _0x10f686=a125_0x55c263,_0x5d4347={};_0x5d4347['jzQic']=_0x10f686(0x105);const _0xa152bd=_0x5d4347,_0x2a8a94=this.#getETagPath(_0x2f7e49);if(this.#checkPath(_0x2a8a94))try{return fs[_0x10f686(0xb1)](_0x2a8a94,_0xa152bd['jzQic'])[_0x10f686(0x93)]();}catch(_0x41f32f){logger['warn']('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x41f32f);}return null;}#saveETag(_0x45dfb1,_0x10e3ac){const _0x51cf2e=a125_0x55c263,_0x173b57={};_0x173b57[_0x51cf2e(0xe6)]='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x18c429=_0x173b57;if(!_0x10e3ac)return;try{const _0x112d35=this.#getETagPath(_0x45dfb1);fs[_0x51cf2e(0xdc)](_0x112d35,_0x10e3ac),logger[_0x51cf2e(0x11c)](_0x18c429[_0x51cf2e(0xe6)]);}catch(_0x38124f){logger[_0x51cf2e(0xa4)](_0x51cf2e(0xa7)+_0x38124f);}}async #handleBinaryDownload(_0x4e7a23,_0x510c28,_0x461f6d){const _0x42b0c8=a125_0x55c263,_0x2d4a8b={};_0x2d4a8b[_0x42b0c8(0xea)]=_0x42b0c8(0xba);const _0x22f69f=_0x2d4a8b,_0x40553c=await this['validateBinary'](_0x4e7a23['binaryPath']);if(!_0x40553c){logger[_0x42b0c8(0xa3)](_0x22f69f[_0x42b0c8(0xea)]);const _0x537498=await this[_0x42b0c8(0xd0)](_0x510c28,_0x461f6d);return _0x537498[_0x42b0c8(0xff)];}return _0x4e7a23[_0x42b0c8(0xff)];}async[a125_0x55c263(0xfb)](_0x9a0a7a){const _0x735f4e=a125_0x55c263,_0x21f39a={};_0x21f39a[_0x735f4e(0x10a)]=_0x735f4e(0x8e),_0x21f39a[_0x735f4e(0xb6)]=_0x735f4e(0x85);const _0x471d03=_0x21f39a,_0x592782=this.#getAvailableDirs(),_0x434aaf=path[_0x735f4e(0x89)](_0x592782,this.#binaryName);if(this.#checkPath(_0x434aaf,fs[_0x735f4e(0xf3)])){const _0x3a353a=this.#loadETag(_0x592782);if(_0x3a353a)try{const _0x46a634=await this[_0x735f4e(0xd0)](_0x9a0a7a,_0x592782,_0x3a353a);if(!_0x46a634[_0x735f4e(0xf0)])return logger[_0x735f4e(0x11c)](_0x471d03[_0x735f4e(0x10a)]),_0x434aaf;return logger['debug'](_0x471d03[_0x735f4e(0xb6)]),await this.#handleBinaryDownload(_0x46a634,_0x9a0a7a,_0x592782);}catch(_0x5ab4b5){return logger[_0x735f4e(0xa4)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x5ab4b5),_0x434aaf;}}const _0xd0c8db=await this[_0x735f4e(0xd0)](_0x9a0a7a,_0x592782);return await this.#handleBinaryDownload(_0xd0c8db,_0x9a0a7a,_0x592782);}['download'](_0x2e5b4d,_0x4f0eb2,_0x4bae45=null){const _0x147045=a125_0x55c263,_0x9ace7c={'uaxcR':function(_0x5fa410,_0x34e7a9){return _0x5fa410(_0x34e7a9);},'MPIFM':function(_0x295488,_0xa7a150){return _0x295488(_0xa7a150);},'fkRTB':function(_0x3b90ab,_0x528593){return _0x3b90ab===_0x528593;},'IwEKj':_0x147045(0xa3),'lrrSX':'close','TtyKT':function(_0x37cb49,_0x6609ba){return _0x37cb49+_0x6609ba;},'BpojA':_0x147045(0xe5)};_0x4f0eb2&&!this.#checkPath(_0x4f0eb2)&&fs[_0x147045(0xe1)](_0x4f0eb2);const _0x3fc497=this.#binaryName,_0x6e5f6e=path[_0x147045(0x89)](_0x4f0eb2,_0x9ace7c[_0x147045(0x107)](_0x3fc497,_0x9ace7c['BpojA'])),_0x1864a7=fs['createWriteStream'](_0x6e5f6e),_0x58eac0=url['parse'](this.#httpPath);if(_0x2e5b4d[_0x147045(0xde)]&&_0x2e5b4d[_0x147045(0xcf)]){const _0x55e311={};_0x55e311['host']=_0x2e5b4d['proxyHost'],_0x55e311[_0x147045(0xcd)]=_0x2e5b4d[_0x147045(0xcf)],_0x58eac0[_0x147045(0xf1)]=new HttpsProxyAgent(_0x55e311);}if(_0x2e5b4d[_0x147045(0x99)])try{_0x58eac0['ca']=fs[_0x147045(0xb1)](_0x2e5b4d[_0x147045(0x99)]);}catch(_0x1e5527){logger['error'](_0x147045(0xb4)+_0x1e5527);}if(_0x4bae45){const _0x4481fc={};_0x4481fc['If-None-Match']=_0x4bae45,_0x4481fc['Connection']=_0x9ace7c[_0x147045(0xac)],_0x58eac0[_0x147045(0x117)]=_0x4481fc;}else{const _0x250f61={};_0x250f61[_0x147045(0x10b)]=_0x9ace7c['lrrSX'],_0x58eac0[_0x147045(0x117)]=_0x250f61;}return new Promise((_0x4c0393,_0x380ccd)=>{const _0x5253f1=_0x147045,_0x107a0a={'lKbrE':function(_0x41642b,_0x2ba1d2){const _0x428062=a125_0x48d5;return _0x9ace7c[_0x428062(0xe7)](_0x41642b,_0x2ba1d2);},'TOmWR':function(_0x49d7ef,_0x102277){const _0x28a879=a125_0x48d5;return _0x9ace7c[_0x28a879(0x111)](_0x49d7ef,_0x102277);},'EwpoF':_0x9ace7c[_0x5253f1(0xa5)],'hnNlK':_0x9ace7c[_0x5253f1(0xac)]};https[_0x5253f1(0x96)](_0x58eac0,_0x292e8f=>{const _0x487a1f=_0x5253f1,_0x1b5a6b={'mgZml':function(_0x433107,_0x136ab1){const _0x2e8d73=a125_0x48d5;return _0x107a0a[_0x2e8d73(0x10e)](_0x433107,_0x136ab1);}};if(_0x4bae45&&_0x107a0a['TOmWR'](_0x292e8f[_0x487a1f(0xc2)],0x130)){_0x1864a7[_0x487a1f(0xf4)]();const _0x5c6715={};_0x5c6715['needsUpdate']=![],_0x107a0a[_0x487a1f(0x10e)](_0x4c0393,_0x5c6715);return;}const _0x5c5fb4=_0x292e8f['headers'][_0x487a1f(0x8b)];_0x5c5fb4&&this.#saveETag(_0x4f0eb2,_0x5c5fb4),_0x292e8f[_0x487a1f(0xed)](_0x1864a7),_0x292e8f['on'](_0x107a0a[_0x487a1f(0xec)],function(_0x12a076){const _0x4a924d=_0x487a1f;logger[_0x4a924d(0xa3)](_0x4a924d(0x100)+_0x12a076),_0x1b5a6b[_0x4a924d(0x116)](_0x380ccd,_0x12a076);}),_0x1864a7['on'](_0x107a0a['EwpoF'],function(_0x5cc327){const _0x316793=_0x487a1f;logger['error'](_0x316793(0xae)+_0x5cc327),_0x1b5a6b[_0x316793(0x116)](_0x380ccd,_0x5cc327);}),_0x1864a7['on'](_0x107a0a['hnNlK'],()=>{const _0x59d2b6=_0x487a1f;this[_0x59d2b6(0xf6)](_0x6e5f6e,_0x4f0eb2)[_0x59d2b6(0xee)](_0x3a4ab5=>_0x4c0393({'needsUpdate':!![],'binaryPath':_0x3a4ab5}))[_0x59d2b6(0x114)](_0x380ccd);});})['on'](_0x9ace7c[_0x5253f1(0xa5)],function(_0x35b69d){const _0xa01868=_0x5253f1;logger[_0xa01868(0xa3)](_0xa01868(0xcc)+_0x35b69d),_0x9ace7c[_0xa01868(0xc4)](_0x380ccd,_0x35b69d);});});}[a125_0x55c263(0xf6)](_0x2fcc3e,_0xaf6a8){const _0x25ac35=a125_0x55c263,_0x433624={'GyNHA':function(_0x428188,_0x4824ff){return _0x428188(_0x4824ff);},'iKPmd':function(_0x4d55be,_0x4b7587){return _0x4d55be(_0x4b7587);},'hWhzN':_0x25ac35(0xa0),'dWAGP':function(_0x4db0dd,_0x46a2ba){return _0x4db0dd(_0x46a2ba);},'kdmeg':_0x25ac35(0x8f),'oOUGA':_0x25ac35(0xa3),'KjNti':_0x25ac35(0x8d),'BUSHK':function(_0x1ff4fc,_0x36c684){return _0x1ff4fc===_0x36c684;}},_0x2bba22=this.#binaryName,_0x3a3186=path[_0x25ac35(0x89)](_0xaf6a8,_0x2bba22);return new Promise((_0x1acfd6,_0x19e80a)=>{const _0x1f6be2=_0x25ac35,_0x451a4c={'euWBa':function(_0x477859,_0x44ac04){return _0x433624['iKPmd'](_0x477859,_0x44ac04);},'BQdzK':_0x433624[_0x1f6be2(0xce)],'QxCvY':function(_0x980344,_0x3495bf){const _0x4c3304=_0x1f6be2;return _0x433624[_0x4c3304(0xe4)](_0x980344,_0x3495bf);},'CLzQd':function(_0x20f73b,_0x41c318){const _0x268415=_0x1f6be2;return _0x433624[_0x268415(0xc0)](_0x20f73b,_0x41c318);}},_0x427e32={};_0x427e32['lazyEntries']=!![],yauzl[_0x1f6be2(0xda)](_0x2fcc3e,_0x427e32,function(_0x43b2df,_0x10e73a){const _0x13d693=_0x1f6be2,_0x5129c7={'jhTvK':function(_0xd4281e,_0xe2a3fa){const _0x82134b=a125_0x48d5;return _0x433624[_0x82134b(0xd7)](_0xd4281e,_0xe2a3fa);},'qhLyS':function(_0x110430,_0xda6a48){const _0x2b9d50=a125_0x48d5;return _0x433624[_0x2b9d50(0xc0)](_0x110430,_0xda6a48);},'yQwLu':_0x433624[_0x13d693(0xcb)]};_0x43b2df&&_0x433624[_0x13d693(0xef)](_0x19e80a,_0x43b2df),_0x10e73a[_0x13d693(0x112)](),_0x10e73a['on'](_0x433624['kdmeg'],_0x195890=>{const _0x4fbb88=_0x13d693,_0x2f8e6c={'OUXhy':function(_0x164acc,_0x84cffb){const _0x1f9b54=a125_0x48d5;return _0x451a4c[_0x1f9b54(0xb0)](_0x164acc,_0x84cffb);},'ljYzJ':_0x451a4c[_0x4fbb88(0xfc)]};if(/\/$/['test'](_0x195890[_0x4fbb88(0x10f)]))_0x10e73a['readEntry']();else{const _0x384988=fs[_0x4fbb88(0x11a)](path['join'](_0xaf6a8,_0x195890[_0x4fbb88(0x10f)]));_0x10e73a[_0x4fbb88(0xca)](_0x195890,function(_0x25b977,_0x47d7b1){const _0x16d4a2=_0x4fbb88;_0x25b977&&_0x2f8e6c['OUXhy'](_0x19e80a,_0x43b2df),_0x47d7b1['on'](_0x2f8e6c[_0x16d4a2(0x104)],function(){const _0x2d27e8=_0x16d4a2;_0x384988[_0x2d27e8(0xa2)](),_0x10e73a['readEntry']();}),_0x47d7b1[_0x16d4a2(0xed)](_0x384988);}),_0x451a4c[_0x4fbb88(0x9e)](_0x195890[_0x4fbb88(0x10f)],_0x2bba22)&&_0x10e73a[_0x4fbb88(0xa2)]();}}),_0x10e73a['on'](_0x433624[_0x13d693(0xad)],_0x47bc4b=>{_0x451a4c['CLzQd'](_0x19e80a,_0x47bc4b);}),_0x10e73a[_0x13d693(0xbb)](_0x433624[_0x13d693(0xce)],()=>{const _0x3739ea=_0x13d693,_0x1c36b7={'raXWA':function(_0x3f3f60,_0xa59bd5){const _0x447077=a125_0x48d5;return _0x5129c7[_0x447077(0xdf)](_0x3f3f60,_0xa59bd5);},'uyoSf':function(_0x594799,_0xcd7a45){const _0x1769f0=a125_0x48d5;return _0x5129c7[_0x1769f0(0xf9)](_0x594799,_0xcd7a45);}};fs[_0x3739ea(0x118)](_0x3a3186,_0x5129c7[_0x3739ea(0xbc)],function(_0x1f034d){const _0x363d57=_0x3739ea;_0x1f034d&&_0x1c36b7[_0x363d57(0xfd)](_0x19e80a,_0x1f034d),_0x1c36b7['uyoSf'](_0x1acfd6,_0x3a3186);}),_0x10e73a[_0x3739ea(0xa2)]();});});});}async['validateBinary'](_0x9df698){const _0xc73776=a125_0x55c263,_0x3a3ebb={'Chmpc':function(_0x3d16a7,_0x2d945f){return _0x3d16a7(_0x2d945f);},'JhfnN':function(_0x5354f0,_0x4a496f,_0x5b0c3e,_0xbacf4c){return _0x5354f0(_0x4a496f,_0x5b0c3e,_0xbacf4c);},'ryPHy':'--version','bVoxw':_0xc73776(0xc1),'yBVHH':'close'},_0x1ad2f9=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x184a9f,_0x3f858c)=>{const _0x493704=_0xc73776,_0x478d92={'Wrjdo':function(_0x3bcb3d,_0x4f54f4){const _0x56c596=a125_0x48d5;return _0x3a3ebb[_0x56c596(0xa1)](_0x3bcb3d,_0x4f54f4);}},_0x3cbc46={};_0x3cbc46['env']=process['env'];const _0x3eebf0=_0x3a3ebb['JhfnN'](spawn,_0x9df698,[_0x3a3ebb[_0x493704(0xdb)]],_0x3cbc46);_0x3eebf0[_0x493704(0xbf)]['on'](_0x3a3ebb['bVoxw'],_0x135295=>{_0x1ad2f9['test'](_0x135295)&&_0x478d92['Wrjdo'](_0x184a9f,!![]);}),_0x3eebf0['on'](_0x3a3ebb[_0x493704(0x92)],()=>{_0x478d92['Wrjdo'](_0x184a9f,![]);});});}#homedir(){const _0x536577=a125_0x55c263,_0x1db68d={};_0x1db68d[_0x536577(0xc6)]=function(_0xcfe90d,_0x165ad9){return _0xcfe90d===_0x165ad9;},_0x1db68d[_0x536577(0xbd)]=_0x536577(0x10d),_0x1db68d[_0x536577(0x110)]=_0x536577(0xb3),_0x1db68d['TiTas']=function(_0x355ab3,_0x17a21c){return _0x355ab3+_0x17a21c;},_0x1db68d[_0x536577(0xf5)]=function(_0x1a6877,_0xb8fa0b){return _0x1a6877===_0xb8fa0b;},_0x1db68d[_0x536577(0xe3)]=_0x536577(0xd6),_0x1db68d[_0x536577(0x98)]=function(_0x101fca,_0x585467){return _0x101fca+_0x585467;},_0x1db68d[_0x536577(0xb9)]=_0x536577(0x94),_0x1db68d['xNibe']=function(_0x3f85d6,_0x2992f3){return _0x3f85d6===_0x2992f3;},_0x1db68d[_0x536577(0xe8)]=_0x536577(0x9f),_0x1db68d[_0x536577(0xf7)]=_0x536577(0xd1),_0x1db68d[_0x536577(0x9a)]=function(_0x3290ef,_0x288cf3){return _0x3290ef+_0x288cf3;},_0x1db68d['KYncM']=_0x536577(0xdd),_0x1db68d[_0x536577(0xab)]=function(_0x54d6e4,_0x1e86ca){return _0x54d6e4||_0x1e86ca;};const _0x4ff9f0=_0x1db68d;if(_0x4ff9f0[_0x536577(0xc6)](typeof os[_0x536577(0xd4)],_0x4ff9f0[_0x536577(0xbd)]))return os[_0x536577(0xd4)]();const _0x55768d=process[_0x536577(0x95)],_0xc92810=_0x55768d[_0x536577(0x103)],_0x38782b=_0x55768d[_0x536577(0x10c)]||_0x55768d[_0x536577(0x108)]||_0x55768d[_0x536577(0x9b)]||_0x55768d[_0x536577(0x113)];if(_0x4ff9f0[_0x536577(0xc6)](process[_0x536577(0x9c)],_0x4ff9f0['InzRm']))return _0x55768d['USERPROFILE']||_0x4ff9f0[_0x536577(0x8c)](_0x55768d[_0x536577(0xb2)],_0x55768d[_0x536577(0x115)])||_0xc92810||null;if(_0x4ff9f0['VPYAH'](process[_0x536577(0x9c)],_0x4ff9f0[_0x536577(0xe3)]))return _0xc92810||(_0x38782b?_0x4ff9f0[_0x536577(0x98)](_0x4ff9f0[_0x536577(0xb9)],_0x38782b):null);if(_0x4ff9f0[_0x536577(0xb5)](process[_0x536577(0x9c)],_0x4ff9f0[_0x536577(0xe8)]))return _0xc92810||(_0x4ff9f0[_0x536577(0xf5)](process[_0x536577(0xa9)](),0x0)?_0x4ff9f0[_0x536577(0xf7)]:_0x38782b?_0x4ff9f0[_0x536577(0x9a)](_0x4ff9f0[_0x536577(0xa8)],_0x38782b):null);return _0x4ff9f0[_0x536577(0xab)](_0xc92810,null);}}module[a125_0x55c263(0xf2)]=PercyBinary;function a125_0x12c3(){const _0x52dbf4=['entry','HPOIc','48132CAhOAJ','yBVHH','trim','/Users/','env','get','yauzl','gJpYp','useCaCertificate','EJTkU','LNAME','platform','51125OpDwwK','QxCvY','linux','0755','Chmpc','close','error','warn','IwEKj','wqYfW','Failed\x20to\x20save\x20ETag\x20file:\x20','KYncM','getuid','https-proxy-agent','aVIio','lrrSX','oOUGA','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','jArLz','euWBa','readFileSync','HOMEDRIVE','win32','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','xNibe','MkcKs','match','uhoem','cufsc','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','once','yQwLu','ZKnLg','percy','stdout','iKPmd','data','statusCode','/percy-osx.zip','uaxcR','cwd','rjYSa','undefined','43992EPNDTh','1297500CQuzzX','openReadStream','hWhzN','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','port','KjNti','proxyPort','download','/root','427jRObud','child_process','homedir','mQwvx','darwin','GyNHA','statSync','YgqVo','open','ryPHy','writeFileSync','/home/','proxyHost','jhTvK','3PDqyZK','mkdirSync','393702fFlvSN','uXZzF','BUSHK','.zip','GmIwP','MPIFM','iMkCk','path','pmLEk','GPfUw','EwpoF','pipe','then','dWAGP','needsUpdate','agent','exports','X_OK','destroy','VPYAH','extractAndSaveBinary','wmHAL','../logger','qhLyS','follow-redirects','getBinaryPath','BQdzK','raXWA','DbQxE','binaryPath','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','winstonLogger','EeQkX','HOME','ljYzJ','utf8','tmpdir','TtyKT','USER','kpKBA','qWiGp','Connection','LOGNAME','function','lKbrE','fileName','InzRm','fkRTB','readEntry','USERNAME','catch','HOMEPATH','mgZml','headers','chmod','.etag','createWriteStream','Error\x20trying\x20to\x20download\x20percy\x20binary','debug','https://github.com/percy/cli/releases/latest/download','length','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','9232mpmffS','url','flhqE','join','2165156wrJxdW','etag','TiTas','end','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)'];a125_0x12c3=function(){return _0x52dbf4;};return a125_0x12c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a126_0x1cb041=a126_0x4abb;(function(_0x258424,_0x40fc04){var _0x45fe0f=a126_0x4abb,_0x45260f=_0x258424();while(!![]){try{var _0x1de7e3=parseInt(_0x45fe0f(0x108))/0x1*(parseInt(_0x45fe0f(0x10b))/0x2)+-parseInt(_0x45fe0f(0x10c))/0x3*(parseInt(_0x45fe0f(0x105))/0x4)+-parseInt(_0x45fe0f(0xff))/0x5*(-parseInt(_0x45fe0f(0x107))/0x6)+parseInt(_0x45fe0f(0xfe))/0x7*(parseInt(_0x45fe0f(0x109))/0x8)+-parseInt(_0x45fe0f(0x100))/0x9+parseInt(_0x45fe0f(0x101))/0xa+-parseInt(_0x45fe0f(0x106))/0xb;if(_0x1de7e3===_0x40fc04)break;else _0x45260f['push'](_0x45260f['shift']());}catch(_0x1289fe){_0x45260f['push'](_0x45260f['shift']());}}}(a126_0x3be1,0xc046e));class PercyCaptureMap{#map={};[a126_0x1cb041(0x10a)](_0x342ece,_0x4b6f2e){!this.#map[_0x342ece]&&(this.#map[_0x342ece]={}),!this.#map[_0x342ece][_0x4b6f2e]&&(this.#map[_0x342ece][_0x4b6f2e]=0x0),this.#map[_0x342ece][_0x4b6f2e]++;}[a126_0x1cb041(0x104)](_0x466a86,_0x23d5ec){var _0x3ab8f9=a126_0x1cb041;return _0x466a86+'-'+_0x23d5ec+'-'+this[_0x3ab8f9(0x102)](_0x466a86,_0x23d5ec);}[a126_0x1cb041(0x102)](_0x5e7ef7,_0x2ee84a){if(!this.#map[_0x5e7ef7])return 0x0;if(!this.#map[_0x5e7ef7][_0x2ee84a])return 0x0;return this.#map[_0x5e7ef7][_0x2ee84a];}}module[a126_0x1cb041(0x103)]=PercyCaptureMap;function a126_0x4abb(_0x1d33e2,_0x429e4a){var _0x3be178=a126_0x3be1();return a126_0x4abb=function(_0x4abbe5,_0x169fc1){_0x4abbe5=_0x4abbe5-0xfe;var _0x52d58d=_0x3be178[_0x4abbe5];return _0x52d58d;},a126_0x4abb(_0x1d33e2,_0x429e4a);}function a126_0x3be1(){var _0x485128=['9648639YWwKtp','4529530SkfGEZ','get','exports','getName','3464876AXcsiF','2666917SULqhT','210fUZmKo','47YFZQnL','120fFaMQw','increment','35480oHPkZE','3aukaNi','721049oadNSC','19495nOuwnU'];a126_0x3be1=function(){return _0x485128;};return a126_0x3be1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a127_0x47e079=a127_0x5d93;function a127_0x3b2b(){var _0x172706=['10snhDAH','7QqQjJY','9cGRstW','exports','30608NsMvgX','214608PYVwuD','testcase','screenshot','element','driver','takeScreenshot','4228477oMmUCK','click','13230qHSnQu','2095dxPuQT','2555295QErivz','1228068uPKLny','8194823Eilmoe'];a127_0x3b2b=function(){return _0x172706;};return a127_0x3b2b();}(function(_0x58ee83,_0x27f18e){var _0x167a59=a127_0x5d93,_0x29c769=_0x58ee83();while(!![]){try{var _0x2cbb02=-parseInt(_0x167a59(0x1b3))/0x1*(parseInt(_0x167a59(0x1b6))/0x2)+parseInt(_0x167a59(0x1c1))/0x3+-parseInt(_0x167a59(0x1c2))/0x4+-parseInt(_0x167a59(0x1c0))/0x5*(-parseInt(_0x167a59(0x1bf))/0x6)+-parseInt(_0x167a59(0x1c3))/0x7+parseInt(_0x167a59(0x1b7))/0x8*(parseInt(_0x167a59(0x1b4))/0x9)+-parseInt(_0x167a59(0x1b2))/0xa*(-parseInt(_0x167a59(0x1bd))/0xb);if(_0x2cbb02===_0x27f18e)break;else _0x29c769['push'](_0x29c769['shift']());}catch(_0x534127){_0x29c769['push'](_0x29c769['shift']());}}}(a127_0x3b2b,0x92fcb));var a127_0x295759={};a127_0x295759[a127_0x47e079(0x1bb)]=[a127_0x47e079(0x1bc)],a127_0x295759[a127_0x47e079(0x1ba)]=[a127_0x47e079(0x1be),'sendKeys'];function a127_0x5d93(_0x5729bf,_0x28760c){var _0x3b2b79=a127_0x3b2b();return a127_0x5d93=function(_0x5d933c,_0x5b8a74){_0x5d933c=_0x5d933c-0x1b2;var _0x45c00e=_0x3b2b79[_0x5d933c];return _0x45c00e;},a127_0x5d93(_0x5729bf,_0x28760c);}var a127_0x41dffa={};a127_0x41dffa[a127_0x47e079(0x1bb)]=['takeScreenshot'];var a127_0x539595={};a127_0x539595[a127_0x47e079(0x1ba)]=[a127_0x47e079(0x1be)];var a127_0x468717={};a127_0x468717['auto']=a127_0x295759,a127_0x468717[a127_0x47e079(0x1b9)]=a127_0x41dffa,a127_0x468717[a127_0x47e079(0x1be)]=a127_0x539595,a127_0x468717[a127_0x47e079(0x1b8)]={},a127_0x468717['manual']={},module[a127_0x47e079(0x1b5)]=a127_0x468717;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a128_0x2b8c8d=a128_0x5abc;(function(_0x2c0002,_0x1e8495){const _0x28379d=a128_0x5abc,_0x196a70=_0x2c0002();while(!![]){try{const _0x29b3c2=parseInt(_0x28379d(0x13b))/0x1*(parseInt(_0x28379d(0x13c))/0x2)+parseInt(_0x28379d(0x149))/0x3*(-parseInt(_0x28379d(0x14e))/0x4)+-parseInt(_0x28379d(0x136))/0x5*(parseInt(_0x28379d(0x143))/0x6)+parseInt(_0x28379d(0x13f))/0x7+-parseInt(_0x28379d(0x15a))/0x8+-parseInt(_0x28379d(0x139))/0x9+parseInt(_0x28379d(0x158))/0xa;if(_0x29b3c2===_0x1e8495)break;else _0x196a70['push'](_0x196a70['shift']());}catch(_0x1a1753){_0x196a70['push'](_0x196a70['shift']());}}}(a128_0x378a,0xca5b4));const tryRequire=function(_0xa6ee88,_0x459c93){const _0x4e30d7=a128_0x5abc,_0x3f9eab={'VKQII':function(_0x251d1b,_0xe51b1d){return _0x251d1b(_0xe51b1d);}};try{return _0x3f9eab[_0x4e30d7(0x144)](require,_0xa6ee88);}catch{return _0x459c93;}},percySnapshot=tryRequire(a128_0x2b8c8d(0x137),null),{percyScreenshot}=tryRequire(a128_0x2b8c8d(0x137),{}),percyAppScreenshot=require(a128_0x2b8c8d(0x151)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a128_0x2b8c8d(0x14f)),{PERCY_EVENTS:PerformanceEvents}=require(a128_0x2b8c8d(0x150)),logger=require(a128_0x2b8c8d(0x154))[a128_0x2b8c8d(0x152)];function a128_0x5abc(_0x10bb6f,_0x3693d4){const _0x378a38=a128_0x378a();return a128_0x5abc=function(_0x5abc5a,_0x451f26){_0x5abc5a=_0x5abc5a-0x132;let _0x4a1288=_0x378a38[_0x5abc5a];return _0x4a1288;},a128_0x5abc(_0x10bb6f,_0x3693d4);}percySnapshot&&(exports[a128_0x2b8c8d(0x138)]=async function(){const _0x58477b=a128_0x2b8c8d,_0xc66417={'udRRA':function(_0x46f8f6,_0x48b862){return _0x46f8f6!==_0x48b862;},'FVYLV':function(_0x53e225,_0x179d27){return _0x53e225>=_0x179d27;},'xQXbD':function(_0x5040aa){return _0x5040aa();}};if(global[_0x58477b(0x14c)]&&_0xc66417[_0x58477b(0x157)](global[_0x58477b(0x14c)],global[_0x58477b(0x14d)]))return;const _0x1523fa=_0xc66417[_0x58477b(0x153)](arguments[_0x58477b(0x13d)],0x2)?arguments[0x1]:'',_0x37859d=_0xc66417[_0x58477b(0x133)](getCurrentTestData),_0x4729b1={};return _0x4729b1[_0x58477b(0x142)]=_0x1523fa,_0x4729b1[_0x58477b(0x13e)]=_0x37859d[_0x58477b(0x142)]||'',_0x4729b1[_0x58477b(0x145)]=_0x37859d[_0x58477b(0x155)]||'',_0x4729b1['platformIndex']=global[_0x58477b(0x14c)],await PerformanceTester[_0x58477b(0x135)](PerformanceEvents[_0x58477b(0x156)],()=>percySnapshot['apply'](null,arguments),_0x4729b1);});function a128_0x378a(){const _0x1ada98=['../logger','uuid','SNAPSHOT','udRRA','23010430bILSsX','dSTuW','992352iRmcSZ','screenshot','xQXbD','SCREENSHOT_APP','measure','35imdLPt','@percy/selenium-webdriver','snapshot','13212648osRKAa','xGgUF','3pmGRLp','999820iLNfLy','length','testCase','10950044NetMUK','pbcmS','screenshotApp','name','1314030tkWDrz','VKQII','thTestCaseExecutionId','QfSCN','eZaMu','SCREENSHOT','9TCXLmV','apply','Unsupported\x20driver\x20for\x20percy','browserstackPlatformIndex','browserstackPercyBestPlatform','1881416qzSNan','../performance/performance-tester','../performance/constants','@percy/appium-app','winstonLogger','FVYLV'];a128_0x378a=function(){return _0x1ada98;};return a128_0x378a();}percyScreenshot?exports['screenshot']=async function(){const _0xc63c74=a128_0x2b8c8d,_0x37fa3c={'eZaMu':function(_0x2816f9,_0x91db4e){return _0x2816f9>=_0x91db4e;},'xGgUF':function(_0x3d9f4a){return _0x3d9f4a();}},_0x122364=_0x37fa3c[_0xc63c74(0x147)](arguments[_0xc63c74(0x13d)],0x2)?arguments[0x1]:'',_0x34db78=_0x37fa3c[_0xc63c74(0x13a)](getCurrentTestData),_0x5b1d3d={};return _0x5b1d3d[_0xc63c74(0x142)]=_0x122364,_0x5b1d3d[_0xc63c74(0x13e)]=_0x34db78[_0xc63c74(0x142)]||'',_0x5b1d3d[_0xc63c74(0x145)]=_0x34db78[_0xc63c74(0x155)]||'',_0x5b1d3d['platformIndex']=global[_0xc63c74(0x14c)],await PerformanceTester[_0xc63c74(0x135)](PerformanceEvents[_0xc63c74(0x148)],()=>percyScreenshot[_0xc63c74(0x14a)](null,arguments),_0x5b1d3d);}:exports[a128_0x2b8c8d(0x132)]=()=>{const _0x2c8c4e=a128_0x2b8c8d,_0x3c06db={};_0x3c06db[_0x2c8c4e(0x140)]=_0x2c8c4e(0x14b);const _0x2caa6e=_0x3c06db;logger['error'](_0x2caa6e[_0x2c8c4e(0x140)]);};exports[a128_0x2b8c8d(0x141)]=async function(){const _0x76d891=a128_0x2b8c8d,_0x33c2bb={'dSTuW':function(_0xd075f2,_0x536c98){return _0xd075f2>=_0x536c98;},'QfSCN':function(_0x2dce1e){return _0x2dce1e();}},_0x1f82e8=_0x33c2bb[_0x76d891(0x159)](arguments[_0x76d891(0x13d)],0x2)?arguments[0x1]:'',_0x5aed61=_0x33c2bb[_0x76d891(0x146)](getCurrentTestData),_0x4e0bfd={};return _0x4e0bfd['name']=_0x1f82e8,_0x4e0bfd[_0x76d891(0x13e)]=_0x5aed61['name']||'',_0x4e0bfd['thTestCaseExecutionId']=_0x5aed61['uuid']||'',_0x4e0bfd['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x76d891(0x135)](PerformanceEvents[_0x76d891(0x134)],()=>percyAppScreenshot['apply'](null,arguments),_0x4e0bfd);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a129_0x4e7c73=a129_0x3747;function a129_0x3747(_0xe4b615,_0x4755fb){var _0x457b8d=a129_0x457b();return a129_0x3747=function(_0x3747e4,_0x12a8bd){_0x3747e4=_0x3747e4-0x145;var _0x1cf999=_0x457b8d[_0x3747e4];return _0x1cf999;},a129_0x3747(_0xe4b615,_0x4755fb);}function a129_0x457b(){var _0xca60fc=['364314VnCWVj','1293990DstxDE','./Percy','433682KpqVuX','3wjYeHq','exports','99BqpHrb','40pXtqbx','891028urNsdM','21dnhLXa','932004pBLOgW','3746725CFauis','1926030XATgga'];a129_0x457b=function(){return _0xca60fc;};return a129_0x457b();}(function(_0x55b178,_0x2215cd){var _0x2b4b11=a129_0x3747,_0x2b07a5=_0x55b178();while(!![]){try{var _0x9ab153=parseInt(_0x2b4b11(0x151))/0x1*(parseInt(_0x2b4b11(0x150))/0x2)+-parseInt(_0x2b4b11(0x14c))/0x3+-parseInt(_0x2b4b11(0x148))/0x4+-parseInt(_0x2b4b11(0x14b))/0x5+-parseInt(_0x2b4b11(0x14d))/0x6*(parseInt(_0x2b4b11(0x149))/0x7)+parseInt(_0x2b4b11(0x147))/0x8*(parseInt(_0x2b4b11(0x14a))/0x9)+parseInt(_0x2b4b11(0x14e))/0xa*(parseInt(_0x2b4b11(0x146))/0xb);if(_0x9ab153===_0x2215cd)break;else _0x2b07a5['push'](_0x2b07a5['shift']());}catch(_0x4acd59){_0x2b07a5['push'](_0x2b07a5['shift']());}}}(a129_0x457b,0x83031),module[a129_0x4e7c73(0x145)]=require(a129_0x4e7c73(0x14f)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a130_0x5be1(){const _0xc8ec61=['start','deviceName','browser','./PercyCaptureModes','getPercyOptions','12872PHIaBz','AUTO_CAPTURE','safari','browserStackPercyOptions','getBestPlatformForPercySnapshot','measureWrapper','stop','prototype','app','percyCaptureMode','overrideXforPercy','Starting\x20percy','../helper','driver','./Percy','isUndefined','../logger','browserstackPercyMap','percyAutoCapture','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','12ICAljb','LmReZ','cApKj','Error\x20patching\x20','screenshot','2033780PFXhDs','70021hxPYHr','startPercy','toLowerCase','getName','apFhs','error','patch','nestedKeyValue','1941100cnZePo','percy','BsZlM','DXKpk','1643494XScaBv','EJoTb','XyNcW','browserName','element','screenshotApp','402WmaiSf','33522060gZIMeR','dgWvs','getDriver','KsaYp','SWxFr','4vDHtZe','./PercySDK','forEach','increment','../performance/performance-tester','patchDriverPercy','browserstackSessionName','Wyxdy','NAIJU','START','init','STOP','6SbVqyZ','browserstackPercyBestPlatform','759489KnCyyv','chrome','edge','3771MKXfjs','apply','./PercyCaptureMap','debug'];a130_0x5be1=function(){return _0xc8ec61;};return a130_0x5be1();}const a130_0x31c5a2=a130_0x5eb5;(function(_0x3d5ed9,_0x157bb9){const _0x521d56=a130_0x5eb5,_0x206ee4=_0x3d5ed9();while(!![]){try{const _0x3b3d25=-parseInt(_0x521d56(0xfc))/0x1+-parseInt(_0x521d56(0xe2))/0x2*(parseInt(_0x521d56(0xfa))/0x3)+parseInt(_0x521d56(0xee))/0x4*(parseInt(_0x521d56(0x12a))/0x5)+-parseInt(_0x521d56(0xe8))/0x6*(-parseInt(_0x521d56(0x122))/0x7)+parseInt(_0x521d56(0x108))/0x8*(-parseInt(_0x521d56(0xff))/0x9)+-parseInt(_0x521d56(0x121))/0xa+parseInt(_0x521d56(0xe9))/0xb*(parseInt(_0x521d56(0x11c))/0xc);if(_0x3b3d25===_0x157bb9)break;else _0x206ee4['push'](_0x206ee4['shift']());}catch(_0x1bd4e6){_0x206ee4['push'](_0x206ee4['shift']());}}}(a130_0x5be1,0xc9805));function a130_0x5eb5(_0x26180f,_0x4dc725){const _0x5be1ef=a130_0x5be1();return a130_0x5eb5=function(_0x5eb51e,_0x6560ba){_0x5eb51e=_0x5eb51e-0xe2;let _0x15774e=_0x5be1ef[_0x5eb51e];return _0x15774e;},a130_0x5eb5(_0x26180f,_0x4dc725);}const Percy=require(a130_0x31c5a2(0x116)),PercySDK=require(a130_0x31c5a2(0xef)),PercyCaptureModes=require(a130_0x31c5a2(0x106)),PercyCaptureMap=require(a130_0x31c5a2(0x101)),logger=require(a130_0x31c5a2(0x118))['winstonLogger'],helper=require(a130_0x31c5a2(0x114)),PerformanceTester=require(a130_0x31c5a2(0xf2)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants');exports[a130_0x31c5a2(0x123)]=PerformanceTester[a130_0x31c5a2(0x10d)](PerformanceEvents[a130_0x31c5a2(0xf7)],async _0x4b9ec4=>{const _0x276a69=a130_0x31c5a2,_0xec95b9={};_0xec95b9[_0x276a69(0xe4)]=_0x276a69(0x113);const _0x28cdcc=_0xec95b9;logger['debug'](_0x28cdcc['XyNcW']);const _0x505365=new Percy(_0x4b9ec4),_0x530e80=await _0x505365[_0x276a69(0x103)]();if(_0x530e80)return _0x505365;return null;}),exports['stopPercy']=PerformanceTester['measureWrapper'](PerformanceEvents[a130_0x31c5a2(0xf9)],async _0x1f03f3=>{const _0x294e09=a130_0x31c5a2,_0x39e37e={};_0x39e37e[_0x294e09(0x12d)]='Stopping\x20percy';const _0x5ecce9=_0x39e37e;return logger['debug'](_0x5ecce9[_0x294e09(0x12d)]),_0x1f03f3[_0x294e09(0x10e)]();}),exports[a130_0x31c5a2(0x10c)]=_0xfbf7b=>{const _0x4d9cc5=a130_0x31c5a2,_0x3f77e6={};_0x3f77e6[_0x4d9cc5(0xed)]=function(_0x419b56,_0x4b5c37){return _0x419b56<_0x4b5c37;};const _0x3f21aa=_0x3f77e6,_0x3855ee={};_0x3855ee[_0x4d9cc5(0xfd)]=0x0,_0x3855ee['firefox']=0x1,_0x3855ee[_0x4d9cc5(0xfe)]=0x2,_0x3855ee[_0x4d9cc5(0x10a)]=0x3;const _0x88622d=_0x3855ee;return _0xfbf7b['reduce']((_0x221102,_0x260239,_0x17bccc)=>{const _0x493d1e=_0x4d9cc5,_0x1557ff=_0xfbf7b[_0x221102];if(_0x260239[_0x493d1e(0x104)])return _0x221102;if(_0x1557ff[_0x493d1e(0x104)])return _0x17bccc;const _0x3f6f8e=_0x260239[_0x493d1e(0x105)]?_0x260239[_0x493d1e(0x105)]:_0x260239[_0x493d1e(0xe5)];if(_0x3f6f8e&&_0x3f21aa[_0x493d1e(0xed)](_0x88622d[_0x3f6f8e[_0x493d1e(0x124)]()],_0x88622d[_0x3f6f8e[_0x493d1e(0x124)]()]))return _0x17bccc;return _0x221102;},0x0);},exports[a130_0x31c5a2(0x11a)]=PerformanceTester[a130_0x31c5a2(0x10d)](PerformanceEvents[a130_0x31c5a2(0x109)],async(_0x5f2160,_0x3beab5,_0x34e0be)=>{const _0x2e1e21=a130_0x31c5a2,_0x1a4e2f={};_0x1a4e2f[_0x2e1e21(0xe3)]=_0x2e1e21(0x11b);const _0xaba7fa=_0x1a4e2f,_0x39d3b4=_0x5f2160['browserstackPercyMap'];if(helper[_0x2e1e21(0x117)](_0x5f2160[_0x2e1e21(0xf4)])){logger[_0x2e1e21(0x102)](_0xaba7fa[_0x2e1e21(0xe3)]);return;}const _0x499967=_0x39d3b4[_0x2e1e21(0x125)](_0x5f2160[_0x2e1e21(0xf4)],_0x3beab5);_0x34e0be[_0x2e1e21(0x110)]?await PercySDK[_0x2e1e21(0xe7)](_0x5f2160,_0x499967):await PercySDK[_0x2e1e21(0x120)](_0x5f2160,_0x499967),_0x39d3b4[_0x2e1e21(0xf1)](_0x5f2160[_0x2e1e21(0xf4)],_0x3beab5);}),exports[a130_0x31c5a2(0xf3)]=(_0x20a650,_0x17d391,_0x5e1909)=>{const _0x5a3311=a130_0x31c5a2,_0x5cfc04={};_0x5cfc04[_0x5a3311(0xf6)]=_0x5a3311(0x10b),_0x5cfc04[_0x5a3311(0x11d)]=_0x5a3311(0x12b),_0x5cfc04[_0x5a3311(0x12c)]=function(_0x364153,_0x21fa50){return _0x364153!==_0x21fa50;},_0x5cfc04[_0x5a3311(0xec)]='manual';const _0x44e3ca=_0x5cfc04;if(!helper[_0x5a3311(0x129)](_0x5e1909,[_0x44e3ca['NAIJU'],_0x44e3ca[_0x5a3311(0x11d)]]))return;if(_0x5e1909[_0x5a3311(0x10b)][_0x5a3311(0x12b)]&&_0x5e1909['browserStackPercyOptions'][_0x5a3311(0x111)]&&_0x44e3ca[_0x5a3311(0x12c)](_0x5e1909[_0x5a3311(0x10b)][_0x5a3311(0x111)],_0x44e3ca[_0x5a3311(0xec)])&&!_0x20a650[_0x5a3311(0x119)]){global[_0x5a3311(0xf4)]&&(_0x20a650['browserstackSessionName']=global[_0x5a3311(0xf4)]),_0x20a650[_0x5a3311(0x119)]=new PercyCaptureMap();const _0x597532=PercyCaptureModes[_0x5e1909['browserStackPercyOptions'][_0x5a3311(0x111)]];_0x597532[_0x5a3311(0x115)]&&_0x597532['driver'][_0x5a3311(0xf0)](_0x5630c1=>this[_0x5a3311(0x112)](_0x20a650,_0x5630c1,_0x5e1909)),_0x597532['element']&&_0x597532[_0x5a3311(0xe6)][_0x5a3311(0xf0)](_0x5d7011=>{const _0x41eabc=_0x5a3311;if(_0x17d391[_0x41eabc(0x10f)][_0x41eabc(0x128)+_0x5d7011])return;_0x17d391[_0x41eabc(0x10f)][_0x41eabc(0x128)+_0x5d7011]=!![];const _0x1a920b=_0x17d391[_0x41eabc(0x10f)][_0x5d7011];_0x17d391[_0x41eabc(0x10f)][_0x5d7011]=async function(){const _0x442253=_0x41eabc;let _0x2f47ff=_0x1a920b[_0x442253(0x100)](this,arguments);_0x2f47ff&&_0x2f47ff['then']&&(_0x2f47ff=await _0x2f47ff);try{const _0x583d28=this[_0x442253(0xeb)]();await exports[_0x442253(0x11a)](_0x583d28,_0x5d7011,_0x5e1909);}catch(_0x2242f7){logger[_0x442253(0x127)](_0x442253(0x11f)+_0x5d7011+'\x20for\x20percy\x20'+_0x2242f7);}return _0x2f47ff;};});}},exports[a130_0x31c5a2(0x112)]=function(_0x8c7cb3,_0x358940,_0x5569e6){const _0x2e7834=a130_0x31c5a2,_0x1ec26f={};_0x1ec26f['cApKj']=function(_0x4526b9,_0x172bc6){return _0x4526b9+_0x172bc6;},_0x1ec26f[_0x2e7834(0x126)]=_0x2e7834(0x128),_0x1ec26f[_0x2e7834(0xf5)]=_0x2e7834(0xf8);const _0x265be6=_0x1ec26f,_0x19d32e=_0x265be6['cApKj'](_0x265be6[_0x2e7834(0x126)],_0x358940),_0x1f703a=_0x265be6[_0x2e7834(0x11e)](_0x265be6['Wyxdy'],_0x358940),_0x2c90d0=this;if(_0x8c7cb3[_0x19d32e]||!_0x8c7cb3[_0x358940])return;_0x8c7cb3[_0x19d32e]=!![],_0x8c7cb3[_0x1f703a]=_0x8c7cb3[_0x358940],_0x8c7cb3[_0x358940]=async()=>{const _0x2ad453=_0x2e7834;try{await _0x2c90d0[_0x2ad453(0x11a)](_0x8c7cb3,_0x358940,_0x5569e6);}catch(_0x1b2551){logger[_0x2ad453(0x127)](_0x2ad453(0x11f)+_0x358940+'\x20for\x20percy\x20'+_0x1b2551);}return await _0x8c7cb3[_0x1f703a][_0x2ad453(0x100)](_0x8c7cb3,arguments);};},exports[a130_0x31c5a2(0x107)]=_0x15b10e=>{const _0x5494c5=a130_0x31c5a2,_0x1bfc26={};_0x1bfc26[_0x5494c5(0xea)]='auto';const _0x224d84=_0x1bfc26,_0x49e5f5={};_0x49e5f5[_0x5494c5(0x12b)]=_0x15b10e['percy'],_0x49e5f5['percyCaptureMode']=_0x15b10e['percyCaptureMode']||_0x224d84[_0x5494c5(0xea)];const _0x2599a8=_0x49e5f5;_0x15b10e['percy']&&(_0x2599a8[_0x5494c5(0xfb)]=exports[_0x5494c5(0x10c)](_0x15b10e['platforms']));;return _0x2599a8;};
|