@ranger-testing/ranger-cli 3.1.7-alpha.be2850d-64 → 3.1.7-alpha.e26cd28-63

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.
Files changed (88) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/actors.js +1 -1
  38. package/build/commands/utils/agentEnv.js +1 -1
  39. package/build/commands/utils/browserSessionsApi.js +1 -1
  40. package/build/commands/utils/claudeConfig.js +1 -1
  41. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  42. package/build/commands/utils/claudePlugin.js +1 -1
  43. package/build/commands/utils/cloudProfile.js +1 -1
  44. package/build/commands/utils/cloudProfileSession.js +1 -1
  45. package/build/commands/utils/crypto.js +1 -1
  46. package/build/commands/utils/desirePathLog.js +1 -1
  47. package/build/commands/utils/deviceAuth.js +1 -1
  48. package/build/commands/utils/environment.js +1 -1
  49. package/build/commands/utils/featureApi.js +1 -1
  50. package/build/commands/utils/fixWebmDuration.js +1 -1
  51. package/build/commands/utils/gitTracked.js +1 -1
  52. package/build/commands/utils/keychain.js +1 -1
  53. package/build/commands/utils/legacyWarning.js +1 -1
  54. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  55. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  56. package/build/commands/utils/mcpImageBase64.js +1 -1
  57. package/build/commands/utils/model.js +1 -1
  58. package/build/commands/utils/novaActCli.js +1 -1
  59. package/build/commands/utils/opencodeConfig.js +1 -1
  60. package/build/commands/utils/organizationEnvApi.js +1 -1
  61. package/build/commands/utils/playwrightCli.js +1 -1
  62. package/build/commands/utils/profileMessages.js +1 -1
  63. package/build/commands/utils/profileSetupBanner.js +1 -1
  64. package/build/commands/utils/projectsConfig.js +1 -1
  65. package/build/commands/utils/rangerConfig.js +1 -1
  66. package/build/commands/utils/rangerRoot.js +1 -1
  67. package/build/commands/utils/rangerwrightCli.js +1 -1
  68. package/build/commands/utils/resolveProfileContext.js +1 -1
  69. package/build/commands/utils/resolveProfileUrl.js +1 -1
  70. package/build/commands/utils/retry.js +1 -1
  71. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  72. package/build/commands/utils/sessionCache.js +1 -1
  73. package/build/commands/utils/settings.js +1 -1
  74. package/build/commands/utils/skillContent.js +1 -1
  75. package/build/commands/utils/skills.js +1 -1
  76. package/build/commands/utils/stitchWebmFiles.js +1 -1
  77. package/build/commands/utils/telemetry.js +1 -1
  78. package/build/commands/utils/tokenRefresh.js +1 -1
  79. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  80. package/build/commands/utils/tunnelClient.js +1 -1
  81. package/build/commands/utils/userApi.js +1 -1
  82. package/build/commands/utils/version.js +1 -1
  83. package/build/commands/verifyFeature.js +1 -1
  84. package/build/commands/verifyFeatureCli.js +1 -1
  85. package/build/commands/verifyFeatureNovaCli.js +1 -1
  86. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  87. package/build/skills/ranger/SKILL.md +0 -8
  88. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5b21b1,_0xa94b05){const _0x52e662=_0x1481,_0x1e1658=_0x5b21b1();while(!![]){try{const _0x317388=parseInt(_0x52e662(0xfe))/0x1+parseInt(_0x52e662(0x133))/0x2+-parseInt(_0x52e662(0x108))/0x3*(-parseInt(_0x52e662(0x121))/0x4)+parseInt(_0x52e662(0x104))/0x5*(parseInt(_0x52e662(0x11c))/0x6)+-parseInt(_0x52e662(0x111))/0x7+parseInt(_0x52e662(0x125))/0x8+-parseInt(_0x52e662(0x10a))/0x9*(parseInt(_0x52e662(0x12f))/0xa);if(_0x317388===_0xa94b05)break;else _0x1e1658['push'](_0x1e1658['shift']());}catch(_0xa04e68){_0x1e1658['push'](_0x1e1658['shift']());}}}(_0x12df,0x35be5));function _0x1481(_0x19bcbd,_0x59dd10){_0x19bcbd=_0x19bcbd-0xf9;const _0x12dfb3=_0x12df();let _0x148130=_0x12dfb3[_0x19bcbd];return _0x148130;}import{existsSync}from'fs';import _0x2b60a1 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';function _0x12df(){const _0x285189=['jhWmn','envBaseUrl','settings','\x20to\x20override.','Cloud\x20profile\x20(recommended)','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','9102TmikWR','\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).','log','message','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','713432gIiGxc','DXdpI','LnTdQ','envStartPath','1794128eVoCTl','dYLta','Lpmys','CqMdg','\x20\x20Note:\x20--env\x20\x22','resolvedEnv','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','faQWK','ZmaPH','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','20EXThwD','baseUrlSource','SnzGF','prompt','208554vSZdab','kWryW','xmYKe','RANGER_SESSION_STATE_PATH','RANGER_SESSION_STATE_PATH=','baseUrl','key','Profile\x20\x22','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','domains','274564qklCfu','list','VKlvt','AkHup','Active\x20profile\x20\x22','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','1325yDgJCd','cloud','ccNGn','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','3PbmmLl','mMymH','3236013VXINYR','qOzfR','length','env','rHltG','startPath','authEnv','1709561pbYVEZ','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','cwd','telemetry','name'];_0x12df=function(){return _0x285189;};return _0x12df();}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5d31f8){const _0x537fac=_0x1481,_0x4f447e={'jhWmn':function(_0x3b6453){return _0x3b6453();},'SnzGF':function(_0x27dfd7,_0x383e79){return _0x27dfd7!==_0x383e79;},'faQWK':function(_0x226f1e,_0x1d38a4){return _0x226f1e instanceof _0x1d38a4;},'VKlvt':function(_0x14a538,_0x22a2b1){return _0x14a538+_0x22a2b1;},'rHltG':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','dYLta':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','AkHup':function(_0x498014,_0x356678){return _0x498014(_0x356678);},'oCKWt':function(_0x310232,_0x56dafa){return _0x310232 instanceof _0x56dafa;},'DXdpI':function(_0x9d6869,_0x1de443){return _0x9d6869===_0x1de443;},'ZmaPH':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','VAIpd':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','dLwLf':function(_0x2411c4,_0xb066bd){return _0x2411c4&&_0xb066bd;},'NAViH':_0x537fac(0xff),'mMymH':'source','YRHBa':_0x537fac(0x105),'xmYKe':function(_0x3683fb,_0x100c2e,_0x3ff9d4){return _0x3683fb(_0x100c2e,_0x3ff9d4);},'nIPom':function(_0x15a0ce){return _0x15a0ce();},'edqsb':function(_0x8d39b5,_0xfa8075){return _0x8d39b5??_0xfa8075;},'CqMdg':function(_0x5a7e84,_0x5b54aa){return _0x5a7e84(_0x5b54aa);},'lOXJl':function(_0x53648d,_0x9a9ca3){return _0x53648d(_0x9a9ca3);},'qOzfR':function(_0x6f5c7f,_0x3171ec){return _0x6f5c7f(_0x3171ec);},'ccNGn':function(_0x390325,_0x3a57e6){return _0x390325+_0x3a57e6;},'LnTdQ':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a'},_0x541e42=_0x5d31f8['profile'];let _0x2c3dde=_0x541e42,_0x3bf65b=null;const _0x4ad62d=_0x541e42?null:await _0x4f447e[_0x537fac(0x116)](readActiveProfileName);if(_0x5d31f8['authEnv']&&_0x541e42)console[_0x537fac(0x11e)]('\x20\x20Note:\x20--env\x20\x22'+_0x5d31f8['authEnv']+'\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22'+_0x541e42+_0x537fac(0x11d));else _0x5d31f8['authEnv']&&!process[_0x537fac(0x10d)]['RANGER_TEST_USERNAME']&&console['log'](_0x537fac(0x129)+_0x5d31f8['authEnv']+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0x541e42&&process['env']['RANGER_TEST_USERNAME'])try{const _0x81c427=await resolveAdHocProfile({'targetUrl':_0x5d31f8['baseUrl']??_0x4f447e['jhWmn'](readUrlEnvVars)[_0x537fac(0x117)],'envKey':_0x5d31f8['authEnv']});_0x81c427&&(_0x4ad62d&&_0x4f447e[_0x537fac(0x131)](_0x4ad62d,_0x81c427['name'])&&console[_0x537fac(0x11e)]('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x81c427[_0x537fac(0x115)]+_0x537fac(0x120)+_0x4ad62d+'\x22.\x20Pass\x20--profile\x20'+_0x4ad62d+_0x537fac(0x119)),_0x2c3dde=_0x81c427[_0x537fac(0x115)],_0x3bf65b=_0x81c427['profile']);}catch(_0xa6e7f4){if(!_0x4ad62d||_0x5d31f8[_0x537fac(0x110)])throw _0xa6e7f4;console[_0x537fac(0x11e)]('\x20\x20Warning:\x20'+(_0x4f447e[_0x537fac(0x12c)](_0xa6e7f4,Error)?_0xa6e7f4[_0x537fac(0x11f)]:String(_0xa6e7f4))),console['log']('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x4ad62d+'\x22.');}if(!_0x2c3dde)_0x2c3dde=_0x4ad62d??undefined;if(!_0x2c3dde)try{const _0x2732ed=await listCloudProfiles();if(_0x2732ed[_0x537fac(0x10c)]===0x1){const _0x2b4c22=_0x2732ed[0x0];_0x2c3dde=_0x2b4c22[_0x537fac(0x115)],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x2b4c22[_0x537fac(0x115)]),console['log'](_0x537fac(0x103));}}catch{}if(!_0x2c3dde)throw new Error(_0x4f447e[_0x537fac(0x100)](_0x4f447e[_0x537fac(0x10e)]+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a',_0x537fac(0x107))+_0x537fac(0x12e)+_0x4f447e[_0x537fac(0x126)]);const _0xed3ea0=getEnvDir(_0x2c3dde),_0x4e2837=existsSync(_0xed3ea0);let _0x4c0bec=_0x3bf65b,_0x43994b=![];if(!_0x4c0bec)try{_0x4c0bec=await _0x4f447e[_0x537fac(0x101)](fetchCloudProfile,_0x2c3dde);if(!_0x4c0bec)_0x43994b=!![];}catch(_0x178337){_0x4f447e['oCKWt'](_0x178337,ApiError)&&_0x4f447e['DXdpI'](_0x178337['status'],0x194)&&(_0x43994b=!![]);}if(_0x541e42&&_0x43994b&&!_0x4e2837&&!_0x4c0bec)throw new Error(_0x4f447e[_0x537fac(0x100)]('Profile\x20\x22'+_0x541e42+_0x537fac(0x112),_0x4f447e[_0x537fac(0x12d)])+_0x4f447e['VAIpd']);if(_0x4f447e['dLwLf'](_0x4c0bec,_0x4e2837)){let _0x167232=!![];if(_0x4f447e['jhWmn'](isInteractive)){const {source:_0x3100f5}=await _0x2b60a1[_0x537fac(0x132)]([{'type':_0x4f447e['NAViH'],'name':_0x4f447e[_0x537fac(0x109)],'message':'Profile\x20\x22'+_0x2c3dde+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x537fac(0x11a),'value':_0x4f447e['YRHBa']},{'name':'Local\x20profile','value':'local'}],'default':'cloud'}]);_0x167232=_0x4f447e[_0x537fac(0x122)](_0x3100f5,_0x4f447e['YRHBa']);}if(!_0x167232)_0x4c0bec=null;}const _0x5522e9=_0x4f447e[_0x537fac(0x135)](readProfileOverrides,process[_0x537fac(0x113)](),_0x2c3dde);let _0x45ecf1=null,_0x114640,_0x14a08d,_0xe8872d,_0x2a5187,_0x1c250c=null,_0x24f722,_0x5ee6d3;const _0x376fcf=expandOverrides(_0x5522e9),_0x299f51=_0x4f447e['nIPom'](readUrlEnvVars);if(_0x4c0bec){_0x45ecf1=_0x4c0bec;const _0x2bbf5b=_0x4c0bec['settings']??{},_0x4513c7=mergeCloudProfileSettings(_0x2bbf5b,_0x4f447e['edqsb'](_0x5522e9,undefined)),_0x389f7c={..._0x4c0bec,'settings':_0x4513c7};_0x1c250c={'baseUrl':_0x4f447e[_0x537fac(0x128)](expandString,_0x2bbf5b[_0x537fac(0xf9)]),'startPath':expandString(_0x2bbf5b['startPath'])};const _0x55b916=await fetchAuthConfig(),_0x8ac625=_0x55b916?_0x4f447e[_0x537fac(0x135)](resolveAuthEnvironmentLocally,_0x55b916,_0x4c0bec['environmentKey']):null;_0x24f722=_0x8ac625?.[_0x537fac(0xfd)]?.[0x0],_0x5ee6d3=_0x8ac625?.['key'];const _0x5b5aa9=resolveProfileUrl({'flagBaseUrl':_0x5d31f8['baseUrl'],'flagStartPath':_0x5d31f8[_0x537fac(0x10f)],'envBaseUrl':_0x299f51[_0x537fac(0x117)],'envStartPath':_0x299f51['envStartPath'],'projectOverrides':_0x376fcf,'cloudSettings':_0x1c250c,'authEnvironmentDomain':_0x24f722}),_0x2ed637=process['env'][_0x537fac(0x136)];if(_0x2ed637){if(!existsSync(_0x2ed637))throw new Error(_0x537fac(0x137)+_0x2ed637+'\x20does\x20not\x20exist.');_0x114640=_0x2ed637,_0x14a08d=_0x4f447e['lOXJl'](resolveEnvVars,_0x4513c7),_0xe8872d=Boolean(_0x14a08d['cdpEndpoint']);}else{const _0x95806=await _0x4f447e['xmYKe'](resolveCloudProfileSession,_0x389f7c,{'effectiveBaseUrl':_0x5b5aa9['baseUrl'],'telemetry':_0x5d31f8[_0x537fac(0x114)],'assertedEnv':_0x5d31f8['authEnv']});_0x114640=_0x95806['authPath'],_0x14a08d=_0x4f447e['qOzfR'](resolveEnvVars,_0x95806[_0x537fac(0x118)]),_0xe8872d=Boolean(_0x14a08d['cdpEndpoint']),_0x24f722=_0x95806[_0x537fac(0x12a)]?.[_0x537fac(0xfd)]?.[0x0],_0x5ee6d3=_0x95806['resolvedEnv']?.[_0x537fac(0xfa)];}}else{if(!_0x4e2837){const _0x8b6938=!_0x541e42;throw new Error(_0x8b6938?_0x4f447e['ccNGn'](_0x4f447e[_0x537fac(0x106)](_0x537fac(0x102)+_0x2c3dde+_0x537fac(0xfc),_0x4f447e[_0x537fac(0x123)]),'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a')+(_0x537fac(0x12b)+_0x2c3dde+'`\x20to\x20recreate\x20it.'):_0x537fac(0xfb)+_0x2c3dde+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2c3dde);}const _0x184328=await _0x4f447e[_0x537fac(0x10b)](loadSettings,_0x2c3dde);_0x14a08d=_0x4f447e['qOzfR'](resolveEnvVars,_0x184328),_0xe8872d=_0x4f447e[_0x537fac(0x128)](Boolean,_0x14a08d['cdpEndpoint']),_0x2a5187=_0x14a08d[_0x537fac(0xf9)];}const _0x46d180=resolveProfileUrl({'flagBaseUrl':_0x5d31f8[_0x537fac(0xf9)],'flagStartPath':_0x5d31f8['startPath'],'envBaseUrl':_0x299f51[_0x537fac(0x117)],'envStartPath':_0x299f51[_0x537fac(0x124)],'localSettingsBaseUrl':_0x2a5187,'projectOverrides':_0x376fcf,'cloudSettings':_0x1c250c,'authEnvironmentDomain':_0x24f722}),_0x27070b=_0x46d180['url']??_0x46d180[_0x537fac(0xf9)];if(!_0x27070b&&!_0xe8872d)throw new Error(_0x537fac(0x11b)+_0x2c3dde+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x2c3dde+'\x20baseUrl\x20<url>');return{'activeProfile':_0x2c3dde,'resolvedCloudProfile':_0x45ecf1,'cloudAuthPath':_0x114640,'resolvedSettings':_0x14a08d,'isCdpMode':_0xe8872d,'url':_0x27070b,'baseUrlSource':_0x46d180[_0x537fac(0x130)],'authEnvKey':_0x5ee6d3,'startPath':_0x46d180['startPath']};}function expandString(_0x121849){const _0x4c96cf=_0x1481,_0x5a8057={'Lpmys':function(_0x4a63e9,_0x224734){return _0x4a63e9!==_0x224734;},'Bgdcf':function(_0x5260a5,_0x1a6562){return _0x5260a5(_0x1a6562);}};if(_0x5a8057[_0x4c96cf(0x127)](typeof _0x121849,'string'))return _0x121849;return _0x5a8057['Bgdcf'](resolveEnvVars,_0x121849);}function expandOverrides(_0x1a1ca1){const _0x5d0a81=_0x1481,_0x25e691={'kWryW':'string'};if(!_0x1a1ca1)return _0x1a1ca1;const _0x181b49={..._0x1a1ca1};return typeof _0x181b49['baseUrl']===_0x25e691['kWryW']&&(_0x181b49['baseUrl']=resolveEnvVars(_0x181b49['baseUrl'])),typeof _0x181b49[_0x5d0a81(0x10f)]===_0x25e691[_0x5d0a81(0x134)]&&(_0x181b49['startPath']=resolveEnvVars(_0x181b49['startPath'])),_0x181b49;}
1
+ (function(_0x189844,_0x52cca2){const _0xdc740c=_0x5ac5,_0x485273=_0x189844();while(!![]){try{const _0xfe849f=parseInt(_0xdc740c(0x1fb))/0x1*(-parseInt(_0xdc740c(0x1e7))/0x2)+-parseInt(_0xdc740c(0x1ed))/0x3+parseInt(_0xdc740c(0x1f8))/0x4*(-parseInt(_0xdc740c(0x208))/0x5)+parseInt(_0xdc740c(0x1f0))/0x6+-parseInt(_0xdc740c(0x209))/0x7+parseInt(_0xdc740c(0x1e4))/0x8*(-parseInt(_0xdc740c(0x1e5))/0x9)+parseInt(_0xdc740c(0x1ea))/0xa;if(_0xfe849f===_0x52cca2)break;else _0x485273['push'](_0x485273['shift']());}catch(_0x4c8c68){_0x485273['push'](_0x485273['shift']());}}}(_0x2b80,0xbcd61));import{existsSync}from'fs';import _0x3def03 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x2b80(){const _0x16f2aa=['fgvlb','authPath','10145lbsHnA','7225036mSBEUi','YQRNA','profile','\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','envStartPath','\x20\x20Warning:\x20','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','Cloud\x20profile\x20(recommended)','local','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','jkkOM','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','name','VJpPh','env','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','\x22.\x20Pass\x20--profile\x20','NfdSr','envBaseUrl','6048OZOIpg','10053YzNJZM','UpCcx','530196ailCPP','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','`\x20to\x20recreate\x20it.','42055810TPgxIA','status','`ranger\x20profile\x20add`\x20to\x20create\x20one.','3095535JQetBe','\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a','\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22','3533136fHSwFE','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','log','domains','baseUrlSource','uhsom','key','vIfqA','1148HPmUVY','telemetry','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','2AzDMHv','url','baseUrl','startPath','cdpEndpoint','Profile\x20\x22','xdkkk','bBeiF','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','authEnv','lgtms'];_0x2b80=function(){return _0x16f2aa;};return _0x2b80();}function _0x5ac5(_0x16cd0c,_0x204805){_0x16cd0c=_0x16cd0c-0x1df;const _0x2b80c4=_0x2b80();let _0x5ac599=_0x2b80c4[_0x16cd0c];return _0x5ac599;}import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x35503d){const _0x3e4b31=_0x5ac5,_0x599e5b={'bBeiF':function(_0x38204e,_0x4f6421){return _0x38204e(_0x4f6421);},'jkkOM':function(_0x585df6,_0x35f937){return _0x585df6+_0x35f937;},'auuGL':_0x3e4b31(0x1e0),'YQRNA':function(_0x3457ff,_0x43c650){return _0x3457ff instanceof _0x43c650;},'lgtms':function(_0x341e11,_0x5c3d6f){return _0x341e11===_0x5c3d6f;},'reOHF':_0x3e4b31(0x1f1),'uhsom':function(_0x755059){return _0x755059();},'TYUpA':'source','yVpPh':_0x3e4b31(0x211),'nUczD':'Local\x20profile','VJpPh':_0x3e4b31(0x212),'xdkkk':'cloud','NfdSr':function(_0x55fabe,_0x2bfb4b,_0x965e7f){return _0x55fabe(_0x2bfb4b,_0x965e7f);},'AupaA':function(_0x18c0a4,_0x34f7f4){return _0x18c0a4(_0x34f7f4);},'docVa':function(_0x22cd5b){return _0x22cd5b();},'fgvlb':function(_0x2a485e,_0x2fddc7,_0x3e832c){return _0x2a485e(_0x2fddc7,_0x3e832c);},'gbySG':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','Gppzy':function(_0x15477e,_0x585f62){return _0x15477e&&_0x585f62;}},_0xd528be=_0x35503d['profile'];let _0x4ab5c2=_0xd528be,_0x27bbd6=null;const _0x1e7b8b=_0xd528be?null:await readActiveProfileName();if(_0x35503d['authEnv']&&_0xd528be)console[_0x3e4b31(0x1f2)]('\x20\x20Note:\x20--env\x20\x22'+_0x35503d['authEnv']+_0x3e4b31(0x20c)+_0xd528be+'\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).');else _0x35503d[_0x3e4b31(0x204)]&&!process[_0x3e4b31(0x1df)]['RANGER_TEST_USERNAME']&&console['log']('\x20\x20Note:\x20--env\x20\x22'+_0x35503d['authEnv']+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0xd528be&&process['env']['RANGER_TEST_USERNAME'])try{const _0x1f5770=await resolveAdHocProfile({'targetUrl':_0x35503d['baseUrl']??readUrlEnvVars()['envBaseUrl'],'envKey':_0x35503d[_0x3e4b31(0x204)]});_0x1f5770&&(_0x1e7b8b&&_0x1e7b8b!==_0x1f5770['name']&&console[_0x3e4b31(0x1f2)]('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x1f5770[_0x3e4b31(0x216)]+_0x3e4b31(0x1ef)+_0x1e7b8b+_0x3e4b31(0x1e1)+_0x1e7b8b+'\x20to\x20override.'),_0x4ab5c2=_0x1f5770['name'],_0x27bbd6=_0x1f5770[_0x3e4b31(0x20b)]);}catch(_0x106e17){if(!_0x1e7b8b||_0x35503d['authEnv'])throw _0x106e17;console[_0x3e4b31(0x1f2)](_0x3e4b31(0x20f)+(_0x106e17 instanceof Error?_0x106e17['message']:_0x599e5b[_0x3e4b31(0x202)](String,_0x106e17))),console[_0x3e4b31(0x1f2)]('\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22'+_0x1e7b8b+'\x22.');}if(!_0x4ab5c2)_0x4ab5c2=_0x1e7b8b??undefined;if(!_0x4ab5c2)try{const _0x476d9d=await listCloudProfiles();if(_0x476d9d['length']===0x1){const _0x4ec1dc=_0x476d9d[0x0];_0x4ab5c2=_0x4ec1dc['name'],console['log'](_0x3e4b31(0x20d)+_0x4ec1dc[_0x3e4b31(0x216)]),console[_0x3e4b31(0x1f2)](_0x3e4b31(0x215));}}catch{}if(!_0x4ab5c2)throw new Error(_0x599e5b[_0x3e4b31(0x214)](_0x599e5b[_0x3e4b31(0x214)](_0x3e4b31(0x213)+_0x3e4b31(0x210)+_0x3e4b31(0x1e8),_0x599e5b['auuGL']),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x48eed8=getEnvDir(_0x4ab5c2),_0x2038d4=existsSync(_0x48eed8);let _0x15ac26=_0x27bbd6,_0x3c588c=![];if(!_0x15ac26)try{_0x15ac26=await fetchCloudProfile(_0x4ab5c2);if(!_0x15ac26)_0x3c588c=!![];}catch(_0x28eb8b){_0x599e5b[_0x3e4b31(0x20a)](_0x28eb8b,ApiError)&&_0x599e5b[_0x3e4b31(0x205)](_0x28eb8b[_0x3e4b31(0x1eb)],0x194)&&(_0x3c588c=!![]);}if(_0xd528be&&_0x3c588c&&!_0x2038d4&&!_0x15ac26)throw new Error(_0x3e4b31(0x200)+_0xd528be+_0x3e4b31(0x203)+_0x599e5b['reOHF']+_0x3e4b31(0x1ec));if(_0x15ac26&&_0x2038d4){let _0x481eb2=!![];if(_0x599e5b[_0x3e4b31(0x1f5)](isInteractive)){const {source:_0x1bfc4f}=await _0x3def03['prompt']([{'type':'list','name':_0x599e5b['TYUpA'],'message':'Profile\x20\x22'+_0x4ab5c2+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x599e5b['yVpPh'],'value':'cloud'},{'name':_0x599e5b['nUczD'],'value':_0x599e5b[_0x3e4b31(0x217)]}],'default':'cloud'}]);_0x481eb2=_0x1bfc4f===_0x599e5b[_0x3e4b31(0x201)];}if(!_0x481eb2)_0x15ac26=null;}const _0x253b64=_0x599e5b[_0x3e4b31(0x1e2)](readProfileOverrides,process['cwd'](),_0x4ab5c2);let _0x13d703=null,_0x4ed1bb,_0x3e3df4,_0x1ce187,_0x321f22,_0x5d1567=null,_0x435795,_0x57a888;const _0x174be6=_0x599e5b['AupaA'](expandOverrides,_0x253b64),_0x499733=_0x599e5b['docVa'](readUrlEnvVars);if(_0x15ac26){_0x13d703=_0x15ac26;const _0x3c7f0d=_0x15ac26['settings']??{},_0x2ed9f8=mergeCloudProfileSettings(_0x3c7f0d,_0x253b64??undefined),_0x2c4007={..._0x15ac26,'settings':_0x2ed9f8};_0x5d1567={'baseUrl':_0x599e5b['bBeiF'](expandString,_0x3c7f0d[_0x3e4b31(0x1fd)]),'startPath':expandString(_0x3c7f0d[_0x3e4b31(0x1fe)])};const _0x49e25b=await fetchAuthConfig(),_0x457a10=_0x49e25b?_0x599e5b[_0x3e4b31(0x206)](resolveAuthEnvironmentLocally,_0x49e25b,_0x15ac26['environmentKey']):null;_0x435795=_0x457a10?.['domains']?.[0x0],_0x57a888=_0x457a10?.[_0x3e4b31(0x1f6)];const _0x51eb7d=_0x599e5b['AupaA'](resolveProfileUrl,{'flagBaseUrl':_0x35503d['baseUrl'],'flagStartPath':_0x35503d['startPath'],'envBaseUrl':_0x499733['envBaseUrl'],'envStartPath':_0x499733[_0x3e4b31(0x20e)],'projectOverrides':_0x174be6,'cloudSettings':_0x5d1567,'authEnvironmentDomain':_0x435795}),_0x4ddc97=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x4ddc97){if(!existsSync(_0x4ddc97))throw new Error('RANGER_SESSION_STATE_PATH='+_0x4ddc97+'\x20does\x20not\x20exist.');_0x4ed1bb=_0x4ddc97,_0x3e3df4=resolveEnvVars(_0x2ed9f8),_0x1ce187=Boolean(_0x3e3df4['cdpEndpoint']);}else{const _0x59077f=await resolveCloudProfileSession(_0x2c4007,{'effectiveBaseUrl':_0x51eb7d['baseUrl'],'telemetry':_0x35503d[_0x3e4b31(0x1f9)],'assertedEnv':_0x35503d['authEnv']});_0x4ed1bb=_0x59077f[_0x3e4b31(0x207)],_0x3e3df4=resolveEnvVars(_0x59077f['settings']),_0x1ce187=Boolean(_0x3e3df4['cdpEndpoint']),_0x435795=_0x59077f['resolvedEnv']?.[_0x3e4b31(0x1f3)]?.[0x0],_0x57a888=_0x59077f['resolvedEnv']?.[_0x3e4b31(0x1f6)];}}else{if(!_0x2038d4){const _0x57e297=!_0xd528be;throw new Error(_0x57e297?_0x599e5b['jkkOM']('Active\x20profile\x20\x22'+_0x4ab5c2+_0x3e4b31(0x1ee),_0x3e4b31(0x1fa))+_0x599e5b['gbySG']+('\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20'+_0x4ab5c2+_0x3e4b31(0x1e9)):_0x3e4b31(0x200)+_0x4ab5c2+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4ab5c2);}const _0x129950=await loadSettings(_0x4ab5c2);_0x3e3df4=_0x599e5b['AupaA'](resolveEnvVars,_0x129950),_0x1ce187=Boolean(_0x3e3df4[_0x3e4b31(0x1ff)]),_0x321f22=_0x3e3df4[_0x3e4b31(0x1fd)];}const _0x44557a=_0x599e5b[_0x3e4b31(0x202)](resolveProfileUrl,{'flagBaseUrl':_0x35503d[_0x3e4b31(0x1fd)],'flagStartPath':_0x35503d[_0x3e4b31(0x1fe)],'envBaseUrl':_0x499733[_0x3e4b31(0x1e3)],'envStartPath':_0x499733['envStartPath'],'localSettingsBaseUrl':_0x321f22,'projectOverrides':_0x174be6,'cloudSettings':_0x5d1567,'authEnvironmentDomain':_0x435795}),_0xe1991a=_0x44557a[_0x3e4b31(0x1fc)]??_0x44557a[_0x3e4b31(0x1fd)];if(_0x599e5b['Gppzy'](!_0xe1991a,!_0x1ce187))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4ab5c2+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x4ab5c2+'\x20baseUrl\x20<url>');return{'activeProfile':_0x4ab5c2,'resolvedCloudProfile':_0x13d703,'cloudAuthPath':_0x4ed1bb,'resolvedSettings':_0x3e3df4,'isCdpMode':_0x1ce187,'url':_0xe1991a,'baseUrlSource':_0x44557a[_0x3e4b31(0x1f4)],'authEnvKey':_0x57a888,'startPath':_0x44557a[_0x3e4b31(0x1fe)]};}function expandString(_0x4efbd7){const _0xde52a1={'Bfedi':'string'};if(typeof _0x4efbd7!==_0xde52a1['Bfedi'])return _0x4efbd7;return resolveEnvVars(_0x4efbd7);}function expandOverrides(_0x4f4579){const _0x440e84=_0x5ac5,_0xc415eb={'vIfqA':'string','fnpbU':function(_0x5454fd,_0x428eb6){return _0x5454fd(_0x428eb6);},'UpCcx':function(_0x70e567,_0xfecff2){return _0x70e567===_0xfecff2;}};if(!_0x4f4579)return _0x4f4579;const _0x34fc55={..._0x4f4579};return typeof _0x34fc55['baseUrl']===_0xc415eb[_0x440e84(0x1f7)]&&(_0x34fc55[_0x440e84(0x1fd)]=_0xc415eb['fnpbU'](resolveEnvVars,_0x34fc55[_0x440e84(0x1fd)])),_0xc415eb[_0x440e84(0x1e6)](typeof _0x34fc55[_0x440e84(0x1fe)],_0xc415eb['vIfqA'])&&(_0x34fc55['startPath']=resolveEnvVars(_0x34fc55['startPath'])),_0x34fc55;}
@@ -1 +1 @@
1
- (function(_0x1940ba,_0x34efd2){const _0x42a678=_0x4184,_0x5147c2=_0x1940ba();while(!![]){try{const _0x3ceeda=parseInt(_0x42a678(0xad))/0x1+-parseInt(_0x42a678(0xb6))/0x2+-parseInt(_0x42a678(0xbf))/0x3*(-parseInt(_0x42a678(0xa5))/0x4)+parseInt(_0x42a678(0xb1))/0x5*(-parseInt(_0x42a678(0xb2))/0x6)+-parseInt(_0x42a678(0xa7))/0x7+parseInt(_0x42a678(0xb3))/0x8*(-parseInt(_0x42a678(0xb5))/0x9)+-parseInt(_0x42a678(0xc2))/0xa*(-parseInt(_0x42a678(0xaf))/0xb);if(_0x3ceeda===_0x34efd2)break;else _0x5147c2['push'](_0x5147c2['shift']());}catch(_0x33d51d){_0x5147c2['push'](_0x5147c2['shift']());}}}(_0x8454,0x3b8f1));function firstDefined(..._0x2eea1b){const _0x3c9cf5={'kBvPq':function(_0x41ea5a,_0x178fa8){return _0x41ea5a!==_0x178fa8;}};for(const _0x222a5c of _0x2eea1b){if(_0x222a5c!==undefined&&_0x3c9cf5['kBvPq'](_0x222a5c,null)&&_0x222a5c!=='')return _0x222a5c;}return undefined;}function _0x8454(){const _0x49b810=['tvLpp','1872220ngXgKl','envStartPath','gAspN','LXCkd','https://','test','482800oUtvSC','RANGER_BASE_URL','11590447ihgIDb','startPath','5QtjOeF','2743872GCPaPd','8EUweHy','cloudSettings','3022749ZopyVp','939614xatnxh','rKvzM','baseUrl','cloud\x20profile\x20settings','auth\x20environment\x20domain','flagBaseUrl','TUHkp','LcblX','projectOverrides','101964rZGFPG','ValqN','HWcqm','10oEjDyw','28yogsPJ'];_0x8454=function(){return _0x49b810;};return _0x8454();}function normalizeAuthEnvironmentDomain(_0x3a827e){const _0x8f09d3=_0x4184;if(!_0x3a827e)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x8f09d3(0xac)](_0x3a827e))return _0x3a827e;return _0x8f09d3(0xab)+_0x3a827e;}export function resolveBaseUrlWithSource(_0xd50105){const _0x5b95f0=_0x4184,_0x564166={'LcblX':function(_0x3c131d,_0x4f9531){return _0x3c131d===_0x4f9531;},'rKvzM':'--base-url','gAspN':_0x5b95f0(0xae),'ybKXP':'local\x20profile\x20settings','HWcqm':'projects.json\x20override','ValqN':_0x5b95f0(0xb9),'LXCkd':_0x5b95f0(0xba),'ZBdYs':function(_0x40c802,_0x1f6b17){return _0x40c802!==_0x1f6b17;}},_0x146e38=_0xd50105[_0x5b95f0(0xbe)],_0x4a26c7=!!_0x146e38&&_0x5b95f0(0xb8)in _0x146e38,_0x100a9e=_0x146e38?.['baseUrl'],_0x144e26=!(_0x4a26c7&&_0x564166[_0x5b95f0(0xbd)](_0x100a9e,null)),_0x55a911=[[_0xd50105[_0x5b95f0(0xbb)],_0x564166[_0x5b95f0(0xb7)]],[_0xd50105['envBaseUrl'],_0x564166[_0x5b95f0(0xa9)]],[_0xd50105['localSettingsBaseUrl'],_0x564166['ybKXP']],[typeof _0x100a9e==='string'?_0x100a9e:undefined,_0x564166[_0x5b95f0(0xc1)]],[_0x144e26?_0xd50105[_0x5b95f0(0xb4)]?.[_0x5b95f0(0xb8)]:undefined,_0x564166[_0x5b95f0(0xc0)]],[_0x144e26?normalizeAuthEnvironmentDomain(_0xd50105['authEnvironmentDomain']):undefined,_0x564166[_0x5b95f0(0xaa)]]];for(const [_0x431b18,_0x5bae1d]of _0x55a911){if(_0x431b18!==undefined&&_0x431b18!==null&&_0x564166['ZBdYs'](_0x431b18,''))return{'baseUrl':_0x431b18,'source':_0x5bae1d};}return{};}export function resolveBaseUrl(_0x4cd92e){const _0x146b98={'aVsAc':function(_0x6a9137,_0x8c4359){return _0x6a9137(_0x8c4359);}};return _0x146b98['aVsAc'](resolveBaseUrlWithSource,_0x4cd92e)['baseUrl'];}export function resolveStartPath(_0x1ef0ac){const _0x1fbe03=_0x4184,_0x84df39={'tvLpp':function(_0x387c11,_0x54c7f2){return _0x387c11 in _0x54c7f2;},'XudGP':function(_0x5122b9,_0x1c35d4){return _0x5122b9===_0x1c35d4;},'sWjGB':'string'},_0x398614=_0x1ef0ac['projectOverrides'],_0x4f7be8=!!_0x398614&&_0x84df39[_0x1fbe03(0xa6)](_0x1fbe03(0xb0),_0x398614),_0x42ae7f=_0x398614?.[_0x1fbe03(0xb0)],_0x2d05ca=!(_0x4f7be8&&_0x84df39['XudGP'](_0x42ae7f,null));return firstDefined(_0x1ef0ac['flagStartPath'],_0x1ef0ac[_0x1fbe03(0xa8)],typeof _0x42ae7f===_0x84df39['sWjGB']?_0x42ae7f:undefined,_0x2d05ca?_0x1ef0ac['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x4020b8,_0x167233){const _0x2f34d2={'QFYLY':function(_0x4a4ea7,_0x190725){return _0x4a4ea7+_0x190725;}};if(!_0x4020b8)return undefined;if(!_0x167233)return _0x4020b8;const _0x39d5f7=_0x4020b8['endsWith']('/')?_0x4020b8['slice'](0x0,-0x1):_0x4020b8,_0x34fb7d=_0x167233['startsWith']('/')?_0x167233:'/'+_0x167233;return _0x2f34d2['QFYLY'](_0x39d5f7,_0x34fb7d);}function _0x4184(_0x453b33,_0x2a5642){_0x453b33=_0x453b33-0xa5;const _0x84542e=_0x8454();let _0x4184dc=_0x84542e[_0x453b33];return _0x4184dc;}export function resolveProfileUrl(_0x40c4b3){const _0x12fffb=_0x4184,_0x1a0616={'TUHkp':function(_0x42f229,_0x52be70){return _0x42f229(_0x52be70);},'BpOqk':function(_0x2382de,_0x2b14d0,_0x3589bd){return _0x2382de(_0x2b14d0,_0x3589bd);}},{baseUrl:_0x403b9c,source:_0x37da8e}=_0x1a0616[_0x12fffb(0xbc)](resolveBaseUrlWithSource,_0x40c4b3),_0x2f2c0b=_0x1a0616[_0x12fffb(0xbc)](resolveStartPath,_0x40c4b3);return{'baseUrl':_0x403b9c,'baseUrlSource':_0x37da8e,'startPath':_0x2f2c0b,'url':_0x1a0616['BpOqk'](joinBaseAndPath,_0x403b9c,_0x2f2c0b)};}export function readUrlEnvVars(_0x15a97b=process['env']){return{'envBaseUrl':_0x15a97b['RANGER_BASE_URL'],'envStartPath':_0x15a97b['RANGER_START_PATH']};}
1
+ const _0x180e7e=_0x1a12;(function(_0x216b5b,_0x5539a5){const _0x100e77=_0x1a12,_0x570d4f=_0x216b5b();while(!![]){try{const _0x56e3e5=parseInt(_0x100e77(0x1a8))/0x1+-parseInt(_0x100e77(0x1b8))/0x2+parseInt(_0x100e77(0x1ae))/0x3+-parseInt(_0x100e77(0x1a9))/0x4*(-parseInt(_0x100e77(0x1b9))/0x5)+-parseInt(_0x100e77(0x1c3))/0x6*(-parseInt(_0x100e77(0x1c2))/0x7)+-parseInt(_0x100e77(0x1b4))/0x8+-parseInt(_0x100e77(0x1a6))/0x9*(parseInt(_0x100e77(0x1c7))/0xa);if(_0x56e3e5===_0x5539a5)break;else _0x570d4f['push'](_0x570d4f['shift']());}catch(_0x576c4){_0x570d4f['push'](_0x570d4f['shift']());}}}(_0x453a,0x7afc4));function firstDefined(..._0x1192dc){const _0x5397c5=_0x1a12,_0x1ff83f={'dlxVM':function(_0x15931e,_0x56d4b5){return _0x15931e!==_0x56d4b5;}};for(const _0x246449 of _0x1192dc){if(_0x1ff83f[_0x5397c5(0x1ad)](_0x246449,undefined)&&_0x1ff83f['dlxVM'](_0x246449,null)&&_0x1ff83f['dlxVM'](_0x246449,''))return _0x246449;}return undefined;}function normalizeAuthEnvironmentDomain(_0x337e8b){const _0x1400f4=_0x1a12;if(!_0x337e8b)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x1400f4(0x1bc)](_0x337e8b))return _0x337e8b;return'https://'+_0x337e8b;}export function resolveBaseUrlWithSource(_0x50ddf5){const _0x4676c7=_0x1a12,_0x21d248={'RNBpp':function(_0x36ab63,_0x23b7da){return _0x36ab63 in _0x23b7da;},'alTnF':_0x4676c7(0x1be),'yfXIz':function(_0x1958f6,_0x1a7519){return _0x1958f6===_0x1a7519;},'wDesy':_0x4676c7(0x1b3),'pKYOk':'RANGER_BASE_URL','dueOa':'string','Kfmnm':_0x4676c7(0x1a7),'OKZzH':_0x4676c7(0x1bb),'yIkDw':function(_0x48af92,_0x53c452){return _0x48af92!==_0x53c452;}},_0x1ad151=_0x50ddf5[_0x4676c7(0x1ac)],_0x5944af=!!_0x1ad151&&_0x21d248[_0x4676c7(0x1c8)](_0x21d248[_0x4676c7(0x1c9)],_0x1ad151),_0x2d12fa=_0x1ad151?.[_0x4676c7(0x1be)],_0x5b2e36=!(_0x5944af&&_0x21d248[_0x4676c7(0x1af)](_0x2d12fa,null)),_0x3cd3e3=[[_0x50ddf5['flagBaseUrl'],_0x21d248[_0x4676c7(0x1b1)]],[_0x50ddf5['envBaseUrl'],_0x21d248[_0x4676c7(0x1ca)]],[_0x50ddf5[_0x4676c7(0x1c6)],'local\x20profile\x20settings'],[typeof _0x2d12fa===_0x21d248['dueOa']?_0x2d12fa:undefined,_0x4676c7(0x1aa)],[_0x5b2e36?_0x50ddf5['cloudSettings']?.[_0x4676c7(0x1be)]:undefined,_0x21d248[_0x4676c7(0x1b6)]],[_0x5b2e36?normalizeAuthEnvironmentDomain(_0x50ddf5['authEnvironmentDomain']):undefined,_0x21d248['OKZzH']]];for(const [_0x48d66d,_0x64d1d0]of _0x3cd3e3){if(_0x21d248['yIkDw'](_0x48d66d,undefined)&&_0x48d66d!==null&&_0x48d66d!=='')return{'baseUrl':_0x48d66d,'source':_0x64d1d0};}return{};}export function resolveBaseUrl(_0x1cf528){return resolveBaseUrlWithSource(_0x1cf528)['baseUrl'];}export function resolveStartPath(_0x1a29b2){const _0x5d0877=_0x1a12,_0x1a22ab={'SroaE':_0x5d0877(0x1c1),'OatVz':function(_0xd71cec,_0x1039bd){return _0xd71cec===_0x1039bd;},'gLjHS':function(_0x257cc2,_0x45ca6d,_0x1dbfd7,_0xe701d4,_0x322456){return _0x257cc2(_0x45ca6d,_0x1dbfd7,_0xe701d4,_0x322456);},'SUkJe':_0x5d0877(0x1c4)},_0x55ee15=_0x1a29b2[_0x5d0877(0x1ac)],_0x1026b0=!!_0x55ee15&&_0x1a22ab[_0x5d0877(0x1bf)]in _0x55ee15,_0x5e3402=_0x55ee15?.['startPath'],_0x2f867b=!(_0x1026b0&&_0x1a22ab[_0x5d0877(0x1b7)](_0x5e3402,null));return _0x1a22ab[_0x5d0877(0x1b0)](firstDefined,_0x1a29b2[_0x5d0877(0x1ab)],_0x1a29b2['envStartPath'],typeof _0x5e3402===_0x1a22ab[_0x5d0877(0x1bd)]?_0x5e3402:undefined,_0x2f867b?_0x1a29b2['cloudSettings']?.[_0x5d0877(0x1c1)]:undefined);}export function joinBaseAndPath(_0x41e8ac,_0x258fe5){const _0x1ce18a=_0x1a12,_0x241964={'gJfce':function(_0xa676a1,_0xfd2cef){return _0xa676a1+_0xfd2cef;}};if(!_0x41e8ac)return undefined;if(!_0x258fe5)return _0x41e8ac;const _0xe2347c=_0x41e8ac['endsWith']('/')?_0x41e8ac['slice'](0x0,-0x1):_0x41e8ac,_0x192c2b=_0x258fe5['startsWith']('/')?_0x258fe5:'/'+_0x258fe5;return _0x241964[_0x1ce18a(0x1c0)](_0xe2347c,_0x192c2b);}function _0x453a(){const _0x251b49=['337976DqwXdu','5ydrvXb','env','auth\x20environment\x20domain','test','SUkJe','baseUrl','SroaE','gJfce','startPath','7oGeKfb','2217534PTecLM','string','RANGER_START_PATH','localSettingsBaseUrl','260giuAlh','RNBpp','alTnF','pKYOk','492363ggftAT','cloud\x20profile\x20settings','463958ygsnUn','3170668IZyqjP','projects.json\x20override','flagStartPath','projectOverrides','dlxVM','2996331SucsKo','yfXIz','gLjHS','wDesy','RANGER_BASE_URL','--base-url','4238984GWQeJx','sNKfN','Kfmnm','OatVz'];_0x453a=function(){return _0x251b49;};return _0x453a();}export function resolveProfileUrl(_0x431464){const _0x4eb7f7=_0x1a12,_0x15e7b7={'sNKfN':function(_0x9ece71,_0x4c0ea6,_0x117d4b){return _0x9ece71(_0x4c0ea6,_0x117d4b);}},{baseUrl:_0x5a8576,source:_0x133bb1}=resolveBaseUrlWithSource(_0x431464),_0x28bd30=resolveStartPath(_0x431464);return{'baseUrl':_0x5a8576,'baseUrlSource':_0x133bb1,'startPath':_0x28bd30,'url':_0x15e7b7[_0x4eb7f7(0x1b5)](joinBaseAndPath,_0x5a8576,_0x28bd30)};}function _0x1a12(_0xd99a59,_0x4ae1c8){_0xd99a59=_0xd99a59-0x1a6;const _0x453a84=_0x453a();let _0x1a12b4=_0x453a84[_0xd99a59];return _0x1a12b4;}export function readUrlEnvVars(_0x29d18f=process[_0x180e7e(0x1ba)]){const _0x13ad88=_0x180e7e;return{'envBaseUrl':_0x29d18f[_0x13ad88(0x1b2)],'envStartPath':_0x29d18f[_0x13ad88(0x1c5)]};}
@@ -1 +1 @@
1
- (function(_0x1f376f,_0x32d90f){const _0x1c3145=_0x374e,_0x1a32d6=_0x1f376f();while(!![]){try{const _0x39446f=parseInt(_0x1c3145(0x191))/0x1*(-parseInt(_0x1c3145(0x194))/0x2)+-parseInt(_0x1c3145(0x187))/0x3+-parseInt(_0x1c3145(0x18d))/0x4*(-parseInt(_0x1c3145(0x190))/0x5)+-parseInt(_0x1c3145(0x18e))/0x6*(parseInt(_0x1c3145(0x18b))/0x7)+parseInt(_0x1c3145(0x192))/0x8*(-parseInt(_0x1c3145(0x185))/0x9)+-parseInt(_0x1c3145(0x18a))/0xa*(-parseInt(_0x1c3145(0x18c))/0xb)+parseInt(_0x1c3145(0x189))/0xc;if(_0x39446f===_0x32d90f)break;else _0x1a32d6['push'](_0x1a32d6['shift']());}catch(_0x2090bb){_0x1a32d6['push'](_0x1a32d6['shift']());}}}(_0x2a58,0xca663));function _0x2a58(){const _0x322553=['1466754hKOMCt','NEGDP','4345WEwtFk','182wtfHBV','2638656ymjNrT','iIoEk','16742seztEW','ms...','27UafExR','baseDelayMs','1188327QLspco','error','15700944sjJLRG','340SnUptk','7feQMAI','332409nEulcH','7580tpNWaz'];_0x2a58=function(){return _0x322553;};return _0x2a58();}function _0x374e(_0x52b1cd,_0x9dbf3c){_0x52b1cd=_0x52b1cd-0x185;const _0x2a583a=_0x2a58();let _0x374ed8=_0x2a583a[_0x52b1cd];return _0x374ed8;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4c93cd,_0x2dbe00){const _0x5768df=_0x374e,_0x1eabf5={'NEGDP':function(_0x2f9d81,_0x86789b){return _0x2f9d81 instanceof _0x86789b;},'VmEKC':function(_0x5ce612,_0x5d26a1){return _0x5ce612(_0x5d26a1);},'xoLsL':function(_0x375704,_0x194e0f){return _0x375704*_0x194e0f;},'iIoEk':function(_0x5877d6,_0x581245){return _0x5877d6+_0x581245;}},_0x2341cd=_0x2dbe00?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x57c8e5=_0x2dbe00?.[_0x5768df(0x186)]??DEFAULT_BASE_DELAY_MS;let _0xb0e16c;for(let _0x44830c=0x0;_0x44830c<=_0x2341cd;_0x44830c++){try{return await _0x4c93cd();}catch(_0x14ff13){_0xb0e16c=_0x1eabf5[_0x5768df(0x18f)](_0x14ff13,Error)?_0x14ff13:new Error(_0x1eabf5['VmEKC'](String,_0x14ff13));if(_0x44830c<_0x2341cd){const _0x242e7=_0x1eabf5['xoLsL'](_0x57c8e5,Math['pow'](0x2,_0x44830c));_0x2dbe00?.['label']&&console[_0x5768df(0x188)](_0x2dbe00['label']+'\x20failed\x20(attempt\x20'+_0x1eabf5[_0x5768df(0x193)](_0x44830c,0x1)+'/'+(_0x2341cd+0x1)+'),\x20retrying\x20in\x20'+_0x242e7+_0x5768df(0x195)),await new Promise(_0x41c6f5=>setTimeout(_0x41c6f5,_0x242e7));}}}throw _0xb0e16c;}
1
+ function _0x56b6(){const _0x471873=['baseDelayMs','pow','1127656wtcdmD','2174816ECkYIZ','5031159lRgvfn','label','1498955qPJvDv','error','wboul','898469kPYuID','6TBvqvo','oestT','20UQwRCQ','frfcM','4965579MfciHQ','5283762ZXdWWo'];_0x56b6=function(){return _0x471873;};return _0x56b6();}(function(_0x563db2,_0x33bcac){const _0x1e3478=_0x1c98,_0x5a92d8=_0x563db2();while(!![]){try{const _0x387dd9=-parseInt(_0x1e3478(0x100))/0x1+-parseInt(_0x1e3478(0xf9))/0x2*(parseInt(_0x1e3478(0x101))/0x3)+-parseInt(_0x1e3478(0x103))/0x4*(-parseInt(_0x1e3478(0xfd))/0x5)+parseInt(_0x1e3478(0xf6))/0x6+parseInt(_0x1e3478(0xfb))/0x7+parseInt(_0x1e3478(0xfa))/0x8+-parseInt(_0x1e3478(0xf5))/0x9;if(_0x387dd9===_0x33bcac)break;else _0x5a92d8['push'](_0x5a92d8['shift']());}catch(_0x120656){_0x5a92d8['push'](_0x5a92d8['shift']());}}}(_0x56b6,0xc16fb));function _0x1c98(_0x2ee285,_0x209ba4){_0x2ee285=_0x2ee285-0xf4;const _0x56b600=_0x56b6();let _0x1c988b=_0x56b600[_0x2ee285];return _0x1c988b;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x165535,_0x11925b){const _0xde7028=_0x1c98,_0xd3fddd={'aLtpF':function(_0x13169e){return _0x13169e();},'wboul':function(_0x190b58,_0x21def3){return _0x190b58(_0x21def3);},'xcelC':function(_0x41a338,_0x4020a8){return _0x41a338<_0x4020a8;},'oestT':function(_0x5903fc,_0x3d2bb7){return _0x5903fc*_0x3d2bb7;},'frfcM':function(_0x43a424,_0x1781b1){return _0x43a424+_0x1781b1;}},_0x492fee=_0x11925b?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x15cda1=_0x11925b?.[_0xde7028(0xf7)]??DEFAULT_BASE_DELAY_MS;let _0x3d75c0;for(let _0x14133a=0x0;_0x14133a<=_0x492fee;_0x14133a++){try{return await _0xd3fddd['aLtpF'](_0x165535);}catch(_0x210f33){_0x3d75c0=_0x210f33 instanceof Error?_0x210f33:new Error(_0xd3fddd[_0xde7028(0xff)](String,_0x210f33));if(_0xd3fddd['xcelC'](_0x14133a,_0x492fee)){const _0x3cc9f6=_0xd3fddd[_0xde7028(0x102)](_0x15cda1,Math[_0xde7028(0xf8)](0x2,_0x14133a));_0x11925b?.[_0xde7028(0xfc)]&&console[_0xde7028(0xfe)](_0x11925b['label']+'\x20failed\x20(attempt\x20'+_0xd3fddd[_0xde7028(0xf4)](_0x14133a,0x1)+'/'+(_0x492fee+0x1)+'),\x20retrying\x20in\x20'+_0x3cc9f6+'ms...'),await new Promise(_0xfefd6=>setTimeout(_0xfefd6,_0x3cc9f6));}}}throw _0x3d75c0;}
@@ -1 +1 @@
1
- (function(_0xd54e19,_0x2e74fb){const _0x38a23c=_0x4aa4,_0x5e7fa2=_0xd54e19();while(!![]){try{const _0x19654b=-parseInt(_0x38a23c(0x13c))/0x1*(-parseInt(_0x38a23c(0x135))/0x2)+parseInt(_0x38a23c(0x13d))/0x3+-parseInt(_0x38a23c(0x143))/0x4*(parseInt(_0x38a23c(0x13e))/0x5)+-parseInt(_0x38a23c(0x139))/0x6*(parseInt(_0x38a23c(0x141))/0x7)+-parseInt(_0x38a23c(0x13b))/0x8*(parseInt(_0x38a23c(0x13f))/0x9)+-parseInt(_0x38a23c(0x136))/0xa+parseInt(_0x38a23c(0x13a))/0xb*(parseInt(_0x38a23c(0x137))/0xc);if(_0x19654b===_0x2e74fb)break;else _0x5e7fa2['push'](_0x5e7fa2['shift']());}catch(_0x2f99b9){_0x5e7fa2['push'](_0x5e7fa2['shift']());}}}(_0x1e95,0x817d1));function _0x1e95(){const _0x25f7d2=['22uYNZGV','88Qkbmdj','14fFIjsg','962331BPzaQz','10jYEEET','839277Lfckrg','add','1463gyEBWh','replace','1775824cNVkda','144242DCuurN','5818800Lnceym','14553156vpPZBM','origin','20958rfONBT'];_0x1e95=function(){return _0x25f7d2;};return _0x1e95();}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x7cf762){const _0x17c3f8=_0x4aa4,_0x3489f8=new Set();for(const _0x10e274 of _0x7cf762['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x33571b=_0x10e274[0x0][_0x17c3f8(0x142)](/[.,;:!?]+$/,'');try{_0x3489f8[_0x17c3f8(0x140)](new URL(_0x33571b)[_0x17c3f8(0x138)]);}catch{}}return[..._0x3489f8];}function _0x4aa4(_0x574294,_0x3036d7){_0x574294=_0x574294-0x135;const _0x1e958e=_0x1e95();let _0x4aa4cc=_0x1e958e[_0x574294];return _0x4aa4cc;}export function findScenarioOriginMismatches(_0x3ca434,_0x2fbee6){let _0x4dbfb9;try{_0x4dbfb9=new URL(_0x2fbee6)['origin'];}catch{return[];}return extractUrlOrigins(_0x3ca434)['filter'](_0x4dda57=>_0x4dda57!==_0x4dbfb9);}
1
+ (function(_0xc42fe6,_0x34bc96){const _0x49cebe=_0x582c,_0x201b73=_0xc42fe6();while(!![]){try{const _0x5bc299=parseInt(_0x49cebe(0x104))/0x1+parseInt(_0x49cebe(0x10b))/0x2+-parseInt(_0x49cebe(0x106))/0x3+parseInt(_0x49cebe(0x105))/0x4*(-parseInt(_0x49cebe(0x10c))/0x5)+-parseInt(_0x49cebe(0x107))/0x6+-parseInt(_0x49cebe(0x108))/0x7+-parseInt(_0x49cebe(0x10a))/0x8*(-parseInt(_0x49cebe(0x109))/0x9);if(_0x5bc299===_0x34bc96)break;else _0x201b73['push'](_0x201b73['shift']());}catch(_0x16789c){_0x201b73['push'](_0x201b73['shift']());}}}(_0x4422,0x6b778));function _0x4422(){const _0x47aca2=['1196328XEIbAD','10omVKEU','485338KSiIaJ','1407668ZAcMQm','925035eFgAQJ','1829340ckfVAk','5094845ZnQxFA','9DJPpJh','11212688vaHRhJ'];_0x4422=function(){return _0x47aca2;};return _0x4422();}function _0x582c(_0x2e1d20,_0x3bf001){_0x2e1d20=_0x2e1d20-0x104;const _0x442274=_0x4422();let _0x582c1c=_0x442274[_0x2e1d20];return _0x582c1c;}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x23a07c){const _0x2fe188=new Set();for(const _0x40c7ce of _0x23a07c['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x5336a4=_0x40c7ce[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x2fe188['add'](new URL(_0x5336a4)['origin']);}catch{}}return[..._0x2fe188];}export function findScenarioOriginMismatches(_0x281ad1,_0x3f361c){const _0x589aca={'aiMAF':function(_0x42b1ab,_0x162fbf){return _0x42b1ab(_0x162fbf);}};let _0x3a7ee8;try{_0x3a7ee8=new URL(_0x3f361c)['origin'];}catch{return[];}return _0x589aca['aiMAF'](extractUrlOrigins,_0x281ad1)['filter'](_0x2542e1=>_0x2542e1!==_0x3a7ee8);}
@@ -1 +1 @@
1
- const _0x416a63=_0x428d;(function(_0x8b65b5,_0x291e23){const _0x54f895=_0x428d,_0x2d38f1=_0x8b65b5();while(!![]){try{const _0x5974e9=parseInt(_0x54f895(0x1ab))/0x1+parseInt(_0x54f895(0x19f))/0x2*(parseInt(_0x54f895(0x19a))/0x3)+parseInt(_0x54f895(0x1b6))/0x4+parseInt(_0x54f895(0x1a3))/0x5+parseInt(_0x54f895(0x1b0))/0x6+-parseInt(_0x54f895(0x1bd))/0x7*(parseInt(_0x54f895(0x1b3))/0x8)+-parseInt(_0x54f895(0x1a5))/0x9*(parseInt(_0x54f895(0x199))/0xa);if(_0x5974e9===_0x291e23)break;else _0x2d38f1['push'](_0x2d38f1['shift']());}catch(_0x4554f7){_0x2d38f1['push'](_0x2d38f1['shift']());}}}(_0x4381,0x916ca));import*as _0x471047 from'fs';import*as _0x3e5426 from'path';import*as _0x17c08f from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3e5426[_0x416a63(0x1bf)](_0x17c08f['homedir'](),_0x416a63(0x1c7),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1c5786=_0x416a63,_0x22125e={'HZtJS':_0x1c5786(0x1c6)};try{if(_0x471047['existsSync'](CACHE_FILE)){const _0x512de1=JSON['parse'](_0x471047[_0x1c5786(0x1a2)](CACHE_FILE,_0x22125e['HZtJS']));return{'version':0x3,'sessions':_0x512de1['sessions']||{},'branches':_0x512de1['branches']||{},'lastEnabledSessionClearedAt':_0x512de1[_0x1c5786(0x1b1)]};}}catch{}return createEmptyCache();}function saveCache(_0x241349){const _0x3ff48c=_0x416a63;try{const _0x3da2b5=_0x3e5426['dirname'](CACHE_FILE);!_0x471047[_0x3ff48c(0x1c4)](_0x3da2b5)&&_0x471047[_0x3ff48c(0x1c0)](_0x3da2b5,{'recursive':!![]}),_0x471047['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x241349,null,0x2));}catch{}}export function getCurrentBranch(){const _0x34fb63=_0x416a63,_0x3d4030={'AsCKG':function(_0xaf8105,_0x460b45,_0x411f7a){return _0xaf8105(_0x460b45,_0x411f7a);},'EgwEG':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ULjDU':function(_0x15abc4,_0x26f842){return _0x15abc4===_0x26f842;},'NJYsK':'HEAD'};try{const _0x58cd24=_0x3d4030['AsCKG'](execSync,_0x3d4030['EgwEG'],{'encoding':_0x34fb63(0x1c6),'stdio':[_0x34fb63(0x1aa),_0x34fb63(0x1aa),_0x34fb63(0x1aa)]})[_0x34fb63(0x198)]();if(!_0x58cd24||_0x3d4030['ULjDU'](_0x58cd24,_0x3d4030['NJYsK']))return null;return _0x58cd24;}catch{return null;}}export function enableBranch(_0xce49a9){const _0x1dfb0f=_0x416a63,_0xb2c309=loadCache();_0xb2c309[_0x1dfb0f(0x195)][_0xce49a9]=!![],saveCache(_0xb2c309);}export function disableBranch(_0x4d4a40){const _0x29b761=_0x416a63,_0x5e6fe4={'cMXsB':function(_0x1f20c0){return _0x1f20c0();}},_0x3697e1=_0x5e6fe4[_0x29b761(0x1c8)](loadCache);delete _0x3697e1['branches'][_0x4d4a40],saveCache(_0x3697e1);}export function isBranchEnabled(_0xa0302c){const _0x45bce1=_0x416a63,_0x58bcb2={'BgaUD':function(_0x3318c7){return _0x3318c7();},'HSsjw':function(_0x3d46fd,_0x4e8b73){return _0x3d46fd===_0x4e8b73;}},_0x49e1a6=_0x58bcb2['BgaUD'](loadCache);return _0x58bcb2[_0x45bce1(0x1af)](_0x49e1a6[_0x45bce1(0x195)][_0xa0302c],!![]);}function getOrCreateSession(_0x31a914,_0x530ab8){const _0x3ea713=_0x416a63;return!_0x31a914['sessions'][_0x530ab8]&&(_0x31a914[_0x3ea713(0x1a7)][_0x530ab8]={}),_0x31a914[_0x3ea713(0x1a7)][_0x530ab8];}export function enableSession(_0x21db67){const _0x38614f=_0x416a63,_0x6382d2={'SQsqY':function(_0x3e8f9f){return _0x3e8f9f();},'cuQqW':function(_0x3ccf92,_0x1fcaff){return _0x3ccf92!==_0x1fcaff;},'nMPfb':function(_0xf70f14,_0x244013){return _0xf70f14(_0x244013);}},_0x1e2431=loadCache(),_0x3f59cc=getOrCreateSession(_0x1e2431,_0x21db67);_0x3f59cc['enabled']=!![];const _0x15e0d0=_0x6382d2['SQsqY'](getCurrentBranch);_0x15e0d0&&_0x15e0d0!==_0x38614f(0x1b8)&&_0x6382d2['cuQqW'](_0x15e0d0,_0x38614f(0x19d))&&(_0x1e2431['branches'][_0x15e0d0]=!![],_0x3f59cc['currentBranch']=_0x15e0d0),_0x6382d2[_0x38614f(0x19c)](saveCache,_0x1e2431);}export function isSessionEnabled(_0x569062){const _0xec8a48=_0x416a63,_0x141abb={'EelKj':function(_0x4db895){return _0x4db895();},'twHlF':function(_0x1ca730,_0x17a0aa){return _0x1ca730===_0x17a0aa;},'fOOJe':'master','gEpkq':function(_0x333771,_0x3530c4){return _0x333771===_0x3530c4;},'jWwsz':function(_0x47408d,_0x3b7909){return _0x47408d||_0x3b7909;}},_0x168485=loadCache(),_0x2c0cd6=_0x141abb[_0xec8a48(0x1cc)](getCurrentBranch);if(!_0x2c0cd6||_0x2c0cd6===_0xec8a48(0x1b8)||_0x141abb[_0xec8a48(0x1cb)](_0x2c0cd6,_0x141abb[_0xec8a48(0x1c1)]))return _0x141abb[_0xec8a48(0x1cb)](_0x168485[_0xec8a48(0x1a7)][_0x569062]?.['enabled'],!![]);const _0xd893f7=_0x141abb['gEpkq'](_0x168485[_0xec8a48(0x195)][_0x2c0cd6],!![]),_0x19ce50=_0x168485['sessions'][_0x569062]?.['enabled']===!![];return _0x141abb['jWwsz'](_0xd893f7,_0x19ce50);}export function disableSession(_0x5cd658){const _0x469386=_0x416a63,_0x3c6213={'SKWcU':function(_0x488cac,_0x22c5c0,_0x5e370b){return _0x488cac(_0x22c5c0,_0x5e370b);}},_0x4211a0=loadCache(),_0x49058e=_0x3c6213['SKWcU'](getOrCreateSession,_0x4211a0,_0x5cd658);_0x49058e[_0x469386(0x1c3)]=![],saveCache(_0x4211a0);}export function updateBranchTracking(_0xa53ccb){const _0x519363=_0x416a63,_0xba416c={'ZGuQi':function(_0x6569c8){return _0x6569c8();},'DryGn':_0x519363(0x1b8),'HViAG':function(_0x3aeeaf,_0x5eed96){return _0x3aeeaf!==_0x5eed96;}},_0x55dd65=_0xba416c[_0x519363(0x1c9)](loadCache),_0x13478f=_0x55dd65['sessions'][_0xa53ccb];if(!_0x13478f?.[_0x519363(0x1c3)])return;const _0x3f57f5=getCurrentBranch();if(!_0x3f57f5||_0x3f57f5===_0xba416c[_0x519363(0x1ad)]||_0x3f57f5==='master')return;_0xba416c[_0x519363(0x1bc)](_0x13478f[_0x519363(0x1a6)],_0x3f57f5)&&(_0x55dd65[_0x519363(0x195)][_0x3f57f5]=!![],_0x13478f[_0x519363(0x1a6)]=_0x3f57f5,saveCache(_0x55dd65));}export function initBranchTracking(_0x4c4f1f){const _0x28d19a=_0x416a63,_0x3e5b57={'WzdQG':function(_0xb44572){return _0xb44572();},'syFNw':function(_0x51d27c,_0x2ffdfd){return _0x51d27c===_0x2ffdfd;},'ZbknS':'main','uqEPp':function(_0x3fc6b1,_0x4c50e2){return _0x3fc6b1===_0x4c50e2;},'wQdnh':'master','rAJON':function(_0x3756c0,_0x25d448){return _0x3756c0(_0x25d448);}},_0x29e54b=_0x3e5b57[_0x28d19a(0x194)](loadCache),_0x1d679b=getCurrentBranch();if(!_0x1d679b||_0x3e5b57['syFNw'](_0x1d679b,_0x3e5b57[_0x28d19a(0x1b7)])||_0x3e5b57['uqEPp'](_0x1d679b,_0x3e5b57['wQdnh']))return;if(_0x29e54b[_0x28d19a(0x195)][_0x1d679b]===!![]){const _0x2edbe7=getOrCreateSession(_0x29e54b,_0x4c4f1f);_0x2edbe7[_0x28d19a(0x1c3)]=!![],_0x2edbe7[_0x28d19a(0x1a6)]=_0x1d679b,_0x3e5b57[_0x28d19a(0x1a9)](saveCache,_0x29e54b);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1d985d){const _0x435107=_0x416a63,_0x5f18af={'THCWb':function(_0x5df719){return _0x5df719();},'kZFlb':function(_0x399ef4,_0x4ee31d){return _0x399ef4(_0x4ee31d);}},_0x59534d=_0x5f18af['THCWb'](loadCache),_0x29929c=_0x59534d[_0x435107(0x1a7)][_0x1d985d];_0x29929c?.['enabled']&&(_0x59534d[_0x435107(0x1b1)]=Date['now'](),_0x5f18af[_0x435107(0x1c2)](saveCache,_0x59534d));}export function shouldAutoEnableAfterClear(_0x489587){const _0x5a6894=_0x416a63,_0x5039de={'zSvJL':function(_0x30618d,_0x3cbbad){return _0x30618d!==_0x3cbbad;},'stRtt':function(_0x15fc28){return _0x15fc28();}};if(_0x5039de[_0x5a6894(0x1a8)](_0x489587,'clear'))return![];const _0x14676a=_0x5039de[_0x5a6894(0x196)](loadCache),_0x3540d4=_0x14676a[_0x5a6894(0x1b1)];if(!_0x3540d4)return![];const _0x4e505c=Date['now']()-_0x3540d4;return _0x4e505c<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x289d8c){const _0x82300a=_0x416a63,_0x6d60e8={'vKrKz':function(_0x45aff6,_0x3a1286,_0x384e78){return _0x45aff6(_0x3a1286,_0x384e78);},'DFEJh':_0x82300a(0x1b8),'amfLG':function(_0x333b2f,_0x3a5282){return _0x333b2f!==_0x3a5282;},'YmpRv':function(_0x2f62a6,_0x585502){return _0x2f62a6(_0x585502);}},_0x45187a=loadCache(),_0x329f75=_0x6d60e8[_0x82300a(0x197)](getOrCreateSession,_0x45187a,_0x289d8c);_0x329f75['enabled']=!![];const _0x4c9cfe=getCurrentBranch();_0x4c9cfe&&_0x4c9cfe!==_0x6d60e8[_0x82300a(0x1b2)]&&_0x6d60e8[_0x82300a(0x1c5)](_0x4c9cfe,'master')&&(_0x329f75[_0x82300a(0x1a6)]=_0x4c9cfe),delete _0x45187a[_0x82300a(0x1b1)],_0x6d60e8['YmpRv'](saveCache,_0x45187a);}export function registerSession(_0xd2567,_0xf0ef86){const _0x540095=_0x416a63,_0x29deaf={'SLnNN':function(_0x241013){return _0x241013();}},_0x419b55=_0x29deaf[_0x540095(0x1b9)](loadCache),_0x4c1939=getOrCreateSession(_0x419b55,_0xd2567);_0x4c1939['featureId']=_0xf0ef86,_0x4c1939['registeredAt']=new Date()[_0x540095(0x19b)](),saveCache(_0x419b55);}export function getSessionEntry(_0x11f7ce){const _0x31b8a3=_0x416a63,_0x3a13a5=loadCache(),_0xd15dae=_0x3a13a5[_0x31b8a3(0x1a7)][_0x11f7ce];if(_0xd15dae?.[_0x31b8a3(0x1ae)]&&_0xd15dae?.[_0x31b8a3(0x1ba)])return{'featureId':_0xd15dae['featureId'],'registeredAt':_0xd15dae['registeredAt']};return null;}export function unregisterSession(_0x5e1b16){const _0x1d18f3=_0x416a63,_0xc4619f={'dlhUo':function(_0x24f495){return _0x24f495();}},_0xa1deea=_0xc4619f[_0x1d18f3(0x1be)](loadCache),_0x42c7c7=_0xa1deea['sessions'][_0x5e1b16];_0x42c7c7&&(delete _0x42c7c7[_0x1d18f3(0x1ae)],delete _0x42c7c7[_0x1d18f3(0x1ba)],saveCache(_0xa1deea));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x4381(){const _0x33451a=['2252684rsVmlk','dlhUo','join','mkdirSync','fOOJe','kZFlb','enabled','existsSync','amfLG','utf-8','.claude','cMXsB','ZGuQi','prompted','twHlF','EelKj','WzdQG','branches','stRtt','vKrKz','trim','100670VaowmO','27LIYUSN','toISOString','nMPfb','master','NfiBn','248494mBTnUp','CRxhU','now','readFileSync','768345MnYixP','NcSnS','639dVmeVL','currentBranch','sessions','zSvJL','rAJON','pipe','382857jEWXyD','iELwn','DryGn','featureId','HSsjw','1513194GzNGBr','lastEnabledSessionClearedAt','DFEJh','24oxMYhG','kbShp','lastStopReminderAt','1475612CIfMZu','ZbknS','main','SLnNN','registeredAt','lastPlanReminderAt','HViAG'];_0x4381=function(){return _0x33451a;};return _0x4381();}export function shouldShowPlanReminder(_0x29c366){const _0x231ea7=_0x416a63,_0x2cb044={'fRjyE':function(_0xd20e6a){return _0xd20e6a();},'cToUG':function(_0x1134e4,_0x335460){return _0x1134e4>=_0x335460;},'NfiBn':function(_0x42725b,_0x816471){return _0x42725b-_0x816471;},'kbShp':function(_0x1305e6,_0x5636e1){return _0x1305e6(_0x5636e1);}},_0x46790f=_0x2cb044['fRjyE'](loadCache),_0xc85a21=getOrCreateSession(_0x46790f,_0x29c366),_0x2c2d47=_0xc85a21['lastPlanReminderAt']||0x0,_0x394894=Date['now']();if(_0x2cb044['cToUG'](_0x2cb044[_0x231ea7(0x19e)](_0x394894,_0x2c2d47),PLAN_REMINDER_INTERVAL_MS))return _0xc85a21[_0x231ea7(0x1bb)]=_0x394894,_0x2cb044[_0x231ea7(0x1b4)](saveCache,_0x46790f),!![];return![];}export function shouldShowStopReminder(_0x416fe2){const _0x29c76b=_0x416a63,_0x13dc03={'iELwn':function(_0x37b364){return _0x37b364();},'uqohz':function(_0x4b338f,_0x5253c1,_0xed2fa6){return _0x4b338f(_0x5253c1,_0xed2fa6);},'twYve':function(_0xf6a436,_0x1d0dc3){return _0xf6a436>=_0x1d0dc3;},'jstqj':function(_0x45e494,_0x498064){return _0x45e494(_0x498064);}},_0x19c3ab=_0x13dc03[_0x29c76b(0x1ac)](loadCache),_0xdd7356=_0x13dc03['uqohz'](getOrCreateSession,_0x19c3ab,_0x416fe2),_0x412d0b=_0xdd7356[_0x29c76b(0x1b5)]||0x0,_0x484a35=Date[_0x29c76b(0x1a1)]();if(_0x13dc03['twYve'](_0x484a35-_0x412d0b,STOP_REMINDER_INTERVAL_MS))return _0xdd7356['lastStopReminderAt']=_0x484a35,_0x13dc03['jstqj'](saveCache,_0x19c3ab),!![];return![];}function _0x428d(_0x27d582,_0x1d9a4f){_0x27d582=_0x27d582-0x194;const _0x438100=_0x4381();let _0x428d37=_0x438100[_0x27d582];return _0x428d37;}export function hasSessionBeenPrompted(_0x236bde){const _0x82e8d=_0x416a63,_0x5e239c={'NcSnS':function(_0x27b82e,_0xea6277){return _0x27b82e===_0xea6277;}},_0x21f12e=loadCache();return _0x5e239c[_0x82e8d(0x1a4)](_0x21f12e['sessions'][_0x236bde]?.[_0x82e8d(0x1ca)],!![]);}export function markSessionPrompted(_0x37bf5a){const _0x2bf73e=_0x416a63,_0x566361={'EgcVp':function(_0x194970){return _0x194970();},'CRxhU':function(_0x5f4840,_0x37b577){return _0x5f4840(_0x37b577);}},_0x17698b=_0x566361['EgcVp'](loadCache),_0x55fbaf=getOrCreateSession(_0x17698b,_0x37bf5a);_0x55fbaf[_0x2bf73e(0x1ca)]=!![],_0x566361[_0x2bf73e(0x1a0)](saveCache,_0x17698b);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x110b4d=_0x14c1;function _0x14c1(_0x23f435,_0x12f454){_0x23f435=_0x23f435-0x137;const _0xb1c6c=_0xb1c6();let _0x14c13f=_0xb1c6c[_0x23f435];return _0x14c13f;}(function(_0x44e027,_0x3f7a8a){const _0x2cabcf=_0x14c1,_0x3f9f8a=_0x44e027();while(!![]){try{const _0x194d12=parseInt(_0x2cabcf(0x176))/0x1*(-parseInt(_0x2cabcf(0x15e))/0x2)+parseInt(_0x2cabcf(0x15f))/0x3*(parseInt(_0x2cabcf(0x142))/0x4)+-parseInt(_0x2cabcf(0x146))/0x5*(parseInt(_0x2cabcf(0x14d))/0x6)+-parseInt(_0x2cabcf(0x16b))/0x7+-parseInt(_0x2cabcf(0x156))/0x8*(parseInt(_0x2cabcf(0x145))/0x9)+-parseInt(_0x2cabcf(0x14c))/0xa*(-parseInt(_0x2cabcf(0x16e))/0xb)+parseInt(_0x2cabcf(0x14b))/0xc*(parseInt(_0x2cabcf(0x149))/0xd);if(_0x194d12===_0x3f7a8a)break;else _0x3f9f8a['push'](_0x3f9f8a['shift']());}catch(_0x153782){_0x3f9f8a['push'](_0x3f9f8a['shift']());}}}(_0xb1c6,0x2480e));function _0xb1c6(){const _0x13bd62=['WtYbh','mCDNg','1635912RXFTbU','1096445IVNpCT','mCGFd','currentBranch','7371Bjpktk','oZnWE','13608NeDVKC','781620XDZoPw','6iPerjF','branches','NuPbx','existsSync','UGEGr','stringify','NTWKS','lastEnabledSessionClearedAt','registeredAt','8umvbut','nfWkE','timvK','KfGHE','FJiPr','XlrgQ','DatVG','RVEhH','26122VDOnFv','807mscAgV','JFMWd','GfhaL','prompted','main','ryRQK','enabled','VXSGS','sessions','writeFileSync','clear','onOWN','756287FYlxEf','.ranger_cache.json','git\x20rev-parse\x20--abbrev-ref\x20HEAD','11gCqlfd','ZrICQ','wUNCT','master','utf-8','mkdirSync','pipe','readFileSync','8hTgQmv','pLROa','featureId','koyLQ','nOtFv','now','OFHUP','FXyUk','LikIR','ZEUHA','BBlLL','KyklL','624pRjeqH'];_0xb1c6=function(){return _0x13bd62;};return _0xb1c6();}import*as _0xe5e7 from'fs';import*as _0x21d11f from'path';import*as _0x53de28 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x21d11f['join'](_0x53de28['homedir'](),'.claude',_0x110b4d(0x16c));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4f728b=_0x110b4d,_0x13d1e6={'qCTZC':function(_0x634229){return _0x634229();}};try{if(_0xe5e7['existsSync'](CACHE_FILE)){const _0x231685=JSON['parse'](_0xe5e7[_0x4f728b(0x175)](CACHE_FILE,_0x4f728b(0x172)));return{'version':0x3,'sessions':_0x231685[_0x4f728b(0x167)]||{},'branches':_0x231685['branches']||{},'lastEnabledSessionClearedAt':_0x231685['lastEnabledSessionClearedAt']};}}catch{}return _0x13d1e6['qCTZC'](createEmptyCache);}function saveCache(_0x3d5562){const _0x99064b=_0x110b4d;try{const _0x5c507c=_0x21d11f['dirname'](CACHE_FILE);!_0xe5e7[_0x99064b(0x150)](_0x5c507c)&&_0xe5e7[_0x99064b(0x173)](_0x5c507c,{'recursive':!![]}),_0xe5e7[_0x99064b(0x168)](CACHE_FILE,JSON[_0x99064b(0x152)](_0x3d5562,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4a935d=_0x110b4d,_0x49f7e4={'WtYbh':function(_0x2e2569,_0x76c29f,_0x5c4424){return _0x2e2569(_0x76c29f,_0x5c4424);},'NuPbx':_0x4a935d(0x16d),'JFMWd':'utf-8','RVEhH':_0x4a935d(0x174)};try{const _0x2f8690=_0x49f7e4[_0x4a935d(0x143)](execSync,_0x49f7e4[_0x4a935d(0x14f)],{'encoding':_0x49f7e4[_0x4a935d(0x160)],'stdio':[_0x49f7e4['RVEhH'],_0x49f7e4[_0x4a935d(0x15d)],'pipe']})['trim']();if(!_0x2f8690||_0x2f8690==='HEAD')return null;return _0x2f8690;}catch{return null;}}export function enableBranch(_0x20b885){const _0xa339f3=_0x110b4d,_0x24e3e1={'DatVG':function(_0x3e3c4f,_0x3f91f2){return _0x3e3c4f(_0x3f91f2);}},_0x5d7118=loadCache();_0x5d7118[_0xa339f3(0x14e)][_0x20b885]=!![],_0x24e3e1[_0xa339f3(0x15c)](saveCache,_0x5d7118);}export function disableBranch(_0x449e86){const _0x2830fd={'wqpHY':function(_0x4834f4,_0x3a64ea){return _0x4834f4(_0x3a64ea);}},_0x49fc6d=loadCache();delete _0x49fc6d['branches'][_0x449e86],_0x2830fd['wqpHY'](saveCache,_0x49fc6d);}export function isBranchEnabled(_0x2d3df9){const _0x4b8ffc=_0x110b4d,_0x7d282d={'OTKCF':function(_0x3b8f98){return _0x3b8f98();},'LRRMy':function(_0x13b8e5,_0x4db8e7){return _0x13b8e5===_0x4db8e7;}},_0x2d6ed9=_0x7d282d['OTKCF'](loadCache);return _0x7d282d['LRRMy'](_0x2d6ed9[_0x4b8ffc(0x14e)][_0x2d3df9],!![]);}function getOrCreateSession(_0x2793bd,_0x3588ed){const _0x36dedd=_0x110b4d;return!_0x2793bd['sessions'][_0x3588ed]&&(_0x2793bd[_0x36dedd(0x167)][_0x3588ed]={}),_0x2793bd['sessions'][_0x3588ed];}export function enableSession(_0x5a7ce9){const _0xfed384=_0x110b4d,_0x43449a={'nOtFv':function(_0xfd6c41,_0x59f93e,_0xf8fe98){return _0xfd6c41(_0x59f93e,_0xf8fe98);},'ZqAlV':function(_0x3b5788,_0x40ba65){return _0x3b5788!==_0x40ba65;},'onOWN':function(_0x550252,_0x5626d6){return _0x550252!==_0x5626d6;},'ZEUHA':_0xfed384(0x171),'NTWKS':function(_0x46176c,_0x167d5b){return _0x46176c(_0x167d5b);}},_0x1ab064=loadCache(),_0x58e41b=_0x43449a[_0xfed384(0x13a)](getOrCreateSession,_0x1ab064,_0x5a7ce9);_0x58e41b[_0xfed384(0x165)]=!![];const _0x381671=getCurrentBranch();_0x381671&&_0x43449a['ZqAlV'](_0x381671,_0xfed384(0x163))&&_0x43449a[_0xfed384(0x16a)](_0x381671,_0x43449a[_0xfed384(0x13f)])&&(_0x1ab064[_0xfed384(0x14e)][_0x381671]=!![],_0x58e41b['currentBranch']=_0x381671),_0x43449a[_0xfed384(0x153)](saveCache,_0x1ab064);}export function isSessionEnabled(_0x4bc18b){const _0x57fe5b=_0x110b4d,_0x1832fb={'YpBbk':function(_0x2a1ea3){return _0x2a1ea3();},'iJmww':'main','pLROa':function(_0x5519bf,_0x13eae3){return _0x5519bf===_0x13eae3;},'VXSGS':function(_0x8f5d51,_0x59109b){return _0x8f5d51||_0x59109b;}},_0x421fda=_0x1832fb['YpBbk'](loadCache),_0x35bde5=getCurrentBranch();if(!_0x35bde5||_0x35bde5===_0x1832fb['iJmww']||_0x35bde5===_0x57fe5b(0x171))return _0x1832fb['pLROa'](_0x421fda[_0x57fe5b(0x167)][_0x4bc18b]?.['enabled'],!![]);const _0x4a4871=_0x1832fb[_0x57fe5b(0x137)](_0x421fda[_0x57fe5b(0x14e)][_0x35bde5],!![]),_0x36f683=_0x1832fb[_0x57fe5b(0x137)](_0x421fda['sessions'][_0x4bc18b]?.['enabled'],!![]);return _0x1832fb[_0x57fe5b(0x166)](_0x4a4871,_0x36f683);}export function disableSession(_0x1e630e){const _0x5c169a=_0x110b4d,_0x385d3e={'FJiPr':function(_0x5129b6,_0x579994){return _0x5129b6(_0x579994);}},_0x8a2f5f=loadCache(),_0x139411=getOrCreateSession(_0x8a2f5f,_0x1e630e);_0x139411['enabled']=![],_0x385d3e[_0x5c169a(0x15a)](saveCache,_0x8a2f5f);}export function updateBranchTracking(_0x2bf57a){const _0x31b7fa=_0x110b4d,_0x302d46={'KyklL':function(_0x1ac0c4){return _0x1ac0c4();},'LikIR':function(_0x29a6b8,_0x1278c1){return _0x29a6b8===_0x1278c1;},'FXyUk':_0x31b7fa(0x163),'QCdXF':function(_0xe31e64,_0x438c8b){return _0xe31e64===_0x438c8b;},'ZrICQ':'master','nfWkE':function(_0x5262c6,_0x687f63){return _0x5262c6!==_0x687f63;},'mCGFd':function(_0x5c3261,_0x2bca81){return _0x5c3261(_0x2bca81);}},_0x1212d6=loadCache(),_0x5f1042=_0x1212d6['sessions'][_0x2bf57a];if(!_0x5f1042?.['enabled'])return;const _0x238d72=_0x302d46[_0x31b7fa(0x141)](getCurrentBranch);if(!_0x238d72||_0x302d46[_0x31b7fa(0x13e)](_0x238d72,_0x302d46[_0x31b7fa(0x13d)])||_0x302d46['QCdXF'](_0x238d72,_0x302d46[_0x31b7fa(0x16f)]))return;_0x302d46[_0x31b7fa(0x157)](_0x5f1042[_0x31b7fa(0x148)],_0x238d72)&&(_0x1212d6[_0x31b7fa(0x14e)][_0x238d72]=!![],_0x5f1042[_0x31b7fa(0x148)]=_0x238d72,_0x302d46[_0x31b7fa(0x147)](saveCache,_0x1212d6));}export function initBranchTracking(_0x5c0509){const _0xc018fd=_0x110b4d,_0x4104e0={'oZnWE':function(_0x8a78a3){return _0x8a78a3();},'KfGHE':function(_0x41c1b4,_0x5e5485){return _0x41c1b4===_0x5e5485;},'vbYNb':function(_0x2610dd,_0xbc1896,_0x212b79){return _0x2610dd(_0xbc1896,_0x212b79);}},_0x281587=_0x4104e0[_0xc018fd(0x14a)](loadCache),_0x29521a=getCurrentBranch();if(!_0x29521a||_0x29521a===_0xc018fd(0x163)||_0x4104e0['KfGHE'](_0x29521a,_0xc018fd(0x171)))return;if(_0x4104e0[_0xc018fd(0x159)](_0x281587['branches'][_0x29521a],!![])){const _0x1d5d4c=_0x4104e0['vbYNb'](getOrCreateSession,_0x281587,_0x5c0509);_0x1d5d4c['enabled']=!![],_0x1d5d4c[_0xc018fd(0x148)]=_0x29521a,saveCache(_0x281587);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x28f88f){const _0x5eeb51=_0x110b4d,_0x42895e={'ZScFj':function(_0x436f12,_0x55319d){return _0x436f12(_0x55319d);}},_0x320497=loadCache(),_0x2c8144=_0x320497['sessions'][_0x28f88f];_0x2c8144?.['enabled']&&(_0x320497['lastEnabledSessionClearedAt']=Date[_0x5eeb51(0x13b)](),_0x42895e['ZScFj'](saveCache,_0x320497));}export function shouldAutoEnableAfterClear(_0xa308d0){const _0x596b15=_0x110b4d,_0x51bc0c={'kvvDn':function(_0xa180c,_0x5a096f){return _0xa180c!==_0x5a096f;},'OFHUP':function(_0x3dd4ba,_0xf7245d){return _0x3dd4ba-_0xf7245d;},'XAcfx':function(_0x1d9aa0,_0x4b4c9c){return _0x1d9aa0<=_0x4b4c9c;}};if(_0x51bc0c['kvvDn'](_0xa308d0,_0x596b15(0x169)))return![];const _0x2eafa1=loadCache(),_0x1f451d=_0x2eafa1[_0x596b15(0x154)];if(!_0x1f451d)return![];const _0x739580=_0x51bc0c[_0x596b15(0x13c)](Date['now'](),_0x1f451d);return _0x51bc0c['XAcfx'](_0x739580,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x48cd61){const _0x17316f=_0x110b4d,_0x7b5b75={'wUNCT':function(_0xd43d45){return _0xd43d45();},'UGEGr':function(_0x6dc9e8,_0x1a1863,_0x2f6d56){return _0x6dc9e8(_0x1a1863,_0x2f6d56);},'BBlLL':function(_0x3a361c,_0x5c3e38){return _0x3a361c!==_0x5c3e38;},'TeIks':function(_0x18c9c,_0x3f611b){return _0x18c9c(_0x3f611b);}},_0xd33ed9=_0x7b5b75[_0x17316f(0x170)](loadCache),_0x58df5f=_0x7b5b75[_0x17316f(0x151)](getOrCreateSession,_0xd33ed9,_0x48cd61);_0x58df5f['enabled']=!![];const _0x16909d=_0x7b5b75[_0x17316f(0x170)](getCurrentBranch);_0x16909d&&_0x7b5b75[_0x17316f(0x140)](_0x16909d,'main')&&_0x7b5b75[_0x17316f(0x140)](_0x16909d,'master')&&(_0x58df5f[_0x17316f(0x148)]=_0x16909d),delete _0xd33ed9[_0x17316f(0x154)],_0x7b5b75['TeIks'](saveCache,_0xd33ed9);}export function registerSession(_0x40c385,_0x145b71){const _0xe6efec=_0x110b4d,_0x1627e4={'timvK':function(_0x31d63c){return _0x31d63c();},'jyCBR':function(_0x455744,_0x51cedd,_0x4b9960){return _0x455744(_0x51cedd,_0x4b9960);}},_0x3cb36c=_0x1627e4[_0xe6efec(0x158)](loadCache),_0x28e6be=_0x1627e4['jyCBR'](getOrCreateSession,_0x3cb36c,_0x40c385);_0x28e6be['featureId']=_0x145b71,_0x28e6be[_0xe6efec(0x155)]=new Date()['toISOString'](),saveCache(_0x3cb36c);}export function getSessionEntry(_0x14413f){const _0x522f26=_0x110b4d,_0x11857c={'tLPff':function(_0x914b31){return _0x914b31();}},_0x145efa=_0x11857c['tLPff'](loadCache),_0xb4e3cd=_0x145efa['sessions'][_0x14413f];if(_0xb4e3cd?.['featureId']&&_0xb4e3cd?.[_0x522f26(0x155)])return{'featureId':_0xb4e3cd['featureId'],'registeredAt':_0xb4e3cd[_0x522f26(0x155)]};return null;}export function unregisterSession(_0x55fb0c){const _0x3eb9ac=_0x110b4d,_0x294fcb={'koyLQ':function(_0x4df9e4,_0x4fbc40){return _0x4df9e4(_0x4fbc40);}},_0x28f507=loadCache(),_0x1b48f2=_0x28f507['sessions'][_0x55fb0c];_0x1b48f2&&(delete _0x1b48f2[_0x3eb9ac(0x138)],delete _0x1b48f2[_0x3eb9ac(0x155)],_0x294fcb[_0x3eb9ac(0x139)](saveCache,_0x28f507));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b28e2){const _0x2b45db=_0x110b4d,_0x1db44b={'mCDNg':function(_0x2347e1,_0x4e521e){return _0x2347e1>=_0x4e521e;},'jsGPf':function(_0x56043b,_0x5033be){return _0x56043b-_0x5033be;}},_0x4645db=loadCache(),_0x1454a9=getOrCreateSession(_0x4645db,_0x2b28e2),_0x632fd8=_0x1454a9['lastPlanReminderAt']||0x0,_0x5bc794=Date['now']();if(_0x1db44b[_0x2b45db(0x144)](_0x1db44b['jsGPf'](_0x5bc794,_0x632fd8),PLAN_REMINDER_INTERVAL_MS))return _0x1454a9['lastPlanReminderAt']=_0x5bc794,saveCache(_0x4645db),!![];return![];}export function shouldShowStopReminder(_0x4cd8bc){const _0x526465=_0x110b4d,_0xce41f6={'ryRQK':function(_0x918438){return _0x918438();},'iRdfX':function(_0x5ec2a2,_0x11ef99,_0x435223){return _0x5ec2a2(_0x11ef99,_0x435223);},'yjdvs':function(_0x171990,_0x320395){return _0x171990-_0x320395;},'gkPGZ':function(_0x541647,_0x364f5b){return _0x541647(_0x364f5b);}},_0x4e9a99=_0xce41f6[_0x526465(0x164)](loadCache),_0x28a5ef=_0xce41f6['iRdfX'](getOrCreateSession,_0x4e9a99,_0x4cd8bc),_0x51d2b0=_0x28a5ef['lastStopReminderAt']||0x0,_0x7c7957=Date[_0x526465(0x13b)]();if(_0xce41f6['yjdvs'](_0x7c7957,_0x51d2b0)>=STOP_REMINDER_INTERVAL_MS)return _0x28a5ef['lastStopReminderAt']=_0x7c7957,_0xce41f6['gkPGZ'](saveCache,_0x4e9a99),!![];return![];}export function hasSessionBeenPrompted(_0x4d1356){const _0x2fcff1=_0x110b4d,_0x47cf8b={'XlrgQ':function(_0x3a04bb){return _0x3a04bb();}},_0x45c684=_0x47cf8b[_0x2fcff1(0x15b)](loadCache);return _0x45c684['sessions'][_0x4d1356]?.[_0x2fcff1(0x162)]===!![];}export function markSessionPrompted(_0xee2941){const _0x336e41=_0x110b4d,_0x239ec2={'GfhaL':function(_0x35301a){return _0x35301a();}},_0x1089db=_0x239ec2[_0x336e41(0x161)](loadCache),_0x34a3d6=getOrCreateSession(_0x1089db,_0xee2941);_0x34a3d6['prompted']=!![],saveCache(_0x1089db);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1caa8c=_0x3a0f;(function(_0x1f8353,_0x37e7f4){const _0x19c312=_0x3a0f,_0xec5aa0=_0x1f8353();while(!![]){try{const _0x17321a=parseInt(_0x19c312(0xda))/0x1*(parseInt(_0x19c312(0xbb))/0x2)+parseInt(_0x19c312(0xce))/0x3+parseInt(_0x19c312(0xac))/0x4+parseInt(_0x19c312(0xf4))/0x5+-parseInt(_0x19c312(0xde))/0x6+-parseInt(_0x19c312(0x102))/0x7+parseInt(_0x19c312(0xfa))/0x8;if(_0x17321a===_0x37e7f4)break;else _0xec5aa0['push'](_0xec5aa0['shift']());}catch(_0x42c831){_0xec5aa0['push'](_0xec5aa0['shift']());}}}(_0xb531,0xf128f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x3a0f(_0x5786c2,_0x33735f){_0x5786c2=_0x5786c2-0x91;const _0xb531a1=_0xb531();let _0x3a0f74=_0xb531a1[_0x5786c2];return _0x3a0f74;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5257b5,_0x2ef756){const _0x2115f5=_0x3a0f,_0x52dbbd={'sBGcS':function(_0x29c55c,_0x2aa762,_0x15edff,_0x3df529){return _0x29c55c(_0x2aa762,_0x15edff,_0x3df529);},'MeOZU':function(_0x50b6f7,_0x5b97e5,_0x70b0e8,_0xcf69d0){return _0x50b6f7(_0x5b97e5,_0x70b0e8,_0xcf69d0);},'AsbwQ':_0x2115f5(0xc3),'QVSuG':function(_0x53a418,_0x52acc8,_0x40e26e){return _0x53a418(_0x52acc8,_0x40e26e);},'BiEnG':function(_0x14dd13,_0x17fc6c,_0x570ebd){return _0x14dd13(_0x17fc6c,_0x570ebd);},'JgfTj':function(_0x350a06,_0x206e7a){return _0x350a06(_0x206e7a);},'BrBfP':function(_0x5addd5,_0x2332e8){return _0x5addd5!==_0x2332e8;},'BFmxd':function(_0x4f340f,_0x31f33e){return _0x4f340f(_0x31f33e);}},_0x35aeab=_0x52dbbd['sBGcS'](join,_0x2ef756,'ci',_0x5257b5),_0x48d35d=_0x52dbbd[_0x2115f5(0xfe)](join,_0x2ef756,_0x52dbbd['AsbwQ'],_0x5257b5),_0x1ece51=_0x52dbbd[_0x2115f5(0xcd)](join,_0x2ef756,_0x5257b5),_0x79bac0=join(_0x2ef756,'local'),_0x37d25a=_0x52dbbd['BiEnG'](join,_0x2ef756,'ci');if(existsSync(_0x35aeab))return _0x35aeab;if(existsSync(_0x48d35d))return _0x48d35d;if(_0x52dbbd[_0x2115f5(0x9e)](existsSync,_0x1ece51)&&(_0x1ece51!==_0x79bac0&&_0x52dbbd[_0x2115f5(0xe9)](_0x1ece51,_0x37d25a)?!![]:_0x52dbbd['BFmxd'](hasLegacyProfileFiles,_0x1ece51)))return _0x1ece51;return null;}function _0xb531(){const _0x1893e2=['XXRWk','push','allowInsecureLocalhost','AFvCW','now','headless','QZvdV','JgfTj','warn','LPPke','UbPPv','\x20is\x20not\x20set','SQjpI','legacy','all','doZlt','--allow-insecure-localhost','uwJis','bxWEu','entries','contextOptions','3101004diiEcJ','BSkDe','filter','IcCZO','--disable-setuid-sandbox','-rangerwright.json','storageStatePath','UMofS','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','header','args','includes','location','split','repeat','847324IUwqdE','WAEJf','safeMode','tfKmo','xzaCe','HBEGf','DMHTK','utf-8','local','JdvTH','playwright-cli','indexOf','AZDCa','dvWWL','OLdFC','THUlR','ranger-config','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','QVSuG','4831836FbANXQ','userAgent','isArray','eMNRQ','executablePath','catch','setupHeader','auth.json','uqtNj','none','YLXge','tempAuthPath','2KjjpWj','tLCIE','fvWwN','zPiyL','6264186yzrIEn','zHfQA','fmGWp','clipboard-read','VCbbq','HCNYA','DFqGZ','auth.json.enc','code','yHUow','object','BrBfP','stagehand','IhJwy','tabs','map','stringify','XUExG','keys','GgZji','cdpEndpoint','string','2639875lplsij','Refusing\x20to\x20write\x20profile\x20\x22','headers','replace','zkWja','file','1954552xUiMHi','Hicey','uQPLW','.json','MeOZU','chromium','sessions','browser','13815613lCCJnh','settings.json','NpEOP','HszCs','ranger-auth-','DSAru','QsBOY','xbmSq','storageState','nIkLc','ignoreHTTPSErrors','message','getuid','HBxLG','--disable-features=WebBluetooth','length','RQxsK','path','--no-sandbox'];_0xb531=function(){return _0x1893e2;};return _0xb531();}export function getEnvDir(_0x288d76,_0x2f9255={}){const _0x3f84d6=_0x3a0f,_0xe5ffdf={'Udorb':function(_0x55283c){return _0x55283c();},'DZuch':function(_0x24cc99,_0x23656d){return _0x24cc99(_0x23656d);},'xqrxP':function(_0x44027d,_0x590496,_0x5a1900){return _0x44027d(_0x590496,_0x5a1900);},'GgZji':'local'},_0x3c03f4=_0xe5ffdf['Udorb'](getRangerDir),_0x2cf4a4=findEnvInRoot(_0x288d76,_0x3c03f4);if(_0x2cf4a4){if(_0x2f9255['forWrite']&&isLegacyEnvPath(_0x2cf4a4))throw legacyWriteError(_0x288d76,_0x2cf4a4);return _0x2cf4a4;}const _0x3ea223=_0xe5ffdf['Udorb'](getRangerHomeDir);if(_0x3ea223!==_0x3c03f4){const _0x23e18e=findEnvInRoot(_0x288d76,_0x3ea223);if(_0x23e18e){if(_0x2f9255['forWrite']&&_0xe5ffdf['DZuch'](isLegacyEnvPath,_0x23e18e))throw _0xe5ffdf['xqrxP'](legacyWriteError,_0x288d76,_0x23e18e);return _0x23e18e;}}const _0x4fae59=join(_0x3ea223,_0xe5ffdf[_0x3f84d6(0xf1)],_0x288d76);if(_0x2f9255['forWrite'])throw legacyWriteError(_0x288d76,_0x4fae59);return _0x4fae59;}function isLegacyEnvPath(_0x5d340b){const _0x4aa5d2={'mxgaq':function(_0x27d329){return _0x27d329();},'ncAWy':function(_0x40acee,_0x46e005){return _0x40acee===_0x46e005;}},_0x22aecc=_0x4aa5d2['mxgaq'](getRangerDir),_0x4b7710=getRangerHomeDir();for(const _0x23d8cf of new Set([_0x22aecc,_0x4b7710])){const _0x2959aa=_0x23d8cf['endsWith']('/')?_0x23d8cf:_0x23d8cf+'/';if(_0x4aa5d2['ncAWy'](_0x5d340b,_0x23d8cf)||_0x5d340b['startsWith'](_0x2959aa))return!![];}return![];}function legacyWriteError(_0x4cd4cc,_0xc49e6b){const _0x4baf0f=_0x3a0f,_0x5d92a8={'fvWwN':function(_0x23c692,_0x3a583a){return _0x23c692+_0x3a583a;}};return new Error(_0x5d92a8[_0x4baf0f(0xdc)](_0x5d92a8[_0x4baf0f(0xdc)](_0x4baf0f(0xf5)+_0x4cd4cc+'\x22\x20to\x20legacy\x20path\x20'+_0xc49e6b+'.\x0a',_0x4baf0f(0xcc))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x4baf0f(0xb4)));}export function findExistingEnv(_0x1e357d,_0x4d2e7b){const _0x4120f0=_0x3a0f,_0x4e4b0b={'XUExG':function(_0x5551e1){return _0x5551e1();},'IfLBg':function(_0x19f246,_0x5d07a1,_0x67bafe){return _0x19f246(_0x5d07a1,_0x67bafe);},'tiaRb':'local','BSkDe':_0x4120f0(0xa4),'zkWja':function(_0x44cb67,_0x19b4c1){return _0x44cb67===_0x19b4c1;}},_0x2586eb=_0x4d2e7b?.['rangerDir'],_0x50f944=_0x2586eb?[_0x2586eb]:[_0x4e4b0b[_0x4120f0(0xef)](getRangerDir),getRangerHomeDir()]['filter']((_0x2be673,_0x176633,_0x20d210)=>_0x20d210[_0x4120f0(0xc6)](_0x2be673)===_0x176633),_0x1ad4fd=_0x4d2e7b?.['locations']??['ci','local','legacy'];for(const _0x163c09 of _0x50f944){const _0x2fb692=_0x4e4b0b['IfLBg'](join,_0x163c09,_0x4e4b0b['tiaRb']),_0x564ec7=join(_0x163c09,'ci'),_0x35ef2f=[{'location':'ci','path':join(_0x163c09,'ci',_0x1e357d)},{'location':_0x4e4b0b['tiaRb'],'path':join(_0x163c09,_0x4e4b0b['tiaRb'],_0x1e357d)},{'location':_0x4e4b0b['BSkDe'],'path':join(_0x163c09,_0x1e357d)}];for(const _0xab2532 of _0x35ef2f){if(_0x1ad4fd[_0x4120f0(0xb7)](_0xab2532[_0x4120f0(0xb8)])&&existsSync(_0xab2532[_0x4120f0(0x95)])){if(_0x4e4b0b[_0x4120f0(0xf8)](_0xab2532['location'],_0x4e4b0b[_0x4120f0(0xad)])&&(_0xab2532['path']===_0x2fb692||_0xab2532[_0x4120f0(0x95)]===_0x564ec7)&&!hasLegacyProfileFiles(_0xab2532[_0x4120f0(0x95)]))continue;return{'path':_0xab2532['path'],'location':_0xab2532[_0x4120f0(0xb8)]};}}}return null;}function hasLegacyProfileFiles(_0x4a04d4){const _0x2ed7fa=_0x3a0f,_0x3211db={'YLXge':function(_0x1ccb11,_0x39bce0){return _0x1ccb11(_0x39bce0);},'zPiyL':function(_0xfd4a55,_0x5f0981,_0x2e3778){return _0xfd4a55(_0x5f0981,_0x2e3778);},'CIsnd':_0x2ed7fa(0x103),'dvWWL':_0x2ed7fa(0xd5)};return _0x3211db[_0x2ed7fa(0xd8)](existsSync,_0x3211db[_0x2ed7fa(0xdd)](join,_0x4a04d4,_0x3211db['CIsnd']))||_0x3211db['YLXge'](existsSync,_0x3211db[_0x2ed7fa(0xdd)](join,_0x4a04d4,_0x3211db[_0x2ed7fa(0xc8)]))||existsSync(_0x3211db['zPiyL'](join,_0x4a04d4,'auth.json.enc'));}export function isEnvCi(_0x3593c3){const _0x3e407a=_0x3a0f,_0x524d10={'KbogO':function(_0x4b8596,_0x7d612d,_0x177627,_0x1e1bb6){return _0x4b8596(_0x7d612d,_0x177627,_0x1e1bb6);},'AFvCW':function(_0x4a5ab8){return _0x4a5ab8();}};if(existsSync(_0x524d10['KbogO'](join,getRangerDir(),'ci',_0x3593c3)))return!![];const _0x47c294=_0x524d10[_0x3e407a(0x9a)](getRangerHomeDir);if(_0x47c294!==getRangerDir()&&existsSync(join(_0x47c294,'ci',_0x3593c3)))return!![];return![];}export async function cleanupTempFiles(_0x3fe43b){const _0x1f069f=_0x3a0f,_0x1e33b3={'eMNRQ':function(_0x593834,_0x1504c0){return _0x593834!==_0x1504c0;},'fmGWp':'ENOENT'},_0xba276=[_0x3fe43b[_0x1f069f(0xd9)],_0x3fe43b['configPath']]['filter'](Boolean);await Promise[_0x1f069f(0xa5)](_0xba276['map'](_0x4e7a2a=>unlink(_0x4e7a2a)[_0x1f069f(0xd3)](_0x1517ef=>{const _0x3b6763=_0x1f069f;_0x1e33b3[_0x3b6763(0xd1)](_0x1517ef[_0x3b6763(0xe6)],_0x1e33b3[_0x3b6763(0xe0)])&&console[_0x3b6763(0x9f)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x4e7a2a+':',_0x1517ef['message']);})));}export function getSettingsPath(_0x1bd461){return join(getEnvDir(_0x1bd461),'settings.json');}export async function loadSettings(_0x10031f){const _0x3d4ba4=_0x3a0f,_0x45f1c6={'VCbbq':function(_0x18850a,_0x134b7f){return _0x18850a(_0x134b7f);},'lkBel':_0x3d4ba4(0xc2)},_0x172d07=_0x45f1c6[_0x3d4ba4(0xe2)](getSettingsPath,_0x10031f);if(!_0x45f1c6[_0x3d4ba4(0xe2)](existsSync,_0x172d07))return{};try{const _0x42cb71=await readFile(_0x172d07,_0x45f1c6['lkBel']);return JSON['parse'](_0x42cb71);}catch{return{};}}export async function saveSettings(_0x1f4ffb,_0x390bd6){const _0x57a177=_0x3a0f,_0x5efc24={'poAXI':function(_0x4b6024,_0x130e4e){return _0x4b6024(_0x130e4e);},'bxWEu':function(_0x11be5b,_0x1a1b68,_0x2fb80c){return _0x11be5b(_0x1a1b68,_0x2fb80c);}},_0x143f74=_0x5efc24['poAXI'](getSettingsPath,_0x1f4ffb),_0x2dbed1=_0x5efc24['poAXI'](dirname,_0x143f74);!existsSync(_0x2dbed1)&&await _0x5efc24[_0x57a177(0xa9)](mkdir,_0x2dbed1,{'recursive':!![]}),await writeFile(_0x143f74,JSON['stringify'](_0x390bd6,null,0x2));}export function resolveEnvVars(_0x2b71dd){const _0x4a1f72=_0x3a0f,_0x14a7c0={'YGLUY':function(_0x1f6477,_0x5e080f){return _0x1f6477===_0x5e080f;}};if(typeof _0x2b71dd==='string')return _0x2b71dd[_0x4a1f72(0xf7)](/\$\{(\w+)\}/g,(_0x1be25e,_0x339363)=>{const _0x525bf9=_0x4a1f72,_0x521dd8=process['env'][_0x339363];if(_0x14a7c0['YGLUY'](_0x521dd8,undefined))throw new Error('Environment\x20variable\x20'+_0x339363+_0x525bf9(0xa2));return _0x521dd8;});if(Array[_0x4a1f72(0xd0)](_0x2b71dd))return _0x2b71dd[_0x4a1f72(0xed)](resolveEnvVars);if(_0x2b71dd&&typeof _0x2b71dd===_0x4a1f72(0xe8))return Object['fromEntries'](Object['entries'](_0x2b71dd)['map'](([_0x5e55b3,_0x3e21f8])=>[_0x5e55b3,resolveEnvVars(_0x3e21f8)]));return _0x2b71dd;}const isRecord=_0x31bd09=>typeof _0x31bd09==='object'&&_0x31bd09!==null&&!Array[_0x1caa8c(0xd0)](_0x31bd09),asRecord=_0xd5e8da=>isRecord(_0xd5e8da)?_0xd5e8da:undefined,mergeHeaders=(_0x485469,_0x3f2d8f)=>{const _0x1eb6b9=_0x1caa8c,_0x2490c4={'ffyUP':function(_0x1275f4,_0x186d25){return _0x1275f4??_0x186d25;}},_0x7766b5={..._0x485469??{},..._0x2490c4['ffyUP'](_0x3f2d8f,{})};return Object[_0x1eb6b9(0xf0)](_0x7766b5)['length']?_0x7766b5:undefined;},SAFE_MODE_ARGS=[_0x1caa8c(0x92)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1caa8c(0xa7)];export function buildBrowserOptionsFromSettings(_0x8afd80,_0x350364={}){const _0x2df41e=_0x1caa8c,_0x72c9fe={'WAEJf':function(_0x3759cc,_0xe6fda1){return _0x3759cc(_0xe6fda1);},'LPPke':function(_0x3f3014,_0x254b8d){return _0x3f3014===_0x254b8d;},'RVxUX':function(_0x185753,_0x4852f8){return _0x185753(_0x4852f8);},'nLOeb':function(_0x186029,_0x334180){return _0x186029===_0x334180;},'avxAS':_0x2df41e(0xf3),'ZlcCV':function(_0x23d6da,_0x23dfdf,_0xe7361f){return _0x23d6da(_0x23dfdf,_0xe7361f);},'AZDCa':function(_0x480804,_0x38182f){return _0x480804(_0x38182f);},'OIqkO':function(_0x151feb,_0x2f646e){return _0x151feb(_0x2f646e);}},_0x2f1449=_0x72c9fe[_0x2df41e(0xbc)](asRecord,_0x8afd80['browser']),_0x32d572={...asRecord(_0x2f1449?.['launchOptions'])??{}};_0x72c9fe[_0x2df41e(0xa0)](typeof _0x350364[_0x2df41e(0x9c)],'boolean')&&(_0x32d572['headless']=_0x350364[_0x2df41e(0x9c)]);if(_0x8afd80['safeMode']){const _0x15cbd4=_0x32d572['args']??[],_0x439786=SAFE_MODE_ARGS[_0x2df41e(0xae)](_0x3531ac=>!_0x15cbd4[_0x2df41e(0xb7)](_0x3531ac));_0x32d572[_0x2df41e(0xb6)]=[..._0x15cbd4,..._0x439786];}if(_0x8afd80[_0x2df41e(0x99)]){const _0x231c65=_0x32d572['args']??[],_0x212830=ALLOW_LOCALHOST_ARGS[_0x2df41e(0xae)](_0x33ab23=>!_0x231c65['includes'](_0x33ab23));_0x32d572['args']=[..._0x231c65,..._0x212830];}const _0x2a2bfb={..._0x72c9fe['RVxUX'](asRecord,_0x2f1449?.['contextOptions'])??{}};_0x2a2bfb[_0x2df41e(0x10c)]=!![];_0x72c9fe['nLOeb'](typeof _0x8afd80[_0x2df41e(0xcf)],_0x72c9fe['avxAS'])&&(_0x2a2bfb[_0x2df41e(0xcf)]=_0x8afd80[_0x2df41e(0xcf)]);const _0x389c98=_0x72c9fe['ZlcCV'](mergeHeaders,_0x72c9fe[_0x2df41e(0xc7)](asRecord,_0x2a2bfb['extraHTTPHeaders']),_0x72c9fe['OIqkO'](asRecord,_0x8afd80[_0x2df41e(0xf6)]));return _0x389c98?_0x2a2bfb['extraHTTPHeaders']=_0x389c98:delete _0x2a2bfb['extraHTTPHeaders'],_0x350364[_0x2df41e(0xb2)]&&(_0x2a2bfb['storageState']=_0x350364['storageStatePath']),{'launchOptions':_0x32d572,'contextOptions':_0x2a2bfb};}export async function resolveProfileStorageState(_0x12d28a){return resolveLocalAuthPath(getEnvDir(_0x12d28a));}async function resolveLocalAuthPath(_0x341e66){const _0x1fa4f6=_0x1caa8c,_0x1994cc={'hFKKb':_0x1fa4f6(0xe5),'puiBj':function(_0xe234c5,_0x5241eb,_0x49c14c){return _0xe234c5(_0x5241eb,_0x49c14c);},'DSAru':function(_0x3af24c,_0x4fb723){return _0x3af24c(_0x4fb723);},'gaGul':function(_0x2db6d9){return _0x2db6d9();},'tLCIE':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','IcCZO':function(_0x543085,_0xaee439){return _0x543085(_0xaee439);},'uRFip':function(_0x238ed2){return _0x238ed2();},'ZihMl':function(_0x20b459,_0x5c3d07){return _0x20b459(_0x5c3d07);}},_0x2e4924=join(_0x341e66,_0x1994cc['hFKKb']),_0x138889=_0x1994cc['puiBj'](join,_0x341e66,'auth.json');if(_0x1994cc[_0x1fa4f6(0x107)](existsSync,_0x2e4924))try{const _0x455e0d=await _0x1994cc['gaGul'](getToken);if(!_0x455e0d)throw new Error(_0x1994cc[_0x1fa4f6(0xdb)]);const _0x6578d9=await _0x1994cc[_0x1fa4f6(0xaf)](readFile,_0x2e4924),_0x391d95=_0x1994cc['puiBj'](decrypt,_0x6578d9,_0x455e0d),_0x1fe0e7=join(_0x1994cc['uRFip'](tmpdir),_0x1fa4f6(0x106)+Date['now']()+'.json');return await writeFile(_0x1fe0e7,_0x391d95),{'storageStatePath':_0x1fe0e7,'tempAuthPath':_0x1fe0e7};}catch(_0x10656e){const _0x10fef8=_0x10656e instanceof Error?_0x10656e[_0x1fa4f6(0x10d)]:_0x1994cc['ZihMl'](String,_0x10656e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x10fef8);}if(existsSync(_0x138889))return{'storageStatePath':_0x138889};return{};}export async function buildPlaywrightConfig(_0x5d0354,_0x24b164,_0x275d3a,_0x251bf7,_0x4a4145){const _0x2012e8=_0x1caa8c,_0xa5295d={'ALKOh':function(_0x291b35,_0x124a1c,_0x27052e,_0x207d6c,_0x27d4d3,_0x47fadc,_0x310291){return _0x291b35(_0x124a1c,_0x27052e,_0x207d6c,_0x27d4d3,_0x47fadc,_0x310291);},'OLdFC':function(_0x540ffd,_0x4fe315){return _0x540ffd(_0x4fe315);},'HBxLG':function(_0x245f46,_0x8048e5,_0x1cf157,_0xe690a3,_0x5499d7,_0x2d6fde,_0x3ccb01){return _0x245f46(_0x8048e5,_0x1cf157,_0xe690a3,_0x5499d7,_0x2d6fde,_0x3ccb01);},'JdvTH':'stagehand'};if(_0x4a4145)return _0xa5295d['ALKOh'](buildPlaywrightConfigCore,_0x5d0354,_0x4a4145,_0x24b164,_0x275d3a,_0x251bf7,_0x2012e8(0xea));const {storageStatePath:_0x5e599c,tempAuthPath:_0x25c461}=await _0xa5295d['OLdFC'](resolveLocalAuthPath,getEnvDir(_0x24b164));try{const _0x31306d=await _0xa5295d[_0x2012e8(0x91)](buildPlaywrightConfigCore,_0x5d0354,_0x5e599c,_0x24b164,_0x275d3a,_0x251bf7,_0xa5295d[_0x2012e8(0xc4)]);return{..._0x31306d,'tempAuthPath':_0x25c461};}catch(_0x32b6a7){_0x25c461&&await _0xa5295d[_0x2012e8(0xc9)](unlink,_0x25c461)['catch'](()=>{});throw _0x32b6a7;}}export async function buildPlaywrightConfigCore(_0x528b32,_0x1ea7c4,_0x19edea,_0x542fb6,_0x1fd31d,_0x767327='stagehand'){const _0x39c748=_0x1caa8c,_0x1597cc={'uqtNj':function(_0x2f517b,_0x2c6826,_0x361424){return _0x2f517b(_0x2c6826,_0x361424);},'XfWfH':function(_0x552140,_0x1ec9f2){return _0x552140===_0x1ec9f2;},'HCNYA':_0x39c748(0xb0),'THUlR':'chromium','DFqGZ':function(_0x255bbc){return _0x255bbc();},'NpEOP':function(_0x263695,_0x2458cd,_0x3de0c7,_0x5c3dfc){return _0x263695(_0x2458cd,_0x3de0c7,_0x5c3dfc);},'iThTQ':'sessions','TcLys':function(_0x729129,_0x525b9e){return _0x729129(_0x525b9e);},'yHUow':_0x39c748(0xc5),'QsBOY':_0x39c748(0xf9),'zHfQA':_0x39c748(0xd7),'uwJis':'core','dobdb':_0x39c748(0xec),'xzaCe':'pdf','DMHTK':function(_0x814e42,_0x1b1cb2){return _0x814e42===_0x1b1cb2;},'xbmSq':function(_0x2eea67){return _0x2eea67();},'UbPPv':_0x39c748(0xcb),'lqIRo':'-cli','wPdxs':function(_0x5133da,_0x59f598,_0x52b0bf){return _0x5133da(_0x59f598,_0x52b0bf);}},_0x59195c=_0x542fb6||_0x1597cc[_0x39c748(0xe4)](randomUUID),_0x57ca30=_0x1597cc[_0x39c748(0x104)](join,getRangerDir(),_0x1597cc['iThTQ'],_0x59195c),_0x4cad19=_0x1597cc['TcLys'](Boolean,_0x528b32[_0x39c748(0xf2)]),_0xace0d0=_0x4cad19?{'browserName':_0x1597cc[_0x39c748(0xca)],'cdpEndpoint':_0x528b32[_0x39c748(0xf2)]}:((()=>{const _0x57ba6f=_0x39c748,{launchOptions:_0x80a04d,contextOptions:_0xc16117}=_0x1597cc['uqtNj'](buildBrowserOptionsFromSettings,_0x528b32,{'headless':_0x1fd31d?![]:_0x528b32['headless']??!![],'storageStatePath':_0x1ea7c4});if(_0x1597cc['XfWfH'](process[_0x57ba6f(0x10e)]?.(),0x0)){const _0x5cf777=['--no-sandbox',_0x1597cc[_0x57ba6f(0xe3)]],_0x474be9=_0x80a04d['args']??[],_0x32bd63=_0x5cf777[_0x57ba6f(0xae)](_0x5ce31f=>!_0x474be9['includes'](_0x5ce31f));_0x80a04d[_0x57ba6f(0xb6)]=[..._0x474be9,..._0x32bd63];}return{'isolated':!![],'browserName':_0x1597cc[_0x57ba6f(0xca)],'launchOptions':_0x80a04d,'contextOptions':{..._0xc16117,'permissions':[_0x57ba6f(0xe1),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3acba6=_0x767327===_0x1597cc[_0x39c748(0xe7)]?{'browser':_0xace0d0,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57ca30,'outputMode':_0x1597cc[_0x39c748(0x108)],'codegen':_0x1597cc[_0x39c748(0xdf)]}:{'name':_0x19edea,'browser':_0xace0d0,'capabilities':[_0x1597cc[_0x39c748(0xa8)],_0x1597cc['dobdb'],'install',_0x1597cc[_0x39c748(0xbf)],'vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57ca30};if(!_0x4cad19){const _0x172eb2=_0x3acba6[_0x39c748(0x101)],_0x23eca1=_0x172eb2['contextOptions'];if(_0x1597cc[_0x39c748(0xc1)](_0x23eca1['userAgent'],undefined))delete _0x23eca1['userAgent'];if(_0x1597cc['XfWfH'](_0x23eca1['storageState'],undefined))delete _0x23eca1[_0x39c748(0x10a)];}const _0x3c8154=join(_0x1597cc[_0x39c748(0x109)](tmpdir),_0x1597cc[_0x39c748(0xa1)]);!existsSync(_0x3c8154)&&await mkdir(_0x3c8154,{'recursive':!![]});const _0x3f4846=_0x1597cc['DMHTK'](_0x767327,'playwright-cli')?_0x1597cc['lqIRo']:'',_0x1e84c3=_0x1597cc[_0x39c748(0xd6)](join,_0x3c8154,_0x19edea+'-'+Date[_0x39c748(0x9b)]()+_0x3f4846+_0x39c748(0xfd));return await _0x1597cc['wPdxs'](writeFile,_0x1e84c3,JSON[_0x39c748(0xee)](_0x3acba6,null,0x2)),{'configPath':_0x1e84c3,'storageStatePath':_0x1ea7c4};}export async function buildPlaywrightCliConfig(_0x7b31e2,_0x39a463,_0xbe231e,_0x3b405c,_0xf63d4d){const _0x3e9875=_0x1caa8c,_0x16d0ce={'wjgFp':function(_0x4b78d7,_0x298a91){return _0x4b78d7(_0x298a91);},'IhJwy':function(_0x14aabe,_0x2bebfe,_0x401c7c,_0x4b0f55,_0x22b9f9,_0x27c59d,_0x550615){return _0x14aabe(_0x2bebfe,_0x401c7c,_0x4b0f55,_0x22b9f9,_0x27c59d,_0x550615);},'UMofS':function(_0x448699,_0x40bb01){return _0x448699(_0x40bb01);}};if(_0xf63d4d)return buildPlaywrightConfigCore(_0x7b31e2,_0xf63d4d,_0x39a463,_0xbe231e,_0x3b405c,_0x3e9875(0xc5));const {storageStatePath:_0x1cb5b2,tempAuthPath:_0x1260b8}=await _0x16d0ce['wjgFp'](resolveLocalAuthPath,_0x16d0ce['wjgFp'](getEnvDir,_0x39a463));try{const _0x3aa462=await _0x16d0ce[_0x3e9875(0xeb)](buildPlaywrightConfigCore,_0x7b31e2,_0x1cb5b2,_0x39a463,_0xbe231e,_0x3b405c,_0x3e9875(0xc5));return{..._0x3aa462,'tempAuthPath':_0x1260b8};}catch(_0x331939){_0x1260b8&&await _0x16d0ce[_0x3e9875(0xb3)](unlink,_0x1260b8)[_0x3e9875(0xd3)](()=>{});throw _0x331939;}}export async function buildRangerwrightCliConfig(_0x30160a,_0x59a161,_0x476d1b,_0x629a2d,_0x1d2088){const _0x4449c3=_0x1caa8c,_0x59b9ec={'qqqSC':function(_0x42fa63,_0x162b5f,_0x234bb0){return _0x42fa63(_0x162b5f,_0x234bb0);},'vZNOA':function(_0x21e71c,_0x1b30b6){return _0x21e71c===_0x1b30b6;},'nIkLc':_0x4449c3(0xb0),'MftBX':_0x4449c3(0xe1),'TtHyz':function(_0xf0c3bb,_0x520575,_0x494e1a,_0x265339){return _0xf0c3bb(_0x520575,_0x494e1a,_0x265339);},'JUMpv':function(_0x2767e1){return _0x2767e1();},'TgCge':function(_0x1c0481,_0x292a3c){return _0x1c0481(_0x292a3c);},'frNxM':function(_0x6096d4,_0x27c47a){return _0x6096d4===_0x27c47a;},'pnDhj':function(_0x38d7a6){return _0x38d7a6();},'doZlt':function(_0x14799f,_0x2799bf,_0x3a8ddd){return _0x14799f(_0x2799bf,_0x3a8ddd);},'HszCs':function(_0x5c1fff,_0xe90df2){return _0x5c1fff(_0xe90df2);}},{storageStatePath:_0x19b5f8,tempAuthPath:_0x29aacf}=_0x1d2088?{'storageStatePath':_0x1d2088,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x59a161)),_0x7d67ca=_0x476d1b||randomUUID(),_0x5012bd=_0x59b9ec['TtHyz'](join,_0x59b9ec['JUMpv'](getRangerDir),_0x4449c3(0x100),_0x7d67ca),_0x47d008=_0x59b9ec['TgCge'](Boolean,_0x30160a['cdpEndpoint']),_0x279f72=_0x47d008?{'browserName':_0x4449c3(0xff),'cdpEndpoint':_0x30160a[_0x4449c3(0xf2)]}:((()=>{const _0x468e82=_0x4449c3,{launchOptions:_0x870353,contextOptions:_0x216bf3}=_0x59b9ec['qqqSC'](buildBrowserOptionsFromSettings,_0x30160a,{'headless':_0x629a2d?![]:_0x30160a['headless']??!![],'storageStatePath':_0x19b5f8});if(_0x59b9ec['vZNOA'](process[_0x468e82(0x10e)]?.(),0x0)){const _0x1e5fc5=[_0x468e82(0x96),_0x59b9ec[_0x468e82(0x10b)]],_0x26ce3a=_0x870353['args']??[],_0x192e3f=_0x1e5fc5['filter'](_0x409363=>!_0x26ce3a['includes'](_0x409363));_0x870353['args']=[..._0x26ce3a,..._0x192e3f];}return{'browserName':'chromium','launchOptions':_0x870353,'contextOptions':{..._0x216bf3,'permissions':[_0x59b9ec['MftBX'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x47d008){const _0x439f02=_0x279f72[_0x4449c3(0xab)];if(_0x439f02){if(_0x439f02['userAgent']===undefined)delete _0x439f02['userAgent'];if(_0x59b9ec['frNxM'](_0x439f02['storageState'],undefined))delete _0x439f02['storageState'];}}const _0x48f8f2={'browser':_0x279f72,'outputDir':_0x5012bd,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x4273e5;try{const _0x59a295=join(_0x59b9ec['pnDhj'](tmpdir),'ranger-config');!existsSync(_0x59a295)&&await _0x59b9ec[_0x4449c3(0xa6)](mkdir,_0x59a295,{'recursive':!![]}),_0x4273e5=join(_0x59a295,_0x59a161+'-'+Date['now']()+_0x4449c3(0xb1)),await writeFile(_0x4273e5,JSON['stringify'](_0x48f8f2,null,0x2));}catch(_0x18028b){_0x29aacf&&await _0x59b9ec[_0x4449c3(0x105)](unlink,_0x29aacf)[_0x4449c3(0xd3)](()=>{});throw _0x18028b;}return{'configPath':_0x4273e5,'storageStatePath':_0x19b5f8,'tempAuthPath':_0x29aacf,'outputDir':_0x5012bd};}export async function buildNovaActCliConfig(_0x1ceefd,_0xbd285c,_0x2ef38f,_0x5e90c6,_0x22265a){const _0x2bceab=_0x1caa8c,_0x196361={'RQxsK':function(_0xed89df,_0x55db00){return _0xed89df(_0x55db00);},'uQPLW':function(_0x35518f){return _0x35518f();},'bqamJ':function(_0x1bb35d,_0x265439,_0x32b008){return _0x1bb35d(_0x265439,_0x32b008);},'QZvdV':function(_0x25d34c,_0x143ed3,_0x18ea30){return _0x25d34c(_0x143ed3,_0x18ea30);},'HBEGf':'string','eczxq':function(_0x43da73,_0x4376c3){return _0x43da73(_0x4376c3);}},{storageStatePath:_0x4483a9,tempAuthPath:_0x9990ca}=_0x22265a?{'storageStatePath':_0x22265a,'tempAuthPath':undefined}:await _0x196361[_0x2bceab(0x94)](resolveLocalAuthPath,getEnvDir(_0xbd285c)),_0x37a573=_0x2ef38f||_0x196361[_0x2bceab(0xfc)](randomUUID),_0x20b42c=join(getRangerDir(),_0x2bceab(0x100),_0x37a573),_0x1e497a=_0x196361['bqamJ'](join,_0x20b42c,'nova-user-data'),_0x2f4b11=_0x4483a9?_0x196361[_0x2bceab(0x9d)](join,_0x1e497a,'Default'):undefined,{launchOptions:_0x412b0d,contextOptions:_0x2c3efc}=_0x196361['QZvdV'](buildBrowserOptionsFromSettings,_0x1ceefd,{'headless':_0x5e90c6?![]:_0x1ceefd['headless']??!![],'storageStatePath':_0x4483a9});if(process['getuid']?.()===0x0){const _0x7fd907=['--no-sandbox',_0x2bceab(0xb0)],_0x322e8d=_0x412b0d[_0x2bceab(0xb6)]??[],_0x58f09e=_0x7fd907[_0x2bceab(0xae)](_0x24e399=>!_0x322e8d[_0x2bceab(0xb7)](_0x24e399));_0x412b0d['args']=[..._0x322e8d,..._0x58f09e];}const _0x3a04b1=typeof _0x412b0d['executablePath']===_0x196361[_0x2bceab(0xc0)]?_0x412b0d[_0x2bceab(0xd2)]:_0x4483a9?chromium['executablePath']():undefined;return{'storageStatePath':_0x4483a9,'tempAuthPath':_0x9990ca,'baseUrl':_0x1ceefd['baseUrl'],'headless':_0x196361[_0x2bceab(0x94)](Boolean,_0x412b0d[_0x2bceab(0x9c)]),'userDataDir':_0x1e497a,'browserProfilePath':_0x2f4b11,'executablePath':_0x3a04b1,'launchArgs':Array['isArray'](_0x412b0d[_0x2bceab(0xb6)])?_0x412b0d[_0x2bceab(0xb6)][_0x2bceab(0xae)](_0x2f8b01=>typeof _0x2f8b01==='string'):[],'userAgent':typeof _0x2c3efc[_0x2bceab(0xcf)]==='string'?_0x2c3efc['userAgent']:undefined,'extraHTTPHeaders':_0x2c3efc['extraHTTPHeaders'],'allowInsecureLocalhost':_0x196361['RQxsK'](Boolean,_0x1ceefd[_0x2bceab(0x99)]),'safeMode':_0x196361['eczxq'](Boolean,_0x1ceefd[_0x2bceab(0xbd)]),'cdpEndpoint':_0x1ceefd['cdpEndpoint'],'isCdpMode':Boolean(_0x1ceefd['cdpEndpoint'])};}export function getNestedValue(_0x14b8c8,_0x3b6b2b){const _0xa2eed5=parseKeyPath(_0x3b6b2b);let _0x459dfc=_0x14b8c8;for(const _0x1edbf3 of _0xa2eed5){if(_0x459dfc===null||_0x459dfc===undefined||typeof _0x459dfc!=='object')return undefined;_0x459dfc=_0x459dfc[_0x1edbf3];}return _0x459dfc;}export function setNestedValue(_0x17c608,_0x164b79,_0x33819d){const _0x389cd1=_0x1caa8c,_0x3e1282={'EytEA':function(_0x4b4e85,_0x18fc7f){return _0x4b4e85(_0x18fc7f);},'jwYFK':function(_0x27f076,_0xe561c9){return _0x27f076<_0xe561c9;},'doFXx':function(_0x4b1cf8,_0x28e38d){return _0x4b1cf8 in _0x28e38d;},'SQjpI':function(_0x30ee5d,_0x4a132e){return _0x30ee5d!==_0x4a132e;},'XXRWk':_0x389cd1(0xe8)},_0x60c29e=_0x3e1282['EytEA'](parseKeyPath,_0x164b79);let _0x173200=_0x17c608;for(let _0x12c658=0x0;_0x3e1282['jwYFK'](_0x12c658,_0x60c29e[_0x389cd1(0x93)]-0x1);_0x12c658++){const _0x31d3c4=_0x60c29e[_0x12c658];(!_0x3e1282['doFXx'](_0x31d3c4,_0x173200)||_0x3e1282[_0x389cd1(0xa3)](typeof _0x173200[_0x31d3c4],_0x3e1282[_0x389cd1(0x97)]))&&(_0x173200[_0x31d3c4]={}),_0x173200=_0x173200[_0x31d3c4];}_0x173200[_0x60c29e[_0x60c29e[_0x389cd1(0x93)]-0x1]]=_0x33819d;}export function deleteNestedValue(_0x2444cb,_0x347ffc){const _0x212a76=_0x1caa8c,_0x5606fd={'kvFzG':function(_0x2b884a,_0x4e3d37){return _0x2b884a(_0x4e3d37);},'hsCTW':function(_0xe20c29,_0x5b0093){return _0xe20c29<_0x5b0093;},'tfKmo':function(_0x225d1a,_0x3b648a){return _0x225d1a===_0x3b648a;},'YIdVH':function(_0x49d89c,_0xcca95a){return _0x49d89c!==_0xcca95a;},'BrjGk':_0x212a76(0xe8),'BPxgi':function(_0x446f39,_0xbd5d82){return _0x446f39===_0xbd5d82;},'jZBxD':function(_0x847bca,_0x5191c2){return _0x847bca in _0x5191c2;}},_0x5493da=_0x5606fd['kvFzG'](parseKeyPath,_0x347ffc);let _0x2bb80d=_0x2444cb;for(let _0x4a9038=0x0;_0x5606fd['hsCTW'](_0x4a9038,_0x5493da['length']-0x1);_0x4a9038++){if(_0x5606fd[_0x212a76(0xbe)](_0x2bb80d,null)||_0x5606fd['tfKmo'](_0x2bb80d,undefined)||_0x5606fd['YIdVH'](typeof _0x2bb80d,_0x5606fd['BrjGk']))return![];_0x2bb80d=_0x2bb80d[_0x5493da[_0x4a9038]];}if(_0x5606fd['BPxgi'](_0x2bb80d,null)||_0x2bb80d===undefined||typeof _0x2bb80d!==_0x212a76(0xe8))return![];const _0x373b5b=_0x5493da[_0x5493da['length']-0x1];if(_0x5606fd['jZBxD'](_0x373b5b,_0x2bb80d))return delete _0x2bb80d[_0x373b5b],!![];return![];}function parseKeyPath(_0x238739){const _0x5d9271=_0x1caa8c,_0x4090fb={'dNiYk':_0x5d9271(0xb5),'Hicey':'setupHeaders'},_0x2cafd6=_0x238739[_0x5d9271(0xb9)]('.');return _0x2cafd6[0x0]===_0x4090fb['dNiYk']&&(_0x2cafd6[0x0]='headers'),_0x2cafd6[0x0]===_0x5d9271(0xd4)&&(_0x2cafd6[0x0]=_0x4090fb[_0x5d9271(0xfb)]),_0x2cafd6;}export function formatSettings(_0x34fa86,_0x97c126=0x0){const _0x23b917=_0x1caa8c,_0x5e4a0c={'gjZtZ':function(_0x3db65d,_0xf03835){return _0x3db65d===_0xf03835;},'lZPbE':function(_0x157d39,_0x284c4a){return _0x157d39!==_0x284c4a;}},_0x4d07e3=[],_0x576c00='\x20\x20'[_0x23b917(0xba)](_0x97c126);for(const [_0x4500ed,_0x8493ab]of Object[_0x23b917(0xaa)](_0x34fa86)){if(_0x5e4a0c['gjZtZ'](_0x8493ab,undefined))continue;if(typeof _0x8493ab==='object'&&_0x5e4a0c['lZPbE'](_0x8493ab,null)){_0x4d07e3['push'](''+_0x576c00+_0x4500ed+':');for(const [_0x473dbd,_0x4049ea]of Object['entries'](_0x8493ab)){_0x4d07e3[_0x23b917(0x98)](_0x576c00+'\x20\x20'+_0x473dbd+':\x20'+_0x4049ea);}}else _0x4d07e3['push'](''+_0x576c00+_0x4500ed+':\x20'+_0x8493ab);}return _0x4d07e3['join']('\x0a');}
1
+ const _0x5decd5=_0x160c;(function(_0x1a0c52,_0x4f5576){const _0x3674a9=_0x160c,_0x538634=_0x1a0c52();while(!![]){try{const _0x313caa=parseInt(_0x3674a9(0x1ab))/0x1+parseInt(_0x3674a9(0x1a3))/0x2+parseInt(_0x3674a9(0x193))/0x3+-parseInt(_0x3674a9(0x1b2))/0x4+parseInt(_0x3674a9(0x19d))/0x5+parseInt(_0x3674a9(0x1b6))/0x6*(-parseInt(_0x3674a9(0x1d8))/0x7)+parseInt(_0x3674a9(0x1b7))/0x8;if(_0x313caa===_0x4f5576)break;else _0x538634['push'](_0x538634['shift']());}catch(_0x150187){_0x538634['push'](_0x538634['shift']());}}}(_0x2a28,0x5823d));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x2a28(){const _0x1c6455=['parse','launchOptions','warn','all','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','SwlOs','qwxcC','jGXNV','Nodii','FxtRM','auth.json','zGuOR','settings.json','object','now','\x22\x20to\x20legacy\x20path\x20','InkAX','storageState','--no-sandbox','Ivjan','GuTCH','Refusing\x20to\x20write\x20profile\x20\x22','indexOf','vfXVr','auth.json.enc','mSIHl','RqvJe','jBopz','includes','OenvK','MlBdU','string','tPjIp','rangerDir','ranger-auth-','eyxOV','xJObJ','wovod','jyNtk','userAgent','GUamS','headers','pdf','filter','1200027taIVgb','WFeJq','vgtul','oNdOk','jnOBm','message','keys','--disable-features=WebBluetooth','-cli','setupHeader','628025ZHPgUy','aJjyl','catch','clipboard-read','QRdKw','push','259842xXkQgx','PzypC','length','KffAi','QmPQN','VUAqN','DwOyT','YoUui','28479VJzyeI','chromium','yboFW','env','utf-8','extraHTTPHeaders','GEhuU','2628828TSPBhz','vJoGw','sessions','qcJxn','90YorvuL','5930272kbeWQm','tTGuV','aIVWR','uamaO','zPlXp','ENOENT','ttBRY','contextOptions','local','executablePath','none','sVubz','configPath','allow','getuid','path','LJXfA','Failed\x20to\x20decrypt\x20auth\x20state:\x20','--allow-running-insecure-content','XtzuH','huUUl','setupHeaders','nvsRP','dNmFQ','fromEntries','browser','IiOTq','KaDfj','ignoreHTTPSErrors','headless','Rbvjg','args','Elycq','189966LXnhqk','ixuit','wiTAT','cdpEndpoint','YlNki','Environment\x20variable\x20','ranger-config','.json','isArray','core','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','safeMode'];_0x2a28=function(){return _0x1c6455;};return _0x2a28();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x2c877a,_0x62dcb3){const _0x407894=_0x160c,_0x415d1f={'QmPQN':function(_0x44cfde,_0x444df2,_0x492232,_0x78cbf0){return _0x44cfde(_0x444df2,_0x492232,_0x78cbf0);},'qcJxn':_0x407894(0x1bf),'GEhuU':function(_0x3c9099,_0x54212b,_0x356698){return _0x3c9099(_0x54212b,_0x356698);},'UxhNp':function(_0x166465,_0x57f574){return _0x166465(_0x57f574);},'sVubz':function(_0x1c121b,_0xc67819){return _0x1c121b!==_0xc67819;},'LoFuq':function(_0x2de61e,_0x5995d6){return _0x2de61e(_0x5995d6);}},_0x1c8d96=join(_0x62dcb3,'ci',_0x2c877a),_0x15e1f8=_0x415d1f[_0x407894(0x1a7)](join,_0x62dcb3,_0x415d1f['qcJxn'],_0x2c877a),_0xd0214a=_0x415d1f['GEhuU'](join,_0x62dcb3,_0x2c877a),_0x5eb45d=_0x415d1f['GEhuU'](join,_0x62dcb3,_0x415d1f[_0x407894(0x1b5)]),_0x1e89cb=_0x415d1f[_0x407894(0x1b1)](join,_0x62dcb3,'ci');if(existsSync(_0x1c8d96))return _0x1c8d96;if(_0x415d1f['UxhNp'](existsSync,_0x15e1f8))return _0x15e1f8;if(existsSync(_0xd0214a)&&(_0xd0214a!==_0x5eb45d&&_0x415d1f[_0x407894(0x1c2)](_0xd0214a,_0x1e89cb)?!![]:_0x415d1f['LoFuq'](hasLegacyProfileFiles,_0xd0214a)))return _0xd0214a;return null;}export function getEnvDir(_0x406c5b,_0x395aab={}){const _0x4e77ef=_0x160c,_0x37eea9={'JpIkT':function(_0x32e3b0){return _0x32e3b0();},'pVDlG':function(_0x2b97ac,_0x166600){return _0x2b97ac(_0x166600);},'DUgto':function(_0x525b9d,_0x45edf7,_0x289de3){return _0x525b9d(_0x45edf7,_0x289de3);},'tXfyx':function(_0x4efb66,_0x211fb2){return _0x4efb66(_0x211fb2);},'zPlXp':_0x4e77ef(0x1bf)},_0x2b836a=_0x37eea9['JpIkT'](getRangerDir),_0x9b9679=findEnvInRoot(_0x406c5b,_0x2b836a);if(_0x9b9679){if(_0x395aab['forWrite']&&_0x37eea9['pVDlG'](isLegacyEnvPath,_0x9b9679))throw legacyWriteError(_0x406c5b,_0x9b9679);return _0x9b9679;}const _0x1b170c=getRangerHomeDir();if(_0x1b170c!==_0x2b836a){const _0x458150=_0x37eea9['DUgto'](findEnvInRoot,_0x406c5b,_0x1b170c);if(_0x458150){if(_0x395aab['forWrite']&&_0x37eea9['tXfyx'](isLegacyEnvPath,_0x458150))throw legacyWriteError(_0x406c5b,_0x458150);return _0x458150;}}const _0x5cf5b0=join(_0x1b170c,_0x37eea9[_0x4e77ef(0x1bb)],_0x406c5b);if(_0x395aab['forWrite'])throw legacyWriteError(_0x406c5b,_0x5cf5b0);return _0x5cf5b0;}function isLegacyEnvPath(_0x3e263a){const _0x2398be=_0x160c,_0x5e62d2={'PzypC':function(_0x58b2d0,_0x402218){return _0x58b2d0+_0x402218;},'InkAX':function(_0x21a94b,_0x28742c){return _0x21a94b===_0x28742c;}},_0x3cc1e3=getRangerDir(),_0x76b5a5=getRangerHomeDir();for(const _0x2a50e4 of new Set([_0x3cc1e3,_0x76b5a5])){const _0x5d2108=_0x2a50e4['endsWith']('/')?_0x2a50e4:_0x5e62d2[_0x2398be(0x1a4)](_0x2a50e4,'/');if(_0x5e62d2[_0x2398be(0x1f4)](_0x3e263a,_0x2a50e4)||_0x3e263a['startsWith'](_0x5d2108))return!![];}return![];}function legacyWriteError(_0x33f635,_0x58067a){const _0x3eacaf=_0x160c,_0x25bb4c={'KaDfj':function(_0x11c752,_0x1157c7){return _0x11c752+_0x1157c7;},'mSIHl':function(_0xcf6ace,_0x1f680e){return _0xcf6ace+_0x1f680e;}};return new Error(_0x25bb4c['KaDfj'](_0x25bb4c[_0x3eacaf(0x1fd)](_0x25bb4c[_0x3eacaf(0x1d2)](_0x3eacaf(0x1f9)+_0x33f635+_0x3eacaf(0x1f3)+_0x58067a+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),_0x3eacaf(0x1e2)),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}function _0x160c(_0x2170b7,_0x459e9a){_0x2170b7=_0x2170b7-0x18c;const _0x2a28e6=_0x2a28();let _0x160c76=_0x2a28e6[_0x2170b7];return _0x160c76;}export function findExistingEnv(_0x4c8b35,_0x95afc3){const _0x1b8a33=_0x160c,_0x5f308b={'aEkZQ':function(_0x2909d8){return _0x2909d8();},'eyxOV':_0x1b8a33(0x1bf),'ixuit':'legacy','XwSqM':function(_0x5c1f37,_0x57c7a3,_0x4d29ff){return _0x5c1f37(_0x57c7a3,_0x4d29ff);},'Nodii':function(_0x519a04,_0x28b0f5,_0x5b260b){return _0x519a04(_0x28b0f5,_0x5b260b);},'YlNki':function(_0x2f41a4,_0x568616,_0xeb2ff4,_0x5c803e){return _0x2f41a4(_0x568616,_0xeb2ff4,_0x5c803e);},'vtqih':function(_0x1556e1,_0x527517,_0xd5b451){return _0x1556e1(_0x527517,_0xd5b451);},'Ivjan':function(_0x1e2ac0,_0x27f01b){return _0x1e2ac0===_0x27f01b;},'ttBRY':function(_0x5bf09c,_0x3318c6){return _0x5bf09c(_0x3318c6);}},_0x405d39=_0x95afc3?.[_0x1b8a33(0x205)],_0x3442b6=_0x405d39?[_0x405d39]:[getRangerDir(),_0x5f308b['aEkZQ'](getRangerHomeDir)]['filter']((_0x23f0c2,_0x632e26,_0xdaf52b)=>_0xdaf52b[_0x1b8a33(0x1fa)](_0x23f0c2)===_0x632e26),_0x2dd9df=_0x95afc3?.['locations']??['ci',_0x5f308b[_0x1b8a33(0x207)],_0x5f308b['ixuit']];for(const _0x471d40 of _0x3442b6){const _0x5d1e6a=_0x5f308b['XwSqM'](join,_0x471d40,_0x5f308b['eyxOV']),_0x3be979=_0x5f308b[_0x1b8a33(0x1ec)](join,_0x471d40,'ci'),_0x516723=[{'location':'ci','path':_0x5f308b[_0x1b8a33(0x1dc)](join,_0x471d40,'ci',_0x4c8b35)},{'location':_0x1b8a33(0x1bf),'path':join(_0x471d40,_0x5f308b[_0x1b8a33(0x207)],_0x4c8b35)},{'location':_0x5f308b[_0x1b8a33(0x1d9)],'path':_0x5f308b['vtqih'](join,_0x471d40,_0x4c8b35)}];for(const _0x403249 of _0x516723){if(_0x2dd9df[_0x1b8a33(0x200)](_0x403249['location'])&&existsSync(_0x403249[_0x1b8a33(0x1c6)])){if(_0x5f308b['Ivjan'](_0x403249['location'],'legacy')&&(_0x403249[_0x1b8a33(0x1c6)]===_0x5d1e6a||_0x5f308b[_0x1b8a33(0x1f7)](_0x403249['path'],_0x3be979))&&!_0x5f308b[_0x1b8a33(0x1bd)](hasLegacyProfileFiles,_0x403249[_0x1b8a33(0x1c6)]))continue;return{'path':_0x403249[_0x1b8a33(0x1c6)],'location':_0x403249['location']};}}}return null;}function hasLegacyProfileFiles(_0x25dc12){const _0x457c79=_0x160c,_0x3ce8c3={'JOaWT':function(_0x17ac1a,_0x549165){return _0x17ac1a(_0x549165);},'vfXVr':function(_0xaaf958,_0xac10fc,_0x3cbb32){return _0xaaf958(_0xac10fc,_0x3cbb32);},'uSubs':_0x457c79(0x1fc)};return _0x3ce8c3['JOaWT'](existsSync,join(_0x25dc12,_0x457c79(0x1f0)))||_0x3ce8c3['JOaWT'](existsSync,_0x3ce8c3[_0x457c79(0x1fb)](join,_0x25dc12,_0x457c79(0x1ee)))||existsSync(_0x3ce8c3['vfXVr'](join,_0x25dc12,_0x3ce8c3['uSubs']));}export function isEnvCi(_0x1649d1){const _0x2bf13e=_0x160c,_0x1c4a86={'vJoGw':function(_0x3f1322,_0x5aa41b){return _0x3f1322(_0x5aa41b);},'huUUl':function(_0x1251b9){return _0x1251b9();},'TrCvt':function(_0x4db127,_0x587f69){return _0x4db127!==_0x587f69;}};if(_0x1c4a86[_0x2bf13e(0x1b3)](existsSync,join(_0x1c4a86['huUUl'](getRangerDir),'ci',_0x1649d1)))return!![];const _0x2c9507=_0x1c4a86[_0x2bf13e(0x1cb)](getRangerHomeDir);if(_0x1c4a86['TrCvt'](_0x2c9507,getRangerDir())&&existsSync(join(_0x2c9507,'ci',_0x1649d1)))return!![];return![];}export async function cleanupTempFiles(_0x536c33){const _0x2c9136=_0x160c,_0x531468={'IiOTq':_0x2c9136(0x1bc)},_0x28a08f=[_0x536c33['tempAuthPath'],_0x536c33[_0x2c9136(0x1c3)]]['filter'](Boolean);await Promise[_0x2c9136(0x1e7)](_0x28a08f['map'](_0x897259=>unlink(_0x897259)['catch'](_0xda2271=>{const _0x2bd86d=_0x2c9136;_0xda2271['code']!==_0x531468[_0x2bd86d(0x1d1)]&&console[_0x2bd86d(0x1e6)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x897259+':',_0xda2271[_0x2bd86d(0x198)]);})));}export function getSettingsPath(_0x5d37fb){const _0x1a35ab=_0x160c;return join(getEnvDir(_0x5d37fb),_0x1a35ab(0x1f0));}export async function loadSettings(_0x1adb37){const _0x4dd84e=_0x160c,_0x513371={'kBHcs':function(_0x249eb3,_0x46bc6e){return _0x249eb3(_0x46bc6e);}},_0x5b05ad=getSettingsPath(_0x1adb37);if(!_0x513371['kBHcs'](existsSync,_0x5b05ad))return{};try{const _0x252a14=await readFile(_0x5b05ad,_0x4dd84e(0x1af));return JSON[_0x4dd84e(0x1e4)](_0x252a14);}catch{return{};}}export async function saveSettings(_0x3edf20,_0x312bc3){const _0x369c9a={'SCVmN':function(_0x11e4b3,_0x4fd662){return _0x11e4b3(_0x4fd662);},'gBujP':function(_0x4eabc1,_0x3fc56b,_0x8bbe80){return _0x4eabc1(_0x3fc56b,_0x8bbe80);}},_0x2bf79c=getSettingsPath(_0x3edf20),_0xf79436=_0x369c9a['SCVmN'](dirname,_0x2bf79c);!existsSync(_0xf79436)&&await mkdir(_0xf79436,{'recursive':!![]}),await _0x369c9a['gBujP'](writeFile,_0x2bf79c,JSON['stringify'](_0x312bc3,null,0x2));}export function resolveEnvVars(_0x2cebff){const _0x264d8c=_0x160c,_0x33c9ee={'KvkOH':function(_0x561ca5,_0x5774aa){return _0x561ca5===_0x5774aa;},'Elycq':function(_0x5a94c9,_0xc874e5){return _0x5a94c9===_0xc874e5;},'MWjSB':_0x264d8c(0x203),'xJObJ':'object'};if(_0x33c9ee[_0x264d8c(0x1d7)](typeof _0x2cebff,_0x33c9ee['MWjSB']))return _0x2cebff['replace'](/\$\{(\w+)\}/g,(_0x129a9f,_0x25e9f3)=>{const _0x598223=_0x264d8c,_0x2f0e9d=process[_0x598223(0x1ae)][_0x25e9f3];if(_0x33c9ee['KvkOH'](_0x2f0e9d,undefined))throw new Error(_0x598223(0x1dd)+_0x25e9f3+'\x20is\x20not\x20set');return _0x2f0e9d;});if(Array['isArray'](_0x2cebff))return _0x2cebff['map'](resolveEnvVars);if(_0x2cebff&&typeof _0x2cebff===_0x33c9ee[_0x264d8c(0x208)])return Object[_0x264d8c(0x1cf)](Object['entries'](_0x2cebff)['map'](([_0x3a9ad7,_0x3b51f2])=>[_0x3a9ad7,resolveEnvVars(_0x3b51f2)]));return _0x2cebff;}const isRecord=_0x2f37aa=>typeof _0x2f37aa===_0x5decd5(0x1f1)&&_0x2f37aa!==null&&!Array[_0x5decd5(0x1e0)](_0x2f37aa),asRecord=_0xb57a28=>isRecord(_0xb57a28)?_0xb57a28:undefined,mergeHeaders=(_0x5deccc,_0x5d51af)=>{const _0x5c6de4=_0x5decd5,_0x314405={'yboFW':function(_0x1be5bb,_0xac5d9b){return _0x1be5bb??_0xac5d9b;}},_0x55d7f6={..._0x314405[_0x5c6de4(0x1ad)](_0x5deccc,{}),..._0x314405['yboFW'](_0x5d51af,{})};return Object[_0x5c6de4(0x199)](_0x55d7f6)['length']?_0x55d7f6:undefined;},SAFE_MODE_ARGS=[_0x5decd5(0x19a)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x5decd5(0x1c9),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5c8f9e,_0x14dfba={}){const _0x1a77dd=_0x5decd5,_0x471f48={'RPjNx':function(_0x4dd741,_0x8da1e4){return _0x4dd741(_0x8da1e4);},'oNdOk':function(_0x13d0b4,_0x43acd8){return _0x13d0b4(_0x43acd8);},'wgatZ':'boolean','ZHyzs':function(_0x54db08,_0x135660){return _0x54db08(_0x135660);},'HZFSc':'string'},_0x53fc32=_0x471f48['RPjNx'](asRecord,_0x5c8f9e[_0x1a77dd(0x1d0)]),_0x2bbd57={..._0x471f48[_0x1a77dd(0x196)](asRecord,_0x53fc32?.[_0x1a77dd(0x1e5)])??{}};typeof _0x14dfba[_0x1a77dd(0x1d4)]===_0x471f48['wgatZ']&&(_0x2bbd57['headless']=_0x14dfba['headless']);if(_0x5c8f9e[_0x1a77dd(0x1e3)]){const _0x3d7956=_0x2bbd57[_0x1a77dd(0x1d6)]??[],_0x35789a=SAFE_MODE_ARGS['filter'](_0x4b4374=>!_0x3d7956['includes'](_0x4b4374));_0x2bbd57['args']=[..._0x3d7956,..._0x35789a];}if(_0x5c8f9e['allowInsecureLocalhost']){const _0x1c4c10=_0x2bbd57[_0x1a77dd(0x1d6)]??[],_0x50d483=ALLOW_LOCALHOST_ARGS['filter'](_0x500b3a=>!_0x1c4c10['includes'](_0x500b3a));_0x2bbd57['args']=[..._0x1c4c10,..._0x50d483];}const _0x5a9913={..._0x471f48['ZHyzs'](asRecord,_0x53fc32?.['contextOptions'])??{}};_0x5a9913[_0x1a77dd(0x1d3)]=!![];typeof _0x5c8f9e[_0x1a77dd(0x18e)]===_0x471f48['HZFSc']&&(_0x5a9913['userAgent']=_0x5c8f9e['userAgent']);const _0x1f5ff5=mergeHeaders(_0x471f48['oNdOk'](asRecord,_0x5a9913['extraHTTPHeaders']),asRecord(_0x5c8f9e[_0x1a77dd(0x190)]));return _0x1f5ff5?_0x5a9913['extraHTTPHeaders']=_0x1f5ff5:delete _0x5a9913[_0x1a77dd(0x1b0)],_0x14dfba['storageStatePath']&&(_0x5a9913[_0x1a77dd(0x1f5)]=_0x14dfba['storageStatePath']),{'launchOptions':_0x2bbd57,'contextOptions':_0x5a9913};}export async function resolveProfileStorageState(_0x10e9b4){const _0x3f78e5=_0x5decd5,_0x4914bd={'uamaO':function(_0x1ecb27,_0x24fa8d){return _0x1ecb27(_0x24fa8d);},'XtzuH':function(_0x59048d,_0x52d139){return _0x59048d(_0x52d139);}};return _0x4914bd[_0x3f78e5(0x1ba)](resolveLocalAuthPath,_0x4914bd[_0x3f78e5(0x1ca)](getEnvDir,_0x10e9b4));}async function resolveLocalAuthPath(_0x2988ff){const _0x9a850f=_0x5decd5,_0x55931b={'dJwYN':function(_0x4f28d5,_0x557a87,_0x111b23){return _0x4f28d5(_0x557a87,_0x111b23);},'RqvJe':function(_0x163d2e,_0x440620,_0xf7a756){return _0x163d2e(_0x440620,_0xf7a756);},'Qavlv':function(_0x2faf76){return _0x2faf76();},'KffAi':function(_0xf53507,_0x3fb746){return _0xf53507(_0x3fb746);}},_0x5cbba3=_0x55931b['dJwYN'](join,_0x2988ff,'auth.json.enc'),_0x5ee2c4=_0x55931b[_0x9a850f(0x1fe)](join,_0x2988ff,'auth.json');if(existsSync(_0x5cbba3))try{const _0xdb3911=await _0x55931b['Qavlv'](getToken);if(!_0xdb3911)throw new Error(_0x9a850f(0x1e8));const _0x487357=await _0x55931b[_0x9a850f(0x1a6)](readFile,_0x5cbba3),_0x2875a6=_0x55931b['dJwYN'](decrypt,_0x487357,_0xdb3911),_0x17f54c=join(_0x55931b['Qavlv'](tmpdir),_0x9a850f(0x206)+Date[_0x9a850f(0x1f2)]()+'.json');return await writeFile(_0x17f54c,_0x2875a6),{'storageStatePath':_0x17f54c,'tempAuthPath':_0x17f54c};}catch(_0x5753d7){const _0x126619=_0x5753d7 instanceof Error?_0x5753d7[_0x9a850f(0x198)]:String(_0x5753d7);throw new Error(_0x9a850f(0x1c8)+_0x126619);}if(_0x55931b[_0x9a850f(0x1a6)](existsSync,_0x5ee2c4))return{'storageStatePath':_0x5ee2c4};return{};}export async function buildPlaywrightConfig(_0x54334f,_0x3d3dad,_0x34eb3d,_0x527bb9,_0x107f3d){const _0x498a4b=_0x5decd5,_0x3f0148={'jyNtk':function(_0x40dd84,_0x115d2f){return _0x40dd84(_0x115d2f);},'jBopz':function(_0x3ad2d4,_0x2d3aff,_0x29a0f8,_0x5d26cb,_0xe82f87,_0x105448,_0x530e7a){return _0x3ad2d4(_0x2d3aff,_0x29a0f8,_0x5d26cb,_0xe82f87,_0x105448,_0x530e7a);}};if(_0x107f3d)return buildPlaywrightConfigCore(_0x54334f,_0x107f3d,_0x3d3dad,_0x34eb3d,_0x527bb9,'stagehand');const {storageStatePath:_0x20030f,tempAuthPath:_0x4fbd3f}=await resolveLocalAuthPath(_0x3f0148[_0x498a4b(0x18d)](getEnvDir,_0x3d3dad));try{const _0x2a1225=await _0x3f0148[_0x498a4b(0x1ff)](buildPlaywrightConfigCore,_0x54334f,_0x20030f,_0x3d3dad,_0x34eb3d,_0x527bb9,'stagehand');return{..._0x2a1225,'tempAuthPath':_0x4fbd3f};}catch(_0x168ce3){_0x4fbd3f&&await unlink(_0x4fbd3f)['catch'](()=>{});throw _0x168ce3;}}export async function buildPlaywrightConfigCore(_0x2abe92,_0x3fa1f1,_0x41b10a,_0x38f252,_0x377fe1,_0xca82f5='stagehand'){const _0x28256d=_0x5decd5,_0x3d4035={'niqVP':function(_0x3bbba4,_0x352549,_0x3a3d13){return _0x3bbba4(_0x352549,_0x3a3d13);},'DwOyT':_0x28256d(0x1f6),'YoUui':'--disable-setuid-sandbox','ofAxD':'clipboard-write','SwlOs':function(_0x4dcc5d,_0x5a601b,_0x246233,_0xfcb72d){return _0x4dcc5d(_0x5a601b,_0x246233,_0xfcb72d);},'aIVWR':function(_0x552341){return _0x552341();},'HYZqj':'sessions','aJjyl':_0x28256d(0x1e1),'vgtul':'install','TmdDI':_0x28256d(0x191),'QRdKw':'vision','tTGuV':_0x28256d(0x1c4),'DKqbz':function(_0x2331ae,_0x18c41d){return _0x2331ae===_0x18c41d;},'qwxcC':'ranger-config','qZBBg':function(_0x39e52e,_0x3f6aea){return _0x39e52e(_0x3f6aea);}},_0x44e8e3=_0x38f252||randomUUID(),_0x1851c3=_0x3d4035[_0x28256d(0x1e9)](join,_0x3d4035[_0x28256d(0x1b9)](getRangerDir),_0x3d4035['HYZqj'],_0x44e8e3),_0x38d203=Boolean(_0x2abe92['cdpEndpoint']),_0x29035d=_0x38d203?{'browserName':_0x28256d(0x1ac),'cdpEndpoint':_0x2abe92[_0x28256d(0x1db)]}:((()=>{const _0x320ad2=_0x28256d,{launchOptions:_0x50ad1e,contextOptions:_0x13a7f4}=_0x3d4035['niqVP'](buildBrowserOptionsFromSettings,_0x2abe92,{'headless':_0x377fe1?![]:_0x2abe92[_0x320ad2(0x1d4)]??!![],'storageStatePath':_0x3fa1f1});if(process['getuid']?.()===0x0){const _0xa86fc4=[_0x3d4035[_0x320ad2(0x1a9)],_0x3d4035[_0x320ad2(0x1aa)]],_0x5e5bd7=_0x50ad1e[_0x320ad2(0x1d6)]??[],_0x2a96e2=_0xa86fc4['filter'](_0x40c6ff=>!_0x5e5bd7['includes'](_0x40c6ff));_0x50ad1e['args']=[..._0x5e5bd7,..._0x2a96e2];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x50ad1e,'contextOptions':{..._0x13a7f4,'permissions':[_0x320ad2(0x1a0),_0x3d4035['ofAxD']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x226fc4=_0xca82f5==='playwright-cli'?{'browser':_0x29035d,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1851c3,'outputMode':'file','codegen':_0x28256d(0x1c1)}:{'name':_0x41b10a,'browser':_0x29035d,'capabilities':[_0x3d4035[_0x28256d(0x19e)],'tabs',_0x3d4035[_0x28256d(0x195)],_0x3d4035['TmdDI'],_0x3d4035[_0x28256d(0x1a1)]],'imageResponses':_0x3d4035[_0x28256d(0x1b8)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1851c3};if(!_0x38d203){const _0x404af3=_0x226fc4[_0x28256d(0x1d0)],_0x4a4a54=_0x404af3[_0x28256d(0x1be)];if(_0x3d4035['DKqbz'](_0x4a4a54[_0x28256d(0x18e)],undefined))delete _0x4a4a54['userAgent'];if(_0x4a4a54[_0x28256d(0x1f5)]===undefined)delete _0x4a4a54[_0x28256d(0x1f5)];}const _0x3b6793=_0x3d4035['niqVP'](join,tmpdir(),_0x3d4035[_0x28256d(0x1ea)]);!_0x3d4035['qZBBg'](existsSync,_0x3b6793)&&await mkdir(_0x3b6793,{'recursive':!![]});const _0x416f7d=_0xca82f5==='playwright-cli'?_0x28256d(0x19b):'',_0x452af4=join(_0x3b6793,_0x41b10a+'-'+Date['now']()+_0x416f7d+_0x28256d(0x1df));return await writeFile(_0x452af4,JSON['stringify'](_0x226fc4,null,0x2)),{'configPath':_0x452af4,'storageStatePath':_0x3fa1f1};}export async function buildPlaywrightCliConfig(_0x22fe5a,_0x22e565,_0x598aaa,_0x143e2e,_0x395479){const _0x324e14=_0x5decd5,_0x2a4032={'GuTCH':function(_0x506005,_0x52054c,_0x46e671,_0x18ceee,_0x10db6c,_0x2a254c,_0x309dd6){return _0x506005(_0x52054c,_0x46e671,_0x18ceee,_0x10db6c,_0x2a254c,_0x309dd6);},'dNmFQ':function(_0x4ae3d7,_0x23ec28){return _0x4ae3d7(_0x23ec28);},'zkvfu':'playwright-cli'};if(_0x395479)return _0x2a4032[_0x324e14(0x1f8)](buildPlaywrightConfigCore,_0x22fe5a,_0x395479,_0x22e565,_0x598aaa,_0x143e2e,'playwright-cli');const {storageStatePath:_0x1d7424,tempAuthPath:_0x2918c2}=await _0x2a4032['dNmFQ'](resolveLocalAuthPath,_0x2a4032[_0x324e14(0x1ce)](getEnvDir,_0x22e565));try{const _0x293e6e=await _0x2a4032['GuTCH'](buildPlaywrightConfigCore,_0x22fe5a,_0x1d7424,_0x22e565,_0x598aaa,_0x143e2e,_0x2a4032['zkvfu']);return{..._0x293e6e,'tempAuthPath':_0x2918c2};}catch(_0xf53af7){_0x2918c2&&await unlink(_0x2918c2)[_0x324e14(0x19f)](()=>{});throw _0xf53af7;}}export async function buildRangerwrightCliConfig(_0x408e78,_0x3dcc73,_0x2db345,_0x31384e,_0x558563){const _0x8312a8=_0x5decd5,_0x208ca9={'GUamS':function(_0x35b582,_0x432b22){return _0x35b582(_0x432b22);},'PmdKF':function(_0x50f2af,_0x52fc14){return _0x50f2af(_0x52fc14);},'LEkRi':function(_0x35c7db,_0x5c02ff,_0x4b8193,_0xe82e01){return _0x35c7db(_0x5c02ff,_0x4b8193,_0xe82e01);},'FxtRM':_0x8312a8(0x1b4),'bMyzq':function(_0x27aed0,_0x1e81b8){return _0x27aed0(_0x1e81b8);},'OenvK':function(_0x473e96,_0x2aaa86){return _0x473e96===_0x2aaa86;},'WFeJq':function(_0x5e410c,_0x318880,_0x39f2bb){return _0x5e410c(_0x318880,_0x39f2bb);},'kutDn':_0x8312a8(0x1de)},{storageStatePath:_0x259173,tempAuthPath:_0x2af1f5}=_0x558563?{'storageStatePath':_0x558563,'tempAuthPath':undefined}:await _0x208ca9[_0x8312a8(0x18f)](resolveLocalAuthPath,_0x208ca9['PmdKF'](getEnvDir,_0x3dcc73)),_0x4e013a=_0x2db345||randomUUID(),_0x54aeed=_0x208ca9['LEkRi'](join,getRangerDir(),_0x208ca9[_0x8312a8(0x1ed)],_0x4e013a),_0x2f19e9=_0x208ca9['bMyzq'](Boolean,_0x408e78['cdpEndpoint']),_0x3ea955=_0x2f19e9?{'browserName':_0x8312a8(0x1ac),'cdpEndpoint':_0x408e78['cdpEndpoint']}:((()=>{const _0x815bcc=_0x8312a8,{launchOptions:_0x5e3fc5,contextOptions:_0x3bdebe}=buildBrowserOptionsFromSettings(_0x408e78,{'headless':_0x31384e?![]:_0x408e78[_0x815bcc(0x1d4)]??!![],'storageStatePath':_0x259173});if(process[_0x815bcc(0x1c5)]?.()===0x0){const _0x1a7387=['--no-sandbox','--disable-setuid-sandbox'],_0x4aec5e=_0x5e3fc5['args']??[],_0x9e917c=_0x1a7387[_0x815bcc(0x192)](_0x265e91=>!_0x4aec5e[_0x815bcc(0x200)](_0x265e91));_0x5e3fc5[_0x815bcc(0x1d6)]=[..._0x4aec5e,..._0x9e917c];}return{'browserName':'chromium','launchOptions':_0x5e3fc5,'contextOptions':{..._0x3bdebe,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x2f19e9){const _0x139ece=_0x3ea955['contextOptions'];if(_0x139ece){if(_0x208ca9[_0x8312a8(0x201)](_0x139ece[_0x8312a8(0x18e)],undefined))delete _0x139ece[_0x8312a8(0x18e)];if(_0x139ece['storageState']===undefined)delete _0x139ece[_0x8312a8(0x1f5)];}}const _0x4cd823={'browser':_0x3ea955,'outputDir':_0x54aeed,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x97c51f;try{const _0x5a69cb=_0x208ca9['WFeJq'](join,tmpdir(),_0x208ca9['kutDn']);!existsSync(_0x5a69cb)&&await _0x208ca9[_0x8312a8(0x194)](mkdir,_0x5a69cb,{'recursive':!![]}),_0x97c51f=join(_0x5a69cb,_0x3dcc73+'-'+Date[_0x8312a8(0x1f2)]()+'-rangerwright.json'),await _0x208ca9[_0x8312a8(0x194)](writeFile,_0x97c51f,JSON['stringify'](_0x4cd823,null,0x2));}catch(_0x5a9d30){_0x2af1f5&&await unlink(_0x2af1f5)[_0x8312a8(0x19f)](()=>{});throw _0x5a9d30;}return{'configPath':_0x97c51f,'storageStatePath':_0x259173,'tempAuthPath':_0x2af1f5,'outputDir':_0x54aeed};}export async function buildNovaActCliConfig(_0x9d3da4,_0x4926b6,_0x58e921,_0x5568fa,_0x2b8e7e){const _0x43d2de=_0x5decd5,_0x1582d7={'ApyJU':function(_0x583c8d){return _0x583c8d();},'tXOzk':function(_0x1e86f4,_0x3f31b7,_0x43f5be){return _0x1e86f4(_0x3f31b7,_0x43f5be);},'wiTAT':'Default','cbXeH':function(_0x1ada29,_0x26ddb2){return _0x1ada29===_0x26ddb2;},'uUxsm':'--disable-setuid-sandbox','vMWvc':function(_0x44d5b0,_0x20c0e2){return _0x44d5b0===_0x20c0e2;},'gbJGC':_0x43d2de(0x203),'CFQmr':function(_0x5e8c87,_0x4c3918){return _0x5e8c87(_0x4c3918);},'jGXNV':function(_0x2ca424,_0x2fe138){return _0x2ca424(_0x2fe138);}},{storageStatePath:_0x4c5d68,tempAuthPath:_0x4b5f3b}=_0x2b8e7e?{'storageStatePath':_0x2b8e7e,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x4926b6)),_0x5cb225=_0x58e921||randomUUID(),_0xd770c7=join(_0x1582d7['ApyJU'](getRangerDir),'sessions',_0x5cb225),_0xd0651e=join(_0xd770c7,'nova-user-data'),_0x1d56c0=_0x4c5d68?_0x1582d7['tXOzk'](join,_0xd0651e,_0x1582d7[_0x43d2de(0x1da)]):undefined,{launchOptions:_0x30251d,contextOptions:_0x38827e}=buildBrowserOptionsFromSettings(_0x9d3da4,{'headless':_0x5568fa?![]:_0x9d3da4['headless']??!![],'storageStatePath':_0x4c5d68});if(_0x1582d7['cbXeH'](process['getuid']?.(),0x0)){const _0x237075=[_0x43d2de(0x1f6),_0x1582d7['uUxsm']],_0x2b5db1=_0x30251d['args']??[],_0x4d78ce=_0x237075['filter'](_0xc44de7=>!_0x2b5db1[_0x43d2de(0x200)](_0xc44de7));_0x30251d[_0x43d2de(0x1d6)]=[..._0x2b5db1,..._0x4d78ce];}const _0x227a4c=_0x1582d7['vMWvc'](typeof _0x30251d[_0x43d2de(0x1c0)],_0x1582d7['gbJGC'])?_0x30251d[_0x43d2de(0x1c0)]:_0x4c5d68?chromium['executablePath']():undefined;return{'storageStatePath':_0x4c5d68,'tempAuthPath':_0x4b5f3b,'baseUrl':_0x9d3da4['baseUrl'],'headless':_0x1582d7['CFQmr'](Boolean,_0x30251d[_0x43d2de(0x1d4)]),'userDataDir':_0xd0651e,'browserProfilePath':_0x1d56c0,'executablePath':_0x227a4c,'launchArgs':Array[_0x43d2de(0x1e0)](_0x30251d[_0x43d2de(0x1d6)])?_0x30251d[_0x43d2de(0x1d6)]['filter'](_0x4d531d=>typeof _0x4d531d==='string'):[],'userAgent':typeof _0x38827e['userAgent']==='string'?_0x38827e['userAgent']:undefined,'extraHTTPHeaders':_0x38827e['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x9d3da4['allowInsecureLocalhost']),'safeMode':Boolean(_0x9d3da4[_0x43d2de(0x1e3)]),'cdpEndpoint':_0x9d3da4[_0x43d2de(0x1db)],'isCdpMode':_0x1582d7[_0x43d2de(0x1eb)](Boolean,_0x9d3da4[_0x43d2de(0x1db)])};}export function getNestedValue(_0x151803,_0x4f82a1){const _0x17d83c=_0x5decd5,_0x3aefc1={'zGuOR':function(_0x205956,_0x1da387){return _0x205956(_0x1da387);},'VUAqN':function(_0x4a85e7,_0x1da955){return _0x4a85e7===_0x1da955;},'rucjz':function(_0x495495,_0x46a53b){return _0x495495!==_0x46a53b;}},_0x10c784=_0x3aefc1[_0x17d83c(0x1ef)](parseKeyPath,_0x4f82a1);let _0x2f1193=_0x151803;for(const _0x4e777c of _0x10c784){if(_0x3aefc1[_0x17d83c(0x1a8)](_0x2f1193,null)||_0x2f1193===undefined||_0x3aefc1['rucjz'](typeof _0x2f1193,_0x17d83c(0x1f1)))return undefined;_0x2f1193=_0x2f1193[_0x4e777c];}return _0x2f1193;}export function setNestedValue(_0x3e9853,_0x2a341c,_0x190f07){const _0x421ac6=_0x5decd5,_0x28bad0={'mzURU':function(_0x504fd0,_0x7ee7d0){return _0x504fd0(_0x7ee7d0);},'wovod':function(_0x170e44,_0x55df79){return _0x170e44<_0x55df79;},'nvsRP':function(_0x2f47e0,_0x3220e0){return _0x2f47e0 in _0x3220e0;},'Rbvjg':function(_0x441c88,_0x248ba7){return _0x441c88!==_0x248ba7;},'samCm':function(_0x2106fc,_0xa04a8a){return _0x2106fc-_0xa04a8a;}},_0x373295=_0x28bad0['mzURU'](parseKeyPath,_0x2a341c);let _0xa29338=_0x3e9853;for(let _0x4205ac=0x0;_0x28bad0[_0x421ac6(0x18c)](_0x4205ac,_0x373295['length']-0x1);_0x4205ac++){const _0x323df4=_0x373295[_0x4205ac];(!_0x28bad0[_0x421ac6(0x1cd)](_0x323df4,_0xa29338)||_0x28bad0[_0x421ac6(0x1d5)](typeof _0xa29338[_0x323df4],_0x421ac6(0x1f1)))&&(_0xa29338[_0x323df4]={}),_0xa29338=_0xa29338[_0x323df4];}_0xa29338[_0x373295[_0x28bad0['samCm'](_0x373295['length'],0x1)]]=_0x190f07;}export function deleteNestedValue(_0x1ac523,_0x2fca32){const _0x415e91=_0x5decd5,_0x4efef3={'LJXfA':function(_0x153e18,_0x5a9feb){return _0x153e18<_0x5a9feb;},'jnOBm':function(_0x5c2429,_0xc5a5e1){return _0x5c2429-_0xc5a5e1;},'TTKJQ':'object','tPjIp':function(_0x3d23c1,_0x1fb3d4){return _0x3d23c1!==_0x1fb3d4;},'AvkuJ':function(_0x1add41,_0x21bc79){return _0x1add41 in _0x21bc79;}},_0x2e099b=parseKeyPath(_0x2fca32);let _0x51eca2=_0x1ac523;for(let _0x4b4092=0x0;_0x4efef3[_0x415e91(0x1c7)](_0x4b4092,_0x4efef3[_0x415e91(0x197)](_0x2e099b[_0x415e91(0x1a5)],0x1));_0x4b4092++){if(_0x51eca2===null||_0x51eca2===undefined||typeof _0x51eca2!==_0x4efef3['TTKJQ'])return![];_0x51eca2=_0x51eca2[_0x2e099b[_0x4b4092]];}if(_0x51eca2===null||_0x51eca2===undefined||_0x4efef3[_0x415e91(0x204)](typeof _0x51eca2,_0x415e91(0x1f1)))return![];const _0x1623b1=_0x2e099b[_0x4efef3['jnOBm'](_0x2e099b['length'],0x1)];if(_0x4efef3['AvkuJ'](_0x1623b1,_0x51eca2))return delete _0x51eca2[_0x1623b1],!![];return![];}function parseKeyPath(_0x397a3e){const _0x1260f8=_0x5decd5,_0x513301={'MlBdU':function(_0x1ab959,_0x2e029a){return _0x1ab959===_0x2e029a;},'iNakH':_0x1260f8(0x190),'gZHXY':_0x1260f8(0x19c)},_0x6b65ff=_0x397a3e['split']('.');return _0x513301[_0x1260f8(0x202)](_0x6b65ff[0x0],'header')&&(_0x6b65ff[0x0]=_0x513301['iNakH']),_0x513301['MlBdU'](_0x6b65ff[0x0],_0x513301['gZHXY'])&&(_0x6b65ff[0x0]=_0x1260f8(0x1cc)),_0x6b65ff;}export function formatSettings(_0x53475a,_0x5f4504=0x0){const _0x1d86e9=_0x5decd5,_0x13bbce=[],_0x596e05='\x20\x20'['repeat'](_0x5f4504);for(const [_0xdd3881,_0x4fa5bf]of Object['entries'](_0x53475a)){if(_0x4fa5bf===undefined)continue;if(typeof _0x4fa5bf===_0x1d86e9(0x1f1)&&_0x4fa5bf!==null){_0x13bbce[_0x1d86e9(0x1a2)](''+_0x596e05+_0xdd3881+':');for(const [_0x34db40,_0x1f5f41]of Object['entries'](_0x4fa5bf)){_0x13bbce['push'](_0x596e05+'\x20\x20'+_0x34db40+':\x20'+_0x1f5f41);}}else _0x13bbce['push'](''+_0x596e05+_0xdd3881+':\x20'+_0x4fa5bf);}return _0x13bbce['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1b7d36,_0x52ad82){const _0x3d02d2=_0x3704,_0xb2930=_0x1b7d36();while(!![]){try{const _0x50c10c=parseInt(_0x3d02d2(0x11c))/0x1*(parseInt(_0x3d02d2(0x124))/0x2)+-parseInt(_0x3d02d2(0x11f))/0x3+parseInt(_0x3d02d2(0x120))/0x4*(-parseInt(_0x3d02d2(0x118))/0x5)+parseInt(_0x3d02d2(0x122))/0x6*(parseInt(_0x3d02d2(0x121))/0x7)+parseInt(_0x3d02d2(0x11e))/0x8+-parseInt(_0x3d02d2(0x123))/0x9+parseInt(_0x3d02d2(0x11a))/0xa;if(_0x50c10c===_0x52ad82)break;else _0xb2930['push'](_0xb2930['shift']());}catch(_0x45d9d2){_0xb2930['push'](_0xb2930['shift']());}}}(_0x427f,0x9f9dc));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x2ca193){const _0x4b4150=_0x3704,_0x56a67={'IAjZq':function(_0x5a6b6f,_0x5ecb0f,_0x4ddad2){return _0x5a6b6f(_0x5ecb0f,_0x4ddad2);}},_0x17819e=join(__dirname,'..','..',_0x4b4150(0x11b)),_0x21f99b=join(_0x17819e,_0x2ca193);try{return _0x56a67['IAjZq'](readFileSync,_0x21f99b,_0x4b4150(0x119));}catch{return'';}}function _0x427f(){const _0x55c8cf=['21713940wPYsyK','skills','1kZcqZW','ranger/SKILL.md','6055320dQQBGK','3573129gUnvIA','3060124fjpkGt','1057xoptnk','204UQCPaJ','6723162eZfhtp','846874aZslKY','AKWOA','5xcstbt','utf-8'];_0x427f=function(){return _0x55c8cf;};return _0x427f();}function _0x3704(_0x4a8380,_0x3c16d9){_0x4a8380=_0x4a8380-0x117;const _0x427fb3=_0x427f();let _0x37045b=_0x427fb3[_0x4a8380];return _0x37045b;}export function getRangerSkillContent(){const _0x1b5892=_0x3704,_0x578d38={'AKWOA':function(_0x57e831,_0x5da7d4){return _0x57e831(_0x5da7d4);}};return _0x578d38[_0x1b5892(0x117)](readSkillContent,_0x1b5892(0x11d));}
1
+ (function(_0x3ca4c1,_0x57eb9b){const _0x3aae06=_0x1021,_0x306b48=_0x3ca4c1();while(!![]){try{const _0x68651a=-parseInt(_0x3aae06(0x19c))/0x1*(parseInt(_0x3aae06(0x198))/0x2)+-parseInt(_0x3aae06(0x19e))/0x3*(parseInt(_0x3aae06(0x194))/0x4)+-parseInt(_0x3aae06(0x19f))/0x5*(-parseInt(_0x3aae06(0x19d))/0x6)+parseInt(_0x3aae06(0x193))/0x7*(parseInt(_0x3aae06(0x197))/0x8)+-parseInt(_0x3aae06(0x199))/0x9*(parseInt(_0x3aae06(0x196))/0xa)+parseInt(_0x3aae06(0x192))/0xb+parseInt(_0x3aae06(0x19a))/0xc;if(_0x68651a===_0x57eb9b)break;else _0x306b48['push'](_0x306b48['shift']());}catch(_0x4c75c2){_0x306b48['push'](_0x306b48['shift']());}}}(_0x4094,0xb84aa));import{readFileSync}from'fs';function _0x1021(_0x2ba088,_0x5e2c6c){_0x2ba088=_0x2ba088-0x190;const _0x409480=_0x4094();let _0x1021ce=_0x409480[_0x2ba088];return _0x1021ce;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x57311c){const _0x579015=_0x1021,_0x2964af={'MqgZZ':function(_0x3a89a8,_0x1b8378,_0x1660f3){return _0x3a89a8(_0x1b8378,_0x1660f3);}},_0x39d494=join(__dirname,'..','..','skills'),_0x18e1eb=_0x2964af[_0x579015(0x191)](join,_0x39d494,_0x57311c);try{return readFileSync(_0x18e1eb,_0x579015(0x190));}catch{return'';}}export function getRangerSkillContent(){const _0x3d206c=_0x1021,_0x47e7b3={'cNxZa':function(_0x214454,_0x392550){return _0x214454(_0x392550);}};return _0x47e7b3[_0x3d206c(0x19b)](readSkillContent,_0x3d206c(0x195));}function _0x4094(){const _0xb3344d=['478PYekoF','4149LIDUUL','7297656hOGXcG','cNxZa','565qelyyS','495528OyAhKH','10803VJQwFM','10CaAlwp','utf-8','MqgZZ','4991272KlRdJR','216447JfJdLs','1664iSQIvN','ranger/SKILL.md','2990Ccyklj','336xAYcJa'];_0x4094=function(){return _0xb3344d;};return _0x4094();}
@@ -1 +1 @@
1
- const _0x2f19c0=_0x136c;(function(_0x3b24eb,_0x28d3eb){const _0xc2ce96=_0x136c,_0x25168b=_0x3b24eb();while(!![]){try{const _0x1fda43=parseInt(_0xc2ce96(0x195))/0x1+parseInt(_0xc2ce96(0x189))/0x2*(-parseInt(_0xc2ce96(0x18e))/0x3)+-parseInt(_0xc2ce96(0x18a))/0x4+-parseInt(_0xc2ce96(0x17e))/0x5+-parseInt(_0xc2ce96(0x17d))/0x6+parseInt(_0xc2ce96(0x18f))/0x7*(-parseInt(_0xc2ce96(0x18d))/0x8)+parseInt(_0xc2ce96(0x181))/0x9*(parseInt(_0xc2ce96(0x177))/0xa);if(_0x1fda43===_0x28d3eb)break;else _0x25168b['push'](_0x25168b['shift']());}catch(_0x51d7aa){_0x25168b['push'](_0x25168b['shift']());}}}(_0x6f4c,0x2cb0d));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x6f4c(){const _0x2e5bf4=['\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','project','20140qFifsv','feature-tracker','match','endsWith','gPVzz','warn','2037666qOERWF','1411405iVVqOb','wojUN','push','6363HcItsi','ranger','e2e-test-recommender','join','log','isDirectory','\x20\x20Skill\x20not\x20found:\x20','fTUBt','42358BbRPhJ','1132864OXauzx','trim','ALiHB','2799960oyCXcp','12RmXsMj','7mSflbu','YAPVr','pFpeh','skills','qvydp','SKILL.md','98974JeCmpT','utf-8','.md','wrymW'];_0x6f4c=function(){return _0x2e5bf4;};return _0x6f4c();}export const RANGER_MANAGED_SKILLS=[_0x2f19c0(0x182)];export const DEPRECATED_SKILLS=[_0x2f19c0(0x183),'bug-bash',_0x2f19c0(0x178)];export async function installSkill(_0x1a8049,_0x71194e={}){const _0x32cc0d=_0x2f19c0,_0x41b684={'oGOeC':_0x32cc0d(0x176),'cKfFo':'claude','fTUBt':function(_0x43f6c0,_0x8459f9,_0x248a05){return _0x43f6c0(_0x8459f9,_0x248a05);},'gPVzz':function(_0x328668,_0x1dcf38){return _0x328668(_0x1dcf38);},'qeopr':function(_0x2f371b,_0x10d33f){return _0x2f371b(_0x10d33f);},'wrymW':function(_0x3d27a6,_0x4f710b,_0x395de5){return _0x3d27a6(_0x4f710b,_0x395de5);},'pFpeh':function(_0x508e92,_0x1f99f9,_0x325336){return _0x508e92(_0x1f99f9,_0x325336);},'wWiZa':function(_0x488933,_0x46eb7,_0x5b82bc){return _0x488933(_0x46eb7,_0x5b82bc);},'qvydp':_0x32cc0d(0x196),'mRoVc':function(_0xbd4c96,_0x485368,_0x3ed2de){return _0xbd4c96(_0x485368,_0x3ed2de);},'wojUN':'SKILL.md','ALiHB':function(_0x446f91,_0x11fa48,_0x35e16f,_0x5267a7){return _0x446f91(_0x11fa48,_0x35e16f,_0x5267a7);}},{level:level=_0x41b684['oGOeC'],cliVersion:_0x5a4ad4,platform:platform=_0x41b684['cKfFo']}=_0x71194e,_0x5b2476=getSourceSkillsDir(),_0x449783=_0x41b684[_0x32cc0d(0x188)](join,_0x5b2476,_0x1a8049),_0x672164=_0x41b684[_0x32cc0d(0x188)](join,_0x5b2476,_0x1a8049+_0x32cc0d(0x197)),_0x210193=_0x41b684[_0x32cc0d(0x17b)](existsSync,_0x449783)&&_0x41b684[_0x32cc0d(0x17b)](statSync,_0x449783)[_0x32cc0d(0x186)]()&&existsSync(join(_0x449783,_0x32cc0d(0x194))),_0x4f80bc=_0x41b684['qeopr'](existsSync,_0x672164);if(!_0x210193&&!_0x4f80bc)return console['warn'](_0x32cc0d(0x187)+_0x1a8049),![];const _0x5abc0e=platform==='opencode'?getOpencodeSkillsDir(level):getSkillsDir(level),_0x37d72e=_0x41b684['wrymW'](join,_0x5abc0e,_0x1a8049);await _0x41b684[_0x32cc0d(0x174)](mkdir,_0x37d72e,{'recursive':!![]});let _0x4d9367,_0x1c207e=[];if(_0x210193){const _0x330ca8=await readdir(_0x449783),_0xb74d2c=_0x330ca8['filter'](_0x3d355a=>_0x3d355a[_0x32cc0d(0x17a)](_0x32cc0d(0x197)));for(const _0x178b74 of _0xb74d2c){const _0x2faa1a=join(_0x449783,_0x178b74),_0x143995=_0x41b684['pFpeh'](join,_0x37d72e,_0x178b74);await copyFile(_0x2faa1a,_0x143995),_0x1c207e[_0x32cc0d(0x180)](_0x178b74);}_0x4d9367=await _0x41b684[_0x32cc0d(0x191)](readFile,_0x41b684['wWiZa'](join,_0x449783,'SKILL.md'),_0x41b684[_0x32cc0d(0x193)]);}else{_0x4d9367=await _0x41b684['mRoVc'](readFile,_0x672164,_0x41b684[_0x32cc0d(0x193)]);const _0x1fae9d=join(_0x37d72e,_0x41b684[_0x32cc0d(0x17f)]);await _0x41b684['ALiHB'](writeFile,_0x1fae9d,_0x4d9367,_0x41b684[_0x32cc0d(0x193)]),_0x1c207e['push'](_0x41b684['wojUN']);}const {name:_0x24705a}=parseFrontmatter(_0x4d9367);return console[_0x32cc0d(0x185)]('\x20\x20Installed\x20skill:\x20'+_0x24705a),console['log']('\x20\x20Location:\x20'+_0x37d72e),_0x1c207e['length']>0x1&&console[_0x32cc0d(0x185)]('\x20\x20Files:\x20'+_0x1c207e[_0x32cc0d(0x184)](',\x20')),_0x41b684[_0x32cc0d(0x18c)](logLocalAgentInstallation,_0x1a8049,{'skillDisplayName':_0x24705a,'installLevel':level},_0x5a4ad4)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x2727e0=_0x2f19c0,_0x19d770=[join(__dirname,'..','..','skills'),join(__dirname,'..','..','..',_0x2727e0(0x192))];for(const _0x58bf6e of _0x19d770){if(existsSync(_0x58bf6e))return _0x58bf6e;}return _0x19d770[0x0];}function parseFrontmatter(_0x116627){const _0x67e803=_0x2f19c0,_0x219da6={'Mrlah':'Invalid\x20skill\x20frontmatter'},_0x28b484=_0x116627['match'](/^---\n([\s\S]+?)\n---/);if(!_0x28b484)throw new Error(_0x219da6['Mrlah']);const _0x58e4bb=_0x28b484[0x1],_0x3a8e94=_0x58e4bb['match'](/name:\s*(.+)/),_0x3dc666=_0x58e4bb[_0x67e803(0x179)](/description:\s*"?(.+?)"?\n/);return{'name':_0x3a8e94?.[0x1]['trim']()||'','description':_0x3dc666?.[0x1][_0x67e803(0x18b)]()||''};}function _0x136c(_0x25bb36,_0xa54388){_0x25bb36=_0x25bb36-0x174;const _0x6f4cb7=_0x6f4c();let _0x136cea=_0x6f4cb7[_0x25bb36];return _0x136cea;}export async function removeSkill(_0x192be4,_0x26a1bd){const _0x5f14a2=_0x2f19c0,_0x55e37d={'YAPVr':function(_0x5b1c45,_0x40d373){return _0x5b1c45(_0x40d373);}},_0x14c6cc=_0x55e37d[_0x5f14a2(0x190)](getSkillsDir,_0x26a1bd),_0x530b71=join(_0x14c6cc,_0x192be4);if(!existsSync(_0x530b71))return![];try{return await rm(_0x530b71,{'recursive':!![]}),console[_0x5f14a2(0x185)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x192be4),!![];}catch{return console[_0x5f14a2(0x17c)](_0x5f14a2(0x175)+_0x192be4),![];}}
1
+ const _0x17efb6=_0x38b9;(function(_0x14d435,_0x1c0e62){const _0x1b25e6=_0x38b9,_0x490c76=_0x14d435();while(!![]){try{const _0x4095f0=parseInt(_0x1b25e6(0x108))/0x1*(-parseInt(_0x1b25e6(0x10d))/0x2)+-parseInt(_0x1b25e6(0xfb))/0x3*(parseInt(_0x1b25e6(0x10a))/0x4)+parseInt(_0x1b25e6(0x10e))/0x5+parseInt(_0x1b25e6(0x112))/0x6+-parseInt(_0x1b25e6(0x115))/0x7+-parseInt(_0x1b25e6(0x110))/0x8*(parseInt(_0x1b25e6(0x113))/0x9)+-parseInt(_0x1b25e6(0x106))/0xa*(-parseInt(_0x1b25e6(0xfe))/0xb);if(_0x4095f0===_0x1c0e62)break;else _0x490c76['push'](_0x490c76['shift']());}catch(_0x232ade){_0x490c76['push'](_0x490c76['shift']());}}}(_0x502c,0x706df));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x38b9(_0x1b68c0,_0x69b688){_0x1b68c0=_0x1b68c0-0xfa;const _0x502c89=_0x502c();let _0x38b9ac=_0x502c89[_0x1b68c0];return _0x38b9ac;}function _0x502c(){const _0x69de73=['SKILL.md','2387yJpQsl','match','endsWith','utf-8','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','wSvPV','jJCUk','WDkJo','96220JCvtlR','claude','134CxDSYI','MwXuV','564rdKVtW','\x20\x20Location:\x20','JuZLp','1986toraRb','258430LfLpnQ','length','155816mPygNJ','XnSXY','494934gCXpjl','180PHrEQH','trim','4094559UVBEYh','filter','log','IuWeZ','push','OMBgr','join','e2e-test-recommender','\x20\x20Removed\x20deprecated\x20skill:\x20','Invalid\x20skill\x20frontmatter','BVYXM','MzKAK','lcplT','13917VrQKes','project'];_0x502c=function(){return _0x69de73;};return _0x502c();}export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x17efb6(0x11c),'bug-bash','feature-tracker'];export async function installSkill(_0x4e4870,_0x199a06={}){const _0x241277=_0x17efb6,_0x2b6f78={'yZZiE':_0x241277(0x107),'XnSXY':function(_0x2712b9){return _0x2712b9();},'MwXuV':function(_0x211456,_0x5b8324){return _0x211456(_0x5b8324);},'wSvPV':function(_0x244563,_0xa4b908){return _0x244563(_0xa4b908);},'EEnbZ':function(_0x40a88e,_0x3fd11a,_0x25ef56){return _0x40a88e(_0x3fd11a,_0x25ef56);},'rtauW':function(_0x3b6aeb,_0x29d896){return _0x3b6aeb&&_0x29d896;},'WDkJo':function(_0x5137eb,_0x1ed78f){return _0x5137eb===_0x1ed78f;},'JuZLp':function(_0x318efb,_0x4aa296){return _0x318efb(_0x4aa296);},'BVYXM':function(_0xe5260e,_0x11ff2b){return _0xe5260e(_0x11ff2b);},'bNIQt':function(_0x2c02d8,_0x1614bf,_0x2ba773){return _0x2c02d8(_0x1614bf,_0x2ba773);},'EvRmI':function(_0xf12eaf,_0x4d56be,_0x25cb01){return _0xf12eaf(_0x4d56be,_0x25cb01);},'lcplT':function(_0x37b472,_0x444a82,_0x40afee){return _0x37b472(_0x444a82,_0x40afee);},'jJCUk':_0x241277(0xfd),'ujRrx':function(_0x554349,_0x48ae50,_0x3931db){return _0x554349(_0x48ae50,_0x3931db);},'OMBgr':_0x241277(0x101),'mGRHB':function(_0x360263,_0x28bff8,_0x55413a,_0x313531){return _0x360263(_0x28bff8,_0x55413a,_0x313531);}},{level:level=_0x241277(0xfc),cliVersion:_0x18c60e,platform:platform=_0x2b6f78['yZZiE']}=_0x199a06,_0x51e23b=_0x2b6f78[_0x241277(0x111)](getSourceSkillsDir),_0x55ce8a=join(_0x51e23b,_0x4e4870),_0x38a5ae=join(_0x51e23b,_0x4e4870+'.md'),_0x93bda9=_0x2b6f78[_0x241277(0x109)](existsSync,_0x55ce8a)&&_0x2b6f78[_0x241277(0x103)](statSync,_0x55ce8a)['isDirectory']()&&_0x2b6f78[_0x241277(0x109)](existsSync,_0x2b6f78['EEnbZ'](join,_0x55ce8a,'SKILL.md')),_0x5db561=existsSync(_0x38a5ae);if(_0x2b6f78['rtauW'](!_0x93bda9,!_0x5db561))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x4e4870),![];const _0xad794d=_0x2b6f78[_0x241277(0x105)](platform,'opencode')?getOpencodeSkillsDir(level):_0x2b6f78[_0x241277(0x10c)](getSkillsDir,level),_0x1aefd1=_0x2b6f78['EEnbZ'](join,_0xad794d,_0x4e4870);await mkdir(_0x1aefd1,{'recursive':!![]});let _0x333e16,_0x43ad84=[];if(_0x93bda9){const _0x226d45=await _0x2b6f78[_0x241277(0x11f)](readdir,_0x55ce8a),_0x2c4133=_0x226d45[_0x241277(0x116)](_0x3bdd94=>_0x3bdd94[_0x241277(0x100)]('.md'));for(const _0x2ca83c of _0x2c4133){const _0x174ad1=join(_0x55ce8a,_0x2ca83c),_0x20fba4=_0x2b6f78['EEnbZ'](join,_0x1aefd1,_0x2ca83c);await _0x2b6f78['bNIQt'](copyFile,_0x174ad1,_0x20fba4),_0x43ad84[_0x241277(0x119)](_0x2ca83c);}_0x333e16=await _0x2b6f78['EvRmI'](readFile,_0x2b6f78[_0x241277(0xfa)](join,_0x55ce8a,_0x2b6f78[_0x241277(0x104)]),'utf-8');}else{_0x333e16=await _0x2b6f78['ujRrx'](readFile,_0x38a5ae,_0x2b6f78[_0x241277(0x11a)]);const _0x7a7dd=_0x2b6f78['EvRmI'](join,_0x1aefd1,_0x241277(0xfd));await writeFile(_0x7a7dd,_0x333e16,_0x2b6f78['OMBgr']),_0x43ad84[_0x241277(0x119)](_0x2b6f78['jJCUk']);}const {name:_0x458c32}=parseFrontmatter(_0x333e16);return console[_0x241277(0x117)]('\x20\x20Installed\x20skill:\x20'+_0x458c32),console['log'](_0x241277(0x10b)+_0x1aefd1),_0x43ad84[_0x241277(0x10f)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x43ad84[_0x241277(0x11b)](',\x20')),_0x2b6f78['mGRHB'](logLocalAgentInstallation,_0x4e4870,{'skillDisplayName':_0x458c32,'installLevel':level},_0x18c60e)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x15ac96=_0x17efb6,_0x775f7e={'IuWeZ':'skills','MzKAK':function(_0x2c0641,_0x4e58e7,_0x2de1da,_0x2bd7f8,_0x510262,_0x32da05){return _0x2c0641(_0x4e58e7,_0x2de1da,_0x2bd7f8,_0x510262,_0x32da05);}},_0x4cf178=[join(__dirname,'..','..',_0x775f7e[_0x15ac96(0x118)]),_0x775f7e[_0x15ac96(0x120)](join,__dirname,'..','..','..','skills')];for(const _0x395038 of _0x4cf178){if(existsSync(_0x395038))return _0x395038;}return _0x4cf178[0x0];}function parseFrontmatter(_0x3b18b){const _0x3dfaed=_0x17efb6,_0x3acd59={'EHTEX':_0x3dfaed(0x11e)},_0x207079=_0x3b18b[_0x3dfaed(0xff)](/^---\n([\s\S]+?)\n---/);if(!_0x207079)throw new Error(_0x3acd59['EHTEX']);const _0x18f68b=_0x207079[0x1],_0xc8aa=_0x18f68b['match'](/name:\s*(.+)/),_0x44439c=_0x18f68b['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xc8aa?.[0x1][_0x3dfaed(0x114)]()||'','description':_0x44439c?.[0x1]['trim']()||''};}export async function removeSkill(_0x568fb6,_0x745d56){const _0x4900f9=_0x17efb6,_0x2c7ec8={'nLUqM':function(_0x4babc2,_0x4c9b63){return _0x4babc2(_0x4c9b63);},'ANlco':function(_0x44f3c5,_0x320dca,_0x4dd1bb){return _0x44f3c5(_0x320dca,_0x4dd1bb);}},_0x4d392a=_0x2c7ec8['nLUqM'](getSkillsDir,_0x745d56),_0xe64e32=join(_0x4d392a,_0x568fb6);if(!existsSync(_0xe64e32))return![];try{return await _0x2c7ec8['ANlco'](rm,_0xe64e32,{'recursive':!![]}),console[_0x4900f9(0x117)](_0x4900f9(0x11d)+_0x568fb6),!![];}catch{return console['warn'](_0x4900f9(0x102)+_0x568fb6),![];}}
@@ -1 +1 @@
1
- const _0xa164c7=_0x2b50;(function(_0x49d220,_0x20d066){const _0x14a442=_0x2b50,_0x4acd02=_0x49d220();while(!![]){try{const _0x9859f9=parseInt(_0x14a442(0x80))/0x1*(parseInt(_0x14a442(0x9d))/0x2)+parseInt(_0x14a442(0x8d))/0x3+parseInt(_0x14a442(0x9c))/0x4*(parseInt(_0x14a442(0x9f))/0x5)+parseInt(_0x14a442(0x87))/0x6*(parseInt(_0x14a442(0x74))/0x7)+parseInt(_0x14a442(0x94))/0x8+parseInt(_0x14a442(0x72))/0x9*(-parseInt(_0x14a442(0x7a))/0xa)+-parseInt(_0x14a442(0x95))/0xb;if(_0x9859f9===_0x20d066)break;else _0x4acd02['push'](_0x4acd02['shift']());}catch(_0x5a6eef){_0x4acd02['push'](_0x4acd02['shift']());}}}(_0x5cc3,0xa06ed));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x472a7a,_0x8a33c2){const _0x49e1ae=_0x2b50,_0x521688={'infrM':function(_0x3d32a7,_0x283a8a){return _0x3d32a7>=_0x283a8a;},'ATtPO':function(_0x4ad1b4,_0x3bc4e7){return _0x4ad1b4&_0x3bc4e7;},'VIVWM':function(_0x2a3f34,_0x115ac6){return _0x2a3f34-_0x115ac6;},'QNVox':function(_0x4f68a8,_0x4fa1a9){return _0x4f68a8<_0x4fa1a9;},'YnRHF':function(_0x4d4010,_0x36c54a){return _0x4d4010+_0x36c54a;}};if(_0x521688['infrM'](_0x8a33c2,_0x472a7a[_0x49e1ae(0xa7)]))return[0x0,0x0];const _0x51f72c=_0x472a7a[_0x8a33c2];let _0x4edc42=0x1,_0xc0946=0x80;while(_0x4edc42<=0x8&&!(_0x51f72c&_0xc0946)){_0x4edc42++,_0xc0946>>=0x1;}if(_0x8a33c2+_0x4edc42>_0x472a7a[_0x49e1ae(0xa7)])return[0x0,0x0];let _0x1c02ac=_0x521688[_0x49e1ae(0xa4)](_0x51f72c,_0x521688[_0x49e1ae(0x8b)](_0xc0946,0x1));for(let _0x2910c1=0x1;_0x521688['QNVox'](_0x2910c1,_0x4edc42);_0x2910c1++){_0x1c02ac=_0x1c02ac*0x100+_0x472a7a[_0x521688['YnRHF'](_0x8a33c2,_0x2910c1)];}return[_0x1c02ac,_0x4edc42];}function readId(_0x1467e4,_0x2a5abd){const _0x57cda3=_0x2b50,_0xfb62cb={'aAFJo':function(_0x1f03b5,_0x3e6a54){return _0x1f03b5>=_0x3e6a54;},'UPQLM':function(_0x2828e5,_0x2ee463){return _0x2828e5>=_0x2ee463;},'lEQVy':function(_0x3f99a4,_0x309508){return _0x3f99a4>_0x309508;},'jOYpc':function(_0x229751,_0x486aec){return _0x229751+_0x486aec;}};if(_0x2a5abd>=_0x1467e4['length'])return[0x0,0x0];const _0x532d83=_0x1467e4[_0x2a5abd];let _0x2bb37b;if(_0xfb62cb[_0x57cda3(0xa6)](_0x532d83,0x80))_0x2bb37b=0x1;else{if(_0xfb62cb['UPQLM'](_0x532d83,0x40))_0x2bb37b=0x2;else{if(_0xfb62cb[_0x57cda3(0xa6)](_0x532d83,0x20))_0x2bb37b=0x3;else{if(_0xfb62cb[_0x57cda3(0xa6)](_0x532d83,0x10))_0x2bb37b=0x4;else return[_0x532d83,0x1];}}}if(_0xfb62cb[_0x57cda3(0x9e)](_0xfb62cb['jOYpc'](_0x2a5abd,_0x2bb37b),_0x1467e4['length']))return[0x0,0x0];let _0x4e11ed=0x0;for(let _0x54aa5d=0x0;_0x54aa5d<_0x2bb37b;_0x54aa5d++){_0x4e11ed=_0x4e11ed*0x100+_0x1467e4[_0x2a5abd+_0x54aa5d];}return[_0x4e11ed,_0x2bb37b];}function readUint(_0x2b7fee,_0x277f70,_0x32b738){const _0x62d5ef=_0x2b50,_0x427137={'Gpits':function(_0x38d55d,_0x4543e0){return _0x38d55d+_0x4543e0;},'SjqKj':function(_0x2f7df6,_0x53f003){return _0x2f7df6+_0x53f003;}};let _0x2f6c4e=0x0;for(let _0x48e4fe=0x0;_0x48e4fe<_0x32b738;_0x48e4fe++){_0x2f6c4e=_0x427137[_0x62d5ef(0x81)](_0x2f6c4e*0x100,_0x2b7fee[_0x427137['SjqKj'](_0x277f70,_0x48e4fe)]);}return _0x2f6c4e;}function isUnknownSize(_0x3b0b6d,_0x30b4f0){const _0x4fa87f=_0x2b50,_0x21ede4={'EjPjq':function(_0x17a420,_0x44e6fe){return _0x17a420*_0x44e6fe;}};return _0x3b0b6d===Math[_0x4fa87f(0x7b)](0x2,_0x21ede4[_0x4fa87f(0xa5)](0x7,_0x30b4f0))-0x1;}function writeVint(_0x36f5df,_0x2984c8){const _0x549258=_0x2b50,_0x5015ec={'eMEaj':function(_0x1ee87b,_0x185047){return _0x1ee87b<_0x185047;},'Ccnjx':function(_0x34188e,_0x266cfd){return _0x34188e-_0x266cfd;},'veMVn':function(_0x3d0acc,_0x1d2737){return _0x3d0acc&_0x1d2737;}};let _0x484c6b=_0x2984c8||0x1;while(_0x5015ec['eMEaj'](_0x5015ec[_0x549258(0x8a)](Math[_0x549258(0x7b)](0x2,0x7*_0x484c6b),0x2),_0x36f5df))_0x484c6b++;const _0x377245=Buffer['alloc'](_0x484c6b);for(let _0x1e17f3=_0x5015ec[_0x549258(0x8a)](_0x484c6b,0x1);_0x1e17f3>=0x0;_0x1e17f3--){_0x377245[_0x1e17f3]=_0x5015ec['veMVn'](_0x36f5df,0xff),_0x36f5df=Math['floor'](_0x36f5df/0x100);}return _0x377245[0x0]|=0x1<<_0x5015ec[_0x549258(0x8a)](0x8,_0x484c6b),_0x377245;}function writeUint(_0x4fbe7e,_0x10516b){const _0x146374=_0x2b50,_0x30d0ed={'qVMpB':function(_0x3dc0c6,_0x963547){return _0x3dc0c6>=_0x963547;},'VdLSn':function(_0x2934ea,_0x4a313e){return _0x2934ea&_0x4a313e;}},_0x43564d=Buffer['alloc'](_0x10516b);for(let _0x50b6f5=_0x10516b-0x1;_0x30d0ed['qVMpB'](_0x50b6f5,0x0);_0x50b6f5--){_0x43564d[_0x50b6f5]=_0x30d0ed['VdLSn'](_0x4fbe7e,0xff),_0x4fbe7e=Math[_0x146374(0x6f)](_0x4fbe7e/0x100);}return _0x43564d;}function writeUnknownSizeVint(_0x15b7fd){const _0x5afd1f=_0x2b50,_0x24904c={'bZluj':function(_0x4c3ee2,_0x5b79bb){return _0x4c3ee2-_0x5b79bb;}},_0x3474b5=Buffer[_0x5afd1f(0x8f)](_0x15b7fd,0xff);return _0x3474b5[0x0]=0xff>>_0x24904c['bZluj'](_0x15b7fd,0x1),_0x3474b5;}function uintSize(_0x15f611){const _0xf94056=_0x2b50,_0x3f961e={'PZWji':function(_0xeefde1,_0x5da88f){return _0xeefde1===_0x5da88f;},'WEepD':function(_0x375e3d,_0x45aaa7){return _0x375e3d/_0x45aaa7;}};if(_0x3f961e[_0xf94056(0x88)](_0x15f611,0x0))return 0x1;let _0x426162=0x0,_0x119434=_0x15f611;while(_0x119434>0x0){_0x426162++,_0x119434=Math[_0xf94056(0x6f)](_0x3f961e['WEepD'](_0x119434,0x100));}return _0x426162;}function findTimestampScale(_0x3e379d,_0x3f206a){const _0x243c45=_0x2b50,_0x26b253={'juxFX':function(_0x159e7d,_0x40b797){return _0x159e7d+_0x40b797;},'aMrGX':function(_0x5863ea,_0x52c384,_0x592815){return _0x5863ea(_0x52c384,_0x592815);},'NqJbE':function(_0x292a27,_0x4da7fc){return _0x292a27===_0x4da7fc;},'Qvybw':function(_0x83cb2c,_0x448ba0){return _0x83cb2c<_0x448ba0;},'FjaYs':function(_0x1dad01,_0x20420b,_0x195bec){return _0x1dad01(_0x20420b,_0x195bec);},'zLVSa':function(_0x538bbe,_0x4a1571,_0x12c6fe,_0xa6968c){return _0x538bbe(_0x4a1571,_0x12c6fe,_0xa6968c);},'ouRgJ':function(_0x58b61e,_0x1f47d2){return _0x58b61e+_0x1f47d2;},'pwedI':function(_0x113f5e,_0x314908){return _0x113f5e+_0x314908;},'QhJDj':function(_0x4e172e,_0x35cd63,_0x29cbad){return _0x4e172e(_0x35cd63,_0x29cbad);}};let _0x54eca1=_0x3f206a;const _0x1e2bd9=Math['min'](_0x3e379d[_0x243c45(0xa7)],_0x26b253[_0x243c45(0x75)](_0x3f206a,0x2710));while(_0x54eca1<_0x1e2bd9){const [_0x3805ba,_0x387734]=_0x26b253['aMrGX'](readId,_0x3e379d,_0x54eca1),[_0x5a7154,_0x258541]=readVint(_0x3e379d,_0x54eca1+_0x387734);if(_0x26b253[_0x243c45(0x76)](_0x3805ba,ID_INFO)){let _0x34448f=_0x54eca1+_0x387734+_0x258541;const _0xb0e8fa=_0x26b253['juxFX'](_0x34448f,_0x5a7154);while(_0x26b253['Qvybw'](_0x34448f,_0xb0e8fa)){const [_0x257a7c,_0x5dc2d1]=readId(_0x3e379d,_0x34448f),[_0x43d17a,_0x5e13bb]=_0x26b253[_0x243c45(0x90)](readVint,_0x3e379d,_0x34448f+_0x5dc2d1);if(_0x257a7c===ID_TIMESTAMP_SCALE)return _0x26b253['zLVSa'](readUint,_0x3e379d,_0x26b253['ouRgJ'](_0x34448f+_0x5dc2d1,_0x5e13bb),_0x43d17a);_0x34448f+=_0x26b253['pwedI'](_0x5dc2d1,_0x5e13bb)+_0x43d17a;}break;}if(_0x3805ba===ID_CLUSTER)break;if(_0x26b253[_0x243c45(0x92)](isUnknownSize,_0x5a7154,_0x258541))break;_0x54eca1+=_0x387734+_0x258541+_0x5a7154;}return 0xf4240;}function findFirstClusterOffset(_0x5c3872,_0x40bc5e){const _0x27f448=_0x2b50,_0x53be83={'HUIcS':function(_0x4860fc,_0x5dd15a,_0x27d50b){return _0x4860fc(_0x5dd15a,_0x27d50b);},'fTcEq':function(_0x29a74c,_0x174c3f){return _0x29a74c===_0x174c3f;},'BXDPu':function(_0x3e9e0f,_0x389c09){return _0x3e9e0f+_0x389c09;},'EIuPV':function(_0x33897d,_0x5080db){return _0x33897d+_0x5080db;}};let _0x41ce4b=_0x40bc5e;while(_0x41ce4b<_0x5c3872['length']){const [_0xee1911,_0x47b05e]=_0x53be83['HUIcS'](readId,_0x5c3872,_0x41ce4b);if(_0x53be83['fTcEq'](_0xee1911,ID_CLUSTER))return _0x41ce4b;const [_0x307a5f,_0x38ee24]=readVint(_0x5c3872,_0x41ce4b+_0x47b05e);if(isUnknownSize(_0x307a5f,_0x38ee24))return _0x41ce4b;_0x41ce4b+=_0x53be83[_0x27f448(0xa8)](_0x53be83[_0x27f448(0x79)](_0x47b05e,_0x38ee24),_0x307a5f);}return _0x5c3872['length'];}function findClusterEnd(_0x25b632,_0x40c753,_0x15e1d2,_0x459983){const _0x1ccd5a=_0x2b50,_0x4a1eb4={'kFqzJ':function(_0x68385d,_0x68287a,_0x1335da){return _0x68385d(_0x68287a,_0x1335da);},'QRmeZ':function(_0x3500df,_0x426bd9){return _0x3500df+_0x426bd9;},'mgWiR':function(_0x527ff1,_0x3c62a8){return _0x527ff1+_0x3c62a8;}};if(!_0x4a1eb4['kFqzJ'](isUnknownSize,_0x15e1d2,_0x459983))return _0x40c753+_0x15e1d2;const _0x201495=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2ee07a=_0x40c753;while(_0x2ee07a<_0x25b632[_0x1ccd5a(0xa7)]-0x4){const [_0x1753f6,_0x2c1618]=_0x4a1eb4[_0x1ccd5a(0x84)](readId,_0x25b632,_0x2ee07a);if(_0x201495[_0x1ccd5a(0x71)](_0x1753f6))return _0x2ee07a;const [_0x20b3c7,_0x54c144]=readVint(_0x25b632,_0x4a1eb4[_0x1ccd5a(0xac)](_0x2ee07a,_0x2c1618));if(_0x4a1eb4[_0x1ccd5a(0x84)](isUnknownSize,_0x20b3c7,_0x54c144))return _0x25b632[_0x1ccd5a(0xa7)];_0x2ee07a+=_0x4a1eb4['mgWiR'](_0x2c1618+_0x54c144,_0x20b3c7);}return _0x25b632['length'];}function _0x2b50(_0x4fd3ca,_0x3fe208){_0x4fd3ca=_0x4fd3ca-0x6c;const _0x5cc355=_0x5cc3();let _0x2b5017=_0x5cc355[_0x4fd3ca];return _0x2b5017;}function extractClusters(_0x1dc627,_0x2591c1){const _0x56a0c7=_0x2b50,_0x4a1758={'ifydD':function(_0x8a7cce,_0x36d484,_0x3cd506){return _0x8a7cce(_0x36d484,_0x3cd506);},'PohUm':function(_0x5bf455,_0x185353,_0x45e7e1){return _0x5bf455(_0x185353,_0x45e7e1);},'jkUpQ':function(_0x550cfc,_0x2eceab,_0x4ec3e6,_0x5c52e0,_0x51e686){return _0x550cfc(_0x2eceab,_0x4ec3e6,_0x5c52e0,_0x51e686);},'BUmzh':function(_0x482a72,_0x352ee8,_0x1e58a4){return _0x482a72(_0x352ee8,_0x1e58a4);},'wEhcX':function(_0xd2a1ca,_0xf92a1b){return _0xd2a1ca+_0xf92a1b;},'QMjHy':function(_0x267d01,_0x32f4dc){return _0x267d01===_0x32f4dc;},'HfyET':function(_0x202a9f,_0x5427ef,_0x2cc165){return _0x202a9f(_0x5427ef,_0x2cc165);},'tkpuy':function(_0x1da078,_0x101f79){return _0x1da078+_0x101f79;},'yjJAW':function(_0x49b373,_0x57c181){return _0x49b373>_0x57c181;},'YwrhE':function(_0x226a5e,_0x2c8381){return _0x226a5e+_0x2c8381;}},_0x56d1fd=[],_0x2bf947=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x3e386=0x0;while(_0x3e386<_0x1dc627['length']){const _0x21f871=_0x1dc627[_0x56a0c7(0x7e)](_0x2bf947,_0x3e386);if(_0x21f871===-0x1)break;const [_0x5c422d,_0x38b813]=_0x4a1758[_0x56a0c7(0x99)](readId,_0x1dc627,_0x21f871);if(_0x5c422d!==ID_CLUSTER){_0x3e386=_0x21f871+0x1;continue;}const [_0x29e57c,_0x3fb27f]=_0x4a1758['PohUm'](readVint,_0x1dc627,_0x21f871+_0x38b813),_0xcefe88=_0x21f871+_0x38b813+_0x3fb27f,_0x48aad2=_0x4a1758['jkUpQ'](findClusterEnd,_0x1dc627,_0xcefe88,_0x29e57c,_0x3fb27f);let _0x3064cc=_0xcefe88,_0x37ba96=0x0,_0xe9a5df=0x2,_0x31ff4b=![],_0x595324=Buffer[_0x56a0c7(0x8f)](0x0),_0x2528a5=Buffer[_0x56a0c7(0x8f)](0x0);while(_0x3064cc<_0x48aad2){const [_0x28dd47,_0xdb57fb]=_0x4a1758['BUmzh'](readId,_0x1dc627,_0x3064cc),[_0x2dd0b7,_0x46d2f3]=_0x4a1758['PohUm'](readVint,_0x1dc627,_0x3064cc+_0xdb57fb);if(_0x28dd47===ID_TIMESTAMP){_0x37ba96=readUint(_0x1dc627,_0x3064cc+_0xdb57fb+_0x46d2f3,_0x2dd0b7),_0xe9a5df=_0x2dd0b7,_0x31ff4b=!![],_0x595324=_0x1dc627['slice'](_0xcefe88,_0x3064cc);const _0x2567b4=_0x4a1758[_0x56a0c7(0x77)](_0x4a1758['wEhcX'](_0x4a1758[_0x56a0c7(0x77)](_0x3064cc,_0xdb57fb),_0x46d2f3),_0x2dd0b7);_0x2528a5=_0x1dc627['slice'](_0x2567b4,_0x48aad2);break;}if(_0x4a1758[_0x56a0c7(0xab)](_0x28dd47,ID_CLUSTER))break;if(_0x4a1758[_0x56a0c7(0x99)](isUnknownSize,_0x2dd0b7,_0x46d2f3))break;_0x3064cc+=_0xdb57fb+_0x46d2f3+_0x2dd0b7;}!_0x31ff4b&&(_0x2528a5=_0x1dc627[_0x56a0c7(0x6d)](_0xcefe88,_0x48aad2));let _0x1b6a42=_0x37ba96;_0x3064cc=_0xcefe88;while(_0x3064cc<_0x48aad2){const [_0x58dd51,_0x17d99c]=_0x4a1758['ifydD'](readId,_0x1dc627,_0x3064cc),[_0x186267,_0x52fc5a]=_0x4a1758['HfyET'](readVint,_0x1dc627,_0x4a1758['wEhcX'](_0x3064cc,_0x17d99c));if(_0x58dd51===ID_SIMPLE_BLOCK&&_0x186267>=0x4){const _0x417864=_0x3064cc+_0x17d99c+_0x52fc5a,[,_0x28d265]=readVint(_0x1dc627,_0x417864),_0x2a82e2=_0x1dc627[_0x56a0c7(0x7c)](_0x4a1758['tkpuy'](_0x417864,_0x28d265)),_0x2c9a0c=_0x4a1758[_0x56a0c7(0x77)](_0x37ba96,_0x2a82e2);if(_0x4a1758[_0x56a0c7(0x7f)](_0x2c9a0c,_0x1b6a42))_0x1b6a42=_0x2c9a0c;}if(_0x58dd51===ID_CLUSTER)break;if(isUnknownSize(_0x186267,_0x52fc5a))break;_0x3064cc+=_0x4a1758[_0x56a0c7(0xa9)](_0x4a1758[_0x56a0c7(0xaa)](_0x17d99c,_0x52fc5a),_0x186267);}_0x56d1fd[_0x56a0c7(0xa1)]({'timestamp':_0x37ba96,'maxTicks':_0x1b6a42,'bodyBeforeTimestamp':_0x595324,'bodyAfterTimestamp':_0x2528a5,'timestampElementSize':_0xe9a5df}),_0x3e386=_0x48aad2;}return _0x56d1fd;}function parseWebm(_0x5708dc){const _0x214a8e=_0x2b50,_0x172fb3={'OIeSb':function(_0x434ea4,_0x64529c,_0x5ec0e7){return _0x434ea4(_0x64529c,_0x5ec0e7);},'opwuO':function(_0x2621e0,_0x59fbfe){return _0x2621e0+_0x59fbfe;},'kPkOC':function(_0x2b7c5e,_0x1c202b){return _0x2b7c5e!==_0x1c202b;},'eYSHg':function(_0x36a7a9,_0x2da17a,_0x3d8640){return _0x36a7a9(_0x2da17a,_0x3d8640);},'ekrZt':function(_0xeda0c8,_0x1aef78,_0x502055){return _0xeda0c8(_0x1aef78,_0x502055);}};let _0x5c29a6=0x0;const [,_0x531ede]=_0x172fb3[_0x214a8e(0xa3)](readId,_0x5708dc,_0x5c29a6),[_0x41bab3,_0x40eb9d]=readVint(_0x5708dc,_0x172fb3['opwuO'](_0x5c29a6,_0x531ede));_0x5c29a6+=_0x172fb3['opwuO'](_0x531ede+_0x40eb9d,_0x41bab3);const [_0x28044b,_0x5f3839]=readId(_0x5708dc,_0x5c29a6);if(_0x172fb3['kPkOC'](_0x28044b,ID_SEGMENT))return null;const [,_0xdd2cbe]=_0x172fb3[_0x214a8e(0xa3)](readVint,_0x5708dc,_0x5c29a6+_0x5f3839),_0xd7f91b=_0x172fb3['opwuO'](_0x5c29a6,_0x5f3839)+_0xdd2cbe,_0x314b8b=_0x172fb3[_0x214a8e(0x83)](findTimestampScale,_0x5708dc,_0xd7f91b),_0x37e1fb=findFirstClusterOffset(_0x5708dc,_0xd7f91b),_0x4b66f5=_0x5708dc['slice'](0x0,_0x37e1fb),_0x9a659f=_0x172fb3[_0x214a8e(0x8c)](extractClusters,_0x5708dc,_0x314b8b);let _0x455a0a=0x0;for(const _0x4f7465 of _0x9a659f){if(_0x4f7465['maxTicks']>_0x455a0a)_0x455a0a=_0x4f7465['maxTicks'];}return{'header':_0x4b66f5,'clusters':_0x9a659f,'timestampScale':_0x314b8b,'maxTimestampTicks':_0x455a0a};}function buildCluster(_0x23b644,_0x263343,_0x40f8bc){const _0x11b9fe=_0x2b50,_0x1fc9b3={'mTQhV':function(_0x4d43ef,_0x4e6813){return _0x4d43ef(_0x4e6813);},'Jofgf':function(_0x4379cc,_0x35bbe9,_0x42f1e8){return _0x4379cc(_0x35bbe9,_0x42f1e8);}},_0xc5829e=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x424ee9=Math['max'](0x4,uintSize(_0x23b644)),_0x3c479f=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x1fc9b3[_0x11b9fe(0x85)](writeVint,_0x424ee9),_0x1fc9b3['Jofgf'](writeUint,_0x23b644,_0x424ee9)]),_0x1fccca=Buffer[_0x11b9fe(0xa2)]([_0x263343,_0x3c479f,_0x40f8bc]),_0x1d0063=writeVint(_0x1fccca[_0x11b9fe(0xa7)]);return Buffer[_0x11b9fe(0xa2)]([_0xc5829e,_0x1d0063,_0x1fccca]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x560a5e){const _0x2a6881=_0x2b50,_0x420734={'MLWiD':function(_0x4832ca,_0x2c7538,_0x47f3f3){return _0x4832ca(_0x2c7538,_0x47f3f3);},'qJMLE':function(_0x5f4879,_0x388192,_0x25e3ca){return _0x5f4879(_0x388192,_0x25e3ca);},'ufeRM':function(_0x9579d9,_0x20fff2){return _0x9579d9+_0x20fff2;},'ZoeDw':function(_0x20041a,_0x1a1a35){return _0x20041a+_0x1a1a35;},'eSaPB':function(_0x5683f7,_0x56c89b){return _0x5683f7+_0x56c89b;},'pnXgi':function(_0x1d46f2,_0x51e7aa){return _0x1d46f2<_0x51e7aa;},'NnOHN':function(_0x59c8f2,_0x41b95a,_0x4c3d8e){return _0x59c8f2(_0x41b95a,_0x4c3d8e);},'iwWTV':function(_0x532273,_0x44ce72){return _0x532273+_0x44ce72;},'IJcsv':function(_0x371956,_0x4718f2,_0x1071c8){return _0x371956(_0x4718f2,_0x1071c8);},'USpKL':function(_0x4337eb,_0x2887e8){return _0x4337eb!==_0x2887e8;},'XclhL':function(_0x17c0db,_0x797496){return _0x17c0db+_0x797496;},'nOMeu':function(_0x465af6,_0x3c49cc){return _0x465af6+_0x3c49cc;}},_0x973f24=Buffer[_0x2a6881(0x7d)](_0x560a5e);let _0x241c1b=0x0;const [,_0x27d982]=_0x420734[_0x2a6881(0x89)](readId,_0x973f24,_0x241c1b),[_0x2350f7,_0x47bb8f]=_0x420734['qJMLE'](readVint,_0x973f24,_0x241c1b+_0x27d982),_0x3ba4d1=_0x420734['ufeRM'](_0x420734['ufeRM'](_0x241c1b,_0x27d982)+_0x47bb8f,_0x2350f7),[,_0x3fa0ae]=readId(_0x973f24,_0x3ba4d1),[,_0x4741a]=readVint(_0x973f24,_0x420734['ufeRM'](_0x3ba4d1,_0x3fa0ae)),_0xe98dc0=_0x420734[_0x2a6881(0x6e)](_0x420734[_0x2a6881(0x78)](_0x3ba4d1,_0x3fa0ae),_0x4741a),_0x1b83bd=writeUnknownSizeVint(_0x4741a);_0x1b83bd[_0x2a6881(0x6c)](_0x973f24,_0x420734[_0x2a6881(0x78)](_0x3ba4d1,_0x3fa0ae));let _0x436c2f=_0xe98dc0;const _0x587a19=Math[_0x2a6881(0x96)](_0x973f24[_0x2a6881(0xa7)],_0xe98dc0+0x2710);while(_0x420734[_0x2a6881(0x93)](_0x436c2f,_0x587a19)){const [_0x55b418,_0x348178]=_0x420734[_0x2a6881(0x91)](readId,_0x973f24,_0x436c2f),[_0x45a7ef,_0x428282]=readVint(_0x973f24,_0x436c2f+_0x348178);if(_0x55b418===ID_CLUSTER)break;if(_0x420734['qJMLE'](isUnknownSize,_0x45a7ef,_0x428282))break;if(_0x55b418===ID_INFO){const _0x2c73f4=_0x436c2f+_0x348178+_0x428282,_0x1558ea=_0x420734['iwWTV'](_0x2c73f4,_0x45a7ef),_0x10ef99=[];let _0x2f4bbf=_0x2c73f4;while(_0x420734[_0x2a6881(0x93)](_0x2f4bbf,_0x1558ea)){const [_0x796e1d,_0x3a23a3]=_0x420734['IJcsv'](readId,_0x973f24,_0x2f4bbf),[_0x380120,_0x2f0f60]=readVint(_0x973f24,_0x420734['ufeRM'](_0x2f4bbf,_0x3a23a3)),_0x2812b3=_0x420734[_0x2a6881(0x78)](_0x3a23a3+_0x2f0f60,_0x380120);_0x420734['USpKL'](_0x796e1d,ID_DURATION)&&_0x10ef99[_0x2a6881(0xa1)](_0x973f24[_0x2a6881(0x6d)](_0x2f4bbf,_0x420734['XclhL'](_0x2f4bbf,_0x2812b3))),_0x2f4bbf+=_0x2812b3;}const _0x1337d1=Buffer['concat'](_0x10ef99),_0x229c6=Buffer['concat']([_0x973f24['slice'](_0x436c2f,_0x436c2f+_0x348178),_0x420734['IJcsv'](writeVint,_0x1337d1[_0x2a6881(0xa7)],_0x428282)]);return Buffer[_0x2a6881(0xa2)]([_0x973f24['slice'](0x0,_0x436c2f),_0x229c6,_0x1337d1,_0x973f24['slice'](_0x1558ea)]);}_0x436c2f+=_0x420734['nOMeu'](_0x348178+_0x428282,_0x45a7ef);}return _0x973f24;}function _0x5cc3(){const _0x1024ff=['ifydD','clusters','argv','76IvqbOA','92774DdXMBd','lEQVy','223610dnwDLE','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','push','concat','OIeSb','ATtPO','EjPjq','aAFJo','length','BXDPu','YwrhE','tkpuy','QMjHy','QRmeZ','copy','slice','ZoeDw','floor','timestamp','has','7062624VjNcji','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','92876ZjWTMs','juxFX','NqJbE','wEhcX','eSaPB','EIuPV','10ecarDU','pow','readInt16BE','from','indexOf','yjJAW','2KWWJkD','Gpits','bodyAfterTimestamp','eYSHg','kFqzJ','mTQhV','log','528vzjnsp','PZWji','MLWiD','Ccnjx','VIVWM','ekrZt','2642175LJACUb','bodyBeforeTimestamp','alloc','FjaYs','NnOHN','QhJDj','pnXgi','189872ToUwrC','17299326hzGRnv','min','error','oNmTu'];_0x5cc3=function(){return _0x1024ff;};return _0x5cc3();}export function stitchWebmFiles(_0x5be575,_0x565935){const _0x528df9=_0x2b50,_0x31ff19={'igHXP':function(_0x365097,_0xbd9642){return _0x365097<=_0xbd9642;},'mhWWH':function(_0x790b98,_0x133ec1){return _0x790b98(_0x133ec1);},'ednuY':function(_0x4af296,_0x37bdb1){return _0x4af296+_0x37bdb1;},'oNmTu':function(_0x207906,_0x196e9c,_0x5ba21f){return _0x207906(_0x196e9c,_0x5ba21f);}};if(_0x31ff19['igHXP'](_0x5be575['length'],0x1))return![];const _0x31fc49=[];for(const _0x533330 of _0x5be575){const _0x1b28e2=readFileSync(_0x533330),_0x399e36=_0x31ff19['mhWWH'](parseWebm,_0x1b28e2);if(!_0x399e36||_0x399e36[_0x528df9(0x9a)]['length']===0x0)return![];_0x31fc49[_0x528df9(0xa1)](_0x399e36);}const _0x40a4c6=_0x31fc49[0x0],_0x20f0cd=rebuildHeaderWithoutDuration(_0x40a4c6['header']),_0x5eba26=[_0x20f0cd];let _0x2611fa=0x0;for(let _0x23a56f=0x0;_0x23a56f<_0x31fc49['length'];_0x23a56f++){const _0x6db566=_0x31fc49[_0x23a56f];for(const _0x3caba7 of _0x6db566[_0x528df9(0x9a)]){const _0x4b3084=_0x31ff19['ednuY'](_0x3caba7[_0x528df9(0x70)],_0x2611fa);_0x5eba26['push'](buildCluster(_0x4b3084,_0x3caba7[_0x528df9(0x8e)],_0x3caba7[_0x528df9(0x82)]));}const _0x11fd67=0x1e;_0x2611fa+=_0x6db566['maxTimestampTicks']+_0x11fd67;}return _0x31ff19[_0x528df9(0x98)](writeFileSync,_0x565935,Buffer['concat'](_0x5eba26)),!![];}if(process[_0xa164c7(0x9b)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0xa164c7(0x9b)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0xa164c7(0x97)](_0xa164c7(0xa0)),process['exit'](0x1));const output=args[args[_0xa164c7(0xa7)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0xa164c7(0xa7)]+'\x20files\x20->\x20'+output):console[_0xa164c7(0x86)](_0xa164c7(0x73));}
1
+ const _0x2066ec=_0x5043;(function(_0x350c1a,_0x42f826){const _0xc6379a=_0x5043,_0x10f2cd=_0x350c1a();while(!![]){try{const _0x24de0b=parseInt(_0xc6379a(0xa2))/0x1+parseInt(_0xc6379a(0xa9))/0x2+parseInt(_0xc6379a(0x91))/0x3+-parseInt(_0xc6379a(0xb0))/0x4+parseInt(_0xc6379a(0x88))/0x5+parseInt(_0xc6379a(0x9b))/0x6*(-parseInt(_0xc6379a(0x98))/0x7)+-parseInt(_0xc6379a(0xbc))/0x8;if(_0x24de0b===_0x42f826)break;else _0x10f2cd['push'](_0x10f2cd['shift']());}catch(_0x59b0d5){_0x10f2cd['push'](_0x10f2cd['shift']());}}}(_0x2168,0x3eef9));import{readFileSync,writeFileSync}from'fs';function _0x2168(){const _0x86c4a9=['2085294xICMKU','has','NctAV','TUaiS','qpXdH','tKKrd','zwoJm','385764uQTLUI','kUXpq','copy','zgTbm','AFhsy','log','pow','911974zFbiCg','LjZSC','slice','vdTkb','UgAfN','floor','ndxmj','1719812mhvYCk','ZwZek','Iwpbo','kkJoM','from','rfDXa','length','DAIsI','yHNfN','endsWith','IONGB','zlsow','3482536pLwReU','IEqzK','push','XBLeS','xNUsg','alloc','xkXkk','gxENY','EoAQy','concat','header','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','error','argv','ULvrt','gOJjf','maxTicks','uvBjb','lMffG','wRUbG','1564945eogphj','Stitched\x20','GtdVV','UVsaD','maxTimestampTicks','rcaBA','DOIio','qVRPk','CyhVg','947592KNuzgQ','fsaqB','DFtmK','indexOf','EnMpb','AVsdX','VEnWg','7kaoiLO','Ytjqr','obmwc'];_0x2168=function(){return _0x86c4a9;};return _0x2168();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x51fec4,_0x419625){const _0x3558bb=_0x5043,_0x1b8fde={'kWiUX':function(_0x89e20a,_0x3757b5){return _0x89e20a&_0x3757b5;},'Cvmqh':function(_0x13c892,_0x34caad){return _0x13c892+_0x34caad;},'EnMpb':function(_0x43eb18,_0xe76d5a){return _0x43eb18<_0xe76d5a;},'beheW':function(_0x558e97,_0x4b5505){return _0x558e97*_0x4b5505;}};if(_0x419625>=_0x51fec4['length'])return[0x0,0x0];const _0x423d73=_0x51fec4[_0x419625];let _0xc88b33=0x1,_0x1753e3=0x80;while(_0xc88b33<=0x8&&!_0x1b8fde['kWiUX'](_0x423d73,_0x1753e3)){_0xc88b33++,_0x1753e3>>=0x1;}if(_0x1b8fde['Cvmqh'](_0x419625,_0xc88b33)>_0x51fec4[_0x3558bb(0xb6)])return[0x0,0x0];let _0x1e6517=_0x423d73&_0x1753e3-0x1;for(let _0x376b07=0x1;_0x1b8fde[_0x3558bb(0x95)](_0x376b07,_0xc88b33);_0x376b07++){_0x1e6517=_0x1b8fde['beheW'](_0x1e6517,0x100)+_0x51fec4[_0x419625+_0x376b07];}return[_0x1e6517,_0xc88b33];}function readId(_0x180da5,_0x174b6a){const _0xd163af=_0x5043,_0x33bea3={'lAtVU':function(_0x37882a,_0x4b5329){return _0x37882a>=_0x4b5329;},'DOIio':function(_0x3b0705,_0x544e5e){return _0x3b0705+_0x544e5e;},'MvMwN':function(_0x574af6,_0x37ad4d){return _0x574af6*_0x37ad4d;}};if(_0x174b6a>=_0x180da5['length'])return[0x0,0x0];const _0x191231=_0x180da5[_0x174b6a];let _0x5a4f84;if(_0x33bea3['lAtVU'](_0x191231,0x80))_0x5a4f84=0x1;else{if(_0x33bea3['lAtVU'](_0x191231,0x40))_0x5a4f84=0x2;else{if(_0x33bea3['lAtVU'](_0x191231,0x20))_0x5a4f84=0x3;else{if(_0x191231>=0x10)_0x5a4f84=0x4;else return[_0x191231,0x1];}}}if(_0x33bea3[_0xd163af(0x8e)](_0x174b6a,_0x5a4f84)>_0x180da5[_0xd163af(0xb6)])return[0x0,0x0];let _0x4d707a=0x0;for(let _0x31ad48=0x0;_0x31ad48<_0x5a4f84;_0x31ad48++){_0x4d707a=_0x33bea3['MvMwN'](_0x4d707a,0x100)+_0x180da5[_0x174b6a+_0x31ad48];}return[_0x4d707a,_0x5a4f84];}function readUint(_0x3896b8,_0x1c0c5a,_0x2c1416){const _0x190f8c=_0x5043,_0x3e9287={'EjtvV':function(_0xae09c2,_0x519735){return _0xae09c2<_0x519735;},'obmwc':function(_0x187b6c,_0x1358b2){return _0x187b6c+_0x1358b2;}};let _0x558cb6=0x0;for(let _0x10edee=0x0;_0x3e9287['EjtvV'](_0x10edee,_0x2c1416);_0x10edee++){_0x558cb6=_0x558cb6*0x100+_0x3896b8[_0x3e9287[_0x190f8c(0x9a)](_0x1c0c5a,_0x10edee)];}return _0x558cb6;}function isUnknownSize(_0x42d666,_0x15037a){const _0x419671=_0x5043,_0x3ee2de={'DFtmK':function(_0x32ffba,_0x4b3c44){return _0x32ffba===_0x4b3c44;}};return _0x3ee2de[_0x419671(0x93)](_0x42d666,Math['pow'](0x2,0x7*_0x15037a)-0x1);}function writeVint(_0x53d1b2,_0x1ed8e9){const _0x122a4b=_0x5043,_0x58db80={'iJQdM':function(_0x40e4ed,_0x5c0c53){return _0x40e4ed||_0x5c0c53;},'rcaBA':function(_0x1a1ef6,_0x3d27ec){return _0x1a1ef6<_0x3d27ec;},'GVsJK':function(_0x443935,_0x464310){return _0x443935*_0x464310;},'cFxsz':function(_0x5542ed,_0x390f8d){return _0x5542ed-_0x390f8d;},'LjZSC':function(_0x1e36dc,_0x40ce8c){return _0x1e36dc>=_0x40ce8c;},'wRUbG':function(_0x1d6df1,_0x4ed369){return _0x1d6df1&_0x4ed369;}};let _0x2956b9=_0x58db80['iJQdM'](_0x1ed8e9,0x1);while(_0x58db80[_0x122a4b(0x8d)](Math[_0x122a4b(0xa8)](0x2,_0x58db80['GVsJK'](0x7,_0x2956b9))-0x2,_0x53d1b2))_0x2956b9++;const _0x204c20=Buffer[_0x122a4b(0xc1)](_0x2956b9);for(let _0x3e252f=_0x58db80['cFxsz'](_0x2956b9,0x1);_0x58db80[_0x122a4b(0xaa)](_0x3e252f,0x0);_0x3e252f--){_0x204c20[_0x3e252f]=_0x58db80[_0x122a4b(0x87)](_0x53d1b2,0xff),_0x53d1b2=Math[_0x122a4b(0xae)](_0x53d1b2/0x100);}return _0x204c20[0x0]|=0x1<<0x8-_0x2956b9,_0x204c20;}function _0x5043(_0x252602,_0x13bfc4){_0x252602=_0x252602-0x81;const _0x216848=_0x2168();let _0x50439e=_0x216848[_0x252602];return _0x50439e;}function writeUint(_0xc78d92,_0x37322b){const _0x466d6c={'JPGIz':function(_0x120d77,_0x4519ec){return _0x120d77>=_0x4519ec;},'aFYXg':function(_0x114f7e,_0x2c97b5){return _0x114f7e&_0x2c97b5;}},_0xa49c1c=Buffer['alloc'](_0x37322b);for(let _0x2d3823=_0x37322b-0x1;_0x466d6c['JPGIz'](_0x2d3823,0x0);_0x2d3823--){_0xa49c1c[_0x2d3823]=_0x466d6c['aFYXg'](_0xc78d92,0xff),_0xc78d92=Math['floor'](_0xc78d92/0x100);}return _0xa49c1c;}function writeUnknownSizeVint(_0x2c31bc){const _0x27d104=_0x5043,_0xfe1576=Buffer[_0x27d104(0xc1)](_0x2c31bc,0xff);return _0xfe1576[0x0]=0xff>>_0x2c31bc-0x1,_0xfe1576;}function uintSize(_0x410513){const _0x3aa552=_0x5043,_0x165dc9={'Iwpbo':function(_0x5fa5c3,_0x218513){return _0x5fa5c3>_0x218513;},'lmbpi':function(_0x6ee201,_0x2ba1d6){return _0x6ee201/_0x2ba1d6;}};if(_0x410513===0x0)return 0x1;let _0x1d6fd2=0x0,_0x2462a7=_0x410513;while(_0x165dc9[_0x3aa552(0xb2)](_0x2462a7,0x0)){_0x1d6fd2++,_0x2462a7=Math['floor'](_0x165dc9['lmbpi'](_0x2462a7,0x100));}return _0x1d6fd2;}function findTimestampScale(_0x3ff847,_0x2d9f92){const _0x1555bc=_0x5043,_0x446023={'UgAfN':function(_0x38c6f7,_0x1b0973){return _0x38c6f7+_0x1b0973;},'IEqzK':function(_0x1d97ef,_0xccb968,_0x19112c){return _0x1d97ef(_0xccb968,_0x19112c);},'IONGB':function(_0x52d53d,_0x366be2){return _0x52d53d===_0x366be2;},'VEnWg':function(_0x143d3c,_0x3024be){return _0x143d3c+_0x3024be;},'zgTbm':function(_0x289f24,_0x22240e){return _0x289f24+_0x22240e;},'gxENY':function(_0x55bdde,_0x273aca,_0x3c7d35,_0x37d5c0){return _0x55bdde(_0x273aca,_0x3c7d35,_0x37d5c0);},'ULvrt':function(_0x345c69,_0xeeb068){return _0x345c69+_0xeeb068;},'CyhVg':function(_0x146634,_0x5231af){return _0x146634===_0x5231af;},'tKKrd':function(_0x148a22,_0x148237){return _0x148a22+_0x148237;}};let _0x1d48a2=_0x2d9f92;const _0x4245c8=Math['min'](_0x3ff847['length'],_0x446023[_0x1555bc(0xad)](_0x2d9f92,0x2710));while(_0x1d48a2<_0x4245c8){const [_0x500792,_0x9ff5dd]=_0x446023['IEqzK'](readId,_0x3ff847,_0x1d48a2),[_0x256edd,_0x21d90c]=readVint(_0x3ff847,_0x1d48a2+_0x9ff5dd);if(_0x446023[_0x1555bc(0xba)](_0x500792,ID_INFO)){let _0x1896ca=_0x446023[_0x1555bc(0x97)](_0x446023[_0x1555bc(0xad)](_0x1d48a2,_0x9ff5dd),_0x21d90c);const _0x106f18=_0x1896ca+_0x256edd;while(_0x1896ca<_0x106f18){const [_0x31125f,_0x4de3f4]=readId(_0x3ff847,_0x1896ca),[_0x552e4d,_0x2b6243]=readVint(_0x3ff847,_0x446023['zgTbm'](_0x1896ca,_0x4de3f4));if(_0x31125f===ID_TIMESTAMP_SCALE)return _0x446023[_0x1555bc(0xc3)](readUint,_0x3ff847,_0x446023[_0x1555bc(0xa5)](_0x1896ca+_0x4de3f4,_0x2b6243),_0x552e4d);_0x1896ca+=_0x446023['UgAfN'](_0x446023[_0x1555bc(0x82)](_0x4de3f4,_0x2b6243),_0x552e4d);}break;}if(_0x446023[_0x1555bc(0x90)](_0x500792,ID_CLUSTER))break;if(_0x446023[_0x1555bc(0xbd)](isUnknownSize,_0x256edd,_0x21d90c))break;_0x1d48a2+=_0x446023[_0x1555bc(0xa0)](_0x9ff5dd+_0x21d90c,_0x256edd);}return 0xf4240;}function findFirstClusterOffset(_0x4e125d,_0x2e1df6){const _0x1bcab0=_0x5043,_0xd9313c={'EoAQy':function(_0x3fca19,_0x10deba){return _0x3fca19<_0x10deba;},'NrHtS':function(_0x31c58c,_0xa1d734){return _0x31c58c===_0xa1d734;},'yHNfN':function(_0x4d45e2,_0x1236b6){return _0x4d45e2+_0x1236b6;},'zlsow':function(_0x13b8af,_0x3bbe72,_0x45e74d){return _0x13b8af(_0x3bbe72,_0x45e74d);}};let _0x2146df=_0x2e1df6;while(_0xd9313c[_0x1bcab0(0xc4)](_0x2146df,_0x4e125d['length'])){const [_0x3a97f6,_0x1863a2]=readId(_0x4e125d,_0x2146df);if(_0xd9313c['NrHtS'](_0x3a97f6,ID_CLUSTER))return _0x2146df;const [_0x785ea1,_0x3c02bf]=readVint(_0x4e125d,_0xd9313c[_0x1bcab0(0xb8)](_0x2146df,_0x1863a2));if(_0xd9313c[_0x1bcab0(0xbb)](isUnknownSize,_0x785ea1,_0x3c02bf))return _0x2146df;_0x2146df+=_0xd9313c['yHNfN'](_0xd9313c['yHNfN'](_0x1863a2,_0x3c02bf),_0x785ea1);}return _0x4e125d[_0x1bcab0(0xb6)];}function findClusterEnd(_0x5a6842,_0x519375,_0x389359,_0xebb5de){const _0xb8b0f0=_0x5043,_0x423b86={'gpCez':function(_0x5181b9,_0x3cf154){return _0x5181b9+_0x3cf154;},'GtdVV':function(_0x69f234,_0x5e03c5,_0x5e5ee5){return _0x69f234(_0x5e03c5,_0x5e5ee5);}};if(!isUnknownSize(_0x389359,_0xebb5de))return _0x423b86['gpCez'](_0x519375,_0x389359);const _0x465108=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x5513d6=_0x519375;while(_0x5513d6<_0x5a6842['length']-0x4){const [_0x55b512,_0xd92e8e]=_0x423b86[_0xb8b0f0(0x8a)](readId,_0x5a6842,_0x5513d6);if(_0x465108[_0xb8b0f0(0x9c)](_0x55b512))return _0x5513d6;const [_0x2abe51,_0x49db39]=readVint(_0x5a6842,_0x5513d6+_0xd92e8e);if(isUnknownSize(_0x2abe51,_0x49db39))return _0x5a6842[_0xb8b0f0(0xb6)];_0x5513d6+=_0xd92e8e+_0x49db39+_0x2abe51;}return _0x5a6842[_0xb8b0f0(0xb6)];}function extractClusters(_0x3da8a9,_0x26cfa7){const _0x15fd3f=_0x5043,_0x33c121={'rfDXa':function(_0x468fa7,_0x20505b){return _0x468fa7<_0x20505b;},'qpXdH':function(_0x266b3e,_0x63cc52,_0x32c2dc){return _0x266b3e(_0x63cc52,_0x32c2dc);},'ORhFG':function(_0x4330e9,_0x227d57){return _0x4330e9!==_0x227d57;},'fMOro':function(_0x2dc852,_0x38623b,_0x738b8f){return _0x2dc852(_0x38623b,_0x738b8f);},'xkXkk':function(_0x263e91,_0x453d4d){return _0x263e91+_0x453d4d;},'ZwZek':function(_0x57f4ff,_0x3d1d03){return _0x57f4ff+_0x3d1d03;},'ZPMkM':function(_0x58410e,_0x477915,_0x2e511c,_0x2dd1a8,_0x45b650){return _0x58410e(_0x477915,_0x2e511c,_0x2dd1a8,_0x45b650);},'TUaiS':function(_0x47b116,_0x3bf864,_0x4f9d0a){return _0x47b116(_0x3bf864,_0x4f9d0a);},'UVsaD':function(_0x4e0b94,_0x8ecb27,_0x250a8a){return _0x4e0b94(_0x8ecb27,_0x250a8a);},'kUXpq':function(_0x3fab6d,_0x5e775b){return _0x3fab6d+_0x5e775b;},'AFhsy':function(_0x9a1cdb,_0x3d4bfd){return _0x9a1cdb===_0x3d4bfd;},'ltsHD':function(_0x407ff1,_0x359721,_0xc0e18d,_0x3634aa){return _0x407ff1(_0x359721,_0xc0e18d,_0x3634aa);},'ndxmj':function(_0x3b1d9b,_0x33c73c){return _0x3b1d9b+_0x33c73c;},'Ytjqr':function(_0x2995ea,_0x59dacc){return _0x2995ea===_0x59dacc;},'YnZSz':function(_0x2f3f6d,_0x20cae2){return _0x2f3f6d===_0x20cae2;},'sDzRa':function(_0x1dc41e,_0x8292d7){return _0x1dc41e>=_0x8292d7;},'DAIsI':function(_0x439251,_0x5eb5c7,_0x695958){return _0x439251(_0x5eb5c7,_0x695958);}},_0xc40d8b=[],_0x577001=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x255982=0x0;while(_0x33c121[_0x15fd3f(0xb5)](_0x255982,_0x3da8a9[_0x15fd3f(0xb6)])){const _0x28b945=_0x3da8a9[_0x15fd3f(0x94)](_0x577001,_0x255982);if(_0x28b945===-0x1)break;const [_0x351eca,_0x51afc4]=_0x33c121['qpXdH'](readId,_0x3da8a9,_0x28b945);if(_0x33c121['ORhFG'](_0x351eca,ID_CLUSTER)){_0x255982=_0x28b945+0x1;continue;}const [_0x1ed9e3,_0x3272d5]=_0x33c121['fMOro'](readVint,_0x3da8a9,_0x33c121[_0x15fd3f(0xc2)](_0x28b945,_0x51afc4)),_0x452c76=_0x33c121[_0x15fd3f(0xb1)](_0x28b945+_0x51afc4,_0x3272d5),_0x4ef114=_0x33c121['ZPMkM'](findClusterEnd,_0x3da8a9,_0x452c76,_0x1ed9e3,_0x3272d5);let _0x53769b=_0x452c76,_0x400d73=0x0,_0x1ff1a9=0x2,_0x16f7e6=![],_0x411304=Buffer[_0x15fd3f(0xc1)](0x0),_0x358e8b=Buffer['alloc'](0x0);while(_0x53769b<_0x4ef114){const [_0x2f3342,_0x5ed77b]=_0x33c121[_0x15fd3f(0x9e)](readId,_0x3da8a9,_0x53769b),[_0x24c670,_0x23398c]=_0x33c121[_0x15fd3f(0x8b)](readVint,_0x3da8a9,_0x33c121[_0x15fd3f(0xa3)](_0x53769b,_0x5ed77b));if(_0x33c121[_0x15fd3f(0xa6)](_0x2f3342,ID_TIMESTAMP)){_0x400d73=_0x33c121['ltsHD'](readUint,_0x3da8a9,_0x53769b+_0x5ed77b+_0x23398c,_0x24c670),_0x1ff1a9=_0x24c670,_0x16f7e6=!![],_0x411304=_0x3da8a9['slice'](_0x452c76,_0x53769b);const _0x287594=_0x33c121[_0x15fd3f(0xb1)](_0x33c121[_0x15fd3f(0xaf)](_0x33c121[_0x15fd3f(0xaf)](_0x53769b,_0x5ed77b),_0x23398c),_0x24c670);_0x358e8b=_0x3da8a9[_0x15fd3f(0xab)](_0x287594,_0x4ef114);break;}if(_0x33c121[_0x15fd3f(0x99)](_0x2f3342,ID_CLUSTER))break;if(_0x33c121[_0x15fd3f(0x9f)](isUnknownSize,_0x24c670,_0x23398c))break;_0x53769b+=_0x5ed77b+_0x23398c+_0x24c670;}!_0x16f7e6&&(_0x358e8b=_0x3da8a9[_0x15fd3f(0xab)](_0x452c76,_0x4ef114));let _0x50eff0=_0x400d73;_0x53769b=_0x452c76;while(_0x53769b<_0x4ef114){const [_0x59d4bc,_0x4ac950]=_0x33c121['TUaiS'](readId,_0x3da8a9,_0x53769b),[_0x4e2b4c,_0x5d2d0b]=readVint(_0x3da8a9,_0x33c121['xkXkk'](_0x53769b,_0x4ac950));if(_0x33c121['YnZSz'](_0x59d4bc,ID_SIMPLE_BLOCK)&&_0x33c121['sDzRa'](_0x4e2b4c,0x4)){const _0x3da8a1=_0x53769b+_0x4ac950+_0x5d2d0b,[,_0x177017]=_0x33c121[_0x15fd3f(0xb7)](readVint,_0x3da8a9,_0x3da8a1),_0x15d8bd=_0x3da8a9['readInt16BE'](_0x33c121['kUXpq'](_0x3da8a1,_0x177017)),_0x52fb85=_0x33c121[_0x15fd3f(0xa3)](_0x400d73,_0x15d8bd);if(_0x52fb85>_0x50eff0)_0x50eff0=_0x52fb85;}if(_0x59d4bc===ID_CLUSTER)break;if(isUnknownSize(_0x4e2b4c,_0x5d2d0b))break;_0x53769b+=_0x4ac950+_0x5d2d0b+_0x4e2b4c;}_0xc40d8b['push']({'timestamp':_0x400d73,'maxTicks':_0x50eff0,'bodyBeforeTimestamp':_0x411304,'bodyAfterTimestamp':_0x358e8b,'timestampElementSize':_0x1ff1a9}),_0x255982=_0x4ef114;}return _0xc40d8b;}function parseWebm(_0x16681a){const _0x18cdbd=_0x5043,_0x4d288b={'hUtDp':function(_0x34c070,_0x471692,_0x5c6046){return _0x34c070(_0x471692,_0x5c6046);},'NctAV':function(_0x4ba9f8,_0x3b3949){return _0x4ba9f8+_0x3b3949;},'uvBjb':function(_0x4e6e00,_0x552a5b){return _0x4e6e00!==_0x552a5b;},'lMffG':function(_0x4f7ca1,_0x362ea7){return _0x4f7ca1>_0x362ea7;}};let _0x1f1dc3=0x0;const [,_0xa3f203]=readId(_0x16681a,_0x1f1dc3),[_0x37f96c,_0x2e92f4]=_0x4d288b['hUtDp'](readVint,_0x16681a,_0x1f1dc3+_0xa3f203);_0x1f1dc3+=_0x4d288b['NctAV'](_0x4d288b[_0x18cdbd(0x9d)](_0xa3f203,_0x2e92f4),_0x37f96c);const [_0x2d5fe5,_0x5097e0]=readId(_0x16681a,_0x1f1dc3);if(_0x4d288b[_0x18cdbd(0x85)](_0x2d5fe5,ID_SEGMENT))return null;const [,_0x460362]=readVint(_0x16681a,_0x1f1dc3+_0x5097e0),_0x42edeb=_0x4d288b[_0x18cdbd(0x9d)](_0x1f1dc3+_0x5097e0,_0x460362),_0x1270f5=findTimestampScale(_0x16681a,_0x42edeb),_0x5170d8=findFirstClusterOffset(_0x16681a,_0x42edeb),_0x2aeac7=_0x16681a['slice'](0x0,_0x5170d8),_0x5d8f92=extractClusters(_0x16681a,_0x1270f5);let _0x242df8=0x0;for(const _0x13a2e9 of _0x5d8f92){if(_0x4d288b[_0x18cdbd(0x86)](_0x13a2e9[_0x18cdbd(0x84)],_0x242df8))_0x242df8=_0x13a2e9['maxTicks'];}return{'header':_0x2aeac7,'clusters':_0x5d8f92,'timestampScale':_0x1270f5,'maxTimestampTicks':_0x242df8};}function buildCluster(_0x509f40,_0x3b4b28,_0x3b1091){const _0x423ae9=_0x5043,_0x662716={'xNUsg':function(_0x40e021,_0x19c011){return _0x40e021(_0x19c011);}},_0x294a45=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x2a5b3f=Math['max'](0x4,_0x662716['xNUsg'](uintSize,_0x509f40)),_0x428932=Buffer[_0x423ae9(0xc5)]([Buffer['from']([ID_TIMESTAMP]),_0x662716[_0x423ae9(0xc0)](writeVint,_0x2a5b3f),writeUint(_0x509f40,_0x2a5b3f)]),_0x4daf84=Buffer[_0x423ae9(0xc5)]([_0x3b4b28,_0x428932,_0x3b1091]),_0x468821=_0x662716[_0x423ae9(0xc0)](writeVint,_0x4daf84[_0x423ae9(0xb6)]);return Buffer[_0x423ae9(0xc5)]([_0x294a45,_0x468821,_0x4daf84]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2d7dbc){const _0x1de283=_0x5043,_0x28d4a5={'zwoJm':function(_0x1554c9,_0x5ea873,_0x39ba2b){return _0x1554c9(_0x5ea873,_0x39ba2b);},'gOJjf':function(_0x308dda,_0x5af076){return _0x308dda+_0x5af076;},'XBLeS':function(_0x54763d,_0x423b0a){return _0x54763d+_0x423b0a;},'kkJoM':function(_0x184ada,_0x75c431){return _0x184ada+_0x75c431;},'qVRPk':function(_0x4e0b44,_0xcff326){return _0x4e0b44===_0xcff326;},'wBaxn':function(_0x1b4212,_0x2d3302){return _0x1b4212+_0x2d3302;},'RWLxh':function(_0x5c5b80,_0xe38792){return _0x5c5b80+_0xe38792;},'TzQCl':function(_0x1c249f,_0x4ac40e){return _0x1c249f+_0x4ac40e;},'FDUNG':function(_0x33bfeb,_0x2848f4){return _0x33bfeb+_0x2848f4;}},_0x1b5281=Buffer[_0x1de283(0xb4)](_0x2d7dbc);let _0x3d6297=0x0;const [,_0x3bbd66]=_0x28d4a5[_0x1de283(0xa1)](readId,_0x1b5281,_0x3d6297),[_0x1ecd5f,_0x272bc8]=readVint(_0x1b5281,_0x28d4a5['gOJjf'](_0x3d6297,_0x3bbd66)),_0x445e9d=_0x3d6297+_0x3bbd66+_0x272bc8+_0x1ecd5f,[,_0x4b4976]=readId(_0x1b5281,_0x445e9d),[,_0x5bb683]=readVint(_0x1b5281,_0x28d4a5[_0x1de283(0xbf)](_0x445e9d,_0x4b4976)),_0x54495e=_0x28d4a5['gOJjf'](_0x445e9d,_0x4b4976)+_0x5bb683,_0x2b44ff=writeUnknownSizeVint(_0x5bb683);_0x2b44ff[_0x1de283(0xa4)](_0x1b5281,_0x445e9d+_0x4b4976);let _0x5690dc=_0x54495e;const _0x52f2b1=Math['min'](_0x1b5281[_0x1de283(0xb6)],_0x28d4a5[_0x1de283(0xb3)](_0x54495e,0x2710));while(_0x5690dc<_0x52f2b1){const [_0x190cf1,_0x1332d2]=readId(_0x1b5281,_0x5690dc),[_0x2479a0,_0x3ffb1c]=readVint(_0x1b5281,_0x28d4a5[_0x1de283(0x83)](_0x5690dc,_0x1332d2));if(_0x28d4a5[_0x1de283(0x8f)](_0x190cf1,ID_CLUSTER))break;if(isUnknownSize(_0x2479a0,_0x3ffb1c))break;if(_0x190cf1===ID_INFO){const _0x45732c=_0x28d4a5[_0x1de283(0x83)](_0x5690dc,_0x1332d2)+_0x3ffb1c,_0x49c305=_0x45732c+_0x2479a0,_0x42c95f=[];let _0x367510=_0x45732c;while(_0x367510<_0x49c305){const [_0x362faa,_0x1185a1]=readId(_0x1b5281,_0x367510),[_0x409843,_0x249e59]=readVint(_0x1b5281,_0x367510+_0x1185a1),_0x385848=_0x28d4a5['wBaxn'](_0x1185a1,_0x249e59)+_0x409843;_0x362faa!==ID_DURATION&&_0x42c95f[_0x1de283(0xbe)](_0x1b5281['slice'](_0x367510,_0x367510+_0x385848)),_0x367510+=_0x385848;}const _0x18aed3=Buffer['concat'](_0x42c95f),_0x4c5eec=Buffer['concat']([_0x1b5281[_0x1de283(0xab)](_0x5690dc,_0x28d4a5['RWLxh'](_0x5690dc,_0x1332d2)),writeVint(_0x18aed3[_0x1de283(0xb6)],_0x3ffb1c)]);return Buffer['concat']([_0x1b5281['slice'](0x0,_0x5690dc),_0x4c5eec,_0x18aed3,_0x1b5281[_0x1de283(0xab)](_0x49c305)]);}_0x5690dc+=_0x28d4a5['TzQCl'](_0x28d4a5['FDUNG'](_0x1332d2,_0x3ffb1c),_0x2479a0);}return _0x1b5281;}export function stitchWebmFiles(_0xf9d997,_0x42d522){const _0x333471=_0x5043,_0xac24ee={'fsaqB':function(_0x50ef5e,_0x1e88bf){return _0x50ef5e(_0x1e88bf);},'vdTkb':function(_0x5bc360,_0x1b7b8f){return _0x5bc360<_0x1b7b8f;},'AVsdX':function(_0x1af639,_0x240c62,_0x1559e3){return _0x1af639(_0x240c62,_0x1559e3);}};if(_0xf9d997['length']<=0x1)return![];const _0x638bda=[];for(const _0x369980 of _0xf9d997){const _0x2b5ddb=_0xac24ee[_0x333471(0x92)](readFileSync,_0x369980),_0x4ab5f0=_0xac24ee[_0x333471(0x92)](parseWebm,_0x2b5ddb);if(!_0x4ab5f0||_0x4ab5f0['clusters'][_0x333471(0xb6)]===0x0)return![];_0x638bda['push'](_0x4ab5f0);}const _0x419a27=_0x638bda[0x0],_0x1bf944=_0xac24ee['fsaqB'](rebuildHeaderWithoutDuration,_0x419a27[_0x333471(0xc6)]),_0x1f2a5e=[_0x1bf944];let _0x324afb=0x0;for(let _0x470327=0x0;_0xac24ee[_0x333471(0xac)](_0x470327,_0x638bda[_0x333471(0xb6)]);_0x470327++){const _0x1d6252=_0x638bda[_0x470327];for(const _0x877891 of _0x1d6252['clusters']){const _0x21e5c8=_0x877891['timestamp']+_0x324afb;_0x1f2a5e['push'](buildCluster(_0x21e5c8,_0x877891['bodyBeforeTimestamp'],_0x877891['bodyAfterTimestamp']));}const _0x4e1d72=0x1e;_0x324afb+=_0x1d6252[_0x333471(0x8c)]+_0x4e1d72;}return _0xac24ee[_0x333471(0x96)](writeFileSync,_0x42d522,Buffer['concat'](_0x1f2a5e)),!![];}if(process[_0x2066ec(0x81)][0x1]?.[_0x2066ec(0xb9)]('stitchWebmFiles.ts')||process[_0x2066ec(0x81)][0x1]?.[_0x2066ec(0xb9)]('stitchWebmFiles.js')){const args=process[_0x2066ec(0x81)]['slice'](0x2);args[_0x2066ec(0xb6)]<0x3&&(console[_0x2066ec(0xc8)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x2066ec(0xab)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x2066ec(0xa7)](_0x2066ec(0x89)+inputs[_0x2066ec(0xb6)]+'\x20files\x20->\x20'+output):console['log'](_0x2066ec(0xc7));}