browserstack-node-sdk 1.50.0 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a109_0x2e6c(){const _0x4e60b8=['code','timestamp','transports','includes','WFVdp','join','1464660YqsSMm','sFGIq','1414rwCzmF','keys','add','colorize','YYYY-MM-DD\x20HH:mm:ss','70287CIUbji','5DnBGXH','stringify','6761781pXClQF','loggerConsole','QJVWH','initialize','message','accessKey','FfvAk','env','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','level','\x20-\x20','config','true','buildLinkTransport','userName','../bin/utils/constants','mkdirSync','path','File','format','debugLoggerFile','winstonLogger','dMqrN','logDir','uuiRR','silly','124fGhoox','error','BROWSERSTACK_LOG_LEVEL','284665jEvuvo','createLogger','log','BROWSERSTACK_INTERNAL_LOG_DIR','name','buildLogger','3343272EXCdZc','automationLoggerFile','npm','automation.log','/sdk-cli-debug.log','GbpPn','vruTS','BROWSERSTACK_AUTOMATION_LOGS','printf','loggerFile','EPIPE','info','/usage-debug.log','fileLogger','debug','7616900aFBIya','warn','toLowerCase','existsSync','session','replace','combine','28360yqElln','/usage.log','XtoAR'];a109_0x2e6c=function(){return _0x4e60b8;};return a109_0x2e6c();}const a109_0x5467b8=a109_0x1fd1;(function(_0x1afd13,_0x25afdd){const _0x182364=a109_0x1fd1,_0x962fbb=_0x1afd13();while(!![]){try{const _0x4f9e53=parseInt(_0x182364(0x1e4))/0x1+parseInt(_0x182364(0x209))/0x2+-parseInt(_0x182364(0x1c4))/0x3*(parseInt(_0x182364(0x1e1))/0x4)+parseInt(_0x182364(0x1c5))/0x5*(-parseInt(_0x182364(0x1ea))/0x6)+-parseInt(_0x182364(0x20b))/0x7*(-parseInt(_0x182364(0x200))/0x8)+-parseInt(_0x182364(0x1c7))/0x9+parseInt(_0x182364(0x1f9))/0xa;if(_0x4f9e53===_0x25afdd)break;else _0x962fbb['push'](_0x962fbb['shift']());}catch(_0xe5e2fa){_0x962fbb['push'](_0x962fbb['shift']());}}}(a109_0x2e6c,0x704b3));const winston=require('winston'),path=require(a109_0x5467b8(0x1d8)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME}=require(a109_0x5467b8(0x1d6)),tempLogDir=a109_0x5467b8(0x1e6),logFormat=winston[a109_0x5467b8(0x1da)](_0x4079eb=>{const _0x462d85=a109_0x5467b8,_0x9501bc={};_0x9501bc['dMqrN']=function(_0x15ecbb,_0x46e216){return _0x15ecbb!==_0x46e216;},_0x9501bc[_0x462d85(0x202)]='string',_0x9501bc['vruTS']=function(_0x17e6a2,_0x2247ed){return _0x17e6a2===_0x2247ed;},_0x9501bc['FfvAk']='[REDACTED]',_0x9501bc[_0x462d85(0x1df)]=function(_0x7eeb7d,_0x4111c3){return _0x7eeb7d===_0x4111c3;};const _0x3eb130=_0x9501bc;return _0x3eb130[_0x462d85(0x1dd)](typeof _0x4079eb[_0x462d85(0x1cb)],_0x3eb130['XtoAR'])&&(_0x4079eb[_0x462d85(0x1cb)]=JSON[_0x462d85(0x1c6)](_0x4079eb[_0x462d85(0x1cb)])),global[_0x462d85(0x1fd)]?.[_0x462d85(0x1d2)]?.[_0x462d85(0x1d5)]&&_0x3eb130[_0x462d85(0x1f0)](typeof _0x4079eb[_0x462d85(0x1cb)],_0x3eb130[_0x462d85(0x202)])&&(_0x4079eb['message']=_0x4079eb[_0x462d85(0x1cb)][_0x462d85(0x1fe)](new RegExp(global[_0x462d85(0x1fd)][_0x462d85(0x1d2)][_0x462d85(0x1d5)],'g'),_0x3eb130['FfvAk'])),global['session']?.[_0x462d85(0x1d2)]?.[_0x462d85(0x1cc)]&&_0x3eb130[_0x462d85(0x1df)](typeof _0x4079eb[_0x462d85(0x1cb)],_0x3eb130['XtoAR'])&&(_0x4079eb[_0x462d85(0x1cb)]=_0x4079eb[_0x462d85(0x1cb)][_0x462d85(0x1fe)](new RegExp(global[_0x462d85(0x1fd)][_0x462d85(0x1d2)][_0x462d85(0x1cc)],'g'),_0x3eb130[_0x462d85(0x1cd)])),_0x4079eb;}),fetchLogDir=()=>{const _0x415505=a109_0x5467b8;if(process[_0x415505(0x1ce)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process['env'][_0x415505(0x1e7)];else!fs[_0x415505(0x1fc)](tempLogDir)&&fs[_0x415505(0x1d7)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x4c8c3e=a109_0x5467b8,_0x33e077={};_0x33e077[_0x4c8c3e(0x1c9)]=_0x4c8c3e(0x1f5);const _0x44599c=_0x33e077,_0xa3814d=process[_0x4c8c3e(0x1ce)][_0x4c8c3e(0x1e3)],_0x5a65f9=Object[_0x4c8c3e(0x20c)](winston[_0x4c8c3e(0x1d2)][_0x4c8c3e(0x1ec)]['levels']);if(_0xa3814d&&_0x5a65f9[_0x4c8c3e(0x206)](_0xa3814d[_0x4c8c3e(0x1fb)]()))return _0xa3814d[_0x4c8c3e(0x1fb)]();return _0x44599c[_0x4c8c3e(0x1c9)];},initialLogLevel=getInitialLogLevel(),a109_0x49e511={};a109_0x49e511[a109_0x5467b8(0x1e8)]='console.info',a109_0x49e511[a109_0x5467b8(0x1d0)]=initialLogLevel;const transports={'loggerConsole':new winston[(a109_0x5467b8(0x205))]['Console'](a109_0x49e511),'loggerFile':new winston[(a109_0x5467b8(0x205))]['File']({'filename':path[a109_0x5467b8(0x208)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a109_0x5467b8(0x1d9))]({'filename':path['join'](logDir,a109_0x5467b8(0x1f6)),'level':a109_0x5467b8(0x1e0)}),'debugCliLoggerFile':new winston['transports'][(a109_0x5467b8(0x1d9))]({'filename':path['join'](logDir,a109_0x5467b8(0x1ee)),'level':a109_0x5467b8(0x1e0)}),'buildLinkTransport':new winston['transports'][(a109_0x5467b8(0x1d9))]({'filename':path[a109_0x5467b8(0x208)](logDir,a109_0x5467b8(0x201)),'level':a109_0x5467b8(0x1e0)})},automationTransports={};process[a109_0x5467b8(0x1ce)][a109_0x5467b8(0x1f1)]==='true'&&(automationTransports['automationLoggerFile']=new winston[(a109_0x5467b8(0x205))][(a109_0x5467b8(0x1d9))]({'filename':path[a109_0x5467b8(0x208)](logDir,a109_0x5467b8(0x1ed)),'level':a109_0x5467b8(0x1e0)}));transports[a109_0x5467b8(0x1c8)]['on'](a109_0x5467b8(0x1e2),_0x55d9f9=>{const _0x3162af=a109_0x5467b8,_0x34854f={};_0x34854f[_0x3162af(0x1ef)]=function(_0x894e2e,_0x320f0a){return _0x894e2e===_0x320f0a;},_0x34854f[_0x3162af(0x207)]=_0x3162af(0x1f4),_0x34854f['SDOpD']=_0x3162af(0x1cf);const _0x19d6ab=_0x34854f;if(_0x19d6ab[_0x3162af(0x1ef)](_0x55d9f9[_0x3162af(0x203)],_0x19d6ab[_0x3162af(0x207)])){console[_0x3162af(0x1e6)](_0x19d6ab['SDOpD'],_0x55d9f9[_0x3162af(0x1cb)]);return;}throw _0x55d9f9;});const a109_0x3bcc03={};a109_0x3bcc03['format']=a109_0x5467b8(0x1c3);const a109_0x21284a={};a109_0x21284a['level']=!![];const winstonLoggerParams={'format':winston[a109_0x5467b8(0x1da)]['combine'](winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x204)](a109_0x3bcc03),winston[a109_0x5467b8(0x1da)]['colorize'](a109_0x21284a),winston[a109_0x5467b8(0x1da)]['printf'](_0x3b9b39=>_0x3b9b39[a109_0x5467b8(0x204)]+a109_0x5467b8(0x1d1)+_0x3b9b39[a109_0x5467b8(0x1d0)]+':\x20'+_0x3b9b39['message'])),'transports':[transports[a109_0x5467b8(0x1c8)]]},a109_0xf7dcf7={};a109_0xf7dcf7[a109_0x5467b8(0x1da)]='YYYY-MM-DD\x20HH:mm:ss';const a109_0x10c525={};a109_0x10c525[a109_0x5467b8(0x1d0)]=!![];const winstonFileLoggerParams={'format':winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x1ff)](winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x204)](a109_0xf7dcf7),winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x20e)](a109_0x10c525),winston['format'][a109_0x5467b8(0x1f2)](_0x5351a1=>_0x5351a1['level']+':\x20'+_0x5351a1['message'])),'transports':[]},a109_0x4cff89={};a109_0x4cff89[a109_0x5467b8(0x1da)]=a109_0x5467b8(0x1c3);const a109_0x2cc8c7={};a109_0x2cc8c7[a109_0x5467b8(0x1d0)]=!![];function a109_0x1fd1(_0x10e575,_0x94787c){const _0x2e6ca0=a109_0x2e6c();return a109_0x1fd1=function(_0x1fd12d,_0x551a00){_0x1fd12d=_0x1fd12d-0x1c3;let _0x30bca0=_0x2e6ca0[_0x1fd12d];return _0x30bca0;},a109_0x1fd1(_0x10e575,_0x94787c);}const a109_0x5afc7c={};a109_0x5afc7c[a109_0x5467b8(0x1d0)]=a109_0x5467b8(0x1e0);const BuildLoggerParams={'format':winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x1ff)](winston['format'][a109_0x5467b8(0x204)](a109_0x4cff89),winston[a109_0x5467b8(0x1da)]['colorize'](a109_0x2cc8c7),winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x1f2)](_0x5b029e=>_0x5b029e[a109_0x5467b8(0x204)]+a109_0x5467b8(0x1d1)+_0x5b029e[a109_0x5467b8(0x1d0)]+':\x20'+_0x5b029e[a109_0x5467b8(0x1cb)])),'transports':[transports[a109_0x5467b8(0x1d4)],new winston['transports']['Console'](a109_0x5afc7c)]},a109_0x3d34c8={};a109_0x3d34c8['http']=()=>{},a109_0x3d34c8[a109_0x5467b8(0x1f5)]=()=>{},a109_0x3d34c8[a109_0x5467b8(0x1fa)]=()=>{},a109_0x3d34c8[a109_0x5467b8(0x1e2)]=()=>{},a109_0x3d34c8[a109_0x5467b8(0x1f8)]=()=>{},a109_0x3d34c8['silly']=()=>{},exports['automationLogger']=process[a109_0x5467b8(0x1ce)][a109_0x5467b8(0x1f1)]===a109_0x5467b8(0x1d3)?winston[a109_0x5467b8(0x1e5)]({'format':winston[a109_0x5467b8(0x1da)]['combine'](winston[a109_0x5467b8(0x1da)]['uncolorize'](),winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x204)](),logFormat(),winston[a109_0x5467b8(0x1da)][a109_0x5467b8(0x1f2)](_0x33bdfd=>_0x33bdfd[a109_0x5467b8(0x1d0)]+':\x20'+_0x33bdfd[a109_0x5467b8(0x1cb)])),'transports':[automationTransports[a109_0x5467b8(0x1eb)]]}):a109_0x3d34c8;const initialize=()=>{const _0x166eba=a109_0x5467b8,_0x46e85d={};_0x46e85d['sFGIq']='silly';const _0x6ccc06=_0x46e85d,_0x22ae3b=transports[_0x166eba(0x1c8)][_0x166eba(0x1d0)]||initialLogLevel;transports[_0x166eba(0x1f3)]=new winston[(_0x166eba(0x205))]['File']({'filename':path[_0x166eba(0x208)](exports[_0x166eba(0x1de)],LOG_FILE_NAME),'level':_0x22ae3b}),transports[_0x166eba(0x1db)]=new winston[(_0x166eba(0x205))][(_0x166eba(0x1d9))]({'filename':path[_0x166eba(0x208)](exports[_0x166eba(0x1de)],DEBUG_LOG_FILE_NAME),'level':_0x6ccc06[_0x166eba(0x20a)]}),exports[_0x166eba(0x1dc)][_0x166eba(0x20d)](transports[_0x166eba(0x1f3)]),exports['winstonLogger']['add'](transports[_0x166eba(0x1db)]),exports[_0x166eba(0x1f7)][_0x166eba(0x20d)](transports[_0x166eba(0x1f3)]),exports['fileLogger'][_0x166eba(0x20d)](transports[_0x166eba(0x1db)]);};exports[a109_0x5467b8(0x1dc)]=new winston['createLogger'](winstonLoggerParams),exports['fileLogger']=new winston[(a109_0x5467b8(0x1e5))](winstonFileLoggerParams),exports[a109_0x5467b8(0x1e9)]=new winston[(a109_0x5467b8(0x1e5))](BuildLoggerParams),exports['logDir']=logDir,exports['getLogDir']=()=>{const _0x4b92d3=a109_0x5467b8;return exports[_0x4b92d3(0x1de)];},exports[a109_0x5467b8(0x205)]=transports,exports[a109_0x5467b8(0x1ca)]=initialize;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a110_0x5b5e(){const _0x8f0c82=['133287YFpJeV','getCentralUser','string','4gnVgjG','get','2277451uhSSYh','2493pLardc','getGlobal','testMeta','817649TaRUzA','CiMPT','iiGNV','setGlobal','953019WwlCEy','length','./helper','rSmLW','The\x20metadata\x20object\x20is\x20not\x20valid.','3390840laNZkb','WVJZL','aVbQI','15oSOfdk','winstonLogger','exports','1476IqSuHI','identifier','70roUacJ','set','11946FZRrFn','./globals','PwDiq','lcnc','warn'];a110_0x5b5e=function(){return _0x8f0c82;};return a110_0x5b5e();}const a110_0x5c2d5b=a110_0x3a61;function a110_0x3a61(_0x1209fb,_0x9e1d32){const _0x5b5ed9=a110_0x5b5e();return a110_0x3a61=function(_0x3a6104,_0x1ed4c7){_0x3a6104=_0x3a6104-0x16a;let _0x56b655=_0x5b5ed9[_0x3a6104];return _0x56b655;},a110_0x3a61(_0x1209fb,_0x9e1d32);}(function(_0x20fa1e,_0x22f039){const _0x3e6416=a110_0x3a61,_0x533182=_0x20fa1e();while(!![]){try{const _0x2cd599=-parseInt(_0x3e6416(0x170))/0x1*(parseInt(_0x3e6416(0x173))/0x2)+parseInt(_0x3e6416(0x176))/0x3*(-parseInt(_0x3e6416(0x188))/0x4)+-parseInt(_0x3e6416(0x185))/0x5*(parseInt(_0x3e6416(0x16b))/0x6)+-parseInt(_0x3e6416(0x179))/0x7+-parseInt(_0x3e6416(0x182))/0x8+-parseInt(_0x3e6416(0x17d))/0x9+parseInt(_0x3e6416(0x18a))/0xa*(parseInt(_0x3e6416(0x175))/0xb);if(_0x2cd599===_0x22f039)break;else _0x533182['push'](_0x533182['shift']());}catch(_0x3a7963){_0x533182['push'](_0x533182['shift']());}}}(a110_0x5b5e,0x3693c));const globals=require(a110_0x5c2d5b(0x16c)),helper=require(a110_0x5c2d5b(0x17f)),logger=require('./logger')[a110_0x5c2d5b(0x186)];module[a110_0x5c2d5b(0x187)]=class TestMetadata{static[a110_0x5c2d5b(0x16a)](_0x145ae0={}){const _0x3ac498=a110_0x5c2d5b,_0x2bd601={};_0x2bd601[_0x3ac498(0x17a)]='testRunUUID',_0x2bd601[_0x3ac498(0x17b)]=function(_0x2daf2a,_0x56f900){return _0x2daf2a===_0x56f900;},_0x2bd601[_0x3ac498(0x16d)]=_0x3ac498(0x172),_0x2bd601[_0x3ac498(0x184)]=function(_0x4800d7,_0x31c569){return _0x4800d7<=_0x31c569;},_0x2bd601['zQPGq']=_0x3ac498(0x178),_0x2bd601[_0x3ac498(0x183)]=_0x3ac498(0x181);const _0x2acd4c=_0x2bd601,_0x2036a5=globals[_0x3ac498(0x177)](_0x2acd4c[_0x3ac498(0x17a)]),_0xaba40c=_0x145ae0[_0x3ac498(0x189)];helper['getCentralUser']()[_0x3ac498(0x16e)]&&(_0x2acd4c[_0x3ac498(0x17b)](typeof _0xaba40c,_0x2acd4c[_0x3ac498(0x16d)])&&_0x2acd4c['aVbQI'](_0xaba40c[_0x3ac498(0x17e)],0x28)?_0x2036a5?globals[_0x3ac498(0x17c)]('testMeta-'+_0x2036a5,_0x145ae0):globals['setGlobal'](_0x2acd4c['zQPGq'],_0x145ae0):logger[_0x3ac498(0x16f)](_0x2acd4c[_0x3ac498(0x183)]));}static[a110_0x5c2d5b(0x174)](_0x1528c3){const _0x568509=a110_0x5c2d5b,_0x10bcb8={};_0x10bcb8[_0x568509(0x180)]=_0x568509(0x178);const _0x5ca31f=_0x10bcb8;if(helper[_0x568509(0x171)]()[_0x568509(0x16e)])return globals[_0x568509(0x177)]('testMeta-'+_0x1528c3)||globals[_0x568509(0x177)](_0x5ca31f[_0x568509(0x180)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x302077=a111_0x51aa;(function(_0x44dac3,_0x45435f){const _0x2b5285=a111_0x51aa,_0x3271dd=_0x44dac3();while(!![]){try{const _0x33541a=-parseInt(_0x2b5285(0x1ee))/0x1*(parseInt(_0x2b5285(0x20f))/0x2)+-parseInt(_0x2b5285(0x22b))/0x3+-parseInt(_0x2b5285(0x224))/0x4*(parseInt(_0x2b5285(0x1cc))/0x5)+-parseInt(_0x2b5285(0x223))/0x6+parseInt(_0x2b5285(0x1ce))/0x7+parseInt(_0x2b5285(0x211))/0x8+parseInt(_0x2b5285(0x1d3))/0x9;if(_0x33541a===_0x45435f)break;else _0x3271dd['push'](_0x3271dd['shift']());}catch(_0x40ba87){_0x3271dd['push'](_0x3271dd['shift']());}}}(a111_0x5681,0xc1a12));const {aiSdkWrapper}=require('./ai-sdk/aiSdkWrapper'),{commandRepository}=require(a111_0x302077(0x1f3)),PerformanceTester=require(a111_0x302077(0x1cb)),globals=require(a111_0x302077(0x1d7)),{winstonLogger:logger,automationLogger}=require(a111_0x302077(0x1d0)),helper=require(a111_0x302077(0x1ea)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a111_0x302077(0x1d4)),util=require('util');function a111_0x51aa(_0x1eb6cc,_0x341851){const _0x568181=a111_0x5681();return a111_0x51aa=function(_0x51aa3e,_0x3b68c7){_0x51aa3e=_0x51aa3e-0x1a1;let _0x5936c7=_0x568181[_0x51aa3e];return _0x5936c7;},a111_0x51aa(_0x1eb6cc,_0x341851);}exports[a111_0x302077(0x20a)]=(_0x151212,_0x399ffc)=>{const _0x8e16e5=a111_0x302077,_0xd6b169={'oqOtC':_0x8e16e5(0x1c2),'BVNno':function(_0x486145,_0x2cd776){return _0x486145===_0x2cd776;},'ktOyx':'findElement','UYAHQ':_0x8e16e5(0x1d9),'OSYJx':_0x8e16e5(0x1a6),'pczER':_0x8e16e5(0x21c),'XNHMX':function(_0x3d6b35){return _0x3d6b35();},'VWjTS':'aiHeal:setToken','rDlgV':function(_0x4ab1d7){return _0x4ab1d7();},'mywbV':_0x8e16e5(0x209),'DJBii':_0x8e16e5(0x22c),'oxzDC':function(_0x18a30b,_0x428042){return _0x18a30b===_0x428042;},'ayPqk':_0x8e16e5(0x1bf),'oLcHO':_0x8e16e5(0x206),'MzQBi':function(_0x19a415,_0x4c70f0){return _0x19a415+_0x4c70f0;},'SEvzS':_0x8e16e5(0x229),'WPlpS':_0x8e16e5(0x1e4),'jJHBj':function(_0x457f21,_0x5f5901){return _0x457f21+_0x5f5901;},'pgxtP':_0x8e16e5(0x1f7),'EdZUK':'aiHeal:findElementFailure','kdGPK':function(_0x22f6a6,_0x4011b7){return _0x22f6a6&&_0x4011b7;},'fyFjD':function(_0x45aacc,_0x20754e){return _0x45aacc===_0x20754e;},'hqWMT':function(_0x25504c,_0x4f139f){return _0x25504c+_0x4f139f;},'DmVbU':_0x8e16e5(0x1c1),'VomnE':function(_0x5ce8a9,_0x1610fc){return _0x5ce8a9+_0x1610fc;},'jZGvf':_0x8e16e5(0x227),'ScULx':'Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','xHKmD':_0x8e16e5(0x1d2),'sLnAt':_0x8e16e5(0x1e3),'fbcKB':'parameters_','BsufY':_0x8e16e5(0x20c),'KXOJF':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','FaxbC':function(_0x24e002,_0x42ee78){return _0x24e002===_0x42ee78;},'dSZeV':_0x8e16e5(0x202),'LRlvq':function(_0x602115,_0x555755){return _0x602115===_0x555755;},'xMXbG':_0x8e16e5(0x1fd),'UATiI':function(_0x596f89,_0x2cb379){return _0x596f89===_0x2cb379;},'zBPcW':_0x8e16e5(0x216),'qokJm':_0x8e16e5(0x218),'OPSLS':_0x8e16e5(0x1c7),'iAMME':_0x8e16e5(0x1c0),'DwDah':_0x8e16e5(0x1aa)},_0x227965=_0x151212['patchExecute']||(helper[_0x8e16e5(0x1ed)](_0x399ffc,[_0xd6b169[_0x8e16e5(0x217)],_0xd6b169[_0x8e16e5(0x1c5)]])||helper[_0x8e16e5(0x1ed)](_0x399ffc,[_0xd6b169[_0x8e16e5(0x217)],_0xd6b169[_0x8e16e5(0x1ba)],_0xd6b169[_0x8e16e5(0x22a)]]));if(!globals['getGlobal'](_0xd6b169[_0x8e16e5(0x219)])&&!globals[_0x8e16e5(0x1d8)](_0xd6b169[_0x8e16e5(0x1e7)])&&_0x227965)return;_0x151212['patchExecute']=!![],_0x151212[_0x8e16e5(0x207)]=_0x151212[_0x8e16e5(0x1dc)],_0x151212[_0x8e16e5(0x1dc)]=async _0x4ab206=>{const _0xb7ae52=_0x8e16e5,_0x7ba948={'upfWL':_0xd6b169[_0xb7ae52(0x219)],'ccFjY':_0xd6b169[_0xb7ae52(0x1db)],'IRDDS':function(_0x454f5e){return _0xd6b169['rDlgV'](_0x454f5e);},'uuIWf':_0xd6b169['mywbV'],'EVnMt':function(_0x198ebe,_0x59f39b){const _0x4339a0=_0xb7ae52;return _0xd6b169[_0x4339a0(0x200)](_0x198ebe,_0x59f39b);},'sgPgi':_0xd6b169[_0xb7ae52(0x1fe)],'MMKbG':function(_0x239c05,_0x3103d2){const _0x38662e=_0xb7ae52;return _0xd6b169[_0x38662e(0x1ac)](_0x239c05,_0x3103d2);},'JynBJ':_0xd6b169[_0xb7ae52(0x210)],'QSEyJ':_0xd6b169[_0xb7ae52(0x1e0)],'PlUxw':_0xd6b169[_0xb7ae52(0x1e7)],'JjyeM':_0xd6b169[_0xb7ae52(0x1e5)],'pLISd':function(_0x203cf3,_0x567427){const _0x1b47d8=_0xb7ae52;return _0xd6b169[_0x1b47d8(0x205)](_0x203cf3,_0x567427);},'PMJNo':_0xd6b169[_0xb7ae52(0x1b2)],'OCGPp':_0xd6b169[_0xb7ae52(0x201)],'LRtRx':function(_0x31ded7,_0x18356d){return _0xd6b169['jJHBj'](_0x31ded7,_0x18356d);},'CPLmJ':function(_0x3811b3,_0x246ec4){return _0xd6b169['MzQBi'](_0x3811b3,_0x246ec4);},'UFzbj':_0xd6b169[_0xb7ae52(0x1e2)],'aoNwW':_0xd6b169[_0xb7ae52(0x1cd)],'iNOUQ':function(_0x186f3e,_0xdac8bb){const _0x142232=_0xb7ae52;return _0xd6b169[_0x142232(0x1f2)](_0x186f3e,_0xdac8bb);},'EcQVQ':function(_0x47dddf,_0x140ad5){const _0xf1f47f=_0xb7ae52;return _0xd6b169[_0xf1f47f(0x214)](_0x47dddf,_0x140ad5);},'Eacku':function(_0x30758d,_0x2f4002){const _0x1a94b8=_0xb7ae52;return _0xd6b169[_0x1a94b8(0x1ab)](_0x30758d,_0x2f4002);},'pehOY':_0xd6b169[_0xb7ae52(0x228)],'ELQWy':function(_0x2df646,_0x403728){const _0x38c15c=_0xb7ae52;return _0xd6b169[_0x38c15c(0x1ab)](_0x2df646,_0x403728);},'ZveQJ':function(_0x3553fb,_0x43bede){const _0x51116c=_0xb7ae52;return _0xd6b169[_0x51116c(0x1f5)](_0x3553fb,_0x43bede);},'lbVmA':function(_0x5be6e1,_0x4f0d6c){return _0xd6b169['jJHBj'](_0x5be6e1,_0x4f0d6c);},'pepoR':_0xd6b169[_0xb7ae52(0x1f0)],'caDFv':_0xd6b169[_0xb7ae52(0x212)],'tzEmZ':_0xd6b169[_0xb7ae52(0x1ff)],'QGRos':function(_0x3cb8a2,_0x12dfc3){const _0x500c38=_0xb7ae52;return _0xd6b169[_0x500c38(0x1ac)](_0x3cb8a2,_0x12dfc3);},'McOFg':_0xd6b169['sLnAt'],'cvFmK':_0xd6b169[_0xb7ae52(0x1df)],'jZUhw':_0xd6b169[_0xb7ae52(0x1fb)],'AgbUP':_0xd6b169['KXOJF']};try{const _0x1a0940={};_0x1a0940[_0xb7ae52(0x1a7)]=_0x4ab206[_0xb7ae52(0x215)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0xb7ae52(0x21e)],async()=>{const _0x28b598=_0xb7ae52,_0x48f878={};_0x48f878[_0x28b598(0x21a)]=_0x7ba948[_0x28b598(0x1f4)];const _0x11939f=_0x48f878;if(!commandRepository[_0x28b598(0x220)]()&&globals['getGlobal'](_0x7ba948[_0x28b598(0x1f4)])){const _0xca56ec=PerformanceTester[_0x28b598(0x1ca)](_0x7ba948['ccFjY'],async()=>{const _0x4c9f21=_0x28b598;try{commandRepository[_0x4c9f21(0x1c3)](!![]),await aiSdkWrapper['setTcgToken']((await _0x151212[_0x4c9f21(0x20e)]())[_0x4c9f21(0x1be)]());const _0x388568=globals[_0x4c9f21(0x1d8)](_0x11939f[_0x4c9f21(0x21a)]);_0x388568&&commandRepository['setAiSessionTimeStamp']((await _0x151212['getSession']())['getId']());}catch(_0x8d1df1){logger[_0x4c9f21(0x1f1)](_0x4c9f21(0x1f8)+_0x8d1df1);}});await _0x7ba948[_0x28b598(0x1a4)](_0xca56ec);}},_0x1a0940)();const _0x348803=await _0x151212[_0xb7ae52(0x207)](_0x4ab206);try{if(_0xd6b169[_0xb7ae52(0x1b4)](_0x4ab206[_0xb7ae52(0x215)],_0xd6b169['dSZeV'])||_0xd6b169['LRlvq'](_0x4ab206[_0xb7ae52(0x215)],_0xd6b169['xMXbG'])){const _0x38e9b6=_0x4ab206[_0xb7ae52(0x1cf)]&&_0x4ab206[_0xb7ae52(0x1cf)]['script'],_0x3943a4=_0x4ab206[_0xb7ae52(0x1cf)]&&_0x4ab206[_0xb7ae52(0x1cf)][_0xb7ae52(0x21d)],_0x72a99c=_0x3943a4&&util[_0xb7ae52(0x213)]('%j',_0x3943a4);if(_0x38e9b6&&_0xd6b169[_0xb7ae52(0x1b7)](typeof _0x38e9b6,_0xd6b169[_0xb7ae52(0x225)])){const _0x45ae2e=constants[_0xb7ae52(0x1d1)][_0xb7ae52(0x1ad)](_0x5b3611=>_0x38e9b6['includes'](_0x5b3611)||_0x72a99c&&_0x72a99c[_0xb7ae52(0x1bb)](_0x5b3611));if(_0x45ae2e){const _0x26cb0d={};_0x26cb0d['command']=_0x45ae2e,_0x26cb0d[_0xb7ae52(0x1bc)]=_0x3943a4;const _0x4658f4={};_0x4658f4[_0xb7ae52(0x1ef)]=_0x348803;const _0x39e6e4={};_0x39e6e4['request']=_0x26cb0d,_0x39e6e4[_0xb7ae52(0x1de)]=_0x4658f4,automationLogger[_0xb7ae52(0x1c8)]('['+new Date()[_0xb7ae52(0x1a2)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util['format']('%j',_0x39e6e4));}}}}catch(_0x247596){logger[_0xb7ae52(0x1c8)](_0xb7ae52(0x20d)+_0x247596[_0xb7ae52(0x1f6)]);}return await PerformanceTester[_0xb7ae52(0x1ca)](PerformanceDriverEvents[_0xb7ae52(0x1fa)],async()=>{const _0x18016c=_0xb7ae52;if(!helper[_0x18016c(0x1ec)]()&&(commandRepository[_0x18016c(0x221)]()||globals[_0x18016c(0x1d8)](_0xd6b169[_0x18016c(0x1b5)]))&&_0xd6b169[_0x18016c(0x200)](_0x4ab206[_0x18016c(0x215)],_0xd6b169[_0x18016c(0x1e0)])&&!_0x4ab206[_0x18016c(0x1c6)]&&globals[_0x18016c(0x1d8)](_0xd6b169[_0x18016c(0x219)])&&globals[_0x18016c(0x1d8)](_0xd6b169[_0x18016c(0x1e7)])){const _0x583baf=new Date(),_0x4d3313=PerformanceTester[_0x18016c(0x1ca)](_0xd6b169['pczER'],async()=>{const _0x174338=_0x18016c;return await aiSdkWrapper[_0x174338(0x1ae)](_0x399ffc,_0x151212,_0x4ab206);});await _0xd6b169[_0x18016c(0x1a3)](_0x4d3313);}},{'command':_0x4ab206[_0xb7ae52(0x215)]})(),_0x348803;}catch(_0x316707){await PerformanceTester[_0xb7ae52(0x1ca)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x247177=_0xb7ae52;logger['debug'](_0x7ba948['uuIWf']);try{if(!helper['isBrowserstackInfra']()&&(_0x7ba948[_0x247177(0x1d6)](_0x316707[_0x247177(0x1c9)],_0x7ba948[_0x247177(0x226)])||_0x7ba948[_0x247177(0x1e9)](_0x316707['name'],_0x7ba948[_0x247177(0x1e1)]))&&_0x7ba948[_0x247177(0x1e9)](_0x4ab206[_0x247177(0x215)],_0x7ba948['QSEyJ'])&&commandRepository[_0x247177(0x221)]()&&globals[_0x247177(0x1d8)](_0x7ba948['upfWL'])&&globals[_0x247177(0x1d8)](_0x7ba948[_0x247177(0x1b3)])){_0x7ba948[_0x247177(0x1d6)](_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1b1)],_0x7ba948['JjyeM'])?logger[_0x247177(0x21f)](_0x7ba948[_0x247177(0x208)](_0x7ba948[_0x247177(0x208)](_0x7ba948[_0x247177(0x204)],_0x4ab206['parameters_'][_0x247177(0x1e6)]),_0x7ba948[_0x247177(0x1a9)])):logger[_0x247177(0x21f)](_0x7ba948[_0x247177(0x1eb)](_0x7ba948[_0x247177(0x1b6)](_0x7ba948[_0x247177(0x208)](_0x7ba948[_0x247177(0x1eb)](_0x7ba948[_0x247177(0x1b8)],_0x4ab206[_0x247177(0x1cf)]['using']),':\x20'),_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1e6)]),_0x7ba948[_0x247177(0x1a9)]));const _0x494ed7=PerformanceTester[_0x247177(0x1ca)](_0x7ba948[_0x247177(0x20b)],async()=>{return await aiSdkWrapper['handleFailure'](_0x399ffc,_0x151212,_0x4ab206);}),_0x9c7f0f=new Date(),{locatorType:_0x3a719a,locatorValue:_0x25229e,commandHealed:_0x3a4c96}=await _0x7ba948[_0x247177(0x1a4)](_0x494ed7);if(_0x7ba948[_0x247177(0x1b0)](_0x3a719a,_0x25229e)){_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1b1)]=_0x3a719a,_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1e6)]=_0x25229e,_0x4ab206['skipHealingSuccess']=!![];const _0x361385=_0x151212[_0x247177(0x1dc)](_0x4ab206);return _0x7ba948['EcQVQ'](_0x3a719a,_0x7ba948[_0x247177(0x1a1)])?logger[_0x247177(0x21f)](_0x7ba948['Eacku'](_0x7ba948[_0x247177(0x21b)],_0x25229e)):logger[_0x247177(0x21f)](_0x7ba948['ELQWy'](_0x7ba948[_0x247177(0x203)](_0x7ba948[_0x247177(0x1bd)](_0x7ba948[_0x247177(0x1a8)],_0x3a719a),':\x20'),_0x25229e)),_0x361385;}else!_0x3a4c96&&(_0x7ba948[_0x247177(0x1d6)](_0x3a719a,_0x7ba948[_0x247177(0x1a1)])?logger['info'](_0x7ba948[_0x247177(0x1bd)](_0x7ba948[_0x247177(0x1a5)],_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1e6)])):logger['info'](_0x7ba948[_0x247177(0x1fc)](_0x7ba948[_0x247177(0x1b6)](_0x7ba948['Eacku'](_0x7ba948[_0x247177(0x1b9)],_0x4ab206[_0x247177(0x1cf)][_0x247177(0x1b1)]),':\x20'),_0x4ab206[_0x247177(0x1cf)]['value'])));}!_0x227965&&_0x7ba948[_0x247177(0x1da)](_0x4ab206[_0x247177(0x215)],_0x7ba948[_0x247177(0x1dd)])&&helper['nestedKeyValue'](_0x4ab206,[_0x7ba948[_0x247177(0x222)],_0x7ba948['jZUhw']])&&!!constants[_0x247177(0x1d5)][_0x247177(0x1ad)](_0x42233a=>{const _0x5b551d=_0x247177;return _0x316707[_0x5b551d(0x1c4)]()[_0x5b551d(0x1bb)](_0x42233a);})&&helper[_0x247177(0x1f9)](_0x4ab206[_0x247177(0x1cf)][_0x247177(0x20c)],!![]);}catch(_0x3ea1e8){logger[_0x247177(0x1e8)](_0x7ba948[_0x247177(0x1af)],_0x3ea1e8);}},{'success':![],'failure':_0x316707})();throw _0x316707;}};};function a111_0x5681(){const _0x3b2fbb=['pepoR','OCGPp','local','hqWMT','oxzDC','find','handleSuccess','AgbUP','iNOUQ','using','SEvzS','PlUxw','FaxbC','oqOtC','CPLmJ','UATiI','UFzbj','tzEmZ','iAMME','includes','parameters','lbVmA','getId','JavascriptError','bstack:options','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','aiSdk_defaultLogDataEnabled','setTcgTokenStatus','toString','OPSLS','skipHealingSuccess','browserstack.local','silly','name','measureWrapper','./performance/performance-tester','5QRTZBS','EdZUK','4220573ZtLnuh','parameters_','./logger','AUTOMATION_LOG_COMMANDS','Healing\x20failed\x20for\x20command\x20using\x20','30167154fTrQTY','./performance/constants','NUDGE_LOCAL_ERRORS','EVnMt','./globals','getGlobal','aiHeal_isAuthenticated','QGRos','VWjTS','execute','McOFg','response','fbcKB','ktOyx','JynBJ','pgxtP','get',';\x20Trying\x20to\x20heal','oLcHO','value','OSYJx','debug','MMKbG','./helper','LRtRx','isBrowserstackInfra','nestedKeyValue','226959kdeRcW','body','jZGvf','error','kdGPK','./ai-sdk/autoHealHelper','upfWL','VomnE','message','findElement\x20command\x20failed\x20with\x20','Error\x20in\x20handling\x20TCG\x20Auth:\x20','getNudgeLocalNotSetError','POST_EXECUTE','BsufY','Eacku','executeScript','DJBii','xHKmD','BVNno','WPlpS','executeAsyncScript','ZveQJ','PMJNo','MzQBi','css\x20selector','initExecute','pLISd','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','overrideExecute','aoNwW','url','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','getSession','12skcKCP','ayPqk','7702424wQnzkh','ScULx','format','fyFjD','name_','string','qokJm','capability','UYAHQ','lDxvA','pehOY','aiHeal:findElementSuccess','args','PRE_EXECUTE','info','getTcgTokenStatus','isSelfHealEnabled','cvFmK','5208162oCUIEv','5702092ZKQEyQ','zBPcW','sgPgi','Successfully\x20healed\x20command\x20using\x20new\x20','DmVbU','findElement\x20command\x20failed\x20with\x20cssPath:\x20','DwDah','1407714PIikMX','NoSuchElementError','JjyeM','toISOString','XNHMX','IRDDS','caDFv','aiHeal_isHealingEnabled','command'];a111_0x5681=function(){return _0x3b2fbb;};return a111_0x5681();}
|
|
1
|
+
const a111_0x31cb2f=a111_0x50b4;(function(_0x229a35,_0x19ee9f){const _0x29ed0b=a111_0x50b4,_0x3f09f9=_0x229a35();while(!![]){try{const _0xd4212b=parseInt(_0x29ed0b(0x1f5))/0x1+parseInt(_0x29ed0b(0x1e6))/0x2*(-parseInt(_0x29ed0b(0x1f7))/0x3)+-parseInt(_0x29ed0b(0x1f6))/0x4+-parseInt(_0x29ed0b(0x1e2))/0x5+parseInt(_0x29ed0b(0x226))/0x6*(-parseInt(_0x29ed0b(0x237))/0x7)+parseInt(_0x29ed0b(0x203))/0x8*(parseInt(_0x29ed0b(0x205))/0x9)+parseInt(_0x29ed0b(0x248))/0xa;if(_0xd4212b===_0x19ee9f)break;else _0x3f09f9['push'](_0x3f09f9['shift']());}catch(_0x315479){_0x3f09f9['push'](_0x3f09f9['shift']());}}}(a111_0x2b15,0x7ca68));function a111_0x50b4(_0x3278d5,_0x5e3116){const _0x2b15ba=a111_0x2b15();return a111_0x50b4=function(_0x50b42e,_0x15c1fe){_0x50b42e=_0x50b42e-0x1d8;let _0x5e897e=_0x2b15ba[_0x50b42e];return _0x5e897e;},a111_0x50b4(_0x3278d5,_0x5e3116);}const {aiSdkWrapper}=require(a111_0x31cb2f(0x20b)),{commandRepository}=require(a111_0x31cb2f(0x242)),PerformanceTester=require('./performance/performance-tester'),globals=require(a111_0x31cb2f(0x20a)),{winstonLogger:logger,automationLogger}=require(a111_0x31cb2f(0x1e8)),helper=require(a111_0x31cb2f(0x220)),constants=require(a111_0x31cb2f(0x227)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),util=require(a111_0x31cb2f(0x1da));exports['overrideExecute']=(_0x28fa61,_0x53ee32)=>{const _0x5acf32=a111_0x31cb2f,_0x431efd={'qBgYY':_0x5acf32(0x233),'BMvpz':function(_0x4c8cc4,_0x1f19d1){return _0x4c8cc4===_0x1f19d1;},'PzjXc':_0x5acf32(0x1f3),'LTFJJ':_0x5acf32(0x236),'JXDCk':_0x5acf32(0x1f4),'DOlma':_0x5acf32(0x23d),'FDduX':function(_0x2d6cab){return _0x2d6cab();},'WJoVa':_0x5acf32(0x1fa),'ggOOb':_0x5acf32(0x200),'aNFkf':function(_0x3ea285,_0xf89b15){return _0x3ea285===_0xf89b15;},'bHzON':_0x5acf32(0x23f),'EbQxL':function(_0x3b221d,_0x59c2ca){return _0x3b221d===_0x59c2ca;},'woXsk':_0x5acf32(0x1de),'IKvHF':function(_0xd3ffa,_0x133539){return _0xd3ffa+_0x133539;},'ZnMdv':_0x5acf32(0x1dc),'IpLYl':_0x5acf32(0x213),'uXhcU':function(_0x93a9cc,_0x5d268a){return _0x93a9cc+_0x5d268a;},'MPBFj':function(_0xf6dba0,_0x29dcc1){return _0xf6dba0+_0x29dcc1;},'QqAyw':_0x5acf32(0x240),'aFvAi':_0x5acf32(0x241),'JSPxz':function(_0x7ac4e5,_0x30a4c4){return _0x7ac4e5&&_0x30a4c4;},'HqmPU':function(_0x2bdd5d,_0x45305f){return _0x2bdd5d===_0x45305f;},'LLrpe':_0x5acf32(0x1f9),'ecbIj':function(_0x2399cf,_0x2a7c8a){return _0x2399cf+_0x2a7c8a;},'RsigM':function(_0x198e10,_0x2a6f07){return _0x198e10+_0x2a6f07;},'VgiBI':'Successfully\x20healed\x20command\x20using\x20new\x20','kLevS':function(_0x1a08e7,_0xff62ee){return _0x1a08e7===_0xff62ee;},'mUHhI':function(_0x1cbdb9,_0x330a3){return _0x1cbdb9+_0x330a3;},'tlfdO':_0x5acf32(0x219),'ZBQby':function(_0x276df3,_0x45fee1){return _0x276df3+_0x45fee1;},'MCXQI':_0x5acf32(0x23c),'azdyn':_0x5acf32(0x249),'QOvnj':_0x5acf32(0x1eb),'ZJmuu':_0x5acf32(0x23a),'xPMWF':_0x5acf32(0x234),'KTUHh':'aiHeal:setToken','nrVWn':function(_0x2b1e79){return _0x2b1e79();},'XcGaJ':_0x5acf32(0x1dd),'vfvRV':_0x5acf32(0x1f2),'hDIFi':_0x5acf32(0x1e3),'VuWZn':_0x5acf32(0x201),'wYgyV':'browserstack.local','SmJUY':'bstack:options','vauNs':'local'},_0x345587=_0x28fa61[_0x5acf32(0x244)]||(helper['nestedKeyValue'](_0x53ee32,[_0x431efd[_0x5acf32(0x239)],_0x431efd['wYgyV']])||helper['nestedKeyValue'](_0x53ee32,[_0x431efd[_0x5acf32(0x239)],_0x431efd['SmJUY'],_0x431efd[_0x5acf32(0x1e5)]]));if(!globals[_0x5acf32(0x1fb)](_0x431efd[_0x5acf32(0x24b)])&&!globals[_0x5acf32(0x1fb)](_0x431efd['JXDCk'])&&_0x345587)return;_0x28fa61['patchExecute']=!![],_0x28fa61[_0x5acf32(0x218)]=_0x28fa61['execute'],_0x28fa61[_0x5acf32(0x23b)]=async _0x18643f=>{const _0x1c5c43=_0x5acf32,_0x3218bc={'svuvr':_0x431efd['LTFJJ'],'UlMCw':_0x431efd[_0x1c5c43(0x246)],'iRYLt':function(_0x1acc3c){const _0x5c9236=_0x1c5c43;return _0x431efd[_0x5c9236(0x1e4)](_0x1acc3c);}};try{const _0x5190ff={};_0x5190ff[_0x1c5c43(0x22c)]=_0x18643f[_0x1c5c43(0x223)],await PerformanceTester['measureWrapper'](PerformanceDriverEvents[_0x1c5c43(0x247)],async()=>{const _0x1a6ca3=_0x1c5c43;if(!commandRepository[_0x1a6ca3(0x222)]()&&globals['getGlobal'](_0x3218bc[_0x1a6ca3(0x1ff)])){const _0x1db6ca=PerformanceTester['measureWrapper'](_0x3218bc[_0x1a6ca3(0x217)],async()=>{const _0xd645a9=_0x1a6ca3;try{commandRepository[_0xd645a9(0x235)](!![]),await aiSdkWrapper[_0xd645a9(0x1df)]((await _0x28fa61[_0xd645a9(0x1ec)]())[_0xd645a9(0x1ea)]());const _0x47fadf=globals['getGlobal'](_0x3218bc[_0xd645a9(0x1ff)]);_0x47fadf&&commandRepository['setAiSessionTimeStamp']((await _0x28fa61[_0xd645a9(0x1ec)]())[_0xd645a9(0x1ea)]());}catch(_0x23a7aa){logger[_0xd645a9(0x1e1)](_0xd645a9(0x245)+_0x23a7aa);}});await _0x3218bc[_0x1a6ca3(0x1f0)](_0x1db6ca);}},_0x5190ff)();const _0xc51a52=await _0x28fa61[_0x1c5c43(0x218)](_0x18643f);try{if(_0x431efd['aNFkf'](_0x18643f[_0x1c5c43(0x223)],_0x431efd[_0x1c5c43(0x210)])||_0x431efd[_0x1c5c43(0x215)](_0x18643f['name_'],_0x431efd[_0x1c5c43(0x243)])){const _0x494e2b=_0x18643f[_0x1c5c43(0x1eb)]&&_0x18643f['parameters_']['script'],_0x5a3afe=_0x18643f[_0x1c5c43(0x1eb)]&&_0x18643f[_0x1c5c43(0x1eb)][_0x1c5c43(0x22e)],_0x32d866=_0x5a3afe&&util[_0x1c5c43(0x21a)]('%j',_0x5a3afe);if(_0x494e2b&&_0x431efd[_0x1c5c43(0x209)](typeof _0x494e2b,_0x431efd[_0x1c5c43(0x211)])){const _0x759de0=constants[_0x1c5c43(0x21e)][_0x1c5c43(0x1f8)](_0x5087d9=>_0x494e2b['includes'](_0x5087d9)||_0x32d866&&_0x32d866['includes'](_0x5087d9));if(_0x759de0){const _0x5c3685={};_0x5c3685['command']=_0x759de0,_0x5c3685[_0x1c5c43(0x21f)]=_0x5a3afe;const _0x2bf51c={};_0x2bf51c[_0x1c5c43(0x1d8)]=_0xc51a52;const _0x49af02={};_0x49af02['request']=_0x5c3685,_0x49af02[_0x1c5c43(0x23e)]=_0x2bf51c,automationLogger[_0x1c5c43(0x1d9)]('['+new Date()[_0x1c5c43(0x206)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x1c5c43(0x21a)]('%j',_0x49af02));}}}}catch(_0x55d5e3){logger[_0x1c5c43(0x1d9)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x55d5e3['message']);}return await PerformanceTester[_0x1c5c43(0x1db)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0xebcdb1=_0x1c5c43;if(!helper[_0xebcdb1(0x212)]()&&(commandRepository['isSelfHealEnabled']()||globals['getGlobal'](_0x431efd[_0xebcdb1(0x24a)]))&&_0x431efd[_0xebcdb1(0x230)](_0x18643f['name_'],_0x431efd[_0xebcdb1(0x202)])&&!_0x18643f[_0xebcdb1(0x1e7)]&&globals[_0xebcdb1(0x1fb)](_0x431efd[_0xebcdb1(0x24b)])&&globals[_0xebcdb1(0x1fb)](_0x431efd[_0xebcdb1(0x1e9)])){const _0x4aefe2=new Date(),_0x4c5bd4=PerformanceTester['measureWrapper'](_0x431efd[_0xebcdb1(0x21d)],async()=>{const _0x6f05a7=_0xebcdb1;return await aiSdkWrapper[_0x6f05a7(0x229)](_0x53ee32,_0x28fa61,_0x18643f);});await _0x431efd['FDduX'](_0x4c5bd4);}},{'command':_0x18643f['name_']})(),_0xc51a52;}catch(_0xec021e){await PerformanceTester[_0x1c5c43(0x1db)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x4f9e15=_0x1c5c43;logger[_0x4f9e15(0x1fc)](_0x431efd[_0x4f9e15(0x21c)]);try{if(!helper[_0x4f9e15(0x212)]()&&(_0x431efd['BMvpz'](_0xec021e[_0x4f9e15(0x232)],_0x431efd['ggOOb'])||_0x431efd[_0x4f9e15(0x204)](_0xec021e[_0x4f9e15(0x232)],_0x431efd[_0x4f9e15(0x1ee)]))&&_0x431efd['EbQxL'](_0x18643f[_0x4f9e15(0x223)],_0x431efd[_0x4f9e15(0x202)])&&commandRepository['isSelfHealEnabled']()&&globals[_0x4f9e15(0x1fb)](_0x431efd[_0x4f9e15(0x24b)])&&globals[_0x4f9e15(0x1fb)](_0x431efd[_0x4f9e15(0x1e9)])){_0x431efd['BMvpz'](_0x18643f[_0x4f9e15(0x1eb)][_0x4f9e15(0x1e0)],_0x431efd[_0x4f9e15(0x225)])?logger[_0x4f9e15(0x22b)](_0x431efd[_0x4f9e15(0x238)](_0x431efd[_0x4f9e15(0x238)](_0x431efd['ZnMdv'],_0x18643f['parameters_'][_0x4f9e15(0x216)]),_0x431efd['IpLYl'])):logger[_0x4f9e15(0x22b)](_0x431efd[_0x4f9e15(0x21b)](_0x431efd[_0x4f9e15(0x22f)](_0x431efd['uXhcU'](_0x431efd[_0x4f9e15(0x22f)](_0x431efd[_0x4f9e15(0x207)],_0x18643f[_0x4f9e15(0x1eb)][_0x4f9e15(0x1e0)]),':\x20'),_0x18643f['parameters_'][_0x4f9e15(0x216)]),_0x431efd['IpLYl']));const _0x4c857f=PerformanceTester[_0x4f9e15(0x1db)](_0x431efd[_0x4f9e15(0x208)],async()=>{const _0x3fa49b=_0x4f9e15;return await aiSdkWrapper[_0x3fa49b(0x20c)](_0x53ee32,_0x28fa61,_0x18643f);}),_0x437cbd=new Date(),{locatorType:_0x22993c,locatorValue:_0x1d51c6,commandHealed:_0x5615d6}=await _0x431efd[_0x4f9e15(0x1ed)](_0x4c857f);if(_0x431efd[_0x4f9e15(0x1ef)](_0x22993c,_0x1d51c6)){_0x18643f['parameters_'][_0x4f9e15(0x1e0)]=_0x22993c,_0x18643f[_0x4f9e15(0x1eb)]['value']=_0x1d51c6,_0x18643f['skipHealingSuccess']=!![];const _0x5786d1=_0x28fa61[_0x4f9e15(0x23b)](_0x18643f);return _0x431efd[_0x4f9e15(0x209)](_0x22993c,_0x431efd[_0x4f9e15(0x225)])?logger[_0x4f9e15(0x22b)](_0x431efd[_0x4f9e15(0x21b)](_0x431efd['LLrpe'],_0x1d51c6)):logger[_0x4f9e15(0x22b)](_0x431efd[_0x4f9e15(0x20d)](_0x431efd[_0x4f9e15(0x22f)](_0x431efd[_0x4f9e15(0x22d)](_0x431efd['VgiBI'],_0x22993c),':\x20'),_0x1d51c6)),_0x5786d1;}else!_0x5615d6&&(_0x431efd[_0x4f9e15(0x1fd)](_0x22993c,_0x431efd[_0x4f9e15(0x225)])?logger[_0x4f9e15(0x22b)](_0x431efd['mUHhI'](_0x431efd['tlfdO'],_0x18643f[_0x4f9e15(0x1eb)][_0x4f9e15(0x216)])):logger[_0x4f9e15(0x22b)](_0x431efd[_0x4f9e15(0x20d)](_0x431efd[_0x4f9e15(0x22a)](_0x431efd[_0x4f9e15(0x1f1)](_0x431efd['MCXQI'],_0x18643f[_0x4f9e15(0x1eb)][_0x4f9e15(0x1e0)]),':\x20'),_0x18643f[_0x4f9e15(0x1eb)][_0x4f9e15(0x216)])));}!_0x345587&&_0x431efd['BMvpz'](_0x18643f[_0x4f9e15(0x223)],_0x431efd[_0x4f9e15(0x20e)])&&helper[_0x4f9e15(0x214)](_0x18643f,[_0x431efd[_0x4f9e15(0x224)],_0x431efd[_0x4f9e15(0x1fe)]])&&!!constants[_0x4f9e15(0x231)][_0x4f9e15(0x1f8)](_0x26bb9d=>{const _0x129faf=_0x4f9e15;return _0xec021e[_0x129faf(0x20f)]()['includes'](_0x26bb9d);})&&helper[_0x4f9e15(0x221)](_0x18643f[_0x4f9e15(0x1eb)]['url'],!![]);}catch(_0x15dfc4){logger[_0x4f9e15(0x1fc)](_0x431efd[_0x4f9e15(0x228)],_0x15dfc4);}},{'success':![],'failure':_0xec021e})();throw _0xec021e;}};};function a111_0x2b15(){const _0x13682f=['skipHealingSuccess','./logger','JXDCk','getId','parameters_','getSession','FDduX','bHzON','JSPxz','iRYLt','mUHhI','executeScript','findElement','aiHeal_isHealingEnabled','1004352ePyqLo','306976BbpADX','724119nZsxuC','find','Successfully\x20healed\x20command\x20using\x20new\x20cssPath:\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','getGlobal','debug','kLevS','ZJmuu','svuvr','NoSuchElementError','capability','PzjXc','7900120ryLIIQ','aNFkf','9ReJkvm','toISOString','QqAyw','aFvAi','HqmPU','./globals','./ai-sdk/aiSdkWrapper','handleFailure','ecbIj','azdyn','toString','XcGaJ','hDIFi','isBrowserstackInfra',';\x20Trying\x20to\x20heal','nestedKeyValue','EbQxL','value','UlMCw','initExecute','Healing\x20failed\x20for\x20command\x20using\x20cssPath:\x20','format','uXhcU','WJoVa','DOlma','AUTOMATION_LOG_COMMANDS','parameters','./helper','getNudgeLocalNotSetError','getTcgTokenStatus','name_','QOvnj','woXsk','5388fZbdNs','../bin/utils/constants','xPMWF','handleSuccess','ZBQby','info','command','RsigM','args','MPBFj','BMvpz','NUDGE_LOCAL_ERRORS','name','aiSdk_defaultLogDataEnabled','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','setTcgTokenStatus','aiHeal_isAuthenticated','2051CBfyCL','IKvHF','VuWZn','url','execute','Healing\x20failed\x20for\x20command\x20using\x20','aiHeal:findElementSuccess','response','JavascriptError','findElement\x20command\x20failed\x20with\x20','aiHeal:findElementFailure','./ai-sdk/autoHealHelper','vfvRV','patchExecute','Error\x20in\x20handling\x20TCG\x20Auth:\x20','KTUHh','PRE_EXECUTE','79940hCjHRJ','get','qBgYY','LTFJJ','body','silly','util','measureWrapper','findElement\x20command\x20failed\x20with\x20cssPath:\x20','executeAsyncScript','css\x20selector','setTcgToken','using','error','3333445fDedar','string','nrVWn','vauNs','4xrCpQh'];a111_0x2b15=function(){return _0x13682f;};return a111_0x2b15();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x2777b4=a112_0x29ac;function a112_0x29ac(_0x3e99fb,_0x3b0789){const _0xd1b61=a112_0xd1b6();return a112_0x29ac=function(_0x29ac2a,_0x24f143){_0x29ac2a=_0x29ac2a-0x173;let _0x39b73d=_0xd1b61[_0x29ac2a];return _0x39b73d;},a112_0x29ac(_0x3e99fb,_0x3b0789);}(function(_0x598bd8,_0x22ffc6){const _0x2fdf40=a112_0x29ac,_0x19a7ff=_0x598bd8();while(!![]){try{const _0x3f57fc=parseInt(_0x2fdf40(0x191))/0x1*(-parseInt(_0x2fdf40(0x180))/0x2)+parseInt(_0x2fdf40(0x187))/0x3+parseInt(_0x2fdf40(0x18c))/0x4*(parseInt(_0x2fdf40(0x18d))/0x5)+-parseInt(_0x2fdf40(0x190))/0x6+parseInt(_0x2fdf40(0x188))/0x7+parseInt(_0x2fdf40(0x18f))/0x8*(-parseInt(_0x2fdf40(0x175))/0x9)+parseInt(_0x2fdf40(0x17a))/0xa;if(_0x3f57fc===_0x22ffc6)break;else _0x19a7ff['push'](_0x19a7ff['shift']());}catch(_0x497197){_0x19a7ff['push'](_0x19a7ff['shift']());}}}(a112_0xd1b6,0x88191));const PerformanceTester=require(a112_0x2777b4(0x189)),O11yEvents=require(a112_0x2777b4(0x185))[a112_0x2777b4(0x17c)];exports['overrideTakeScreenshot']=_0x26cbeb=>{const _0x2a86bf=a112_0x2777b4,_0x325e31={'vXeTk':_0x2a86bf(0x194),'BhPRu':function(_0x152a16,_0x58cb22){return _0x152a16(_0x58cb22);},'AeMpL':function(_0xaceaba,_0x45463e){return _0xaceaba!==_0x45463e;},'hNYoo':_0x2a86bf(0x177)};if(_0x325e31[_0x2a86bf(0x18e)](process['env'][_0x2a86bf(0x179)],_0x325e31[_0x2a86bf(0x176)]))return;if(_0x26cbeb[_0x2a86bf(0x181)])return;_0x26cbeb['patchScreenshot']=!![],_0x26cbeb[_0x2a86bf(0x174)]=_0x26cbeb[_0x2a86bf(0x184)],_0x26cbeb['takeScreenshot']=()=>{return new Promise(function(_0x4f850f,_0x261822){const _0x4b920a=a112_0x29ac,_0x118d85={'nuKTK':_0x325e31[_0x4b920a(0x18a)],'IdILt':function(_0x23b2c9,_0x237e81){const _0x1ce04a=_0x4b920a;return _0x325e31[_0x1ce04a(0x17b)](_0x23b2c9,_0x237e81);}};_0x26cbeb[_0x4b920a(0x174)]()[_0x4b920a(0x178)](_0x5a39db=>{const _0x430d78=_0x4b920a;PerformanceTester[_0x430d78(0x17e)](O11yEvents['TAKE_SCREENSHOT']),process[_0x430d78(0x186)](_0x430d78(0x192)+process[_0x430d78(0x183)],{'timestamp':new Date()[_0x430d78(0x195)](),'message':_0x5a39db,'kind':_0x118d85[_0x430d78(0x182)]}),_0x118d85[_0x430d78(0x17f)](_0x4f850f,_0x5a39db),PerformanceTester['end'](O11yEvents[_0x430d78(0x18b)]);})['catch'](_0x188011=>{const _0x4b9620=_0x4b920a;PerformanceTester['end'](O11yEvents[_0x4b9620(0x18b)]),_0x118d85[_0x4b9620(0x17f)](_0x261822,_0x188011);});});};},exports['overrideQuit']=(_0x2767c4,_0x1266cc=null)=>{const _0x561968=a112_0x2777b4,_0xb69bb0={'rTOgn':function(_0x552e6e){return _0x552e6e();},'zbDhM':function(_0x558cab,_0x5044f9){return _0x558cab>_0x5044f9;}};if(_0x2767c4['patchQuit'])return;_0x2767c4['patchQuit']=!![],_0x2767c4['initQuit']=_0x2767c4[_0x561968(0x17d)],_0x2767c4[_0x561968(0x17d)]=()=>{const _0x18bc53=_0x561968;if(_0x1266cc){_0x1266cc[_0x18bc53(0x196)]+=0x1;if(_0xb69bb0[_0x18bc53(0x193)](_0x1266cc[_0x18bc53(0x196)],0x1))return _0x2767c4['initQuit']();}else{_0x2767c4[_0x18bc53(0x196)]+=0x1;if(_0xb69bb0[_0x18bc53(0x193)](_0x2767c4[_0x18bc53(0x196)],0x1))return _0x2767c4[_0x18bc53(0x173)]();}return new Promise(function(_0x23498b){_0xb69bb0['rTOgn'](_0x23498b);});};};function a112_0xd1b6(){const _0x3314af=['4bgtzLc','2810820QfnOGU','AeMpL','6757368YMjKqj','6618702AAOiDC','30ugVZoz','bs:addLog:','zbDhM','TEST_SCREENSHOT','toISOString','quitCount_','initQuit','initScreenshot','9RxQmYQ','hNYoo','true','then','BS_TESTOPS_ALLOW_SCREENSHOTS','22298220VfPwYN','BhPRu','O11y_EVENTS','quit','start','IdILt','49870RtOojN','patchScreenshot','nuKTK','pid','takeScreenshot','./performance/constants','emit','986334YgPQXw','927717VHnClO','./performance/performance-tester','vXeTk','TAKE_SCREENSHOT'];a112_0xd1b6=function(){return _0x3314af;};return a112_0xd1b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0xff931f=a113_0x4620;(function(_0x2bf57d,_0x41697a){const _0x1e7724=a113_0x4620,_0x129e11=_0x2bf57d();while(!![]){try{const _0x1368ae=-parseInt(_0x1e7724(0x16e))/0x1*(parseInt(_0x1e7724(0x162))/0x2)+parseInt(_0x1e7724(0x18e))/0x3+-parseInt(_0x1e7724(0x184))/0x4+parseInt(_0x1e7724(0x182))/0x5+parseInt(_0x1e7724(0x183))/0x6*(-parseInt(_0x1e7724(0x165))/0x7)+parseInt(_0x1e7724(0x150))/0x8*(parseInt(_0x1e7724(0x176))/0x9)+parseInt(_0x1e7724(0x14c))/0xa;if(_0x1368ae===_0x41697a)break;else _0x129e11['push'](_0x129e11['shift']());}catch(_0x4e7f93){_0x129e11['push'](_0x129e11['shift']());}}}(a113_0x3ca7,0x5af32));function a113_0x4620(_0xc1d350,_0x39f402){const _0x3ca73f=a113_0x3ca7();return a113_0x4620=function(_0x46203e,_0x556d70){_0x46203e=_0x46203e-0x144;let _0x36e17c=_0x3ca73f[_0x46203e];return _0x36e17c;},a113_0x4620(_0xc1d350,_0x39f402);}const fs=require('fs'),path=require(a113_0xff931f(0x186)),os=require('os'),{spawn}=require(a113_0xff931f(0x187)),helper=require(a113_0xff931f(0x197)),logger=require(a113_0xff931f(0x178))[a113_0xff931f(0x192)],{getLogDir}=require('../logger'),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require(a113_0xff931f(0x15c)),{PERCY_EVENTS:PerformanceEvents}=require(a113_0xff931f(0x168)),PercyBinary=require(a113_0xff931f(0x189));function a113_0x3ca7(){const _0x22bf58=['version','662182XdmvmB','createPercyConfig','app','42196ILWmCM','pipe','http://localhost:5338','../../helpers/performance/constants','GET','RTADs','kFRpR','Rrden','projectName','2LuUuip','tmpdir','percy/healthcheck','flGlI','uxSGD','UxEtb','faqai','Percy\x20healthcheck\x20successful','798687SrnhiG','exec','../logger','TKxBC','app:exec','start','sxuXJ','hApIz','data','env','Percy\x20config\x20created\x20at\x20','healthcheck','197465fqZvmQ','174Nfasez','1417884VYmDZT','exec:stop','path','child_process','EQqwC','./PercyBinary','stderr','cfSVB','api/app_percy/get_project_token?name=','BROWSERSTACK_TESTHUB_UUID','1002573GolXWP','xPYoU','exports','isProcessRunning','winstonLogger','percy.log','vdhyZ','NToqk','createWriteStream','../helper','automate','error','flags','Percy\x20fetch\x20token\x20success','token','assign','close',':start','10128250SQpGnm','isRunning','getBinaryPath','UwcCj','16IvXzAL','end','fetchPercyToken','join','percyOptions','ENV_VAR','push','nodeRequest','DOWNLOAD','Error\x20creating\x20percy\x20config:\x20','percy.json','stringify','../../helpers/performance/performance-tester','yaRgb','FjLgK','debug','writeFile'];a113_0x3ca7=function(){return _0x22bf58;};return a113_0x3ca7();}class Percy{#logfile=path[a113_0xff931f(0x153)](getLogDir(),a113_0xff931f(0x193));#address=process['env']['PERCY_SERVER_ADDRESS']||a113_0xff931f(0x167);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a113_0xff931f(0x191)]=![];constructor(_0xa88206){const _0x3c7281=a113_0xff931f;this.#config=_0xa88206,!!_0xa88206[_0x3c7281(0x164)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4c7d46=a113_0xff931f;if(!this.#binaryPath){const _0x5178a4=new PercyBinary();PerformanceTester['start'](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x5178a4[_0x4c7d46(0x14e)](this.#config),PerformanceTester[_0x4c7d46(0x151)](PerformanceEvents[_0x4c7d46(0x158)]);}return this.#binaryPath;}async #sleep(_0x573cdb){return new Promise(_0x2e78bd=>setTimeout(_0x2e78bd,_0x573cdb));}async[a113_0xff931f(0x181)](){const _0x1b247b=a113_0xff931f,_0x54dc86={};_0x54dc86['yaRgb']=_0x1b247b(0x169),_0x54dc86[_0x1b247b(0x15e)]=_0x1b247b(0x170);const _0x40532b=_0x54dc86;try{const _0x11ed6b=await helper['nodeRequest'](_0x40532b[_0x1b247b(0x15d)],_0x40532b['FjLgK'],null,null,this.#address);if(_0x11ed6b)return!![];}catch(_0xe058ca){return![];}}async[a113_0xff931f(0x17b)](){const _0xf4f6d4=a113_0xff931f,_0x5d5254={'faqai':_0xf4f6d4(0x17a),'sxuXJ':_0xf4f6d4(0x177),'kFRpR':function(_0x2f2656,_0x526724,_0x1273df,_0x5acc69){return _0x2f2656(_0x526724,_0x1273df,_0x5acc69);},'uxSGD':'close','hApIz':_0xf4f6d4(0x175)},_0x24adb3=await this.#getBinaryPath(),_0x542a6c={};_0x542a6c[_0xf4f6d4(0x146)]='a',this.#logStream=fs[_0xf4f6d4(0x196)](this.#logfile,_0x542a6c);const _0xc5ec9f=await this[_0xf4f6d4(0x152)](),_0x426bcb=await this['createPercyConfig']();if(!_0xc5ec9f)return![];const _0x5dcc68=[(this.#isApp?_0x5d5254[_0xf4f6d4(0x174)]:_0x5d5254[_0xf4f6d4(0x17c)])+_0xf4f6d4(0x14b)];_0x426bcb&&_0x5dcc68[_0xf4f6d4(0x156)]('-c',_0x426bcb);this.#proc=_0x5d5254[_0xf4f6d4(0x16b)](spawn,_0x24adb3,_0x5dcc68,{'env':Object[_0xf4f6d4(0x149)](process[_0xf4f6d4(0x17f)],{'PERCY_TOKEN':_0xc5ec9f,'TH_BUILD_UUID':process[_0xf4f6d4(0x17f)][testHubConstants[_0xf4f6d4(0x155)][_0xf4f6d4(0x18d)]]})}),this.#proc['stdout'][_0xf4f6d4(0x166)](this.#logStream),this.#proc[_0xf4f6d4(0x18a)]['pipe'](this.#logStream),this[_0xf4f6d4(0x191)]=!![];var _0x545be2=this;this.#proc['on'](_0x5d5254[_0xf4f6d4(0x172)],function(_0x26b917){const _0x218ed9=_0xf4f6d4;_0x545be2[_0x218ed9(0x191)]=![];});do{const _0x38a9fa=await this['healthcheck']();if(_0x38a9fa)return logger[_0xf4f6d4(0x15f)](_0x5d5254[_0xf4f6d4(0x17d)]),!![];await this.#sleep(0x3e8);}while(this[_0xf4f6d4(0x191)]);return![];}async['stop'](){const _0x37cbfb=a113_0xff931f,_0x14892d={'dKedb':function(_0x4720bd,_0x18c8d3){return _0x4720bd(_0x18c8d3);},'RTADs':function(_0x29e537,_0x3cf21f,_0x2d6ba9){return _0x29e537(_0x3cf21f,_0x2d6ba9);},'jtlAO':_0x37cbfb(0x185),'cfSVB':_0x37cbfb(0x14a)},_0x197684=await this.#getBinaryPath();return new Promise((_0x591427,_0x54d4dc)=>{const _0x519bab=_0x37cbfb,_0x3537f1=_0x14892d[_0x519bab(0x16a)](spawn,_0x197684,[_0x14892d['jtlAO']]);_0x3537f1['on'](_0x14892d[_0x519bab(0x18b)],_0x4e410d=>{this['isProcessRunning']=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x14892d['dKedb'](_0x591427,_0x4e410d);});});}[a113_0xff931f(0x14d)](){const _0x558653=a113_0xff931f;return this[_0x558653(0x191)];}async['fetchPercyToken'](){const _0x1d332a=a113_0xff931f,_0x4cb484={};_0x4cb484[_0x1d332a(0x173)]='app',_0x4cb484[_0x1d332a(0x194)]=_0x1d332a(0x144),_0x4cb484[_0x1d332a(0x14f)]='GET',_0x4cb484[_0x1d332a(0x195)]=_0x1d332a(0x147);const _0x3dedb5=_0x4cb484,_0x8b8902=this.#config[_0x1d332a(0x16d)];try{const _0x4d2773=this.#isApp?_0x3dedb5[_0x1d332a(0x173)]:_0x3dedb5['vdhyZ'],_0x42d980=await helper[_0x1d332a(0x157)](_0x3dedb5[_0x1d332a(0x14f)],_0x1d332a(0x18c)+_0x8b8902+'&type='+_0x4d2773,{},this.#config),_0x45b5d7=_0x42d980[_0x1d332a(0x17e)];return logger['debug'](_0x3dedb5[_0x1d332a(0x195)]),_0x45b5d7[_0x1d332a(0x148)];}catch(_0xdd9516){return logger[_0x1d332a(0x145)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0xdd9516),null;}}async[a113_0xff931f(0x163)](){const _0x34f9f1=a113_0xff931f,_0x51bf15={'Rrden':function(_0x25a63d,_0x6f1f6d){return _0x25a63d(_0x6f1f6d);},'flGlI':function(_0x40c96d,_0x2fc423){return _0x40c96d+_0x2fc423;},'TKxBC':_0x34f9f1(0x180),'pUfhC':function(_0x32c351,_0x114777){return _0x32c351(_0x114777);},'EQqwC':_0x34f9f1(0x15a)};if(!this.#config[_0x34f9f1(0x154)])return null;const _0x5b3bb8=path[_0x34f9f1(0x153)](os[_0x34f9f1(0x16f)](),_0x51bf15[_0x34f9f1(0x188)]),_0xb06d27=this.#config[_0x34f9f1(0x154)];return!_0xb06d27[_0x34f9f1(0x161)]&&(_0xb06d27[_0x34f9f1(0x161)]='2'),new Promise((_0xf513bd,_0x24abf1)=>{const _0xeaeb85=_0x34f9f1,_0x30fcfd={'qdnhe':function(_0x5634d1,_0x8dc0a5){const _0x3db934=a113_0x4620;return _0x51bf15[_0x3db934(0x16c)](_0x5634d1,_0x8dc0a5);},'ImoeR':function(_0xb5c91e,_0x5c3895){const _0xfa0a90=a113_0x4620;return _0x51bf15[_0xfa0a90(0x171)](_0xb5c91e,_0x5c3895);},'jCIiI':_0x51bf15[_0xeaeb85(0x179)],'xPYoU':function(_0x54d320,_0x4d4499){return _0x51bf15['pUfhC'](_0x54d320,_0x4d4499);}};fs[_0xeaeb85(0x160)](_0x5b3bb8,JSON[_0xeaeb85(0x15b)](_0xb06d27),_0x2d1794=>{const _0x1f501d=_0xeaeb85;_0x2d1794&&(logger[_0x1f501d(0x145)](_0x1f501d(0x159)+_0x2d1794),_0x30fcfd['qdnhe'](_0xf513bd,null)),logger[_0x1f501d(0x15f)](_0x30fcfd['ImoeR'](_0x30fcfd['jCIiI'],_0x5b3bb8)),_0x30fcfd[_0x1f501d(0x18f)](_0xf513bd,_0x5b3bb8);});});}}module[a113_0xff931f(0x190)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114_0x20fda2=a114_0x53d4;function a114_0x53d4(_0x5ba5f9,_0x471115){const _0x55fd06=a114_0x55fd();return a114_0x53d4=function(_0x53d440,_0x1b86ed){_0x53d440=_0x53d440-0x1cb;let _0x3c3167=_0x55fd06[_0x53d440];return _0x3c3167;},a114_0x53d4(_0x5ba5f9,_0x471115);}(function(_0x2ef26a,_0x29a4e5){const _0x872727=a114_0x53d4,_0x4e5dda=_0x2ef26a();while(!![]){try{const _0x4daaf4=parseInt(_0x872727(0x225))/0x1*(parseInt(_0x872727(0x21d))/0x2)+parseInt(_0x872727(0x1fa))/0x3*(-parseInt(_0x872727(0x1f8))/0x4)+parseInt(_0x872727(0x23a))/0x5*(parseInt(_0x872727(0x232))/0x6)+-parseInt(_0x872727(0x209))/0x7+parseInt(_0x872727(0x1e4))/0x8+-parseInt(_0x872727(0x204))/0x9+parseInt(_0x872727(0x233))/0xa;if(_0x4daaf4===_0x29a4e5)break;else _0x4e5dda['push'](_0x4e5dda['shift']());}catch(_0x40e572){_0x4e5dda['push'](_0x4e5dda['shift']());}}}(a114_0x55fd,0xa5c93));const {https}=require(a114_0x20fda2(0x245)),url=require(a114_0x20fda2(0x205)),yauzl=require(a114_0x20fda2(0x203)),fs=require('fs'),path=require(a114_0x20fda2(0x1d5)),os=require('os'),{spawn}=require(a114_0x20fda2(0x210)),HttpsProxyAgent=require(a114_0x20fda2(0x1cb)),logger=require(a114_0x20fda2(0x219))[a114_0x20fda2(0x1e6)];function a114_0x55fd(){const _0x1d466f=['createWriteStream','X_OK','lazyEntries','end','needsUpdate','data','vzlag','gXdKs','Saved\x20new\x20ETag\x20for\x20percy\x20binary','parse','33036uUWGuN','readEntry','465PTAzLO','close','percy.exe','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','HOMEPATH','hApKy','download','HOMEDRIVE','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','yauzl','7866072DGWkly','url','Connection','darwin','esSyp','1599206SFZIGq','heMmS','PZktp','function','Failed\x20to\x20save\x20ETag\x20file:\x20','PuiQS','FXHMv','child_process','.zip','destroy','binaryPath','test','trim','Ebynn','ivXrw','host','../logger','cwd','CMCGK','proxyHost','6lgauAn','vZgjy','once','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','then','fileName','debug','qTTJq','324131ZlVHEQ','ZrdRB','VfHwR','accessSync','env','Hrsgd','tmpdir','TCmnK','ZcpUF','LNAME','OQeGz','USERPROFILE','.etag','6ecSMDS','692320QJVPjq','headers','bNAdw','--version','mkdirSync','R_OK','aNKvS','5966375TznHyr','readFileSync','gDHse','0755','getuid','USER','Jaibz','eDrUn','HOME','length','DHzLE','follow-redirects','stdout','platform','entry','xRMmU','/Users/','RLdYM','fGtam','warn','getBinaryPath','chmod','mQQTk','dpMMv','dIoHs','vbKmB','loowW','KWHBo','catch','pipe','/root','homedir','GsJZc','tbfFc','fYCxR','https-proxy-agent','qUpTY','validateBinary','dyNVk','/home/','percy','buSJv','get','tWAje','/percy-win.zip','path','writeFileSync','ksWBB','Dkggc','match','win32','tYcpY','Failed\x20to\x20read\x20ETag\x20file:\x20','port','DiOtc','/percy-linux.zip','twvAe','statSync','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','etag','6614160RXIBCZ','open','winstonLogger','oUtKw','useCaCertificate','error','nwedC','KKXpC','join','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'];a114_0x55fd=function(){return _0x1d466f;};return a114_0x55fd();}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a114_0x20fda2(0x1d0);#orderedPaths=[path[a114_0x20fda2(0x1ec)](this.#homedir(),'.browserstack'),process[a114_0x20fda2(0x21a)](),os[a114_0x20fda2(0x22b)]()];constructor(){const _0x4e94fb=a114_0x20fda2,_0x96d1c={};_0x96d1c[_0x4e94fb(0x252)]='https://github.com/percy/cli/releases/latest/download',_0x96d1c[_0x4e94fb(0x22c)]=function(_0x54facf,_0x21aaf6){return _0x54facf+_0x21aaf6;},_0x96d1c[_0x4e94fb(0x244)]='/percy-osx.zip',_0x96d1c[_0x4e94fb(0x24b)]=_0x4e94fb(0x1d4),_0x96d1c['tYcpY']=_0x4e94fb(0x1fc),_0x96d1c[_0x4e94fb(0x1f4)]=function(_0x1a47a4,_0x4e6e2a){return _0x1a47a4+_0x4e6e2a;},_0x96d1c[_0x4e94fb(0x1ea)]=_0x4e94fb(0x1df);const _0x2deeab=_0x96d1c,_0x28ac88=_0x2deeab['dIoHs'];if(this.#hostOS[_0x4e94fb(0x1d9)](/darwin|mac os/i))this.#httpPath=_0x2deeab[_0x4e94fb(0x22c)](_0x28ac88,_0x2deeab['DHzLE']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2deeab[_0x4e94fb(0x22c)](_0x28ac88,_0x2deeab['RLdYM']),this.#binaryName=_0x2deeab[_0x4e94fb(0x1db)]):this.#httpPath=_0x2deeab['vzlag'](_0x28ac88,_0x2deeab[_0x4e94fb(0x1ea)]);}#getAvailableDirs(){const _0x481efb=a114_0x20fda2,_0xbdeefc={};_0xbdeefc[_0x481efb(0x25b)]=function(_0xeaae62,_0x2df992){return _0xeaae62<_0x2df992;},_0xbdeefc['ASKws']='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x52bc8d=_0xbdeefc;for(var _0xd96623=0x0;_0x52bc8d['tbfFc'](_0xd96623,this.#orderedPaths[_0x481efb(0x243)]);_0xd96623++){var _0xb5275=this.#orderedPaths[_0xd96623];if(this.#makePath(_0xb5275))return _0xb5275;}throw new Error(_0x52bc8d['ASKws']);}#makePath(_0x38808c){const _0x2bfb27=a114_0x20fda2;try{return _0x38808c&&!this.#checkPath(_0x38808c)&&fs[_0x2bfb27(0x237)](_0x38808c),!![];}catch{return![];}}#checkPath(_0x3d25f8,_0x4389e7){const _0x5a2e69=a114_0x20fda2,_0x414e8f={};_0x414e8f[_0x5a2e69(0x22a)]=function(_0x3285d8,_0x2665f8){return _0x3285d8|_0x2665f8;},_0x414e8f['ArujE']=function(_0x4e6327,_0x17729e){return _0x4e6327!==_0x17729e;},_0x414e8f[_0x5a2e69(0x239)]='undefined';const _0x176ecc=_0x414e8f;_0x4389e7=_0x4389e7||_0x176ecc[_0x5a2e69(0x22a)](fs[_0x5a2e69(0x238)],fs['W_OK']);try{return fs[_0x5a2e69(0x228)](_0x3d25f8,_0x4389e7),!![];}catch(_0x35d047){if(_0x176ecc['ArujE'](typeof fs['accessSync'],_0x176ecc['aNKvS']))return![];try{return fs[_0x5a2e69(0x1e1)](_0x3d25f8),!![];}catch(_0x40431a){return![];}}}#getETagPath(_0xded62c){const _0x3a6c1f=a114_0x20fda2;return path['join'](_0xded62c,this.#binaryName+_0x3a6c1f(0x231));}#loadETag(_0x346b20){const _0x313f58=a114_0x20fda2,_0x4fdfbe={};_0x4fdfbe[_0x313f58(0x1e7)]='utf8';const _0x1ef71d=_0x4fdfbe,_0x1b8a23=this.#getETagPath(_0x346b20);if(this.#checkPath(_0x1b8a23))try{return fs[_0x313f58(0x23b)](_0x1b8a23,_0x1ef71d[_0x313f58(0x1e7)])[_0x313f58(0x215)]();}catch(_0x280059){logger[_0x313f58(0x24d)](_0x313f58(0x1dc)+_0x280059);}return null;}#saveETag(_0x479296,_0x39b844){const _0x4543d5=a114_0x20fda2,_0xc9150b={};_0xc9150b[_0x4543d5(0x1ce)]=_0x4543d5(0x1f6);const _0x20ead7=_0xc9150b;if(!_0x39b844)return;try{const _0x5b5beb=this.#getETagPath(_0x479296);fs[_0x4543d5(0x1d6)](_0x5b5beb,_0x39b844),logger[_0x4543d5(0x223)](_0x20ead7['dyNVk']);}catch(_0x90bbd6){logger[_0x4543d5(0x24d)](_0x4543d5(0x20d)+_0x90bbd6);}}async #handleBinaryDownload(_0x181fc1,_0x4e88ba,_0x4be7c6){const _0x55128e=a114_0x20fda2,_0x343dd2={};_0x343dd2['Ebynn']=_0x55128e(0x220);const _0x42187e=_0x343dd2,_0x446d66=await this[_0x55128e(0x1cd)](_0x181fc1[_0x55128e(0x213)]);if(!_0x446d66){logger[_0x55128e(0x1e9)](_0x42187e[_0x55128e(0x216)]);const _0x468c21=await this[_0x55128e(0x200)](_0x4e88ba,_0x4be7c6);return _0x468c21[_0x55128e(0x213)];}return _0x181fc1[_0x55128e(0x213)];}async[a114_0x20fda2(0x24e)](_0x449e8a){const _0x5306ac=a114_0x20fda2,_0x4b6004={};_0x4b6004[_0x5306ac(0x1eb)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x4b6004[_0x5306ac(0x21e)]=_0x5306ac(0x1e2);const _0x3c9d8c=_0x4b6004,_0xff0bc9=this.#getAvailableDirs(),_0x479815=path[_0x5306ac(0x1ec)](_0xff0bc9,this.#binaryName);if(this.#checkPath(_0x479815,fs[_0x5306ac(0x1ef)])){const _0x1ef293=this.#loadETag(_0xff0bc9);if(_0x1ef293)try{const _0x25a39c=await this['download'](_0x449e8a,_0xff0bc9,_0x1ef293);if(!_0x25a39c[_0x5306ac(0x1f2)])return logger[_0x5306ac(0x223)](_0x3c9d8c[_0x5306ac(0x1eb)]),_0x479815;return logger[_0x5306ac(0x223)](_0x3c9d8c[_0x5306ac(0x21e)]),await this.#handleBinaryDownload(_0x25a39c,_0x449e8a,_0xff0bc9);}catch(_0x4ce96e){return logger['warn'](_0x5306ac(0x1ed)+_0x4ce96e),_0x479815;}}const _0x2365a1=await this['download'](_0x449e8a,_0xff0bc9);return await this.#handleBinaryDownload(_0x2365a1,_0x449e8a,_0xff0bc9);}[a114_0x20fda2(0x200)](_0xad3e6a,_0x246d5e,_0x2ae5e1=null){const _0x2b649d=a114_0x20fda2,_0x2d2eb9={'mQQTk':function(_0x1ed7a0,_0x582573){return _0x1ed7a0(_0x582573);},'XGPfX':function(_0x43b2f3,_0x3f12ac){return _0x43b2f3===_0x3f12ac;},'fYCxR':'error','xRMmU':_0x2b649d(0x1fb),'JjMrs':function(_0x1c20d3,_0x535be1){return _0x1c20d3+_0x535be1;},'gDHse':_0x2b649d(0x211)};_0x246d5e&&!this.#checkPath(_0x246d5e)&&fs[_0x2b649d(0x237)](_0x246d5e);const _0x8f894c=this.#binaryName,_0x5c60b1=path[_0x2b649d(0x1ec)](_0x246d5e,_0x2d2eb9['JjMrs'](_0x8f894c,_0x2d2eb9[_0x2b649d(0x23c)])),_0x43001d=fs[_0x2b649d(0x1ee)](_0x5c60b1),_0xefa2e=url[_0x2b649d(0x1f7)](this.#httpPath);if(_0xad3e6a[_0x2b649d(0x21c)]&&_0xad3e6a['proxyPort']){const _0x16b7fa={};_0x16b7fa[_0x2b649d(0x218)]=_0xad3e6a['proxyHost'],_0x16b7fa[_0x2b649d(0x1dd)]=_0xad3e6a['proxyPort'],_0xefa2e['agent']=new HttpsProxyAgent(_0x16b7fa);}if(_0xad3e6a[_0x2b649d(0x1e8)])try{_0xefa2e['ca']=fs[_0x2b649d(0x23b)](_0xad3e6a[_0x2b649d(0x1e8)]);}catch(_0x19ac29){logger[_0x2b649d(0x1e9)](_0x2b649d(0x202)+_0x19ac29);}if(_0x2ae5e1){const _0x423f9e={};_0x423f9e['If-None-Match']=_0x2ae5e1,_0x423f9e[_0x2b649d(0x206)]=_0x2d2eb9[_0x2b649d(0x249)],_0xefa2e['headers']=_0x423f9e;}else{const _0x59cad9={};_0x59cad9[_0x2b649d(0x206)]=_0x2d2eb9[_0x2b649d(0x249)],_0xefa2e['headers']=_0x59cad9;}return new Promise((_0x3c5ff9,_0x2aed72)=>{const _0x530c6e=_0x2b649d;https[_0x530c6e(0x1d2)](_0xefa2e,_0x21aa36=>{const _0x1f6885=_0x530c6e,_0x40e9ea={'tWAje':function(_0x39839b,_0x145bef){const _0x187caf=a114_0x53d4;return _0x2d2eb9[_0x187caf(0x250)](_0x39839b,_0x145bef);}};if(_0x2ae5e1&&_0x2d2eb9['XGPfX'](_0x21aa36['statusCode'],0x130)){_0x43001d[_0x1f6885(0x212)]();const _0x1aeb2b={};_0x1aeb2b[_0x1f6885(0x1f2)]=![],_0x2d2eb9[_0x1f6885(0x250)](_0x3c5ff9,_0x1aeb2b);return;}const _0x9c5ad7=_0x21aa36[_0x1f6885(0x234)][_0x1f6885(0x1e3)];_0x9c5ad7&&this.#saveETag(_0x246d5e,_0x9c5ad7),_0x21aa36[_0x1f6885(0x257)](_0x43001d),_0x21aa36['on'](_0x2d2eb9[_0x1f6885(0x25c)],function(_0x21b1b0){const _0x26849d=_0x1f6885;logger['error'](_0x26849d(0x1fd)+_0x21b1b0),_0x40e9ea[_0x26849d(0x1d3)](_0x2aed72,_0x21b1b0);}),_0x43001d['on'](_0x2d2eb9[_0x1f6885(0x25c)],function(_0x395f16){const _0x32e8ec=_0x1f6885;logger[_0x32e8ec(0x1e9)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x395f16),_0x40e9ea['tWAje'](_0x2aed72,_0x395f16);}),_0x43001d['on'](_0x2d2eb9[_0x1f6885(0x249)],()=>{const _0x551376=_0x1f6885;this['extractAndSaveBinary'](_0x5c60b1,_0x246d5e)[_0x551376(0x221)](_0x72737d=>_0x3c5ff9({'needsUpdate':!![],'binaryPath':_0x72737d}))[_0x551376(0x256)](_0x2aed72);});})['on'](_0x2d2eb9[_0x530c6e(0x25c)],function(_0x1ca7dd){const _0x2fd25b=_0x530c6e;logger[_0x2fd25b(0x1e9)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x1ca7dd),_0x2d2eb9[_0x2fd25b(0x250)](_0x2aed72,_0x1ca7dd);});});}['extractAndSaveBinary'](_0x1e6241,_0x358db4){const _0x3e9b0a=a114_0x20fda2,_0x5e7d05={'dpMMv':function(_0x47d023,_0x27c637){return _0x47d023(_0x27c637);},'hApKy':_0x3e9b0a(0x1f1),'ZcpUF':_0x3e9b0a(0x248),'uylvM':_0x3e9b0a(0x1e9),'gXdKs':function(_0x4a2521,_0x6fceb3){return _0x4a2521===_0x6fceb3;},'loowW':_0x3e9b0a(0x23d)},_0x422d6b=this.#binaryName,_0x34ae76=path[_0x3e9b0a(0x1ec)](_0x358db4,_0x422d6b);return new Promise((_0x4a7ad6,_0x40d922)=>{const _0x44c552=_0x3e9b0a,_0x994af7={'esSyp':function(_0x3199af,_0x32ddb1){const _0x48f71c=a114_0x53d4;return _0x5e7d05[_0x48f71c(0x1f5)](_0x3199af,_0x32ddb1);},'buSJv':function(_0x51dc7c,_0x4ecc33){const _0x9357f3=a114_0x53d4;return _0x5e7d05[_0x9357f3(0x251)](_0x51dc7c,_0x4ecc33);},'PZktp':_0x5e7d05[_0x44c552(0x254)]},_0x6c396a={};_0x6c396a[_0x44c552(0x1f0)]=!![],yauzl[_0x44c552(0x1e5)](_0x1e6241,_0x6c396a,function(_0x2bef70,_0x269930){const _0x453517=_0x44c552,_0xb294d2={'CMCGK':function(_0xa8cd4e,_0x20691a){return _0x5e7d05['dpMMv'](_0xa8cd4e,_0x20691a);},'KWHBo':_0x5e7d05[_0x453517(0x1ff)]};_0x2bef70&&_0x5e7d05['dpMMv'](_0x40d922,_0x2bef70),_0x269930['readEntry'](),_0x269930['on'](_0x5e7d05[_0x453517(0x22d)],_0x40be7a=>{const _0x56559a=_0x453517;if(/\/$/[_0x56559a(0x214)](_0x40be7a[_0x56559a(0x222)]))_0x269930[_0x56559a(0x1f9)]();else{const _0x8a5e10=fs[_0x56559a(0x1ee)](path[_0x56559a(0x1ec)](_0x358db4,_0x40be7a[_0x56559a(0x222)]));_0x269930['openReadStream'](_0x40be7a,function(_0x3ea5b0,_0x513a84){const _0xc7cea9=_0x56559a;_0x3ea5b0&&_0xb294d2[_0xc7cea9(0x21b)](_0x40d922,_0x2bef70),_0x513a84['on'](_0xb294d2[_0xc7cea9(0x255)],function(){const _0x1678b6=_0xc7cea9;_0x8a5e10[_0x1678b6(0x1fb)](),_0x269930[_0x1678b6(0x1f9)]();}),_0x513a84[_0xc7cea9(0x257)](_0x8a5e10);}),_0x994af7[_0x56559a(0x208)](_0x40be7a['fileName'],_0x422d6b)&&_0x269930['close']();}}),_0x269930['on'](_0x5e7d05['uylvM'],_0x539e1b=>{_0x994af7['buSJv'](_0x40d922,_0x539e1b);}),_0x269930[_0x453517(0x21f)](_0x5e7d05[_0x453517(0x1ff)],()=>{const _0x19f722=_0x453517,_0x369a0f={'ZbOOk':function(_0x139a6c,_0x1afd2c){const _0x355836=a114_0x53d4;return _0x994af7[_0x355836(0x1d1)](_0x139a6c,_0x1afd2c);},'ivXrw':function(_0xb29bc8,_0x2600c8){return _0x994af7['buSJv'](_0xb29bc8,_0x2600c8);}};fs[_0x19f722(0x24f)](_0x34ae76,_0x994af7[_0x19f722(0x20b)],function(_0x307037){const _0x51e77e=_0x19f722;_0x307037&&_0x369a0f['ZbOOk'](_0x40d922,_0x307037),_0x369a0f[_0x51e77e(0x217)](_0x4a7ad6,_0x34ae76);}),_0x269930[_0x19f722(0x1fb)]();});});});}async[a114_0x20fda2(0x1cd)](_0x4c638a){const _0x2c770e=a114_0x20fda2,_0x386b34={'fGtam':function(_0x428806,_0x292475){return _0x428806(_0x292475);},'GsJZc':function(_0x5448d9,_0x4e9e5d){return _0x5448d9(_0x4e9e5d);},'Dkggc':function(_0x59614c,_0xd54e38,_0x11785c,_0x34a2ed){return _0x59614c(_0xd54e38,_0x11785c,_0x34a2ed);},'vbKmB':_0x2c770e(0x236),'qTTJq':_0x2c770e(0x1f3),'fZxTZ':_0x2c770e(0x1fb)},_0x59a146=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x23fcbc,_0x1392cc)=>{const _0x4e166f=_0x2c770e,_0x973d8={'PuiQS':function(_0x49a20e,_0x2926fb){const _0xc82d41=a114_0x53d4;return _0x386b34[_0xc82d41(0x25a)](_0x49a20e,_0x2926fb);}},_0x57467c={};_0x57467c['env']=process[_0x4e166f(0x229)];const _0x3e7af5=_0x386b34[_0x4e166f(0x1d8)](spawn,_0x4c638a,[_0x386b34[_0x4e166f(0x253)]],_0x57467c);_0x3e7af5[_0x4e166f(0x246)]['on'](_0x386b34[_0x4e166f(0x224)],_0x5f01f7=>{const _0x45b274=_0x4e166f;_0x59a146['test'](_0x5f01f7)&&_0x973d8[_0x45b274(0x20e)](_0x23fcbc,!![]);}),_0x3e7af5['on'](_0x386b34['fZxTZ'],()=>{const _0x50d437=_0x4e166f;_0x386b34[_0x50d437(0x24c)](_0x23fcbc,![]);});});}#homedir(){const _0xa25ba5=a114_0x20fda2,_0x3f6651={};_0x3f6651[_0xa25ba5(0x1de)]=function(_0x5e84c6,_0x2b0d8e){return _0x5e84c6===_0x2b0d8e;},_0x3f6651['eDrUn']=_0xa25ba5(0x20c),_0x3f6651[_0xa25ba5(0x240)]=_0xa25ba5(0x1da),_0x3f6651[_0xa25ba5(0x22f)]=function(_0xda904b,_0x118543){return _0xda904b+_0x118543;},_0x3f6651[_0xa25ba5(0x1d7)]=_0xa25ba5(0x207),_0x3f6651[_0xa25ba5(0x20f)]=_0xa25ba5(0x24a),_0x3f6651[_0xa25ba5(0x226)]='linux',_0x3f6651[_0xa25ba5(0x1e0)]=function(_0x1c7fca,_0x5a08c3){return _0x1c7fca===_0x5a08c3;},_0x3f6651[_0xa25ba5(0x20a)]=_0xa25ba5(0x258),_0x3f6651[_0xa25ba5(0x227)]=function(_0x1c0df6,_0x2a7e1f){return _0x1c0df6+_0x2a7e1f;},_0x3f6651[_0xa25ba5(0x1cc)]=_0xa25ba5(0x1cf),_0x3f6651['bNAdw']=function(_0x4ce91c,_0xe646d6){return _0x4ce91c||_0xe646d6;};const _0x591b47=_0x3f6651;if(_0x591b47[_0xa25ba5(0x1de)](typeof os[_0xa25ba5(0x259)],_0x591b47[_0xa25ba5(0x241)]))return os[_0xa25ba5(0x259)]();const _0x14407a=process['env'],_0x873080=_0x14407a[_0xa25ba5(0x242)],_0x13761e=_0x14407a['LOGNAME']||_0x14407a[_0xa25ba5(0x23f)]||_0x14407a[_0xa25ba5(0x22e)]||_0x14407a['USERNAME'];if(_0x591b47[_0xa25ba5(0x1de)](process['platform'],_0x591b47[_0xa25ba5(0x240)]))return _0x14407a[_0xa25ba5(0x230)]||_0x591b47[_0xa25ba5(0x22f)](_0x14407a[_0xa25ba5(0x201)],_0x14407a[_0xa25ba5(0x1fe)])||_0x873080||null;if(_0x591b47[_0xa25ba5(0x1de)](process[_0xa25ba5(0x247)],_0x591b47[_0xa25ba5(0x1d7)]))return _0x873080||(_0x13761e?_0x591b47[_0xa25ba5(0x22f)](_0x591b47[_0xa25ba5(0x20f)],_0x13761e):null);if(_0x591b47[_0xa25ba5(0x1de)](process[_0xa25ba5(0x247)],_0x591b47[_0xa25ba5(0x226)]))return _0x873080||(_0x591b47[_0xa25ba5(0x1e0)](process[_0xa25ba5(0x23e)](),0x0)?_0x591b47[_0xa25ba5(0x20a)]:_0x13761e?_0x591b47['VfHwR'](_0x591b47[_0xa25ba5(0x1cc)],_0x13761e):null);return _0x591b47[_0xa25ba5(0x235)](_0x873080,null);}}module['exports']=PercyBinary;
|
|
1
|
+
const a114_0x5b1bda=a114_0x524d;function a114_0x524d(_0x308f22,_0x251023){const _0x55eb2e=a114_0x55eb();return a114_0x524d=function(_0x524dba,_0x2fab47){_0x524dba=_0x524dba-0x110;let _0x47b59b=_0x55eb2e[_0x524dba];return _0x47b59b;},a114_0x524d(_0x308f22,_0x251023);}function a114_0x55eb(){const _0x28f02b=['https://github.com/percy/cli/releases/latest/download','proxyHost','LOGNAME','EeKNq','extractAndSaveBinary','YNEWs','--version','IKgIZ','rypQe','4LLXVXw','jEEeB','readEntry','ODNwT','Failed\x20to\x20save\x20ETag\x20file:\x20','Failed\x20to\x20read\x20ETag\x20file:\x20','DsGDJ','VroPR','.etag','TFpNy','If-None-Match','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','close','QlebU','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','RBcNv','darwin','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','seUpZ','exports','5072750txdkIn','gMQmG','agent','Connection','port','undefined','accessSync','cwd','error','tmpdir','winstonLogger','child_process','/Users/','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','HOMEDRIVE','percy','kHOpN','FdDvq','xtHru','NiLDv','fileName','end','length','/root','ulvPk','6411280nYeKMw','UhUvz','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','win32','../logger','match','tgoLE','readFileSync','Absyw','join','binaryPath','trim','warn','lazyEntries','getuid','parse','lQJdy','validateBinary','debug','https-proxy-agent','39482850KIcebX','utf8','siubG','FdqSt','iRCUT','LNAME','UrCBs','YEznt','homedir','1310277fsuJIC','chmod','CjeYo','guVJB','hgOXM','aRDQW','549ynfmiN','/percy-linux.zip','get','test','UNvkj','fmkWN','GHoWE','ykfdT','DkMtY','Zclul','0755','destroy','tcKKF','711786XZOaNb','pGrsG','21lMmcyD','createWriteStream','host','TRuje','.browserstack','W_OK','entry','R_OK','writeFileSync','mgmWM','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','dRqHL','getBinaryPath','then','HVFux','WBCXE','open','etag','RXrvK','tSCVt','platform','bzRaI','788382qLunjO','jACFs','Error\x20trying\x20to\x20download\x20percy\x20binary','/percy-win.zip','xCIAB','statSync','openReadStream','linux','arafd','once','EWTpU','statusCode','mrzKM','DhKHX','HOMEPATH','/home/','follow-redirects','NFqjP','lILYP','USERPROFILE','USERNAME','RPfBr','2bXwiOF','USER','useCaCertificate','download','env','93890lBNMMd','DvORR','ycYlw'];a114_0x55eb=function(){return _0x28f02b;};return a114_0x55eb();}(function(_0x2fbedf,_0x4b8bbe){const _0x4c0fe5=a114_0x524d,_0x246650=_0x2fbedf();while(!![]){try{const _0x24f3d2=-parseInt(_0x4c0fe5(0x176))/0x1+-parseInt(_0x4c0fe5(0x1a4))/0x2*(-parseInt(_0x4c0fe5(0x163))/0x3)+-parseInt(_0x4c0fe5(0x119))/0x4*(parseInt(_0x4c0fe5(0x12d))/0x5)+-parseInt(_0x4c0fe5(0x18e))/0x6*(parseInt(_0x4c0fe5(0x178))/0x7)+-parseInt(_0x4c0fe5(0x146))/0x8+-parseInt(_0x4c0fe5(0x169))/0x9*(parseInt(_0x4c0fe5(0x1a9))/0xa)+parseInt(_0x4c0fe5(0x15a))/0xb;if(_0x24f3d2===_0x4b8bbe)break;else _0x246650['push'](_0x246650['shift']());}catch(_0x26bb0a){_0x246650['push'](_0x246650['shift']());}}}(a114_0x55eb,0x81bf3));const {https}=require(a114_0x5b1bda(0x19e)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a114_0x5b1bda(0x138)),HttpsProxyAgent=require(a114_0x5b1bda(0x159)),logger=require(a114_0x5b1bda(0x14a))[a114_0x5b1bda(0x137)];class PercyBinary{#hostOS=process[a114_0x5b1bda(0x18c)];#httpPath=null;#binaryName=a114_0x5b1bda(0x13c);#orderedPaths=[path[a114_0x5b1bda(0x14f)](this.#homedir(),a114_0x5b1bda(0x17c)),process[a114_0x5b1bda(0x134)](),os[a114_0x5b1bda(0x136)]()];constructor(){const _0x377f49=a114_0x5b1bda,_0x31b531={};_0x31b531[_0x377f49(0x128)]=_0x377f49(0x110),_0x31b531[_0x377f49(0x140)]=function(_0x1094a5,_0x2af8a0){return _0x1094a5+_0x2af8a0;},_0x31b531[_0x377f49(0x13d)]='/percy-osx.zip',_0x31b531['xpmYR']=function(_0xfa03e0,_0x4c29d3){return _0xfa03e0+_0x4c29d3;},_0x31b531[_0x377f49(0x183)]=_0x377f49(0x191),_0x31b531[_0x377f49(0x175)]='percy.exe',_0x31b531[_0x377f49(0x16d)]=function(_0x30fd8a,_0xd6119b){return _0x30fd8a+_0xd6119b;},_0x31b531[_0x377f49(0x117)]=_0x377f49(0x16a);const _0x20f54f=_0x31b531,_0x25317e=_0x20f54f[_0x377f49(0x128)];if(this.#hostOS[_0x377f49(0x14b)](/darwin|mac os/i))this.#httpPath=_0x20f54f[_0x377f49(0x140)](_0x25317e,_0x20f54f['kHOpN']);else this.#hostOS[_0x377f49(0x14b)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x20f54f['xpmYR'](_0x25317e,_0x20f54f['dRqHL']),this.#binaryName=_0x20f54f[_0x377f49(0x175)]):this.#httpPath=_0x20f54f[_0x377f49(0x16d)](_0x25317e,_0x20f54f[_0x377f49(0x117)]);}#getAvailableDirs(){const _0x1ddb06=a114_0x5b1bda,_0x4c10a7={};_0x4c10a7[_0x1ddb06(0x1a3)]=function(_0x145b85,_0x3b1f12){return _0x145b85<_0x3b1f12;},_0x4c10a7[_0x1ddb06(0x1aa)]=_0x1ddb06(0x190);const _0x4cf518=_0x4c10a7;for(var _0x225c26=0x0;_0x4cf518[_0x1ddb06(0x1a3)](_0x225c26,this.#orderedPaths[_0x1ddb06(0x143)]);_0x225c26++){var _0x5c6db9=this.#orderedPaths[_0x225c26];if(this.#makePath(_0x5c6db9))return _0x5c6db9;}throw new Error(_0x4cf518[_0x1ddb06(0x1aa)]);}#makePath(_0x5d1ee9){try{return _0x5d1ee9&&!this.#checkPath(_0x5d1ee9)&&fs['mkdirSync'](_0x5d1ee9),!![];}catch{return![];}}#checkPath(_0x3b6ddb,_0x49a350){const _0x145b67=a114_0x5b1bda,_0x3b15c2={};_0x3b15c2[_0x145b67(0x13f)]=function(_0x4159a2,_0x17592a){return _0x4159a2|_0x17592a;},_0x3b15c2['nAQem']=function(_0x479bd2,_0x1416a0){return _0x479bd2!==_0x1416a0;},_0x3b15c2[_0x145b67(0x181)]=_0x145b67(0x132);const _0x3c8b4e=_0x3b15c2;_0x49a350=_0x49a350||_0x3c8b4e[_0x145b67(0x13f)](fs[_0x145b67(0x17f)],fs[_0x145b67(0x17d)]);try{return fs[_0x145b67(0x133)](_0x3b6ddb,_0x49a350),!![];}catch(_0x322f16){if(_0x3c8b4e['nAQem'](typeof fs[_0x145b67(0x133)],_0x3c8b4e['mgmWM']))return![];try{return fs[_0x145b67(0x193)](_0x3b6ddb),!![];}catch(_0x13f32b){return![];}}}#getETagPath(_0x205dbb){const _0x226537=a114_0x5b1bda;return path['join'](_0x205dbb,this.#binaryName+_0x226537(0x121));}#loadETag(_0x14cb05){const _0x59114e=a114_0x5b1bda,_0x5a0e92={};_0x5a0e92[_0x59114e(0x126)]=_0x59114e(0x15b);const _0x2d8313=_0x5a0e92,_0x875f37=this.#getETagPath(_0x14cb05);if(this.#checkPath(_0x875f37))try{return fs['readFileSync'](_0x875f37,_0x2d8313[_0x59114e(0x126)])[_0x59114e(0x151)]();}catch(_0xff08b3){logger[_0x59114e(0x152)](_0x59114e(0x11e)+_0xff08b3);}return null;}#saveETag(_0xa7f1fd,_0x16f6ba){const _0x3cd670=a114_0x5b1bda,_0x372b15={};_0x372b15[_0x3cd670(0x15c)]='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x1edf96=_0x372b15;if(!_0x16f6ba)return;try{const _0x14a3c7=this.#getETagPath(_0xa7f1fd);fs[_0x3cd670(0x180)](_0x14a3c7,_0x16f6ba),logger[_0x3cd670(0x158)](_0x1edf96[_0x3cd670(0x15c)]);}catch(_0x219ec4){logger[_0x3cd670(0x152)](_0x3cd670(0x11d)+_0x219ec4);}}async #handleBinaryDownload(_0x5c4730,_0x26097f,_0x1b94c6){const _0x284b97=a114_0x5b1bda,_0x2d79f3={};_0x2d79f3[_0x284b97(0x11a)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0xcc34ae=_0x2d79f3,_0x23708e=await this['validateBinary'](_0x5c4730['binaryPath']);if(!_0x23708e){logger['error'](_0xcc34ae[_0x284b97(0x11a)]);const _0x1fc0ac=await this['download'](_0x26097f,_0x1b94c6);return _0x1fc0ac[_0x284b97(0x150)];}return _0x5c4730['binaryPath'];}async[a114_0x5b1bda(0x184)](_0x5c17a5){const _0x144dca=a114_0x5b1bda,_0xcbba3a={};_0xcbba3a[_0x144dca(0x171)]=_0x144dca(0x127),_0xcbba3a['RPrYV']=_0x144dca(0x148);const _0x353c3b=_0xcbba3a,_0x24cd20=this.#getAvailableDirs(),_0x27bc4b=path[_0x144dca(0x14f)](_0x24cd20,this.#binaryName);if(this.#checkPath(_0x27bc4b,fs['X_OK'])){const _0x1af7c9=this.#loadETag(_0x24cd20);if(_0x1af7c9)try{const _0x7024ce=await this[_0x144dca(0x1a7)](_0x5c17a5,_0x24cd20,_0x1af7c9);if(!_0x7024ce['needsUpdate'])return logger[_0x144dca(0x158)](_0x353c3b[_0x144dca(0x171)]),_0x27bc4b;return logger['debug'](_0x353c3b['RPrYV']),await this.#handleBinaryDownload(_0x7024ce,_0x5c17a5,_0x24cd20);}catch(_0x4ab74b){return logger['warn'](_0x144dca(0x182)+_0x4ab74b),_0x27bc4b;}}const _0x2c26ee=await this['download'](_0x5c17a5,_0x24cd20);return await this.#handleBinaryDownload(_0x2c26ee,_0x5c17a5,_0x24cd20);}['download'](_0x503b4d,_0x46d1a2,_0x2ebccb=null){const _0x1a050d=a114_0x5b1bda,_0x2a97dc={'lQJdy':function(_0x45e5a8,_0x1f90ee){return _0x45e5a8(_0x1f90ee);},'ulvPk':function(_0x2e6dea,_0xdbbbf){return _0x2e6dea(_0xdbbbf);},'HCTNV':function(_0x3ff8f9,_0x452e70){return _0x3ff8f9===_0x452e70;},'FdqSt':_0x1a050d(0x135),'NFqjP':_0x1a050d(0x125),'guVJB':function(_0x41ef9f,_0x60e61e){return _0x41ef9f+_0x60e61e;},'gMQmG':'.zip'};_0x46d1a2&&!this.#checkPath(_0x46d1a2)&&fs['mkdirSync'](_0x46d1a2);const _0x16b136=this.#binaryName,_0x5d5e03=path[_0x1a050d(0x14f)](_0x46d1a2,_0x2a97dc[_0x1a050d(0x166)](_0x16b136,_0x2a97dc[_0x1a050d(0x12e)])),_0x36f716=fs[_0x1a050d(0x179)](_0x5d5e03),_0x3031b8=url[_0x1a050d(0x155)](this.#httpPath);if(_0x503b4d[_0x1a050d(0x111)]&&_0x503b4d['proxyPort']){const _0x5d20e1={};_0x5d20e1[_0x1a050d(0x17a)]=_0x503b4d[_0x1a050d(0x111)],_0x5d20e1[_0x1a050d(0x131)]=_0x503b4d['proxyPort'],_0x3031b8[_0x1a050d(0x12f)]=new HttpsProxyAgent(_0x5d20e1);}if(_0x503b4d[_0x1a050d(0x1a6)])try{_0x3031b8['ca']=fs[_0x1a050d(0x14d)](_0x503b4d[_0x1a050d(0x1a6)]);}catch(_0x4cfa69){logger['error']('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x4cfa69);}if(_0x2ebccb){const _0x105065={};_0x105065[_0x1a050d(0x123)]=_0x2ebccb,_0x105065[_0x1a050d(0x130)]=_0x2a97dc['NFqjP'],_0x3031b8['headers']=_0x105065;}else{const _0x1dc7ec={};_0x1dc7ec[_0x1a050d(0x130)]=_0x2a97dc['NFqjP'],_0x3031b8['headers']=_0x1dc7ec;}return new Promise((_0x1164b1,_0x59c24f)=>{const _0x532448=_0x1a050d,_0x23af4f={'YEznt':function(_0x540578,_0x538b17){return _0x2a97dc['lQJdy'](_0x540578,_0x538b17);},'hgOXM':function(_0x519429,_0x4256a2){const _0x4f53c6=a114_0x524d;return _0x2a97dc[_0x4f53c6(0x145)](_0x519429,_0x4256a2);},'pGrsG':function(_0x514275,_0xb824ab){return _0x2a97dc['HCTNV'](_0x514275,_0xb824ab);},'iRCUT':_0x2a97dc[_0x532448(0x15d)],'YNEWs':_0x2a97dc[_0x532448(0x19f)]};https[_0x532448(0x16b)](_0x3031b8,_0x47c8c6=>{const _0x3d800f=_0x532448;if(_0x2ebccb&&_0x23af4f[_0x3d800f(0x177)](_0x47c8c6[_0x3d800f(0x199)],0x130)){_0x36f716[_0x3d800f(0x174)]();const _0x1d3c7f={};_0x1d3c7f['needsUpdate']=![],_0x23af4f[_0x3d800f(0x167)](_0x1164b1,_0x1d3c7f);return;}const _0x22cece=_0x47c8c6['headers'][_0x3d800f(0x189)];_0x22cece&&this.#saveETag(_0x46d1a2,_0x22cece),_0x47c8c6['pipe'](_0x36f716),_0x47c8c6['on'](_0x23af4f[_0x3d800f(0x15e)],function(_0x5b4067){const _0x6c5f57=_0x3d800f;logger[_0x6c5f57(0x135)](_0x6c5f57(0x124)+_0x5b4067),_0x23af4f[_0x6c5f57(0x161)](_0x59c24f,_0x5b4067);}),_0x36f716['on'](_0x23af4f['iRCUT'],function(_0x457ad9){const _0x315be1=_0x3d800f;logger[_0x315be1(0x135)](_0x315be1(0x13a)+_0x457ad9),_0x23af4f['hgOXM'](_0x59c24f,_0x457ad9);}),_0x36f716['on'](_0x23af4f[_0x3d800f(0x115)],()=>{const _0x37ef6d=_0x3d800f;this[_0x37ef6d(0x114)](_0x5d5e03,_0x46d1a2)[_0x37ef6d(0x185)](_0x1dfaee=>_0x1164b1({'needsUpdate':!![],'binaryPath':_0x1dfaee}))['catch'](_0x59c24f);});})['on'](_0x2a97dc[_0x532448(0x15d)],function(_0x3a6eb7){const _0x12321c=_0x532448;logger['error'](_0x12321c(0x12a)+_0x3a6eb7),_0x2a97dc[_0x12321c(0x156)](_0x59c24f,_0x3a6eb7);});});}[a114_0x5b1bda(0x114)](_0x891d5e,_0x261b7a){const _0x59ba42=a114_0x5b1bda,_0x301f04={'EeKNq':function(_0x5088d2,_0x564ad7){return _0x5088d2(_0x564ad7);},'TRuje':_0x59ba42(0x173),'AhBDl':_0x59ba42(0x142),'lILYP':function(_0x340701,_0x46630b){return _0x340701===_0x46630b;},'rgmih':_0x59ba42(0x17e),'xCIAB':'error'},_0x34fa68=this.#binaryName,_0x4a7bf0=path[_0x59ba42(0x14f)](_0x261b7a,_0x34fa68);return new Promise((_0x373155,_0x4275dd)=>{const _0x5aa728=_0x59ba42,_0x21102d={'fmkWN':function(_0x54eed4,_0x1c07f5){const _0x57ea58=a114_0x524d;return _0x301f04[_0x57ea58(0x113)](_0x54eed4,_0x1c07f5);},'UrCBs':_0x301f04[_0x5aa728(0x17b)],'EWTpU':_0x301f04['AhBDl'],'mrzKM':function(_0x569153,_0x5eda40){const _0x306572=_0x5aa728;return _0x301f04[_0x306572(0x1a0)](_0x569153,_0x5eda40);},'iuAHZ':function(_0x1294c7,_0x4f02cb){const _0x580d40=_0x5aa728;return _0x301f04[_0x580d40(0x113)](_0x1294c7,_0x4f02cb);},'bzRaI':_0x301f04['rgmih'],'tgoLE':_0x301f04[_0x5aa728(0x192)]},_0x15d3b4={};_0x15d3b4[_0x5aa728(0x153)]=!![],yauzl[_0x5aa728(0x188)](_0x891d5e,_0x15d3b4,function(_0x2ca63b,_0xad8822){const _0x259e50=_0x5aa728,_0x5d6757={'ykfdT':function(_0x567f76,_0x51e1fb){const _0x11dec3=a114_0x524d;return _0x21102d[_0x11dec3(0x16e)](_0x567f76,_0x51e1fb);},'arafd':_0x21102d[_0x259e50(0x198)],'OlyGU':function(_0xc11429,_0x1b2072){const _0xf3273d=_0x259e50;return _0x21102d[_0xf3273d(0x19a)](_0xc11429,_0x1b2072);}};_0x2ca63b&&_0x21102d['iuAHZ'](_0x4275dd,_0x2ca63b),_0xad8822[_0x259e50(0x11b)](),_0xad8822['on'](_0x21102d[_0x259e50(0x18d)],_0x563bd2=>{const _0x3e92f4=_0x259e50,_0x51ad71={'aRDQW':function(_0x582986,_0x3be6d7){const _0x276eb8=a114_0x524d;return _0x5d6757[_0x276eb8(0x170)](_0x582986,_0x3be6d7);},'tSCVt':_0x5d6757[_0x3e92f4(0x196)]};if(/\/$/['test'](_0x563bd2[_0x3e92f4(0x141)]))_0xad8822[_0x3e92f4(0x11b)]();else{const _0x49d518=fs[_0x3e92f4(0x179)](path[_0x3e92f4(0x14f)](_0x261b7a,_0x563bd2[_0x3e92f4(0x141)]));_0xad8822[_0x3e92f4(0x194)](_0x563bd2,function(_0x3bfb60,_0x3b6f69){const _0x4e88f3=_0x3e92f4;_0x3bfb60&&_0x51ad71[_0x4e88f3(0x168)](_0x4275dd,_0x2ca63b),_0x3b6f69['on'](_0x51ad71[_0x4e88f3(0x18b)],function(){const _0xc6dd3d=_0x4e88f3;_0x49d518[_0xc6dd3d(0x125)](),_0xad8822[_0xc6dd3d(0x11b)]();}),_0x3b6f69['pipe'](_0x49d518);}),_0x5d6757['OlyGU'](_0x563bd2[_0x3e92f4(0x141)],_0x34fa68)&&_0xad8822[_0x3e92f4(0x125)]();}}),_0xad8822['on'](_0x21102d[_0x259e50(0x14c)],_0x4fdd06=>{const _0x1f776d=_0x259e50;_0x5d6757[_0x1f776d(0x170)](_0x4275dd,_0x4fdd06);}),_0xad8822[_0x259e50(0x197)](_0x21102d[_0x259e50(0x198)],()=>{const _0x5e4737=_0x259e50,_0x5b6ced={'Absyw':function(_0x216f94,_0x18b9ca){const _0x3c3401=a114_0x524d;return _0x21102d[_0x3c3401(0x16e)](_0x216f94,_0x18b9ca);}};fs[_0x5e4737(0x164)](_0x4a7bf0,_0x21102d[_0x5e4737(0x160)],function(_0x3ded3b){const _0x5d7428=_0x5e4737;_0x3ded3b&&_0x5b6ced[_0x5d7428(0x14e)](_0x4275dd,_0x3ded3b),_0x5b6ced[_0x5d7428(0x14e)](_0x373155,_0x4a7bf0);}),_0xad8822[_0x5e4737(0x125)]();});});});}async[a114_0x5b1bda(0x157)](_0x58817d){const _0xd52637=a114_0x5b1bda,_0x390298={'Zclul':function(_0x5cef26,_0x11cebf){return _0x5cef26(_0x11cebf);},'GHoWE':function(_0x464fbe,_0x49ef68,_0x91373e,_0xb9b07){return _0x464fbe(_0x49ef68,_0x91373e,_0xb9b07);},'UhUvz':_0xd52637(0x116),'RnuKJ':'data','CjeYo':_0xd52637(0x125)},_0x54a2e0=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x31dc55,_0x4ab1de)=>{const _0x5592a7=_0xd52637,_0x39e9cc={'HVFux':function(_0x3f2ff5,_0x4567f3){const _0x1f46ce=a114_0x524d;return _0x390298[_0x1f46ce(0x172)](_0x3f2ff5,_0x4567f3);}},_0x487156={};_0x487156[_0x5592a7(0x1a8)]=process[_0x5592a7(0x1a8)];const _0x7479e3=_0x390298[_0x5592a7(0x16f)](spawn,_0x58817d,[_0x390298[_0x5592a7(0x147)]],_0x487156);_0x7479e3['stdout']['on'](_0x390298['RnuKJ'],_0x3dd47c=>{const _0x35bb96=_0x5592a7;_0x54a2e0[_0x35bb96(0x16c)](_0x3dd47c)&&_0x39e9cc[_0x35bb96(0x186)](_0x31dc55,!![]);}),_0x7479e3['on'](_0x390298[_0x5592a7(0x165)],()=>{const _0x23c077=_0x5592a7;_0x39e9cc[_0x23c077(0x186)](_0x31dc55,![]);});});}#homedir(){const _0x1d77bb=a114_0x5b1bda,_0x501d3a={};_0x501d3a[_0x1d77bb(0x13e)]=function(_0x2647ee,_0x8beaa7){return _0x2647ee===_0x8beaa7;},_0x501d3a[_0x1d77bb(0x18a)]='function',_0x501d3a[_0x1d77bb(0x122)]=function(_0x573a35,_0x373c44){return _0x573a35===_0x373c44;},_0x501d3a[_0x1d77bb(0x1ab)]=_0x1d77bb(0x149),_0x501d3a[_0x1d77bb(0x187)]=function(_0x30ca66,_0x42601f){return _0x30ca66+_0x42601f;},_0x501d3a[_0x1d77bb(0x11c)]=function(_0x2f6158,_0x70507c){return _0x2f6158===_0x70507c;},_0x501d3a[_0x1d77bb(0x120)]=_0x1d77bb(0x129),_0x501d3a[_0x1d77bb(0x19b)]=_0x1d77bb(0x139),_0x501d3a[_0x1d77bb(0x12b)]=_0x1d77bb(0x195),_0x501d3a['DsGDJ']=_0x1d77bb(0x144),_0x501d3a[_0x1d77bb(0x118)]=_0x1d77bb(0x19d),_0x501d3a[_0x1d77bb(0x18f)]=function(_0x22f472,_0x4c5809){return _0x22f472||_0x4c5809;};const _0x22ba62=_0x501d3a;if(_0x22ba62[_0x1d77bb(0x13e)](typeof os[_0x1d77bb(0x162)],_0x22ba62[_0x1d77bb(0x18a)]))return os[_0x1d77bb(0x162)]();const _0x3a9cab=process[_0x1d77bb(0x1a8)],_0x16c729=_0x3a9cab['HOME'],_0x2fe7ec=_0x3a9cab[_0x1d77bb(0x112)]||_0x3a9cab[_0x1d77bb(0x1a5)]||_0x3a9cab[_0x1d77bb(0x15f)]||_0x3a9cab[_0x1d77bb(0x1a2)];if(_0x22ba62[_0x1d77bb(0x122)](process[_0x1d77bb(0x18c)],_0x22ba62[_0x1d77bb(0x1ab)]))return _0x3a9cab[_0x1d77bb(0x1a1)]||_0x22ba62[_0x1d77bb(0x187)](_0x3a9cab[_0x1d77bb(0x13b)],_0x3a9cab[_0x1d77bb(0x19c)])||_0x16c729||null;if(_0x22ba62[_0x1d77bb(0x11c)](process['platform'],_0x22ba62[_0x1d77bb(0x120)]))return _0x16c729||(_0x2fe7ec?_0x22ba62[_0x1d77bb(0x187)](_0x22ba62[_0x1d77bb(0x19b)],_0x2fe7ec):null);if(_0x22ba62[_0x1d77bb(0x122)](process[_0x1d77bb(0x18c)],_0x22ba62[_0x1d77bb(0x12b)]))return _0x16c729||(_0x22ba62[_0x1d77bb(0x11c)](process[_0x1d77bb(0x154)](),0x0)?_0x22ba62[_0x1d77bb(0x11f)]:_0x2fe7ec?_0x22ba62['WBCXE'](_0x22ba62[_0x1d77bb(0x118)],_0x2fe7ec):null);return _0x22ba62[_0x1d77bb(0x18f)](_0x16c729,null);}}module[a114_0x5b1bda(0x12c)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a115_0x1357e8=a115_0x2806;function a115_0x4290(){var _0x1c13a8=['get','1813840euRHYc','1440456NopzZx','increment','387qNEbpb','getName','15880fRFzhM','658974DyNGoo','15UQzNbi','9oEqbMc','9710930gmbVly','182662RutEyS','93279hlxfPY','exports'];a115_0x4290=function(){return _0x1c13a8;};return a115_0x4290();}(function(_0xba863e,_0x1c0f0f){var _0x3ce0fa=a115_0x2806,_0x4b91f8=_0xba863e();while(!![]){try{var _0x2f2a36=-parseInt(_0x3ce0fa(0xb9))/0x1+parseInt(_0x3ce0fa(0xb8))/0x2*(-parseInt(_0x3ce0fa(0xc4))/0x3)+-parseInt(_0x3ce0fa(0xbd))/0x4+-parseInt(_0x3ce0fa(0xc3))/0x5*(-parseInt(_0x3ce0fa(0xc2))/0x6)+-parseInt(_0x3ce0fa(0xbc))/0x7+-parseInt(_0x3ce0fa(0xc1))/0x8*(parseInt(_0x3ce0fa(0xbf))/0x9)+parseInt(_0x3ce0fa(0xb7))/0xa;if(_0x2f2a36===_0x1c0f0f)break;else _0x4b91f8['push'](_0x4b91f8['shift']());}catch(_0x8b096f){_0x4b91f8['push'](_0x4b91f8['shift']());}}}(a115_0x4290,0x37d6f));class PercyCaptureMap{#map={};[a115_0x1357e8(0xbe)](_0x4693a0,_0x25c8e1){!this.#map[_0x4693a0]&&(this.#map[_0x4693a0]={}),!this.#map[_0x4693a0][_0x25c8e1]&&(this.#map[_0x4693a0][_0x25c8e1]=0x0),this.#map[_0x4693a0][_0x25c8e1]++;}[a115_0x1357e8(0xc0)](_0x3c6fe5,_0x484175){var _0x1f4279=a115_0x1357e8;return _0x3c6fe5+'-'+_0x484175+'-'+this[_0x1f4279(0xbb)](_0x3c6fe5,_0x484175);}['get'](_0x3a7dff,_0x17a0ac){if(!this.#map[_0x3a7dff])return 0x0;if(!this.#map[_0x3a7dff][_0x17a0ac])return 0x0;return this.#map[_0x3a7dff][_0x17a0ac];}}function a115_0x2806(_0x1e49e7,_0x176b0f){var _0x429076=a115_0x4290();return a115_0x2806=function(_0x280602,_0xbc3079){_0x280602=_0x280602-0xb7;var _0x1910e5=_0x429076[_0x280602];return _0x1910e5;},a115_0x2806(_0x1e49e7,_0x176b0f);}module[a115_0x1357e8(0xba)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a116_0x2587f4=a116_0x402b;function a116_0x3b86(){var _0x33779c=['276xInywk','1221111kiQwSm','7DZoprT','885228iStapv','66045TGFxUV','manual','6FyhAVn','testcase','1440948xBpPDU','7925120dVpnTX','element','takeScreenshot','exports','6490mobrUe','click','driver','21830eInRuk','auto','1309846WDDBrR','sendKeys'];a116_0x3b86=function(){return _0x33779c;};return a116_0x3b86();}(function(_0x5be906,_0x17f836){var _0xe99507=a116_0x402b,_0x2dfd22=_0x5be906();while(!![]){try{var _0x88f7aa=-parseInt(_0xe99507(0x17d))/0x1+-parseInt(_0xe99507(0x185))/0x2*(-parseInt(_0xe99507(0x187))/0x3)+parseInt(_0xe99507(0x17f))/0x4*(parseInt(_0xe99507(0x183))/0x5)+-parseInt(_0xe99507(0x182))/0x6*(-parseInt(_0xe99507(0x181))/0x7)+parseInt(_0xe99507(0x188))/0x8+-parseInt(_0xe99507(0x180))/0x9+-parseInt(_0xe99507(0x18f))/0xa*(parseInt(_0xe99507(0x18c))/0xb);if(_0x88f7aa===_0x17f836)break;else _0x2dfd22['push'](_0x2dfd22['shift']());}catch(_0x5f054a){_0x2dfd22['push'](_0x2dfd22['shift']());}}}(a116_0x3b86,0xb8d3c));var a116_0x2957d5={};a116_0x2957d5[a116_0x2587f4(0x18e)]=[a116_0x2587f4(0x18a)],a116_0x2957d5['element']=[a116_0x2587f4(0x18d),a116_0x2587f4(0x17e)];var a116_0x4b3925={};function a116_0x402b(_0x58f956,_0x3a4139){var _0x3b8620=a116_0x3b86();return a116_0x402b=function(_0x402b1f,_0x220e29){_0x402b1f=_0x402b1f-0x17d;var _0xbaa24b=_0x3b8620[_0x402b1f];return _0xbaa24b;},a116_0x402b(_0x58f956,_0x3a4139);}a116_0x4b3925[a116_0x2587f4(0x18e)]=[a116_0x2587f4(0x18a)];var a116_0x188992={};a116_0x188992[a116_0x2587f4(0x189)]=[a116_0x2587f4(0x18d)];var a116_0x4ebcdf={};a116_0x4ebcdf[a116_0x2587f4(0x190)]=a116_0x2957d5,a116_0x4ebcdf['screenshot']=a116_0x4b3925,a116_0x4ebcdf['click']=a116_0x188992,a116_0x4ebcdf[a116_0x2587f4(0x186)]={},a116_0x4ebcdf[a116_0x2587f4(0x184)]={},module[a116_0x2587f4(0x18b)]=a116_0x4ebcdf;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117_0x20d476=a117_0x4f06;(function(_0x270fa7,_0x2821b0){const _0x2cb85b=a117_0x4f06,_0x34154e=_0x270fa7();while(!![]){try{const _0x39b174=-parseInt(_0x2cb85b(0x142))/0x1+-parseInt(_0x2cb85b(0x135))/0x2*(parseInt(_0x2cb85b(0x13c))/0x3)+parseInt(_0x2cb85b(0x128))/0x4+parseInt(_0x2cb85b(0x130))/0x5*(-parseInt(_0x2cb85b(0x12d))/0x6)+parseInt(_0x2cb85b(0x12b))/0x7*(-parseInt(_0x2cb85b(0x13b))/0x8)+parseInt(_0x2cb85b(0x129))/0x9*(-parseInt(_0x2cb85b(0x132))/0xa)+parseInt(_0x2cb85b(0x133))/0xb;if(_0x39b174===_0x2821b0)break;else _0x34154e['push'](_0x34154e['shift']());}catch(_0x3f1949){_0x34154e['push'](_0x34154e['shift']());}}}(a117_0x34c9,0xc227c));const tryRequire=function(_0x273181,_0x1756e9){const _0x1c5deb=a117_0x4f06,_0x4bdf98={'wnkHg':function(_0x23e581,_0x587c46){return _0x23e581(_0x587c46);}};try{return _0x4bdf98[_0x1c5deb(0x12c)](require,_0x273181);}catch{return _0x1756e9;}},percySnapshot=tryRequire(a117_0x20d476(0x120),null),{percyScreenshot}=tryRequire(a117_0x20d476(0x120),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a117_0x20d476(0x12f)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants'),logger=require(a117_0x20d476(0x126))[a117_0x20d476(0x138)];percySnapshot&&(exports[a117_0x20d476(0x136)]=async function(){const _0x57ee30=a117_0x20d476,_0x461556={'gzEJe':function(_0x73b21a,_0x558846){return _0x73b21a!==_0x558846;},'GiDox':function(_0x7eda98,_0x3672c2){return _0x7eda98>=_0x3672c2;},'oubMj':function(_0x325845){return _0x325845();}};if(global[_0x57ee30(0x139)]&&_0x461556[_0x57ee30(0x143)](global[_0x57ee30(0x139)],global['browserstackPercyBestPlatform']))return;const _0x142b7b=_0x461556[_0x57ee30(0x13a)](arguments[_0x57ee30(0x123)],0x2)?arguments[0x1]:'',_0x21d3af=_0x461556[_0x57ee30(0x141)](getCurrentTestData),_0x1600d2={};return _0x1600d2[_0x57ee30(0x12a)]=_0x142b7b,_0x1600d2[_0x57ee30(0x13f)]=_0x21d3af[_0x57ee30(0x12a)]||'',_0x1600d2['thTestCaseExecutionId']=_0x21d3af[_0x57ee30(0x145)]||'',_0x1600d2[_0x57ee30(0x124)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x57ee30(0x131)](PerformanceEvents['SNAPSHOT'],()=>percySnapshot['apply'](null,arguments),_0x1600d2);});percyScreenshot?exports[a117_0x20d476(0x137)]=async function(){const _0x58543d=a117_0x20d476,_0x5a9270={'ZZPyn':function(_0x28ba4b,_0x6697ba){return _0x28ba4b>=_0x6697ba;},'KaFMG':function(_0x47bf64){return _0x47bf64();}},_0x1138a0=_0x5a9270[_0x58543d(0x127)](arguments['length'],0x2)?arguments[0x1]:'',_0x1d3a10=_0x5a9270[_0x58543d(0x125)](getCurrentTestData),_0x4762a8={};return _0x4762a8['name']=_0x1138a0,_0x4762a8['testCase']=_0x1d3a10[_0x58543d(0x12a)]||'',_0x4762a8[_0x58543d(0x121)]=_0x1d3a10[_0x58543d(0x145)]||'',_0x4762a8['platformIndex']=global[_0x58543d(0x139)],await PerformanceTester[_0x58543d(0x131)](PerformanceEvents[_0x58543d(0x13d)],()=>percyScreenshot[_0x58543d(0x144)](null,arguments),_0x4762a8);}:exports[a117_0x20d476(0x137)]=()=>{const _0x3c0981=a117_0x20d476,_0x512e9d={};_0x512e9d[_0x3c0981(0x12e)]=_0x3c0981(0x13e);const _0x210593=_0x512e9d;logger[_0x3c0981(0x140)](_0x210593['UTWIT']);};exports[a117_0x20d476(0x134)]=async function(){const _0x3c21c7=a117_0x20d476,_0x3db321={'hbRKF':function(_0x22be84,_0x28a3a2){return _0x22be84>=_0x28a3a2;},'VBJZP':function(_0xda3f2e){return _0xda3f2e();}},_0x3c1f59=_0x3db321['hbRKF'](arguments[_0x3c21c7(0x123)],0x2)?arguments[0x1]:'',_0x31f492=_0x3db321['VBJZP'](getCurrentTestData),_0x1ce4b4={};return _0x1ce4b4[_0x3c21c7(0x12a)]=_0x3c1f59,_0x1ce4b4['testCase']=_0x31f492[_0x3c21c7(0x12a)]||'',_0x1ce4b4['thTestCaseExecutionId']=_0x31f492[_0x3c21c7(0x145)]||'',_0x1ce4b4[_0x3c21c7(0x124)]=global[_0x3c21c7(0x139)],await PerformanceTester[_0x3c21c7(0x131)](PerformanceEvents[_0x3c21c7(0x122)],()=>percyAppScreenshot[_0x3c21c7(0x144)](null,arguments),_0x1ce4b4);};function a117_0x4f06(_0x3422d6,_0x46dcd9){const _0x34c96d=a117_0x34c9();return a117_0x4f06=function(_0x4f0689,_0x5823c3){_0x4f0689=_0x4f0689-0x120;let _0x38f484=_0x34c96d[_0x4f0689];return _0x38f484;},a117_0x4f06(_0x3422d6,_0x46dcd9);}function a117_0x34c9(){const _0x7bb11=['5853688UAjPmQ','510954vlOUGF','SCREENSHOT','Unsupported\x20driver\x20for\x20percy','testCase','error','oubMj','851788ZjXMmt','gzEJe','apply','uuid','@percy/selenium-webdriver','thTestCaseExecutionId','SCREENSHOT_APP','length','platformIndex','KaFMG','../logger','ZZPyn','1974832JPuzsF','9ZaaKzK','name','7HYGfra','wnkHg','1464954vkoqyX','UTWIT','../performance/performance-tester','5oLzYKH','measure','6534470UoQPUW','32482725XywviU','screenshotApp','2XHdGWi','snapshot','screenshot','winstonLogger','browserstackPlatformIndex','GiDox'];a117_0x34c9=function(){return _0x7bb11;};return a117_0x34c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a118_0x2e54a7=a118_0x3594;function a118_0x3594(_0x2bee51,_0x4b220d){var _0x5ea5ba=a118_0x5ea5();return a118_0x3594=function(_0x3594b3,_0x220469){_0x3594b3=_0x3594b3-0x8e;var _0x30c7e7=_0x5ea5ba[_0x3594b3];return _0x30c7e7;},a118_0x3594(_0x2bee51,_0x4b220d);}function a118_0x5ea5(){var _0x2e3a18=['5xigmed','1471440opJIaz','exports','./Percy','18470768JyqqbC','13005SfDDdp','6649237YWloVl','6695154dfGlNn','3886804EhzNpR','2101836qxyVQC'];a118_0x5ea5=function(){return _0x2e3a18;};return a118_0x5ea5();}(function(_0x21d6e7,_0x413a85){var _0x102478=a118_0x3594,_0x13063e=_0x21d6e7();while(!![]){try{var _0x326e0a=-parseInt(_0x102478(0x95))/0x1+-parseInt(_0x102478(0x8f))/0x2+parseInt(_0x102478(0x91))/0x3+-parseInt(_0x102478(0x8e))/0x4*(parseInt(_0x102478(0x90))/0x5)+-parseInt(_0x102478(0x97))/0x6+parseInt(_0x102478(0x96))/0x7+parseInt(_0x102478(0x94))/0x8;if(_0x326e0a===_0x413a85)break;else _0x13063e['push'](_0x13063e['shift']());}catch(_0x6f475){_0x13063e['push'](_0x13063e['shift']());}}}(a118_0x5ea5,0x91ee6),module[a118_0x2e54a7(0x92)]=require(a118_0x2e54a7(0x93)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x58d848=a119_0x589c;(function(_0x3c7d88,_0x1dd5ad){const _0x30e782=a119_0x589c,_0x1b367d=_0x3c7d88();while(!![]){try{const _0x58991a=-parseInt(_0x30e782(0x13b))/0x1*(-parseInt(_0x30e782(0x133))/0x2)+parseInt(_0x30e782(0x119))/0x3*(parseInt(_0x30e782(0x14a))/0x4)+-parseInt(_0x30e782(0x102))/0x5+-parseInt(_0x30e782(0x14e))/0x6*(parseInt(_0x30e782(0x108))/0x7)+parseInt(_0x30e782(0x103))/0x8+-parseInt(_0x30e782(0x14b))/0x9+-parseInt(_0x30e782(0x145))/0xa*(parseInt(_0x30e782(0x130))/0xb);if(_0x58991a===_0x1dd5ad)break;else _0x1b367d['push'](_0x1b367d['shift']());}catch(_0x106ddb){_0x1b367d['push'](_0x1b367d['shift']());}}}(a119_0x4518,0x30230));const Percy=require(a119_0x58d848(0x12e)),PercySDK=require(a119_0x58d848(0x13f)),PercyCaptureModes=require(a119_0x58d848(0x132)),PercyCaptureMap=require(a119_0x58d848(0x12d)),logger=require(a119_0x58d848(0x112))[a119_0x58d848(0x101)],helper=require(a119_0x58d848(0x142)),PerformanceTester=require(a119_0x58d848(0x13d)),{PERCY_EVENTS:PerformanceEvents}=require(a119_0x58d848(0x137));function a119_0x589c(_0x37c75e,_0x12d3e9){const _0x45181c=a119_0x4518();return a119_0x589c=function(_0x589c5c,_0x1eacd2){_0x589c5c=_0x589c5c-0x101;let _0x5e1b65=_0x45181c[_0x589c5c];return _0x5e1b65;},a119_0x589c(_0x37c75e,_0x12d3e9);}exports[a119_0x58d848(0x111)]=PerformanceTester['measureWrapper'](PerformanceEvents[a119_0x58d848(0x11d)],async _0x404c18=>{const _0xaf3e23=a119_0x58d848,_0x34061c={};_0x34061c['hEQwJ']='Starting\x20percy';const _0x3fe934=_0x34061c;logger['debug'](_0x3fe934['hEQwJ']);const _0x526526=new Percy(_0x404c18),_0xe5fa26=await _0x526526[_0xaf3e23(0x117)]();if(_0xe5fa26)return _0x526526;return null;}),exports[a119_0x58d848(0x13c)]=PerformanceTester[a119_0x58d848(0x116)](PerformanceEvents[a119_0x58d848(0x128)],async _0x47d5fb=>{const _0x58fddf=a119_0x58d848,_0x3804e1={};_0x3804e1['alXag']=_0x58fddf(0x144);const _0x382e3d=_0x3804e1;return logger[_0x58fddf(0x113)](_0x382e3d['alXag']),_0x47d5fb[_0x58fddf(0x135)]();}),exports[a119_0x58d848(0x11a)]=_0x318c8f=>{const _0x14be9c=a119_0x58d848,_0x35e268={};_0x35e268[_0x14be9c(0x118)]=function(_0x4ae83e,_0x4949d2){return _0x4ae83e<_0x4949d2;};const _0x1d3260=_0x35e268,_0x6b4214={};_0x6b4214[_0x14be9c(0x122)]=0x0,_0x6b4214[_0x14be9c(0x12b)]=0x1,_0x6b4214[_0x14be9c(0x143)]=0x2,_0x6b4214[_0x14be9c(0x124)]=0x3;const _0x278589=_0x6b4214;return _0x318c8f['reduce']((_0x5a37c1,_0x4a443a,_0x5cab9d)=>{const _0x2c261e=_0x14be9c,_0xf1dcb3=_0x318c8f[_0x5a37c1];if(_0x4a443a[_0x2c261e(0x147)])return _0x5a37c1;if(_0xf1dcb3[_0x2c261e(0x147)])return _0x5cab9d;const _0x5087b0=_0x4a443a[_0x2c261e(0x11c)]?_0x4a443a[_0x2c261e(0x11c)]:_0x4a443a[_0x2c261e(0x10a)];if(_0x5087b0&&_0x1d3260['JaPDH'](_0x278589[_0x5087b0[_0x2c261e(0x131)]()],_0x278589[_0x5087b0['toLowerCase']()]))return _0x5cab9d;return _0x5a37c1;},0x0);},exports[a119_0x58d848(0x11e)]=PerformanceTester[a119_0x58d848(0x116)](PerformanceEvents[a119_0x58d848(0x114)],async(_0x55e2d1,_0x24827e,_0x1b9b79)=>{const _0x334d7b=a119_0x58d848,_0x32ba49={};_0x32ba49[_0x334d7b(0x110)]=_0x334d7b(0x138);const _0x193460=_0x32ba49,_0x2b7b9e=_0x55e2d1[_0x334d7b(0x14c)];if(helper[_0x334d7b(0x10c)](_0x55e2d1[_0x334d7b(0x149)])){logger['debug'](_0x193460['rbINw']);return;}const _0x348b12=_0x2b7b9e[_0x334d7b(0x140)](_0x55e2d1['browserstackSessionName'],_0x24827e);_0x1b9b79[_0x334d7b(0x139)]?await PercySDK[_0x334d7b(0x115)](_0x55e2d1,_0x348b12):await PercySDK[_0x334d7b(0x120)](_0x55e2d1,_0x348b12),_0x2b7b9e[_0x334d7b(0x10f)](_0x55e2d1['browserstackSessionName'],_0x24827e);}),exports[a119_0x58d848(0x12c)]=(_0xdf33ac,_0x1c8625,_0x269c20)=>{const _0x469670=a119_0x58d848,_0x598e5f={};_0x598e5f[_0x469670(0x126)]='browserStackPercyOptions',_0x598e5f[_0x469670(0x127)]='percy',_0x598e5f[_0x469670(0x109)]=function(_0x493570,_0x3f4666){return _0x493570!==_0x3f4666;},_0x598e5f['aGZmy']='manual';const _0x31e18c=_0x598e5f;if(!helper[_0x469670(0x11f)](_0x269c20,[_0x31e18c[_0x469670(0x126)],_0x31e18c[_0x469670(0x127)]]))return;if(_0x269c20['browserStackPercyOptions'][_0x469670(0x12f)]&&_0x269c20[_0x469670(0x14d)][_0x469670(0x11b)]&&_0x31e18c['mInOk'](_0x269c20[_0x469670(0x14d)][_0x469670(0x11b)],_0x31e18c['aGZmy'])&&!_0xdf33ac[_0x469670(0x14c)]){global['browserstackSessionName']&&(_0xdf33ac[_0x469670(0x149)]=global[_0x469670(0x149)]),_0xdf33ac[_0x469670(0x14c)]=new PercyCaptureMap();const _0x4f0407=PercyCaptureModes[_0x269c20[_0x469670(0x14d)]['percyCaptureMode']];_0x4f0407[_0x469670(0x148)]&&_0x4f0407[_0x469670(0x148)][_0x469670(0x141)](_0x31caf2=>this['overrideXforPercy'](_0xdf33ac,_0x31caf2,_0x269c20)),_0x4f0407['element']&&_0x4f0407[_0x469670(0x125)][_0x469670(0x141)](_0x506d00=>{const _0x37dab8=_0x469670;if(_0x1c8625[_0x37dab8(0x105)][_0x37dab8(0x104)+_0x506d00])return;_0x1c8625['prototype'][_0x37dab8(0x104)+_0x506d00]=!![];const _0x175c3f=_0x1c8625[_0x37dab8(0x105)][_0x506d00];_0x1c8625['prototype'][_0x506d00]=async function(){const _0xbfa144=_0x37dab8;let _0x2e8668=_0x175c3f['apply'](this,arguments);_0x2e8668&&_0x2e8668[_0xbfa144(0x13e)]&&(_0x2e8668=await _0x2e8668);try{const _0x4e4a23=this[_0xbfa144(0x13a)]();await exports[_0xbfa144(0x11e)](_0x4e4a23,_0x506d00,_0x269c20);}catch(_0x339220){logger[_0xbfa144(0x136)]('Error\x20patching\x20'+_0x506d00+_0xbfa144(0x107)+_0x339220);}return _0x2e8668;};});}},exports[a119_0x58d848(0x10b)]=function(_0x23b07b,_0x48facd,_0x33e80e){const _0x14ffde=a119_0x58d848,_0x2a4bed={};_0x2a4bed['lSPoK']=function(_0x24f341,_0x3a5fa9){return _0x24f341+_0x3a5fa9;},_0x2a4bed['RVPQg']='patch',_0x2a4bed[_0x14ffde(0x134)]=function(_0x1ed39b,_0x2c4582){return _0x1ed39b+_0x2c4582;},_0x2a4bed[_0x14ffde(0x123)]=_0x14ffde(0x121);const _0x7b80e4=_0x2a4bed,_0x1aee77=_0x7b80e4['lSPoK'](_0x7b80e4[_0x14ffde(0x146)],_0x48facd),_0x33feb7=_0x7b80e4[_0x14ffde(0x134)](_0x7b80e4[_0x14ffde(0x123)],_0x48facd),_0x5577b7=this;if(_0x23b07b[_0x1aee77]||!_0x23b07b[_0x48facd])return;_0x23b07b[_0x1aee77]=!![],_0x23b07b[_0x33feb7]=_0x23b07b[_0x48facd],_0x23b07b[_0x48facd]=async()=>{const _0x74d617=_0x14ffde;try{await _0x5577b7[_0x74d617(0x11e)](_0x23b07b,_0x48facd,_0x33e80e);}catch(_0x4c50a3){logger['error']('Error\x20patching\x20'+_0x48facd+_0x74d617(0x107)+_0x4c50a3);}return await _0x23b07b[_0x33feb7]['apply'](_0x23b07b,arguments);};},exports[a119_0x58d848(0x10e)]=_0x9c25e7=>{const _0xde9b07=a119_0x58d848,_0x2f4f65={};_0x2f4f65[_0xde9b07(0x129)]=_0xde9b07(0x10d);const _0x4c8a7d=_0x2f4f65,_0x4804d5={};_0x4804d5[_0xde9b07(0x12f)]=_0x9c25e7[_0xde9b07(0x12f)],_0x4804d5['percyCaptureMode']=_0x9c25e7[_0xde9b07(0x11b)]||_0x4c8a7d[_0xde9b07(0x129)];const _0x2530a6=_0x4804d5;_0x9c25e7[_0xde9b07(0x12f)]&&(_0x2530a6[_0xde9b07(0x106)]=exports[_0xde9b07(0x11a)](_0x9c25e7[_0xde9b07(0x12a)]));;return _0x2530a6;};function a119_0x4518(){const _0xabe6c9=['driver','browserstackSessionName','129436tksQCe','226161FATwsa','browserstackPercyMap','browserStackPercyOptions','78NeadMt','winstonLogger','317640WvYyRz','1597016IzMzfP','patch','prototype','browserstackPercyBestPlatform','\x20for\x20percy\x20','49833smbBPD','mInOk','browserName','overrideXforPercy','isUndefined','auto','getPercyOptions','increment','rbINw','startPercy','../logger','debug','AUTO_CAPTURE','screenshotApp','measureWrapper','start','JaPDH','18zgrVnP','getBestPlatformForPercySnapshot','percyCaptureMode','browser','START','percyAutoCapture','nestedKeyValue','screenshot','init','chrome','pAmYd','safari','element','bnleB','uJgAt','STOP','xqJcp','platforms','firefox','patchDriverPercy','./PercyCaptureMap','./Percy','percy','1012UATvcD','toLowerCase','./PercyCaptureModes','98bdBMrd','OsDdz','stop','error','../performance/constants','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','app','getDriver','6103IDkklB','stopPercy','../performance/performance-tester','then','./PercySDK','getName','forEach','../helper','edge','Stopping\x20percy','34180vjOATs','RVPQg','deviceName'];a119_0x4518=function(){return _0xabe6c9;};return a119_0x4518();}
|