@ranger-testing/ranger-cli 3.0.1-alpha.ffffb5b-28 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -0
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -0
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -0
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  85. package/package.json +4 -1
@@ -1 +1 @@
1
- (function(_0x2afb1e,_0x15b409){const _0x275244=_0x9034,_0xf84fd9=_0x2afb1e();while(!![]){try{const _0x429d8a=parseInt(_0x275244(0xe3))/0x1*(parseInt(_0x275244(0xe5))/0x2)+-parseInt(_0x275244(0xd2))/0x3+parseInt(_0x275244(0xd3))/0x4*(-parseInt(_0x275244(0xea))/0x5)+parseInt(_0x275244(0xdb))/0x6+parseInt(_0x275244(0xcb))/0x7+parseInt(_0x275244(0xbd))/0x8*(-parseInt(_0x275244(0xd1))/0x9)+parseInt(_0x275244(0xdc))/0xa;if(_0x429d8a===_0x15b409)break;else _0xf84fd9['push'](_0xf84fd9['shift']());}catch(_0x592911){_0xf84fd9['push'](_0xf84fd9['shift']());}}}(_0xbf86,0xdf376));function _0x9034(_0x1a4c93,_0x48ed76){_0x1a4c93=_0x1a4c93-0xbd;const _0xbf8604=_0xbf86();let _0x903401=_0xbf8604[_0x1a4c93];return _0x903401;}import{existsSync}from'fs';import _0x5def2a from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0xbf86(){const _0x3d32f4=['fRZwE','profile','status','url','settings','HAoGX','dnoag','jDPXB','env','8802955cYKQcL','fOzlo','RANGER_SESSION_STATE_PATH','resolvedEnv','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','cloud','216oyeDOw','3093750FWJNEZ','4rvVvig','NeGgj','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','name','xOkuz','cwd','ixyNr','length','572364pekcaq','18031520ErRxcu','Cloud\x20profile\x20(recommended)','baseUrl','MVnLM','Profile\x20\x22','NLkxa','string','5603qcMKWe','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','84yKZERs','RLBEZ','startPath','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','RANGER_SESSION_STATE_PATH=','3326585LHbGfv','260192ouzKrj','authPath','cdpEndpoint','tErJq','qwNQs'];_0xbf86=function(){return _0x3d32f4;};return _0xbf86();}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(_0xbe4a87){const _0x353470=_0x9034,_0x25bc94={'dnoag':function(_0x5eff0b){return _0x5eff0b();},'vGfpk':function(_0x1292b6,_0x3c65a7){return _0x1292b6===_0x3c65a7;},'qwNQs':function(_0x2663fb,_0x13f04e){return _0x2663fb+_0x13f04e;},'fCjTq':function(_0x4460fc,_0x4fcc3f){return _0x4460fc+_0x4fcc3f;},'RLBEZ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','Zwqon':_0x353470(0xd5),'cqIBR':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','bjqsK':function(_0x5c5448,_0x4b7b43){return _0x5c5448(_0x4b7b43);},'CfIWM':function(_0x3f5374,_0x2bf2fb){return _0x3f5374(_0x2bf2fb);},'NLkxa':function(_0x3559b0,_0x860c7f){return _0x3559b0&&_0x860c7f;},'TPIms':function(_0x4aa77d,_0x195f85){return _0x4aa77d+_0x195f85;},'jDPXB':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','xOkuz':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','tErJq':function(_0x14d173,_0xab1d88){return _0x14d173&&_0xab1d88;},'vYZnQ':function(_0x3baa57){return _0x3baa57();},'NbmMV':'source','fRZwE':'Local\x20profile','MVnLM':'local','HBNEc':_0x353470(0xd0),'XcKkz':function(_0x1d8d89,_0x540932,_0x39d457){return _0x1d8d89(_0x540932,_0x39d457);},'NeGgj':function(_0x2b68ac,_0x390594){return _0x2b68ac(_0x390594);},'gaTxZ':function(_0x57dd4e,_0x12aeaa){return _0x57dd4e??_0x12aeaa;},'ixyNr':function(_0x44957d,_0x4d5c40){return _0x44957d(_0x4d5c40);},'KXSMv':function(_0x4b5d75,_0xbdb91c){return _0x4b5d75(_0xbdb91c);},'ifQXy':function(_0x344acb,_0x474b4a){return _0x344acb(_0x474b4a);},'MGWSH':function(_0x5856ed,_0x571a08){return _0x5856ed(_0x571a08);},'HQhZm':function(_0x207d3a){return _0x207d3a();}},_0x302cdd=_0xbe4a87[_0x353470(0xc3)];let _0x23fcb3=_0xbe4a87['profile']??await readActiveProfileName(),_0x349940=null;if(!_0x23fcb3&&process[_0x353470(0xca)]['RANGER_TEST_USERNAME']){const _0x2d247a=await _0x25bc94[_0x353470(0xc8)](resolveAdHocProfile);_0x2d247a&&(_0x23fcb3=_0x2d247a['name'],_0x349940=_0x2d247a[_0x353470(0xc3)]);}if(!_0x23fcb3)try{const _0x2ed894=await listCloudProfiles();if(_0x25bc94['vGfpk'](_0x2ed894[_0x353470(0xda)],0x1)){const _0x4513a4=_0x2ed894[0x0];_0x23fcb3=_0x4513a4[_0x353470(0xd6)],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x4513a4[_0x353470(0xd6)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x23fcb3)throw new Error(_0x25bc94[_0x353470(0xc1)](_0x25bc94['fCjTq']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+_0x25bc94[_0x353470(0xe6)],_0x25bc94['Zwqon'])+_0x25bc94['cqIBR'],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x58b3d1=_0x25bc94['bjqsK'](getEnvDir,_0x23fcb3),_0x561fbc=_0x25bc94['CfIWM'](existsSync,_0x58b3d1);let _0x4c9b3e=_0x349940,_0x183999=![];if(!_0x4c9b3e)try{_0x4c9b3e=await fetchCloudProfile(_0x23fcb3);if(!_0x4c9b3e)_0x183999=!![];}catch(_0x459072){_0x459072 instanceof ApiError&&_0x459072[_0x353470(0xc4)]===0x194&&(_0x183999=!![]);}if(_0x25bc94[_0x353470(0xe1)](_0x302cdd,_0x183999)&&!_0x561fbc&&!_0x4c9b3e)throw new Error(_0x25bc94['TPIms'](_0x353470(0xe0)+_0x302cdd+_0x353470(0xcf),_0x25bc94[_0x353470(0xc9)])+_0x25bc94[_0x353470(0xd7)]);if(_0x25bc94[_0x353470(0xc0)](_0x4c9b3e,_0x561fbc)){let _0x1da339=!![];if(_0x25bc94['vYZnQ'](isInteractive)){const {source:_0x359883}=await _0x5def2a['prompt']([{'type':'list','name':_0x25bc94['NbmMV'],'message':_0x353470(0xe0)+_0x23fcb3+_0x353470(0xe4),'choices':[{'name':_0x353470(0xdd),'value':_0x353470(0xd0)},{'name':_0x25bc94[_0x353470(0xc2)],'value':_0x25bc94[_0x353470(0xdf)]}],'default':_0x353470(0xd0)}]);_0x1da339=_0x359883===_0x25bc94['HBNEc'];}if(!_0x1da339)_0x4c9b3e=null;}const _0x51fe3a=_0x25bc94['XcKkz'](readProfileOverrides,process[_0x353470(0xd8)](),_0x23fcb3);let _0x479b07=null,_0x42f63e,_0x2e685e,_0x1624a5,_0x282cbe,_0x1ce3cd=null,_0x4be063;const _0x5142f2=_0x25bc94[_0x353470(0xd4)](expandOverrides,_0x51fe3a);if(_0x4c9b3e){_0x479b07=_0x4c9b3e;const _0x45d8c6=_0x4c9b3e[_0x353470(0xc6)]??{},_0x35e9fd=_0x25bc94['XcKkz'](mergeCloudProfileSettings,_0x45d8c6,_0x25bc94['gaTxZ'](_0x51fe3a,undefined)),_0x43ee08={..._0x4c9b3e,'settings':_0x35e9fd},_0x15bf00=process['env'][_0x353470(0xcd)];if(_0x15bf00){if(!existsSync(_0x15bf00))throw new Error(_0x353470(0xe9)+_0x15bf00+'\x20does\x20not\x20exist.');_0x42f63e=_0x15bf00,_0x2e685e=_0x25bc94[_0x353470(0xd9)](resolveEnvVars,_0x35e9fd),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':_0x25bc94['KXSMv'](expandString,_0x45d8c6['baseUrl']),'startPath':expandString(_0x45d8c6[_0x353470(0xe7)])};}else{const _0x1841dc=await _0x25bc94['ifQXy'](resolveCloudProfileSession,_0x43ee08);_0x42f63e=_0x1841dc[_0x353470(0xbe)],_0x2e685e=resolveEnvVars(_0x35e9fd),_0x1624a5=_0x25bc94['ifQXy'](Boolean,_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':expandString(_0x45d8c6['baseUrl']),'startPath':_0x25bc94['MGWSH'](expandString,_0x45d8c6[_0x353470(0xe7)])},_0x4be063=_0x1841dc[_0x353470(0xce)]?.['domains']?.[0x0];}}else{if(!_0x561fbc)throw new Error('Profile\x20\x22'+_0x23fcb3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x23fcb3);const _0x571d83=await loadSettings(_0x23fcb3);_0x2e685e=resolveEnvVars(_0x571d83),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x282cbe=_0x2e685e['baseUrl'];}const _0x1b0b6f=_0x25bc94['HQhZm'](readUrlEnvVars),_0x35c446=_0x25bc94[_0x353470(0xd4)](resolveProfileUrl,{'flagBaseUrl':_0xbe4a87['baseUrl'],'flagStartPath':_0xbe4a87['startPath'],'envBaseUrl':_0x1b0b6f['envBaseUrl'],'envStartPath':_0x1b0b6f['envStartPath'],'localSettingsBaseUrl':_0x282cbe,'projectOverrides':_0x5142f2,'cloudSettings':_0x1ce3cd,'authEnvironmentDomain':_0x4be063}),_0x4e8445=_0x35c446[_0x353470(0xc5)]??_0x35c446[_0x353470(0xde)];if(_0x25bc94[_0x353470(0xe1)](!_0x4e8445,!_0x1624a5))throw new Error(_0x353470(0xe8)+_0x23fcb3+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x23fcb3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x23fcb3,'resolvedCloudProfile':_0x479b07,'cloudAuthPath':_0x42f63e,'resolvedSettings':_0x2e685e,'isCdpMode':_0x1624a5,'url':_0x4e8445,'startPath':_0x35c446['startPath']};}function expandString(_0x18a029){const _0x5ee1fb=_0x9034,_0x3ff82a={'WDiRq':function(_0x5b13f6,_0x359758){return _0x5b13f6!==_0x359758;}};if(_0x3ff82a['WDiRq'](typeof _0x18a029,_0x5ee1fb(0xe2)))return _0x18a029;return resolveEnvVars(_0x18a029);}function expandOverrides(_0x6f548c){const _0x4be69=_0x9034,_0x5e8d24={'fOzlo':function(_0x2bb6be,_0x3bde74){return _0x2bb6be===_0x3bde74;},'qrVYJ':_0x4be69(0xe2),'HAoGX':function(_0x29aff6,_0x2eb27c){return _0x29aff6(_0x2eb27c);},'ldZwp':function(_0x46f9cd,_0xf497ec){return _0x46f9cd(_0xf497ec);}};if(!_0x6f548c)return _0x6f548c;const _0x383116={..._0x6f548c};return _0x5e8d24[_0x4be69(0xcc)](typeof _0x383116['baseUrl'],_0x5e8d24['qrVYJ'])&&(_0x383116[_0x4be69(0xde)]=_0x5e8d24[_0x4be69(0xc7)](resolveEnvVars,_0x383116['baseUrl'])),typeof _0x383116['startPath']===_0x4be69(0xe2)&&(_0x383116[_0x4be69(0xe7)]=_0x5e8d24['ldZwp'](resolveEnvVars,_0x383116['startPath'])),_0x383116;}
1
+ (function(_0x94139c,_0x3025c2){const _0x12a726=_0x13f3,_0x5f37d3=_0x94139c();while(!![]){try{const _0x58f38e=-parseInt(_0x12a726(0x200))/0x1*(parseInt(_0x12a726(0x1eb))/0x2)+-parseInt(_0x12a726(0x1f7))/0x3+-parseInt(_0x12a726(0x214))/0x4+-parseInt(_0x12a726(0x1fe))/0x5*(parseInt(_0x12a726(0x216))/0x6)+-parseInt(_0x12a726(0x1f0))/0x7*(parseInt(_0x12a726(0x218))/0x8)+-parseInt(_0x12a726(0x219))/0x9*(parseInt(_0x12a726(0x208))/0xa)+parseInt(_0x12a726(0x206))/0xb;if(_0x58f38e===_0x3025c2)break;else _0x5f37d3['push'](_0x5f37d3['shift']());}catch(_0x52ae16){_0x5f37d3['push'](_0x5f37d3['shift']());}}}(_0x5bb0,0xd78dc));import{existsSync}from'fs';import _0x36b212 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x5bb0(){const _0x5b052e=['ymaOe','16392CmnwLn','cwd','56yZbTWs','225PSAACv','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','env','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','3217366GBQzdx','kbOgn','IsHyG','HxYus','LMEIl','497700tlhWAc','log','authPath','MjyiX','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','qdVFq','name','1219308YdWAGS','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','RANGER_SESSION_STATE_PATH','local','WJEBs','DOQzo','HNVqM','1105fcyGgu','envBaseUrl','1EdzNRP','baseUrl','RANGER_SESSION_STATE_PATH=','profile','jgUpl','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','54394208TfXKBw','string','42010ecnzWe','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','list','Profile\x20\x22','cdpEndpoint','domains','startPath','LCdtY','`ranger\x20profile\x20add`\x20to\x20create\x20one.','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','url','XraME','3361616bnkfmX'];_0x5bb0=function(){return _0x5b052e;};return _0x5bb0();}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(_0x32ebc7){const _0x390b2b=_0x13f3,_0x25ae8b={'qdVFq':function(_0x31e9cb,_0x5beccd){return _0x31e9cb+_0x5beccd;},'crpVk':function(_0x1460cc,_0x3d0b7e){return _0x1460cc+_0x3d0b7e;},'qlQUs':_0x390b2b(0x21c),'HxYus':_0x390b2b(0x205),'WJEBs':_0x390b2b(0x1f4),'HNVqM':function(_0x32d228,_0x4eae44){return _0x32d228(_0x4eae44);},'IWpDj':function(_0x556f60,_0x5a5fb6){return _0x556f60===_0x5a5fb6;},'MjyiX':function(_0x41d694,_0x151e08){return _0x41d694+_0x151e08;},'XraME':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','LCdtY':function(_0x543c91,_0x3677a7){return _0x543c91&&_0x3677a7;},'swXex':function(_0x412cdf){return _0x412cdf();},'CFvCi':'source','DOQzo':'Local\x20profile','LMEIl':function(_0x1088a9,_0x11d01b,_0x4e0e06){return _0x1088a9(_0x11d01b,_0x4e0e06);},'ttlhQ':function(_0x40a4a0,_0x2305da){return _0x40a4a0??_0x2305da;},'ymaOe':function(_0x2f2b90,_0x3b57d9){return _0x2f2b90(_0x3b57d9);},'gqsWK':function(_0x51dcaf,_0x352a43,_0xbe9c77){return _0x51dcaf(_0x352a43,_0xbe9c77);},'HyYmA':function(_0x220e98,_0x10170a){return _0x220e98(_0x10170a);},'kbOgn':function(_0x1cf1be,_0x508860){return _0x1cf1be(_0x508860);}},_0x80a3ed=_0x32ebc7['profile'];let _0x14673c=_0x32ebc7[_0x390b2b(0x203)]??await readActiveProfileName(),_0x46249a=null;if(!_0x14673c&&process['env']['RANGER_TEST_USERNAME']){const _0x21a44d=await resolveAdHocProfile();_0x21a44d&&(_0x14673c=_0x21a44d[_0x390b2b(0x1f6)],_0x46249a=_0x21a44d['profile']);}if(!_0x14673c)try{const _0x120b0d=await listCloudProfiles();if(_0x120b0d['length']===0x1){const _0x27ac1c=_0x120b0d[0x0];_0x14673c=_0x27ac1c['name'],console[_0x390b2b(0x1f1)](_0x390b2b(0x1f8)+_0x27ac1c['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x14673c)throw new Error(_0x25ae8b[_0x390b2b(0x1f5)](_0x25ae8b['crpVk'](_0x25ae8b['crpVk'](_0x25ae8b['qlQUs'],_0x390b2b(0x211)),_0x390b2b(0x209))+_0x25ae8b[_0x390b2b(0x1ee)],_0x25ae8b[_0x390b2b(0x1fb)]));const _0xb56381=_0x25ae8b['HNVqM'](getEnvDir,_0x14673c),_0x9e3f5=existsSync(_0xb56381);let _0x3dfefe=_0x46249a,_0x3f9ce9=![];if(!_0x3dfefe)try{_0x3dfefe=await fetchCloudProfile(_0x14673c);if(!_0x3dfefe)_0x3f9ce9=!![];}catch(_0x3dc18f){_0x3dc18f instanceof ApiError&&_0x25ae8b['IWpDj'](_0x3dc18f['status'],0x194)&&(_0x3f9ce9=!![]);}if(_0x80a3ed&&_0x3f9ce9&&!_0x9e3f5&&!_0x3dfefe)throw new Error(_0x25ae8b[_0x390b2b(0x1f3)](_0x390b2b(0x20b)+_0x80a3ed+_0x390b2b(0x21a),_0x25ae8b[_0x390b2b(0x213)])+_0x390b2b(0x210));if(_0x25ae8b[_0x390b2b(0x20f)](_0x3dfefe,_0x9e3f5)){let _0x33aa8d=!![];if(_0x25ae8b['swXex'](isInteractive)){const {source:_0x684130}=await _0x36b212['prompt']([{'type':_0x390b2b(0x20a),'name':_0x25ae8b['CFvCi'],'message':'Profile\x20\x22'+_0x14673c+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':'Cloud\x20profile\x20(recommended)','value':'cloud'},{'name':_0x25ae8b[_0x390b2b(0x1fc)],'value':_0x390b2b(0x1fa)}],'default':'cloud'}]);_0x33aa8d=_0x684130==='cloud';}if(!_0x33aa8d)_0x3dfefe=null;}const _0x177627=_0x25ae8b[_0x390b2b(0x1ef)](readProfileOverrides,process[_0x390b2b(0x217)](),_0x14673c);let _0x30c014=null,_0x55ff87,_0x1d2459,_0x28d74a,_0x255788,_0x291c7d=null,_0x4c62c1;const _0x416593=_0x25ae8b[_0x390b2b(0x1fd)](expandOverrides,_0x177627),_0x3678d3=readUrlEnvVars();if(_0x3dfefe){_0x30c014=_0x3dfefe;const _0x1ea999=_0x3dfefe['settings']??{},_0x1f3173=mergeCloudProfileSettings(_0x1ea999,_0x25ae8b['ttlhQ'](_0x177627,undefined)),_0xff017e={..._0x3dfefe,'settings':_0x1f3173};_0x291c7d={'baseUrl':expandString(_0x1ea999[_0x390b2b(0x201)]),'startPath':_0x25ae8b[_0x390b2b(0x215)](expandString,_0x1ea999[_0x390b2b(0x20e)])};const _0x70ca4d=await fetchAuthConfig(),_0x19e063=_0x70ca4d?_0x25ae8b['gqsWK'](resolveAuthEnvironmentLocally,_0x70ca4d,_0x3dfefe['environmentKey']):null;_0x4c62c1=_0x19e063?.['domains']?.[0x0];const _0x1587cf=resolveProfileUrl({'flagBaseUrl':_0x32ebc7[_0x390b2b(0x201)],'flagStartPath':_0x32ebc7[_0x390b2b(0x20e)],'envBaseUrl':_0x3678d3['envBaseUrl'],'envStartPath':_0x3678d3['envStartPath'],'projectOverrides':_0x416593,'cloudSettings':_0x291c7d,'authEnvironmentDomain':_0x4c62c1}),_0x580711=process[_0x390b2b(0x21b)][_0x390b2b(0x1f9)];if(_0x580711){if(!_0x25ae8b['HyYmA'](existsSync,_0x580711))throw new Error(_0x390b2b(0x202)+_0x580711+'\x20does\x20not\x20exist.');_0x55ff87=_0x580711,_0x1d2459=_0x25ae8b[_0x390b2b(0x1ec)](resolveEnvVars,_0x1f3173),_0x28d74a=Boolean(_0x1d2459[_0x390b2b(0x20c)]);}else{const _0x3ca41c=await resolveCloudProfileSession(_0xff017e,{'effectiveBaseUrl':_0x1587cf['baseUrl']});_0x55ff87=_0x3ca41c[_0x390b2b(0x1f2)],_0x1d2459=resolveEnvVars(_0x3ca41c['settings']),_0x28d74a=Boolean(_0x1d2459[_0x390b2b(0x20c)]),_0x4c62c1=_0x3ca41c['resolvedEnv']?.[_0x390b2b(0x20d)]?.[0x0];}}else{if(!_0x9e3f5)throw new Error(_0x390b2b(0x20b)+_0x14673c+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x14673c);const _0xcc431c=await loadSettings(_0x14673c);_0x1d2459=resolveEnvVars(_0xcc431c),_0x28d74a=Boolean(_0x1d2459['cdpEndpoint']),_0x255788=_0x1d2459['baseUrl'];}const _0x5920b1=_0x25ae8b[_0x390b2b(0x1ec)](resolveProfileUrl,{'flagBaseUrl':_0x32ebc7['baseUrl'],'flagStartPath':_0x32ebc7['startPath'],'envBaseUrl':_0x3678d3[_0x390b2b(0x1ff)],'envStartPath':_0x3678d3['envStartPath'],'localSettingsBaseUrl':_0x255788,'projectOverrides':_0x416593,'cloudSettings':_0x291c7d,'authEnvironmentDomain':_0x4c62c1}),_0x14314d=_0x5920b1[_0x390b2b(0x212)]??_0x5920b1[_0x390b2b(0x201)];if(_0x25ae8b['LCdtY'](!_0x14314d,!_0x28d74a))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x14673c+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x14673c+'\x20baseUrl\x20<url>');return{'activeProfile':_0x14673c,'resolvedCloudProfile':_0x30c014,'cloudAuthPath':_0x55ff87,'resolvedSettings':_0x1d2459,'isCdpMode':_0x28d74a,'url':_0x14314d,'startPath':_0x5920b1[_0x390b2b(0x20e)]};}function _0x13f3(_0x52f8d6,_0x2c60ad){_0x52f8d6=_0x52f8d6-0x1eb;const _0x5bb007=_0x5bb0();let _0x13f310=_0x5bb007[_0x52f8d6];return _0x13f310;}function expandString(_0x22cf7b){const _0x20d72e=_0x13f3,_0x164f78={'hDpZe':function(_0x56c693,_0x58b53){return _0x56c693!==_0x58b53;}};if(_0x164f78['hDpZe'](typeof _0x22cf7b,_0x20d72e(0x207)))return _0x22cf7b;return resolveEnvVars(_0x22cf7b);}function expandOverrides(_0x2bd33e){const _0x2acabe=_0x13f3,_0x9442e1={'IsHyG':function(_0x2c032e,_0x4c6f1e){return _0x2c032e===_0x4c6f1e;},'YgBbv':'string','jgUpl':function(_0x367990,_0xbbbbc6){return _0x367990(_0xbbbbc6);}};if(!_0x2bd33e)return _0x2bd33e;const _0x41c8f2={..._0x2bd33e};return _0x9442e1[_0x2acabe(0x1ed)](typeof _0x41c8f2['baseUrl'],'string')&&(_0x41c8f2['baseUrl']=resolveEnvVars(_0x41c8f2['baseUrl'])),typeof _0x41c8f2[_0x2acabe(0x20e)]===_0x9442e1['YgBbv']&&(_0x41c8f2[_0x2acabe(0x20e)]=_0x9442e1[_0x2acabe(0x204)](resolveEnvVars,_0x41c8f2['startPath'])),_0x41c8f2;}
@@ -1 +1 @@
1
- (function(_0x11644a,_0x27bedd){const _0x235f91=_0x12d5,_0x49465f=_0x11644a();while(!![]){try{const _0x49d4e5=-parseInt(_0x235f91(0x1a7))/0x1*(parseInt(_0x235f91(0x1a5))/0x2)+parseInt(_0x235f91(0x1a9))/0x3+parseInt(_0x235f91(0x1a6))/0x4+parseInt(_0x235f91(0x1aa))/0x5+-parseInt(_0x235f91(0x1a2))/0x6+parseInt(_0x235f91(0x1a0))/0x7+-parseInt(_0x235f91(0x1ac))/0x8*(-parseInt(_0x235f91(0x1a8))/0x9);if(_0x49d4e5===_0x27bedd)break;else _0x49465f['push'](_0x49465f['shift']());}catch(_0x3e62a0){_0x49465f['push'](_0x49465f['shift']());}}}(_0x2c65,0xb780c));function firstDefined(..._0x30b125){const _0x575347={'hOjCD':function(_0x391dc1,_0x5d3fae){return _0x391dc1!==_0x5d3fae;}};for(const _0x348049 of _0x30b125){if(_0x348049!==undefined&&_0x348049!==null&&_0x575347['hOjCD'](_0x348049,''))return _0x348049;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12ddac){const _0xf22251=_0x12d5;if(!_0x12ddac)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0xf22251(0x1ae)](_0x12ddac))return _0x12ddac;return _0xf22251(0x1a3)+_0x12ddac;}export function resolveBaseUrl(_0x590560){const _0x263d84=_0x12d5,_0x3da900={'iWvfo':function(_0x33320a,_0x52b937){return _0x33320a in _0x52b937;},'aExKV':function(_0x4892c6,_0x45a866){return _0x4892c6===_0x45a866;},'jyilP':function(_0x444acc,_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5){return _0x444acc(_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5);},'zUYaB':function(_0x17a5b4,_0x4323b4){return _0x17a5b4===_0x4323b4;},'XQFjB':'string'},_0x321e8=_0x590560['projectOverrides'],_0x169065=!!_0x321e8&&_0x3da900[_0x263d84(0x19d)]('baseUrl',_0x321e8),_0x5658ff=_0x321e8?.['baseUrl'],_0x50df3b=!(_0x169065&&_0x3da900['aExKV'](_0x5658ff,null));return _0x3da900[_0x263d84(0x19c)](firstDefined,_0x590560[_0x263d84(0x1a4)],_0x590560['envBaseUrl'],_0x590560[_0x263d84(0x1a1)],_0x3da900['zUYaB'](typeof _0x5658ff,_0x3da900[_0x263d84(0x1af)])?_0x5658ff:undefined,_0x50df3b?_0x590560[_0x263d84(0x19e)]?.[_0x263d84(0x199)]:undefined,_0x50df3b?normalizeAuthEnvironmentDomain(_0x590560['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x13b01d){const _0x24591f=_0x12d5,_0x304c1f={'CGHGh':'startPath'},_0x5d11dc=_0x13b01d['projectOverrides'],_0x5d2cae=!!_0x5d11dc&&_0x304c1f[_0x24591f(0x1ab)]in _0x5d11dc,_0x26bad3=_0x5d11dc?.[_0x24591f(0x19f)],_0x5e9889=!(_0x5d2cae&&_0x26bad3===null);return firstDefined(_0x13b01d['flagStartPath'],_0x13b01d['envStartPath'],typeof _0x26bad3==='string'?_0x26bad3:undefined,_0x5e9889?_0x13b01d[_0x24591f(0x19e)]?.['startPath']:undefined);}function _0x12d5(_0x18a406,_0x89ad66){_0x18a406=_0x18a406-0x199;const _0x2c65b5=_0x2c65();let _0x12d5f1=_0x2c65b5[_0x18a406];return _0x12d5f1;}export function joinBaseAndPath(_0x50da77,_0x1c4e35){const _0x2fdf69=_0x12d5,_0x6b136c={'cetMO':function(_0x3ed7a3,_0x527ccf){return _0x3ed7a3+_0x527ccf;}};if(!_0x50da77)return undefined;if(!_0x1c4e35)return _0x50da77;const _0x2cf0ff=_0x50da77[_0x2fdf69(0x1ad)]('/')?_0x50da77[_0x2fdf69(0x19b)](0x0,-0x1):_0x50da77,_0x2ebde2=_0x1c4e35['startsWith']('/')?_0x1c4e35:_0x6b136c['cetMO']('/',_0x1c4e35);return _0x2cf0ff+_0x2ebde2;}function _0x2c65(){const _0x2ce40b=['7787574VMEula','https://','flagBaseUrl','4426DHRhNY','2608696ePkLGc','673ZyAyiF','614826NgUqWh','1736535GbKzrb','3421295lirjpk','CGHGh','48pTrNzS','endsWith','test','XQFjB','baseUrl','RANGER_START_PATH','slice','jyilP','iWvfo','cloudSettings','startPath','8496208fRihsa','localSettingsBaseUrl'];_0x2c65=function(){return _0x2ce40b;};return _0x2c65();}export function resolveProfileUrl(_0x5a18b1){const _0x368895={'jEUnR':function(_0x2e8ad5,_0x62a372){return _0x2e8ad5(_0x62a372);}},_0x1ad949=_0x368895['jEUnR'](resolveBaseUrl,_0x5a18b1),_0x3d3252=_0x368895['jEUnR'](resolveStartPath,_0x5a18b1);return{'baseUrl':_0x1ad949,'startPath':_0x3d3252,'url':joinBaseAndPath(_0x1ad949,_0x3d3252)};}export function readUrlEnvVars(_0x594b60=process['env']){const _0x41ded2=_0x12d5;return{'envBaseUrl':_0x594b60['RANGER_BASE_URL'],'envStartPath':_0x594b60[_0x41ded2(0x19a)]};}
1
+ const _0xa26271=_0x3cad;(function(_0xe45958,_0x40ef94){const _0x4a4785=_0x3cad,_0x59a933=_0xe45958();while(!![]){try{const _0x55c9a4=-parseInt(_0x4a4785(0x193))/0x1*(-parseInt(_0x4a4785(0x189))/0x2)+-parseInt(_0x4a4785(0x182))/0x3*(parseInt(_0x4a4785(0x18f))/0x4)+parseInt(_0x4a4785(0x18c))/0x5*(-parseInt(_0x4a4785(0x18e))/0x6)+-parseInt(_0x4a4785(0x17f))/0x7+-parseInt(_0x4a4785(0x191))/0x8*(-parseInt(_0x4a4785(0x186))/0x9)+parseInt(_0x4a4785(0x18b))/0xa+parseInt(_0x4a4785(0x184))/0xb*(parseInt(_0x4a4785(0x199))/0xc);if(_0x55c9a4===_0x40ef94)break;else _0x59a933['push'](_0x59a933['shift']());}catch(_0x3bbe8c){_0x59a933['push'](_0x59a933['shift']());}}}(_0x9dfc,0xb02f7));function firstDefined(..._0x302d18){for(const _0x4f2394 of _0x302d18){if(_0x4f2394!==undefined&&_0x4f2394!==null&&_0x4f2394!=='')return _0x4f2394;}return undefined;}function _0x3cad(_0x12790e,_0x2ef032){_0x12790e=_0x12790e-0x17f;const _0x9dfc3c=_0x9dfc();let _0x3cadd8=_0x9dfc3c[_0x12790e];return _0x3cadd8;}function normalizeAuthEnvironmentDomain(_0x57a56c){if(!_0x57a56c)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x57a56c))return _0x57a56c;return'https://'+_0x57a56c;}export function resolveBaseUrl(_0x283f82){const _0x502e08=_0x3cad,_0x2f381d={'ofyrl':function(_0x311612,_0x1d14db){return _0x311612 in _0x1d14db;},'umhMy':function(_0x119d5f,_0x16b1ba,_0x54214a,_0x5b122c,_0xfbfa1e,_0x5333ee,_0x1aae03){return _0x119d5f(_0x16b1ba,_0x54214a,_0x5b122c,_0xfbfa1e,_0x5333ee,_0x1aae03);},'qDCQu':function(_0x1f31a2,_0x1d6efd){return _0x1f31a2===_0x1d6efd;},'nlBMS':'string'},_0xb7e96=_0x283f82[_0x502e08(0x180)],_0x3dde89=!!_0xb7e96&&_0x2f381d[_0x502e08(0x192)](_0x502e08(0x195),_0xb7e96),_0x2c7197=_0xb7e96?.['baseUrl'],_0x397c9e=!(_0x3dde89&&_0x2c7197===null);return _0x2f381d['umhMy'](firstDefined,_0x283f82[_0x502e08(0x196)],_0x283f82[_0x502e08(0x188)],_0x283f82[_0x502e08(0x185)],_0x2f381d[_0x502e08(0x197)](typeof _0x2c7197,_0x2f381d[_0x502e08(0x183)])?_0x2c7197:undefined,_0x397c9e?_0x283f82['cloudSettings']?.['baseUrl']:undefined,_0x397c9e?normalizeAuthEnvironmentDomain(_0x283f82[_0x502e08(0x190)]):undefined);}export function resolveStartPath(_0x25327d){const _0x5dcb1d=_0x3cad,_0x5d5e8c={'uujsQ':'startPath','dTkDF':function(_0x1fc8ec,_0x5084fd,_0x1b0cec,_0x523fc4,_0x543086){return _0x1fc8ec(_0x5084fd,_0x1b0cec,_0x523fc4,_0x543086);},'SFAQh':function(_0x4d875d,_0x44c334){return _0x4d875d===_0x44c334;}},_0x5224d9=_0x25327d['projectOverrides'],_0x17af63=!!_0x5224d9&&_0x5d5e8c['uujsQ']in _0x5224d9,_0x13ac7d=_0x5224d9?.[_0x5dcb1d(0x18a)],_0x40e28a=!(_0x17af63&&_0x13ac7d===null);return _0x5d5e8c[_0x5dcb1d(0x18d)](firstDefined,_0x25327d[_0x5dcb1d(0x19a)],_0x25327d['envStartPath'],_0x5d5e8c['SFAQh'](typeof _0x13ac7d,_0x5dcb1d(0x198))?_0x13ac7d:undefined,_0x40e28a?_0x25327d[_0x5dcb1d(0x187)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x21ff85,_0x5087ef){const _0x31d63d=_0x3cad,_0x1a2bfd={'WfeBO':function(_0x5a84c4,_0x61750e){return _0x5a84c4+_0x61750e;}};if(!_0x21ff85)return undefined;if(!_0x5087ef)return _0x21ff85;const _0x2ec0d0=_0x21ff85['endsWith']('/')?_0x21ff85['slice'](0x0,-0x1):_0x21ff85,_0x262c29=_0x5087ef[_0x31d63d(0x181)]('/')?_0x5087ef:'/'+_0x5087ef;return _0x1a2bfd['WfeBO'](_0x2ec0d0,_0x262c29);}function _0x9dfc(){const _0x22d3bc=['ofyrl','135386KPKwhH','env','baseUrl','flagBaseUrl','qDCQu','string','120BCXMcf','flagStartPath','4028304Ekaqgm','projectOverrides','startsWith','311259RljuAJ','nlBMS','1120537VCvCUp','localSettingsBaseUrl','4118859FqrpVj','cloudSettings','envBaseUrl','14fzmafA','startPath','6748320CWgOMd','2995CmZzvF','dTkDF','8694EYKnVF','36PeJvJf','authEnvironmentDomain','8RTsbia'];_0x9dfc=function(){return _0x22d3bc;};return _0x9dfc();}export function resolveProfileUrl(_0x495f21){const _0x26d621={'eQAHy':function(_0x5d1e2a,_0x447ff7){return _0x5d1e2a(_0x447ff7);}},_0x55750d=_0x26d621['eQAHy'](resolveBaseUrl,_0x495f21),_0xfbf128=resolveStartPath(_0x495f21);return{'baseUrl':_0x55750d,'startPath':_0xfbf128,'url':joinBaseAndPath(_0x55750d,_0xfbf128)};}export function readUrlEnvVars(_0x48eb7d=process[_0xa26271(0x194)]){return{'envBaseUrl':_0x48eb7d['RANGER_BASE_URL'],'envStartPath':_0x48eb7d['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0x2912a6,_0x581045){const _0x308bfa=_0x57d5,_0x1b7d30=_0x2912a6();while(!![]){try{const _0x380763=-parseInt(_0x308bfa(0x9e))/0x1+-parseInt(_0x308bfa(0x9a))/0x2*(parseInt(_0x308bfa(0x96))/0x3)+parseInt(_0x308bfa(0x97))/0x4*(parseInt(_0x308bfa(0xa7))/0x5)+-parseInt(_0x308bfa(0xa1))/0x6*(-parseInt(_0x308bfa(0xa3))/0x7)+-parseInt(_0x308bfa(0x9d))/0x8+parseInt(_0x308bfa(0x9f))/0x9*(-parseInt(_0x308bfa(0xa5))/0xa)+parseInt(_0x308bfa(0x99))/0xb*(parseInt(_0x308bfa(0x9b))/0xc);if(_0x380763===_0x581045)break;else _0x1b7d30['push'](_0x1b7d30['shift']());}catch(_0x5d1859){_0x1b7d30['push'](_0x1b7d30['shift']());}}}(_0x63d2,0xabe2e));function _0x63d2(){const _0x42c776=['30GcFCng','\x20failed\x20(attempt\x20','46915bjOFqe','baseDelayMs','15uZYDcg','484Izkbga','),\x20retrying\x20in\x20','14624313LfRCVE','304732DCFZRN','12jBvkQy','ms...','10153048edFmce','304849FDUJBx','2380122VnpwjD','maxRetries','12OmNVyw','label','4789414nJGrnL','error'];_0x63d2=function(){return _0x42c776;};return _0x63d2();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x57d5(_0x5a48fd,_0x2aed51){_0x5a48fd=_0x5a48fd-0x96;const _0x63d2d6=_0x63d2();let _0x57d526=_0x63d2d6[_0x5a48fd];return _0x57d526;}export async function withRetry(_0x5b8968,_0x54ad79){const _0x41fa26=_0x57d5,_0x50e551=_0x54ad79?.[_0x41fa26(0xa0)]??DEFAULT_MAX_RETRIES,_0x2785f8=_0x54ad79?.[_0x41fa26(0xa8)]??DEFAULT_BASE_DELAY_MS;let _0x1b5234;for(let _0x3466e2=0x0;_0x3466e2<=_0x50e551;_0x3466e2++){try{return await _0x5b8968();}catch(_0x1a6710){_0x1b5234=_0x1a6710 instanceof Error?_0x1a6710:new Error(String(_0x1a6710));if(_0x3466e2<_0x50e551){const _0x54adb7=_0x2785f8*Math['pow'](0x2,_0x3466e2);_0x54ad79?.[_0x41fa26(0xa2)]&&console[_0x41fa26(0xa4)](_0x54ad79['label']+_0x41fa26(0xa6)+(_0x3466e2+0x1)+'/'+(_0x50e551+0x1)+_0x41fa26(0x98)+_0x54adb7+_0x41fa26(0x9c)),await new Promise(_0xe2ca85=>setTimeout(_0xe2ca85,_0x54adb7));}}}throw _0x1b5234;}
1
+ function _0x1408(){const _0x49fc01=['141130UAmQdH','6525928iGRZsk','ms...','9hkMYCh','282RzstoS','label','495KpQvdE','\x20failed\x20(attempt\x20','120Vagxid','OBaoC','maxRetries','14QStTIA','tARHr','8043442KVDIYu','baseDelayMs','pow','2762ENguXD','1573154WKgEVn','15316850AXtONb','679044RVztWY'];_0x1408=function(){return _0x49fc01;};return _0x1408();}function _0x11cc(_0x5353f4,_0x2b03d2){_0x5353f4=_0x5353f4-0xf6;const _0x1408dd=_0x1408();let _0x11cc5a=_0x1408dd[_0x5353f4];return _0x11cc5a;}(function(_0x2aadc2,_0x5af99b){const _0x54622c=_0x11cc,_0x397195=_0x2aadc2();while(!![]){try{const _0x239ffb=-parseInt(_0x54622c(0xfa))/0x1+-parseInt(_0x54622c(0xf9))/0x2*(parseInt(_0x54622c(0x103))/0x3)+-parseInt(_0x54622c(0xfc))/0x4+parseInt(_0x54622c(0xfd))/0x5*(-parseInt(_0x54622c(0x101))/0x6)+-parseInt(_0x54622c(0x108))/0x7*(parseInt(_0x54622c(0xfe))/0x8)+parseInt(_0x54622c(0x100))/0x9*(-parseInt(_0x54622c(0xfb))/0xa)+parseInt(_0x54622c(0xf6))/0xb*(parseInt(_0x54622c(0x105))/0xc);if(_0x239ffb===_0x5af99b)break;else _0x397195['push'](_0x397195['shift']());}catch(_0x33bf6f){_0x397195['push'](_0x397195['shift']());}}}(_0x1408,0xcfec3));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x20761b,_0x337828){const _0xaa1417=_0x11cc,_0x48882b={'tARHr':function(_0x3a43bc,_0x29e408){return _0x3a43bc<=_0x29e408;},'HEosz':function(_0x1caf2f,_0x18209f){return _0x1caf2f<_0x18209f;},'OBaoC':function(_0xe4e357,_0x3f6f00){return _0xe4e357*_0x3f6f00;}},_0x3822ba=_0x337828?.[_0xaa1417(0x107)]??DEFAULT_MAX_RETRIES,_0x57f3b5=_0x337828?.[_0xaa1417(0xf7)]??DEFAULT_BASE_DELAY_MS;let _0xac372a;for(let _0x5e5351=0x0;_0x48882b[_0xaa1417(0x109)](_0x5e5351,_0x3822ba);_0x5e5351++){try{return await _0x20761b();}catch(_0x41a8d9){_0xac372a=_0x41a8d9 instanceof Error?_0x41a8d9:new Error(String(_0x41a8d9));if(_0x48882b['HEosz'](_0x5e5351,_0x3822ba)){const _0x12e29f=_0x48882b[_0xaa1417(0x106)](_0x57f3b5,Math[_0xaa1417(0xf8)](0x2,_0x5e5351));_0x337828?.[_0xaa1417(0x102)]&&console['error'](_0x337828['label']+_0xaa1417(0x104)+(_0x5e5351+0x1)+'/'+(_0x3822ba+0x1)+'),\x20retrying\x20in\x20'+_0x12e29f+_0xaa1417(0xff)),await new Promise(_0x5e4b5d=>setTimeout(_0x5e4b5d,_0x12e29f));}}}throw _0xac372a;}
@@ -1 +1 @@
1
- const _0x1b9bcb=_0x1e68;(function(_0x1c1759,_0x39d192){const _0x3e5e81=_0x1e68,_0x134d82=_0x1c1759();while(!![]){try{const _0x43a9dc=-parseInt(_0x3e5e81(0xdc))/0x1+parseInt(_0x3e5e81(0xeb))/0x2+-parseInt(_0x3e5e81(0x100))/0x3*(-parseInt(_0x3e5e81(0xdf))/0x4)+-parseInt(_0x3e5e81(0x105))/0x5+parseInt(_0x3e5e81(0xff))/0x6+parseInt(_0x3e5e81(0xf7))/0x7*(parseInt(_0x3e5e81(0x112))/0x8)+-parseInt(_0x3e5e81(0x10f))/0x9;if(_0x43a9dc===_0x39d192)break;else _0x134d82['push'](_0x134d82['shift']());}catch(_0x49b086){_0x134d82['push'](_0x134d82['shift']());}}}(_0x32ae,0xbe536));import*as _0x4c38f2 from'fs';import*as _0x459192 from'path';import*as _0x987a6a from'os';import{execSync}from'child_process';const CACHE_FILE=_0x459192['join'](_0x987a6a['homedir'](),_0x1b9bcb(0x106),_0x1b9bcb(0xfe));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cb85b=_0x1b9bcb,_0x52e263={'lTdWu':'utf-8'};try{if(_0x4c38f2[_0x4cb85b(0xf1)](CACHE_FILE)){const _0xa3b180=JSON[_0x4cb85b(0xe0)](_0x4c38f2[_0x4cb85b(0xfd)](CACHE_FILE,_0x52e263['lTdWu']));return{'version':0x3,'sessions':_0xa3b180[_0x4cb85b(0x102)]||{},'branches':_0xa3b180['branches']||{},'lastEnabledSessionClearedAt':_0xa3b180[_0x4cb85b(0x10c)]};}}catch{}return createEmptyCache();}function saveCache(_0x249950){const _0x2d8324=_0x1b9bcb;try{const _0x5c8b65=_0x459192['dirname'](CACHE_FILE);!_0x4c38f2['existsSync'](_0x5c8b65)&&_0x4c38f2[_0x2d8324(0xe8)](_0x5c8b65,{'recursive':!![]}),_0x4c38f2[_0x2d8324(0xdb)](CACHE_FILE,JSON['stringify'](_0x249950,null,0x2));}catch{}}function _0x1e68(_0x420687,_0x4345e0){_0x420687=_0x420687-0xda;const _0x32ae20=_0x32ae();let _0x1e687c=_0x32ae20[_0x420687];return _0x1e687c;}export function getCurrentBranch(){const _0x3d83f=_0x1b9bcb,_0x430a3c={'MgqbZ':_0x3d83f(0xe2),'BZPJY':_0x3d83f(0xf9),'OqOcc':_0x3d83f(0xe7)};try{const _0x57bc33=execSync(_0x430a3c[_0x3d83f(0x10d)],{'encoding':_0x430a3c['BZPJY'],'stdio':[_0x430a3c[_0x3d83f(0xf3)],_0x430a3c['OqOcc'],_0x430a3c['OqOcc']]})[_0x3d83f(0xef)]();if(!_0x57bc33||_0x57bc33===_0x3d83f(0xf2))return null;return _0x57bc33;}catch{return null;}}export function enableBranch(_0x8591e0){const _0x37e758={'igQvb':function(_0x28a46b){return _0x28a46b();}},_0x2a2a71=_0x37e758['igQvb'](loadCache);_0x2a2a71['branches'][_0x8591e0]=!![],saveCache(_0x2a2a71);}export function disableBranch(_0x52d89f){const _0x29398b=_0x1b9bcb,_0x272308={'RkKsw':function(_0xdf2cf){return _0xdf2cf();}},_0x621cc5=_0x272308[_0x29398b(0xee)](loadCache);delete _0x621cc5[_0x29398b(0xe3)][_0x52d89f],saveCache(_0x621cc5);}export function isBranchEnabled(_0x5ca668){const _0x1c36d7=_0x1b9bcb,_0x2b8288=loadCache();return _0x2b8288[_0x1c36d7(0xe3)][_0x5ca668]===!![];}function getOrCreateSession(_0x44f6f9,_0x39a08d){const _0x344073=_0x1b9bcb;return!_0x44f6f9[_0x344073(0x102)][_0x39a08d]&&(_0x44f6f9[_0x344073(0x102)][_0x39a08d]={}),_0x44f6f9[_0x344073(0x102)][_0x39a08d];}export function enableSession(_0x7905bd){const _0x333280=_0x1b9bcb,_0x324ec9={'fasdT':function(_0x57369d,_0x4f9ea4,_0x1237f2){return _0x57369d(_0x4f9ea4,_0x1237f2);},'SsxZb':function(_0xc4ac21,_0x4c88c2){return _0xc4ac21!==_0x4c88c2;},'TYfTp':'main'},_0x455f58=loadCache(),_0x3372cf=_0x324ec9[_0x333280(0xe1)](getOrCreateSession,_0x455f58,_0x7905bd);_0x3372cf['enabled']=!![];const _0x144cad=getCurrentBranch();_0x144cad&&_0x324ec9[_0x333280(0x108)](_0x144cad,_0x324ec9['TYfTp'])&&_0x144cad!=='master'&&(_0x455f58[_0x333280(0xe3)][_0x144cad]=!![],_0x3372cf[_0x333280(0xe5)]=_0x144cad),saveCache(_0x455f58);}export function isSessionEnabled(_0x332d71){const _0x8e6d00=_0x1b9bcb,_0x13ba2e={'pgUal':function(_0x598663){return _0x598663();},'ZVejp':function(_0x305fa4,_0x2ea8f0){return _0x305fa4===_0x2ea8f0;},'ffqrB':_0x8e6d00(0x109),'OkFOL':function(_0x44d030,_0x42d644){return _0x44d030===_0x42d644;},'whcyM':_0x8e6d00(0x107),'XbEMi':function(_0x46d212,_0x2645ff){return _0x46d212===_0x2645ff;},'YFXzH':function(_0x290ed1,_0x2f86f){return _0x290ed1||_0x2f86f;}},_0xb4b65b=loadCache(),_0x503dee=_0x13ba2e[_0x8e6d00(0x10a)](getCurrentBranch);if(!_0x503dee||_0x13ba2e['ZVejp'](_0x503dee,_0x13ba2e[_0x8e6d00(0xed)])||_0x13ba2e['OkFOL'](_0x503dee,_0x13ba2e[_0x8e6d00(0xda)]))return _0xb4b65b['sessions'][_0x332d71]?.['enabled']===!![];const _0x574645=_0x13ba2e[_0x8e6d00(0xe9)](_0xb4b65b['branches'][_0x503dee],!![]),_0x233e0c=_0x13ba2e[_0x8e6d00(0x10b)](_0xb4b65b[_0x8e6d00(0x102)][_0x332d71]?.['enabled'],!![]);return _0x13ba2e[_0x8e6d00(0xf8)](_0x574645,_0x233e0c);}export function disableSession(_0x29305d){const _0xec2d9b=_0x1b9bcb,_0x3aa594={'KxLND':function(_0x503425,_0x4d5123,_0x2b3b1f){return _0x503425(_0x4d5123,_0x2b3b1f);}},_0x46dc51=loadCache(),_0x398412=_0x3aa594['KxLND'](getOrCreateSession,_0x46dc51,_0x29305d);_0x398412[_0xec2d9b(0xea)]=![],saveCache(_0x46dc51);}export function updateBranchTracking(_0x6d0efe){const _0x1055f4=_0x1b9bcb,_0x197a89={'eoqXF':function(_0x24fb52){return _0x24fb52();},'bZijs':function(_0x43bb6f,_0x264f80){return _0x43bb6f===_0x264f80;},'HUpaf':function(_0x21e23a,_0x20c0df){return _0x21e23a(_0x20c0df);}},_0xf8ec23=loadCache(),_0x575844=_0xf8ec23[_0x1055f4(0x102)][_0x6d0efe];if(!_0x575844?.['enabled'])return;const _0x102d1b=_0x197a89[_0x1055f4(0x104)](getCurrentBranch);if(!_0x102d1b||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x109))||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x107)))return;_0x575844['currentBranch']!==_0x102d1b&&(_0xf8ec23['branches'][_0x102d1b]=!![],_0x575844['currentBranch']=_0x102d1b,_0x197a89['HUpaf'](saveCache,_0xf8ec23));}export function initBranchTracking(_0x92e2d9){const _0x4c1b69=_0x1b9bcb,_0x3bdfba={'TlSjZ':'main','ndefz':'master','scXkQ':function(_0x50e288,_0x1749c4){return _0x50e288===_0x1749c4;},'shiot':function(_0x51588f,_0x44a7be,_0x4e8ee0){return _0x51588f(_0x44a7be,_0x4e8ee0);}},_0x1a1ef0=loadCache(),_0x50d8b4=getCurrentBranch();if(!_0x50d8b4||_0x50d8b4===_0x3bdfba[_0x4c1b69(0xec)]||_0x50d8b4===_0x3bdfba['ndefz'])return;if(_0x3bdfba[_0x4c1b69(0xfc)](_0x1a1ef0['branches'][_0x50d8b4],!![])){const _0x2f796e=_0x3bdfba['shiot'](getOrCreateSession,_0x1a1ef0,_0x92e2d9);_0x2f796e[_0x4c1b69(0xea)]=!![],_0x2f796e[_0x4c1b69(0xe5)]=_0x50d8b4,saveCache(_0x1a1ef0);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5e9e55){const _0x189a95=_0x1b9bcb,_0x178f33={'WAKDl':function(_0x2ff3e8,_0xc415c8){return _0x2ff3e8(_0xc415c8);}},_0x396e73=loadCache(),_0x4f6ec2=_0x396e73['sessions'][_0x5e9e55];_0x4f6ec2?.[_0x189a95(0xea)]&&(_0x396e73['lastEnabledSessionClearedAt']=Date[_0x189a95(0x113)](),_0x178f33['WAKDl'](saveCache,_0x396e73));}export function shouldAutoEnableAfterClear(_0x1c7305){const _0x5d3466=_0x1b9bcb,_0x126215={'CYiuT':function(_0x428375,_0x469575){return _0x428375!==_0x469575;},'WduLT':function(_0x19e3ce,_0xc2b42e){return _0x19e3ce-_0xc2b42e;}};if(_0x126215['CYiuT'](_0x1c7305,_0x5d3466(0xdd)))return![];const _0x5ae091=loadCache(),_0x4e4a53=_0x5ae091[_0x5d3466(0x10c)];if(!_0x4e4a53)return![];const _0x5ec3f9=_0x126215[_0x5d3466(0x111)](Date[_0x5d3466(0x113)](),_0x4e4a53);return _0x5ec3f9<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x25b373){const _0xc408c5=_0x1b9bcb,_0x46e51d={'etoVX':function(_0xa7fa34){return _0xa7fa34();},'MkRkO':function(_0x385335,_0x3d714c,_0x520d19){return _0x385335(_0x3d714c,_0x520d19);},'mywId':function(_0x33226d){return _0x33226d();},'osBym':function(_0x415a2b,_0x5cae8e){return _0x415a2b!==_0x5cae8e;},'PGZPL':_0xc408c5(0x107),'UvWLg':function(_0x41df39,_0x55e262){return _0x41df39(_0x55e262);}},_0x53c336=_0x46e51d['etoVX'](loadCache),_0x48a01e=_0x46e51d[_0xc408c5(0xfb)](getOrCreateSession,_0x53c336,_0x25b373);_0x48a01e['enabled']=!![];const _0x3c3a1a=_0x46e51d[_0xc408c5(0xde)](getCurrentBranch);_0x3c3a1a&&_0x3c3a1a!=='main'&&_0x46e51d['osBym'](_0x3c3a1a,_0x46e51d['PGZPL'])&&(_0x48a01e['currentBranch']=_0x3c3a1a),delete _0x53c336[_0xc408c5(0x10c)],_0x46e51d['UvWLg'](saveCache,_0x53c336);}export function registerSession(_0x2fe835,_0x46868b){const _0x64d3c={'cvWeg':function(_0x52640b){return _0x52640b();},'ImoXB':function(_0xbd8faf,_0x175419,_0x3dc5c7){return _0xbd8faf(_0x175419,_0x3dc5c7);}},_0x2a2daf=_0x64d3c['cvWeg'](loadCache),_0xce72b8=_0x64d3c['ImoXB'](getOrCreateSession,_0x2a2daf,_0x2fe835);_0xce72b8['featureId']=_0x46868b,_0xce72b8['registeredAt']=new Date()['toISOString'](),saveCache(_0x2a2daf);}export function getSessionEntry(_0x2e5e58){const _0xdba1ca=_0x1b9bcb,_0x14e8e3={'TmAjv':function(_0x48c3bf){return _0x48c3bf();}},_0x1e7c02=_0x14e8e3[_0xdba1ca(0xe4)](loadCache),_0x202ace=_0x1e7c02[_0xdba1ca(0x102)][_0x2e5e58];if(_0x202ace?.[_0xdba1ca(0xf0)]&&_0x202ace?.[_0xdba1ca(0xfa)])return{'featureId':_0x202ace['featureId'],'registeredAt':_0x202ace[_0xdba1ca(0xfa)]};return null;}export function unregisterSession(_0x15ef0a){const _0x714706=_0x1b9bcb,_0x352b69={'HoMTK':function(_0x7f2c1,_0x2c7d43){return _0x7f2c1(_0x2c7d43);}},_0x518fbd=loadCache(),_0x64f3e9=_0x518fbd[_0x714706(0x102)][_0x15ef0a];_0x64f3e9&&(delete _0x64f3e9[_0x714706(0xf0)],delete _0x64f3e9[_0x714706(0xfa)],_0x352b69[_0x714706(0x110)](saveCache,_0x518fbd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d285d){const _0x543033=_0x1b9bcb,_0x4cbd9a={'lgXsc':function(_0x40d606){return _0x40d606();},'cIKox':function(_0x107e8a,_0x96b24e,_0x2a1133){return _0x107e8a(_0x96b24e,_0x2a1133);},'hujQp':function(_0xae66f2,_0x233702){return _0xae66f2-_0x233702;},'VanfJ':function(_0x4ca77b,_0x3b4556){return _0x4ca77b(_0x3b4556);}},_0x2e4375=_0x4cbd9a['lgXsc'](loadCache),_0x2559fc=_0x4cbd9a['cIKox'](getOrCreateSession,_0x2e4375,_0x1d285d),_0x206f2c=_0x2559fc[_0x543033(0x101)]||0x0,_0x4c76eb=Date['now']();if(_0x4cbd9a[_0x543033(0x103)](_0x4c76eb,_0x206f2c)>=PLAN_REMINDER_INTERVAL_MS)return _0x2559fc[_0x543033(0x101)]=_0x4c76eb,_0x4cbd9a[_0x543033(0xe6)](saveCache,_0x2e4375),!![];return![];}export function shouldShowStopReminder(_0x317998){const _0x43d073=_0x1b9bcb,_0x4c8686={'MFlSN':function(_0x58ae89){return _0x58ae89();},'RqRkz':function(_0x2977bd,_0x558fb3){return _0x2977bd-_0x558fb3;}},_0x26c1f5=_0x4c8686[_0x43d073(0xf5)](loadCache),_0x37a6e0=getOrCreateSession(_0x26c1f5,_0x317998),_0x1baa93=_0x37a6e0[_0x43d073(0x10e)]||0x0,_0x16581e=Date['now']();if(_0x4c8686['RqRkz'](_0x16581e,_0x1baa93)>=STOP_REMINDER_INTERVAL_MS)return _0x37a6e0[_0x43d073(0x10e)]=_0x16581e,saveCache(_0x26c1f5),!![];return![];}export function hasSessionBeenPrompted(_0x2da21d){const _0x37fb12=_0x1b9bcb,_0x530e79={'fvbqJ':function(_0x4a57a0,_0x507136){return _0x4a57a0===_0x507136;}},_0x1b9bec=loadCache();return _0x530e79['fvbqJ'](_0x1b9bec['sessions'][_0x2da21d]?.[_0x37fb12(0xf6)],!![]);}function _0x32ae(){const _0x2f526e=['1809372uGqXXY','3YOHMiz','lastPlanReminderAt','sessions','hujQp','eoqXF','1693735TGZBcE','.claude','master','SsxZb','main','pgUal','XbEMi','lastEnabledSessionClearedAt','MgqbZ','lastStopReminderAt','17973729tpuKqJ','HoMTK','WduLT','4184MYTaHn','now','whcyM','writeFileSync','87217ODHiGQ','clear','mywId','3915380uzEVhn','parse','fasdT','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','TmAjv','currentBranch','VanfJ','pipe','mkdirSync','OkFOL','enabled','972108UtSuFz','TlSjZ','ffqrB','RkKsw','trim','featureId','existsSync','HEAD','OqOcc','bZijs','MFlSN','prompted','19222mUcHUs','YFXzH','utf-8','registeredAt','MkRkO','scXkQ','readFileSync','.ranger_cache.json'];_0x32ae=function(){return _0x2f526e;};return _0x32ae();}export function markSessionPrompted(_0x36b8d1){const _0x500e7d=_0x1b9bcb,_0x403ec3=loadCache(),_0x1f4986=getOrCreateSession(_0x403ec3,_0x36b8d1);_0x1f4986[_0x500e7d(0xf6)]=!![],saveCache(_0x403ec3);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x1707be=_0x7be9;(function(_0x204c0b,_0x318896){const _0x48d40e=_0x7be9,_0x3f83aa=_0x204c0b();while(!![]){try{const _0x33a103=parseInt(_0x48d40e(0xba))/0x1*(parseInt(_0x48d40e(0xab))/0x2)+parseInt(_0x48d40e(0xbd))/0x3+parseInt(_0x48d40e(0xbf))/0x4*(parseInt(_0x48d40e(0xc2))/0x5)+-parseInt(_0x48d40e(0xc0))/0x6*(-parseInt(_0x48d40e(0x96))/0x7)+-parseInt(_0x48d40e(0xc6))/0x8*(parseInt(_0x48d40e(0xa3))/0x9)+-parseInt(_0x48d40e(0x97))/0xa*(parseInt(_0x48d40e(0xa5))/0xb)+-parseInt(_0x48d40e(0xa1))/0xc;if(_0x33a103===_0x318896)break;else _0x3f83aa['push'](_0x3f83aa['shift']());}catch(_0x463f98){_0x3f83aa['push'](_0x3f83aa['shift']());}}}(_0x2c27,0x3601c));import*as _0x10f078 from'fs';import*as _0x2d3ef7 from'path';import*as _0x5a8b14 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x2d3ef7['join'](_0x5a8b14[_0x1707be(0xae)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x377b1a=_0x1707be,_0x5c2c17={'dLUHz':'utf-8'};try{if(_0x10f078[_0x377b1a(0xa9)](CACHE_FILE)){const _0x4ccf72=JSON['parse'](_0x10f078[_0x377b1a(0xb2)](CACHE_FILE,_0x5c2c17[_0x377b1a(0x99)]));return{'version':0x3,'sessions':_0x4ccf72[_0x377b1a(0xcc)]||{},'branches':_0x4ccf72[_0x377b1a(0x9c)]||{},'lastEnabledSessionClearedAt':_0x4ccf72[_0x377b1a(0xbe)]};}}catch{}return createEmptyCache();}function saveCache(_0x5a611){const _0x570fd5=_0x1707be;try{const _0x4b4be8=_0x2d3ef7['dirname'](CACHE_FILE);!_0x10f078[_0x570fd5(0xa9)](_0x4b4be8)&&_0x10f078[_0x570fd5(0x9d)](_0x4b4be8,{'recursive':!![]}),_0x10f078[_0x570fd5(0xc3)](CACHE_FILE,JSON[_0x570fd5(0xb5)](_0x5a611,null,0x2));}catch{}}export function getCurrentBranch(){const _0x325cb7=_0x1707be,_0x299d9c={'XsxBO':function(_0x26d79e,_0x46cfa8,_0x344293){return _0x26d79e(_0x46cfa8,_0x344293);},'LOhYj':_0x325cb7(0xb6),'ntTxx':function(_0x3db124,_0x2fa9f2){return _0x3db124===_0x2fa9f2;}};try{const _0xf6d1ea=_0x299d9c['XsxBO'](execSync,_0x325cb7(0xb7),{'encoding':'utf-8','stdio':[_0x325cb7(0xb6),_0x325cb7(0xb6),_0x299d9c[_0x325cb7(0xb1)]]})[_0x325cb7(0xa7)]();if(!_0xf6d1ea||_0x299d9c[_0x325cb7(0xa4)](_0xf6d1ea,'HEAD'))return null;return _0xf6d1ea;}catch{return null;}}export function enableBranch(_0x515661){const _0x568491=_0x1707be,_0x2ae6e3={'YaWyH':function(_0x14f10f){return _0x14f10f();},'pyQlo':function(_0x62d873,_0x55fdb5){return _0x62d873(_0x55fdb5);}},_0x481c87=_0x2ae6e3[_0x568491(0xb8)](loadCache);_0x481c87['branches'][_0x515661]=!![],_0x2ae6e3['pyQlo'](saveCache,_0x481c87);}function _0x7be9(_0x5c1954,_0x46baad){_0x5c1954=_0x5c1954-0x94;const _0x2c27b0=_0x2c27();let _0x7be949=_0x2c27b0[_0x5c1954];return _0x7be949;}export function disableBranch(_0x4eb00e){const _0x12d575=_0x1707be,_0x445801={'DUiXl':function(_0xf09c53,_0x3da266){return _0xf09c53(_0x3da266);}},_0x5682a2=loadCache();delete _0x5682a2['branches'][_0x4eb00e],_0x445801[_0x12d575(0xa0)](saveCache,_0x5682a2);}export function isBranchEnabled(_0x21f4ba){const _0x3787f9={'lCOax':function(_0x58c490){return _0x58c490();}},_0x458bd8=_0x3787f9['lCOax'](loadCache);return _0x458bd8['branches'][_0x21f4ba]===!![];}function getOrCreateSession(_0x321dfe,_0x5dac92){const _0x269d00=_0x1707be;return!_0x321dfe[_0x269d00(0xcc)][_0x5dac92]&&(_0x321dfe[_0x269d00(0xcc)][_0x5dac92]={}),_0x321dfe[_0x269d00(0xcc)][_0x5dac92];}function _0x2c27(){const _0x5bd8fc=['git\x20rev-parse\x20--abbrev-ref\x20HEAD','YaWyH','lastPlanReminderAt','24609GqWMET','JEEOw','mQfrn','1111464ZeaXbj','lastEnabledSessionClearedAt','374672ocrmeU','2382uUaNIw','RIHtI','5MrKeBz','writeFileSync','nyEzh','currentBranch','16qEYtFw','iRGpY','VnYMq','now','Dehua','gEKIx','sessions','PXduR','rKNuA','lvffe','prompted','clear','3787YxKeQX','10TQIgcF','toISOString','dLUHz','CmDnk','enabled','branches','mkdirSync','IlKCe','registeredAt','DUiXl','1587600srPjDF','AtRwK','1767276OoYwFE','ntTxx','1425215uMsOQi','TEszP','trim','gFwsJ','existsSync','UgcEk','16wBDnVj','XguuK','lastStopReminderAt','homedir','beMNf','main','LOhYj','readFileSync','RlfNS','master','stringify','pipe'];_0x2c27=function(){return _0x5bd8fc;};return _0x2c27();}export function enableSession(_0x324286){const _0x406494=_0x1707be,_0x69dc76={'UgcEk':function(_0x534f58,_0x5b08af){return _0x534f58!==_0x5b08af;}},_0x5ce50f=loadCache(),_0x3800a5=getOrCreateSession(_0x5ce50f,_0x324286);_0x3800a5['enabled']=!![];const _0x460726=getCurrentBranch();_0x460726&&_0x460726!=='main'&&_0x69dc76[_0x406494(0xaa)](_0x460726,_0x406494(0xb4))&&(_0x5ce50f['branches'][_0x460726]=!![],_0x3800a5[_0x406494(0xc5)]=_0x460726),saveCache(_0x5ce50f);}export function isSessionEnabled(_0x327e84){const _0x5e530d=_0x1707be,_0x532af2={'mQfrn':function(_0x50d0cd,_0x419f65){return _0x50d0cd===_0x419f65;},'JEEOw':function(_0x320fe4,_0x5436b2){return _0x320fe4===_0x5436b2;},'OILnv':_0x5e530d(0xb4)},_0x109914=loadCache(),_0x12bc5e=getCurrentBranch();if(!_0x12bc5e||_0x532af2[_0x5e530d(0xbc)](_0x12bc5e,_0x5e530d(0xb0))||_0x532af2[_0x5e530d(0xbb)](_0x12bc5e,_0x532af2['OILnv']))return _0x532af2[_0x5e530d(0xbc)](_0x109914['sessions'][_0x327e84]?.['enabled'],!![]);const _0x1317f5=_0x532af2[_0x5e530d(0xbb)](_0x109914['branches'][_0x12bc5e],!![]),_0x70a428=_0x109914['sessions'][_0x327e84]?.['enabled']===!![];return _0x1317f5||_0x70a428;}export function disableSession(_0x1f7dc1){const _0x299c1f=_0x1707be,_0x3b826e={'kaLFg':function(_0x105cd9){return _0x105cd9();}},_0x5ebc62=_0x3b826e['kaLFg'](loadCache),_0x30a71a=getOrCreateSession(_0x5ebc62,_0x1f7dc1);_0x30a71a[_0x299c1f(0x9b)]=![],saveCache(_0x5ebc62);}export function updateBranchTracking(_0x45b8f2){const _0x4d035f=_0x1707be,_0x559302={'QvQOq':function(_0xa7c50f){return _0xa7c50f();},'jgLkg':function(_0x1e056d,_0x5df74d){return _0x1e056d===_0x5df74d;},'zNmVs':'main','RIHtI':'master','AtRwK':function(_0x19f490,_0x1343d2){return _0x19f490!==_0x1343d2;},'KLtcX':function(_0x5ad2a4,_0x322477){return _0x5ad2a4(_0x322477);}},_0x5d714c=loadCache(),_0x212338=_0x5d714c[_0x4d035f(0xcc)][_0x45b8f2];if(!_0x212338?.['enabled'])return;const _0x43da72=_0x559302['QvQOq'](getCurrentBranch);if(!_0x43da72||_0x559302['jgLkg'](_0x43da72,_0x559302['zNmVs'])||_0x43da72===_0x559302[_0x4d035f(0xc1)])return;_0x559302[_0x4d035f(0xa2)](_0x212338['currentBranch'],_0x43da72)&&(_0x5d714c[_0x4d035f(0x9c)][_0x43da72]=!![],_0x212338['currentBranch']=_0x43da72,_0x559302['KLtcX'](saveCache,_0x5d714c));}export function initBranchTracking(_0x5e2da9){const _0x2d845c=_0x1707be,_0x384d09={'Dehua':function(_0x980f13){return _0x980f13();},'LxddD':function(_0x2ce7ea,_0x43e2f4){return _0x2ce7ea===_0x43e2f4;},'IXNFH':'main','ZxBhj':function(_0x47b324,_0x986c3c){return _0x47b324===_0x986c3c;},'mBTbB':'master','DcAKH':function(_0x224126,_0x4335b2){return _0x224126===_0x4335b2;},'gEKIx':function(_0x18073a,_0x2522b2,_0x1cd929){return _0x18073a(_0x2522b2,_0x1cd929);}},_0x1e2482=_0x384d09[_0x2d845c(0xca)](loadCache),_0x51d64f=getCurrentBranch();if(!_0x51d64f||_0x384d09['LxddD'](_0x51d64f,_0x384d09['IXNFH'])||_0x384d09['ZxBhj'](_0x51d64f,_0x384d09['mBTbB']))return;if(_0x384d09['DcAKH'](_0x1e2482['branches'][_0x51d64f],!![])){const _0x462c9b=_0x384d09[_0x2d845c(0xcb)](getOrCreateSession,_0x1e2482,_0x5e2da9);_0x462c9b['enabled']=!![],_0x462c9b[_0x2d845c(0xc5)]=_0x51d64f,saveCache(_0x1e2482);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4537e1){const _0x4f2160=_0x1707be,_0xc61403={'beMNf':function(_0x4a2793,_0x97368b){return _0x4a2793(_0x97368b);}},_0x1d221b=loadCache(),_0x1a10f7=_0x1d221b['sessions'][_0x4537e1];_0x1a10f7?.['enabled']&&(_0x1d221b['lastEnabledSessionClearedAt']=Date[_0x4f2160(0xc9)](),_0xc61403[_0x4f2160(0xaf)](saveCache,_0x1d221b));}export function shouldAutoEnableAfterClear(_0x3debc4){const _0x4d2497=_0x1707be,_0x3649e4={'VnYMq':function(_0x3ee756){return _0x3ee756();},'nyEzh':function(_0x1608d6,_0x35a131){return _0x1608d6<=_0x35a131;}};if(_0x3debc4!==_0x4d2497(0x95))return![];const _0x48af9b=_0x3649e4[_0x4d2497(0xc8)](loadCache),_0x429c8c=_0x48af9b['lastEnabledSessionClearedAt'];if(!_0x429c8c)return![];const _0x386cd3=Date['now']()-_0x429c8c;return _0x3649e4[_0x4d2497(0xc4)](_0x386cd3,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x421813){const _0x3118f4=_0x1707be,_0x552331={'iRGpY':function(_0x9e10eb,_0x5c8f40,_0x86eda9){return _0x9e10eb(_0x5c8f40,_0x86eda9);},'lvffe':function(_0x19fd54,_0x2d0ec5){return _0x19fd54!==_0x2d0ec5;},'tuhGR':_0x3118f4(0xb0),'RlfNS':'master','INdhJ':function(_0x4fee50,_0x37e045){return _0x4fee50(_0x37e045);}},_0x15502e=loadCache(),_0x5154f0=_0x552331[_0x3118f4(0xc7)](getOrCreateSession,_0x15502e,_0x421813);_0x5154f0[_0x3118f4(0x9b)]=!![];const _0x5e5bb0=getCurrentBranch();_0x5e5bb0&&_0x552331[_0x3118f4(0xcf)](_0x5e5bb0,_0x552331['tuhGR'])&&_0x5e5bb0!==_0x552331[_0x3118f4(0xb3)]&&(_0x5154f0[_0x3118f4(0xc5)]=_0x5e5bb0),delete _0x15502e[_0x3118f4(0xbe)],_0x552331['INdhJ'](saveCache,_0x15502e);}export function registerSession(_0x410254,_0x1e7df3){const _0x4a3284=_0x1707be,_0xdcb1c6={'VKeNy':function(_0x146c3c,_0x2834e0,_0x270cdc){return _0x146c3c(_0x2834e0,_0x270cdc);},'TEszP':function(_0x25860c,_0x18b12b){return _0x25860c(_0x18b12b);}},_0xc8ae5=loadCache(),_0x13ccaa=_0xdcb1c6['VKeNy'](getOrCreateSession,_0xc8ae5,_0x410254);_0x13ccaa['featureId']=_0x1e7df3,_0x13ccaa['registeredAt']=new Date()[_0x4a3284(0x98)](),_0xdcb1c6[_0x4a3284(0xa6)](saveCache,_0xc8ae5);}export function getSessionEntry(_0xe9cbc3){const _0x230fc3=_0x1707be,_0x433682=loadCache(),_0x31a52e=_0x433682[_0x230fc3(0xcc)][_0xe9cbc3];if(_0x31a52e?.['featureId']&&_0x31a52e?.[_0x230fc3(0x9f)])return{'featureId':_0x31a52e['featureId'],'registeredAt':_0x31a52e['registeredAt']};return null;}export function unregisterSession(_0x211336){const _0x139586=_0x1707be,_0x2eead2={'gFwsJ':function(_0x460f5b){return _0x460f5b();},'CmDnk':function(_0x1800dd,_0x36e10d){return _0x1800dd(_0x36e10d);}},_0x2e5272=_0x2eead2[_0x139586(0xa8)](loadCache),_0x1bc6fe=_0x2e5272['sessions'][_0x211336];_0x1bc6fe&&(delete _0x1bc6fe['featureId'],delete _0x1bc6fe['registeredAt'],_0x2eead2[_0x139586(0x9a)](saveCache,_0x2e5272));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b8eec){const _0x5002be=_0x1707be,_0x1a358e={'pPyPD':function(_0x49185d,_0x32cb20,_0x2de5c9){return _0x49185d(_0x32cb20,_0x2de5c9);},'UhgZk':function(_0x208d56,_0x221e80){return _0x208d56>=_0x221e80;}},_0x4ba089=loadCache(),_0x12c737=_0x1a358e['pPyPD'](getOrCreateSession,_0x4ba089,_0x2b8eec),_0x33f3cd=_0x12c737[_0x5002be(0xb9)]||0x0,_0x1aad0b=Date[_0x5002be(0xc9)]();if(_0x1a358e['UhgZk'](_0x1aad0b-_0x33f3cd,PLAN_REMINDER_INTERVAL_MS))return _0x12c737[_0x5002be(0xb9)]=_0x1aad0b,saveCache(_0x4ba089),!![];return![];}export function shouldShowStopReminder(_0x1b844d){const _0x5b8903=_0x1707be,_0x3874a7={'txHrJ':function(_0x12501c){return _0x12501c();},'rtDoJ':function(_0x39f497,_0x3ec295){return _0x39f497>=_0x3ec295;},'PXduR':function(_0x26ffe2,_0x5b3353){return _0x26ffe2(_0x5b3353);}},_0x1eb8ff=_0x3874a7['txHrJ'](loadCache),_0x35a048=getOrCreateSession(_0x1eb8ff,_0x1b844d),_0x2a35b6=_0x35a048[_0x5b8903(0xad)]||0x0,_0x2d94ee=Date[_0x5b8903(0xc9)]();if(_0x3874a7['rtDoJ'](_0x2d94ee-_0x2a35b6,STOP_REMINDER_INTERVAL_MS))return _0x35a048[_0x5b8903(0xad)]=_0x2d94ee,_0x3874a7[_0x5b8903(0xcd)](saveCache,_0x1eb8ff),!![];return![];}export function hasSessionBeenPrompted(_0x583be2){const _0x48edb7=_0x1707be,_0x54ef7f={'rKNuA':function(_0x37599a,_0x4bb172){return _0x37599a===_0x4bb172;}},_0x4b24fd=loadCache();return _0x54ef7f[_0x48edb7(0xce)](_0x4b24fd['sessions'][_0x583be2]?.[_0x48edb7(0x94)],!![]);}export function markSessionPrompted(_0x25e123){const _0x3e6f8b=_0x1707be,_0x1668c7={'XguuK':function(_0x18dcf0,_0x45aec7,_0x203590){return _0x18dcf0(_0x45aec7,_0x203590);},'IlKCe':function(_0x107d12,_0x2133fb){return _0x107d12(_0x2133fb);}},_0x337ca2=loadCache(),_0x3cf83d=_0x1668c7[_0x3e6f8b(0xac)](getOrCreateSession,_0x337ca2,_0x25e123);_0x3cf83d['prompted']=!![],_0x1668c7[_0x3e6f8b(0x9e)](saveCache,_0x337ca2);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0xb0189d=_0x6883;(function(_0x316c2b,_0x2fc3af){const _0x4ee61d=_0x6883,_0x32a651=_0x316c2b();while(!![]){try{const _0x2ccb1c=parseInt(_0x4ee61d(0x145))/0x1+parseInt(_0x4ee61d(0x17d))/0x2*(-parseInt(_0x4ee61d(0x162))/0x3)+parseInt(_0x4ee61d(0x182))/0x4+-parseInt(_0x4ee61d(0x15c))/0x5*(parseInt(_0x4ee61d(0x188))/0x6)+parseInt(_0x4ee61d(0x168))/0x7*(-parseInt(_0x4ee61d(0x158))/0x8)+parseInt(_0x4ee61d(0x199))/0x9*(parseInt(_0x4ee61d(0x170))/0xa)+-parseInt(_0x4ee61d(0x1a8))/0xb;if(_0x2ccb1c===_0x2fc3af)break;else _0x32a651['push'](_0x32a651['shift']());}catch(_0x25ff12){_0x32a651['push'](_0x32a651['shift']());}}}(_0x6544,0xa90d5));function _0x6883(_0x36a39f,_0x101bc5){_0x36a39f=_0x36a39f-0x131;const _0x654453=_0x6544();let _0x688346=_0x654453[_0x36a39f];return _0x688346;}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x6544(){const _0x5af247=['RWyLs','\x20is\x20not\x20set','441GEONiT','aUkXc','parse','dQpwW','Failed\x20to\x20decrypt\x20auth\x20state:\x20','XdumZ','--disable-web-security','local','25070hdBSnJ','.json','contextOptions','keys','RjngN','sessions','userAgent','now','umjIs','locations','headless','tempAuthPath','ptRCE','169196PAIubT','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','playwright-cli','yQzFY','-cli','5533088evEUuL','qodoZ','oOttv','location','message','LClQn','37938WsagUW','--disable-features=WebBluetooth','headers','DiUzC','vision','pdf','AwWcL','Nlmex','filter','clipboard-write','length','includes','myEiq','auth.json','storageState','GdeIL','DEAZn','3087ZLiRRQ','nova-user-data','BaJsw','kdayf','code','clipboard-read','legacy','XSbWH','VCHeX','--disable-setuid-sandbox','startsWith','ranger-auth-','auth.json.enc','getuid','isArray','9944088WvWtjs','HBzEQ','fjNWq','repeat','warn','executablePath','znUah','cdpEndpoint','EyaYX','WkUvJ','stringify','string','rscmO','extraHTTPHeaders','tmgMy','ITqBW','entries','sYxgJ','aYktP','path','otkip','storageStatePath','chromium','377098rpRByy','MMMyh','lntss','Default','eaYMD','GqSFy','launchOptions','forWrite','ShmdG','boolean','settings.json','object','pYVKf','keHjx','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','all','browser','CXVCE','Refusing\x20to\x20write\x20profile\x20\x22','1736gVkcgd','czVaC','--allow-insecure-localhost','KhVxz','665EGeYAB','nqUaK','map','hsDKL','allow','XdbvZ','6aRuYzN','args','--allow-running-insecure-content','WmDHM'];_0x6544=function(){return _0x5af247;};return _0x6544();}import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1d5db9,_0x13e8ea){const _0x29e82b=_0x6883,_0x27b5f3={'szrwG':function(_0x31a7e4,_0x1c2287,_0x5c2e26,_0x3d4a44){return _0x31a7e4(_0x1c2287,_0x5c2e26,_0x3d4a44);},'fHJnM':function(_0x2a86d4,_0x142e9c,_0x54f699,_0x39dee5){return _0x2a86d4(_0x142e9c,_0x54f699,_0x39dee5);},'oOttv':function(_0x5c68e1,_0x18fcc5,_0xf980a1){return _0x5c68e1(_0x18fcc5,_0xf980a1);},'UDpSb':function(_0xb740b,_0x4e3928){return _0xb740b!==_0x4e3928;}},_0xec0fe2=_0x27b5f3['szrwG'](join,_0x13e8ea,'ci',_0x1d5db9),_0x45908e=_0x27b5f3['fHJnM'](join,_0x13e8ea,'local',_0x1d5db9),_0x4febbc=_0x27b5f3[_0x29e82b(0x184)](join,_0x13e8ea,_0x1d5db9),_0x5afc6d=_0x27b5f3['oOttv'](join,_0x13e8ea,'local'),_0x36302e=join(_0x13e8ea,'ci');if(existsSync(_0xec0fe2))return _0xec0fe2;if(existsSync(_0x45908e))return _0x45908e;if(existsSync(_0x4febbc)&&(_0x27b5f3['UDpSb'](_0x4febbc,_0x5afc6d)&&_0x4febbc!==_0x36302e?!![]:hasLegacyProfileFiles(_0x4febbc)))return _0x4febbc;return null;}export function getEnvDir(_0x3eaaf3,_0x322eaf={}){const _0x3ccf21=_0x6883,_0x8cdc79={'EyaYX':function(_0x539e28){return _0x539e28();},'FuCVi':function(_0x15c86d,_0x1b9a8c){return _0x15c86d(_0x1b9a8c);},'tLzQQ':function(_0x3d4120,_0x32a5a0){return _0x3d4120!==_0x32a5a0;},'HBzEQ':function(_0x17f763,_0x36b6f6,_0x369bde){return _0x17f763(_0x36b6f6,_0x369bde);}},_0x5f0e33=_0x8cdc79[_0x3ccf21(0x136)](getRangerDir),_0xcfbb92=findEnvInRoot(_0x3eaaf3,_0x5f0e33);if(_0xcfbb92){if(_0x322eaf[_0x3ccf21(0x14c)]&&_0x8cdc79['FuCVi'](isLegacyEnvPath,_0xcfbb92))throw legacyWriteError(_0x3eaaf3,_0xcfbb92);return _0xcfbb92;}const _0x29eb4a=getRangerHomeDir();if(_0x8cdc79['tLzQQ'](_0x29eb4a,_0x5f0e33)){const _0xda832d=_0x8cdc79[_0x3ccf21(0x1a9)](findEnvInRoot,_0x3eaaf3,_0x29eb4a);if(_0xda832d){if(_0x322eaf['forWrite']&&isLegacyEnvPath(_0xda832d))throw legacyWriteError(_0x3eaaf3,_0xda832d);return _0xda832d;}}const _0xfe186f=join(_0x29eb4a,_0x3ccf21(0x16f),_0x3eaaf3);if(_0x322eaf['forWrite'])throw _0x8cdc79[_0x3ccf21(0x1a9)](legacyWriteError,_0x3eaaf3,_0xfe186f);return _0xfe186f;}function isLegacyEnvPath(_0x31362d){const _0x1796df=_0x6883,_0x3ba431={'tYuFn':function(_0x56fe65){return _0x56fe65();},'otkip':function(_0x156a45,_0x28421a){return _0x156a45+_0x28421a;}},_0xa01d8d=_0x3ba431['tYuFn'](getRangerDir),_0x42e266=getRangerHomeDir();for(const _0x402b7b of new Set([_0xa01d8d,_0x42e266])){const _0x573eec=_0x402b7b['endsWith']('/')?_0x402b7b:_0x3ba431[_0x1796df(0x142)](_0x402b7b,'/');if(_0x31362d===_0x402b7b||_0x31362d[_0x1796df(0x1a3)](_0x573eec))return!![];}return![];}function legacyWriteError(_0x6ed9df,_0x382784){const _0x5c4a84=_0x6883,_0x2f868e={'dQpwW':function(_0x58eada,_0x15c93c){return _0x58eada+_0x15c93c;},'sYxgJ':function(_0x2e2af0,_0x51aab0){return _0x2e2af0+_0x51aab0;}};return new Error(_0x2f868e[_0x5c4a84(0x16b)](_0x2f868e[_0x5c4a84(0x13f)](_0x5c4a84(0x157)+_0x6ed9df+'\x22\x20to\x20legacy\x20path\x20'+_0x382784+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5c4a84(0x17e),_0x5c4a84(0x153)));}export function findExistingEnv(_0x5be178,_0x19c36c){const _0x17d2ff=_0x6883,_0x379871={'KhVxz':function(_0x5a4cf5){return _0x5a4cf5();},'fjNWq':function(_0x58e574,_0xf878c6,_0x163c69){return _0x58e574(_0xf878c6,_0x163c69);},'ShmdG':_0x17d2ff(0x16f),'VCHeX':function(_0xd481e2,_0x283f25,_0x33b7ce){return _0xd481e2(_0x283f25,_0x33b7ce);},'ARQVQ':function(_0x2b4c5c,_0x283127){return _0x2b4c5c===_0x283127;}},_0x2a2cec=_0x19c36c?.['rangerDir'],_0x3ec73c=_0x2a2cec?[_0x2a2cec]:[_0x379871[_0x17d2ff(0x15b)](getRangerDir),getRangerHomeDir()]['filter']((_0x101e74,_0x3bd1a8,_0xe35366)=>_0xe35366['indexOf'](_0x101e74)===_0x3bd1a8),_0x21088f=_0x19c36c?.[_0x17d2ff(0x179)]??['ci',_0x17d2ff(0x16f),'legacy'];for(const _0x39063a of _0x3ec73c){const _0x39d542=_0x379871[_0x17d2ff(0x1aa)](join,_0x39063a,_0x379871[_0x17d2ff(0x14d)]),_0x27d2cb=_0x379871['VCHeX'](join,_0x39063a,'ci'),_0x269c14=[{'location':'ci','path':join(_0x39063a,'ci',_0x5be178)},{'location':'local','path':join(_0x39063a,'local',_0x5be178)},{'location':_0x17d2ff(0x19f),'path':_0x379871[_0x17d2ff(0x1a1)](join,_0x39063a,_0x5be178)}];for(const _0x3d3744 of _0x269c14){if(_0x21088f['includes'](_0x3d3744[_0x17d2ff(0x185)])&&existsSync(_0x3d3744['path'])){if(_0x379871['ARQVQ'](_0x3d3744[_0x17d2ff(0x185)],_0x17d2ff(0x19f))&&(_0x3d3744[_0x17d2ff(0x141)]===_0x39d542||_0x3d3744[_0x17d2ff(0x141)]===_0x27d2cb)&&!hasLegacyProfileFiles(_0x3d3744[_0x17d2ff(0x141)]))continue;return{'path':_0x3d3744[_0x17d2ff(0x141)],'location':_0x3d3744['location']};}}}return null;}function hasLegacyProfileFiles(_0x2facf9){const _0x27b243=_0x6883,_0x21869f={'czVaC':function(_0xa91bba,_0x260963,_0x2a17f2){return _0xa91bba(_0x260963,_0x2a17f2);},'yJtuz':'settings.json','umjIs':function(_0x39e592,_0x22637d){return _0x39e592(_0x22637d);}};return existsSync(_0x21869f[_0x27b243(0x159)](join,_0x2facf9,_0x21869f['yJtuz']))||_0x21869f[_0x27b243(0x178)](existsSync,_0x21869f['czVaC'](join,_0x2facf9,_0x27b243(0x195)))||existsSync(join(_0x2facf9,_0x27b243(0x1a5)));}export function isEnvCi(_0x3cf74a){const _0x467344=_0x6883,_0x30e85b={'WkUvJ':function(_0x367572,_0x26a33f){return _0x367572(_0x26a33f);},'MMMyh':function(_0x29143e,_0x56570e,_0x2784a6,_0x49a5ab){return _0x29143e(_0x56570e,_0x2784a6,_0x49a5ab);},'GqSFy':function(_0x27bcd1){return _0x27bcd1();}};if(_0x30e85b[_0x467344(0x137)](existsSync,_0x30e85b[_0x467344(0x146)](join,getRangerDir(),'ci',_0x3cf74a)))return!![];const _0x21b1ce=_0x30e85b[_0x467344(0x14a)](getRangerHomeDir);if(_0x21b1ce!==getRangerDir()&&existsSync(join(_0x21b1ce,'ci',_0x3cf74a)))return!![];return![];}export async function cleanupTempFiles(_0x5aa612){const _0x5eb5d5=_0x6883,_0xe0f2d7={'yWELh':function(_0x2569b6,_0x4cebef){return _0x2569b6!==_0x4cebef;},'tmgMy':'ENOENT'},_0x110a5c=[_0x5aa612[_0x5eb5d5(0x17b)],_0x5aa612['configPath']]['filter'](Boolean);await Promise[_0x5eb5d5(0x154)](_0x110a5c['map'](_0x401b2e=>unlink(_0x401b2e)['catch'](_0x37cb61=>{const _0x3434da=_0x5eb5d5;_0xe0f2d7['yWELh'](_0x37cb61[_0x3434da(0x19d)],_0xe0f2d7[_0x3434da(0x13c)])&&console[_0x3434da(0x132)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x401b2e+':',_0x37cb61['message']);})));}export function getSettingsPath(_0x3225c5){const _0x5274f1=_0x6883,_0x41a969={'DEAZn':function(_0x43c886,_0x18200c,_0x552b24){return _0x43c886(_0x18200c,_0x552b24);}};return _0x41a969[_0x5274f1(0x198)](join,getEnvDir(_0x3225c5),_0x5274f1(0x14f));}export async function loadSettings(_0x2adb6b){const _0x4e9586=_0x6883,_0x238cbb=getSettingsPath(_0x2adb6b);if(!existsSync(_0x238cbb))return{};try{const _0x1e0f38=await readFile(_0x238cbb,'utf-8');return JSON[_0x4e9586(0x16a)](_0x1e0f38);}catch{return{};}}export async function saveSettings(_0x1029d7,_0x4d5b1a){const _0x585829=_0x6883,_0x1f6cb5={'FIBMv':function(_0x2aa16f,_0x2ba284){return _0x2aa16f(_0x2ba284);},'znUah':function(_0x57012a,_0x36bfbe,_0x52be5a){return _0x57012a(_0x36bfbe,_0x52be5a);},'lntss':function(_0x2e784c,_0x1d1684,_0x78fb1f){return _0x2e784c(_0x1d1684,_0x78fb1f);}},_0x256149=getSettingsPath(_0x1029d7),_0x3b7a4c=dirname(_0x256149);!_0x1f6cb5['FIBMv'](existsSync,_0x3b7a4c)&&await _0x1f6cb5[_0x585829(0x134)](mkdir,_0x3b7a4c,{'recursive':!![]}),await _0x1f6cb5[_0x585829(0x147)](writeFile,_0x256149,JSON[_0x585829(0x138)](_0x4d5b1a,null,0x2));}export function resolveEnvVars(_0xc26996){const _0x2fe10f=_0x6883,_0x11d4b8={'BaJsw':_0x2fe10f(0x139),'GdeIL':function(_0x3f5313,_0x3ee4df){return _0x3f5313===_0x3ee4df;},'CXVCE':'object'};if(typeof _0xc26996===_0x11d4b8[_0x2fe10f(0x19b)])return _0xc26996['replace'](/\$\{(\w+)\}/g,(_0x12e68a,_0x83b334)=>{const _0x4aa572=_0x2fe10f,_0xd14d54=process['env'][_0x83b334];if(_0xd14d54===undefined)throw new Error('Environment\x20variable\x20'+_0x83b334+_0x4aa572(0x167));return _0xd14d54;});if(Array[_0x2fe10f(0x1a7)](_0xc26996))return _0xc26996[_0x2fe10f(0x15e)](resolveEnvVars);if(_0xc26996&&_0x11d4b8[_0x2fe10f(0x197)](typeof _0xc26996,_0x11d4b8[_0x2fe10f(0x156)]))return Object['fromEntries'](Object['entries'](_0xc26996)['map'](([_0x3f6b92,_0x1c92a3])=>[_0x3f6b92,resolveEnvVars(_0x1c92a3)]));return _0xc26996;}const isRecord=_0x4437dd=>typeof _0x4437dd===_0xb0189d(0x150)&&_0x4437dd!==null&&!Array[_0xb0189d(0x1a7)](_0x4437dd),asRecord=_0x2cddd9=>isRecord(_0x2cddd9)?_0x2cddd9:undefined,mergeHeaders=(_0x3863ed,_0x56c92c)=>{const _0x255406=_0xb0189d,_0x31b3f5={'qodoZ':function(_0x118ae1,_0x298c2c){return _0x118ae1??_0x298c2c;}},_0x3fcaaa={..._0x31b3f5[_0x255406(0x183)](_0x3863ed,{}),..._0x56c92c??{}};return Object[_0x255406(0x173)](_0x3fcaaa)[_0x255406(0x192)]?_0x3fcaaa:undefined;},SAFE_MODE_ARGS=[_0xb0189d(0x189)],ALLOW_LOCALHOST_ARGS=[_0xb0189d(0x16e),_0xb0189d(0x164),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0xb0189d(0x15a)];export function buildBrowserOptionsFromSettings(_0x1123bb,_0x5aaf94={}){const _0x146e2b=_0xb0189d,_0x86df63={'JCCYI':function(_0x3dba21,_0x2a5f96){return _0x3dba21===_0x2a5f96;},'XZjqU':_0x146e2b(0x14e),'nqUaK':function(_0x569a3e,_0x2bd172){return _0x569a3e(_0x2bd172);},'HXcjx':function(_0x47db37,_0x378381,_0xc561ff){return _0x47db37(_0x378381,_0xc561ff);}},_0x10d5f5=asRecord(_0x1123bb[_0x146e2b(0x155)]),_0x551646={...asRecord(_0x10d5f5?.[_0x146e2b(0x14b)])??{}};_0x86df63['JCCYI'](typeof _0x5aaf94[_0x146e2b(0x17a)],_0x86df63['XZjqU'])&&(_0x551646[_0x146e2b(0x17a)]=_0x5aaf94[_0x146e2b(0x17a)]);if(_0x1123bb['safeMode']){const _0x1ac8cf=_0x551646['args']??[],_0x232571=SAFE_MODE_ARGS[_0x146e2b(0x190)](_0x204066=>!_0x1ac8cf[_0x146e2b(0x193)](_0x204066));_0x551646[_0x146e2b(0x163)]=[..._0x1ac8cf,..._0x232571];}if(_0x1123bb['allowInsecureLocalhost']){const _0x4ceb48=_0x551646[_0x146e2b(0x163)]??[],_0x19d87d=ALLOW_LOCALHOST_ARGS[_0x146e2b(0x190)](_0x1dfc33=>!_0x4ceb48[_0x146e2b(0x193)](_0x1dfc33));_0x551646['args']=[..._0x4ceb48,..._0x19d87d];}const _0x5a8a3f={..._0x86df63[_0x146e2b(0x15d)](asRecord,_0x10d5f5?.['contextOptions'])??{}};_0x5a8a3f['ignoreHTTPSErrors']=!![];typeof _0x1123bb['userAgent']===_0x146e2b(0x139)&&(_0x5a8a3f['userAgent']=_0x1123bb['userAgent']);const _0x3c01f4=_0x86df63['HXcjx'](mergeHeaders,_0x86df63[_0x146e2b(0x15d)](asRecord,_0x5a8a3f['extraHTTPHeaders']),_0x86df63[_0x146e2b(0x15d)](asRecord,_0x1123bb['headers']));return _0x3c01f4?_0x5a8a3f[_0x146e2b(0x13b)]=_0x3c01f4:delete _0x5a8a3f[_0x146e2b(0x13b)],_0x5aaf94['storageStatePath']&&(_0x5a8a3f[_0x146e2b(0x196)]=_0x5aaf94[_0x146e2b(0x143)]),{'launchOptions':_0x551646,'contextOptions':_0x5a8a3f};}export async function resolveProfileStorageState(_0x1e3573){const _0x1bba2a={'odJAn':function(_0x1fdb28,_0xa6108d){return _0x1fdb28(_0xa6108d);}};return _0x1bba2a['odJAn'](resolveLocalAuthPath,getEnvDir(_0x1e3573));}async function resolveLocalAuthPath(_0x40b759){const _0x53c4de=_0xb0189d,_0x261305={'Qxdyn':'auth.json.enc','XdbvZ':function(_0x1b1c16,_0x4792c3,_0x47c03d){return _0x1b1c16(_0x4792c3,_0x47c03d);},'hsDKL':_0x53c4de(0x195),'ITqBW':function(_0x481ee0,_0x461099){return _0x481ee0(_0x461099);},'LClQn':function(_0x1acc15){return _0x1acc15();},'rscmO':function(_0x3060c7,_0x29deda){return _0x3060c7(_0x29deda);},'FoOrF':function(_0x8b1a56,_0x35181){return _0x8b1a56 instanceof _0x35181;}},_0x5c2b62=join(_0x40b759,_0x261305['Qxdyn']),_0x3ebea3=_0x261305[_0x53c4de(0x161)](join,_0x40b759,_0x261305[_0x53c4de(0x15f)]);if(_0x261305[_0x53c4de(0x13d)](existsSync,_0x5c2b62))try{const _0x87a5b3=await _0x261305[_0x53c4de(0x187)](getToken);if(!_0x87a5b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a5b79=await _0x261305[_0x53c4de(0x13a)](readFile,_0x5c2b62),_0x39a4aa=decrypt(_0x1a5b79,_0x87a5b3),_0x534d96=_0x261305['XdbvZ'](join,tmpdir(),_0x53c4de(0x1a4)+Date['now']()+'.json');return await writeFile(_0x534d96,_0x39a4aa),{'storageStatePath':_0x534d96,'tempAuthPath':_0x534d96};}catch(_0x341372){const _0x49da5a=_0x261305['FoOrF'](_0x341372,Error)?_0x341372[_0x53c4de(0x186)]:String(_0x341372);throw new Error(_0x53c4de(0x16c)+_0x49da5a);}if(existsSync(_0x3ebea3))return{'storageStatePath':_0x3ebea3};return{};}export async function buildPlaywrightConfig(_0x291c0f,_0x1390a9,_0x2ea6fc,_0x51a02f,_0x3e8595){const _0x519288=_0xb0189d,_0x43d5ab={'Nlmex':function(_0x483cf9,_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381){return _0x483cf9(_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381);},'DiUzC':function(_0x46c3e9,_0x4ccaf1){return _0x46c3e9(_0x4ccaf1);}};if(_0x3e8595)return buildPlaywrightConfigCore(_0x291c0f,_0x3e8595,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');const {storageStatePath:_0x58fdc4,tempAuthPath:_0x387833}=await resolveLocalAuthPath(getEnvDir(_0x1390a9));try{const _0x5b09dc=await _0x43d5ab[_0x519288(0x18f)](buildPlaywrightConfigCore,_0x291c0f,_0x58fdc4,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');return{..._0x5b09dc,'tempAuthPath':_0x387833};}catch(_0x21fa3f){_0x387833&&await _0x43d5ab[_0x519288(0x18b)](unlink,_0x387833)['catch'](()=>{});throw _0x21fa3f;}}export async function buildPlaywrightConfigCore(_0x29bcde,_0x5b8e19,_0x524e13,_0x1ce596,_0x1d9d25,_0x4acc28='stagehand'){const _0x4e90d8=_0xb0189d,_0x585575={'keHjx':function(_0x1794d2,_0x48b055,_0x40b97d){return _0x1794d2(_0x48b055,_0x40b97d);},'HsFGk':function(_0x132737,_0x289a12){return _0x132737===_0x289a12;},'LtTnv':'--no-sandbox','ThsIj':_0x4e90d8(0x1a2),'uZPQf':_0x4e90d8(0x144),'MBuTJ':function(_0x2e6e45){return _0x2e6e45();},'RWyLs':function(_0x51f9d6,_0x3e437f,_0x56939b,_0x2b5890){return _0x51f9d6(_0x3e437f,_0x56939b,_0x2b5890);},'XdumZ':'file','qdrKH':'core','HRGXJ':_0x4e90d8(0x18c),'kdayf':function(_0x32cd46,_0x9a941b){return _0x32cd46===_0x9a941b;},'LVGpt':function(_0x29bb57,_0x42ab0c){return _0x29bb57===_0x42ab0c;},'yCyfM':'ranger-config','aYktP':function(_0x1c03d7,_0x1dcf88){return _0x1c03d7(_0x1dcf88);},'OzsfH':'playwright-cli','RjngN':function(_0x4babc7,_0x2a297b,_0x2eaebe){return _0x4babc7(_0x2a297b,_0x2eaebe);}},_0x3207ae=_0x1ce596||_0x585575['MBuTJ'](randomUUID),_0x5ace3c=_0x585575[_0x4e90d8(0x166)](join,_0x585575['MBuTJ'](getRangerDir),_0x4e90d8(0x175),_0x3207ae),_0x9f640c=Boolean(_0x29bcde[_0x4e90d8(0x135)]),_0x2d1b9f=_0x9f640c?{'browserName':_0x585575['uZPQf'],'cdpEndpoint':_0x29bcde[_0x4e90d8(0x135)]}:((()=>{const _0x87cd1e=_0x4e90d8,{launchOptions:_0x515e1c,contextOptions:_0x182adf}=_0x585575[_0x87cd1e(0x152)](buildBrowserOptionsFromSettings,_0x29bcde,{'headless':_0x1d9d25?![]:_0x29bcde['headless']??!![],'storageStatePath':_0x5b8e19});if(_0x585575['HsFGk'](process['getuid']?.(),0x0)){const _0x311b29=[_0x585575['LtTnv'],_0x585575['ThsIj']],_0x58cc64=_0x515e1c[_0x87cd1e(0x163)]??[],_0xf3b4c6=_0x311b29['filter'](_0x44c339=>!_0x58cc64['includes'](_0x44c339));_0x515e1c[_0x87cd1e(0x163)]=[..._0x58cc64,..._0xf3b4c6];}return{'isolated':!![],'browserName':_0x585575['uZPQf'],'launchOptions':_0x515e1c,'contextOptions':{..._0x182adf,'permissions':[_0x87cd1e(0x19e),_0x87cd1e(0x191)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4daa58=_0x4acc28==='playwright-cli'?{'browser':_0x2d1b9f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c,'outputMode':_0x585575[_0x4e90d8(0x16d)],'codegen':'none'}:{'name':_0x524e13,'browser':_0x2d1b9f,'capabilities':[_0x585575['qdrKH'],'tabs','install',_0x4e90d8(0x18d),_0x585575['HRGXJ']],'imageResponses':_0x4e90d8(0x160),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c};if(!_0x9f640c){const _0x42ab17=_0x4daa58['browser'],_0x1f36bc=_0x42ab17[_0x4e90d8(0x172)];if(_0x585575[_0x4e90d8(0x19c)](_0x1f36bc[_0x4e90d8(0x176)],undefined))delete _0x1f36bc[_0x4e90d8(0x176)];if(_0x585575['LVGpt'](_0x1f36bc[_0x4e90d8(0x196)],undefined))delete _0x1f36bc[_0x4e90d8(0x196)];}const _0xd8452e=join(tmpdir(),_0x585575['yCyfM']);!_0x585575[_0x4e90d8(0x140)](existsSync,_0xd8452e)&&await mkdir(_0xd8452e,{'recursive':!![]});const _0x2ccbd1=_0x585575[_0x4e90d8(0x19c)](_0x4acc28,_0x585575['OzsfH'])?_0x4e90d8(0x181):'',_0x1fd686=join(_0xd8452e,_0x524e13+'-'+Date[_0x4e90d8(0x177)]()+_0x2ccbd1+_0x4e90d8(0x171));return await _0x585575[_0x4e90d8(0x174)](writeFile,_0x1fd686,JSON[_0x4e90d8(0x138)](_0x4daa58,null,0x2)),{'configPath':_0x1fd686,'storageStatePath':_0x5b8e19};}export async function buildPlaywrightCliConfig(_0x56827b,_0x91b530,_0x2b2018,_0x181c51,_0x42589d){const _0x51e994=_0xb0189d,_0x381e68={'pYVKf':function(_0x35ebd5,_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8){return _0x35ebd5(_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8);},'NQbQG':_0x51e994(0x17f),'yBVkk':function(_0x53e016,_0x229c1f){return _0x53e016(_0x229c1f);}};if(_0x42589d)return _0x381e68[_0x51e994(0x151)](buildPlaywrightConfigCore,_0x56827b,_0x42589d,_0x91b530,_0x2b2018,_0x181c51,_0x381e68['NQbQG']);const {storageStatePath:_0x448de0,tempAuthPath:_0x3b9280}=await resolveLocalAuthPath(getEnvDir(_0x91b530));try{const _0x1d2836=await buildPlaywrightConfigCore(_0x56827b,_0x448de0,_0x91b530,_0x2b2018,_0x181c51,_0x51e994(0x17f));return{..._0x1d2836,'tempAuthPath':_0x3b9280};}catch(_0x42a741){_0x3b9280&&await _0x381e68['yBVkk'](unlink,_0x3b9280)['catch'](()=>{});throw _0x42a741;}}export async function buildNovaActCliConfig(_0x42607e,_0x142bc0,_0x3f1578,_0x2736df,_0x2538d9){const _0x24b471=_0xb0189d,_0x4de547={'ptRCE':function(_0x172889,_0x668ad4){return _0x172889(_0x668ad4);},'SJvmS':_0x24b471(0x148),'PKpRR':function(_0x54bbb6,_0x445118,_0x5bce96){return _0x54bbb6(_0x445118,_0x5bce96);},'yCRgN':function(_0x1093e3,_0x477a29){return _0x1093e3===_0x477a29;},'eaYMD':_0x24b471(0x1a2),'myEiq':'string','AwWcL':function(_0x49fd2c,_0x153dbb){return _0x49fd2c(_0x153dbb);}},{storageStatePath:_0x3a611d,tempAuthPath:_0x53719c}=_0x2538d9?{'storageStatePath':_0x2538d9,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x4de547['ptRCE'](getEnvDir,_0x142bc0)),_0x1bc2cd=_0x3f1578||randomUUID(),_0x4c25cd=join(getRangerDir(),'sessions',_0x1bc2cd),_0x3f1739=join(_0x4c25cd,_0x24b471(0x19a)),_0x4a6f41=_0x3a611d?join(_0x3f1739,_0x4de547['SJvmS']):undefined,{launchOptions:_0x3171d0,contextOptions:_0x2b8a10}=_0x4de547['PKpRR'](buildBrowserOptionsFromSettings,_0x42607e,{'headless':_0x2736df?![]:_0x42607e[_0x24b471(0x17a)]??!![],'storageStatePath':_0x3a611d});if(_0x4de547['yCRgN'](process[_0x24b471(0x1a6)]?.(),0x0)){const _0x3fe19a=['--no-sandbox',_0x4de547[_0x24b471(0x149)]],_0x58cc67=_0x3171d0['args']??[],_0x35885c=_0x3fe19a['filter'](_0xb46551=>!_0x58cc67[_0x24b471(0x193)](_0xb46551));_0x3171d0['args']=[..._0x58cc67,..._0x35885c];}const _0x51c81b=typeof _0x3171d0[_0x24b471(0x133)]===_0x4de547[_0x24b471(0x194)]?_0x3171d0[_0x24b471(0x133)]:_0x3a611d?chromium[_0x24b471(0x133)]():undefined;return{'storageStatePath':_0x3a611d,'tempAuthPath':_0x53719c,'baseUrl':_0x42607e['baseUrl'],'headless':Boolean(_0x3171d0[_0x24b471(0x17a)]),'userDataDir':_0x3f1739,'browserProfilePath':_0x4a6f41,'executablePath':_0x51c81b,'launchArgs':Array[_0x24b471(0x1a7)](_0x3171d0[_0x24b471(0x163)])?_0x3171d0['args'][_0x24b471(0x190)](_0x481e5f=>typeof _0x481e5f===_0x24b471(0x139)):[],'userAgent':typeof _0x2b8a10['userAgent']===_0x4de547[_0x24b471(0x194)]?_0x2b8a10[_0x24b471(0x176)]:undefined,'extraHTTPHeaders':_0x2b8a10['extraHTTPHeaders'],'allowInsecureLocalhost':_0x4de547[_0x24b471(0x17c)](Boolean,_0x42607e['allowInsecureLocalhost']),'safeMode':Boolean(_0x42607e['safeMode']),'cdpEndpoint':_0x42607e['cdpEndpoint'],'isCdpMode':_0x4de547[_0x24b471(0x18e)](Boolean,_0x42607e[_0x24b471(0x135)])};}export function getNestedValue(_0x36b321,_0x4e801b){const _0x499867={'bSCqO':function(_0x224730,_0x5e8566){return _0x224730===_0x5e8566;},'Whudn':'object'},_0x13e703=parseKeyPath(_0x4e801b);let _0x2aa496=_0x36b321;for(const _0x3f3374 of _0x13e703){if(_0x2aa496===null||_0x499867['bSCqO'](_0x2aa496,undefined)||typeof _0x2aa496!==_0x499867['Whudn'])return undefined;_0x2aa496=_0x2aa496[_0x3f3374];}return _0x2aa496;}export function setNestedValue(_0x561d7a,_0x1e4afc,_0x2b492b){const _0x2f0bd5=_0xb0189d,_0x7680cc={'WmDHM':function(_0x312d9b,_0x2bb114){return _0x312d9b(_0x2bb114);},'aKZoQ':function(_0x5443e6,_0x1fcc63){return _0x5443e6 in _0x1fcc63;},'pAHnu':'object'},_0x4aa443=_0x7680cc[_0x2f0bd5(0x165)](parseKeyPath,_0x1e4afc);let _0x303fef=_0x561d7a;for(let _0x284092=0x0;_0x284092<_0x4aa443['length']-0x1;_0x284092++){const _0x4839c2=_0x4aa443[_0x284092];(!_0x7680cc['aKZoQ'](_0x4839c2,_0x303fef)||typeof _0x303fef[_0x4839c2]!==_0x7680cc['pAHnu'])&&(_0x303fef[_0x4839c2]={}),_0x303fef=_0x303fef[_0x4839c2];}_0x303fef[_0x4aa443[_0x4aa443['length']-0x1]]=_0x2b492b;}export function deleteNestedValue(_0x183f9c,_0x271d88){const _0x48c53=_0xb0189d,_0x18c864={'XSbWH':function(_0x1151e7,_0x4b573f){return _0x1151e7(_0x4b573f);},'aUkXc':function(_0x125eb0,_0x3770d9){return _0x125eb0===_0x3770d9;},'GHOxq':_0x48c53(0x150),'cTEVJ':function(_0x556831,_0x5cc0b9){return _0x556831===_0x5cc0b9;},'bxJIb':function(_0x1bebe6,_0x1afcfa){return _0x1bebe6-_0x1afcfa;},'XOXxm':function(_0x630fb8,_0xa2db34){return _0x630fb8 in _0xa2db34;}},_0x23dc77=_0x18c864[_0x48c53(0x1a0)](parseKeyPath,_0x271d88);let _0x425fd4=_0x183f9c;for(let _0x13f573=0x0;_0x13f573<_0x23dc77[_0x48c53(0x192)]-0x1;_0x13f573++){if(_0x18c864[_0x48c53(0x169)](_0x425fd4,null)||_0x425fd4===undefined||typeof _0x425fd4!==_0x18c864['GHOxq'])return![];_0x425fd4=_0x425fd4[_0x23dc77[_0x13f573]];}if(_0x18c864['aUkXc'](_0x425fd4,null)||_0x18c864['cTEVJ'](_0x425fd4,undefined)||typeof _0x425fd4!==_0x48c53(0x150))return![];const _0x5764a1=_0x23dc77[_0x18c864['bxJIb'](_0x23dc77[_0x48c53(0x192)],0x1)];if(_0x18c864['XOXxm'](_0x5764a1,_0x425fd4))return delete _0x425fd4[_0x5764a1],!![];return![];}function parseKeyPath(_0x7a76d3){const _0x22e6ff=_0xb0189d,_0x2318df={'yQzFY':'setupHeader'},_0xa4ef56=_0x7a76d3['split']('.');return _0xa4ef56[0x0]==='header'&&(_0xa4ef56[0x0]=_0x22e6ff(0x18a)),_0xa4ef56[0x0]===_0x2318df[_0x22e6ff(0x180)]&&(_0xa4ef56[0x0]='setupHeaders'),_0xa4ef56;}export function formatSettings(_0x20ee86,_0x5696d7=0x0){const _0x3c840f=_0xb0189d,_0x314273=[],_0x3de6ef='\x20\x20'[_0x3c840f(0x131)](_0x5696d7);for(const [_0x33f5f3,_0x441346]of Object[_0x3c840f(0x13e)](_0x20ee86)){if(_0x441346===undefined)continue;if(typeof _0x441346===_0x3c840f(0x150)&&_0x441346!==null){_0x314273['push'](''+_0x3de6ef+_0x33f5f3+':');for(const [_0x2a896f,_0x4b2a11]of Object[_0x3c840f(0x13e)](_0x441346)){_0x314273['push'](_0x3de6ef+'\x20\x20'+_0x2a896f+':\x20'+_0x4b2a11);}}else _0x314273['push'](''+_0x3de6ef+_0x33f5f3+':\x20'+_0x441346);}return _0x314273['join']('\x0a');}
1
+ const _0xf34d34=_0x46d7;(function(_0x3430f1,_0x1073e5){const _0x15d959=_0x46d7,_0x33b022=_0x3430f1();while(!![]){try{const _0x58ca6b=parseInt(_0x15d959(0x188))/0x1*(-parseInt(_0x15d959(0x198))/0x2)+parseInt(_0x15d959(0x190))/0x3*(parseInt(_0x15d959(0x166))/0x4)+-parseInt(_0x15d959(0x1bb))/0x5+parseInt(_0x15d959(0x180))/0x6+parseInt(_0x15d959(0x1af))/0x7*(-parseInt(_0x15d959(0x164))/0x8)+parseInt(_0x15d959(0x1be))/0x9*(parseInt(_0x15d959(0x17d))/0xa)+parseInt(_0x15d959(0x1b0))/0xb*(parseInt(_0x15d959(0x1a5))/0xc);if(_0x58ca6b===_0x1073e5)break;else _0x33b022['push'](_0x33b022['shift']());}catch(_0x372f7b){_0x33b022['push'](_0x33b022['shift']());}}}(_0x3529,0x5b4a0));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';function _0x46d7(_0x2542d2,_0xd075b){_0x2542d2=_0x2542d2-0x150;const _0x3529d3=_0x3529();let _0x46d7f2=_0x3529d3[_0x2542d2];return _0x46d7f2;}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1c8736,_0x34867a){const _0x7d4c44=_0x46d7,_0x36d3ba={'UAAKn':function(_0x49699b,_0x49d2c4,_0x37285e,_0x511879){return _0x49699b(_0x49d2c4,_0x37285e,_0x511879);},'xwklg':_0x7d4c44(0x172),'lnJel':function(_0x2d0ddc,_0x499d35){return _0x2d0ddc(_0x499d35);},'vflkR':function(_0x1e101d,_0x3e6019){return _0x1e101d!==_0x3e6019;}},_0x2289b3=_0x36d3ba['UAAKn'](join,_0x34867a,'ci',_0x1c8736),_0x3ade84=_0x36d3ba['UAAKn'](join,_0x34867a,_0x36d3ba[_0x7d4c44(0x16f)],_0x1c8736),_0x497524=join(_0x34867a,_0x1c8736),_0x2fbf23=join(_0x34867a,_0x36d3ba[_0x7d4c44(0x16f)]),_0x2afe1c=join(_0x34867a,'ci');if(_0x36d3ba[_0x7d4c44(0x1c3)](existsSync,_0x2289b3))return _0x2289b3;if(existsSync(_0x3ade84))return _0x3ade84;if(existsSync(_0x497524)&&(_0x36d3ba[_0x7d4c44(0x1ba)](_0x497524,_0x2fbf23)&&_0x497524!==_0x2afe1c?!![]:hasLegacyProfileFiles(_0x497524)))return _0x497524;return null;}export function getEnvDir(_0x341337,_0x35546c={}){const _0x3b14be=_0x46d7,_0x455e77={'xjYgU':function(_0x33cfe5,_0x303fe0,_0x5d87bf){return _0x33cfe5(_0x303fe0,_0x5d87bf);},'Ztzhb':function(_0x597c67,_0x57b23c,_0x4bd9a2){return _0x597c67(_0x57b23c,_0x4bd9a2);},'xZCup':function(_0x55a4cd,_0x40e388,_0x26fc6a,_0x28ce1a){return _0x55a4cd(_0x40e388,_0x26fc6a,_0x28ce1a);},'dpXnE':function(_0x32131,_0x2d1727,_0x389b93){return _0x32131(_0x2d1727,_0x389b93);}},_0x26dd02=getRangerDir(),_0xe1c09c=findEnvInRoot(_0x341337,_0x26dd02);if(_0xe1c09c){if(_0x35546c['forWrite']&&isLegacyEnvPath(_0xe1c09c))throw _0x455e77['xjYgU'](legacyWriteError,_0x341337,_0xe1c09c);return _0xe1c09c;}const _0x1f23c0=getRangerHomeDir();if(_0x1f23c0!==_0x26dd02){const _0xfbd3fd=_0x455e77[_0x3b14be(0x17b)](findEnvInRoot,_0x341337,_0x1f23c0);if(_0xfbd3fd){if(_0x35546c[_0x3b14be(0x15a)]&&isLegacyEnvPath(_0xfbd3fd))throw legacyWriteError(_0x341337,_0xfbd3fd);return _0xfbd3fd;}}const _0x13777a=_0x455e77[_0x3b14be(0x197)](join,_0x1f23c0,'local',_0x341337);if(_0x35546c[_0x3b14be(0x15a)])throw _0x455e77[_0x3b14be(0x1b7)](legacyWriteError,_0x341337,_0x13777a);return _0x13777a;}function isLegacyEnvPath(_0x3e1c36){const _0x5615af=_0x46d7,_0xd1b5b0={'gNgzc':function(_0x15c862){return _0x15c862();},'hYDqq':function(_0x2f2819){return _0x2f2819();},'yaocm':function(_0x17cdbd,_0x1fec78){return _0x17cdbd+_0x1fec78;},'oOoll':function(_0x52c164,_0x5ed8e8){return _0x52c164===_0x5ed8e8;}},_0x227b9b=_0xd1b5b0['gNgzc'](getRangerDir),_0x2b0218=_0xd1b5b0[_0x5615af(0x1b4)](getRangerHomeDir);for(const _0x299fb4 of new Set([_0x227b9b,_0x2b0218])){const _0x346b28=_0x299fb4[_0x5615af(0x193)]('/')?_0x299fb4:_0xd1b5b0[_0x5615af(0x173)](_0x299fb4,'/');if(_0xd1b5b0['oOoll'](_0x3e1c36,_0x299fb4)||_0x3e1c36['startsWith'](_0x346b28))return!![];}return![];}function legacyWriteError(_0x5235af,_0x26f6cd){const _0x3acdea=_0x46d7,_0x23058d={'mrRWk':function(_0x55c3a5,_0x24c22e){return _0x55c3a5+_0x24c22e;}};return new Error(_0x23058d['mrRWk'](_0x23058d[_0x3acdea(0x19d)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x5235af+'\x22\x20to\x20legacy\x20path\x20'+_0x26f6cd+'.\x0a'+_0x3acdea(0x1c9),_0x3acdea(0x163)),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x2cb62d,_0x45e7eb){const _0x40c659=_0x46d7,_0x4ad79b={'KXUQI':function(_0x7181f3){return _0x7181f3();},'rCqXC':function(_0x5bd360,_0x1825d1,_0x42d601){return _0x5bd360(_0x1825d1,_0x42d601);},'VIlcg':function(_0x39515,_0x4da1d1,_0x13e7e4,_0x32e7f2){return _0x39515(_0x4da1d1,_0x13e7e4,_0x32e7f2);},'Kqezo':'local','TrMwk':function(_0x426a04,_0x449754){return _0x426a04(_0x449754);},'fgitw':function(_0x3821d7,_0x420e9b){return _0x3821d7===_0x420e9b;},'cWExp':function(_0x4ba8fb,_0x2bdef8){return _0x4ba8fb===_0x2bdef8;}},_0x514b90=_0x45e7eb?.[_0x40c659(0x15b)],_0x1be42d=_0x514b90?[_0x514b90]:[getRangerDir(),_0x4ad79b['KXUQI'](getRangerHomeDir)]['filter']((_0x7e7af4,_0x4d7d0f,_0xdce395)=>_0xdce395['indexOf'](_0x7e7af4)===_0x4d7d0f),_0x3572d1=_0x45e7eb?.[_0x40c659(0x1d1)]??['ci','local',_0x40c659(0x1a7)];for(const _0x3f4dad of _0x1be42d){const _0x121693=join(_0x3f4dad,_0x40c659(0x172)),_0x40d71c=_0x4ad79b['rCqXC'](join,_0x3f4dad,'ci'),_0x43cfe8=[{'location':'ci','path':join(_0x3f4dad,'ci',_0x2cb62d)},{'location':_0x40c659(0x172),'path':_0x4ad79b['VIlcg'](join,_0x3f4dad,_0x4ad79b[_0x40c659(0x167)],_0x2cb62d)},{'location':'legacy','path':_0x4ad79b[_0x40c659(0x1b2)](join,_0x3f4dad,_0x2cb62d)}];for(const _0x34505c of _0x43cfe8){if(_0x3572d1[_0x40c659(0x1c2)](_0x34505c[_0x40c659(0x17c)])&&_0x4ad79b[_0x40c659(0x1a6)](existsSync,_0x34505c['path'])){if(_0x4ad79b['fgitw'](_0x34505c[_0x40c659(0x17c)],'legacy')&&(_0x34505c['path']===_0x121693||_0x4ad79b['cWExp'](_0x34505c['path'],_0x40d71c))&&!hasLegacyProfileFiles(_0x34505c[_0x40c659(0x15d)]))continue;return{'path':_0x34505c['path'],'location':_0x34505c[_0x40c659(0x17c)]};}}}return null;}function hasLegacyProfileFiles(_0x5a9cd0){const _0x9c51f9=_0x46d7,_0xaf79ee={'oiRFD':function(_0x3f09e1,_0x1f98da,_0x174f12){return _0x3f09e1(_0x1f98da,_0x174f12);},'RgWFp':'settings.json','UAHsE':function(_0x4c8c05,_0x529f60){return _0x4c8c05(_0x529f60);}};return existsSync(_0xaf79ee[_0x9c51f9(0x15f)](join,_0x5a9cd0,_0xaf79ee[_0x9c51f9(0x183)]))||_0xaf79ee['UAHsE'](existsSync,join(_0x5a9cd0,_0x9c51f9(0x18f)))||_0xaf79ee[_0x9c51f9(0x153)](existsSync,join(_0x5a9cd0,'auth.json.enc'));}export function isEnvCi(_0x213d31){const _0x4eca87=_0x46d7,_0x32dfac={'RRIfv':function(_0x417d83,_0x12c43f){return _0x417d83(_0x12c43f);},'Dguds':function(_0x58717a,_0x4c93c8){return _0x58717a!==_0x4c93c8;},'pYlyr':function(_0x49c706){return _0x49c706();},'TBByS':function(_0x97623d,_0x507af6,_0x34644e,_0x5c0c13){return _0x97623d(_0x507af6,_0x34644e,_0x5c0c13);}};if(_0x32dfac['RRIfv'](existsSync,join(getRangerDir(),'ci',_0x213d31)))return!![];const _0x498f04=getRangerHomeDir();if(_0x32dfac['Dguds'](_0x498f04,_0x32dfac['pYlyr'](getRangerDir))&&_0x32dfac[_0x4eca87(0x15e)](existsSync,_0x32dfac['TBByS'](join,_0x498f04,'ci',_0x213d31)))return!![];return![];}export async function cleanupTempFiles(_0x1dcbd2){const _0x34c1fd={'ObBts':'ENOENT'},_0xbd870=[_0x1dcbd2['tempAuthPath'],_0x1dcbd2['configPath']]['filter'](Boolean);await Promise['all'](_0xbd870['map'](_0x2904a0=>unlink(_0x2904a0)['catch'](_0x3c1840=>{const _0x69e21f=_0x46d7;_0x3c1840['code']!==_0x34c1fd['ObBts']&&console['warn'](_0x69e21f(0x1a8)+_0x2904a0+':',_0x3c1840['message']);})));}export function getSettingsPath(_0x1cc439){const _0x50d842=_0x46d7,_0x4622ec={'bUArb':function(_0x5dc92a,_0x4b8c1c,_0x519cf0){return _0x5dc92a(_0x4b8c1c,_0x519cf0);}};return _0x4622ec[_0x50d842(0x1cb)](join,getEnvDir(_0x1cc439),_0x50d842(0x1ac));}export async function loadSettings(_0xe3e8b7){const _0x404e63=_0x46d7,_0x3dea9f={'yAzmW':function(_0x26751e,_0x14e4f6){return _0x26751e(_0x14e4f6);},'hyXFp':_0x404e63(0x16c)},_0x46bc96=_0x3dea9f['yAzmW'](getSettingsPath,_0xe3e8b7);if(!_0x3dea9f['yAzmW'](existsSync,_0x46bc96))return{};try{const _0x3f86a8=await readFile(_0x46bc96,_0x3dea9f['hyXFp']);return JSON[_0x404e63(0x156)](_0x3f86a8);}catch{return{};}}export async function saveSettings(_0x37c486,_0x1dd853){const _0x43168d=_0x46d7,_0x11d938={'BKUuq':function(_0x2f16c9,_0x58bca5){return _0x2f16c9(_0x58bca5);},'tNeBp':function(_0xecb708,_0x434374,_0x1f95f2){return _0xecb708(_0x434374,_0x1f95f2);},'FscLM':function(_0x3a009f,_0x5ad76b,_0x62d47f){return _0x3a009f(_0x5ad76b,_0x62d47f);}},_0x2fa04d=_0x11d938['BKUuq'](getSettingsPath,_0x37c486),_0x1075af=dirname(_0x2fa04d);!existsSync(_0x1075af)&&await _0x11d938[_0x43168d(0x1c5)](mkdir,_0x1075af,{'recursive':!![]}),await _0x11d938[_0x43168d(0x1a4)](writeFile,_0x2fa04d,JSON['stringify'](_0x1dd853,null,0x2));}export function resolveEnvVars(_0xbc834){const _0x2773f8=_0x46d7,_0x342bd0={'IQBAM':'string','zHgXC':function(_0x23435d,_0x54da33){return _0x23435d===_0x54da33;},'eXVxO':'object'};if(typeof _0xbc834===_0x342bd0[_0x2773f8(0x176)])return _0xbc834[_0x2773f8(0x179)](/\$\{(\w+)\}/g,(_0x111c49,_0x34800d)=>{const _0x269e20=_0x2773f8,_0x6ed03f=process['env'][_0x34800d];if(_0x6ed03f===undefined)throw new Error(_0x269e20(0x1a0)+_0x34800d+_0x269e20(0x1ad));return _0x6ed03f;});if(Array[_0x2773f8(0x194)](_0xbc834))return _0xbc834['map'](resolveEnvVars);if(_0xbc834&&_0x342bd0['zHgXC'](typeof _0xbc834,_0x342bd0[_0x2773f8(0x1b6)]))return Object[_0x2773f8(0x16b)](Object['entries'](_0xbc834)['map'](([_0x5c320c,_0x3f792a])=>[_0x5c320c,resolveEnvVars(_0x3f792a)]));return _0xbc834;}const isRecord=_0x101af5=>typeof _0x101af5==='object'&&_0x101af5!==null&&!Array['isArray'](_0x101af5),asRecord=_0x509360=>isRecord(_0x509360)?_0x509360:undefined,mergeHeaders=(_0x4c8e59,_0x385cac)=>{const _0x3c43ee=_0x46d7,_0x5ab69e={'FXOwz':function(_0x46e805,_0xe6d12e){return _0x46e805??_0xe6d12e;},'CNFIb':function(_0x55c29a,_0x2ace47){return _0x55c29a??_0x2ace47;}},_0x18bc2d={..._0x5ab69e[_0x3c43ee(0x157)](_0x4c8e59,{}),..._0x5ab69e['CNFIb'](_0x385cac,{})};return Object[_0x3c43ee(0x1c4)](_0x18bc2d)['length']?_0x18bc2d:undefined;},SAFE_MODE_ARGS=[_0xf34d34(0x1b5)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0xf34d34(0x186),_0xf34d34(0x19b),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x3fecc4,_0x31d375={}){const _0x5bee1a=_0xf34d34,_0xe278fc={'ZZgJm':function(_0x1da93c,_0x351dc6){return _0x1da93c===_0x351dc6;},'aZoeH':function(_0x34b0aa,_0x1635b0){return _0x34b0aa(_0x1635b0);},'symvZ':function(_0x3cd9c5,_0x2bf178){return _0x3cd9c5===_0x2bf178;},'JJqcQ':function(_0x51d7de,_0xc9e7f1,_0x2d7fcd){return _0x51d7de(_0xc9e7f1,_0x2d7fcd);}},_0x464350=asRecord(_0x3fecc4['browser']),_0x312ab2={...asRecord(_0x464350?.[_0x5bee1a(0x19f)])??{}};_0xe278fc[_0x5bee1a(0x1c0)](typeof _0x31d375[_0x5bee1a(0x189)],'boolean')&&(_0x312ab2['headless']=_0x31d375['headless']);if(_0x3fecc4['safeMode']){const _0x25b10b=_0x312ab2['args']??[],_0x4a2246=SAFE_MODE_ARGS[_0x5bee1a(0x17e)](_0x3449a1=>!_0x25b10b[_0x5bee1a(0x1c2)](_0x3449a1));_0x312ab2['args']=[..._0x25b10b,..._0x4a2246];}if(_0x3fecc4[_0x5bee1a(0x1d3)]){const _0x13ee2b=_0x312ab2[_0x5bee1a(0x1d5)]??[],_0x27323e=ALLOW_LOCALHOST_ARGS['filter'](_0x118c4c=>!_0x13ee2b['includes'](_0x118c4c));_0x312ab2['args']=[..._0x13ee2b,..._0x27323e];}const _0x197a30={..._0xe278fc[_0x5bee1a(0x16d)](asRecord,_0x464350?.['contextOptions'])??{}};_0x197a30[_0x5bee1a(0x161)]=!![];_0xe278fc[_0x5bee1a(0x18d)](typeof _0x3fecc4['userAgent'],_0x5bee1a(0x17f))&&(_0x197a30['userAgent']=_0x3fecc4['userAgent']);const _0x2769d9=_0xe278fc[_0x5bee1a(0x19e)](mergeHeaders,asRecord(_0x197a30['extraHTTPHeaders']),asRecord(_0x3fecc4[_0x5bee1a(0x1c7)]));return _0x2769d9?_0x197a30['extraHTTPHeaders']=_0x2769d9:delete _0x197a30['extraHTTPHeaders'],_0x31d375['storageStatePath']&&(_0x197a30[_0x5bee1a(0x154)]=_0x31d375[_0x5bee1a(0x1bc)]),{'launchOptions':_0x312ab2,'contextOptions':_0x197a30};}export async function resolveProfileStorageState(_0x151267){const _0x5da18d=_0xf34d34,_0x55e711={'YIpJI':function(_0x5388dc,_0x3ff53d){return _0x5388dc(_0x3ff53d);}};return _0x55e711[_0x5da18d(0x175)](resolveLocalAuthPath,getEnvDir(_0x151267));}async function resolveLocalAuthPath(_0x71a4f2){const _0x30987a=_0xf34d34,_0x302c71={'stedS':'auth.json.enc','HwtGQ':_0x30987a(0x18f),'jETQJ':function(_0x59ae81,_0x9090d3){return _0x59ae81(_0x9090d3);},'ScYPt':function(_0x15a611){return _0x15a611();},'aWUso':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','WiGAz':function(_0x52913b,_0x44a61a,_0x4c4e85){return _0x52913b(_0x44a61a,_0x4c4e85);},'zJNsm':function(_0x78c12e,_0x12b010,_0x8c8e94){return _0x78c12e(_0x12b010,_0x8c8e94);},'FNkRB':function(_0x4f927d,_0x5f2532){return _0x4f927d instanceof _0x5f2532;}},_0x1cc68e=join(_0x71a4f2,_0x302c71['stedS']),_0x24155d=join(_0x71a4f2,_0x302c71['HwtGQ']);if(_0x302c71[_0x30987a(0x185)](existsSync,_0x1cc68e))try{const _0x56f292=await _0x302c71[_0x30987a(0x1a1)](getToken);if(!_0x56f292)throw new Error(_0x302c71['aWUso']);const _0x28e77c=await readFile(_0x1cc68e),_0x10de71=_0x302c71['WiGAz'](decrypt,_0x28e77c,_0x56f292),_0x2cc2f4=_0x302c71['zJNsm'](join,tmpdir(),_0x30987a(0x17a)+Date['now']()+_0x30987a(0x191));return await _0x302c71['zJNsm'](writeFile,_0x2cc2f4,_0x10de71),{'storageStatePath':_0x2cc2f4,'tempAuthPath':_0x2cc2f4};}catch(_0x144b11){const _0x559a33=_0x302c71[_0x30987a(0x1d2)](_0x144b11,Error)?_0x144b11[_0x30987a(0x1d6)]:String(_0x144b11);throw new Error(_0x30987a(0x178)+_0x559a33);}if(existsSync(_0x24155d))return{'storageStatePath':_0x24155d};return{};}export async function buildPlaywrightConfig(_0x3e91ac,_0x558b01,_0x5ca181,_0x4c2a8f,_0x21baca){const _0x398264=_0xf34d34,_0x496450={'GmTPf':function(_0xfdeb1c,_0x52d045,_0x3e35af,_0x461837,_0xac56e5,_0x3b1d5c,_0x5ab8c6){return _0xfdeb1c(_0x52d045,_0x3e35af,_0x461837,_0xac56e5,_0x3b1d5c,_0x5ab8c6);},'SmMlV':function(_0x51afe6,_0x1ebf95){return _0x51afe6(_0x1ebf95);},'DzNPw':_0x398264(0x19a)};if(_0x21baca)return _0x496450[_0x398264(0x1c6)](buildPlaywrightConfigCore,_0x3e91ac,_0x21baca,_0x558b01,_0x5ca181,_0x4c2a8f,_0x398264(0x19a));const {storageStatePath:_0x1193de,tempAuthPath:_0x49c156}=await resolveLocalAuthPath(_0x496450[_0x398264(0x15c)](getEnvDir,_0x558b01));try{const _0x4dd17d=await buildPlaywrightConfigCore(_0x3e91ac,_0x1193de,_0x558b01,_0x5ca181,_0x4c2a8f,_0x496450['DzNPw']);return{..._0x4dd17d,'tempAuthPath':_0x49c156};}catch(_0x43cc39){_0x49c156&&await _0x496450['SmMlV'](unlink,_0x49c156)['catch'](()=>{});throw _0x43cc39;}}export async function buildPlaywrightConfigCore(_0x307171,_0x27e892,_0x448359,_0x31a1b9,_0x41deaf,_0x319e72='stagehand'){const _0x1136c5=_0xf34d34,_0xa174c9={'ksoTX':function(_0x5addee,_0x2f3b41,_0x2da32c){return _0x5addee(_0x2f3b41,_0x2da32c);},'iUVur':_0x1136c5(0x16e),'aejlQ':_0x1136c5(0x1ae),'MEzdG':_0x1136c5(0x165),'mvzaE':function(_0x4d12b5){return _0x4d12b5();},'NWwaG':function(_0x338f49,_0x1539c){return _0x338f49(_0x1539c);},'oTSxK':'playwright-cli','sPOOm':'file','oElpo':_0x1136c5(0x168),'SvGRi':'allow','npyXE':function(_0x11c655,_0x25c08c){return _0x11c655===_0x25c08c;},'UBMkS':function(_0x46030a,_0x1d7d64,_0x3c9825){return _0x46030a(_0x1d7d64,_0x3c9825);},'SIopN':_0x1136c5(0x1ab)},_0x2972c1=_0x31a1b9||_0xa174c9[_0x1136c5(0x199)](randomUUID),_0x4e5c7d=join(getRangerDir(),_0x1136c5(0x18b),_0x2972c1),_0x23939a=_0xa174c9['NWwaG'](Boolean,_0x307171['cdpEndpoint']),_0xabe753=_0x23939a?{'browserName':_0xa174c9[_0x1136c5(0x170)],'cdpEndpoint':_0x307171['cdpEndpoint']}:((()=>{const _0x47dbc7=_0x1136c5,{launchOptions:_0x5ad647,contextOptions:_0x5203bc}=_0xa174c9['ksoTX'](buildBrowserOptionsFromSettings,_0x307171,{'headless':_0x41deaf?![]:_0x307171[_0x47dbc7(0x189)]??!![],'storageStatePath':_0x27e892});if(process['getuid']?.()===0x0){const _0x30ee69=[_0xa174c9['iUVur'],'--disable-setuid-sandbox'],_0x3b3a05=_0x5ad647[_0x47dbc7(0x1d5)]??[],_0x138e1a=_0x30ee69['filter'](_0x884776=>!_0x3b3a05[_0x47dbc7(0x1c2)](_0x884776));_0x5ad647['args']=[..._0x3b3a05,..._0x138e1a];}return{'isolated':!![],'browserName':_0xa174c9['aejlQ'],'launchOptions':_0x5ad647,'contextOptions':{..._0x5203bc,'permissions':[_0x47dbc7(0x152),_0xa174c9['MEzdG']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x166c41=_0x319e72===_0xa174c9[_0x1136c5(0x196)]?{'browser':_0xabe753,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4e5c7d,'outputMode':_0xa174c9['sPOOm'],'codegen':_0xa174c9['oElpo']}:{'name':_0x448359,'browser':_0xabe753,'capabilities':['core','tabs',_0x1136c5(0x169),'pdf',_0x1136c5(0x1ca)],'imageResponses':_0xa174c9['SvGRi'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4e5c7d};if(!_0x23939a){const _0x1a67b5=_0x166c41[_0x1136c5(0x177)],_0xdb975f=_0x1a67b5[_0x1136c5(0x155)];if(_0xa174c9['npyXE'](_0xdb975f['userAgent'],undefined))delete _0xdb975f['userAgent'];if(_0xdb975f['storageState']===undefined)delete _0xdb975f[_0x1136c5(0x154)];}const _0x16b08e=_0xa174c9[_0x1136c5(0x162)](join,tmpdir(),_0xa174c9[_0x1136c5(0x1c1)]);!existsSync(_0x16b08e)&&await mkdir(_0x16b08e,{'recursive':!![]});const _0x382f9a=_0x319e72===_0xa174c9['oTSxK']?'-cli':'',_0x2cb274=join(_0x16b08e,_0x448359+'-'+Date['now']()+_0x382f9a+_0x1136c5(0x191));return await writeFile(_0x2cb274,JSON[_0x1136c5(0x1bf)](_0x166c41,null,0x2)),{'configPath':_0x2cb274,'storageStatePath':_0x27e892};}export async function buildPlaywrightCliConfig(_0x44a74e,_0x1b9170,_0x4d34c2,_0x4b977b,_0x3e5203){const _0x4a6671=_0xf34d34,_0x1acfd5={'dabMI':function(_0x4fbec2,_0x39c191){return _0x4fbec2(_0x39c191);},'ExBvO':function(_0x4de965,_0x16c3a5){return _0x4de965(_0x16c3a5);},'whOsu':function(_0x16aa8c,_0xcf1cde,_0x5cce55,_0x41aa8c,_0x3a3b4f,_0x3c542f,_0x117b59){return _0x16aa8c(_0xcf1cde,_0x5cce55,_0x41aa8c,_0x3a3b4f,_0x3c542f,_0x117b59);},'SsBAj':_0x4a6671(0x19c)};if(_0x3e5203)return buildPlaywrightConfigCore(_0x44a74e,_0x3e5203,_0x1b9170,_0x4d34c2,_0x4b977b,'playwright-cli');const {storageStatePath:_0x3b72ba,tempAuthPath:_0x36738f}=await _0x1acfd5['dabMI'](resolveLocalAuthPath,_0x1acfd5['ExBvO'](getEnvDir,_0x1b9170));try{const _0x45f0b7=await _0x1acfd5[_0x4a6671(0x1b1)](buildPlaywrightConfigCore,_0x44a74e,_0x3b72ba,_0x1b9170,_0x4d34c2,_0x4b977b,_0x1acfd5[_0x4a6671(0x150)]);return{..._0x45f0b7,'tempAuthPath':_0x36738f};}catch(_0x4e1ca5){_0x36738f&&await unlink(_0x36738f)['catch'](()=>{});throw _0x4e1ca5;}}export async function buildRangerwrightCliConfig(_0x25691b,_0x4426f6,_0x523ec6,_0x51c727,_0x48d5bc){const _0x49e6e3=_0xf34d34,_0x60dc38={'IAFMn':'--no-sandbox','GLHxX':_0x49e6e3(0x174),'bFBdf':_0x49e6e3(0x165),'WHWSw':function(_0x328ee6,_0xb632bb,_0x145cf5,_0x5c9ed8){return _0x328ee6(_0xb632bb,_0x145cf5,_0x5c9ed8);},'XLrNy':function(_0x8f7fa5){return _0x8f7fa5();},'JUhDb':function(_0x198bdd,_0x499426){return _0x198bdd(_0x499426);},'gZDEA':function(_0x1032f8,_0x57d295){return _0x1032f8===_0x57d295;},'NJOQi':function(_0x4237a7,_0x196f97,_0x5b12b0){return _0x4237a7(_0x196f97,_0x5b12b0);},'dwdBR':function(_0x4b7706,_0x27a249){return _0x4b7706(_0x27a249);},'LHuFD':function(_0x1cce11,_0x117443,_0x6cfb2){return _0x1cce11(_0x117443,_0x6cfb2);}},{storageStatePath:_0x4950b1,tempAuthPath:_0x420a0b}=_0x48d5bc?{'storageStatePath':_0x48d5bc,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x4426f6)),_0x35ce3c=_0x523ec6||randomUUID(),_0x58e098=_0x60dc38['WHWSw'](join,_0x60dc38[_0x49e6e3(0x1b9)](getRangerDir),_0x49e6e3(0x18b),_0x35ce3c),_0x3a6957=_0x60dc38[_0x49e6e3(0x192)](Boolean,_0x25691b[_0x49e6e3(0x1d0)]),_0x21b43b=_0x3a6957?{'browserName':'chromium','cdpEndpoint':_0x25691b['cdpEndpoint']}:((()=>{const _0x53b8f5=_0x49e6e3,{launchOptions:_0x3dbdc0,contextOptions:_0x1c9ce1}=buildBrowserOptionsFromSettings(_0x25691b,{'headless':_0x51c727?![]:_0x25691b['headless']??!![],'storageStatePath':_0x4950b1});if(process[_0x53b8f5(0x18a)]?.()===0x0){const _0x96ded5=[_0x60dc38[_0x53b8f5(0x18c)],_0x60dc38[_0x53b8f5(0x1cd)]],_0x907212=_0x3dbdc0[_0x53b8f5(0x1d5)]??[],_0x392361=_0x96ded5['filter'](_0x1fe6f2=>!_0x907212[_0x53b8f5(0x1c2)](_0x1fe6f2));_0x3dbdc0[_0x53b8f5(0x1d5)]=[..._0x907212,..._0x392361];}return{'browserName':'chromium','launchOptions':_0x3dbdc0,'contextOptions':{..._0x1c9ce1,'permissions':[_0x53b8f5(0x152),_0x60dc38['bFBdf']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3a6957){const _0x2891da=_0x21b43b[_0x49e6e3(0x155)];if(_0x2891da){if(_0x60dc38['gZDEA'](_0x2891da['userAgent'],undefined))delete _0x2891da[_0x49e6e3(0x1d4)];if(_0x60dc38['gZDEA'](_0x2891da[_0x49e6e3(0x154)],undefined))delete _0x2891da['storageState'];}}const _0x36ad52={'browser':_0x21b43b,'outputDir':_0x58e098,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x2f1670;try{const _0x285650=_0x60dc38['NJOQi'](join,tmpdir(),_0x49e6e3(0x1ab));!_0x60dc38[_0x49e6e3(0x160)](existsSync,_0x285650)&&await mkdir(_0x285650,{'recursive':!![]}),_0x2f1670=_0x60dc38['NJOQi'](join,_0x285650,_0x4426f6+'-'+Date['now']()+'-rangerwright.json'),await _0x60dc38[_0x49e6e3(0x181)](writeFile,_0x2f1670,JSON['stringify'](_0x36ad52,null,0x2));}catch(_0x21214c){_0x420a0b&&await unlink(_0x420a0b)['catch'](()=>{});throw _0x21214c;}return{'configPath':_0x2f1670,'storageStatePath':_0x4950b1,'tempAuthPath':_0x420a0b,'outputDir':_0x58e098};}export async function buildNovaActCliConfig(_0x33885f,_0x453746,_0x236d99,_0x389542,_0x103f80){const _0x2930f7=_0xf34d34,_0x1acd79={'zwfuS':function(_0x31ef25,_0x57d351){return _0x31ef25(_0x57d351);},'xzDDI':function(_0x3d818f){return _0x3d818f();},'xQcDh':'sessions','rDQom':function(_0x47bb2e,_0x3e74ea,_0x2b0ba0){return _0x47bb2e(_0x3e74ea,_0x2b0ba0);},'JhBmG':_0x2930f7(0x16e),'AKOZm':_0x2930f7(0x174)},{storageStatePath:_0x143970,tempAuthPath:_0x2db542}=_0x103f80?{'storageStatePath':_0x103f80,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x1acd79[_0x2930f7(0x1ce)](getEnvDir,_0x453746)),_0x1f8d69=_0x236d99||_0x1acd79['xzDDI'](randomUUID),_0xda07=join(getRangerDir(),_0x1acd79[_0x2930f7(0x1cf)],_0x1f8d69),_0x2e736d=_0x1acd79[_0x2930f7(0x18e)](join,_0xda07,'nova-user-data'),_0xf0381b=_0x143970?_0x1acd79['rDQom'](join,_0x2e736d,'Default'):undefined,{launchOptions:_0x36f979,contextOptions:_0x5e8bae}=buildBrowserOptionsFromSettings(_0x33885f,{'headless':_0x389542?![]:_0x33885f[_0x2930f7(0x189)]??!![],'storageStatePath':_0x143970});if(process['getuid']?.()===0x0){const _0x181add=[_0x1acd79[_0x2930f7(0x1cc)],_0x1acd79['AKOZm']],_0x4be29a=_0x36f979['args']??[],_0x297143=_0x181add['filter'](_0x3eff81=>!_0x4be29a[_0x2930f7(0x1c2)](_0x3eff81));_0x36f979[_0x2930f7(0x1d5)]=[..._0x4be29a,..._0x297143];}const _0x193526=typeof _0x36f979[_0x2930f7(0x171)]===_0x2930f7(0x17f)?_0x36f979[_0x2930f7(0x171)]:_0x143970?chromium[_0x2930f7(0x171)]():undefined;return{'storageStatePath':_0x143970,'tempAuthPath':_0x2db542,'baseUrl':_0x33885f[_0x2930f7(0x1bd)],'headless':Boolean(_0x36f979[_0x2930f7(0x189)]),'userDataDir':_0x2e736d,'browserProfilePath':_0xf0381b,'executablePath':_0x193526,'launchArgs':Array[_0x2930f7(0x194)](_0x36f979['args'])?_0x36f979[_0x2930f7(0x1d5)][_0x2930f7(0x17e)](_0x5a439e=>typeof _0x5a439e===_0x2930f7(0x17f)):[],'userAgent':typeof _0x5e8bae[_0x2930f7(0x1d4)]===_0x2930f7(0x17f)?_0x5e8bae[_0x2930f7(0x1d4)]:undefined,'extraHTTPHeaders':_0x5e8bae[_0x2930f7(0x158)],'allowInsecureLocalhost':Boolean(_0x33885f[_0x2930f7(0x1d3)]),'safeMode':_0x1acd79['zwfuS'](Boolean,_0x33885f['safeMode']),'cdpEndpoint':_0x33885f[_0x2930f7(0x1d0)],'isCdpMode':_0x1acd79['zwfuS'](Boolean,_0x33885f['cdpEndpoint'])};}export function getNestedValue(_0x2dd85b,_0x23fa2a){const _0x3f3be2=_0xf34d34,_0x287cac={'eOfme':function(_0x360c30,_0x1714d8){return _0x360c30(_0x1714d8);},'ywoIj':function(_0x1ae16f,_0xa1fdc6){return _0x1ae16f===_0xa1fdc6;},'CtVIE':function(_0x4930a3,_0xb26da5){return _0x4930a3!==_0xb26da5;},'GCtsZ':_0x3f3be2(0x1aa)},_0x18ae6f=_0x287cac[_0x3f3be2(0x1a2)](parseKeyPath,_0x23fa2a);let _0x368e91=_0x2dd85b;for(const _0x4cc355 of _0x18ae6f){if(_0x287cac[_0x3f3be2(0x1a9)](_0x368e91,null)||_0x287cac['ywoIj'](_0x368e91,undefined)||_0x287cac[_0x3f3be2(0x195)](typeof _0x368e91,_0x287cac['GCtsZ']))return undefined;_0x368e91=_0x368e91[_0x4cc355];}return _0x368e91;}function _0x3529(){const _0x1caa9c=['install','push','fromEntries','utf-8','aZoeH','--no-sandbox','xwklg','aejlQ','executablePath','local','yaocm','--disable-setuid-sandbox','YIpJI','IQBAM','browser','Failed\x20to\x20decrypt\x20auth\x20state:\x20','replace','ranger-auth-','Ztzhb','location','80gizGPe','filter','string','2525922hZFECq','LHuFD','setupHeader','RgWFp','IsdHU','jETQJ','--allow-running-insecure-content','ApvyW','15567NzkfsX','headless','getuid','sessions','IAFMn','symvZ','rDQom','auth.json','3eygTHs','.json','JUhDb','endsWith','isArray','CtVIE','oTSxK','xZCup','92eoVJAG','mvzaE','stagehand','--unsafely-treat-insecure-origin-as-secure=http://localhost','playwright-cli','mrRWk','JJqcQ','launchOptions','Environment\x20variable\x20','ScYPt','eOfme','setupHeaders','FscLM','12oIvqsx','TrMwk','legacy','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','ywoIj','object','ranger-config','settings.json','\x20is\x20not\x20set','chromium','553CbqYaP','3023768efstMN','whOsu','rCqXC','length','hYDqq','--disable-features=WebBluetooth','eXVxO','dpXnE','IsQyc','XLrNy','vflkR','730965bcrhSp','storageStatePath','baseUrl','508374GpWXcP','stringify','ZZgJm','SIopN','includes','lnJel','keys','tNeBp','GmTPf','headers','pnNNs','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','vision','bUArb','JhBmG','GLHxX','zwfuS','xQcDh','cdpEndpoint','locations','FNkRB','allowInsecureLocalhost','userAgent','args','message','SsBAj','entries','clipboard-read','UAHsE','storageState','contextOptions','parse','FXOwz','extraHTTPHeaders','mmAgC','forWrite','rangerDir','SmMlV','path','RRIfv','oiRFD','dwdBR','ignoreHTTPSErrors','UBMkS','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','11448lmsvGq','clipboard-write','805924ItyZkO','Kqezo','none'];_0x3529=function(){return _0x1caa9c;};return _0x3529();}export function setNestedValue(_0x2a5052,_0x180152,_0x4df8f5){const _0x40c33f=_0xf34d34,_0x3e120e={'ApvyW':function(_0x19699b,_0x3fd36f){return _0x19699b-_0x3fd36f;},'PhEUe':function(_0x3b42b9,_0x3ac0a8){return _0x3b42b9 in _0x3ac0a8;}},_0x5810a1=parseKeyPath(_0x180152);let _0x40e069=_0x2a5052;for(let _0x3406f5=0x0;_0x3406f5<_0x3e120e[_0x40c33f(0x187)](_0x5810a1['length'],0x1);_0x3406f5++){const _0xb246aa=_0x5810a1[_0x3406f5];(!_0x3e120e['PhEUe'](_0xb246aa,_0x40e069)||typeof _0x40e069[_0xb246aa]!=='object')&&(_0x40e069[_0xb246aa]={}),_0x40e069=_0x40e069[_0xb246aa];}_0x40e069[_0x5810a1[_0x3e120e['ApvyW'](_0x5810a1[_0x40c33f(0x1b3)],0x1)]]=_0x4df8f5;}export function deleteNestedValue(_0x1a288a,_0x5b6c85){const _0x5e904f=_0xf34d34,_0x47e992={'HYtzW':function(_0x3ca907,_0x3dd475){return _0x3ca907(_0x3dd475);},'IsdHU':function(_0x428474,_0x2f3c99){return _0x428474 in _0x2f3c99;}},_0xe8135a=_0x47e992['HYtzW'](parseKeyPath,_0x5b6c85);let _0x3f10d3=_0x1a288a;for(let _0x423909=0x0;_0x423909<_0xe8135a[_0x5e904f(0x1b3)]-0x1;_0x423909++){if(_0x3f10d3===null||_0x3f10d3===undefined||typeof _0x3f10d3!=='object')return![];_0x3f10d3=_0x3f10d3[_0xe8135a[_0x423909]];}if(_0x3f10d3===null||_0x3f10d3===undefined||typeof _0x3f10d3!=='object')return![];const _0x572aac=_0xe8135a[_0xe8135a[_0x5e904f(0x1b3)]-0x1];if(_0x47e992[_0x5e904f(0x184)](_0x572aac,_0x3f10d3))return delete _0x3f10d3[_0x572aac],!![];return![];}function parseKeyPath(_0xc9a7d0){const _0x1b542a=_0xf34d34,_0x21e277={'IsQyc':function(_0x37495e,_0x56d000){return _0x37495e===_0x56d000;},'lDOSn':'header','pnNNs':_0x1b542a(0x1c7),'mmAgC':_0x1b542a(0x1a3)},_0x1ff62b=_0xc9a7d0['split']('.');return _0x21e277[_0x1b542a(0x1b8)](_0x1ff62b[0x0],_0x21e277['lDOSn'])&&(_0x1ff62b[0x0]=_0x21e277[_0x1b542a(0x1c8)]),_0x21e277[_0x1b542a(0x1b8)](_0x1ff62b[0x0],_0x1b542a(0x182))&&(_0x1ff62b[0x0]=_0x21e277[_0x1b542a(0x159)]),_0x1ff62b;}export function formatSettings(_0x3ea2de,_0x1b64bd=0x0){const _0x5240ae=_0xf34d34,_0x145e2c={'qGYkC':function(_0x92483,_0x4c4bba){return _0x92483===_0x4c4bba;},'RZSVQ':_0x5240ae(0x1aa),'GkbFE':function(_0x11256c,_0x5923c0){return _0x11256c!==_0x5923c0;}},_0x240350=[],_0xc7ff78='\x20\x20'['repeat'](_0x1b64bd);for(const [_0xc0a426,_0x1ba9fd]of Object[_0x5240ae(0x151)](_0x3ea2de)){if(_0x145e2c['qGYkC'](_0x1ba9fd,undefined))continue;if(_0x145e2c['qGYkC'](typeof _0x1ba9fd,_0x145e2c['RZSVQ'])&&_0x145e2c['GkbFE'](_0x1ba9fd,null)){_0x240350['push'](''+_0xc7ff78+_0xc0a426+':');for(const [_0xef60b5,_0x278dd2]of Object['entries'](_0x1ba9fd)){_0x240350['push'](_0xc7ff78+'\x20\x20'+_0xef60b5+':\x20'+_0x278dd2);}}else _0x240350[_0x5240ae(0x16a)](''+_0xc7ff78+_0xc0a426+':\x20'+_0x1ba9fd);}return _0x240350['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x21c21e,_0x17ea0c){const _0x1f259c=_0x4053,_0x36c3e7=_0x21c21e();while(!![]){try{const _0x4daeba=parseInt(_0x1f259c(0x183))/0x1+parseInt(_0x1f259c(0x187))/0x2*(parseInt(_0x1f259c(0x17d))/0x3)+parseInt(_0x1f259c(0x185))/0x4*(-parseInt(_0x1f259c(0x17b))/0x5)+parseInt(_0x1f259c(0x181))/0x6*(-parseInt(_0x1f259c(0x17f))/0x7)+-parseInt(_0x1f259c(0x184))/0x8*(-parseInt(_0x1f259c(0x17a))/0x9)+-parseInt(_0x1f259c(0x180))/0xa*(-parseInt(_0x1f259c(0x17e))/0xb)+-parseInt(_0x1f259c(0x189))/0xc;if(_0x4daeba===_0x17ea0c)break;else _0x36c3e7['push'](_0x36c3e7['shift']());}catch(_0x317092){_0x36c3e7['push'](_0x36c3e7['shift']());}}}(_0x2683,0xdc2e9));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4053(_0xc09344,_0x4ce9e3){_0xc09344=_0xc09344-0x17a;const _0x268357=_0x2683();let _0x405304=_0x268357[_0xc09344];return _0x405304;}function _0x2683(){const _0x571162=['4175043HNzqvG','40601YRDIgy','22596KWnszT','1510QuaiYA','714VXanNJ','skills','209026IHEztg','14294104eVJmRf','163288PwTBod','RQOKY','2HcgQhv','aQsYF','29946312BDmnkj','9GFoXev','20ExtsUs','FcKUn'];_0x2683=function(){return _0x571162;};return _0x2683();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1d6b33){const _0x27d0f9=_0x4053,_0x8abaae={'FcKUn':function(_0x473bfd,_0x2eddfc,_0x1edc72,_0x1ec5e7,_0x55eb9b){return _0x473bfd(_0x2eddfc,_0x1edc72,_0x1ec5e7,_0x55eb9b);},'aQsYF':_0x27d0f9(0x182),'RQOKY':function(_0x176ef5,_0xb8011b,_0x48d6a2){return _0x176ef5(_0xb8011b,_0x48d6a2);}},_0x4113f2=_0x8abaae[_0x27d0f9(0x17c)](join,__dirname,'..','..',_0x8abaae[_0x27d0f9(0x188)]),_0x9af3c1=join(_0x4113f2,_0x1d6b33);try{return _0x8abaae[_0x27d0f9(0x186)](readFileSync,_0x9af3c1,'utf-8');}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ (function(_0x3910ee,_0x389510){const _0x1affb1=_0x30d5,_0x35ac61=_0x3910ee();while(!![]){try{const _0x3b4dea=-parseInt(_0x1affb1(0x127))/0x1+-parseInt(_0x1affb1(0x12a))/0x2+-parseInt(_0x1affb1(0x12b))/0x3+-parseInt(_0x1affb1(0x126))/0x4+-parseInt(_0x1affb1(0x125))/0x5+parseInt(_0x1affb1(0x129))/0x6+parseInt(_0x1affb1(0x12d))/0x7*(parseInt(_0x1affb1(0x128))/0x8);if(_0x3b4dea===_0x389510)break;else _0x35ac61['push'](_0x35ac61['shift']());}catch(_0x343221){_0x35ac61['push'](_0x35ac61['shift']());}}}(_0x4171,0xe5c56));function _0x30d5(_0x32d30a,_0x4561be){_0x32d30a=_0x32d30a-0x125;const _0x4171b7=_0x4171();let _0x30d560=_0x4171b7[_0x32d30a];return _0x30d560;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x4171(){const _0x5339f7=['3680720DzsBnK','180603TtBCMf','2384ZygUBK','4455252aetqSs','2566982FsJlYi','5478717vwUJbQ','SRqyC','137823DksvhN','7291045ZYnfQw'];_0x4171=function(){return _0x5339f7;};return _0x4171();}export function readSkillContent(_0x3a585b){const _0x2ce79d=_0x30d5,_0x3d9ee7={'SRqyC':function(_0x49f88b,_0x45d663,_0x4c87d6){return _0x49f88b(_0x45d663,_0x4c87d6);},'OuGlj':'utf-8'},_0x2bef77=join(__dirname,'..','..','skills'),_0x82f372=join(_0x2bef77,_0x3a585b);try{return _0x3d9ee7[_0x2ce79d(0x12c)](readFileSync,_0x82f372,_0x3d9ee7['OuGlj']);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x3b308a=_0x2ef4;(function(_0x2a011c,_0x26362b){const _0x41e3e9=_0x2ef4,_0x18bc4c=_0x2a011c();while(!![]){try{const _0x59e563=-parseInt(_0x41e3e9(0xe4))/0x1*(parseInt(_0x41e3e9(0xd9))/0x2)+-parseInt(_0x41e3e9(0xee))/0x3+-parseInt(_0x41e3e9(0xcf))/0x4*(-parseInt(_0x41e3e9(0xd6))/0x5)+-parseInt(_0x41e3e9(0xde))/0x6+-parseInt(_0x41e3e9(0xd5))/0x7*(parseInt(_0x41e3e9(0xd7))/0x8)+-parseInt(_0x41e3e9(0xdd))/0x9+-parseInt(_0x41e3e9(0xd1))/0xa*(-parseInt(_0x41e3e9(0xf0))/0xb);if(_0x59e563===_0x26362b)break;else _0x18bc4c['push'](_0x18bc4c['shift']());}catch(_0x3b2446){_0x18bc4c['push'](_0x18bc4c['shift']());}}}(_0x5b99,0x2a273));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x5b99(){const _0x5260be=['log','feature-tracker','yfGKd','9332kRALGQ','pqYrg','.md','length','skills','wrOWn','Invalid\x20skill\x20frontmatter','e2e-test-recommender','eTGma','\x20\x20Removed\x20deprecated\x20skill:\x20','772662BFJHxZ','SKILL.md','11449878hWikQa','match','trim','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','project','join','rZmyf','1796MFKzSX','push','10WQcwAc','IEnPB','RYIfC','hHiLw','29554DQKETB','1195lqnpRY','512LaeAnK','\x20\x20Skill\x20not\x20found:\x20','44whKQlB','FUPcD','stbKJ','warn','831366POHwcS','900660rBjcOn','filter','utf-8'];_0x5b99=function(){return _0x5260be;};return _0x5b99();}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);export const RANGER_MANAGED_SKILLS=['ranger'];function _0x2ef4(_0x2c5d30,_0x5f14e6){_0x2c5d30=_0x2c5d30-0xcc;const _0x5b99ad=_0x5b99();let _0x2ef475=_0x5b99ad[_0x2c5d30];return _0x2ef475;}export const DEPRECATED_SKILLS=[_0x3b308a(0xeb),'bug-bash',_0x3b308a(0xe2)];export async function installSkill(_0x5f2bb1,_0xf5f540={}){const _0x14b2fb=_0x3b308a,_0x4af6fe={'zAPLm':_0x14b2fb(0xcc),'SMCjL':function(_0x5893f9){return _0x5893f9();},'RYdFX':function(_0x5ee586,_0x51f62a,_0x5b28d2){return _0x5ee586(_0x51f62a,_0x5b28d2);},'LvzVT':function(_0x3c49eb,_0x3fcb06,_0x45de93){return _0x3c49eb(_0x3fcb06,_0x45de93);},'pqYrg':function(_0x464dfb,_0x1bd0eb){return _0x464dfb(_0x1bd0eb);},'eTGma':_0x14b2fb(0xef),'rZmyf':function(_0x5e7314,_0x126252){return _0x5e7314(_0x126252);},'FUPcD':function(_0x738f6,_0x350b4a){return _0x738f6&&_0x350b4a;},'IEnPB':function(_0x1f2005,_0x28d5f4){return _0x1f2005===_0x28d5f4;},'yfGKd':'opencode','GIVys':function(_0x2b8689,_0x394ba5,_0x421eb6){return _0x2b8689(_0x394ba5,_0x421eb6);},'PrbiM':function(_0xbbc717,_0x6f97c8,_0x4dc104){return _0xbbc717(_0x6f97c8,_0x4dc104);},'stbKJ':function(_0x1a0893,_0x3e6107,_0x1ea40f){return _0x1a0893(_0x3e6107,_0x1ea40f);},'QpoYp':_0x14b2fb(0xe0),'RYIfC':function(_0x3cd781,_0x140ee3,_0x581762){return _0x3cd781(_0x140ee3,_0x581762);},'wrOWn':function(_0x1b8724,_0x590675,_0x5e9f07,_0x4901dc){return _0x1b8724(_0x590675,_0x5e9f07,_0x4901dc);}},{level:level=_0x4af6fe['zAPLm'],cliVersion:_0x584087,platform:platform='claude'}=_0xf5f540,_0x35c030=_0x4af6fe['SMCjL'](getSourceSkillsDir),_0x2a7f54=_0x4af6fe['RYdFX'](join,_0x35c030,_0x5f2bb1),_0x18adc2=_0x4af6fe['LvzVT'](join,_0x35c030,_0x5f2bb1+'.md'),_0x4e0fca=_0x4af6fe[_0x14b2fb(0xe5)](existsSync,_0x2a7f54)&&statSync(_0x2a7f54)['isDirectory']()&&_0x4af6fe[_0x14b2fb(0xe5)](existsSync,join(_0x2a7f54,_0x4af6fe[_0x14b2fb(0xec)])),_0x12262b=_0x4af6fe[_0x14b2fb(0xce)](existsSync,_0x18adc2);if(_0x4af6fe[_0x14b2fb(0xda)](!_0x4e0fca,!_0x12262b))return console['warn'](_0x14b2fb(0xd8)+_0x5f2bb1),![];const _0x2c542d=_0x4af6fe[_0x14b2fb(0xd2)](platform,_0x4af6fe[_0x14b2fb(0xe3)])?getOpencodeSkillsDir(level):_0x4af6fe[_0x14b2fb(0xce)](getSkillsDir,level),_0x435bff=join(_0x2c542d,_0x5f2bb1);await _0x4af6fe['GIVys'](mkdir,_0x435bff,{'recursive':!![]});let _0x25b12f,_0x3ad5bd=[];if(_0x4e0fca){const _0x436e99=await readdir(_0x2a7f54),_0x5ef419=_0x436e99[_0x14b2fb(0xdf)](_0x2b27dd=>_0x2b27dd['endsWith'](_0x14b2fb(0xe6)));for(const _0x56c5c4 of _0x5ef419){const _0x54e683=_0x4af6fe['PrbiM'](join,_0x2a7f54,_0x56c5c4),_0x1eb470=join(_0x435bff,_0x56c5c4);await copyFile(_0x54e683,_0x1eb470),_0x3ad5bd['push'](_0x56c5c4);}_0x25b12f=await _0x4af6fe[_0x14b2fb(0xdb)](readFile,_0x4af6fe['LvzVT'](join,_0x2a7f54,'SKILL.md'),_0x4af6fe['QpoYp']);}else{_0x25b12f=await _0x4af6fe[_0x14b2fb(0xd3)](readFile,_0x18adc2,'utf-8');const _0xac74b4=join(_0x435bff,_0x4af6fe['eTGma']);await _0x4af6fe[_0x14b2fb(0xe9)](writeFile,_0xac74b4,_0x25b12f,_0x4af6fe['QpoYp']),_0x3ad5bd[_0x14b2fb(0xd0)](_0x4af6fe['eTGma']);}const {name:_0x1d521c}=parseFrontmatter(_0x25b12f);return console[_0x14b2fb(0xe1)]('\x20\x20Installed\x20skill:\x20'+_0x1d521c),console['log']('\x20\x20Location:\x20'+_0x435bff),_0x3ad5bd[_0x14b2fb(0xe7)]>0x1&&console[_0x14b2fb(0xe1)]('\x20\x20Files:\x20'+_0x3ad5bd[_0x14b2fb(0xcd)](',\x20')),logLocalAgentInstallation(_0x5f2bb1,{'skillDisplayName':_0x1d521c,'installLevel':level},_0x584087)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0xcda6cc=_0x3b308a,_0x4dce02={'hHiLw':function(_0xd35b6c,_0x5576c7,_0x2302cf,_0x393e21,_0x305cd0){return _0xd35b6c(_0x5576c7,_0x2302cf,_0x393e21,_0x305cd0);}},_0x200b78=[_0x4dce02[_0xcda6cc(0xd4)](join,__dirname,'..','..',_0xcda6cc(0xe8)),join(__dirname,'..','..','..',_0xcda6cc(0xe8))];for(const _0x3cc0e0 of _0x200b78){if(existsSync(_0x3cc0e0))return _0x3cc0e0;}return _0x200b78[0x0];}function parseFrontmatter(_0x596caf){const _0x23e497=_0x3b308a,_0x3a9eda=_0x596caf[_0x23e497(0xf1)](/^---\n([\s\S]+?)\n---/);if(!_0x3a9eda)throw new Error(_0x23e497(0xea));const _0x4c30ce=_0x3a9eda[0x1],_0x5dbf8b=_0x4c30ce[_0x23e497(0xf1)](/name:\s*(.+)/),_0x426128=_0x4c30ce[_0x23e497(0xf1)](/description:\s*"?(.+?)"?\n/);return{'name':_0x5dbf8b?.[0x1][_0x23e497(0xf2)]()||'','description':_0x426128?.[0x1][_0x23e497(0xf2)]()||''};}export async function removeSkill(_0x4d8426,_0x4a4f40){const _0x551e8d=_0x3b308a,_0x626b5d=getSkillsDir(_0x4a4f40),_0x5240c3=join(_0x626b5d,_0x4d8426);if(!existsSync(_0x5240c3))return![];try{return await rm(_0x5240c3,{'recursive':!![]}),console[_0x551e8d(0xe1)](_0x551e8d(0xed)+_0x4d8426),!![];}catch{return console[_0x551e8d(0xdc)](_0x551e8d(0xf3)+_0x4d8426),![];}}
1
+ const _0x202a4f=_0x1e9c;(function(_0x282671,_0x22373a){const _0x5b0b0c=_0x1e9c,_0x2d1baa=_0x282671();while(!![]){try{const _0x2df3b1=-parseInt(_0x5b0b0c(0x103))/0x1*(-parseInt(_0x5b0b0c(0xeb))/0x2)+-parseInt(_0x5b0b0c(0xfc))/0x3+-parseInt(_0x5b0b0c(0x100))/0x4+-parseInt(_0x5b0b0c(0xef))/0x5+parseInt(_0x5b0b0c(0xec))/0x6+parseInt(_0x5b0b0c(0xfb))/0x7+parseInt(_0x5b0b0c(0xed))/0x8;if(_0x2df3b1===_0x22373a)break;else _0x2d1baa['push'](_0x2d1baa['shift']());}catch(_0x591bb9){_0x2d1baa['push'](_0x2d1baa['shift']());}}}(_0x39ba,0xb10cd));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x1e9c(_0x1bd4e6,_0x10178c){_0x1bd4e6=_0x1bd4e6-0xe9;const _0x39ba36=_0x39ba();let _0x1e9cfc=_0x39ba36[_0x1bd4e6];return _0x1e9cfc;}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);export const RANGER_MANAGED_SKILLS=[_0x202a4f(0xf7)];function _0x39ba(){const _0x19b63c=['3856321EpJshc','914778AcmXqg','push','cfdcH','QkdCW','4107284FAYUii','Invalid\x20skill\x20frontmatter','match','28484pjZZVY','jNOAv','feature-tracker','log','10slFmhJ','5235636EJLgwN','4155080ubQcEF','\x20\x20Installed\x20skill:\x20','141850ZKnLDc','length','warn','skills','cfgji','SKILL.md','MLvbB','KYyDE','ranger','lTcth','cdQAi','.md'];_0x39ba=function(){return _0x19b63c;};return _0x39ba();}export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x202a4f(0xe9)];export async function installSkill(_0xc14ae9,_0x752ebf={}){const _0x3a6872=_0x202a4f,_0x408a0f={'WbYHg':function(_0x15f0b8,_0x3e9a8e,_0x25d6ac){return _0x15f0b8(_0x3e9a8e,_0x25d6ac);},'cfdcH':function(_0x1db9e9,_0x211a20){return _0x1db9e9(_0x211a20);},'jNOAv':function(_0x524458,_0x127661){return _0x524458(_0x127661);},'MLvbB':function(_0x584fa4,_0x440500){return _0x584fa4===_0x440500;},'cdQAi':function(_0x2a8a27,_0x4b8080,_0x4cac7d){return _0x2a8a27(_0x4b8080,_0x4cac7d);},'WVBaG':function(_0x342c11,_0x58a591,_0x3b99fc){return _0x342c11(_0x58a591,_0x3b99fc);},'lTcth':function(_0x29a12f,_0x30de88,_0x503ed3){return _0x29a12f(_0x30de88,_0x503ed3);},'KYyDE':'utf-8','QkdCW':'SKILL.md','TPrXH':function(_0x3c8fd5,_0xba02a1,_0x553286,_0x4b42d7){return _0x3c8fd5(_0xba02a1,_0x553286,_0x4b42d7);}},{level:level='project',cliVersion:_0xcc8186,platform:platform='claude'}=_0x752ebf,_0x3918e3=getSourceSkillsDir(),_0x4f25e5=_0x408a0f['WbYHg'](join,_0x3918e3,_0xc14ae9),_0x4eb631=join(_0x3918e3,_0xc14ae9+_0x3a6872(0xfa)),_0x511230=existsSync(_0x4f25e5)&&statSync(_0x4f25e5)['isDirectory']()&&_0x408a0f[_0x3a6872(0xfe)](existsSync,_0x408a0f['WbYHg'](join,_0x4f25e5,'SKILL.md')),_0x1ed058=_0x408a0f[_0x3a6872(0x104)](existsSync,_0x4eb631);if(!_0x511230&&!_0x1ed058)return console[_0x3a6872(0xf1)]('\x20\x20Skill\x20not\x20found:\x20'+_0xc14ae9),![];const _0x2428d7=_0x408a0f[_0x3a6872(0xf5)](platform,'opencode')?_0x408a0f['jNOAv'](getOpencodeSkillsDir,level):_0x408a0f[_0x3a6872(0x104)](getSkillsDir,level),_0x575131=join(_0x2428d7,_0xc14ae9);await _0x408a0f[_0x3a6872(0xf9)](mkdir,_0x575131,{'recursive':!![]});let _0x55a076,_0x345e7e=[];if(_0x511230){const _0x139b7b=await _0x408a0f[_0x3a6872(0xfe)](readdir,_0x4f25e5),_0x31cfe6=_0x139b7b['filter'](_0x5c2c46=>_0x5c2c46['endsWith'](_0x3a6872(0xfa)));for(const _0x141844 of _0x31cfe6){const _0x558118=join(_0x4f25e5,_0x141844),_0x167dd3=_0x408a0f['WVBaG'](join,_0x575131,_0x141844);await copyFile(_0x558118,_0x167dd3),_0x345e7e[_0x3a6872(0xfd)](_0x141844);}_0x55a076=await readFile(_0x408a0f[_0x3a6872(0xf8)](join,_0x4f25e5,_0x3a6872(0xf4)),_0x408a0f[_0x3a6872(0xf6)]);}else{_0x55a076=await readFile(_0x4eb631,'utf-8');const _0x1cb1fb=join(_0x575131,_0x408a0f[_0x3a6872(0xff)]);await _0x408a0f['TPrXH'](writeFile,_0x1cb1fb,_0x55a076,'utf-8'),_0x345e7e['push'](_0x408a0f['QkdCW']);}const {name:_0x52f49e}=parseFrontmatter(_0x55a076);return console['log'](_0x3a6872(0xee)+_0x52f49e),console['log']('\x20\x20Location:\x20'+_0x575131),_0x345e7e[_0x3a6872(0xf0)]>0x1&&console[_0x3a6872(0xea)]('\x20\x20Files:\x20'+_0x345e7e['join'](',\x20')),logLocalAgentInstallation(_0xc14ae9,{'skillDisplayName':_0x52f49e,'installLevel':level},_0xcc8186)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x292ab2=_0x202a4f,_0x4b454c={'tsnej':function(_0x6a008,_0x1cf328,_0x2c9fcb,_0x21d373,_0x4cd39c,_0x29317c){return _0x6a008(_0x1cf328,_0x2c9fcb,_0x21d373,_0x4cd39c,_0x29317c);},'Afobn':function(_0x376b4f,_0x2453f5){return _0x376b4f(_0x2453f5);}},_0xad6655=[join(__dirname,'..','..',_0x292ab2(0xf2)),_0x4b454c['tsnej'](join,__dirname,'..','..','..',_0x292ab2(0xf2))];for(const _0x48108b of _0xad6655){if(_0x4b454c['Afobn'](existsSync,_0x48108b))return _0x48108b;}return _0xad6655[0x0];}function parseFrontmatter(_0x4e43d1){const _0x40f16d=_0x202a4f,_0xcb2d59=_0x4e43d1['match'](/^---\n([\s\S]+?)\n---/);if(!_0xcb2d59)throw new Error(_0x40f16d(0x101));const _0x476b8e=_0xcb2d59[0x1],_0x3fd014=_0x476b8e[_0x40f16d(0x102)](/name:\s*(.+)/),_0x138be1=_0x476b8e['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x3fd014?.[0x1]['trim']()||'','description':_0x138be1?.[0x1]['trim']()||''};}export async function removeSkill(_0x1fcd96,_0xeddd6b){const _0x11b8ef=_0x202a4f,_0x481a31={'zgfaE':function(_0x892a01,_0x5f1dba){return _0x892a01(_0x5f1dba);},'cfgji':function(_0x18d0e8,_0xeaa8bf,_0x568b11){return _0x18d0e8(_0xeaa8bf,_0x568b11);}},_0x58f11c=_0x481a31['zgfaE'](getSkillsDir,_0xeddd6b),_0x41b55c=join(_0x58f11c,_0x1fcd96);if(!existsSync(_0x41b55c))return![];try{return await _0x481a31[_0x11b8ef(0xf3)](rm,_0x41b55c,{'recursive':!![]}),console[_0x11b8ef(0xea)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x1fcd96),!![];}catch{return console[_0x11b8ef(0xf1)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1fcd96),![];}}
@@ -1 +1 @@
1
- const _0x38ff66=_0x417e;(function(_0x1e90e1,_0x294051){const _0x22b684=_0x417e,_0x59c5ea=_0x1e90e1();while(!![]){try{const _0x5da214=-parseInt(_0x22b684(0x133))/0x1+parseInt(_0x22b684(0x13b))/0x2*(parseInt(_0x22b684(0x105))/0x3)+parseInt(_0x22b684(0x107))/0x4+parseInt(_0x22b684(0x10f))/0x5*(parseInt(_0x22b684(0x134))/0x6)+-parseInt(_0x22b684(0x10e))/0x7*(-parseInt(_0x22b684(0x11b))/0x8)+parseInt(_0x22b684(0x123))/0x9+-parseInt(_0x22b684(0x11a))/0xa*(parseInt(_0x22b684(0x13d))/0xb);if(_0x5da214===_0x294051)break;else _0x59c5ea['push'](_0x59c5ea['shift']());}catch(_0x2c69fb){_0x59c5ea['push'](_0x59c5ea['shift']());}}}(_0x5957,0x9695a));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(_0x2c7a7d,_0x7ce01f){const _0x3d7d38=_0x417e,_0x584e73={'jPVCB':function(_0x49d7e9,_0x4adbbd){return _0x49d7e9>=_0x4adbbd;},'bLLeI':function(_0x499691,_0x5cb2fc){return _0x499691<=_0x5cb2fc;},'zEJPW':function(_0x514ad2,_0x480f4b){return _0x514ad2&_0x480f4b;},'mhQJi':function(_0x4c79c0,_0x1bb197){return _0x4c79c0+_0x1bb197;},'BxXAB':function(_0x58cd53,_0x5410fe){return _0x58cd53<_0x5410fe;},'TGTAm':function(_0x32facd,_0x2f16fd){return _0x32facd+_0x2f16fd;},'KRFwl':function(_0x5d9434,_0x4da1b9){return _0x5d9434*_0x4da1b9;}};if(_0x584e73['jPVCB'](_0x7ce01f,_0x2c7a7d['length']))return[0x0,0x0];const _0x2dadfd=_0x2c7a7d[_0x7ce01f];let _0x179869=0x1,_0x4490aa=0x80;while(_0x584e73[_0x3d7d38(0xf4)](_0x179869,0x8)&&!_0x584e73['zEJPW'](_0x2dadfd,_0x4490aa)){_0x179869++,_0x4490aa>>=0x1;}if(_0x584e73['mhQJi'](_0x7ce01f,_0x179869)>_0x2c7a7d[_0x3d7d38(0x121)])return[0x0,0x0];let _0x29a7f1=_0x584e73[_0x3d7d38(0x119)](_0x2dadfd,_0x4490aa-0x1);for(let _0x50fc53=0x1;_0x584e73['BxXAB'](_0x50fc53,_0x179869);_0x50fc53++){_0x29a7f1=_0x584e73[_0x3d7d38(0x13e)](_0x584e73[_0x3d7d38(0xfe)](_0x29a7f1,0x100),_0x2c7a7d[_0x7ce01f+_0x50fc53]);}return[_0x29a7f1,_0x179869];}function readId(_0x28a1bc,_0x18bcd6){const _0x486cf6=_0x417e,_0x430eee={'HYhuo':function(_0x40819c,_0x57dbf3){return _0x40819c>=_0x57dbf3;},'krftt':function(_0x5bb7b5,_0x5536e7){return _0x5bb7b5>=_0x5536e7;},'WLoOh':function(_0x917659,_0x5cfd18){return _0x917659>=_0x5cfd18;},'eeenu':function(_0xf1a865,_0x260de9){return _0xf1a865>_0x260de9;},'kPSGH':function(_0x465072,_0x555d8c){return _0x465072<_0x555d8c;},'Mofes':function(_0x534781,_0x42beac){return _0x534781*_0x42beac;}};if(_0x18bcd6>=_0x28a1bc[_0x486cf6(0x121)])return[0x0,0x0];const _0x2acfbc=_0x28a1bc[_0x18bcd6];let _0x1d8b5b;if(_0x430eee['HYhuo'](_0x2acfbc,0x80))_0x1d8b5b=0x1;else{if(_0x2acfbc>=0x40)_0x1d8b5b=0x2;else{if(_0x430eee[_0x486cf6(0x117)](_0x2acfbc,0x20))_0x1d8b5b=0x3;else{if(_0x430eee[_0x486cf6(0x136)](_0x2acfbc,0x10))_0x1d8b5b=0x4;else return[_0x2acfbc,0x1];}}}if(_0x430eee['eeenu'](_0x18bcd6+_0x1d8b5b,_0x28a1bc[_0x486cf6(0x121)]))return[0x0,0x0];let _0x1fcd9f=0x0;for(let _0x45b833=0x0;_0x430eee[_0x486cf6(0x106)](_0x45b833,_0x1d8b5b);_0x45b833++){_0x1fcd9f=_0x430eee[_0x486cf6(0x141)](_0x1fcd9f,0x100)+_0x28a1bc[_0x18bcd6+_0x45b833];}return[_0x1fcd9f,_0x1d8b5b];}function readUint(_0x469433,_0x515f04,_0x5d0bf0){const _0x17feb1=_0x417e,_0x2c2a84={'WSbni':function(_0x24887e,_0x4aa759){return _0x24887e<_0x4aa759;}};let _0x1b0676=0x0;for(let _0x1fefa6=0x0;_0x2c2a84[_0x17feb1(0xf5)](_0x1fefa6,_0x5d0bf0);_0x1fefa6++){_0x1b0676=_0x1b0676*0x100+_0x469433[_0x515f04+_0x1fefa6];}return _0x1b0676;}function isUnknownSize(_0x2a7872,_0x459f4d){const _0x1bf829=_0x417e,_0xb50645={'hmWpS':function(_0x3fc50b,_0xa5adec){return _0x3fc50b-_0xa5adec;},'XeBev':function(_0x53e1c6,_0x1be705){return _0x53e1c6*_0x1be705;}};return _0x2a7872===_0xb50645['hmWpS'](Math[_0x1bf829(0x12c)](0x2,_0xb50645['XeBev'](0x7,_0x459f4d)),0x1);}function writeVint(_0x5369f6,_0x39695c){const _0x438a2a=_0x417e,_0x713a0c={'cUTIV':function(_0x31d12a,_0x546d1b){return _0x31d12a<_0x546d1b;},'qfcAK':function(_0x44fbd9,_0x5b501c){return _0x44fbd9*_0x5b501c;},'PnBDE':function(_0x2cca83,_0x30f15e){return _0x2cca83-_0x30f15e;},'vttWv':function(_0x3d9528,_0x22b319){return _0x3d9528>=_0x22b319;},'vsVwB':function(_0x1d843a,_0x2a959b){return _0x1d843a&_0x2a959b;}};let _0x2fdff9=_0x39695c||0x1;while(_0x713a0c[_0x438a2a(0x127)](Math[_0x438a2a(0x12c)](0x2,_0x713a0c[_0x438a2a(0x143)](0x7,_0x2fdff9))-0x2,_0x5369f6))_0x2fdff9++;const _0x287ca3=Buffer['alloc'](_0x2fdff9);for(let _0x81ad8c=_0x713a0c['PnBDE'](_0x2fdff9,0x1);_0x713a0c['vttWv'](_0x81ad8c,0x0);_0x81ad8c--){_0x287ca3[_0x81ad8c]=_0x713a0c[_0x438a2a(0x128)](_0x5369f6,0xff),_0x5369f6=Math[_0x438a2a(0x125)](_0x5369f6/0x100);}return _0x287ca3[0x0]|=0x1<<0x8-_0x2fdff9,_0x287ca3;}function writeUint(_0xd5b0e9,_0x55d26d){const _0x2499b0=_0x417e,_0x478369={'xjSHd':function(_0x5c3f77,_0x488fca){return _0x5c3f77-_0x488fca;},'cPRYV':function(_0x389f47,_0xef8a97){return _0x389f47>=_0xef8a97;},'YgfUB':function(_0x230e2c,_0x509cfd){return _0x230e2c&_0x509cfd;},'RtbOb':function(_0x271546,_0x290893){return _0x271546/_0x290893;}},_0x299064=Buffer['alloc'](_0x55d26d);for(let _0x2b8a94=_0x478369[_0x2499b0(0x10d)](_0x55d26d,0x1);_0x478369[_0x2499b0(0x140)](_0x2b8a94,0x0);_0x2b8a94--){_0x299064[_0x2b8a94]=_0x478369['YgfUB'](_0xd5b0e9,0xff),_0xd5b0e9=Math['floor'](_0x478369[_0x2499b0(0x104)](_0xd5b0e9,0x100));}return _0x299064;}function _0x5957(){const _0xb3f57c=['2124004dimout','ncVCm','error','max','MDWUj','PxLcQ','xjSHd','7mtfkRe','310kRGVyD','sMhyD','Qsewe','iUbCL','YrLFP','stitchWebmFiles.ts','ioZEZ','hqkXy','krftt','qGFtU','zEJPW','1738160TMnDHu','3279176XvvlwC','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','NnWSL','from','stitchWebmFiles.js','ZlkwY','length','aYVNg','7745706oeZqXl','BceRY','floor','LlRqj','cUTIV','vsVwB','xnDfS','DHXtA','alloc','pow','push','maxTimestampTicks','log','slice','ALIdg','uEBCT','346779ifrpcS','96582tOEURu','WGiRz','WLoOh','YfMRk','cesHz','kwxPs','fuzkW','166546kEdldn','bodyAfterTimestamp','132sQRfWh','TGTAm','rgsZE','cPRYV','Mofes','clusters','qfcAK','ztsUU','concat','sVqxz','FWLEi','bLLeI','WSbni','WWUNu','KVfPb','endsWith','JlClN','PqqQJ','tRROp','maxTicks','PwIsp','KRFwl','copy','nhWAA','min','CHdcf','\x20files\x20->\x20','RtbOb','9gSznLJ','kPSGH'];_0x5957=function(){return _0xb3f57c;};return _0x5957();}function writeUnknownSizeVint(_0x29466b){const _0x389c22=_0x417e,_0x2b860c={'qGFtU':function(_0xc38ea7,_0x15cb80){return _0xc38ea7>>_0x15cb80;},'GMNfb':function(_0x5d4379,_0x19a85b){return _0x5d4379-_0x19a85b;}},_0x13a552=Buffer['alloc'](_0x29466b,0xff);return _0x13a552[0x0]=_0x2b860c[_0x389c22(0x118)](0xff,_0x2b860c['GMNfb'](_0x29466b,0x1)),_0x13a552;}function uintSize(_0x412914){const _0x19e786=_0x417e;if(_0x412914===0x0)return 0x1;let _0x29d957=0x0,_0x4a5f5e=_0x412914;while(_0x4a5f5e>0x0){_0x29d957++,_0x4a5f5e=Math[_0x19e786(0x125)](_0x4a5f5e/0x100);}return _0x29d957;}function findTimestampScale(_0xc37235,_0x23fa68){const _0x490351=_0x417e,_0x2212b0={'MDWUj':function(_0x4e888f,_0x35d431){return _0x4e888f+_0x35d431;},'ewyDe':function(_0x5325ed,_0x271eab,_0x4f79db){return _0x5325ed(_0x271eab,_0x4f79db);},'Qsewe':function(_0x3f7bcd,_0x1110c5){return _0x3f7bcd===_0x1110c5;},'DHXtA':function(_0x5c87a9,_0x442cfe,_0x2befae){return _0x5c87a9(_0x442cfe,_0x2befae);},'iUbCL':function(_0x15cd79,_0x4c1cc7){return _0x15cd79+_0x4c1cc7;},'xPTYo':function(_0x4584ee,_0x225f99,_0x1cd704,_0xeacb06){return _0x4584ee(_0x225f99,_0x1cd704,_0xeacb06);},'uEBCT':function(_0x163635,_0x3c45ef){return _0x163635+_0x3c45ef;}};let _0x4a615a=_0x23fa68;const _0x5ba1b1=Math['min'](_0xc37235['length'],_0x2212b0[_0x490351(0x10b)](_0x23fa68,0x2710));while(_0x4a615a<_0x5ba1b1){const [_0xf6c6df,_0x1be466]=readId(_0xc37235,_0x4a615a),[_0x33cd7f,_0xa72dcd]=_0x2212b0['ewyDe'](readVint,_0xc37235,_0x4a615a+_0x1be466);if(_0x2212b0['Qsewe'](_0xf6c6df,ID_INFO)){let _0x1ad465=_0x4a615a+_0x1be466+_0xa72dcd;const _0x2bfc99=_0x1ad465+_0x33cd7f;while(_0x1ad465<_0x2bfc99){const [_0x3b3026,_0x52148a]=_0x2212b0[_0x490351(0x12a)](readId,_0xc37235,_0x1ad465),[_0x122fa8,_0x594e64]=readVint(_0xc37235,_0x2212b0[_0x490351(0x112)](_0x1ad465,_0x52148a));if(_0x2212b0[_0x490351(0x111)](_0x3b3026,ID_TIMESTAMP_SCALE))return _0x2212b0['xPTYo'](readUint,_0xc37235,_0x1ad465+_0x52148a+_0x594e64,_0x122fa8);_0x1ad465+=_0x2212b0[_0x490351(0x10b)](_0x52148a,_0x594e64)+_0x122fa8;}break;}if(_0x2212b0['Qsewe'](_0xf6c6df,ID_CLUSTER))break;if(_0x2212b0['ewyDe'](isUnknownSize,_0x33cd7f,_0xa72dcd))break;_0x4a615a+=_0x2212b0[_0x490351(0x132)](_0x1be466+_0xa72dcd,_0x33cd7f);}return 0xf4240;}function findFirstClusterOffset(_0x329377,_0x354854){const _0x5bf85b=_0x417e,_0x3b8ba0={'ZlkwY':function(_0x348801,_0x284562){return _0x348801===_0x284562;},'DVxBR':function(_0x229cb4,_0x5b55d6,_0x4938e8){return _0x229cb4(_0x5b55d6,_0x4938e8);},'PwIsp':function(_0x1f6d13,_0x510e12){return _0x1f6d13+_0x510e12;},'mCfyA':function(_0x2b64c0,_0x39692d){return _0x2b64c0+_0x39692d;}};let _0x118833=_0x354854;while(_0x118833<_0x329377[_0x5bf85b(0x121)]){const [_0x475fb1,_0x5606d7]=readId(_0x329377,_0x118833);if(_0x3b8ba0[_0x5bf85b(0x120)](_0x475fb1,ID_CLUSTER))return _0x118833;const [_0x44c7c0,_0x1b8b85]=_0x3b8ba0['DVxBR'](readVint,_0x329377,_0x3b8ba0[_0x5bf85b(0xfd)](_0x118833,_0x5606d7));if(_0x3b8ba0['DVxBR'](isUnknownSize,_0x44c7c0,_0x1b8b85))return _0x118833;_0x118833+=_0x3b8ba0['mCfyA'](_0x5606d7+_0x1b8b85,_0x44c7c0);}return _0x329377['length'];}function findClusterEnd(_0x5e7588,_0x1a37f0,_0x3b74ca,_0x198951){const _0x56ddaf=_0x417e,_0x56e4f4={'EdOAX':function(_0x2803b1,_0x3e14cb){return _0x2803b1+_0x3e14cb;},'utzaR':function(_0x4f6c1d,_0x2e658a){return _0x4f6c1d<_0x2e658a;},'xnDfS':function(_0x25d335,_0x38296b,_0x259e44){return _0x25d335(_0x38296b,_0x259e44);},'WYzWi':function(_0x2f2f21,_0x3c5b7c){return _0x2f2f21+_0x3c5b7c;},'JlClN':function(_0x3c71dc,_0x581d74){return _0x3c71dc+_0x581d74;}};if(!isUnknownSize(_0x3b74ca,_0x198951))return _0x56e4f4['EdOAX'](_0x1a37f0,_0x3b74ca);const _0x324177=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3c1526=_0x1a37f0;while(_0x56e4f4['utzaR'](_0x3c1526,_0x5e7588['length']-0x4)){const [_0x499ff9,_0x13339b]=_0x56e4f4[_0x56ddaf(0x129)](readId,_0x5e7588,_0x3c1526);if(_0x324177['has'](_0x499ff9))return _0x3c1526;const [_0x498ec6,_0x394a45]=readVint(_0x5e7588,_0x3c1526+_0x13339b);if(isUnknownSize(_0x498ec6,_0x394a45))return _0x5e7588['length'];_0x3c1526+=_0x56e4f4['WYzWi'](_0x56e4f4[_0x56ddaf(0xf9)](_0x13339b,_0x394a45),_0x498ec6);}return _0x5e7588['length'];}function extractClusters(_0x276cc5,_0x4c1457){const _0xc79909=_0x417e,_0x113009={'kwxPs':function(_0x1ad100,_0x40336d){return _0x1ad100<_0x40336d;},'QQyOI':function(_0x3b8a1f,_0x3dfc94){return _0x3b8a1f===_0x3dfc94;},'ioZEZ':function(_0x5d6f29,_0x56a523){return _0x5d6f29!==_0x56a523;},'sMhyD':function(_0x45c793,_0x39cb73){return _0x45c793+_0x39cb73;},'WWUNu':function(_0x219bc0,_0x3b5824,_0x149ff6,_0x46a277,_0x3e3e5e){return _0x219bc0(_0x3b5824,_0x149ff6,_0x46a277,_0x3e3e5e);},'FWLEi':function(_0x1d568e,_0x888278,_0x1d99fa){return _0x1d568e(_0x888278,_0x1d99fa);},'WGiRz':function(_0x3e0a01,_0x40c81d){return _0x3e0a01+_0x40c81d;},'PqqQJ':function(_0x11170f,_0x2992a6){return _0x11170f+_0x2992a6;},'zfmyL':function(_0x14fe81,_0xc9e5a1){return _0x14fe81===_0xc9e5a1;},'vtFfZ':function(_0x22012a,_0x265e44){return _0x22012a+_0x265e44;},'hqkXy':function(_0x2bea2f,_0x19664e){return _0x2bea2f<_0x19664e;},'jBKfh':function(_0x581115,_0x436f55,_0x12b6ad){return _0x581115(_0x436f55,_0x12b6ad);},'VkPbx':function(_0x7452d8,_0x1b442e){return _0x7452d8>=_0x1b442e;},'KVfPb':function(_0x205ac1,_0x2b62de){return _0x205ac1+_0x2b62de;},'rNARH':function(_0x4aca4a,_0x24e536){return _0x4aca4a+_0x24e536;},'cesHz':function(_0xb37274,_0x3e432a,_0x629a9d){return _0xb37274(_0x3e432a,_0x629a9d);},'PwozQ':function(_0x998d5e,_0x1ce8c7){return _0x998d5e+_0x1ce8c7;}},_0x380c4d=[],_0x48a45b=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x49ec60=0x0;while(_0x113009['kwxPs'](_0x49ec60,_0x276cc5[_0xc79909(0x121)])){const _0x213b3e=_0x276cc5['indexOf'](_0x48a45b,_0x49ec60);if(_0x113009['QQyOI'](_0x213b3e,-0x1))break;const [_0x1191b1,_0x3fe460]=readId(_0x276cc5,_0x213b3e);if(_0x113009[_0xc79909(0x115)](_0x1191b1,ID_CLUSTER)){_0x49ec60=_0x213b3e+0x1;continue;}const [_0x4b5df1,_0x11654b]=readVint(_0x276cc5,_0x213b3e+_0x3fe460),_0x115a66=_0x113009[_0xc79909(0x110)](_0x213b3e,_0x3fe460)+_0x11654b,_0x53c2c9=_0x113009[_0xc79909(0xf6)](findClusterEnd,_0x276cc5,_0x115a66,_0x4b5df1,_0x11654b);let _0x3fafc7=_0x115a66,_0x4c06c0=0x0,_0x28bcda=0x2,_0x1dc9a9=![],_0xd3f8c8=Buffer[_0xc79909(0x12b)](0x0),_0x44a4c5=Buffer['alloc'](0x0);while(_0x113009[_0xc79909(0x139)](_0x3fafc7,_0x53c2c9)){const [_0x54a420,_0x33f436]=_0x113009[_0xc79909(0xf3)](readId,_0x276cc5,_0x3fafc7),[_0x5ef286,_0x2a2adc]=readVint(_0x276cc5,_0x113009[_0xc79909(0x135)](_0x3fafc7,_0x33f436));if(_0x113009['QQyOI'](_0x54a420,ID_TIMESTAMP)){_0x4c06c0=readUint(_0x276cc5,_0x113009['WGiRz'](_0x3fafc7,_0x33f436)+_0x2a2adc,_0x5ef286),_0x28bcda=_0x5ef286,_0x1dc9a9=!![],_0xd3f8c8=_0x276cc5['slice'](_0x115a66,_0x3fafc7);const _0x1eb9c2=_0x113009['PqqQJ'](_0x113009[_0xc79909(0xfa)](_0x3fafc7+_0x33f436,_0x2a2adc),_0x5ef286);_0x44a4c5=_0x276cc5['slice'](_0x1eb9c2,_0x53c2c9);break;}if(_0x113009['zfmyL'](_0x54a420,ID_CLUSTER))break;if(isUnknownSize(_0x5ef286,_0x2a2adc))break;_0x3fafc7+=_0x113009['vtFfZ'](_0x33f436,_0x2a2adc)+_0x5ef286;}!_0x1dc9a9&&(_0x44a4c5=_0x276cc5[_0xc79909(0x130)](_0x115a66,_0x53c2c9));let _0x343cc5=_0x4c06c0;_0x3fafc7=_0x115a66;while(_0x113009[_0xc79909(0x116)](_0x3fafc7,_0x53c2c9)){const [_0x2d8ea4,_0x3a86cd]=_0x113009['jBKfh'](readId,_0x276cc5,_0x3fafc7),[_0x427d1d,_0x487a00]=readVint(_0x276cc5,_0x3fafc7+_0x3a86cd);if(_0x2d8ea4===ID_SIMPLE_BLOCK&&_0x113009['VkPbx'](_0x427d1d,0x4)){const _0x11db71=_0x3fafc7+_0x3a86cd+_0x487a00,[,_0x3eae47]=_0x113009[_0xc79909(0xf3)](readVint,_0x276cc5,_0x11db71),_0x2bd969=_0x276cc5['readInt16BE'](_0x113009[_0xc79909(0xf7)](_0x11db71,_0x3eae47)),_0x27d859=_0x113009['rNARH'](_0x4c06c0,_0x2bd969);if(_0x27d859>_0x343cc5)_0x343cc5=_0x27d859;}if(_0x2d8ea4===ID_CLUSTER)break;if(_0x113009[_0xc79909(0x138)](isUnknownSize,_0x427d1d,_0x487a00))break;_0x3fafc7+=_0x113009['PwozQ'](_0x3a86cd,_0x487a00)+_0x427d1d;}_0x380c4d['push']({'timestamp':_0x4c06c0,'maxTicks':_0x343cc5,'bodyBeforeTimestamp':_0xd3f8c8,'bodyAfterTimestamp':_0x44a4c5,'timestampElementSize':_0x28bcda}),_0x49ec60=_0x53c2c9;}return _0x380c4d;}function parseWebm(_0x106ec1){const _0x2c9f6a=_0x417e,_0x7c4aec={'LlRqj':function(_0x1399de,_0x577cea,_0x692aa3){return _0x1399de(_0x577cea,_0x692aa3);},'ncVCm':function(_0x45ad7d,_0x58a2d2){return _0x45ad7d+_0x58a2d2;},'ALIdg':function(_0x3c15a9,_0x5a8ae9){return _0x3c15a9+_0x5a8ae9;}};let _0x30b575=0x0;const [,_0x48d8fd]=readId(_0x106ec1,_0x30b575),[_0x4e13da,_0x490923]=_0x7c4aec[_0x2c9f6a(0x126)](readVint,_0x106ec1,_0x30b575+_0x48d8fd);_0x30b575+=_0x48d8fd+_0x490923+_0x4e13da;const [_0x6be127,_0x4deff1]=_0x7c4aec['LlRqj'](readId,_0x106ec1,_0x30b575);if(_0x6be127!==ID_SEGMENT)return null;const [,_0x4a9183]=readVint(_0x106ec1,_0x7c4aec[_0x2c9f6a(0x108)](_0x30b575,_0x4deff1)),_0x349303=_0x7c4aec[_0x2c9f6a(0x108)](_0x7c4aec[_0x2c9f6a(0x131)](_0x30b575,_0x4deff1),_0x4a9183),_0x1a37f3=_0x7c4aec[_0x2c9f6a(0x126)](findTimestampScale,_0x106ec1,_0x349303),_0x400d7b=findFirstClusterOffset(_0x106ec1,_0x349303),_0x494f5d=_0x106ec1['slice'](0x0,_0x400d7b),_0x3fa5dd=_0x7c4aec[_0x2c9f6a(0x126)](extractClusters,_0x106ec1,_0x1a37f3);let _0x425d7f=0x0;for(const _0x2d2aa0 of _0x3fa5dd){if(_0x2d2aa0[_0x2c9f6a(0xfc)]>_0x425d7f)_0x425d7f=_0x2d2aa0[_0x2c9f6a(0xfc)];}return{'header':_0x494f5d,'clusters':_0x3fa5dd,'timestampScale':_0x1a37f3,'maxTimestampTicks':_0x425d7f};}function buildCluster(_0x45f650,_0x49bf6b,_0x525b98){const _0x4ec1a0=_0x417e,_0x53f2fb={'YfMRk':function(_0x29d1bd,_0x46e182){return _0x29d1bd(_0x46e182);},'vZClf':function(_0x5dae77,_0x48def6,_0x368570){return _0x5dae77(_0x48def6,_0x368570);}},_0x9e9c30=Buffer[_0x4ec1a0(0x11e)]([0x1f,0x43,0xb6,0x75]),_0x5b3aae=Math[_0x4ec1a0(0x10a)](0x4,uintSize(_0x45f650)),_0x2fb750=Buffer['concat']([Buffer[_0x4ec1a0(0x11e)]([ID_TIMESTAMP]),_0x53f2fb[_0x4ec1a0(0x137)](writeVint,_0x5b3aae),_0x53f2fb['vZClf'](writeUint,_0x45f650,_0x5b3aae)]),_0xc61213=Buffer['concat']([_0x49bf6b,_0x2fb750,_0x525b98]),_0x396786=_0x53f2fb[_0x4ec1a0(0x137)](writeVint,_0xc61213[_0x4ec1a0(0x121)]);return Buffer['concat']([_0x9e9c30,_0x396786,_0xc61213]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x111d9b){const _0x18479f=_0x417e,_0x208dd5={'fuzkW':function(_0x420de0,_0x20d7f8){return _0x420de0+_0x20d7f8;},'YrLFP':function(_0x5f66fd,_0x25c636){return _0x5f66fd+_0x25c636;},'NnWSL':function(_0x53283c,_0x4f0e78,_0x3a0526){return _0x53283c(_0x4f0e78,_0x3a0526);},'sVqxz':function(_0xd53730,_0x34cae3){return _0xd53730+_0x34cae3;},'ztsUU':function(_0x199c4c,_0x2b1889){return _0x199c4c(_0x2b1889);},'zTLDG':function(_0x2141ed,_0x23c2e2){return _0x2141ed+_0x23c2e2;},'BceRY':function(_0x1aca96,_0x21c110){return _0x1aca96<_0x21c110;},'rgsZE':function(_0x43c5d3,_0x5ee586){return _0x43c5d3+_0x5ee586;},'igqjI':function(_0x3a4091,_0x4d04e3){return _0x3a4091===_0x4d04e3;},'VWhgs':function(_0x5e98d0,_0x44a3ff,_0x2abb31){return _0x5e98d0(_0x44a3ff,_0x2abb31);},'nhWAA':function(_0x56e2b5,_0x18a111){return _0x56e2b5<_0x18a111;},'cgXGR':function(_0x3337fe,_0x38841a,_0xfb6f32){return _0x3337fe(_0x38841a,_0xfb6f32);},'PxLcQ':function(_0x45bd03,_0x369f1c){return _0x45bd03+_0x369f1c;},'GvUYn':function(_0x3e262c,_0xc8eec1){return _0x3e262c+_0xc8eec1;},'JkROy':function(_0x21ad66,_0xd0624f,_0x1a92f3){return _0x21ad66(_0xd0624f,_0x1a92f3);},'hZoZm':function(_0x398047,_0x57598a){return _0x398047+_0x57598a;}},_0x4843f7=Buffer['from'](_0x111d9b);let _0x15820f=0x0;const [,_0xab8b2d]=readId(_0x4843f7,_0x15820f),[_0x14a775,_0x3513cc]=readVint(_0x4843f7,_0x15820f+_0xab8b2d),_0x260acf=_0x208dd5[_0x18479f(0x13a)](_0x208dd5[_0x18479f(0x113)](_0x15820f,_0xab8b2d),_0x3513cc)+_0x14a775,[,_0x215625]=readId(_0x4843f7,_0x260acf),[,_0x2344ab]=_0x208dd5[_0x18479f(0x11d)](readVint,_0x4843f7,_0x208dd5[_0x18479f(0xf2)](_0x260acf,_0x215625)),_0x18aba3=_0x208dd5['YrLFP'](_0x208dd5[_0x18479f(0xf2)](_0x260acf,_0x215625),_0x2344ab),_0x2ac032=_0x208dd5[_0x18479f(0x144)](writeUnknownSizeVint,_0x2344ab);_0x2ac032[_0x18479f(0xff)](_0x4843f7,_0x208dd5[_0x18479f(0x113)](_0x260acf,_0x215625));let _0x238408=_0x18aba3;const _0x58b3b8=Math[_0x18479f(0x101)](_0x4843f7[_0x18479f(0x121)],_0x208dd5['zTLDG'](_0x18aba3,0x2710));while(_0x208dd5[_0x18479f(0x124)](_0x238408,_0x58b3b8)){const [_0x43be0c,_0x5c8845]=_0x208dd5['NnWSL'](readId,_0x4843f7,_0x238408),[_0x14a63f,_0x217e43]=readVint(_0x4843f7,_0x208dd5['rgsZE'](_0x238408,_0x5c8845));if(_0x208dd5['igqjI'](_0x43be0c,ID_CLUSTER))break;if(_0x208dd5['VWhgs'](isUnknownSize,_0x14a63f,_0x217e43))break;if(_0x43be0c===ID_INFO){const _0x754a97=_0x208dd5['sVqxz'](_0x208dd5['zTLDG'](_0x238408,_0x5c8845),_0x217e43),_0x3057e3=_0x754a97+_0x14a63f,_0x40c4ad=[];let _0x3980f2=_0x754a97;while(_0x208dd5[_0x18479f(0x100)](_0x3980f2,_0x3057e3)){const [_0xa9aa26,_0xa5ecec]=readId(_0x4843f7,_0x3980f2),[_0x32c058,_0x2cfb9a]=_0x208dd5['cgXGR'](readVint,_0x4843f7,_0x208dd5['PxLcQ'](_0x3980f2,_0xa5ecec)),_0x15fcf5=_0x208dd5['GvUYn'](_0x208dd5[_0x18479f(0x10c)](_0xa5ecec,_0x2cfb9a),_0x32c058);_0xa9aa26!==ID_DURATION&&_0x40c4ad[_0x18479f(0x12d)](_0x4843f7[_0x18479f(0x130)](_0x3980f2,_0x3980f2+_0x15fcf5)),_0x3980f2+=_0x15fcf5;}const _0x543105=Buffer['concat'](_0x40c4ad),_0x2f9083=Buffer[_0x18479f(0xf1)]([_0x4843f7['slice'](_0x238408,_0x208dd5[_0x18479f(0x13f)](_0x238408,_0x5c8845)),_0x208dd5['JkROy'](writeVint,_0x543105['length'],_0x217e43)]);return Buffer['concat']([_0x4843f7['slice'](0x0,_0x238408),_0x2f9083,_0x543105,_0x4843f7['slice'](_0x3057e3)]);}_0x238408+=_0x208dd5['hZoZm'](_0x5c8845,_0x217e43)+_0x14a63f;}return _0x4843f7;}export function stitchWebmFiles(_0x5592da,_0x4342c7){const _0x2969be=_0x417e,_0x29184c={'CHdcf':function(_0x1b9052,_0x318e2e){return _0x1b9052(_0x318e2e);},'MmEwy':function(_0x3a584a,_0x4974d1){return _0x3a584a<_0x4974d1;},'drQpM':function(_0x3e756d,_0xc50026,_0x2a7c9d,_0x4b89fa){return _0x3e756d(_0xc50026,_0x2a7c9d,_0x4b89fa);},'tRROp':function(_0x587dba,_0x1b2b3d){return _0x587dba+_0x1b2b3d;},'aYVNg':function(_0x309de7,_0x4f7015,_0x3f8132){return _0x309de7(_0x4f7015,_0x3f8132);}};if(_0x5592da[_0x2969be(0x121)]<=0x1)return![];const _0x188a57=[];for(const _0x57da5d of _0x5592da){const _0x4f9828=readFileSync(_0x57da5d),_0x195637=parseWebm(_0x4f9828);if(!_0x195637||_0x195637['clusters']['length']===0x0)return![];_0x188a57[_0x2969be(0x12d)](_0x195637);}const _0x2ca2e2=_0x188a57[0x0],_0x3e34d4=_0x29184c[_0x2969be(0x102)](rebuildHeaderWithoutDuration,_0x2ca2e2['header']),_0x4362c2=[_0x3e34d4];let _0x33534b=0x0;for(let _0x525bf5=0x0;_0x29184c['MmEwy'](_0x525bf5,_0x188a57['length']);_0x525bf5++){const _0x14a7cd=_0x188a57[_0x525bf5];for(const _0x4e324b of _0x14a7cd[_0x2969be(0x142)]){const _0x24f436=_0x4e324b['timestamp']+_0x33534b;_0x4362c2[_0x2969be(0x12d)](_0x29184c['drQpM'](buildCluster,_0x24f436,_0x4e324b['bodyBeforeTimestamp'],_0x4e324b[_0x2969be(0x13c)]));}const _0x1683bb=0x1e;_0x33534b+=_0x29184c[_0x2969be(0xfb)](_0x14a7cd[_0x2969be(0x12e)],_0x1683bb);}return _0x29184c[_0x2969be(0x122)](writeFileSync,_0x4342c7,Buffer['concat'](_0x4362c2)),!![];}function _0x417e(_0x599636,_0x257d1e){_0x599636=_0x599636-0xf1;const _0x5957ab=_0x5957();let _0x417e63=_0x5957ab[_0x599636];return _0x417e63;}if(process['argv'][0x1]?.[_0x38ff66(0xf8)](_0x38ff66(0x114))||process['argv'][0x1]?.[_0x38ff66(0xf8)](_0x38ff66(0x11f))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x38ff66(0x109)](_0x38ff66(0x11c)),process['exit'](0x1));const output=args[args[_0x38ff66(0x121)]-0x1],inputs=args[_0x38ff66(0x130)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x38ff66(0x12f)]('Stitched\x20'+inputs[_0x38ff66(0x121)]+_0x38ff66(0x103)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x41fddb=_0xaf97;(function(_0x433d5d,_0x365b73){const _0x9bb8c5=_0xaf97,_0x32f37d=_0x433d5d();while(!![]){try{const _0x341a32=parseInt(_0x9bb8c5(0x1f9))/0x1*(parseInt(_0x9bb8c5(0x223))/0x2)+parseInt(_0x9bb8c5(0x22b))/0x3+parseInt(_0x9bb8c5(0x23b))/0x4*(-parseInt(_0x9bb8c5(0x1f8))/0x5)+-parseInt(_0x9bb8c5(0x1fa))/0x6+parseInt(_0x9bb8c5(0x214))/0x7+-parseInt(_0x9bb8c5(0x224))/0x8+parseInt(_0x9bb8c5(0x22e))/0x9*(parseInt(_0x9bb8c5(0x227))/0xa);if(_0x341a32===_0x365b73)break;else _0x32f37d['push'](_0x32f37d['shift']());}catch(_0x1c5059){_0x32f37d['push'](_0x32f37d['shift']());}}}(_0x4c3a,0xe51b1));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(_0x35e821,_0x12c29a){const _0x4496e4=_0xaf97,_0x1c0c4d={'ynKvl':function(_0x3b2201,_0x4223b1){return _0x3b2201<=_0x4223b1;},'RiBmf':function(_0x3f6018,_0x5ecb0c){return _0x3f6018&_0x5ecb0c;},'zpnJX':function(_0x32d4a5,_0x491873){return _0x32d4a5>_0x491873;},'dcYzN':function(_0x3a9034,_0xc7fbf7){return _0x3a9034+_0xc7fbf7;},'VDzVr':function(_0x13af18,_0x4bca30){return _0x13af18-_0x4bca30;},'KDexJ':function(_0x1825e9,_0x2fabfa){return _0x1825e9<_0x2fabfa;}};if(_0x12c29a>=_0x35e821['length'])return[0x0,0x0];const _0x14d3d9=_0x35e821[_0x12c29a];let _0x22cddf=0x1,_0xbef188=0x80;while(_0x1c0c4d[_0x4496e4(0x226)](_0x22cddf,0x8)&&!_0x1c0c4d['RiBmf'](_0x14d3d9,_0xbef188)){_0x22cddf++,_0xbef188>>=0x1;}if(_0x1c0c4d[_0x4496e4(0x1f2)](_0x1c0c4d[_0x4496e4(0x228)](_0x12c29a,_0x22cddf),_0x35e821[_0x4496e4(0x1fe)]))return[0x0,0x0];let _0xb86c4c=_0x14d3d9&_0x1c0c4d[_0x4496e4(0x20e)](_0xbef188,0x1);for(let _0x37ccd2=0x1;_0x1c0c4d['KDexJ'](_0x37ccd2,_0x22cddf);_0x37ccd2++){_0xb86c4c=_0x1c0c4d[_0x4496e4(0x228)](_0xb86c4c*0x100,_0x35e821[_0x12c29a+_0x37ccd2]);}return[_0xb86c4c,_0x22cddf];}function readId(_0x59e51d,_0x26706f){const _0x5b4f0a=_0xaf97,_0xe2d0f9={'JKOzV':function(_0x5e0380,_0x2de920){return _0x5e0380>=_0x2de920;},'uuICG':function(_0x2380bd,_0x15205f){return _0x2380bd+_0x15205f;}};if(_0x26706f>=_0x59e51d[_0x5b4f0a(0x1fe)])return[0x0,0x0];const _0x1097ed=_0x59e51d[_0x26706f];let _0x5a876c;if(_0x1097ed>=0x80)_0x5a876c=0x1;else{if(_0x1097ed>=0x40)_0x5a876c=0x2;else{if(_0x1097ed>=0x20)_0x5a876c=0x3;else{if(_0xe2d0f9[_0x5b4f0a(0x222)](_0x1097ed,0x10))_0x5a876c=0x4;else return[_0x1097ed,0x1];}}}if(_0xe2d0f9['uuICG'](_0x26706f,_0x5a876c)>_0x59e51d[_0x5b4f0a(0x1fe)])return[0x0,0x0];let _0x4263a0=0x0;for(let _0x461450=0x0;_0x461450<_0x5a876c;_0x461450++){_0x4263a0=_0x4263a0*0x100+_0x59e51d[_0x26706f+_0x461450];}return[_0x4263a0,_0x5a876c];}function readUint(_0x3e2c88,_0x4a963f,_0x3f583a){const _0x3fef4a=_0xaf97,_0x1b7280={'gZlMq':function(_0x10039e,_0x5d88b1){return _0x10039e<_0x5d88b1;},'BKdri':function(_0x52d94f,_0x305448){return _0x52d94f*_0x305448;}};let _0x11fc48=0x0;for(let _0x122e7e=0x0;_0x1b7280['gZlMq'](_0x122e7e,_0x3f583a);_0x122e7e++){_0x11fc48=_0x1b7280[_0x3fef4a(0x22a)](_0x11fc48,0x100)+_0x3e2c88[_0x4a963f+_0x122e7e];}return _0x11fc48;}function isUnknownSize(_0x4a72e6,_0x55b0da){const _0x5c17a7=_0xaf97,_0x5c063a={'yuiYa':function(_0x22c958,_0x28602a){return _0x22c958===_0x28602a;},'jxwEQ':function(_0x222add,_0x51d3b3){return _0x222add-_0x51d3b3;},'uTgvV':function(_0x1d8591,_0x2dd9eb){return _0x1d8591*_0x2dd9eb;}};return _0x5c063a[_0x5c17a7(0x204)](_0x4a72e6,_0x5c063a[_0x5c17a7(0x20f)](Math['pow'](0x2,_0x5c063a[_0x5c17a7(0x212)](0x7,_0x55b0da)),0x1));}function writeVint(_0x1c0f05,_0x2958ee){const _0x563d3b=_0xaf97,_0x10add4={'gBuUO':function(_0x126aa1,_0xda9591){return _0x126aa1||_0xda9591;},'wQQGd':function(_0x1c40cb,_0x5cc521){return _0x1c40cb<_0x5cc521;},'KpMQE':function(_0x167fe3,_0x56d6b0){return _0x167fe3*_0x56d6b0;},'wYiOh':function(_0x1de329,_0x5a1a42){return _0x1de329>=_0x5a1a42;},'QaOhd':function(_0x11fdb3,_0x5019d6){return _0x11fdb3<<_0x5019d6;},'gQpcw':function(_0x4247e4,_0x1851d8){return _0x4247e4-_0x1851d8;}};let _0x1ce0c8=_0x10add4['gBuUO'](_0x2958ee,0x1);while(_0x10add4['wQQGd'](Math['pow'](0x2,_0x10add4[_0x563d3b(0x238)](0x7,_0x1ce0c8))-0x2,_0x1c0f05))_0x1ce0c8++;const _0x2046cd=Buffer[_0x563d3b(0x22d)](_0x1ce0c8);for(let _0x49745f=_0x1ce0c8-0x1;_0x10add4['wYiOh'](_0x49745f,0x0);_0x49745f--){_0x2046cd[_0x49745f]=_0x1c0f05&0xff,_0x1c0f05=Math['floor'](_0x1c0f05/0x100);}return _0x2046cd[0x0]|=_0x10add4['QaOhd'](0x1,_0x10add4['gQpcw'](0x8,_0x1ce0c8)),_0x2046cd;}function writeUint(_0x13712d,_0x1c3490){const _0x374f9d=_0xaf97,_0x982baa={'quLsc':function(_0x3bb9e9,_0x1d2f13){return _0x3bb9e9/_0x1d2f13;}},_0x1b79bb=Buffer[_0x374f9d(0x22d)](_0x1c3490);for(let _0x867542=_0x1c3490-0x1;_0x867542>=0x0;_0x867542--){_0x1b79bb[_0x867542]=_0x13712d&0xff,_0x13712d=Math['floor'](_0x982baa[_0x374f9d(0x218)](_0x13712d,0x100));}return _0x1b79bb;}function writeUnknownSizeVint(_0x2fd136){const _0x445f6d=_0xaf97,_0x401461={'qoXPL':function(_0x4848d8,_0x3ab82c){return _0x4848d8>>_0x3ab82c;}},_0xc050b5=Buffer['alloc'](_0x2fd136,0xff);return _0xc050b5[0x0]=_0x401461[_0x445f6d(0x213)](0xff,_0x2fd136-0x1),_0xc050b5;}function _0xaf97(_0x5d8007,_0x4a9566){_0x5d8007=_0x5d8007-0x1f2;const _0x4c3a5b=_0x4c3a();let _0xaf97be=_0x4c3a5b[_0x5d8007];return _0xaf97be;}function uintSize(_0x1cfb06){const _0x2b9dcf=_0xaf97,_0xf8be6d={'GWZDI':function(_0x52dd49,_0x4eb787){return _0x52dd49>_0x4eb787;},'sSrEU':function(_0x445363,_0x129080){return _0x445363/_0x129080;}};if(_0x1cfb06===0x0)return 0x1;let _0x223d07=0x0,_0x148a6c=_0x1cfb06;while(_0xf8be6d[_0x2b9dcf(0x203)](_0x148a6c,0x0)){_0x223d07++,_0x148a6c=Math['floor'](_0xf8be6d[_0x2b9dcf(0x1fc)](_0x148a6c,0x100));}return _0x223d07;}function findTimestampScale(_0x4069b1,_0x9841c0){const _0x5aa8ff=_0xaf97,_0x48d7a0={'hVmcY':function(_0x1b30d6,_0x443b0c){return _0x1b30d6+_0x443b0c;},'PNDfq':function(_0x18fab7,_0x3a6e70){return _0x18fab7<_0x3a6e70;},'CajWV':function(_0xa0f41f,_0x3e5018,_0x1d7b33){return _0xa0f41f(_0x3e5018,_0x1d7b33);},'tZIAF':function(_0x337bee,_0x451046){return _0x337bee+_0x451046;},'YbVEo':function(_0x2f208c,_0x45bcf8){return _0x2f208c+_0x45bcf8;},'JNDDu':function(_0x255a91,_0x39d6f6){return _0x255a91+_0x39d6f6;},'ZKtpj':function(_0x4d97e6,_0x5e67b4){return _0x4d97e6<_0x5e67b4;},'pJQfs':function(_0x432b1e,_0x1bd91e,_0x1d10b5){return _0x432b1e(_0x1bd91e,_0x1d10b5);},'rEJSJ':function(_0x3af468,_0xc17b2a){return _0x3af468===_0xc17b2a;},'QGeFb':function(_0x40d1b4,_0x206b8a,_0x14077a,_0x290815){return _0x40d1b4(_0x206b8a,_0x14077a,_0x290815);}};let _0x26c11d=_0x9841c0;const _0x58dfe1=Math['min'](_0x4069b1['length'],_0x48d7a0['hVmcY'](_0x9841c0,0x2710));while(_0x48d7a0[_0x5aa8ff(0x20c)](_0x26c11d,_0x58dfe1)){const [_0x309127,_0x3e68fc]=readId(_0x4069b1,_0x26c11d),[_0x2d1be8,_0x55d0c3]=_0x48d7a0[_0x5aa8ff(0x215)](readVint,_0x4069b1,_0x48d7a0['tZIAF'](_0x26c11d,_0x3e68fc));if(_0x309127===ID_INFO){let _0x4deb72=_0x48d7a0[_0x5aa8ff(0x229)](_0x48d7a0[_0x5aa8ff(0x235)](_0x26c11d,_0x3e68fc),_0x55d0c3);const _0x3c0bf8=_0x4deb72+_0x2d1be8;while(_0x48d7a0[_0x5aa8ff(0x1f7)](_0x4deb72,_0x3c0bf8)){const [_0x4e2217,_0x4df968]=_0x48d7a0[_0x5aa8ff(0x1f5)](readId,_0x4069b1,_0x4deb72),[_0x532eb6,_0xcd27fc]=readVint(_0x4069b1,_0x4deb72+_0x4df968);if(_0x48d7a0['rEJSJ'](_0x4e2217,ID_TIMESTAMP_SCALE))return _0x48d7a0['QGeFb'](readUint,_0x4069b1,_0x48d7a0[_0x5aa8ff(0x235)](_0x4deb72+_0x4df968,_0xcd27fc),_0x532eb6);_0x4deb72+=_0x48d7a0['tZIAF'](_0x4df968+_0xcd27fc,_0x532eb6);}break;}if(_0x48d7a0['rEJSJ'](_0x309127,ID_CLUSTER))break;if(_0x48d7a0[_0x5aa8ff(0x215)](isUnknownSize,_0x2d1be8,_0x55d0c3))break;_0x26c11d+=_0x48d7a0[_0x5aa8ff(0x235)](_0x3e68fc,_0x55d0c3)+_0x2d1be8;}return 0xf4240;}function findFirstClusterOffset(_0x3757bc,_0x23d0e9){const _0x1f5766=_0xaf97,_0x98d9e={'gVpRj':function(_0x1cfc05,_0x31deb6){return _0x1cfc05+_0x31deb6;},'VQBWE':function(_0x4ea1c4,_0x1b0854,_0x2af178){return _0x4ea1c4(_0x1b0854,_0x2af178);}};let _0x58abf0=_0x23d0e9;while(_0x58abf0<_0x3757bc['length']){const [_0x2a1dac,_0x203d38]=readId(_0x3757bc,_0x58abf0);if(_0x2a1dac===ID_CLUSTER)return _0x58abf0;const [_0x3f8f7f,_0x341db6]=readVint(_0x3757bc,_0x98d9e['gVpRj'](_0x58abf0,_0x203d38));if(_0x98d9e['VQBWE'](isUnknownSize,_0x3f8f7f,_0x341db6))return _0x58abf0;_0x58abf0+=_0x98d9e[_0x1f5766(0x225)](_0x203d38,_0x341db6)+_0x3f8f7f;}return _0x3757bc['length'];}function findClusterEnd(_0x509ee1,_0x145d50,_0x2a2a35,_0x404b2b){const _0x222e96=_0xaf97,_0x2fc444={'TffmP':function(_0x9a6338,_0x412254,_0xe6e45b){return _0x9a6338(_0x412254,_0xe6e45b);},'CMjSz':function(_0x5c3bcf,_0x2a8899){return _0x5c3bcf+_0x2a8899;},'fFaoO':function(_0x213705,_0x49c072){return _0x213705<_0x49c072;}};if(!_0x2fc444['TffmP'](isUnknownSize,_0x2a2a35,_0x404b2b))return _0x2fc444[_0x222e96(0x207)](_0x145d50,_0x2a2a35);const _0x4f5e2d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3020b2=_0x145d50;while(_0x2fc444['fFaoO'](_0x3020b2,_0x509ee1[_0x222e96(0x1fe)]-0x4)){const [_0xdf3c63,_0x43f8cc]=readId(_0x509ee1,_0x3020b2);if(_0x4f5e2d['has'](_0xdf3c63))return _0x3020b2;const [_0xaf7cb5,_0x41c446]=readVint(_0x509ee1,_0x3020b2+_0x43f8cc);if(isUnknownSize(_0xaf7cb5,_0x41c446))return _0x509ee1['length'];_0x3020b2+=_0x43f8cc+_0x41c446+_0xaf7cb5;}return _0x509ee1[_0x222e96(0x1fe)];}function extractClusters(_0x5a9b56,_0x43a5ef){const _0x4e8e95=_0xaf97,_0x1f737d={'bOUhH':function(_0x57b353,_0x49d105){return _0x57b353<_0x49d105;},'hXrAq':function(_0x4f863d,_0x989cbd){return _0x4f863d+_0x989cbd;},'cFSPM':function(_0x1c26bd,_0x975cda,_0x52d831,_0x557b03,_0x21cd70){return _0x1c26bd(_0x975cda,_0x52d831,_0x557b03,_0x21cd70);},'nDSUR':function(_0x1fe12c,_0x1d70d6,_0x229a10){return _0x1fe12c(_0x1d70d6,_0x229a10);},'PcpBu':function(_0x30e777,_0x287d09,_0x1ffc93){return _0x30e777(_0x287d09,_0x1ffc93);},'AWsju':function(_0x1c8f85,_0x9d7b2a,_0x82983c,_0x481e6d){return _0x1c8f85(_0x9d7b2a,_0x82983c,_0x481e6d);},'GooqT':function(_0x26432,_0x148499){return _0x26432+_0x148499;},'jyTNf':function(_0x48331d,_0x1825a9){return _0x48331d+_0x1825a9;},'MDecU':function(_0x3ba811,_0x19cce9){return _0x3ba811<_0x19cce9;},'xEOpp':function(_0x3fcb5d,_0x5ee039){return _0x3fcb5d>=_0x5ee039;},'RTYEV':function(_0x2f6fab,_0x155ed7){return _0x2f6fab>_0x155ed7;},'pThIg':function(_0x35b29a,_0x146257,_0x579225){return _0x35b29a(_0x146257,_0x579225);}},_0x2a25d4=[],_0x2f7b40=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x468453=0x0;while(_0x1f737d[_0x4e8e95(0x21a)](_0x468453,_0x5a9b56[_0x4e8e95(0x1fe)])){const _0x349b06=_0x5a9b56['indexOf'](_0x2f7b40,_0x468453);if(_0x349b06===-0x1)break;const [_0x1be6c9,_0xedd768]=readId(_0x5a9b56,_0x349b06);if(_0x1be6c9!==ID_CLUSTER){_0x468453=_0x1f737d[_0x4e8e95(0x234)](_0x349b06,0x1);continue;}const [_0x196260,_0x5a3cc8]=readVint(_0x5a9b56,_0x349b06+_0xedd768),_0x326d1a=_0x349b06+_0xedd768+_0x5a3cc8,_0x1d8b18=_0x1f737d[_0x4e8e95(0x1fb)](findClusterEnd,_0x5a9b56,_0x326d1a,_0x196260,_0x5a3cc8);let _0x109903=_0x326d1a,_0x10418e=0x0,_0x380774=0x2,_0x4f06ac=![],_0x29ebd4=Buffer['alloc'](0x0),_0x410b40=Buffer[_0x4e8e95(0x22d)](0x0);while(_0x109903<_0x1d8b18){const [_0x302c7a,_0x1ac8d9]=_0x1f737d['nDSUR'](readId,_0x5a9b56,_0x109903),[_0x1518fa,_0x4da06e]=_0x1f737d[_0x4e8e95(0x21d)](readVint,_0x5a9b56,_0x109903+_0x1ac8d9);if(_0x302c7a===ID_TIMESTAMP){_0x10418e=_0x1f737d['AWsju'](readUint,_0x5a9b56,_0x1f737d['GooqT'](_0x109903,_0x1ac8d9)+_0x4da06e,_0x1518fa),_0x380774=_0x1518fa,_0x4f06ac=!![],_0x29ebd4=_0x5a9b56['slice'](_0x326d1a,_0x109903);const _0x468b44=_0x1f737d[_0x4e8e95(0x20d)](_0x1f737d['jyTNf'](_0x109903,_0x1ac8d9)+_0x4da06e,_0x1518fa);_0x410b40=_0x5a9b56['slice'](_0x468b44,_0x1d8b18);break;}if(_0x302c7a===ID_CLUSTER)break;if(isUnknownSize(_0x1518fa,_0x4da06e))break;_0x109903+=_0x1ac8d9+_0x4da06e+_0x1518fa;}!_0x4f06ac&&(_0x410b40=_0x5a9b56['slice'](_0x326d1a,_0x1d8b18));let _0x192dca=_0x10418e;_0x109903=_0x326d1a;while(_0x1f737d['MDecU'](_0x109903,_0x1d8b18)){const [_0x33fe9e,_0x350f8c]=_0x1f737d[_0x4e8e95(0x233)](readId,_0x5a9b56,_0x109903),[_0x3db8af,_0x32fa99]=readVint(_0x5a9b56,_0x109903+_0x350f8c);if(_0x33fe9e===ID_SIMPLE_BLOCK&&_0x1f737d[_0x4e8e95(0x239)](_0x3db8af,0x4)){const _0xd60cc3=_0x1f737d['GooqT'](_0x109903+_0x350f8c,_0x32fa99),[,_0x3ee588]=_0x1f737d[_0x4e8e95(0x21d)](readVint,_0x5a9b56,_0xd60cc3),_0x1f1f1b=_0x5a9b56['readInt16BE'](_0xd60cc3+_0x3ee588),_0x5b6d66=_0x1f737d['jyTNf'](_0x10418e,_0x1f1f1b);if(_0x1f737d[_0x4e8e95(0x237)](_0x5b6d66,_0x192dca))_0x192dca=_0x5b6d66;}if(_0x33fe9e===ID_CLUSTER)break;if(_0x1f737d['pThIg'](isUnknownSize,_0x3db8af,_0x32fa99))break;_0x109903+=_0x350f8c+_0x32fa99+_0x3db8af;}_0x2a25d4[_0x4e8e95(0x219)]({'timestamp':_0x10418e,'maxTicks':_0x192dca,'bodyBeforeTimestamp':_0x29ebd4,'bodyAfterTimestamp':_0x410b40,'timestampElementSize':_0x380774}),_0x468453=_0x1d8b18;}return _0x2a25d4;}function parseWebm(_0x158291){const _0x59c179=_0xaf97,_0x108339={'fTFEN':function(_0x4110c3,_0x350267,_0x872323){return _0x4110c3(_0x350267,_0x872323);},'tklsR':function(_0x1e5fc7,_0x360892){return _0x1e5fc7+_0x360892;},'oFBjp':function(_0x160baf,_0x584136,_0x1bd785){return _0x160baf(_0x584136,_0x1bd785);},'Nuaps':function(_0x1536f1,_0xa6eda7){return _0x1536f1+_0xa6eda7;}};let _0xd19390=0x0;const [,_0x583346]=_0x108339[_0x59c179(0x231)](readId,_0x158291,_0xd19390),[_0x1086cd,_0x5684e4]=_0x108339[_0x59c179(0x231)](readVint,_0x158291,_0xd19390+_0x583346);_0xd19390+=_0x108339[_0x59c179(0x1ff)](_0x583346+_0x5684e4,_0x1086cd);const [_0x75cc26,_0x48b03a]=_0x108339[_0x59c179(0x231)](readId,_0x158291,_0xd19390);if(_0x75cc26!==ID_SEGMENT)return null;const [,_0x456c16]=_0x108339['oFBjp'](readVint,_0x158291,_0xd19390+_0x48b03a),_0x144503=_0x108339['Nuaps'](_0xd19390+_0x48b03a,_0x456c16),_0x1ce5f7=_0x108339['oFBjp'](findTimestampScale,_0x158291,_0x144503),_0x2ffd19=_0x108339['fTFEN'](findFirstClusterOffset,_0x158291,_0x144503),_0x2da90c=_0x158291[_0x59c179(0x205)](0x0,_0x2ffd19),_0x48ba7e=extractClusters(_0x158291,_0x1ce5f7);let _0x216f03=0x0;for(const _0x3cd70f of _0x48ba7e){if(_0x3cd70f['maxTicks']>_0x216f03)_0x216f03=_0x3cd70f[_0x59c179(0x209)];}return{'header':_0x2da90c,'clusters':_0x48ba7e,'timestampScale':_0x1ce5f7,'maxTimestampTicks':_0x216f03};}function buildCluster(_0x509cd1,_0x46b5bd,_0x459362){const _0x3a6de2=_0xaf97,_0xe653ec={'IcdMU':function(_0x30513f,_0x34ed5a){return _0x30513f(_0x34ed5a);}},_0x111c86=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x1ff18d=Math[_0x3a6de2(0x217)](0x4,uintSize(_0x509cd1)),_0x10680c=Buffer[_0x3a6de2(0x221)]([Buffer['from']([ID_TIMESTAMP]),_0xe653ec['IcdMU'](writeVint,_0x1ff18d),writeUint(_0x509cd1,_0x1ff18d)]),_0x5222ca=Buffer['concat']([_0x46b5bd,_0x10680c,_0x459362]),_0xafb61=writeVint(_0x5222ca['length']);return Buffer[_0x3a6de2(0x221)]([_0x111c86,_0xafb61,_0x5222ca]);}function _0x4c3a(){const _0x316d32=['from','lqbms','pJQfs','bodyAfterTimestamp','ZKtpj','5315WsYYut','495821EgVbDj','6587622BXVKAr','cFSPM','sSrEU','\x20files\x20->\x20','length','tklsR','min','Stitched\x20','eICCN','GWZDI','yuiYa','slice','IzVCu','CMjSz','dwSgt','maxTicks','exit','HWSpQ','PNDfq','GooqT','VDzVr','jxwEQ','error','PeivV','uTgvV','qoXPL','10482395bqrdrX','CajWV','fhEJR','max','quLsc','push','bOUhH','UkGbF','argv','PcpBu','timestamp','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','Otlsz','concat','JKOzV','2ICfHju','3851792WegEZG','gVpRj','ynKvl','4711050UiGjPx','dcYzN','YbVEo','BKdri','2506179zziGIq','stitchWebmFiles.ts','alloc','27ymGxHQ','copy','jFARk','fTFEN','VmVPs','nDSUR','hXrAq','JNDDu','clusters','RTYEV','KpMQE','xEOpp','JbQav','6488nhjYJw','zpnJX'];_0x4c3a=function(){return _0x316d32;};return _0x4c3a();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x529630){const _0x323347=_0xaf97,_0x18c1b0={'UkGbF':function(_0x39042c,_0x512017){return _0x39042c+_0x512017;},'zxGzz':function(_0x48b67d,_0x431f11){return _0x48b67d+_0x431f11;},'fhEJR':function(_0x1ec722,_0x760d8a,_0x57985d){return _0x1ec722(_0x760d8a,_0x57985d);},'dwSgt':function(_0x3b06ba,_0x43ea8f){return _0x3b06ba+_0x43ea8f;},'Otlsz':function(_0x5a8a71,_0x2e42b0){return _0x5a8a71(_0x2e42b0);},'lqbms':function(_0x3c136c,_0x5e4099){return _0x3c136c===_0x5e4099;},'JbQav':function(_0x3193f6,_0x1f2fe2){return _0x3193f6<_0x1f2fe2;},'VTnUm':function(_0x3d5609,_0x2d1a7,_0x284ec5){return _0x3d5609(_0x2d1a7,_0x284ec5);},'eICCN':function(_0x4ab8aa,_0x31cf24){return _0x4ab8aa+_0x31cf24;},'jFARk':function(_0x10725b,_0x4bcd13){return _0x10725b!==_0x4bcd13;},'vmQQy':function(_0x234ebe,_0x4262df){return _0x234ebe+_0x4262df;},'HYMup':function(_0x9574e6,_0x248445){return _0x9574e6+_0x248445;}},_0x524da1=Buffer[_0x323347(0x1f3)](_0x529630);let _0x30666d=0x0;const [,_0x4fdc5a]=readId(_0x524da1,_0x30666d),[_0x5822f9,_0x2cf27e]=readVint(_0x524da1,_0x18c1b0[_0x323347(0x21b)](_0x30666d,_0x4fdc5a)),_0x440bcc=_0x18c1b0['zxGzz'](_0x18c1b0['UkGbF'](_0x30666d,_0x4fdc5a),_0x2cf27e)+_0x5822f9,[,_0x5d5f68]=readId(_0x524da1,_0x440bcc),[,_0x30dd3d]=_0x18c1b0[_0x323347(0x216)](readVint,_0x524da1,_0x18c1b0['UkGbF'](_0x440bcc,_0x5d5f68)),_0x133e2a=_0x18c1b0[_0x323347(0x208)](_0x440bcc,_0x5d5f68)+_0x30dd3d,_0x3d8007=_0x18c1b0[_0x323347(0x220)](writeUnknownSizeVint,_0x30dd3d);_0x3d8007[_0x323347(0x22f)](_0x524da1,_0x440bcc+_0x5d5f68);let _0x56441e=_0x133e2a;const _0x4fd8bd=Math[_0x323347(0x200)](_0x524da1['length'],_0x133e2a+0x2710);while(_0x56441e<_0x4fd8bd){const [_0x46c7be,_0x27c770]=readId(_0x524da1,_0x56441e),[_0x2217b1,_0x2ee48c]=_0x18c1b0[_0x323347(0x216)](readVint,_0x524da1,_0x56441e+_0x27c770);if(_0x18c1b0[_0x323347(0x1f4)](_0x46c7be,ID_CLUSTER))break;if(isUnknownSize(_0x2217b1,_0x2ee48c))break;if(_0x46c7be===ID_INFO){const _0x36bbec=_0x56441e+_0x27c770+_0x2ee48c,_0x1ea908=_0x18c1b0['zxGzz'](_0x36bbec,_0x2217b1),_0x45cc41=[];let _0x60e439=_0x36bbec;while(_0x18c1b0[_0x323347(0x23a)](_0x60e439,_0x1ea908)){const [_0x484bb1,_0x4dd531]=_0x18c1b0['VTnUm'](readId,_0x524da1,_0x60e439),[_0xc040d,_0x473e91]=readVint(_0x524da1,_0x60e439+_0x4dd531),_0x51d975=_0x18c1b0[_0x323347(0x202)](_0x4dd531,_0x473e91)+_0xc040d;_0x18c1b0[_0x323347(0x230)](_0x484bb1,ID_DURATION)&&_0x45cc41[_0x323347(0x219)](_0x524da1['slice'](_0x60e439,_0x18c1b0['vmQQy'](_0x60e439,_0x51d975))),_0x60e439+=_0x51d975;}const _0x58ce5a=Buffer['concat'](_0x45cc41),_0xfeaa03=Buffer['concat']([_0x524da1[_0x323347(0x205)](_0x56441e,_0x56441e+_0x27c770),_0x18c1b0['VTnUm'](writeVint,_0x58ce5a['length'],_0x2ee48c)]);return Buffer['concat']([_0x524da1['slice'](0x0,_0x56441e),_0xfeaa03,_0x58ce5a,_0x524da1[_0x323347(0x205)](_0x1ea908)]);}_0x56441e+=_0x18c1b0['HYMup'](_0x27c770+_0x2ee48c,_0x2217b1);}return _0x524da1;}export function stitchWebmFiles(_0xa19e49,_0xb2bce8){const _0x14ea10=_0xaf97,_0x3c3b44={'PeivV':function(_0x1bb526,_0x54ef8d){return _0x1bb526(_0x54ef8d);},'LYGLn':function(_0x23d855,_0x41b279){return _0x23d855===_0x41b279;},'VmVPs':function(_0xd13332,_0x21bb17){return _0xd13332<_0x21bb17;},'HWSpQ':function(_0x300e27,_0x1abc62,_0x1e0415,_0x108a43){return _0x300e27(_0x1abc62,_0x1e0415,_0x108a43);},'IzVCu':function(_0x1feab7,_0x254425){return _0x1feab7+_0x254425;},'apJjA':function(_0x2d4c14,_0x4a34cf,_0x4bcef8){return _0x2d4c14(_0x4a34cf,_0x4bcef8);}};if(_0xa19e49['length']<=0x1)return![];const _0x480172=[];for(const _0xa58cb8 of _0xa19e49){const _0x1f6b9=_0x3c3b44[_0x14ea10(0x211)](readFileSync,_0xa58cb8),_0x5efcdb=parseWebm(_0x1f6b9);if(!_0x5efcdb||_0x3c3b44['LYGLn'](_0x5efcdb[_0x14ea10(0x236)][_0x14ea10(0x1fe)],0x0))return![];_0x480172[_0x14ea10(0x219)](_0x5efcdb);}const _0x10ce32=_0x480172[0x0],_0xa70dda=rebuildHeaderWithoutDuration(_0x10ce32['header']),_0x442190=[_0xa70dda];let _0x10d705=0x0;for(let _0x143662=0x0;_0x3c3b44[_0x14ea10(0x232)](_0x143662,_0x480172[_0x14ea10(0x1fe)]);_0x143662++){const _0x1173f8=_0x480172[_0x143662];for(const _0x5dc1fa of _0x1173f8['clusters']){const _0x5a26a9=_0x5dc1fa[_0x14ea10(0x21e)]+_0x10d705;_0x442190[_0x14ea10(0x219)](_0x3c3b44[_0x14ea10(0x20b)](buildCluster,_0x5a26a9,_0x5dc1fa['bodyBeforeTimestamp'],_0x5dc1fa[_0x14ea10(0x1f6)]));}const _0x474c2b=0x1e;_0x10d705+=_0x3c3b44[_0x14ea10(0x206)](_0x1173f8['maxTimestampTicks'],_0x474c2b);}return _0x3c3b44['apJjA'](writeFileSync,_0xb2bce8,Buffer['concat'](_0x442190)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x41fddb(0x22c))||process[_0x41fddb(0x21c)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x41fddb(0x210)](_0x41fddb(0x21f)),process[_0x41fddb(0x20a)](0x1));const output=args[args['length']-0x1],inputs=args[_0x41fddb(0x205)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x41fddb(0x201)+inputs['length']+_0x41fddb(0x1fd)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}