@ranger-testing/ranger-cli 3.1.1 → 3.1.2-alpha.059c7a3-40

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 -1
  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 -1
  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 -1
  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 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2be1a6,_0x1ae15d){const _0x5b0361=_0x43de,_0x1f6bec=_0x2be1a6();while(!![]){try{const _0x26fa75=parseInt(_0x5b0361(0x203))/0x1+parseInt(_0x5b0361(0x1ed))/0x2*(-parseInt(_0x5b0361(0x1e4))/0x3)+parseInt(_0x5b0361(0x1eb))/0x4*(-parseInt(_0x5b0361(0x200))/0x5)+parseInt(_0x5b0361(0x1ee))/0x6*(-parseInt(_0x5b0361(0x1ef))/0x7)+parseInt(_0x5b0361(0x1d9))/0x8*(parseInt(_0x5b0361(0x1e7))/0x9)+parseInt(_0x5b0361(0x1f3))/0xa+-parseInt(_0x5b0361(0x1f6))/0xb*(-parseInt(_0x5b0361(0x1f0))/0xc);if(_0x26fa75===_0x1ae15d)break;else _0x1f6bec['push'](_0x1f6bec['shift']());}catch(_0x2776f0){_0x1f6bec['push'](_0x1f6bec['shift']());}}}(_0x6146,0x4d472));import{existsSync}from'fs';import _0x4bb450 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x43de(_0x85ce75,_0x1cf04b){_0x85ce75=_0x85ce75-0x1d0;const _0x6146b1=_0x6146();let _0x43de5c=_0x6146b1[_0x85ce75];return _0x43de5c;}function _0x6146(){const _0x4285d9=['18cTNnFo','log','local','envBaseUrl','8GehgOW','RANGER_TEST_USERNAME','3260wEWegq','1907316sGHeZY','7LEMPvy','24DlPONQ','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','5903400LbizdI','cdpEndpoint','prompt','143693WTRZCQ','profile','domains','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','UnjLU','baseUrl','UmRbs','Cloud\x20profile\x20(recommended)','`ranger\x20profile\x20add`\x20to\x20create\x20one.','eYyuu','1203630CbZdOW','list','length','128718sfmasp','WJKnf','IxRCz','ChbHu','startPath','xpdxk','VAyLs','MaLAr','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','envStartPath','\x20does\x20not\x20exist.','1528376pTpCjQ','\x20baseUrl\x20<url>','Profile\x20\x22','name','env','cloud','url','PPnZB','evQhj','string','JjHbl','21zVvOKk','xACHh','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'];_0x6146=function(){return _0x4285d9;};return _0x6146();}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x305791){const _0x2a01bc=_0x43de,_0xd51ced={'UmRbs':function(_0x4721c2){return _0x4721c2();},'yoLqL':function(_0x40b611){return _0x40b611();},'cvEhj':function(_0x1a30a6,_0x2c1c46){return _0x1a30a6===_0x2c1c46;},'IxRCz':function(_0x5f3a22,_0xcdf752){return _0x5f3a22+_0xcdf752;},'VAyLs':function(_0x98c68b,_0x9701c8){return _0x98c68b+_0x9701c8;},'eYyuu':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','yhDJN':_0x2a01bc(0x1f2),'JjHbl':function(_0x232c37,_0x1f83f){return _0x232c37(_0x1f83f);},'ChbHu':function(_0x507e94,_0x315949){return _0x507e94(_0x315949);},'xACHh':function(_0x359140,_0x3e4b03){return _0x359140&&_0x3e4b03;},'WJKnf':function(_0x1bdeff,_0x292174){return _0x1bdeff+_0x292174;},'rMIek':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','jNwJq':_0x2a01bc(0x1fe),'tUfcV':function(_0x2e5eb4,_0x469858){return _0x2e5eb4&&_0x469858;},'xpdxk':'source','MaLAr':_0x2a01bc(0x1e9),'EbMHZ':_0x2a01bc(0x1de),'kMEZT':function(_0x1b5329){return _0x1b5329();},'PPnZB':function(_0x2b9892){return _0x2b9892();},'gKpDc':function(_0xb03f71,_0x5bb306){return _0xb03f71(_0x5bb306);},'UnjLU':function(_0x1f88e7,_0x57f8b4){return _0x1f88e7(_0x57f8b4);}},_0x170234=_0x305791['profile'];let _0xd98853=_0x305791[_0x2a01bc(0x1f7)]??await _0xd51ced[_0x2a01bc(0x1fc)](readActiveProfileName),_0x26d5a0=null;if(!_0xd98853&&process['env'][_0x2a01bc(0x1ec)]){const _0x38befe=await _0xd51ced['yoLqL'](resolveAdHocProfile);_0x38befe&&(_0xd98853=_0x38befe[_0x2a01bc(0x1dc)],_0x26d5a0=_0x38befe['profile']);}if(!_0xd98853)try{const _0xcce40=await listCloudProfiles();if(_0xd51ced['cvEhj'](_0xcce40[_0x2a01bc(0x202)],0x1)){const _0x4a86aa=_0xcce40[0x0];_0xd98853=_0x4a86aa['name'],console[_0x2a01bc(0x1e8)](_0x2a01bc(0x1e6)+_0x4a86aa['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0xd98853)throw new Error(_0xd51ced['IxRCz'](_0xd51ced[_0x2a01bc(0x1d0)](_0xd51ced[_0x2a01bc(0x1d4)](_0xd51ced[_0x2a01bc(0x1ff)]+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a',_0x2a01bc(0x1f9)),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),_0xd51ced['yhDJN']));const _0x3842dd=getEnvDir(_0xd98853),_0x48263d=_0xd51ced['JjHbl'](existsSync,_0x3842dd);let _0x5aee20=_0x26d5a0,_0x7bb897=![];if(!_0x5aee20)try{_0x5aee20=await _0xd51ced['ChbHu'](fetchCloudProfile,_0xd98853);if(!_0x5aee20)_0x7bb897=!![];}catch(_0x592e01){_0x592e01 instanceof ApiError&&_0x592e01['status']===0x194&&(_0x7bb897=!![]);}if(_0xd51ced[_0x2a01bc(0x1e5)](_0x170234,_0x7bb897)&&!_0x48263d&&!_0x5aee20)throw new Error(_0xd51ced[_0x2a01bc(0x204)](_0x2a01bc(0x1db)+_0x170234+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0xd51ced['rMIek'])+_0xd51ced['jNwJq']);if(_0xd51ced['tUfcV'](_0x5aee20,_0x48263d)){let _0x5236b4=!![];if(_0xd51ced[_0x2a01bc(0x1fc)](isInteractive)){const {source:_0x302e50}=await _0x4bb450[_0x2a01bc(0x1f5)]([{'type':_0x2a01bc(0x201),'name':_0xd51ced[_0x2a01bc(0x1d3)],'message':_0x2a01bc(0x1db)+_0xd98853+_0x2a01bc(0x1d6),'choices':[{'name':_0x2a01bc(0x1fd),'value':_0x2a01bc(0x1de)},{'name':'Local\x20profile','value':_0xd51ced[_0x2a01bc(0x1d5)]}],'default':_0x2a01bc(0x1de)}]);_0x5236b4=_0x302e50===_0xd51ced['EbMHZ'];}if(!_0x5236b4)_0x5aee20=null;}const _0x5de758=readProfileOverrides(process['cwd'](),_0xd98853);let _0x2e7b21=null,_0x553837,_0x1f136f,_0xf20a28,_0x4fa826,_0x36029b=null,_0x2f6dfe;const _0x39fb7e=_0xd51ced[_0x2a01bc(0x1d1)](expandOverrides,_0x5de758),_0x5e4b3a=_0xd51ced['kMEZT'](readUrlEnvVars);if(_0x5aee20){_0x2e7b21=_0x5aee20;const _0x5d4849=_0x5aee20['settings']??{},_0x384a4a=mergeCloudProfileSettings(_0x5d4849,_0x5de758??undefined),_0x49b29d={..._0x5aee20,'settings':_0x384a4a};_0x36029b={'baseUrl':_0xd51ced[_0x2a01bc(0x1d1)](expandString,_0x5d4849['baseUrl']),'startPath':_0xd51ced[_0x2a01bc(0x1e3)](expandString,_0x5d4849[_0x2a01bc(0x1d2)])};const _0x5b7b0f=await _0xd51ced[_0x2a01bc(0x1e0)](fetchAuthConfig),_0x47f9d2=_0x5b7b0f?resolveAuthEnvironmentLocally(_0x5b7b0f,_0x5aee20['environmentKey']):null;_0x2f6dfe=_0x47f9d2?.['domains']?.[0x0];const _0xdd7646=_0xd51ced['ChbHu'](resolveProfileUrl,{'flagBaseUrl':_0x305791[_0x2a01bc(0x1fb)],'flagStartPath':_0x305791[_0x2a01bc(0x1d2)],'envBaseUrl':_0x5e4b3a[_0x2a01bc(0x1ea)],'envStartPath':_0x5e4b3a[_0x2a01bc(0x1d7)],'projectOverrides':_0x39fb7e,'cloudSettings':_0x36029b,'authEnvironmentDomain':_0x2f6dfe}),_0xfbc80f=process[_0x2a01bc(0x1dd)]['RANGER_SESSION_STATE_PATH'];if(_0xfbc80f){if(!_0xd51ced[_0x2a01bc(0x1d1)](existsSync,_0xfbc80f))throw new Error('RANGER_SESSION_STATE_PATH='+_0xfbc80f+_0x2a01bc(0x1d8));_0x553837=_0xfbc80f,_0x1f136f=resolveEnvVars(_0x384a4a),_0xf20a28=Boolean(_0x1f136f['cdpEndpoint']);}else{const _0x4416af=await resolveCloudProfileSession(_0x49b29d,{'effectiveBaseUrl':_0xdd7646[_0x2a01bc(0x1fb)]});_0x553837=_0x4416af['authPath'],_0x1f136f=resolveEnvVars(_0x4416af['settings']),_0xf20a28=Boolean(_0x1f136f[_0x2a01bc(0x1f4)]),_0x2f6dfe=_0x4416af['resolvedEnv']?.[_0x2a01bc(0x1f8)]?.[0x0];}}else{if(!_0x48263d)throw new Error('Profile\x20\x22'+_0xd98853+_0x2a01bc(0x1f1)+_0xd98853);const _0x16bd4c=await loadSettings(_0xd98853);_0x1f136f=_0xd51ced['gKpDc'](resolveEnvVars,_0x16bd4c),_0xf20a28=Boolean(_0x1f136f[_0x2a01bc(0x1f4)]),_0x4fa826=_0x1f136f['baseUrl'];}const _0x134831=_0xd51ced[_0x2a01bc(0x1fa)](resolveProfileUrl,{'flagBaseUrl':_0x305791[_0x2a01bc(0x1fb)],'flagStartPath':_0x305791[_0x2a01bc(0x1d2)],'envBaseUrl':_0x5e4b3a[_0x2a01bc(0x1ea)],'envStartPath':_0x5e4b3a[_0x2a01bc(0x1d7)],'localSettingsBaseUrl':_0x4fa826,'projectOverrides':_0x39fb7e,'cloudSettings':_0x36029b,'authEnvironmentDomain':_0x2f6dfe}),_0x4da4ef=_0x134831[_0x2a01bc(0x1df)]??_0x134831[_0x2a01bc(0x1fb)];if(_0xd51ced['tUfcV'](!_0x4da4ef,!_0xf20a28))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0xd98853+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0xd98853+_0x2a01bc(0x1da));return{'activeProfile':_0xd98853,'resolvedCloudProfile':_0x2e7b21,'cloudAuthPath':_0x553837,'resolvedSettings':_0x1f136f,'isCdpMode':_0xf20a28,'url':_0x4da4ef,'startPath':_0x134831[_0x2a01bc(0x1d2)]};}function expandString(_0x5a6fba){if(typeof _0x5a6fba!=='string')return _0x5a6fba;return resolveEnvVars(_0x5a6fba);}function expandOverrides(_0x49f73f){const _0x10caa5=_0x43de,_0x357e0b={'evQhj':_0x10caa5(0x1e2),'ecMVX':function(_0x1ec5df,_0x59e34f){return _0x1ec5df===_0x59e34f;}};if(!_0x49f73f)return _0x49f73f;const _0x1b8f6d={..._0x49f73f};return typeof _0x1b8f6d['baseUrl']===_0x357e0b[_0x10caa5(0x1e1)]&&(_0x1b8f6d[_0x10caa5(0x1fb)]=resolveEnvVars(_0x1b8f6d[_0x10caa5(0x1fb)])),_0x357e0b['ecMVX'](typeof _0x1b8f6d['startPath'],_0x357e0b['evQhj'])&&(_0x1b8f6d['startPath']=resolveEnvVars(_0x1b8f6d['startPath'])),_0x1b8f6d;}
1
+ (function(_0x3bab42,_0x1de976){const _0x45e4f9=_0x1fe2,_0x4b604c=_0x3bab42();while(!![]){try{const _0x2904cb=-parseInt(_0x45e4f9(0x174))/0x1+-parseInt(_0x45e4f9(0x18a))/0x2+-parseInt(_0x45e4f9(0x18c))/0x3*(-parseInt(_0x45e4f9(0x197))/0x4)+-parseInt(_0x45e4f9(0x185))/0x5*(parseInt(_0x45e4f9(0x18b))/0x6)+parseInt(_0x45e4f9(0x19b))/0x7*(parseInt(_0x45e4f9(0x176))/0x8)+-parseInt(_0x45e4f9(0x172))/0x9*(-parseInt(_0x45e4f9(0x17f))/0xa)+parseInt(_0x45e4f9(0x178))/0xb*(-parseInt(_0x45e4f9(0x182))/0xc);if(_0x2904cb===_0x1de976)break;else _0x4b604c['push'](_0x4b604c['shift']());}catch(_0x499961){_0x4b604c['push'](_0x4b604c['shift']());}}}(_0x39f6,0x5a6a2));import{existsSync}from'fs';import _0x4f0646 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';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';function _0x1fe2(_0x461060,_0x15d32a){_0x461060=_0x461060-0x16b;const _0x39f6e1=_0x39f6();let _0x1fe2e1=_0x39f6e1[_0x461060];return _0x1fe2e1;}import{readActiveProfileName}from'./activeProfile.js';function _0x39f6(){const _0x1abd65=['EeIWP','174060vncCPq','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','160657JlgLUT','xUiTf','4860808cPomAR','\x20does\x20not\x20exist.','77fYYzzw','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','name','Profile\x20\x22','kNoQC','ElGXS','luRnP','270NklfMW','log','profile','1477524hAvRqG','joEyY','domains','6585cJgShR','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','authPath','settings','KJomY','607632aWtkIR','498UWEzgB','30LxCEHl','QAUMF','resolvedEnv','prompt','aAuVf','CQbCH','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','Cloud\x20profile\x20(recommended)','startPath','string','url','270492JquWGE','RANGER_SESSION_STATE_PATH=','env','envStartPath','7xjnKHf','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','FdqnX','envBaseUrl','baseUrl','environmentKey','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','QpPtY','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'];_0x39f6=function(){return _0x1abd65;};return _0x39f6();}export async function resolveProfileContext(_0x247bca){const _0x9b3141=_0x1fe2,_0x131117={'FKiFA':function(_0xfb50b){return _0xfb50b();},'jBBdR':function(_0xf03329){return _0xf03329();},'gDfzW':function(_0x1cd818,_0x5c4473){return _0x1cd818+_0x5c4473;},'luRnP':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','aZErp':_0x9b3141(0x179),'CQbCH':function(_0x392705,_0xdb5512){return _0x392705(_0xdb5512);},'aAuVf':function(_0x51bd52,_0x2f8693){return _0x51bd52(_0x2f8693);},'vuHjO':function(_0x1d017f,_0x450d33){return _0x1d017f instanceof _0x450d33;},'FdqnX':function(_0x26c1c4,_0x5f14be){return _0x26c1c4===_0x5f14be;},'fqzZr':function(_0x4066ec,_0x1a9bc3){return _0x4066ec+_0x1a9bc3;},'IGrjJ':_0x9b3141(0x170),'joEyY':'source','DlRZx':'Local\x20profile','QAUMF':'local','xUiTf':'cloud','KJomY':function(_0x4badc9,_0x4f60c1){return _0x4badc9(_0x4f60c1);},'QpPtY':function(_0x1b34a2,_0x4ef632,_0x4e6d3f){return _0x1b34a2(_0x4ef632,_0x4e6d3f);},'ElGXS':function(_0x22da39,_0xfa493d){return _0x22da39(_0xfa493d);},'JKQIf':function(_0x2bec29,_0x3606be){return _0x2bec29(_0x3606be);}},_0x5d9886=_0x247bca['profile'];let _0x4d065b=_0x247bca[_0x9b3141(0x181)]??await _0x131117['FKiFA'](readActiveProfileName),_0x740fd2=null;if(!_0x4d065b&&process[_0x9b3141(0x199)]['RANGER_TEST_USERNAME']){const _0x47828d=await resolveAdHocProfile();_0x47828d&&(_0x4d065b=_0x47828d[_0x9b3141(0x17a)],_0x740fd2=_0x47828d['profile']);}if(!_0x4d065b)try{const _0x16253e=await _0x131117['jBBdR'](listCloudProfiles);if(_0x16253e['length']===0x1){const _0x3a2245=_0x16253e[0x0];_0x4d065b=_0x3a2245[_0x9b3141(0x17a)],console[_0x9b3141(0x180)](_0x9b3141(0x16e)+_0x3a2245['name']),console[_0x9b3141(0x180)](_0x9b3141(0x192));}}catch{}if(!_0x4d065b)throw new Error(_0x131117['gDfzW']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x131117[_0x9b3141(0x17e)])+_0x131117['aZErp']+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x9b3141(0x19d));const _0x3abaff=_0x131117[_0x9b3141(0x191)](getEnvDir,_0x4d065b),_0x551244=existsSync(_0x3abaff);let _0x3df394=_0x740fd2,_0x1385e4=![];if(!_0x3df394)try{_0x3df394=await _0x131117[_0x9b3141(0x190)](fetchCloudProfile,_0x4d065b);if(!_0x3df394)_0x1385e4=!![];}catch(_0x3f143c){_0x131117['vuHjO'](_0x3f143c,ApiError)&&_0x131117['FdqnX'](_0x3f143c['status'],0x194)&&(_0x1385e4=!![]);}if(_0x5d9886&&_0x1385e4&&!_0x551244&&!_0x3df394)throw new Error(_0x131117['fqzZr']('Profile\x20\x22'+_0x5d9886+_0x9b3141(0x173)+_0x131117['IGrjJ'],'`ranger\x20profile\x20add`\x20to\x20create\x20one.'));if(_0x3df394&&_0x551244){let _0xb8a0d7=!![];if(isInteractive()){const {source:_0x5cb0da}=await _0x4f0646[_0x9b3141(0x18f)]([{'type':'list','name':_0x131117[_0x9b3141(0x183)],'message':'Profile\x20\x22'+_0x4d065b+_0x9b3141(0x19c),'choices':[{'name':_0x9b3141(0x193),'value':'cloud'},{'name':_0x131117['DlRZx'],'value':_0x131117[_0x9b3141(0x18d)]}],'default':_0x131117[_0x9b3141(0x175)]}]);_0xb8a0d7=_0x131117[_0x9b3141(0x19e)](_0x5cb0da,'cloud');}if(!_0xb8a0d7)_0x3df394=null;}const _0x56061a=readProfileOverrides(process['cwd'](),_0x4d065b);let _0x5bbbae=null,_0x34a5af,_0x2e4bbe,_0x3d3569,_0x1720fb,_0x1ef511=null,_0xbc9dd4;const _0x4dbc93=expandOverrides(_0x56061a),_0x54a1f8=readUrlEnvVars();if(_0x3df394){_0x5bbbae=_0x3df394;const _0x5895ba=_0x3df394[_0x9b3141(0x188)]??{},_0x2cd0c4=mergeCloudProfileSettings(_0x5895ba,_0x56061a??undefined),_0x32c7b9={..._0x3df394,'settings':_0x2cd0c4};_0x1ef511={'baseUrl':_0x131117[_0x9b3141(0x189)](expandString,_0x5895ba['baseUrl']),'startPath':expandString(_0x5895ba['startPath'])};const _0x24d7a2=await fetchAuthConfig(),_0x5f2244=_0x24d7a2?_0x131117[_0x9b3141(0x16f)](resolveAuthEnvironmentLocally,_0x24d7a2,_0x3df394[_0x9b3141(0x16d)]):null;_0xbc9dd4=_0x5f2244?.['domains']?.[0x0];const _0x29c752=resolveProfileUrl({'flagBaseUrl':_0x247bca[_0x9b3141(0x16c)],'flagStartPath':_0x247bca['startPath'],'envBaseUrl':_0x54a1f8[_0x9b3141(0x16b)],'envStartPath':_0x54a1f8['envStartPath'],'projectOverrides':_0x4dbc93,'cloudSettings':_0x1ef511,'authEnvironmentDomain':_0xbc9dd4}),_0x4cf8c3=process[_0x9b3141(0x199)]['RANGER_SESSION_STATE_PATH'];if(_0x4cf8c3){if(!existsSync(_0x4cf8c3))throw new Error(_0x9b3141(0x198)+_0x4cf8c3+_0x9b3141(0x177));_0x34a5af=_0x4cf8c3,_0x2e4bbe=resolveEnvVars(_0x2cd0c4),_0x3d3569=Boolean(_0x2e4bbe['cdpEndpoint']);}else{const _0x9c7f00=await resolveCloudProfileSession(_0x32c7b9,{'effectiveBaseUrl':_0x29c752['baseUrl']});_0x34a5af=_0x9c7f00[_0x9b3141(0x187)],_0x2e4bbe=_0x131117[_0x9b3141(0x17d)](resolveEnvVars,_0x9c7f00['settings']),_0x3d3569=Boolean(_0x2e4bbe['cdpEndpoint']),_0xbc9dd4=_0x9c7f00[_0x9b3141(0x18e)]?.[_0x9b3141(0x184)]?.[0x0];}}else{if(!_0x551244)throw new Error(_0x9b3141(0x17b)+_0x4d065b+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4d065b);const _0x45ce1b=await _0x131117['JKQIf'](loadSettings,_0x4d065b);_0x2e4bbe=_0x131117['ElGXS'](resolveEnvVars,_0x45ce1b),_0x3d3569=Boolean(_0x2e4bbe['cdpEndpoint']),_0x1720fb=_0x2e4bbe[_0x9b3141(0x16c)];}const _0x38e211=resolveProfileUrl({'flagBaseUrl':_0x247bca['baseUrl'],'flagStartPath':_0x247bca['startPath'],'envBaseUrl':_0x54a1f8['envBaseUrl'],'envStartPath':_0x54a1f8[_0x9b3141(0x19a)],'localSettingsBaseUrl':_0x1720fb,'projectOverrides':_0x4dbc93,'cloudSettings':_0x1ef511,'authEnvironmentDomain':_0xbc9dd4}),_0x29a98a=_0x38e211[_0x9b3141(0x196)]??_0x38e211[_0x9b3141(0x16c)];if(!_0x29a98a&&!_0x3d3569)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4d065b+_0x9b3141(0x186)+_0x4d065b+'\x20baseUrl\x20<url>');return{'activeProfile':_0x4d065b,'resolvedCloudProfile':_0x5bbbae,'cloudAuthPath':_0x34a5af,'resolvedSettings':_0x2e4bbe,'isCdpMode':_0x3d3569,'url':_0x29a98a,'startPath':_0x38e211['startPath']};}function expandString(_0x341ac6){const _0x5960f9={'hlSKU':function(_0x26ab36,_0x13d1b7){return _0x26ab36!==_0x13d1b7;}};if(_0x5960f9['hlSKU'](typeof _0x341ac6,'string'))return _0x341ac6;return resolveEnvVars(_0x341ac6);}function expandOverrides(_0x188072){const _0x120c15=_0x1fe2,_0x502d9a={'EeIWP':function(_0x54961f,_0x2700c8){return _0x54961f===_0x2700c8;},'mMOlS':_0x120c15(0x195),'kNoQC':function(_0x5aca3c,_0xc11878){return _0x5aca3c(_0xc11878);}};if(!_0x188072)return _0x188072;const _0xa827e6={..._0x188072};return _0x502d9a[_0x120c15(0x171)](typeof _0xa827e6[_0x120c15(0x16c)],'string')&&(_0xa827e6[_0x120c15(0x16c)]=resolveEnvVars(_0xa827e6['baseUrl'])),typeof _0xa827e6['startPath']===_0x502d9a['mMOlS']&&(_0xa827e6[_0x120c15(0x194)]=_0x502d9a[_0x120c15(0x17c)](resolveEnvVars,_0xa827e6[_0x120c15(0x194)])),_0xa827e6;}
@@ -1 +1 @@
1
- (function(_0x300f99,_0x44bbdb){const _0x3e5c20=_0xc609,_0x4f0ad7=_0x300f99();while(!![]){try{const _0x9f14d7=-parseInt(_0x3e5c20(0x145))/0x1*(-parseInt(_0x3e5c20(0x13c))/0x2)+-parseInt(_0x3e5c20(0x14f))/0x3*(-parseInt(_0x3e5c20(0x13b))/0x4)+parseInt(_0x3e5c20(0x13f))/0x5*(-parseInt(_0x3e5c20(0x14e))/0x6)+-parseInt(_0x3e5c20(0x141))/0x7*(parseInt(_0x3e5c20(0x143))/0x8)+-parseInt(_0x3e5c20(0x13a))/0x9*(-parseInt(_0x3e5c20(0x153))/0xa)+-parseInt(_0x3e5c20(0x150))/0xb+parseInt(_0x3e5c20(0x152))/0xc*(parseInt(_0x3e5c20(0x13d))/0xd);if(_0x9f14d7===_0x44bbdb)break;else _0x4f0ad7['push'](_0x4f0ad7['shift']());}catch(_0x2fa3ce){_0x4f0ad7['push'](_0x4f0ad7['shift']());}}}(_0x3123,0x68994));function firstDefined(..._0x4bed7f){const _0x4f6631={'Ylder':function(_0xcca375,_0x47369b){return _0xcca375!==_0x47369b;}};for(const _0x35e235 of _0x4bed7f){if(_0x35e235!==undefined&&_0x35e235!==null&&_0x4f6631['Ylder'](_0x35e235,''))return _0x35e235;}return undefined;}function _0x3123(){const _0x3851b5=['endsWith','string','cloudSettings','RANGER_START_PATH','QbKQm','flagStartPath','test','https://','41796PybLOD','147HMAvAY','8977540wuUGFQ','envBaseUrl','12gmKiuW','5440qlElJv','startsWith','flagBaseUrl','1728GmXWll','63608ErzDJX','34966hJEXnp','3286049mVhHfl','localSettingsBaseUrl','220chfdJN','baseUrl','7pMoYJA','startPath','1438088tffPsQ','projectOverrides','34vKCBQn'];_0x3123=function(){return _0x3851b5;};return _0x3123();}function normalizeAuthEnvironmentDomain(_0x1d559c){const _0x14cb64=_0xc609;if(!_0x1d559c)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x14cb64(0x14c)](_0x1d559c))return _0x1d559c;return _0x14cb64(0x14d)+_0x1d559c;}function _0xc609(_0x423155,_0x5557bb){_0x423155=_0x423155-0x13a;const _0x312361=_0x3123();let _0xc60915=_0x312361[_0x423155];return _0xc60915;}export function resolveBaseUrl(_0x698c2d){const _0x3787e4=_0xc609,_0x5a1121={'atUId':'baseUrl','nCafc':function(_0xacefc5,_0x1138da){return _0xacefc5===_0x1138da;},'QbKQm':function(_0x292de8,_0xf9b588){return _0x292de8===_0xf9b588;}},_0x5131f3=_0x698c2d[_0x3787e4(0x144)],_0x48b6e8=!!_0x5131f3&&_0x5a1121['atUId']in _0x5131f3,_0x589dc1=_0x5131f3?.[_0x3787e4(0x140)],_0x12cfc4=!(_0x48b6e8&&_0x5a1121['nCafc'](_0x589dc1,null));return firstDefined(_0x698c2d[_0x3787e4(0x155)],_0x698c2d[_0x3787e4(0x151)],_0x698c2d[_0x3787e4(0x13e)],_0x5a1121[_0x3787e4(0x14a)](typeof _0x589dc1,'string')?_0x589dc1:undefined,_0x12cfc4?_0x698c2d[_0x3787e4(0x148)]?.['baseUrl']:undefined,_0x12cfc4?normalizeAuthEnvironmentDomain(_0x698c2d['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x257837){const _0xc10ed3=_0xc609,_0xa553f={'UXBTr':function(_0x1ecb9b,_0x3eabd0){return _0x1ecb9b in _0x3eabd0;},'VEVxN':_0xc10ed3(0x142)},_0x4a3e67=_0x257837[_0xc10ed3(0x144)],_0x1f47ec=!!_0x4a3e67&&_0xa553f['UXBTr'](_0xa553f['VEVxN'],_0x4a3e67),_0x22ab1e=_0x4a3e67?.['startPath'],_0x47c983=!(_0x1f47ec&&_0x22ab1e===null);return firstDefined(_0x257837[_0xc10ed3(0x14b)],_0x257837['envStartPath'],typeof _0x22ab1e===_0xc10ed3(0x147)?_0x22ab1e:undefined,_0x47c983?_0x257837[_0xc10ed3(0x148)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x17b5ec,_0x513d45){const _0x4662b1=_0xc609;if(!_0x17b5ec)return undefined;if(!_0x513d45)return _0x17b5ec;const _0x487519=_0x17b5ec[_0x4662b1(0x146)]('/')?_0x17b5ec['slice'](0x0,-0x1):_0x17b5ec,_0x210767=_0x513d45[_0x4662b1(0x154)]('/')?_0x513d45:'/'+_0x513d45;return _0x487519+_0x210767;}export function resolveProfileUrl(_0x24fec8){const _0x4bcab7={'kZdqv':function(_0x14f378,_0x385d40){return _0x14f378(_0x385d40);},'pZtya':function(_0x583ddf,_0x2b3d48,_0x1a7907){return _0x583ddf(_0x2b3d48,_0x1a7907);}},_0x4f3118=_0x4bcab7['kZdqv'](resolveBaseUrl,_0x24fec8),_0x11e42d=resolveStartPath(_0x24fec8);return{'baseUrl':_0x4f3118,'startPath':_0x11e42d,'url':_0x4bcab7['pZtya'](joinBaseAndPath,_0x4f3118,_0x11e42d)};}export function readUrlEnvVars(_0x49c89f=process['env']){const _0x52d526=_0xc609;return{'envBaseUrl':_0x49c89f['RANGER_BASE_URL'],'envStartPath':_0x49c89f[_0x52d526(0x149)]};}
1
+ (function(_0x2973d0,_0x29f054){const _0x584250=_0x352d,_0x362c40=_0x2973d0();while(!![]){try{const _0x37464b=parseInt(_0x584250(0x1be))/0x1*(-parseInt(_0x584250(0x1cd))/0x2)+-parseInt(_0x584250(0x1c4))/0x3*(-parseInt(_0x584250(0x1ca))/0x4)+-parseInt(_0x584250(0x1c7))/0x5+-parseInt(_0x584250(0x1c3))/0x6*(-parseInt(_0x584250(0x1c2))/0x7)+parseInt(_0x584250(0x1d4))/0x8*(-parseInt(_0x584250(0x1d2))/0x9)+-parseInt(_0x584250(0x1da))/0xa+parseInt(_0x584250(0x1d7))/0xb*(parseInt(_0x584250(0x1d9))/0xc);if(_0x37464b===_0x29f054)break;else _0x362c40['push'](_0x362c40['shift']());}catch(_0x481550){_0x362c40['push'](_0x362c40['shift']());}}}(_0x33ab,0xbb4bb));function _0x352d(_0x3756d4,_0x2508e6){_0x3756d4=_0x3756d4-0x1bd;const _0x33ab40=_0x33ab();let _0x352d5b=_0x33ab40[_0x3756d4];return _0x352d5b;}function firstDefined(..._0x326127){const _0x4dc182=_0x352d,_0x2db25b={'BvggV':function(_0x229eba,_0x4f8b0d){return _0x229eba!==_0x4f8b0d;},'PnXdW':function(_0x5a78d0,_0x10b1d8){return _0x5a78d0!==_0x10b1d8;}};for(const _0x2b295c of _0x326127){if(_0x2db25b[_0x4dc182(0x1cb)](_0x2b295c,undefined)&&_0x2b295c!==null&&_0x2db25b[_0x4dc182(0x1d0)](_0x2b295c,''))return _0x2b295c;}return undefined;}function normalizeAuthEnvironmentDomain(_0x57d975){const _0x10b8f1=_0x352d;if(!_0x57d975)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x57d975))return _0x57d975;return _0x10b8f1(0x1bf)+_0x57d975;}export function resolveBaseUrl(_0x56b340){const _0x190649=_0x352d,_0x53c78c={'upHsj':function(_0x136c6c,_0x42e237){return _0x136c6c in _0x42e237;},'IUwin':function(_0x49bf3a,_0x305e94){return _0x49bf3a===_0x305e94;},'nCpmj':function(_0x167934,_0x4a34bb){return _0x167934(_0x4a34bb);}},_0x123ead=_0x56b340['projectOverrides'],_0x59e333=!!_0x123ead&&_0x53c78c[_0x190649(0x1c8)](_0x190649(0x1d1),_0x123ead),_0x567d9c=_0x123ead?.[_0x190649(0x1d1)],_0x4b65b5=!(_0x59e333&&_0x53c78c['IUwin'](_0x567d9c,null));return firstDefined(_0x56b340[_0x190649(0x1d5)],_0x56b340[_0x190649(0x1cf)],_0x56b340['localSettingsBaseUrl'],typeof _0x567d9c===_0x190649(0x1db)?_0x567d9c:undefined,_0x4b65b5?_0x56b340['cloudSettings']?.['baseUrl']:undefined,_0x4b65b5?_0x53c78c['nCpmj'](normalizeAuthEnvironmentDomain,_0x56b340['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x582842){const _0x4a4427=_0x352d,_0x4dee34={'lcRWe':function(_0x123cdc,_0x63ec9a){return _0x123cdc in _0x63ec9a;},'vcoEO':function(_0x54f086,_0x3eb74d){return _0x54f086===_0x3eb74d;},'fwKSl':'string'},_0x58e8b5=_0x582842['projectOverrides'],_0x527e73=!!_0x58e8b5&&_0x4dee34[_0x4a4427(0x1d3)](_0x4a4427(0x1c6),_0x58e8b5),_0x7801cd=_0x58e8b5?.[_0x4a4427(0x1c6)],_0xf7f482=!(_0x527e73&&_0x4dee34[_0x4a4427(0x1c0)](_0x7801cd,null));return firstDefined(_0x582842[_0x4a4427(0x1d6)],_0x582842[_0x4a4427(0x1cc)],typeof _0x7801cd===_0x4dee34['fwKSl']?_0x7801cd:undefined,_0xf7f482?_0x582842[_0x4a4427(0x1bd)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x1ef2b2,_0x15f185){const _0xd3b189=_0x352d,_0x2180b9={'gLfyB':function(_0x7df68d,_0x272fdf){return _0x7df68d+_0x272fdf;}};if(!_0x1ef2b2)return undefined;if(!_0x15f185)return _0x1ef2b2;const _0x21e428=_0x1ef2b2['endsWith']('/')?_0x1ef2b2[_0xd3b189(0x1c1)](0x0,-0x1):_0x1ef2b2,_0x251d3a=_0x15f185[_0xd3b189(0x1c5)]('/')?_0x15f185:_0x2180b9['gLfyB']('/',_0x15f185);return _0x2180b9[_0xd3b189(0x1ce)](_0x21e428,_0x251d3a);}export function resolveProfileUrl(_0x49bc40){const _0x105e1d=_0x352d,_0x4bc73e={'nAiSU':function(_0x1d5807,_0xc6a086){return _0x1d5807(_0xc6a086);}},_0x3a435e=_0x4bc73e[_0x105e1d(0x1c9)](resolveBaseUrl,_0x49bc40),_0x16a31b=_0x4bc73e[_0x105e1d(0x1c9)](resolveStartPath,_0x49bc40);return{'baseUrl':_0x3a435e,'startPath':_0x16a31b,'url':joinBaseAndPath(_0x3a435e,_0x16a31b)};}function _0x33ab(){const _0x1f6f0f=['vcoEO','slice','4438056RAdJmy','6zZqpVh','3skXKiP','startsWith','startPath','277425lXgrOc','upHsj','nAiSU','4589804oNLozc','BvggV','envStartPath','55282CKQdmp','gLfyB','envBaseUrl','PnXdW','baseUrl','11156337qlIwgt','lcRWe','8vIqdTH','flagBaseUrl','flagStartPath','17699xfKBCI','RANGER_BASE_URL','12588STpFOJ','6607520BDgjsD','string','cloudSettings','27XekGCE','https://'];_0x33ab=function(){return _0x1f6f0f;};return _0x33ab();}export function readUrlEnvVars(_0x506de2=process['env']){const _0x5f3b65=_0x352d;return{'envBaseUrl':_0x506de2[_0x5f3b65(0x1d8)],'envStartPath':_0x506de2['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- (function(_0x2a082d,_0x4861ab){const _0x19902a=_0x107f,_0x2b333e=_0x2a082d();while(!![]){try{const _0x41b603=parseInt(_0x19902a(0xa2))/0x1*(parseInt(_0x19902a(0xa5))/0x2)+parseInt(_0x19902a(0xa4))/0x3*(-parseInt(_0x19902a(0x9b))/0x4)+parseInt(_0x19902a(0xa1))/0x5+parseInt(_0x19902a(0xa6))/0x6+-parseInt(_0x19902a(0x9e))/0x7+parseInt(_0x19902a(0x9c))/0x8+-parseInt(_0x19902a(0xa0))/0x9*(parseInt(_0x19902a(0xa3))/0xa);if(_0x41b603===_0x4861ab)break;else _0x2b333e['push'](_0x2b333e['shift']());}catch(_0x52884c){_0x2b333e['push'](_0x2b333e['shift']());}}}(_0x30b3,0x4fee0));function _0x107f(_0x491dd4,_0x5e61fb){_0x491dd4=_0x491dd4-0x96;const _0x30b32b=_0x30b3();let _0x107f2c=_0x30b32b[_0x491dd4];return _0x107f2c;}function _0x30b3(){const _0x37a4eb=['oKTfz','484650vTGfVz','2279150TdyEtc','517116kJtkFx','130UghXTG','8718VNJhmS','2rbkmRN','3829428pxhArF','JEpxh','ms...','),\x20retrying\x20in\x20','\x20failed\x20(attempt\x20','efaWk','524kndTIc','3464928AiiMgS','label','4453204aCqtAd'];_0x30b3=function(){return _0x37a4eb;};return _0x30b3();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4645ae,_0x3504d0){const _0x2d1eb3=_0x107f,_0x1fadbb={'mwbZi':function(_0x2cb998,_0xb8bc9){return _0x2cb998<=_0xb8bc9;},'efaWk':function(_0x457c94,_0x26f7ed){return _0x457c94(_0x26f7ed);},'oKTfz':function(_0x5be379,_0x49b3f5){return _0x5be379<_0x49b3f5;},'JEpxh':function(_0x90ddeb,_0x275b5c){return _0x90ddeb+_0x275b5c;}},_0x3e7808=_0x3504d0?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x1b3920=_0x3504d0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x573f79;for(let _0x3970be=0x0;_0x1fadbb['mwbZi'](_0x3970be,_0x3e7808);_0x3970be++){try{return await _0x4645ae();}catch(_0x1d80e9){_0x573f79=_0x1d80e9 instanceof Error?_0x1d80e9:new Error(_0x1fadbb[_0x2d1eb3(0x9a)](String,_0x1d80e9));if(_0x1fadbb[_0x2d1eb3(0x9f)](_0x3970be,_0x3e7808)){const _0x50e301=_0x1b3920*Math['pow'](0x2,_0x3970be);_0x3504d0?.['label']&&console['error'](_0x3504d0[_0x2d1eb3(0x9d)]+_0x2d1eb3(0x99)+(_0x3970be+0x1)+'/'+_0x1fadbb[_0x2d1eb3(0x96)](_0x3e7808,0x1)+_0x2d1eb3(0x98)+_0x50e301+_0x2d1eb3(0x97)),await new Promise(_0x2b7573=>setTimeout(_0x2b7573,_0x50e301));}}}throw _0x573f79;}
1
+ function _0x5cca(_0x2427ef,_0x490185){_0x2427ef=_0x2427ef-0x99;const _0x5c8c0d=_0x5c8c();let _0x5cca21=_0x5c8c0d[_0x2427ef];return _0x5cca21;}(function(_0x536716,_0x2059d8){const _0x22e98e=_0x5cca,_0x38471d=_0x536716();while(!![]){try{const _0x3cb535=parseInt(_0x22e98e(0xa2))/0x1*(-parseInt(_0x22e98e(0xa9))/0x2)+-parseInt(_0x22e98e(0x9d))/0x3*(-parseInt(_0x22e98e(0x9a))/0x4)+parseInt(_0x22e98e(0xac))/0x5*(-parseInt(_0x22e98e(0xa6))/0x6)+-parseInt(_0x22e98e(0x9e))/0x7+parseInt(_0x22e98e(0xa8))/0x8*(parseInt(_0x22e98e(0xa1))/0x9)+parseInt(_0x22e98e(0xa5))/0xa*(-parseInt(_0x22e98e(0x99))/0xb)+-parseInt(_0x22e98e(0xab))/0xc*(-parseInt(_0x22e98e(0xa0))/0xd);if(_0x3cb535===_0x2059d8)break;else _0x38471d['push'](_0x38471d['shift']());}catch(_0x1837eb){_0x38471d['push'](_0x38471d['shift']());}}}(_0x5c8c,0xed6c1));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x5c8c(){const _0xf10da1=['33489BjIFvC','121621lMcbpu','pcYAq','),\x20retrying\x20in\x20','20OBGLsa','23364CFJqTi','label','1096asZLzo','2OxyKXu','ms...','1740HtXUDY','2290AqBarH','7037305eCxFGn','8zSbXSB','maxRetries','error','1959387KCZaAh','9194857oxHpZO','\x20failed\x20(attempt\x20','327652jqekXY'];_0x5c8c=function(){return _0xf10da1;};return _0x5c8c();}export async function withRetry(_0x233448,_0x46e080){const _0x317299=_0x5cca,_0x2c2946={'XPILA':function(_0x38e14c,_0x269a38){return _0x38e14c(_0x269a38);},'pcYAq':function(_0x119507,_0x3cf63c){return _0x119507<_0x3cf63c;}},_0x4d450d=_0x46e080?.[_0x317299(0x9b)]??DEFAULT_MAX_RETRIES,_0x317fea=_0x46e080?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3f0db9;for(let _0x1832ba=0x0;_0x1832ba<=_0x4d450d;_0x1832ba++){try{return await _0x233448();}catch(_0x14b2db){_0x3f0db9=_0x14b2db instanceof Error?_0x14b2db:new Error(_0x2c2946['XPILA'](String,_0x14b2db));if(_0x2c2946[_0x317299(0xa3)](_0x1832ba,_0x4d450d)){const _0x3bb509=_0x317fea*Math['pow'](0x2,_0x1832ba);_0x46e080?.[_0x317299(0xa7)]&&console[_0x317299(0x9c)](_0x46e080['label']+_0x317299(0x9f)+(_0x1832ba+0x1)+'/'+(_0x4d450d+0x1)+_0x317299(0xa4)+_0x3bb509+_0x317299(0xaa)),await new Promise(_0x10d78e=>setTimeout(_0x10d78e,_0x3bb509));}}}throw _0x3f0db9;}
@@ -1 +1 @@
1
- const _0xaa40b8=_0x4b62;(function(_0x4c58fb,_0x3197fd){const _0x5d2521=_0x4b62,_0x48fb1a=_0x4c58fb();while(!![]){try{const _0x5deb2e=-parseInt(_0x5d2521(0xcf))/0x1*(parseInt(_0x5d2521(0xae))/0x2)+parseInt(_0x5d2521(0xa3))/0x3*(parseInt(_0x5d2521(0xaf))/0x4)+parseInt(_0x5d2521(0xab))/0x5+-parseInt(_0x5d2521(0xa0))/0x6*(parseInt(_0x5d2521(0xaa))/0x7)+-parseInt(_0x5d2521(0xb8))/0x8+-parseInt(_0x5d2521(0xc2))/0x9+parseInt(_0x5d2521(0xa1))/0xa;if(_0x5deb2e===_0x3197fd)break;else _0x48fb1a['push'](_0x48fb1a['shift']());}catch(_0x15ec65){_0x48fb1a['push'](_0x48fb1a['shift']());}}}(_0x2817,0x409f8));import*as _0x1bfd68 from'fs';import*as _0x44539b from'path';function _0x2817(){const _0x4f50a5=['HxhOG','prompted','16yIuknb','4vKNRNZ','poURA','branches','oadOb','master','QVBXi','upPUE','.ranger_cache.json','enabled','226184OIiOjJ','sessions','lastStopReminderAt','HEAD','existsSync','hOhPy','bvzQS','now','stringify','dRgUx','712341cNveqf','lastEnabledSessionClearedAt','TNdAw','mouIL','hrrKE','YuNFW','featureId','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lJybJ','uFXiw','ipvFC','utf-8','toISOString','12326RMXzZt','CXJcC','McBky','1368OGGmfn','760770kIhoBJ','lastPlanReminderAt','668238WxeCnO','homedir','clear','rsQDT','currentBranch','main','xrkCw','4011bQEZMM','1512735ObAhfS'];_0x2817=function(){return _0x4f50a5;};return _0x2817();}import*as _0x4d0592 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x44539b['join'](_0x4d0592[_0xaa40b8(0xa4)](),'.claude',_0xaa40b8(0xb6));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ba595=_0xaa40b8,_0x552495={'McBky':_0x3ba595(0xcd),'mouIL':function(_0x2cec4f){return _0x2cec4f();}};try{if(_0x1bfd68['existsSync'](CACHE_FILE)){const _0x417690=JSON['parse'](_0x1bfd68['readFileSync'](CACHE_FILE,_0x552495[_0x3ba595(0x9f)]));return{'version':0x3,'sessions':_0x417690['sessions']||{},'branches':_0x417690['branches']||{},'lastEnabledSessionClearedAt':_0x417690[_0x3ba595(0xc3)]};}}catch{}return _0x552495[_0x3ba595(0xc5)](createEmptyCache);}function saveCache(_0x10d9ad){const _0x1a8671=_0xaa40b8;try{const _0x5adb03=_0x44539b['dirname'](CACHE_FILE);!_0x1bfd68[_0x1a8671(0xbc)](_0x5adb03)&&_0x1bfd68['mkdirSync'](_0x5adb03,{'recursive':!![]}),_0x1bfd68['writeFileSync'](CACHE_FILE,JSON[_0x1a8671(0xc0)](_0x10d9ad,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58f467=_0xaa40b8,_0x323747={'pfvVy':function(_0x4b1f3c,_0x3cb0e4,_0x3a9c5d){return _0x4b1f3c(_0x3cb0e4,_0x3a9c5d);},'lJybJ':_0x58f467(0xc9),'poURA':_0x58f467(0xcd),'HVBJe':'pipe','ipvFC':function(_0x1f614e,_0x563304){return _0x1f614e===_0x563304;},'yuLTH':_0x58f467(0xbb)};try{const _0x473495=_0x323747['pfvVy'](execSync,_0x323747[_0x58f467(0xca)],{'encoding':_0x323747[_0x58f467(0xb0)],'stdio':[_0x323747['HVBJe'],_0x323747['HVBJe'],'pipe']})['trim']();if(!_0x473495||_0x323747[_0x58f467(0xcc)](_0x473495,_0x323747['yuLTH']))return null;return _0x473495;}catch{return null;}}export function enableBranch(_0x53c84a){const _0x2007f7=loadCache();_0x2007f7['branches'][_0x53c84a]=!![],saveCache(_0x2007f7);}export function disableBranch(_0x2c9958){const _0x4bbc94=_0xaa40b8,_0x288be1=loadCache();delete _0x288be1[_0x4bbc94(0xb1)][_0x2c9958],saveCache(_0x288be1);}export function isBranchEnabled(_0xa706c9){const _0x142bbe={'BCVgH':function(_0x4e4743,_0x55a0e0){return _0x4e4743===_0x55a0e0;}},_0x423bd6=loadCache();return _0x142bbe['BCVgH'](_0x423bd6['branches'][_0xa706c9],!![]);}function getOrCreateSession(_0x585051,_0x3a246f){const _0xbbd101=_0xaa40b8;return!_0x585051[_0xbbd101(0xb9)][_0x3a246f]&&(_0x585051[_0xbbd101(0xb9)][_0x3a246f]={}),_0x585051['sessions'][_0x3a246f];}export function enableSession(_0x236600){const _0x34f5b4=_0xaa40b8,_0x137144={'etqGa':function(_0x471d74){return _0x471d74();},'MscOh':function(_0x49d9d0,_0xf344fa){return _0x49d9d0!==_0xf344fa;}},_0x3ee0dc=_0x137144['etqGa'](loadCache),_0x7053f8=getOrCreateSession(_0x3ee0dc,_0x236600);_0x7053f8[_0x34f5b4(0xb7)]=!![];const _0x27d116=getCurrentBranch();_0x27d116&&_0x27d116!=='main'&&_0x137144['MscOh'](_0x27d116,'master')&&(_0x3ee0dc['branches'][_0x27d116]=!![],_0x7053f8['currentBranch']=_0x27d116),saveCache(_0x3ee0dc);}export function isSessionEnabled(_0x54e94c){const _0x17c4e6=_0xaa40b8,_0x16b28f={'XXJku':function(_0x1b7756){return _0x1b7756();},'sKORc':_0x17c4e6(0xa8),'rxzSe':'master','uFXiw':function(_0x42beb6,_0xec8228){return _0x42beb6===_0xec8228;},'YuNFW':function(_0x5bc41f,_0x3c5923){return _0x5bc41f||_0x3c5923;}},_0x5905b=_0x16b28f['XXJku'](loadCache),_0xca6cc9=getCurrentBranch();if(!_0xca6cc9||_0xca6cc9===_0x16b28f['sKORc']||_0xca6cc9===_0x16b28f['rxzSe'])return _0x5905b[_0x17c4e6(0xb9)][_0x54e94c]?.[_0x17c4e6(0xb7)]===!![];const _0x5bd32f=_0x16b28f[_0x17c4e6(0xcb)](_0x5905b[_0x17c4e6(0xb1)][_0xca6cc9],!![]),_0x319f53=_0x5905b[_0x17c4e6(0xb9)][_0x54e94c]?.['enabled']===!![];return _0x16b28f[_0x17c4e6(0xc7)](_0x5bd32f,_0x319f53);}export function disableSession(_0x24445d){const _0x12fe5a=_0xaa40b8,_0x3be05c={'xrkCw':function(_0x37d001,_0x55d749){return _0x37d001(_0x55d749);}},_0x12b1f7=loadCache(),_0x190f1c=getOrCreateSession(_0x12b1f7,_0x24445d);_0x190f1c['enabled']=![],_0x3be05c[_0x12fe5a(0xa9)](saveCache,_0x12b1f7);}export function updateBranchTracking(_0xa7c70c){const _0x18e353=_0xaa40b8,_0x49b7c9={'HxhOG':function(_0x1a5e46){return _0x1a5e46();},'QVBXi':function(_0x7e08c1,_0x9b1a48){return _0x7e08c1===_0x9b1a48;},'rsQDT':'master','TNdAw':function(_0xa84649,_0x3cc323){return _0xa84649!==_0x3cc323;}},_0x535f1f=_0x49b7c9[_0x18e353(0xac)](loadCache),_0xef92ab=_0x535f1f[_0x18e353(0xb9)][_0xa7c70c];if(!_0xef92ab?.['enabled'])return;const _0x263491=getCurrentBranch();if(!_0x263491||_0x263491===_0x18e353(0xa8)||_0x49b7c9[_0x18e353(0xb4)](_0x263491,_0x49b7c9[_0x18e353(0xa6)]))return;_0x49b7c9[_0x18e353(0xc4)](_0xef92ab['currentBranch'],_0x263491)&&(_0x535f1f['branches'][_0x263491]=!![],_0xef92ab['currentBranch']=_0x263491,saveCache(_0x535f1f));}function _0x4b62(_0x2897b1,_0x5c6eac){_0x2897b1=_0x2897b1-0x9e;const _0x2817d6=_0x2817();let _0x4b62fb=_0x2817d6[_0x2897b1];return _0x4b62fb;}export function initBranchTracking(_0x4d37ff){const _0x5d5597=_0xaa40b8,_0x1b801c={'hOhPy':function(_0x3e6b69){return _0x3e6b69();},'tpwER':function(_0x540038,_0x2dc22d){return _0x540038===_0x2dc22d;}},_0x32acc7=_0x1b801c[_0x5d5597(0xbd)](loadCache),_0x3a0335=getCurrentBranch();if(!_0x3a0335||_0x3a0335===_0x5d5597(0xa8)||_0x1b801c['tpwER'](_0x3a0335,'master'))return;if(_0x32acc7['branches'][_0x3a0335]===!![]){const _0x35d694=getOrCreateSession(_0x32acc7,_0x4d37ff);_0x35d694[_0x5d5597(0xb7)]=!![],_0x35d694['currentBranch']=_0x3a0335,saveCache(_0x32acc7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4147b4){const _0x34e781=_0xaa40b8,_0x4b76d3=loadCache(),_0x809b65=_0x4b76d3[_0x34e781(0xb9)][_0x4147b4];_0x809b65?.['enabled']&&(_0x4b76d3[_0x34e781(0xc3)]=Date[_0x34e781(0xbf)](),saveCache(_0x4b76d3));}export function shouldAutoEnableAfterClear(_0x534d7a){const _0x2b2f8e=_0xaa40b8,_0x250aba={'xEfqw':function(_0x3a8632){return _0x3a8632();},'zglFo':function(_0x5429b5,_0x23c82a){return _0x5429b5<=_0x23c82a;}};if(_0x534d7a!==_0x2b2f8e(0xa5))return![];const _0x13746b=_0x250aba['xEfqw'](loadCache),_0x44455e=_0x13746b['lastEnabledSessionClearedAt'];if(!_0x44455e)return![];const _0x484263=Date['now']()-_0x44455e;return _0x250aba['zglFo'](_0x484263,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xcd7435){const _0x36db33=_0xaa40b8,_0x1c0fe9={'dRgUx':function(_0x124031){return _0x124031();},'oadOb':function(_0x45e706){return _0x45e706();},'jzPtY':_0x36db33(0xb3)},_0x2b9d94=_0x1c0fe9[_0x36db33(0xc1)](loadCache),_0x2fe751=getOrCreateSession(_0x2b9d94,_0xcd7435);_0x2fe751[_0x36db33(0xb7)]=!![];const _0x2da64c=_0x1c0fe9[_0x36db33(0xb2)](getCurrentBranch);_0x2da64c&&_0x2da64c!=='main'&&_0x2da64c!==_0x1c0fe9['jzPtY']&&(_0x2fe751[_0x36db33(0xa7)]=_0x2da64c),delete _0x2b9d94['lastEnabledSessionClearedAt'],saveCache(_0x2b9d94);}export function registerSession(_0x4c8735,_0x5f1850){const _0xb3a60e=_0xaa40b8,_0x5049b5={'MuSfl':function(_0x2c4f3b){return _0x2c4f3b();},'WteGx':function(_0x4e3623,_0x11b0a6,_0x259b17){return _0x4e3623(_0x11b0a6,_0x259b17);}},_0x13c299=_0x5049b5['MuSfl'](loadCache),_0x2cc5f2=_0x5049b5['WteGx'](getOrCreateSession,_0x13c299,_0x4c8735);_0x2cc5f2['featureId']=_0x5f1850,_0x2cc5f2['registeredAt']=new Date()[_0xb3a60e(0xce)](),saveCache(_0x13c299);}export function getSessionEntry(_0x1ef64f){const _0x11e3d8=_0xaa40b8,_0x1df92d=loadCache(),_0x1786d6=_0x1df92d[_0x11e3d8(0xb9)][_0x1ef64f];if(_0x1786d6?.['featureId']&&_0x1786d6?.['registeredAt'])return{'featureId':_0x1786d6[_0x11e3d8(0xc8)],'registeredAt':_0x1786d6['registeredAt']};return null;}export function unregisterSession(_0x13fd5c){const _0x31b427=_0xaa40b8,_0x53659c={'hrrKE':function(_0x83f148){return _0x83f148();},'uVXIT':function(_0x318f02,_0x2f515e){return _0x318f02(_0x2f515e);}},_0x5cf67f=_0x53659c[_0x31b427(0xc6)](loadCache),_0x383b05=_0x5cf67f[_0x31b427(0xb9)][_0x13fd5c];_0x383b05&&(delete _0x383b05['featureId'],delete _0x383b05['registeredAt'],_0x53659c['uVXIT'](saveCache,_0x5cf67f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3976b6){const _0x3816d8=_0xaa40b8,_0x459efd={'CXJcC':function(_0x327018,_0x40eea9,_0x38af51){return _0x327018(_0x40eea9,_0x38af51);},'HlzBJ':function(_0xeac8c6,_0x26e2b2){return _0xeac8c6-_0x26e2b2;}},_0x5ab15b=loadCache(),_0x11e298=_0x459efd[_0x3816d8(0x9e)](getOrCreateSession,_0x5ab15b,_0x3976b6),_0x3c912f=_0x11e298[_0x3816d8(0xa2)]||0x0,_0x1e7d1d=Date[_0x3816d8(0xbf)]();if(_0x459efd['HlzBJ'](_0x1e7d1d,_0x3c912f)>=PLAN_REMINDER_INTERVAL_MS)return _0x11e298[_0x3816d8(0xa2)]=_0x1e7d1d,saveCache(_0x5ab15b),!![];return![];}export function shouldShowStopReminder(_0x23922c){const _0xcebc95=_0xaa40b8,_0x26f8a7={'bvzQS':function(_0x381e96){return _0x381e96();},'eWrUC':function(_0xe93d17,_0x9fa718,_0x500c17){return _0xe93d17(_0x9fa718,_0x500c17);},'ifUAq':function(_0x32a740,_0x3032e1){return _0x32a740>=_0x3032e1;},'LbSfY':function(_0x5e8df5,_0x2e1750){return _0x5e8df5-_0x2e1750;}},_0x3867ba=_0x26f8a7[_0xcebc95(0xbe)](loadCache),_0x37b062=_0x26f8a7['eWrUC'](getOrCreateSession,_0x3867ba,_0x23922c),_0x16beb6=_0x37b062['lastStopReminderAt']||0x0,_0x3a47c4=Date['now']();if(_0x26f8a7['ifUAq'](_0x26f8a7['LbSfY'](_0x3a47c4,_0x16beb6),STOP_REMINDER_INTERVAL_MS))return _0x37b062[_0xcebc95(0xba)]=_0x3a47c4,saveCache(_0x3867ba),!![];return![];}export function hasSessionBeenPrompted(_0xe6924e){const _0x45207c={'sAaKy':function(_0x401d08,_0x381706){return _0x401d08===_0x381706;}},_0x4aee07=loadCache();return _0x45207c['sAaKy'](_0x4aee07['sessions'][_0xe6924e]?.['prompted'],!![]);}export function markSessionPrompted(_0x5180e6){const _0x4e218c=_0xaa40b8,_0x1f264d={'upPUE':function(_0x316f73){return _0x316f73();},'meLcS':function(_0x3cef45,_0x901e1b,_0x37f33b){return _0x3cef45(_0x901e1b,_0x37f33b);}},_0x1154a8=_0x1f264d[_0x4e218c(0xb5)](loadCache),_0x3b5a53=_0x1f264d['meLcS'](getOrCreateSession,_0x1154a8,_0x5180e6);_0x3b5a53[_0x4e218c(0xad)]=!![],saveCache(_0x1154a8);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x1847b2=_0x4723;(function(_0x18e435,_0x4d4c64){const _0x1fb6b6=_0x4723,_0x4a20bd=_0x18e435();while(!![]){try{const _0x16687b=parseInt(_0x1fb6b6(0xda))/0x1+-parseInt(_0x1fb6b6(0xb2))/0x2+parseInt(_0x1fb6b6(0xad))/0x3*(parseInt(_0x1fb6b6(0xb3))/0x4)+-parseInt(_0x1fb6b6(0xb4))/0x5*(-parseInt(_0x1fb6b6(0xbe))/0x6)+-parseInt(_0x1fb6b6(0xcb))/0x7+parseInt(_0x1fb6b6(0xdc))/0x8+-parseInt(_0x1fb6b6(0xd7))/0x9;if(_0x16687b===_0x4d4c64)break;else _0x4a20bd['push'](_0x4a20bd['shift']());}catch(_0x2d8002){_0x4a20bd['push'](_0x4a20bd['shift']());}}}(_0x487a,0x436c6));import*as _0x1a8a80 from'fs';import*as _0x281bda from'path';import*as _0x28838d from'os';import{execSync}from'child_process';function _0x4723(_0x401d77,_0x2a3b0b){_0x401d77=_0x401d77-0xad;const _0x487acc=_0x487a();let _0x47239f=_0x487acc[_0x401d77];return _0x47239f;}const CACHE_FILE=_0x281bda['join'](_0x28838d[_0x1847b2(0xbc)](),'.claude',_0x1847b2(0xb0));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x31b541=_0x1847b2;try{if(_0x1a8a80['existsSync'](CACHE_FILE)){const _0x1f2b6f=JSON[_0x31b541(0xc4)](_0x1a8a80['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x1f2b6f['sessions']||{},'branches':_0x1f2b6f[_0x31b541(0xc6)]||{},'lastEnabledSessionClearedAt':_0x1f2b6f['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x3b1fbf){const _0x5cc8b3=_0x1847b2;try{const _0x56707f=_0x281bda[_0x5cc8b3(0xb6)](CACHE_FILE);!_0x1a8a80[_0x5cc8b3(0xc7)](_0x56707f)&&_0x1a8a80['mkdirSync'](_0x56707f,{'recursive':!![]}),_0x1a8a80[_0x5cc8b3(0xcc)](CACHE_FILE,JSON['stringify'](_0x3b1fbf,null,0x2));}catch{}}export function getCurrentBranch(){const _0x42398b=_0x1847b2,_0x4faafb={'BaBQd':function(_0x2fb1eb,_0x1081d6,_0x3ab773){return _0x2fb1eb(_0x1081d6,_0x3ab773);},'wUDYO':_0x42398b(0xc2),'buokn':_0x42398b(0xd8)};try{const _0xe4bc59=_0x4faafb[_0x42398b(0xb5)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x42398b(0xd1),'stdio':[_0x4faafb[_0x42398b(0xaf)],'pipe','pipe']})[_0x42398b(0xd3)]();if(!_0xe4bc59||_0xe4bc59===_0x4faafb[_0x42398b(0xae)])return null;return _0xe4bc59;}catch{return null;}}export function enableBranch(_0x2c7981){const _0x4b22e1=loadCache();_0x4b22e1['branches'][_0x2c7981]=!![],saveCache(_0x4b22e1);}function _0x487a(){const _0x1e322a=['6841053DNtGXL','HEAD','pHVRV','90620LdSEFM','lastStopReminderAt','482872FCpQoY','now','GOflp','5550Ursldp','buokn','wUDYO','.ranger_cache.json','odsUU','1066WNJhVA','988qOOVLL','1510sugoMU','BaBQd','dirname','registeredAt','prompted','xKcBu','GheuP','qkkPb','homedir','enabled','9690urFVCp','lastEnabledSessionClearedAt','CyRuM','QANnh','pipe','featureId','parse','toISOString','branches','existsSync','DLKtK','qnWqg','Viinr','411901FwQcnO','writeFileSync','RlPqy','kVVAZ','sessions','currentBranch','utf-8','SRzXr','trim','master','gWAKm','main'];_0x487a=function(){return _0x1e322a;};return _0x487a();}export function disableBranch(_0x1b0c53){const _0x50bf30=_0x1847b2,_0x5323a8={'nsAnQ':function(_0x1536fd){return _0x1536fd();}},_0x2ee9e0=_0x5323a8['nsAnQ'](loadCache);delete _0x2ee9e0[_0x50bf30(0xc6)][_0x1b0c53],saveCache(_0x2ee9e0);}export function isBranchEnabled(_0x4afe98){const _0x54a895=_0x1847b2,_0x12bc30={'kVVAZ':function(_0x2d4573){return _0x2d4573();},'qnWqg':function(_0x176692,_0x1a96e5){return _0x176692===_0x1a96e5;}},_0x908241=_0x12bc30[_0x54a895(0xce)](loadCache);return _0x12bc30[_0x54a895(0xc9)](_0x908241['branches'][_0x4afe98],!![]);}function getOrCreateSession(_0x300b74,_0xcc92fe){const _0x1b9d25=_0x1847b2;return!_0x300b74['sessions'][_0xcc92fe]&&(_0x300b74[_0x1b9d25(0xcf)][_0xcc92fe]={}),_0x300b74['sessions'][_0xcc92fe];}export function enableSession(_0x54c810){const _0x4ff6c4=_0x1847b2,_0x936cc3={'XtDas':function(_0x48817d){return _0x48817d();},'iJWAX':function(_0x277d3f,_0xe67644,_0x92c25f){return _0x277d3f(_0xe67644,_0x92c25f);},'ayrlb':function(_0x57355f,_0x23be5a){return _0x57355f!==_0x23be5a;},'SwIeZ':'main'},_0x42a3a0=_0x936cc3['XtDas'](loadCache),_0x2a45d8=_0x936cc3['iJWAX'](getOrCreateSession,_0x42a3a0,_0x54c810);_0x2a45d8[_0x4ff6c4(0xbd)]=!![];const _0x35586a=getCurrentBranch();_0x35586a&&_0x936cc3['ayrlb'](_0x35586a,_0x936cc3['SwIeZ'])&&_0x35586a!=='master'&&(_0x42a3a0[_0x4ff6c4(0xc6)][_0x35586a]=!![],_0x2a45d8[_0x4ff6c4(0xd0)]=_0x35586a),saveCache(_0x42a3a0);}export function isSessionEnabled(_0xf86ce0){const _0x547795=_0x1847b2,_0x3776e1={'Viinr':function(_0x5f4b45,_0x35c9bb){return _0x5f4b45===_0x35c9bb;},'lKlGb':function(_0x16236c,_0x3d3fba){return _0x16236c||_0x3d3fba;}},_0x46f546=loadCache(),_0x29ebc9=getCurrentBranch();if(!_0x29ebc9||_0x3776e1['Viinr'](_0x29ebc9,'main')||_0x29ebc9==='master')return _0x3776e1['Viinr'](_0x46f546['sessions'][_0xf86ce0]?.[_0x547795(0xbd)],!![]);const _0x45623a=_0x3776e1[_0x547795(0xca)](_0x46f546['branches'][_0x29ebc9],!![]),_0x14de21=_0x46f546[_0x547795(0xcf)][_0xf86ce0]?.[_0x547795(0xbd)]===!![];return _0x3776e1['lKlGb'](_0x45623a,_0x14de21);}export function disableSession(_0x52dfb9){const _0x352f7b=_0x1847b2,_0x33d828={'RlPqy':function(_0x17066a){return _0x17066a();}},_0xf72eb0=_0x33d828[_0x352f7b(0xcd)](loadCache),_0x1448f5=getOrCreateSession(_0xf72eb0,_0x52dfb9);_0x1448f5[_0x352f7b(0xbd)]=![],saveCache(_0xf72eb0);}export function updateBranchTracking(_0x4decb6){const _0x2680f6=_0x1847b2,_0x18b564={'hkCfT':function(_0x4b5867){return _0x4b5867();},'pXQiM':function(_0x1b8770,_0x1af38d){return _0x1b8770===_0x1af38d;},'ccwir':function(_0x3d5746,_0x1e5a09){return _0x3d5746!==_0x1e5a09;}},_0x13189d=_0x18b564['hkCfT'](loadCache),_0x5d36d8=_0x13189d[_0x2680f6(0xcf)][_0x4decb6];if(!_0x5d36d8?.['enabled'])return;const _0x3faccf=getCurrentBranch();if(!_0x3faccf||_0x18b564['pXQiM'](_0x3faccf,'main')||_0x3faccf==='master')return;_0x18b564['ccwir'](_0x5d36d8['currentBranch'],_0x3faccf)&&(_0x13189d['branches'][_0x3faccf]=!![],_0x5d36d8['currentBranch']=_0x3faccf,saveCache(_0x13189d));}export function initBranchTracking(_0x48024f){const _0x354e9f=_0x1847b2,_0xfc81f7={'pHVRV':function(_0x2d11f5){return _0x2d11f5();},'GOflp':function(_0x547f2c,_0x13cf7c){return _0x547f2c===_0x13cf7c;},'GheuP':_0x354e9f(0xd4)},_0x14c902=loadCache(),_0x5946f2=_0xfc81f7[_0x354e9f(0xd9)](getCurrentBranch);if(!_0x5946f2||_0x5946f2===_0x354e9f(0xd6)||_0xfc81f7[_0x354e9f(0xde)](_0x5946f2,_0xfc81f7[_0x354e9f(0xba)]))return;if(_0x14c902['branches'][_0x5946f2]===!![]){const _0x16b004=getOrCreateSession(_0x14c902,_0x48024f);_0x16b004['enabled']=!![],_0x16b004['currentBranch']=_0x5946f2,saveCache(_0x14c902);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x267e8b){const _0x3d0811=_0x1847b2,_0x20bdf3={'odsUU':function(_0x4cd673){return _0x4cd673();}},_0x410490=_0x20bdf3[_0x3d0811(0xb1)](loadCache),_0x189617=_0x410490['sessions'][_0x267e8b];_0x189617?.['enabled']&&(_0x410490['lastEnabledSessionClearedAt']=Date[_0x3d0811(0xdd)](),saveCache(_0x410490));}export function shouldAutoEnableAfterClear(_0x1a0f8d){const _0x45538b=_0x1847b2,_0x2549be={'DLKtK':'clear','gGuoQ':function(_0x1c0e4b,_0x3b9072){return _0x1c0e4b<=_0x3b9072;}};if(_0x1a0f8d!==_0x2549be[_0x45538b(0xc8)])return![];const _0x2db194=loadCache(),_0x37a468=_0x2db194['lastEnabledSessionClearedAt'];if(!_0x37a468)return![];const _0x364852=Date[_0x45538b(0xdd)]()-_0x37a468;return _0x2549be['gGuoQ'](_0x364852,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xccda33){const _0x58a0ae=_0x1847b2,_0x4de94d={'QANnh':function(_0x4e092c){return _0x4e092c();},'CyRuM':_0x58a0ae(0xd6),'CBuXt':function(_0x19bc07,_0xf7796f){return _0x19bc07!==_0xf7796f;}},_0x11ce5c=_0x4de94d[_0x58a0ae(0xc1)](loadCache),_0x1dcb38=getOrCreateSession(_0x11ce5c,_0xccda33);_0x1dcb38['enabled']=!![];const _0x9b564d=getCurrentBranch();_0x9b564d&&_0x9b564d!==_0x4de94d[_0x58a0ae(0xc0)]&&_0x4de94d['CBuXt'](_0x9b564d,_0x58a0ae(0xd4))&&(_0x1dcb38['currentBranch']=_0x9b564d),delete _0x11ce5c[_0x58a0ae(0xbf)],saveCache(_0x11ce5c);}export function registerSession(_0x5a90d5,_0xb9358f){const _0x150ebc=_0x1847b2,_0x118d36={'ISvMf':function(_0x4f6960,_0x59dda2,_0x4a8102){return _0x4f6960(_0x59dda2,_0x4a8102);},'tvVFW':function(_0xfd15c4,_0xc617be){return _0xfd15c4(_0xc617be);}},_0x668934=loadCache(),_0x2567cb=_0x118d36['ISvMf'](getOrCreateSession,_0x668934,_0x5a90d5);_0x2567cb['featureId']=_0xb9358f,_0x2567cb[_0x150ebc(0xb7)]=new Date()[_0x150ebc(0xc5)](),_0x118d36['tvVFW'](saveCache,_0x668934);}export function getSessionEntry(_0x1c7b89){const _0x59aa77=_0x1847b2,_0x545464=loadCache(),_0x3d9269=_0x545464['sessions'][_0x1c7b89];if(_0x3d9269?.[_0x59aa77(0xc3)]&&_0x3d9269?.['registeredAt'])return{'featureId':_0x3d9269['featureId'],'registeredAt':_0x3d9269['registeredAt']};return null;}export function unregisterSession(_0x8dd1ae){const _0x54cde6=_0x1847b2,_0x14145e={'qkkPb':function(_0x124375){return _0x124375();}},_0x136887=_0x14145e[_0x54cde6(0xbb)](loadCache),_0x27b5ad=_0x136887['sessions'][_0x8dd1ae];_0x27b5ad&&(delete _0x27b5ad['featureId'],delete _0x27b5ad['registeredAt'],saveCache(_0x136887));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d7c03){const _0x158ca4=_0x1847b2,_0x426fbe={'HEKVc':function(_0x22036a){return _0x22036a();},'KljsW':function(_0x51f719,_0x573b59,_0x25172d){return _0x51f719(_0x573b59,_0x25172d);},'SRzXr':function(_0x2d0a5d,_0x8746ae){return _0x2d0a5d>=_0x8746ae;},'xKcBu':function(_0x8a78aa,_0x11c136){return _0x8a78aa-_0x11c136;},'TtxCr':function(_0x218cb6,_0xb3c968){return _0x218cb6(_0xb3c968);}},_0x52d096=_0x426fbe['HEKVc'](loadCache),_0x48f731=_0x426fbe['KljsW'](getOrCreateSession,_0x52d096,_0x1d7c03),_0x277896=_0x48f731['lastPlanReminderAt']||0x0,_0x446c47=Date[_0x158ca4(0xdd)]();if(_0x426fbe[_0x158ca4(0xd2)](_0x426fbe[_0x158ca4(0xb9)](_0x446c47,_0x277896),PLAN_REMINDER_INTERVAL_MS))return _0x48f731['lastPlanReminderAt']=_0x446c47,_0x426fbe['TtxCr'](saveCache,_0x52d096),!![];return![];}export function shouldShowStopReminder(_0x580f98){const _0x5c16cf=_0x1847b2,_0x30cd6c={'LHzQt':function(_0x10104e){return _0x10104e();},'YBdsI':function(_0x3a0231,_0x9e05e){return _0x3a0231-_0x9e05e;},'wwREv':function(_0x278092,_0x33d2a0){return _0x278092(_0x33d2a0);}},_0x560c06=_0x30cd6c['LHzQt'](loadCache),_0x9ea201=getOrCreateSession(_0x560c06,_0x580f98),_0x491360=_0x9ea201[_0x5c16cf(0xdb)]||0x0,_0x635b9f=Date[_0x5c16cf(0xdd)]();if(_0x30cd6c['YBdsI'](_0x635b9f,_0x491360)>=STOP_REMINDER_INTERVAL_MS)return _0x9ea201[_0x5c16cf(0xdb)]=_0x635b9f,_0x30cd6c['wwREv'](saveCache,_0x560c06),!![];return![];}export function hasSessionBeenPrompted(_0x14b484){const _0x422904=_0x1847b2,_0x455e75={'sTiTS':function(_0x49f33e,_0x4b2627){return _0x49f33e===_0x4b2627;}},_0x6062fc=loadCache();return _0x455e75['sTiTS'](_0x6062fc['sessions'][_0x14b484]?.[_0x422904(0xb8)],!![]);}export function markSessionPrompted(_0x263c58){const _0x20acc8=_0x1847b2,_0x3ce4ef={'Nijlv':function(_0x370697){return _0x370697();},'gWAKm':function(_0x5bf789,_0x11e529,_0x4a20ac){return _0x5bf789(_0x11e529,_0x4a20ac);}},_0x5798ca=_0x3ce4ef['Nijlv'](loadCache),_0x3a52da=_0x3ce4ef[_0x20acc8(0xd5)](getOrCreateSession,_0x5798ca,_0x263c58);_0x3a52da[_0x20acc8(0xb8)]=!![],saveCache(_0x5798ca);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x21d118=_0x224b;(function(_0x346144,_0x41203c){const _0x1c33f5=_0x224b,_0x1bf68c=_0x346144();while(!![]){try{const _0x11d4d6=parseInt(_0x1c33f5(0x16e))/0x1+parseInt(_0x1c33f5(0x193))/0x2*(parseInt(_0x1c33f5(0x1e6))/0x3)+parseInt(_0x1c33f5(0x185))/0x4*(parseInt(_0x1c33f5(0x18c))/0x5)+-parseInt(_0x1c33f5(0x19c))/0x6*(parseInt(_0x1c33f5(0x19f))/0x7)+-parseInt(_0x1c33f5(0x1ac))/0x8*(-parseInt(_0x1c33f5(0x1f3))/0x9)+-parseInt(_0x1c33f5(0x1b2))/0xa+-parseInt(_0x1c33f5(0x16f))/0xb;if(_0x11d4d6===_0x41203c)break;else _0x1bf68c['push'](_0x1bf68c['shift']());}catch(_0x64cf61){_0x1bf68c['push'](_0x1bf68c['shift']());}}}(_0x5364,0x4a286));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3946dd,_0x7c226d){const _0x5eb32d=_0x224b,_0x9c4a36={'KxpEq':function(_0xea450,_0x3808d9,_0x539acf,_0x59fbe4){return _0xea450(_0x3808d9,_0x539acf,_0x59fbe4);},'vPsTF':'local','iTqtE':function(_0x1bd1b6,_0x2ed540,_0x216943){return _0x1bd1b6(_0x2ed540,_0x216943);},'uQrfh':function(_0x27558a,_0x2f9ff5){return _0x27558a(_0x2f9ff5);},'tXTlV':function(_0x7cf19c,_0x1b435c){return _0x7cf19c(_0x1b435c);},'XAQeV':function(_0x375dd8,_0x1f7305){return _0x375dd8!==_0x1f7305;}},_0x38d7d2=join(_0x7c226d,'ci',_0x3946dd),_0x546686=_0x9c4a36[_0x5eb32d(0x1f1)](join,_0x7c226d,_0x5eb32d(0x198),_0x3946dd),_0x1012da=join(_0x7c226d,_0x3946dd),_0x53f440=join(_0x7c226d,_0x9c4a36[_0x5eb32d(0x171)]),_0x58af71=_0x9c4a36[_0x5eb32d(0x1e1)](join,_0x7c226d,'ci');if(existsSync(_0x38d7d2))return _0x38d7d2;if(_0x9c4a36[_0x5eb32d(0x1ed)](existsSync,_0x546686))return _0x546686;if(_0x9c4a36[_0x5eb32d(0x1d0)](existsSync,_0x1012da)&&(_0x1012da!==_0x53f440&&_0x9c4a36[_0x5eb32d(0x180)](_0x1012da,_0x58af71)?!![]:hasLegacyProfileFiles(_0x1012da)))return _0x1012da;return null;}export function getEnvDir(_0x4e36c2,_0x3be119={}){const _0x1610e0=_0x224b,_0x565500={'tMZCS':function(_0x4724dc,_0x3a144e){return _0x4724dc(_0x3a144e);},'pFKrF':function(_0x2576a2,_0x52bbfd,_0x43de19){return _0x2576a2(_0x52bbfd,_0x43de19);},'FfHcq':function(_0xab5eb2){return _0xab5eb2();},'bkrIt':function(_0x2fed88,_0x31d45f){return _0x2fed88!==_0x31d45f;},'PtRnR':function(_0x11241c,_0x5c39d2,_0x29743d){return _0x11241c(_0x5c39d2,_0x29743d);},'nqiLu':_0x1610e0(0x198),'PbCea':function(_0x3281a7,_0x165410,_0x174ebd){return _0x3281a7(_0x165410,_0x174ebd);}},_0x716ad=getRangerDir(),_0x17f83f=findEnvInRoot(_0x4e36c2,_0x716ad);if(_0x17f83f){if(_0x3be119['forWrite']&&_0x565500['tMZCS'](isLegacyEnvPath,_0x17f83f))throw _0x565500['pFKrF'](legacyWriteError,_0x4e36c2,_0x17f83f);return _0x17f83f;}const _0x54931d=_0x565500['FfHcq'](getRangerHomeDir);if(_0x565500[_0x1610e0(0x17b)](_0x54931d,_0x716ad)){const _0x516f1f=_0x565500[_0x1610e0(0x1cb)](findEnvInRoot,_0x4e36c2,_0x54931d);if(_0x516f1f){if(_0x3be119[_0x1610e0(0x17f)]&&_0x565500[_0x1610e0(0x166)](isLegacyEnvPath,_0x516f1f))throw _0x565500[_0x1610e0(0x182)](legacyWriteError,_0x4e36c2,_0x516f1f);return _0x516f1f;}}const _0x15663a=join(_0x54931d,_0x565500[_0x1610e0(0x1e5)],_0x4e36c2);if(_0x3be119[_0x1610e0(0x17f)])throw _0x565500[_0x1610e0(0x1d3)](legacyWriteError,_0x4e36c2,_0x15663a);return _0x15663a;}function isLegacyEnvPath(_0xf50761){const _0x7d90d8=_0x224b,_0x5cecc1={'MxLaN':function(_0x35861c,_0x266ae3){return _0x35861c===_0x266ae3;}},_0x253615=getRangerDir(),_0x295002=getRangerHomeDir();for(const _0x1dd481 of new Set([_0x253615,_0x295002])){const _0x448db4=_0x1dd481['endsWith']('/')?_0x1dd481:_0x1dd481+'/';if(_0x5cecc1['MxLaN'](_0xf50761,_0x1dd481)||_0xf50761[_0x7d90d8(0x18a)](_0x448db4))return!![];}return![];}function legacyWriteError(_0x3b4d30,_0x186467){const _0x5286d4=_0x224b,_0x173821={'RkpVT':function(_0x489eb6,_0x89ddd7){return _0x489eb6+_0x89ddd7;}};return new Error(_0x173821[_0x5286d4(0x1a8)](_0x5286d4(0x1c7)+_0x3b4d30+_0x5286d4(0x168)+_0x186467+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5286d4(0x16b)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x25651f,_0x2a4a73){const _0x2c4c5c=_0x224b,_0x39b904={'ZzfRP':function(_0x38dde0){return _0x38dde0();},'Kyozm':function(_0x21bc5c){return _0x21bc5c();},'DjXgq':'local','VsQoh':'legacy','iVusm':function(_0x48202b,_0x27c86f,_0x4e4250){return _0x48202b(_0x27c86f,_0x4e4250);},'dBRAg':function(_0x40f610,_0xf0aa04,_0x29ade0){return _0x40f610(_0xf0aa04,_0x29ade0);},'lwRXL':function(_0xca4a3b,_0x2c0b34,_0x4f5377,_0x15a983){return _0xca4a3b(_0x2c0b34,_0x4f5377,_0x15a983);},'JFhSO':function(_0x583f97,_0x1b63dc){return _0x583f97(_0x1b63dc);},'cZHgd':function(_0x218ce5,_0x56d59d){return _0x218ce5===_0x56d59d;}},_0x2f96cd=_0x2a4a73?.['rangerDir'],_0x99b83f=_0x2f96cd?[_0x2f96cd]:[_0x39b904[_0x2c4c5c(0x18b)](getRangerDir),_0x39b904[_0x2c4c5c(0x197)](getRangerHomeDir)][_0x2c4c5c(0x17d)]((_0x448822,_0x292c27,_0x36d97e)=>_0x36d97e[_0x2c4c5c(0x1a0)](_0x448822)===_0x292c27),_0x670cc0=_0x2a4a73?.[_0x2c4c5c(0x19d)]??['ci',_0x39b904['DjXgq'],_0x39b904[_0x2c4c5c(0x1e8)]];for(const _0xdfe193 of _0x99b83f){const _0xe0594c=_0x39b904['iVusm'](join,_0xdfe193,_0x39b904[_0x2c4c5c(0x1e0)]),_0x10c6c6=_0x39b904['dBRAg'](join,_0xdfe193,'ci'),_0x2951f0=[{'location':'ci','path':join(_0xdfe193,'ci',_0x25651f)},{'location':'local','path':_0x39b904['lwRXL'](join,_0xdfe193,_0x39b904['DjXgq'],_0x25651f)},{'location':'legacy','path':join(_0xdfe193,_0x25651f)}];for(const _0x4e19b4 of _0x2951f0){if(_0x670cc0['includes'](_0x4e19b4[_0x2c4c5c(0x17c)])&&_0x39b904[_0x2c4c5c(0x1cc)](existsSync,_0x4e19b4[_0x2c4c5c(0x1b7)])){if(_0x39b904[_0x2c4c5c(0x191)](_0x4e19b4['location'],_0x2c4c5c(0x1d1))&&(_0x4e19b4['path']===_0xe0594c||_0x4e19b4['path']===_0x10c6c6)&&!hasLegacyProfileFiles(_0x4e19b4[_0x2c4c5c(0x1b7)]))continue;return{'path':_0x4e19b4[_0x2c4c5c(0x1b7)],'location':_0x4e19b4[_0x2c4c5c(0x17c)]};}}}return null;}function hasLegacyProfileFiles(_0x43449a){const _0x26e3f3=_0x224b,_0xa4ae29={'NnjSq':function(_0x2f3e49,_0x1dd91b){return _0x2f3e49(_0x1dd91b);},'HzExl':function(_0x5f3d2f,_0xf4da11,_0x20346a){return _0x5f3d2f(_0xf4da11,_0x20346a);},'iaKht':'auth.json','bpgCN':'auth.json.enc'};return _0xa4ae29['NnjSq'](existsSync,_0xa4ae29[_0x26e3f3(0x1d4)](join,_0x43449a,'settings.json'))||existsSync(join(_0x43449a,_0xa4ae29['iaKht']))||existsSync(join(_0x43449a,_0xa4ae29['bpgCN']));}export function isEnvCi(_0x274e71){const _0x149419=_0x224b,_0x437eea={'UciMG':function(_0x19a35c){return _0x19a35c();},'yTSGd':function(_0x31ed1b){return _0x31ed1b();}};if(existsSync(join(getRangerDir(),'ci',_0x274e71)))return!![];const _0x5dd4d3=_0x437eea[_0x149419(0x1b4)](getRangerHomeDir);if(_0x5dd4d3!==_0x437eea[_0x149419(0x1dd)](getRangerDir)&&existsSync(join(_0x5dd4d3,'ci',_0x274e71)))return!![];return![];}export async function cleanupTempFiles(_0x319af4){const _0xbe5e6=_0x224b,_0x2185a3=[_0x319af4[_0xbe5e6(0x167)],_0x319af4[_0xbe5e6(0x1ee)]][_0xbe5e6(0x17d)](Boolean);await Promise[_0xbe5e6(0x195)](_0x2185a3['map'](_0x5bc958=>unlink(_0x5bc958)[_0xbe5e6(0x184)](_0x17ebd4=>{const _0x23e97c=_0xbe5e6;_0x17ebd4[_0x23e97c(0x199)]!=='ENOENT'&&console['warn'](_0x23e97c(0x187)+_0x5bc958+':',_0x17ebd4['message']);})));}export function getSettingsPath(_0x5cd777){const _0x225ed7=_0x224b,_0x3f5efb={'tzsIV':function(_0x3fe35f,_0x3fa1c0,_0x12a575){return _0x3fe35f(_0x3fa1c0,_0x12a575);},'AXdJw':'settings.json'};return _0x3f5efb['tzsIV'](join,getEnvDir(_0x5cd777),_0x3f5efb[_0x225ed7(0x1c6)]);}function _0x5364(){const _0x5abe8a=['666570ZOhIko','eRyas','UciMG','.json','Failed\x20to\x20decrypt\x20auth\x20state:\x20','path','headers','install','KItIN','kTBex','--disable-features=WebBluetooth','map','rFQix','now','chromium','ignoreHTTPSErrors','oqTnt','storageStatePath','kPFHm','Jypxm','AXdJw','Refusing\x20to\x20write\x20profile\x20\x22','-rangerwright.json','--no-sandbox','PPUHl','pFKrF','JFhSO','boolean','clipboard-write','--disable-setuid-sandbox','tXTlV','legacy','entries','PbCea','HzExl','split','zpAzL','mmrJL','EvjNR','yVWNR','KPXZQ','userAgent','stringify','yTSGd','args','GKguR','DjXgq','iTqtE','ranger-config','object','isArray','nqiLu','200520BOsyBE','NMELR','VsQoh','lcMbX','extraHTTPHeaders','clEBN','storageState','uQrfh','configPath','string','keys','KxpEq','LSDDb','261EYGdXL','YQIuQ','setupHeader','tMZCS','tempAuthPath','\x22\x20to\x20legacy\x20path\x20','Fuiqz','getuid','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','baseUrl','tNnaH','516985DWqzsh','8779793GpMKES','ziRrT','vPsTF','KDtOh','lvZMl','matbv','clipboard-read','playwright-cli','includes','executablePath','pYquE','JWbnX','bkrIt','location','filter','sIAuh','forWrite','XAQeV','PlKTe','PtRnR','DoiZH','catch','15676sYfvxP','sPlDF','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','UTYHJ','mcZTz','startsWith','ZzfRP','515tlJFcd','vnEOp','stagehand','auth.json','message','cZHgd','LMIoR','6zeJlPH','HAYlE','all','PveKc','Kyozm','local','code','parse','jPurT','6OpXqPf','locations','sessions','3574067JRMiog','indexOf','length','CrWMB','TjnNo','lZnMs','LltOQ','fBjSK','lPJek','RkpVT','UqSXc','safeMode','--unsafely-treat-insecure-origin-as-secure=http://localhost','153928HAgeJA','TGfQq','none','cdpEndpoint','headless','header'];_0x5364=function(){return _0x5abe8a;};return _0x5364();}export async function loadSettings(_0x491085){const _0x208e0b=_0x224b,_0x3034f7={'zpAzL':function(_0x559052,_0x5b2dfb){return _0x559052(_0x5b2dfb);},'oqTnt':'utf-8'},_0x1f9b08=_0x3034f7[_0x208e0b(0x1d6)](getSettingsPath,_0x491085);if(!existsSync(_0x1f9b08))return{};try{const _0x3e0d49=await readFile(_0x1f9b08,_0x3034f7[_0x208e0b(0x1c2)]);return JSON[_0x208e0b(0x19a)](_0x3e0d49);}catch{return{};}}export async function saveSettings(_0x5e812e,_0x7728c5){const _0x13ff66=_0x224b,_0x5ec39d={'TjnNo':function(_0x59c8d7,_0x3ebe85){return _0x59c8d7(_0x3ebe85);},'YWlvC':function(_0x510e13,_0x14a018,_0x3621e9){return _0x510e13(_0x14a018,_0x3621e9);}},_0x1cf892=_0x5ec39d['TjnNo'](getSettingsPath,_0x5e812e),_0x36cf24=_0x5ec39d['TjnNo'](dirname,_0x1cf892);!_0x5ec39d[_0x13ff66(0x1a3)](existsSync,_0x36cf24)&&await mkdir(_0x36cf24,{'recursive':!![]}),await _0x5ec39d['YWlvC'](writeFile,_0x1cf892,JSON[_0x13ff66(0x1dc)](_0x7728c5,null,0x2));}export function resolveEnvVars(_0x255fc7){const _0x26eeb3=_0x224b,_0x33be99={'TGfQq':function(_0x3167fa,_0x2d5fc9){return _0x3167fa===_0x2d5fc9;},'pYquE':'string','uhgdd':'object'};if(_0x33be99[_0x26eeb3(0x1ad)](typeof _0x255fc7,_0x33be99[_0x26eeb3(0x179)]))return _0x255fc7['replace'](/\$\{(\w+)\}/g,(_0x13954e,_0x153694)=>{const _0x15e0cd=process['env'][_0x153694];if(_0x15e0cd===undefined)throw new Error('Environment\x20variable\x20'+_0x153694+'\x20is\x20not\x20set');return _0x15e0cd;});if(Array['isArray'](_0x255fc7))return _0x255fc7[_0x26eeb3(0x1bd)](resolveEnvVars);if(_0x255fc7&&_0x33be99[_0x26eeb3(0x1ad)](typeof _0x255fc7,_0x33be99['uhgdd']))return Object['fromEntries'](Object['entries'](_0x255fc7)[_0x26eeb3(0x1bd)](([_0x8b60dc,_0xef6221])=>[_0x8b60dc,resolveEnvVars(_0xef6221)]));return _0x255fc7;}const isRecord=_0x1d7772=>typeof _0x1d7772===_0x21d118(0x1e3)&&_0x1d7772!==null&&!Array[_0x21d118(0x1e4)](_0x1d7772),asRecord=_0x2bc15e=>isRecord(_0x2bc15e)?_0x2bc15e:undefined,mergeHeaders=(_0x298e3c,_0x5d3141)=>{const _0xfed17c=_0x21d118,_0x319afa={'UqSXc':function(_0x1bf6e8,_0x19e75b){return _0x1bf6e8??_0x19e75b;}},_0x2d26f6={..._0x319afa[_0xfed17c(0x1a9)](_0x298e3c,{}),..._0x319afa['UqSXc'](_0x5d3141,{})};return Object[_0xfed17c(0x1f0)](_0x2d26f6)[_0xfed17c(0x1a1)]?_0x2d26f6:undefined;},SAFE_MODE_ARGS=[_0x21d118(0x1bc)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x21d118(0x1ab),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0xb322be,_0x46350c={}){const _0x4fc1bf=_0x21d118,_0x5344f6={'xRgyb':function(_0x2b633f,_0x277d46){return _0x2b633f(_0x277d46);},'lvZMl':function(_0x4a4218,_0x4e8b57){return _0x4a4218(_0x4e8b57);},'glUAu':function(_0x3504ca,_0x19257b){return _0x3504ca(_0x19257b);}},_0x4c16f0=asRecord(_0xb322be['browser']),_0x138e98={..._0x5344f6['xRgyb'](asRecord,_0x4c16f0?.['launchOptions'])??{}};typeof _0x46350c[_0x4fc1bf(0x1b0)]===_0x4fc1bf(0x1cd)&&(_0x138e98['headless']=_0x46350c['headless']);if(_0xb322be[_0x4fc1bf(0x1aa)]){const _0xfe46e6=_0x138e98['args']??[],_0x2c463d=SAFE_MODE_ARGS[_0x4fc1bf(0x17d)](_0x825b96=>!_0xfe46e6[_0x4fc1bf(0x177)](_0x825b96));_0x138e98[_0x4fc1bf(0x1de)]=[..._0xfe46e6,..._0x2c463d];}if(_0xb322be['allowInsecureLocalhost']){const _0xc4ae26=_0x138e98['args']??[],_0x2787f2=ALLOW_LOCALHOST_ARGS['filter'](_0x5a6db0=>!_0xc4ae26[_0x4fc1bf(0x177)](_0x5a6db0));_0x138e98[_0x4fc1bf(0x1de)]=[..._0xc4ae26,..._0x2787f2];}const _0x5c5d2f={..._0x5344f6[_0x4fc1bf(0x173)](asRecord,_0x4c16f0?.['contextOptions'])??{}};_0x5c5d2f[_0x4fc1bf(0x1c1)]=!![];typeof _0xb322be[_0x4fc1bf(0x1db)]===_0x4fc1bf(0x1ef)&&(_0x5c5d2f[_0x4fc1bf(0x1db)]=_0xb322be[_0x4fc1bf(0x1db)]);const _0x806499=mergeHeaders(asRecord(_0x5c5d2f[_0x4fc1bf(0x1ea)]),_0x5344f6['glUAu'](asRecord,_0xb322be[_0x4fc1bf(0x1b8)]));return _0x806499?_0x5c5d2f[_0x4fc1bf(0x1ea)]=_0x806499:delete _0x5c5d2f['extraHTTPHeaders'],_0x46350c[_0x4fc1bf(0x1c3)]&&(_0x5c5d2f['storageState']=_0x46350c['storageStatePath']),{'launchOptions':_0x138e98,'contextOptions':_0x5c5d2f};}export async function resolveProfileStorageState(_0x2b228d){return resolveLocalAuthPath(getEnvDir(_0x2b228d));}async function resolveLocalAuthPath(_0x37445c){const _0x47dc79=_0x21d118,_0x4cc147={'GKguR':function(_0x5e2b6d,_0x309595,_0x486d54){return _0x5e2b6d(_0x309595,_0x486d54);},'YnPKw':'auth.json.enc','lcMbX':function(_0x1d23c9){return _0x1d23c9();},'KPXZQ':function(_0x33dc17,_0x1a13ae,_0x1f0695){return _0x33dc17(_0x1a13ae,_0x1f0695);},'aGOCu':function(_0x219b5a,_0x2794cd,_0x4bf048){return _0x219b5a(_0x2794cd,_0x4bf048);},'EvjNR':function(_0x280cac,_0xb15d51){return _0x280cac(_0xb15d51);}},_0x2f4852=_0x4cc147[_0x47dc79(0x1df)](join,_0x37445c,_0x4cc147['YnPKw']),_0x31495c=join(_0x37445c,_0x47dc79(0x18f));if(existsSync(_0x2f4852))try{const _0x40c122=await _0x4cc147[_0x47dc79(0x1e9)](getToken);if(!_0x40c122)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0xcf0ca9=await readFile(_0x2f4852),_0x308597=_0x4cc147[_0x47dc79(0x1da)](decrypt,_0xcf0ca9,_0x40c122),_0x4c8212=_0x4cc147['GKguR'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x47dc79(0x1b5));return await _0x4cc147['aGOCu'](writeFile,_0x4c8212,_0x308597),{'storageStatePath':_0x4c8212,'tempAuthPath':_0x4c8212};}catch(_0x46c915){const _0x26c29f=_0x46c915 instanceof Error?_0x46c915[_0x47dc79(0x190)]:_0x4cc147[_0x47dc79(0x1d8)](String,_0x46c915);throw new Error(_0x47dc79(0x1b6)+_0x26c29f);}if(_0x4cc147['EvjNR'](existsSync,_0x31495c))return{'storageStatePath':_0x31495c};return{};}export async function buildPlaywrightConfig(_0x15a18b,_0x51f92a,_0x125d3b,_0x1f9017,_0x28104f){const _0x20c6ea=_0x21d118,_0x2e5530={'WlBgt':function(_0x2bc372,_0x349a7c){return _0x2bc372(_0x349a7c);},'PveKc':function(_0x36e1b6,_0x41357d){return _0x36e1b6(_0x41357d);},'KDtOh':function(_0x30c452,_0x57d935,_0x367ffa,_0x31c7ef,_0x14112e,_0x521bd6,_0x279097){return _0x30c452(_0x57d935,_0x367ffa,_0x31c7ef,_0x14112e,_0x521bd6,_0x279097);},'fyxPx':'stagehand','UTYHJ':function(_0x4a223c,_0x7566c9){return _0x4a223c(_0x7566c9);}};if(_0x28104f)return buildPlaywrightConfigCore(_0x15a18b,_0x28104f,_0x51f92a,_0x125d3b,_0x1f9017,_0x20c6ea(0x18e));const {storageStatePath:_0x55a617,tempAuthPath:_0x156f3c}=await _0x2e5530['WlBgt'](resolveLocalAuthPath,_0x2e5530[_0x20c6ea(0x196)](getEnvDir,_0x51f92a));try{const _0x186c68=await _0x2e5530[_0x20c6ea(0x172)](buildPlaywrightConfigCore,_0x15a18b,_0x55a617,_0x51f92a,_0x125d3b,_0x1f9017,_0x2e5530['fyxPx']);return{..._0x186c68,'tempAuthPath':_0x156f3c};}catch(_0x96e775){_0x156f3c&&await _0x2e5530[_0x20c6ea(0x188)](unlink,_0x156f3c)[_0x20c6ea(0x184)](()=>{});throw _0x96e775;}}export async function buildPlaywrightConfigCore(_0x31d704,_0x5574c4,_0x287b98,_0x4c8b19,_0x4eb652,_0x3076bc=_0x21d118(0x18e)){const _0x545d8e=_0x21d118,_0x14d311={'eRyas':function(_0x3a1ec8,_0xc80abd,_0xc376ca){return _0x3a1ec8(_0xc80abd,_0xc376ca);},'HgIHi':function(_0x16d173,_0x14e952){return _0x16d173===_0x14e952;},'yqCaQ':'--no-sandbox','lPJek':'chromium','zlpQs':'clipboard-write','lzndY':_0x545d8e(0x19e),'Vpikk':function(_0x184dcb,_0x454caf){return _0x184dcb===_0x454caf;},'vnEOp':'core','dDYAK':'tabs','NMELR':_0x545d8e(0x1b9),'sIAuh':'pdf','JWbnX':function(_0x2cf1ef,_0x25c686,_0x287616){return _0x2cf1ef(_0x25c686,_0x287616);},'ckkze':'ranger-config','OPgvO':'-cli','clEBN':function(_0x31805d,_0x28303f,_0x3fccf4){return _0x31805d(_0x28303f,_0x3fccf4);}},_0x4a2f44=_0x4c8b19||randomUUID(),_0x4a0af4=join(getRangerDir(),_0x14d311['lzndY'],_0x4a2f44),_0x43006a=Boolean(_0x31d704[_0x545d8e(0x1af)]),_0x456929=_0x43006a?{'browserName':_0x14d311[_0x545d8e(0x1a7)],'cdpEndpoint':_0x31d704['cdpEndpoint']}:((()=>{const _0x1ff38c=_0x545d8e,{launchOptions:_0x1a20c6,contextOptions:_0x44a304}=_0x14d311[_0x1ff38c(0x1b3)](buildBrowserOptionsFromSettings,_0x31d704,{'headless':_0x4eb652?![]:_0x31d704['headless']??!![],'storageStatePath':_0x5574c4});if(_0x14d311['HgIHi'](process[_0x1ff38c(0x16a)]?.(),0x0)){const _0x57e08e=[_0x14d311['yqCaQ'],_0x1ff38c(0x1cf)],_0x67eaeb=_0x1a20c6[_0x1ff38c(0x1de)]??[],_0x498530=_0x57e08e['filter'](_0x584114=>!_0x67eaeb[_0x1ff38c(0x177)](_0x584114));_0x1a20c6[_0x1ff38c(0x1de)]=[..._0x67eaeb,..._0x498530];}return{'isolated':!![],'browserName':_0x14d311[_0x1ff38c(0x1a7)],'launchOptions':_0x1a20c6,'contextOptions':{..._0x44a304,'permissions':[_0x1ff38c(0x175),_0x14d311['zlpQs']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x10d0e4=_0x14d311['Vpikk'](_0x3076bc,'playwright-cli')?{'browser':_0x456929,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4a0af4,'outputMode':'file','codegen':_0x545d8e(0x1ae)}:{'name':_0x287b98,'browser':_0x456929,'capabilities':[_0x14d311[_0x545d8e(0x18d)],_0x14d311['dDYAK'],_0x14d311[_0x545d8e(0x1e7)],_0x14d311[_0x545d8e(0x17e)],'vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4a0af4};if(!_0x43006a){const _0x547bb8=_0x10d0e4['browser'],_0x454e7a=_0x547bb8['contextOptions'];if(_0x454e7a['userAgent']===undefined)delete _0x454e7a['userAgent'];if(_0x454e7a[_0x545d8e(0x1ec)]===undefined)delete _0x454e7a['storageState'];}const _0x1dbecc=_0x14d311[_0x545d8e(0x17a)](join,tmpdir(),_0x14d311['ckkze']);!existsSync(_0x1dbecc)&&await _0x14d311['eRyas'](mkdir,_0x1dbecc,{'recursive':!![]});const _0x2019f1=_0x3076bc===_0x545d8e(0x176)?_0x14d311['OPgvO']:'',_0x1bcc17=_0x14d311[_0x545d8e(0x1eb)](join,_0x1dbecc,_0x287b98+'-'+Date['now']()+_0x2019f1+'.json');return await writeFile(_0x1bcc17,JSON[_0x545d8e(0x1dc)](_0x10d0e4,null,0x2)),{'configPath':_0x1bcc17,'storageStatePath':_0x5574c4};}export async function buildPlaywrightCliConfig(_0x516d39,_0x2da8f4,_0x213254,_0x43a9e5,_0xfc505f){const _0x893e=_0x21d118,_0x3191eb={'HAYlE':function(_0x2bde4b,_0x5c21d3){return _0x2bde4b(_0x5c21d3);},'EsaPG':_0x893e(0x176)};if(_0xfc505f)return buildPlaywrightConfigCore(_0x516d39,_0xfc505f,_0x2da8f4,_0x213254,_0x43a9e5,'playwright-cli');const {storageStatePath:_0x4d49b4,tempAuthPath:_0x3daaef}=await resolveLocalAuthPath(_0x3191eb[_0x893e(0x194)](getEnvDir,_0x2da8f4));try{const _0x1b69a6=await buildPlaywrightConfigCore(_0x516d39,_0x4d49b4,_0x2da8f4,_0x213254,_0x43a9e5,_0x3191eb['EsaPG']);return{..._0x1b69a6,'tempAuthPath':_0x3daaef};}catch(_0x42cc6e){_0x3daaef&&await _0x3191eb[_0x893e(0x194)](unlink,_0x3daaef)[_0x893e(0x184)](()=>{});throw _0x42cc6e;}}function _0x224b(_0x226f88,_0x404ed7){_0x226f88=_0x226f88-0x165;const _0x53645b=_0x5364();let _0x224bfa=_0x53645b[_0x226f88];return _0x224bfa;}export async function buildRangerwrightCliConfig(_0x441d36,_0x426fbb,_0x4b94df,_0x353722,_0x463e32){const _0x4086d0=_0x21d118,_0x5a3854={'oPoqq':'--no-sandbox','rFQix':'--disable-setuid-sandbox','lZnMs':_0x4086d0(0x175),'kTBex':_0x4086d0(0x1ce),'sPlDF':function(_0x4ca1fe,_0x6d7f9){return _0x4ca1fe(_0x6d7f9);},'jxUdO':function(_0x1c9be7,_0x1e940e){return _0x1c9be7(_0x1e940e);},'GAnXw':function(_0x526897){return _0x526897();},'dtuKF':function(_0xfcbd8a,_0x2ed366,_0x292b16,_0x10c4df){return _0xfcbd8a(_0x2ed366,_0x292b16,_0x10c4df);},'PlKTe':function(_0x3522a3,_0x647e67){return _0x3522a3(_0x647e67);},'Jypxm':_0x4086d0(0x1e2),'ljdxf':function(_0x3c5a29,_0x10bd67,_0x391f06){return _0x3c5a29(_0x10bd67,_0x391f06);}},{storageStatePath:_0x4cde82,tempAuthPath:_0x4b3555}=_0x463e32?{'storageStatePath':_0x463e32,'tempAuthPath':undefined}:await _0x5a3854[_0x4086d0(0x186)](resolveLocalAuthPath,_0x5a3854['jxUdO'](getEnvDir,_0x426fbb)),_0x498807=_0x4b94df||_0x5a3854['GAnXw'](randomUUID),_0xe6e02a=_0x5a3854['dtuKF'](join,getRangerDir(),'sessions',_0x498807),_0x417a3f=_0x5a3854[_0x4086d0(0x181)](Boolean,_0x441d36['cdpEndpoint']),_0x3cf3a3=_0x417a3f?{'browserName':_0x4086d0(0x1c0),'cdpEndpoint':_0x441d36[_0x4086d0(0x1af)]}:((()=>{const _0x2e104a=_0x4086d0,{launchOptions:_0x19eb05,contextOptions:_0xf9912e}=buildBrowserOptionsFromSettings(_0x441d36,{'headless':_0x353722?![]:_0x441d36[_0x2e104a(0x1b0)]??!![],'storageStatePath':_0x4cde82});if(process['getuid']?.()===0x0){const _0x104d4f=[_0x5a3854['oPoqq'],_0x5a3854[_0x2e104a(0x1be)]],_0x3dfcc2=_0x19eb05['args']??[],_0x5a8e78=_0x104d4f['filter'](_0xc92b1d=>!_0x3dfcc2['includes'](_0xc92b1d));_0x19eb05[_0x2e104a(0x1de)]=[..._0x3dfcc2,..._0x5a8e78];}return{'browserName':_0x2e104a(0x1c0),'launchOptions':_0x19eb05,'contextOptions':{..._0xf9912e,'permissions':[_0x5a3854[_0x2e104a(0x1a4)],_0x5a3854[_0x2e104a(0x1bb)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x417a3f){const _0x19f24f=_0x3cf3a3['contextOptions'];if(_0x19f24f){if(_0x19f24f['userAgent']===undefined)delete _0x19f24f['userAgent'];if(_0x19f24f[_0x4086d0(0x1ec)]===undefined)delete _0x19f24f['storageState'];}}const _0x1ea2fc={'browser':_0x3cf3a3,'outputDir':_0xe6e02a,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x13a71a;try{const _0x3023b3=join(tmpdir(),_0x5a3854[_0x4086d0(0x1c5)]);!_0x5a3854[_0x4086d0(0x186)](existsSync,_0x3023b3)&&await _0x5a3854['ljdxf'](mkdir,_0x3023b3,{'recursive':!![]}),_0x13a71a=join(_0x3023b3,_0x426fbb+'-'+Date[_0x4086d0(0x1bf)]()+_0x4086d0(0x1c8)),await writeFile(_0x13a71a,JSON['stringify'](_0x1ea2fc,null,0x2));}catch(_0x5cda65){_0x4b3555&&await unlink(_0x4b3555)['catch'](()=>{});throw _0x5cda65;}return{'configPath':_0x13a71a,'storageStatePath':_0x4cde82,'tempAuthPath':_0x4b3555,'outputDir':_0xe6e02a};}export async function buildNovaActCliConfig(_0x5b0209,_0x38be52,_0x21753e,_0x2dc01d,_0x497144){const _0x6f085=_0x21d118,_0xbf1775={'mmrJL':function(_0xd7b06d,_0x17adcc){return _0xd7b06d(_0x17adcc);},'QqIbN':function(_0x4d2f50){return _0x4d2f50();},'YQIuQ':function(_0x569775,_0x559761,_0x259bb8){return _0x569775(_0x559761,_0x259bb8);},'LltOQ':function(_0x220722,_0x229fa5){return _0x220722===_0x229fa5;},'Fuiqz':_0x6f085(0x1c9),'CrWMB':function(_0x1ece45,_0x21ebf7){return _0x1ece45===_0x21ebf7;},'mdZnc':'string','jPurT':function(_0x26b903,_0x272a9a){return _0x26b903(_0x272a9a);}},{storageStatePath:_0x3ee954,tempAuthPath:_0x3af028}=_0x497144?{'storageStatePath':_0x497144,'tempAuthPath':undefined}:await _0xbf1775[_0x6f085(0x1d7)](resolveLocalAuthPath,getEnvDir(_0x38be52)),_0x1e9130=_0x21753e||_0xbf1775['QqIbN'](randomUUID),_0xcfa207=join(getRangerDir(),_0x6f085(0x19e),_0x1e9130),_0x41a22a=_0xbf1775[_0x6f085(0x1f4)](join,_0xcfa207,'nova-user-data'),_0x3cd500=_0x3ee954?join(_0x41a22a,'Default'):undefined,{launchOptions:_0x66138,contextOptions:_0x2df60b}=buildBrowserOptionsFromSettings(_0x5b0209,{'headless':_0x2dc01d?![]:_0x5b0209[_0x6f085(0x1b0)]??!![],'storageStatePath':_0x3ee954});if(_0xbf1775[_0x6f085(0x1a5)](process['getuid']?.(),0x0)){const _0x238563=[_0xbf1775[_0x6f085(0x169)],'--disable-setuid-sandbox'],_0x357dd9=_0x66138[_0x6f085(0x1de)]??[],_0x195b1f=_0x238563['filter'](_0x4c466b=>!_0x357dd9[_0x6f085(0x177)](_0x4c466b));_0x66138[_0x6f085(0x1de)]=[..._0x357dd9,..._0x195b1f];}const _0x3e3890=_0xbf1775[_0x6f085(0x1a2)](typeof _0x66138['executablePath'],'string')?_0x66138[_0x6f085(0x178)]:_0x3ee954?chromium[_0x6f085(0x178)]():undefined;return{'storageStatePath':_0x3ee954,'tempAuthPath':_0x3af028,'baseUrl':_0x5b0209[_0x6f085(0x16c)],'headless':Boolean(_0x66138[_0x6f085(0x1b0)]),'userDataDir':_0x41a22a,'browserProfilePath':_0x3cd500,'executablePath':_0x3e3890,'launchArgs':Array[_0x6f085(0x1e4)](_0x66138[_0x6f085(0x1de)])?_0x66138['args']['filter'](_0x32f327=>typeof _0x32f327==='string'):[],'userAgent':typeof _0x2df60b[_0x6f085(0x1db)]===_0xbf1775['mdZnc']?_0x2df60b['userAgent']:undefined,'extraHTTPHeaders':_0x2df60b[_0x6f085(0x1ea)],'allowInsecureLocalhost':_0xbf1775['mmrJL'](Boolean,_0x5b0209['allowInsecureLocalhost']),'safeMode':Boolean(_0x5b0209['safeMode']),'cdpEndpoint':_0x5b0209[_0x6f085(0x1af)],'isCdpMode':_0xbf1775[_0x6f085(0x19b)](Boolean,_0x5b0209[_0x6f085(0x1af)])};}export function getNestedValue(_0xbf6a90,_0x2ea65a){const _0x5aef0b=_0x21d118,_0x1bb30f={'Xbcdl':function(_0x4ccb2a,_0x5c090d){return _0x4ccb2a(_0x5c090d);},'fBjSK':function(_0x5fd913,_0x322bb8){return _0x5fd913===_0x322bb8;},'ugWhb':function(_0x2427ff,_0x760980){return _0x2427ff!==_0x760980;},'dYsbP':'object'},_0x8954c5=_0x1bb30f['Xbcdl'](parseKeyPath,_0x2ea65a);let _0x41ce59=_0xbf6a90;for(const _0x3b79b0 of _0x8954c5){if(_0x41ce59===null||_0x1bb30f[_0x5aef0b(0x1a6)](_0x41ce59,undefined)||_0x1bb30f['ugWhb'](typeof _0x41ce59,_0x1bb30f['dYsbP']))return undefined;_0x41ce59=_0x41ce59[_0x3b79b0];}return _0x41ce59;}export function setNestedValue(_0x420d93,_0x3ddcff,_0x4a2ddb){const _0x1bfe19=_0x21d118,_0x38bd8a={'accMD':function(_0x44a582,_0x8bf9e0){return _0x44a582(_0x8bf9e0);},'LSDDb':function(_0x301aeb,_0x313fb7){return _0x301aeb-_0x313fb7;},'matbv':function(_0x11e4b2,_0x1bb77b){return _0x11e4b2!==_0x1bb77b;}},_0x3e12b6=_0x38bd8a['accMD'](parseKeyPath,_0x3ddcff);let _0x355b4e=_0x420d93;for(let _0x39d0ea=0x0;_0x39d0ea<_0x38bd8a[_0x1bfe19(0x1f2)](_0x3e12b6[_0x1bfe19(0x1a1)],0x1);_0x39d0ea++){const _0x5157eb=_0x3e12b6[_0x39d0ea];(!(_0x5157eb in _0x355b4e)||_0x38bd8a[_0x1bfe19(0x174)](typeof _0x355b4e[_0x5157eb],_0x1bfe19(0x1e3)))&&(_0x355b4e[_0x5157eb]={}),_0x355b4e=_0x355b4e[_0x5157eb];}_0x355b4e[_0x3e12b6[_0x3e12b6[_0x1bfe19(0x1a1)]-0x1]]=_0x4a2ddb;}export function deleteNestedValue(_0x1d3963,_0x3bf051){const _0x5cd5b8=_0x21d118,_0x4651bb={'LMIoR':function(_0x4aadba,_0x511026){return _0x4aadba(_0x511026);},'tNnaH':function(_0x4af8cf,_0x3e18c1){return _0x4af8cf<_0x3e18c1;},'ziRrT':function(_0x49cff7,_0x114f90){return _0x49cff7-_0x114f90;},'kPFHm':function(_0x40e323,_0x4fc5da){return _0x40e323===_0x4fc5da;},'mcZTz':_0x5cd5b8(0x1e3),'RmIwS':function(_0x3249bc,_0x40c88b){return _0x3249bc in _0x40c88b;}},_0x1829c0=_0x4651bb[_0x5cd5b8(0x192)](parseKeyPath,_0x3bf051);let _0x5b3e57=_0x1d3963;for(let _0x466faf=0x0;_0x4651bb[_0x5cd5b8(0x16d)](_0x466faf,_0x4651bb[_0x5cd5b8(0x170)](_0x1829c0['length'],0x1));_0x466faf++){if(_0x5b3e57===null||_0x4651bb[_0x5cd5b8(0x1c4)](_0x5b3e57,undefined)||typeof _0x5b3e57!==_0x4651bb['mcZTz'])return![];_0x5b3e57=_0x5b3e57[_0x1829c0[_0x466faf]];}if(_0x5b3e57===null||_0x4651bb['kPFHm'](_0x5b3e57,undefined)||typeof _0x5b3e57!==_0x4651bb[_0x5cd5b8(0x189)])return![];const _0x5198b2=_0x1829c0[_0x1829c0[_0x5cd5b8(0x1a1)]-0x1];if(_0x4651bb['RmIwS'](_0x5198b2,_0x5b3e57))return delete _0x5b3e57[_0x5198b2],!![];return![];}function parseKeyPath(_0x5a1fbb){const _0x99a4b=_0x21d118,_0x17b3e5={'KslsQ':function(_0x513183,_0x54d4e1){return _0x513183===_0x54d4e1;},'KItIN':_0x99a4b(0x1b1),'DoiZH':'headers','PPUHl':function(_0x1982e6,_0x5162a0){return _0x1982e6===_0x5162a0;},'CMedL':_0x99a4b(0x165)},_0x24be75=_0x5a1fbb[_0x99a4b(0x1d5)]('.');return _0x17b3e5['KslsQ'](_0x24be75[0x0],_0x17b3e5[_0x99a4b(0x1ba)])&&(_0x24be75[0x0]=_0x17b3e5[_0x99a4b(0x183)]),_0x17b3e5[_0x99a4b(0x1ca)](_0x24be75[0x0],_0x17b3e5['CMedL'])&&(_0x24be75[0x0]='setupHeaders'),_0x24be75;}export function formatSettings(_0x819ca8,_0x3dd706=0x0){const _0x1f4eee=_0x21d118,_0x17a450={'yVWNR':function(_0x2ef2d4,_0x57135e){return _0x2ef2d4===_0x57135e;}},_0x3929e1=[],_0x51fd3c='\x20\x20'['repeat'](_0x3dd706);for(const [_0xcd023a,_0x4700f7]of Object[_0x1f4eee(0x1d2)](_0x819ca8)){if(_0x17a450[_0x1f4eee(0x1d9)](_0x4700f7,undefined))continue;if(_0x17a450['yVWNR'](typeof _0x4700f7,'object')&&_0x4700f7!==null){_0x3929e1['push'](''+_0x51fd3c+_0xcd023a+':');for(const [_0x130ce5,_0xc247fa]of Object['entries'](_0x4700f7)){_0x3929e1['push'](_0x51fd3c+'\x20\x20'+_0x130ce5+':\x20'+_0xc247fa);}}else _0x3929e1['push'](''+_0x51fd3c+_0xcd023a+':\x20'+_0x4700f7);}return _0x3929e1['join']('\x0a');}
1
+ const _0x245011=_0x2870;(function(_0x1ac588,_0x4ee0b1){const _0x3e8a54=_0x2870,_0x993b03=_0x1ac588();while(!![]){try{const _0x38b995=parseInt(_0x3e8a54(0x1f6))/0x1+parseInt(_0x3e8a54(0x1b2))/0x2*(parseInt(_0x3e8a54(0x1a8))/0x3)+-parseInt(_0x3e8a54(0x209))/0x4+parseInt(_0x3e8a54(0x1dd))/0x5*(-parseInt(_0x3e8a54(0x1b8))/0x6)+parseInt(_0x3e8a54(0x19d))/0x7*(parseInt(_0x3e8a54(0x1b4))/0x8)+-parseInt(_0x3e8a54(0x185))/0x9+-parseInt(_0x3e8a54(0x1da))/0xa;if(_0x38b995===_0x4ee0b1)break;else _0x993b03['push'](_0x993b03['shift']());}catch(_0x5f0ccf){_0x993b03['push'](_0x993b03['shift']());}}}(_0x1faf,0x43dff));function _0x2870(_0x37d75d,_0x581386){_0x37d75d=_0x37d75d-0x185;const _0x1faf30=_0x1faf();let _0x287071=_0x1faf30[_0x37d75d];return _0x287071;}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x12605c,_0x3ed754){const _0x5edf47=_0x2870,_0x2bc208={'AigSE':function(_0x4c4f80,_0x179d99,_0x58b8b0,_0x46f359){return _0x4c4f80(_0x179d99,_0x58b8b0,_0x46f359);},'jFGrg':function(_0x466fb1,_0x28b651,_0x52a2b4){return _0x466fb1(_0x28b651,_0x52a2b4);},'vYXIA':function(_0xe85846,_0x229bff){return _0xe85846(_0x229bff);},'zqnsL':function(_0x358376,_0x1a8c5f){return _0x358376(_0x1a8c5f);},'HmsuO':function(_0x3b55a4,_0x7a5e62){return _0x3b55a4!==_0x7a5e62;},'gbhqo':function(_0x437097,_0x1a2d57){return _0x437097!==_0x1a2d57;}},_0x317d77=_0x2bc208[_0x5edf47(0x1cc)](join,_0x3ed754,'ci',_0x12605c),_0x2bdf61=join(_0x3ed754,'local',_0x12605c),_0x12a6a6=_0x2bc208[_0x5edf47(0x1c4)](join,_0x3ed754,_0x12605c),_0x1b904d=_0x2bc208['jFGrg'](join,_0x3ed754,_0x5edf47(0x1a5)),_0x29e3ae=_0x2bc208[_0x5edf47(0x1c4)](join,_0x3ed754,'ci');if(_0x2bc208['vYXIA'](existsSync,_0x317d77))return _0x317d77;if(_0x2bc208['zqnsL'](existsSync,_0x2bdf61))return _0x2bdf61;if(existsSync(_0x12a6a6)&&(_0x2bc208[_0x5edf47(0x1e6)](_0x12a6a6,_0x1b904d)&&_0x2bc208[_0x5edf47(0x1f7)](_0x12a6a6,_0x29e3ae)?!![]:_0x2bc208['zqnsL'](hasLegacyProfileFiles,_0x12a6a6)))return _0x12a6a6;return null;}export function getEnvDir(_0x313347,_0x14ec30={}){const _0x3d77de=_0x2870,_0x2eaaab={'RwFIW':function(_0x1d1c67){return _0x1d1c67();},'CLjAC':function(_0x5550ad,_0x2a074b,_0x19eab6){return _0x5550ad(_0x2a074b,_0x19eab6);},'neFDI':function(_0x60b5ba,_0x5223b2){return _0x60b5ba(_0x5223b2);},'OXsJU':function(_0x4bdf77,_0x1e2c24,_0x20c8a0){return _0x4bdf77(_0x1e2c24,_0x20c8a0);},'RcArc':function(_0x2a180c,_0x3d9de8,_0x4520e2,_0x586ad7){return _0x2a180c(_0x3d9de8,_0x4520e2,_0x586ad7);},'LSwRw':'local','NczgF':function(_0x46b230,_0x571fe4,_0x3ebac7){return _0x46b230(_0x571fe4,_0x3ebac7);}},_0x16a7bd=_0x2eaaab['RwFIW'](getRangerDir),_0x553a83=_0x2eaaab[_0x3d77de(0x1f4)](findEnvInRoot,_0x313347,_0x16a7bd);if(_0x553a83){if(_0x14ec30[_0x3d77de(0x1c2)]&&_0x2eaaab['neFDI'](isLegacyEnvPath,_0x553a83))throw legacyWriteError(_0x313347,_0x553a83);return _0x553a83;}const _0x2a381b=getRangerHomeDir();if(_0x2a381b!==_0x16a7bd){const _0x1119c6=_0x2eaaab[_0x3d77de(0x1f4)](findEnvInRoot,_0x313347,_0x2a381b);if(_0x1119c6){if(_0x14ec30['forWrite']&&isLegacyEnvPath(_0x1119c6))throw _0x2eaaab[_0x3d77de(0x1ce)](legacyWriteError,_0x313347,_0x1119c6);return _0x1119c6;}}const _0x14d68b=_0x2eaaab['RcArc'](join,_0x2a381b,_0x2eaaab['LSwRw'],_0x313347);if(_0x14ec30['forWrite'])throw _0x2eaaab['NczgF'](legacyWriteError,_0x313347,_0x14d68b);return _0x14d68b;}function isLegacyEnvPath(_0x21f39c){const _0x8c70e6=_0x2870,_0x251f3a={'Fvygz':function(_0x55b490){return _0x55b490();},'vsQNn':function(_0x442259,_0x35245c){return _0x442259===_0x35245c;}},_0x4166f3=_0x251f3a[_0x8c70e6(0x18d)](getRangerDir),_0x513153=getRangerHomeDir();for(const _0x18372a of new Set([_0x4166f3,_0x513153])){const _0x479017=_0x18372a[_0x8c70e6(0x203)]('/')?_0x18372a:_0x18372a+'/';if(_0x251f3a[_0x8c70e6(0x1b9)](_0x21f39c,_0x18372a)||_0x21f39c[_0x8c70e6(0x204)](_0x479017))return!![];}return![];}function legacyWriteError(_0x484d1b,_0x537903){const _0x424511=_0x2870,_0x36d5b6={'skhxd':function(_0x3cd95b,_0x1b6216){return _0x3cd95b+_0x1b6216;}};return new Error(_0x36d5b6['skhxd']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x484d1b+'\x22\x20to\x20legacy\x20path\x20'+_0x537903+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x424511(0x19e)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x5d4a60,_0x40c3c1){const _0x594295=_0x2870,_0xc1f0b0={'sFNRz':function(_0x4bb975){return _0x4bb975();},'MffLf':function(_0x434c73){return _0x434c73();},'NZnIa':function(_0x5bd782,_0x228889,_0xeb6493){return _0x5bd782(_0x228889,_0xeb6493);},'JLJPE':_0x594295(0x1a5),'rcLwM':function(_0x2a8769,_0x54f559){return _0x2a8769===_0x54f559;},'kRcFB':function(_0x3b068f,_0x44d2db){return _0x3b068f(_0x44d2db);}},_0x64b94e=_0x40c3c1?.[_0x594295(0x1e7)],_0x14bda5=_0x64b94e?[_0x64b94e]:[_0xc1f0b0['sFNRz'](getRangerDir),_0xc1f0b0[_0x594295(0x18a)](getRangerHomeDir)][_0x594295(0x1c6)]((_0xb65ffe,_0x13950d,_0x4a35bc)=>_0x4a35bc['indexOf'](_0xb65ffe)===_0x13950d),_0x5a3855=_0x40c3c1?.[_0x594295(0x1cf)]??['ci','local','legacy'];for(const _0x370d34 of _0x14bda5){const _0x4133fe=_0xc1f0b0[_0x594295(0x1df)](join,_0x370d34,_0xc1f0b0[_0x594295(0x20f)]),_0x2c3c4c=join(_0x370d34,'ci'),_0x3caef2=[{'location':'ci','path':join(_0x370d34,'ci',_0x5d4a60)},{'location':_0xc1f0b0[_0x594295(0x20f)],'path':join(_0x370d34,_0xc1f0b0[_0x594295(0x20f)],_0x5d4a60)},{'location':'legacy','path':join(_0x370d34,_0x5d4a60)}];for(const _0x1f7efb of _0x3caef2){if(_0x5a3855[_0x594295(0x1a3)](_0x1f7efb['location'])&&existsSync(_0x1f7efb[_0x594295(0x199)])){if(_0xc1f0b0['rcLwM'](_0x1f7efb[_0x594295(0x1ec)],_0x594295(0x1cb))&&(_0x1f7efb[_0x594295(0x199)]===_0x4133fe||_0xc1f0b0['rcLwM'](_0x1f7efb['path'],_0x2c3c4c))&&!_0xc1f0b0[_0x594295(0x1c7)](hasLegacyProfileFiles,_0x1f7efb['path']))continue;return{'path':_0x1f7efb[_0x594295(0x199)],'location':_0x1f7efb['location']};}}}return null;}function hasLegacyProfileFiles(_0x303132){const _0x2b76b4=_0x2870,_0x1c0c80={'bWMFT':function(_0x497558,_0x173bc2,_0x270ded){return _0x497558(_0x173bc2,_0x270ded);},'XMBlV':function(_0x27da21,_0x535de9){return _0x27da21(_0x535de9);},'hSnUG':'auth.json','NNbGD':function(_0x13c3b9,_0x54fe1b,_0x3708a0){return _0x13c3b9(_0x54fe1b,_0x3708a0);}};return existsSync(_0x1c0c80[_0x2b76b4(0x1fe)](join,_0x303132,_0x2b76b4(0x1a6)))||_0x1c0c80['XMBlV'](existsSync,_0x1c0c80['bWMFT'](join,_0x303132,_0x1c0c80[_0x2b76b4(0x187)]))||existsSync(_0x1c0c80[_0x2b76b4(0x1f2)](join,_0x303132,'auth.json.enc'));}export function isEnvCi(_0x5e5b32){const _0xb1a315=_0x2870,_0x4ca43e={'NwyWJ':function(_0x2cf9f1,_0x224d6d){return _0x2cf9f1(_0x224d6d);},'feJaF':function(_0x413655){return _0x413655();},'AXESz':function(_0x49e186){return _0x49e186();},'HBpEY':function(_0x1455f2,_0x44471c){return _0x1455f2(_0x44471c);},'oSeIR':function(_0x10f3e3,_0x29cc39,_0x59eec7,_0x37a2a0){return _0x10f3e3(_0x29cc39,_0x59eec7,_0x37a2a0);}};if(_0x4ca43e[_0xb1a315(0x1f5)](existsSync,join(_0x4ca43e[_0xb1a315(0x186)](getRangerDir),'ci',_0x5e5b32)))return!![];const _0x1ae2e1=_0x4ca43e[_0xb1a315(0x1bc)](getRangerHomeDir);if(_0x1ae2e1!==getRangerDir()&&_0x4ca43e[_0xb1a315(0x1ad)](existsSync,_0x4ca43e[_0xb1a315(0x195)](join,_0x1ae2e1,'ci',_0x5e5b32)))return!![];return![];}export async function cleanupTempFiles(_0x249131){const _0x521e43=_0x2870,_0x2d77ad={'QBCbA':_0x521e43(0x189)},_0x20570a=[_0x249131['tempAuthPath'],_0x249131[_0x521e43(0x1bf)]][_0x521e43(0x1c6)](Boolean);await Promise[_0x521e43(0x1f9)](_0x20570a[_0x521e43(0x1ef)](_0x449657=>unlink(_0x449657)[_0x521e43(0x194)](_0x90415d=>{_0x90415d['code']!==_0x2d77ad['QBCbA']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x449657+':',_0x90415d['message']);})));}export function getSettingsPath(_0x52e049){return join(getEnvDir(_0x52e049),'settings.json');}export async function loadSettings(_0x4042d5){const _0x38f22a=_0x2870,_0x1ba57b={'mbWbt':function(_0x40766e,_0x5e8d7c){return _0x40766e(_0x5e8d7c);},'NrVgD':function(_0x427967,_0x3b4353){return _0x427967(_0x3b4353);}},_0x245660=_0x1ba57b[_0x38f22a(0x1a4)](getSettingsPath,_0x4042d5);if(!_0x1ba57b[_0x38f22a(0x1d4)](existsSync,_0x245660))return{};try{const _0x4af592=await readFile(_0x245660,'utf-8');return JSON['parse'](_0x4af592);}catch{return{};}}function _0x1faf(){const _0xcb0a1=['697359dNDggY','ukQxz','wyOSE','cxCjn','env','HBpEY','Failed\x20to\x20decrypt\x20auth\x20state:\x20','storageState','sessions','ubGBj','4LkuMee','allowInsecureLocalhost','11920QNahSD','nsyav','ivvKQ','Lnlfa','6xtCykN','vsQNn','baseUrl','UequY','AXESz','storageStatePath','string','configPath','zzwXo','jGpRp','forWrite','length','jFGrg','.json','filter','kRcFB','nJeBz','BOUdU','GpBMt','legacy','AigSE','ujKCd','OXsJU','locations','DFYMk','stagehand','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--allow-running-insecure-content','NrVgD','headers','Nbcut','KqkKm','--no-sandbox','hYlEf','1126190HZIdTe','getuid','stringify','40345OnpfMS','entries','NZnIa','auth.json','xWydL','--disable-setuid-sandbox','QhWoK','TmRNF','awkdQ','HmsuO','rangerDir','ZpDuc','setupHeaders','chromium','FoPcg','location','LgvKV','clipboard-read','map','uAKlT','OQohJ','NNbGD','UvLeI','CLjAC','NwyWJ','363414hpsJAF','gbhqo','VlWHB','all','cdpEndpoint','executablePath','-rangerwright.json','abVvB','bWMFT','AvvtT','setupHeader','push','QWljt','endsWith','startsWith','isArray','safeMode','SogKM','bGxJo','1318940OvJxTA','repeat','-cli','extraHTTPHeaders','--allow-insecure-localhost','KxeRT','JLJPE','object','Environment\x20variable\x20','now','userAgent','sWtFm','3098178UFwtzn','feJaF','hSnUG','vision','ENOENT','MffLf','IkxZP','allow','Fvygz','install','GSdMz','sGAUl','none','ZedCK','tkkJO','catch','oSeIR','headless','ranger-auth-','iOjyF','path','IJgBN','tabs','BIYMc','1148PsicjH','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','browser','playwright-cli','args','contextOptions','includes','mbWbt','local','settings.json','OeIfu'];_0x1faf=function(){return _0xcb0a1;};return _0x1faf();}export async function saveSettings(_0x1d7c91,_0x1c5052){const _0x42a7d1=_0x2870,_0x278029={'tkkJO':function(_0xd5a8f9,_0x4c1137){return _0xd5a8f9(_0x4c1137);},'xqZtT':function(_0x2ea1ea,_0x34e6db){return _0x2ea1ea(_0x34e6db);},'zzwXo':function(_0x22f193,_0x47a237,_0x423040){return _0x22f193(_0x47a237,_0x423040);}},_0x713a2f=_0x278029[_0x42a7d1(0x193)](getSettingsPath,_0x1d7c91),_0x5bf5c6=_0x278029['tkkJO'](dirname,_0x713a2f);!_0x278029['xqZtT'](existsSync,_0x5bf5c6)&&await mkdir(_0x5bf5c6,{'recursive':!![]}),await _0x278029[_0x42a7d1(0x1c0)](writeFile,_0x713a2f,JSON['stringify'](_0x1c5052,null,0x2));}export function resolveEnvVars(_0x38969e){const _0x669bd8=_0x2870,_0x3f08d4={'iOjyF':function(_0x3d4779,_0x1e1975){return _0x3d4779===_0x1e1975;}};if(_0x3f08d4['iOjyF'](typeof _0x38969e,'string'))return _0x38969e['replace'](/\$\{(\w+)\}/g,(_0x2afdf5,_0x1ff54b)=>{const _0x5daab8=_0x2870,_0x1cb0d1=process[_0x5daab8(0x1ac)][_0x1ff54b];if(_0x1cb0d1===undefined)throw new Error(_0x5daab8(0x211)+_0x1ff54b+'\x20is\x20not\x20set');return _0x1cb0d1;});if(Array['isArray'](_0x38969e))return _0x38969e['map'](resolveEnvVars);if(_0x38969e&&_0x3f08d4[_0x669bd8(0x198)](typeof _0x38969e,_0x669bd8(0x210)))return Object['fromEntries'](Object['entries'](_0x38969e)[_0x669bd8(0x1ef)](([_0x1e338f,_0x1b8715])=>[_0x1e338f,resolveEnvVars(_0x1b8715)]));return _0x38969e;}const isRecord=_0x5ea167=>typeof _0x5ea167==='object'&&_0x5ea167!==null&&!Array[_0x245011(0x205)](_0x5ea167),asRecord=_0x8a90f4=>isRecord(_0x8a90f4)?_0x8a90f4:undefined,mergeHeaders=(_0x725aec,_0x2b9e70)=>{const _0x2e507e=_0x245011,_0x3f7178={..._0x725aec??{},..._0x2b9e70??{}};return Object['keys'](_0x3f7178)[_0x2e507e(0x1c3)]?_0x3f7178:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x245011(0x1d3),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x245011(0x20d)];export function buildBrowserOptionsFromSettings(_0x3489d8,_0xbfa70b={}){const _0xb7ec9f=_0x245011,_0x42322b={'ubGBj':function(_0x52e639,_0xfd4e57){return _0x52e639(_0xfd4e57);},'uAKlT':function(_0x330f9a,_0x1db025){return _0x330f9a(_0x1db025);},'vTzfe':function(_0x4703c0,_0x50d11c){return _0x4703c0===_0x50d11c;},'XeVKF':function(_0x25469f,_0x11def6){return _0x25469f===_0x11def6;},'kSCJS':function(_0x351496,_0x5afe2e){return _0x351496(_0x5afe2e);}},_0x5b3506=_0x42322b[_0xb7ec9f(0x1b1)](asRecord,_0x3489d8['browser']),_0x4b601b={..._0x42322b[_0xb7ec9f(0x1f0)](asRecord,_0x5b3506?.['launchOptions'])??{}};_0x42322b['vTzfe'](typeof _0xbfa70b['headless'],'boolean')&&(_0x4b601b[_0xb7ec9f(0x196)]=_0xbfa70b['headless']);if(_0x3489d8[_0xb7ec9f(0x206)]){const _0xa52093=_0x4b601b['args']??[],_0x5f073f=SAFE_MODE_ARGS[_0xb7ec9f(0x1c6)](_0x2e0f65=>!_0xa52093['includes'](_0x2e0f65));_0x4b601b['args']=[..._0xa52093,..._0x5f073f];}if(_0x3489d8[_0xb7ec9f(0x1b3)]){const _0x1eedf7=_0x4b601b['args']??[],_0x5af466=ALLOW_LOCALHOST_ARGS['filter'](_0x598e97=>!_0x1eedf7['includes'](_0x598e97));_0x4b601b[_0xb7ec9f(0x1a1)]=[..._0x1eedf7,..._0x5af466];}const _0x1e6511={...asRecord(_0x5b3506?.['contextOptions'])??{}};_0x1e6511['ignoreHTTPSErrors']=!![];_0x42322b['XeVKF'](typeof _0x3489d8[_0xb7ec9f(0x213)],_0xb7ec9f(0x1be))&&(_0x1e6511[_0xb7ec9f(0x213)]=_0x3489d8[_0xb7ec9f(0x213)]);const _0x2c021f=mergeHeaders(_0x42322b['kSCJS'](asRecord,_0x1e6511[_0xb7ec9f(0x20c)]),asRecord(_0x3489d8['headers']));return _0x2c021f?_0x1e6511[_0xb7ec9f(0x20c)]=_0x2c021f:delete _0x1e6511[_0xb7ec9f(0x20c)],_0xbfa70b[_0xb7ec9f(0x1bd)]&&(_0x1e6511['storageState']=_0xbfa70b[_0xb7ec9f(0x1bd)]),{'launchOptions':_0x4b601b,'contextOptions':_0x1e6511};}export async function resolveProfileStorageState(_0x590b24){const _0x20f26d=_0x245011,_0x3e493a={'QhWoK':function(_0x1fc690,_0x1d05a8){return _0x1fc690(_0x1d05a8);}};return resolveLocalAuthPath(_0x3e493a[_0x20f26d(0x1e3)](getEnvDir,_0x590b24));}async function resolveLocalAuthPath(_0x23b542){const _0x434ea3=_0x245011,_0x40415a={'JyJPb':function(_0x5c3eca,_0x259ae3,_0x2e185b){return _0x5c3eca(_0x259ae3,_0x2e185b);},'ujKCd':_0x434ea3(0x1e0),'VlWHB':function(_0x41d6ec,_0x30782b){return _0x41d6ec(_0x30782b);},'hYlEf':function(_0x29e7ec){return _0x29e7ec();},'gcNmO':_0x434ea3(0x1d2),'LTtid':function(_0x7e139b,_0x39cf78){return _0x7e139b(_0x39cf78);},'Lnlfa':function(_0x54ef1e,_0x3193f5,_0x59e32f){return _0x54ef1e(_0x3193f5,_0x59e32f);},'LgvKV':function(_0x186a73){return _0x186a73();},'ukQxz':function(_0x5ed2f8,_0x4ef47d){return _0x5ed2f8(_0x4ef47d);}},_0xb51773=_0x40415a['JyJPb'](join,_0x23b542,'auth.json.enc'),_0x47efdd=join(_0x23b542,_0x40415a[_0x434ea3(0x1cd)]);if(_0x40415a[_0x434ea3(0x1f8)](existsSync,_0xb51773))try{const _0x54fbb9=await _0x40415a[_0x434ea3(0x1d9)](getToken);if(!_0x54fbb9)throw new Error(_0x40415a['gcNmO']);const _0x1b8bde=await _0x40415a['LTtid'](readFile,_0xb51773),_0x4d6664=decrypt(_0x1b8bde,_0x54fbb9),_0x2bc63f=_0x40415a[_0x434ea3(0x1b7)](join,_0x40415a[_0x434ea3(0x1ed)](tmpdir),_0x434ea3(0x197)+Date[_0x434ea3(0x212)]()+_0x434ea3(0x1c5));return await writeFile(_0x2bc63f,_0x4d6664),{'storageStatePath':_0x2bc63f,'tempAuthPath':_0x2bc63f};}catch(_0x5bf784){const _0x36f846=_0x5bf784 instanceof Error?_0x5bf784['message']:_0x40415a[_0x434ea3(0x1a9)](String,_0x5bf784);throw new Error(_0x434ea3(0x1ae)+_0x36f846);}if(existsSync(_0x47efdd))return{'storageStatePath':_0x47efdd};return{};}export async function buildPlaywrightConfig(_0x4cbe19,_0x3c880d,_0xdbf531,_0x14c480,_0x10fa18){const _0xbe6e59=_0x245011,_0x1ba448={'KqkKm':'stagehand','ZedCK':function(_0xc54b65,_0x4af536){return _0xc54b65(_0x4af536);}};if(_0x10fa18)return buildPlaywrightConfigCore(_0x4cbe19,_0x10fa18,_0x3c880d,_0xdbf531,_0x14c480,_0x1ba448[_0xbe6e59(0x1d7)]);const {storageStatePath:_0x317888,tempAuthPath:_0x1c7975}=await resolveLocalAuthPath(getEnvDir(_0x3c880d));try{const _0x2fda45=await buildPlaywrightConfigCore(_0x4cbe19,_0x317888,_0x3c880d,_0xdbf531,_0x14c480,_0x1ba448[_0xbe6e59(0x1d7)]);return{..._0x2fda45,'tempAuthPath':_0x1c7975};}catch(_0x5085ff){_0x1c7975&&await _0x1ba448[_0xbe6e59(0x192)](unlink,_0x1c7975)[_0xbe6e59(0x194)](()=>{});throw _0x5085ff;}}export async function buildPlaywrightConfigCore(_0x2aa8a9,_0x65095c,_0x437a89,_0xc7acb3,_0xe08db6,_0x177b24=_0x245011(0x1d1)){const _0x54a4c5=_0x245011,_0x37daa5={'QWljt':function(_0x404d7b,_0x3348c8,_0x2c35d8){return _0x404d7b(_0x3348c8,_0x2c35d8);},'XLuQi':'--no-sandbox','cvQLu':'clipboard-read','PhcRG':function(_0xbd53c){return _0xbd53c();},'usHkJ':function(_0xe5ee,_0xa6e8bf,_0xed84ef,_0x1841e8){return _0xe5ee(_0xa6e8bf,_0xed84ef,_0x1841e8);},'GbtSz':_0x54a4c5(0x1b0),'TmRNF':'chromium','Nbcut':_0x54a4c5(0x191),'GgRyw':'core','aHZTk':_0x54a4c5(0x19b),'IJgBN':_0x54a4c5(0x18e),'nsyav':'pdf','UUiqz':_0x54a4c5(0x188),'SogKM':_0x54a4c5(0x18c),'KAiQu':function(_0x3f42e7,_0x5de651,_0x50203f){return _0x3f42e7(_0x5de651,_0x50203f);},'Qcrgq':'ranger-config','GpBMt':_0x54a4c5(0x20b)},_0x5db899=_0xc7acb3||_0x37daa5['PhcRG'](randomUUID),_0x19ef48=_0x37daa5['usHkJ'](join,_0x37daa5['PhcRG'](getRangerDir),_0x37daa5['GbtSz'],_0x5db899),_0x2eb7c9=Boolean(_0x2aa8a9['cdpEndpoint']),_0x199f7c=_0x2eb7c9?{'browserName':_0x37daa5[_0x54a4c5(0x1e4)],'cdpEndpoint':_0x2aa8a9[_0x54a4c5(0x1fa)]}:((()=>{const _0x36fa7b=_0x54a4c5,{launchOptions:_0x196a30,contextOptions:_0x34823d}=_0x37daa5[_0x36fa7b(0x202)](buildBrowserOptionsFromSettings,_0x2aa8a9,{'headless':_0xe08db6?![]:_0x2aa8a9['headless']??!![],'storageStatePath':_0x65095c});if(process[_0x36fa7b(0x1db)]?.()===0x0){const _0x44a95f=[_0x37daa5['XLuQi'],_0x36fa7b(0x1e2)],_0x25a8d9=_0x196a30['args']??[],_0x539200=_0x44a95f[_0x36fa7b(0x1c6)](_0x2970a3=>!_0x25a8d9[_0x36fa7b(0x1a3)](_0x2970a3));_0x196a30['args']=[..._0x25a8d9,..._0x539200];}return{'isolated':!![],'browserName':_0x36fa7b(0x1ea),'launchOptions':_0x196a30,'contextOptions':{..._0x34823d,'permissions':[_0x37daa5['cvQLu'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x46bfd0=_0x177b24==='playwright-cli'?{'browser':_0x199f7c,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x19ef48,'outputMode':'file','codegen':_0x37daa5[_0x54a4c5(0x1d6)]}:{'name':_0x437a89,'browser':_0x199f7c,'capabilities':[_0x37daa5['GgRyw'],_0x37daa5['aHZTk'],_0x37daa5[_0x54a4c5(0x19a)],_0x37daa5[_0x54a4c5(0x1b5)],_0x37daa5['UUiqz']],'imageResponses':_0x37daa5[_0x54a4c5(0x207)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x19ef48};if(!_0x2eb7c9){const _0x30516c=_0x46bfd0[_0x54a4c5(0x19f)],_0x528640=_0x30516c['contextOptions'];if(_0x528640['userAgent']===undefined)delete _0x528640[_0x54a4c5(0x213)];if(_0x528640['storageState']===undefined)delete _0x528640[_0x54a4c5(0x1af)];}const _0x5502bb=_0x37daa5['KAiQu'](join,tmpdir(),_0x37daa5['Qcrgq']);!existsSync(_0x5502bb)&&await mkdir(_0x5502bb,{'recursive':!![]});const _0x5badff=_0x177b24===_0x54a4c5(0x1a0)?_0x37daa5[_0x54a4c5(0x1ca)]:'',_0x38c3f4=join(_0x5502bb,_0x437a89+'-'+Date[_0x54a4c5(0x212)]()+_0x5badff+_0x54a4c5(0x1c5));return await _0x37daa5[_0x54a4c5(0x202)](writeFile,_0x38c3f4,JSON['stringify'](_0x46bfd0,null,0x2)),{'configPath':_0x38c3f4,'storageStatePath':_0x65095c};}export async function buildPlaywrightCliConfig(_0x498957,_0x2832c5,_0x54d81f,_0x340e4b,_0x5c61be){const _0x25dd1e=_0x245011,_0x2637c4={'BIYMc':'playwright-cli','AvvtT':function(_0x568544,_0x409c20,_0x2c3207,_0x3ef11a,_0x3cb98c,_0x1582b5,_0x7ef7b){return _0x568544(_0x409c20,_0x2c3207,_0x3ef11a,_0x3cb98c,_0x1582b5,_0x7ef7b);},'BOUdU':function(_0x2e0e7d,_0x1e2b09){return _0x2e0e7d(_0x1e2b09);}};if(_0x5c61be)return buildPlaywrightConfigCore(_0x498957,_0x5c61be,_0x2832c5,_0x54d81f,_0x340e4b,_0x2637c4['BIYMc']);const {storageStatePath:_0x4bfafd,tempAuthPath:_0x143b96}=await resolveLocalAuthPath(getEnvDir(_0x2832c5));try{const _0x30e0e2=await _0x2637c4[_0x25dd1e(0x1ff)](buildPlaywrightConfigCore,_0x498957,_0x4bfafd,_0x2832c5,_0x54d81f,_0x340e4b,_0x2637c4[_0x25dd1e(0x19c)]);return{..._0x30e0e2,'tempAuthPath':_0x143b96};}catch(_0x5e4c8d){_0x143b96&&await _0x2637c4[_0x25dd1e(0x1c9)](unlink,_0x143b96)[_0x25dd1e(0x194)](()=>{});throw _0x5e4c8d;}}export async function buildRangerwrightCliConfig(_0x218278,_0x5195f9,_0x4385b6,_0x18bc7f,_0x485c1d){const _0x13854b=_0x245011,_0x1a7e46={'JgIqS':'--no-sandbox','sGAUl':_0x13854b(0x1ee),'UequY':function(_0x2af4c5){return _0x2af4c5();},'wyOSE':function(_0x2b2bd6,_0x3077ad){return _0x2b2bd6(_0x3077ad);},'OeIfu':function(_0x1821eb,_0x20b840){return _0x1821eb===_0x20b840;},'nJeBz':function(_0x2a2de6,_0x5b72e3,_0x6e7810){return _0x2a2de6(_0x5b72e3,_0x6e7810);},'zulrJ':'ranger-config','RbdhW':function(_0x434de3,_0x3e1d25,_0x5d3823){return _0x434de3(_0x3e1d25,_0x5d3823);}},{storageStatePath:_0x5a2c99,tempAuthPath:_0x330971}=_0x485c1d?{'storageStatePath':_0x485c1d,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x5195f9)),_0x3cdb66=_0x4385b6||_0x1a7e46['UequY'](randomUUID),_0x422fb0=join(_0x1a7e46[_0x13854b(0x1bb)](getRangerDir),_0x13854b(0x1b0),_0x3cdb66),_0x8ae689=_0x1a7e46['wyOSE'](Boolean,_0x218278[_0x13854b(0x1fa)]),_0x1df5e4=_0x8ae689?{'browserName':'chromium','cdpEndpoint':_0x218278['cdpEndpoint']}:((()=>{const _0x3ec180=_0x13854b,{launchOptions:_0x340fac,contextOptions:_0x22a6d1}=buildBrowserOptionsFromSettings(_0x218278,{'headless':_0x18bc7f?![]:_0x218278[_0x3ec180(0x196)]??!![],'storageStatePath':_0x5a2c99});if(process[_0x3ec180(0x1db)]?.()===0x0){const _0x2ecf91=[_0x1a7e46['JgIqS'],'--disable-setuid-sandbox'],_0x35b0fe=_0x340fac[_0x3ec180(0x1a1)]??[],_0x2938fd=_0x2ecf91['filter'](_0x25606f=>!_0x35b0fe['includes'](_0x25606f));_0x340fac['args']=[..._0x35b0fe,..._0x2938fd];}return{'browserName':'chromium','launchOptions':_0x340fac,'contextOptions':{..._0x22a6d1,'permissions':[_0x1a7e46[_0x3ec180(0x190)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x8ae689){const _0x3f95ac=_0x1df5e4[_0x13854b(0x1a2)];if(_0x3f95ac){if(_0x1a7e46['OeIfu'](_0x3f95ac[_0x13854b(0x213)],undefined))delete _0x3f95ac[_0x13854b(0x213)];if(_0x1a7e46[_0x13854b(0x1a7)](_0x3f95ac['storageState'],undefined))delete _0x3f95ac[_0x13854b(0x1af)];}}const _0x51233d={'browser':_0x1df5e4,'outputDir':_0x422fb0,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x5d0cda;try{const _0x5c9701=_0x1a7e46[_0x13854b(0x1c8)](join,_0x1a7e46['UequY'](tmpdir),_0x1a7e46['zulrJ']);!_0x1a7e46['wyOSE'](existsSync,_0x5c9701)&&await _0x1a7e46['RbdhW'](mkdir,_0x5c9701,{'recursive':!![]}),_0x5d0cda=_0x1a7e46['nJeBz'](join,_0x5c9701,_0x5195f9+'-'+Date[_0x13854b(0x212)]()+_0x13854b(0x1fc)),await writeFile(_0x5d0cda,JSON[_0x13854b(0x1dc)](_0x51233d,null,0x2));}catch(_0x5a31be){_0x330971&&await _0x1a7e46[_0x13854b(0x1aa)](unlink,_0x330971)[_0x13854b(0x194)](()=>{});throw _0x5a31be;}return{'configPath':_0x5d0cda,'storageStatePath':_0x5a2c99,'tempAuthPath':_0x330971,'outputDir':_0x422fb0};}export async function buildNovaActCliConfig(_0x3eda15,_0x3fd44f,_0x3a1de4,_0x40542c,_0x1d6807){const _0x4d7a5d=_0x245011,_0x1958d2={'bGxJo':function(_0x2a0778,_0x1ae3fb){return _0x2a0778(_0x1ae3fb);},'GSdMz':function(_0x2392c5,_0x1a750c){return _0x2392c5(_0x1a750c);},'abVvB':function(_0x3b59d4,_0x421538,_0x3ba59f){return _0x3b59d4(_0x421538,_0x3ba59f);},'KSHoW':'nova-user-data','DFYMk':'Default','yDSnH':function(_0x433263,_0x58b9af){return _0x433263===_0x58b9af;},'ivvKQ':_0x4d7a5d(0x1d8),'UvLeI':_0x4d7a5d(0x1e2),'FoPcg':_0x4d7a5d(0x1be),'awkdQ':function(_0x1348c8,_0xb147f){return _0x1348c8(_0xb147f);}},{storageStatePath:_0x33190b,tempAuthPath:_0x40f812}=_0x1d6807?{'storageStatePath':_0x1d6807,'tempAuthPath':undefined}:await _0x1958d2[_0x4d7a5d(0x208)](resolveLocalAuthPath,_0x1958d2[_0x4d7a5d(0x18f)](getEnvDir,_0x3fd44f)),_0x520971=_0x3a1de4||randomUUID(),_0x555eb9=join(getRangerDir(),_0x4d7a5d(0x1b0),_0x520971),_0x3f5b33=_0x1958d2[_0x4d7a5d(0x1fd)](join,_0x555eb9,_0x1958d2['KSHoW']),_0x2516c6=_0x33190b?join(_0x3f5b33,_0x1958d2[_0x4d7a5d(0x1d0)]):undefined,{launchOptions:_0x41fc58,contextOptions:_0x4f49c2}=_0x1958d2[_0x4d7a5d(0x1fd)](buildBrowserOptionsFromSettings,_0x3eda15,{'headless':_0x40542c?![]:_0x3eda15['headless']??!![],'storageStatePath':_0x33190b});if(_0x1958d2['yDSnH'](process[_0x4d7a5d(0x1db)]?.(),0x0)){const _0x3c5a18=[_0x1958d2[_0x4d7a5d(0x1b6)],_0x1958d2[_0x4d7a5d(0x1f3)]],_0x2b9cbf=_0x41fc58[_0x4d7a5d(0x1a1)]??[],_0x237bce=_0x3c5a18['filter'](_0x11adb0=>!_0x2b9cbf[_0x4d7a5d(0x1a3)](_0x11adb0));_0x41fc58['args']=[..._0x2b9cbf,..._0x237bce];}const _0x2921b2=typeof _0x41fc58[_0x4d7a5d(0x1fb)]===_0x1958d2['FoPcg']?_0x41fc58[_0x4d7a5d(0x1fb)]:_0x33190b?chromium['executablePath']():undefined;return{'storageStatePath':_0x33190b,'tempAuthPath':_0x40f812,'baseUrl':_0x3eda15[_0x4d7a5d(0x1ba)],'headless':_0x1958d2['awkdQ'](Boolean,_0x41fc58[_0x4d7a5d(0x196)]),'userDataDir':_0x3f5b33,'browserProfilePath':_0x2516c6,'executablePath':_0x2921b2,'launchArgs':Array['isArray'](_0x41fc58[_0x4d7a5d(0x1a1)])?_0x41fc58['args'][_0x4d7a5d(0x1c6)](_0x8b6544=>typeof _0x8b6544===_0x4d7a5d(0x1be)):[],'userAgent':typeof _0x4f49c2['userAgent']===_0x1958d2[_0x4d7a5d(0x1eb)]?_0x4f49c2[_0x4d7a5d(0x213)]:undefined,'extraHTTPHeaders':_0x4f49c2[_0x4d7a5d(0x20c)],'allowInsecureLocalhost':_0x1958d2[_0x4d7a5d(0x1e5)](Boolean,_0x3eda15[_0x4d7a5d(0x1b3)]),'safeMode':_0x1958d2[_0x4d7a5d(0x1e5)](Boolean,_0x3eda15['safeMode']),'cdpEndpoint':_0x3eda15[_0x4d7a5d(0x1fa)],'isCdpMode':Boolean(_0x3eda15['cdpEndpoint'])};}export function getNestedValue(_0x2c4c33,_0x23c41d){const _0x5cb340=_0x245011,_0x13b7ff={'IkxZP':function(_0x38ff27,_0x2f8b27){return _0x38ff27!==_0x2f8b27;},'wuOFZ':_0x5cb340(0x210)},_0x2c5aab=parseKeyPath(_0x23c41d);let _0x462f2e=_0x2c4c33;for(const _0x17cba0 of _0x2c5aab){if(_0x462f2e===null||_0x462f2e===undefined||_0x13b7ff[_0x5cb340(0x18b)](typeof _0x462f2e,_0x13b7ff['wuOFZ']))return undefined;_0x462f2e=_0x462f2e[_0x17cba0];}return _0x462f2e;}export function setNestedValue(_0x2a7593,_0x209444,_0x412994){const _0x35b915=_0x245011,_0x345143={'xWydL':function(_0x3b383c,_0x3b2ef8){return _0x3b383c!==_0x3b2ef8;},'KxeRT':_0x35b915(0x210)},_0x1e2f46=parseKeyPath(_0x209444);let _0x25e9f5=_0x2a7593;for(let _0x12ba25=0x0;_0x12ba25<_0x1e2f46[_0x35b915(0x1c3)]-0x1;_0x12ba25++){const _0x486e98=_0x1e2f46[_0x12ba25];(!(_0x486e98 in _0x25e9f5)||_0x345143[_0x35b915(0x1e1)](typeof _0x25e9f5[_0x486e98],_0x345143[_0x35b915(0x20e)]))&&(_0x25e9f5[_0x486e98]={}),_0x25e9f5=_0x25e9f5[_0x486e98];}_0x25e9f5[_0x1e2f46[_0x1e2f46[_0x35b915(0x1c3)]-0x1]]=_0x412994;}export function deleteNestedValue(_0x61fa19,_0x12209a){const _0x137986=_0x245011,_0x1de019={'antuo':function(_0x26af7f,_0x280eae){return _0x26af7f(_0x280eae);},'dfPhf':function(_0x1f7d7c,_0x241be3){return _0x1f7d7c-_0x241be3;},'sWtFm':function(_0x58e2d8,_0x107fcf){return _0x58e2d8===_0x107fcf;},'cxCjn':_0x137986(0x210),'jGpRp':function(_0x560085,_0x82ed15){return _0x560085-_0x82ed15;}},_0x2c7924=_0x1de019['antuo'](parseKeyPath,_0x12209a);let _0x3a6725=_0x61fa19;for(let _0x653919=0x0;_0x653919<_0x1de019['dfPhf'](_0x2c7924[_0x137986(0x1c3)],0x1);_0x653919++){if(_0x3a6725===null||_0x3a6725===undefined||typeof _0x3a6725!==_0x137986(0x210))return![];_0x3a6725=_0x3a6725[_0x2c7924[_0x653919]];}if(_0x1de019[_0x137986(0x214)](_0x3a6725,null)||_0x3a6725===undefined||typeof _0x3a6725!==_0x1de019[_0x137986(0x1ab)])return![];const _0x30cd95=_0x2c7924[_0x1de019[_0x137986(0x1c1)](_0x2c7924[_0x137986(0x1c3)],0x1)];if(_0x30cd95 in _0x3a6725)return delete _0x3a6725[_0x30cd95],!![];return![];}function parseKeyPath(_0x4b3d33){const _0x147fbb=_0x245011,_0x26fc1f={'ZpDuc':function(_0x2160c2,_0x48b11a){return _0x2160c2===_0x48b11a;},'OQohJ':_0x147fbb(0x200)},_0x314c23=_0x4b3d33['split']('.');return _0x26fc1f['ZpDuc'](_0x314c23[0x0],'header')&&(_0x314c23[0x0]=_0x147fbb(0x1d5)),_0x26fc1f[_0x147fbb(0x1e8)](_0x314c23[0x0],_0x26fc1f[_0x147fbb(0x1f1)])&&(_0x314c23[0x0]=_0x147fbb(0x1e9)),_0x314c23;}export function formatSettings(_0x68df3b,_0x490ec6=0x0){const _0x209688=_0x245011,_0x3aee1e={'NNKbl':function(_0x2ea62a,_0x34ca43){return _0x2ea62a===_0x34ca43;}},_0x264a85=[],_0x1ad45a='\x20\x20'[_0x209688(0x20a)](_0x490ec6);for(const [_0x236fb7,_0x3d7236]of Object['entries'](_0x68df3b)){if(_0x3d7236===undefined)continue;if(_0x3aee1e['NNKbl'](typeof _0x3d7236,'object')&&_0x3d7236!==null){_0x264a85[_0x209688(0x201)](''+_0x1ad45a+_0x236fb7+':');for(const [_0x5bb9ac,_0x48e0c9]of Object[_0x209688(0x1de)](_0x3d7236)){_0x264a85['push'](_0x1ad45a+'\x20\x20'+_0x5bb9ac+':\x20'+_0x48e0c9);}}else _0x264a85['push'](''+_0x1ad45a+_0x236fb7+':\x20'+_0x3d7236);}return _0x264a85['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x2840ef,_0x5a4164){const _0x5b71ec=_0x34a0,_0x5ebd24=_0x2840ef();while(!![]){try{const _0x5c08bb=parseInt(_0x5b71ec(0x134))/0x1+parseInt(_0x5b71ec(0x135))/0x2*(-parseInt(_0x5b71ec(0x129))/0x3)+parseInt(_0x5b71ec(0x131))/0x4*(parseInt(_0x5b71ec(0x130))/0x5)+-parseInt(_0x5b71ec(0x132))/0x6+-parseInt(_0x5b71ec(0x136))/0x7+-parseInt(_0x5b71ec(0x137))/0x8*(parseInt(_0x5b71ec(0x12a))/0x9)+parseInt(_0x5b71ec(0x12e))/0xa;if(_0x5c08bb===_0x5a4164)break;else _0x5ebd24['push'](_0x5ebd24['shift']());}catch(_0x5155a4){_0x5ebd24['push'](_0x5ebd24['shift']());}}}(_0x346a,0x2c3f9));function _0x346a(){const _0x3178d8=['2087334DvWZcg','nmHFY','GunTL','utf-8','3603880booQYf','skills','5eXxOLQ','399628DkozIX','39852YWYhCv','NmIkq','298036RqSfin','498244hECTTo','625800mNZruT','8aiFTDc','3iVrpqI'];_0x346a=function(){return _0x3178d8;};return _0x346a();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x34a0(_0x2068ad,_0x2932da){_0x2068ad=_0x2068ad-0x129;const _0x346a84=_0x346a();let _0x34a04c=_0x346a84[_0x2068ad];return _0x34a04c;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x2d3c2b){const _0x50d79f=_0x34a0,_0x473b11={'nmHFY':function(_0x21c1ea,_0x22d6ad,_0x12eb21,_0xe1280,_0x17e8d1){return _0x21c1ea(_0x22d6ad,_0x12eb21,_0xe1280,_0x17e8d1);},'ubwJZ':_0x50d79f(0x12f),'GunTL':function(_0x3fe6ae,_0x218387,_0x4f1566){return _0x3fe6ae(_0x218387,_0x4f1566);},'NmIkq':_0x50d79f(0x12d)},_0x57b83a=_0x473b11[_0x50d79f(0x12b)](join,__dirname,'..','..',_0x473b11['ubwJZ']),_0x523332=join(_0x57b83a,_0x2d3c2b);try{return _0x473b11[_0x50d79f(0x12c)](readFileSync,_0x523332,_0x473b11[_0x50d79f(0x133)]);}catch{return'';}}export function getRangerSkillContent(){const _0x4d4db1={'iIBxf':function(_0x2dba83,_0x12a032){return _0x2dba83(_0x12a032);}};return _0x4d4db1['iIBxf'](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x54d108,_0x3e6245){const _0x3d385c=_0xa5d1,_0xb23fce=_0x54d108();while(!![]){try{const _0x1ed2f6=-parseInt(_0x3d385c(0x133))/0x1+-parseInt(_0x3d385c(0x13b))/0x2*(parseInt(_0x3d385c(0x13a))/0x3)+-parseInt(_0x3d385c(0x132))/0x4*(parseInt(_0x3d385c(0x134))/0x5)+-parseInt(_0x3d385c(0x131))/0x6+-parseInt(_0x3d385c(0x135))/0x7*(parseInt(_0x3d385c(0x136))/0x8)+parseInt(_0x3d385c(0x139))/0x9+parseInt(_0x3d385c(0x137))/0xa;if(_0x1ed2f6===_0x3e6245)break;else _0xb23fce['push'](_0xb23fce['shift']());}catch(_0x2cc92e){_0xb23fce['push'](_0xb23fce['shift']());}}}(_0xb9f9,0x4501c));function _0xa5d1(_0x806742,_0x1863af){_0x806742=_0x806742-0x12f;const _0xb9f96c=_0xb9f9();let _0xa5d115=_0xb9f96c[_0x806742];return _0xa5d115;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x9650c4){const _0x457851=_0xa5d1,_0x4d162b={'jucLa':_0x457851(0x12f),'skWbY':function(_0x142da8,_0x42018c,_0x432c33){return _0x142da8(_0x42018c,_0x432c33);},'PFvII':'utf-8'},_0x13e51b=join(__dirname,'..','..',_0x4d162b[_0x457851(0x138)]),_0x503b9d=_0x4d162b['skWbY'](join,_0x13e51b,_0x9650c4);try{return readFileSync(_0x503b9d,_0x4d162b['PFvII']);}catch{return'';}}export function getRangerSkillContent(){const _0x4b077d=_0xa5d1,_0xfce820={'rraTl':function(_0x45cce0,_0x2f1863){return _0x45cce0(_0x2f1863);},'YskPK':'ranger/SKILL.md'};return _0xfce820[_0x4b077d(0x130)](readSkillContent,_0xfce820['YskPK']);}function _0xb9f9(){const _0x1d0472=['37064CoBldL','16228940aAglsZ','jucLa','4110111bnKOvL','183357Xxkrky','16kfdgfQ','skills','rraTl','1334676RFQmQX','168MneeNc','332414bEkddP','39465utFQGc','637LNXYvO'];_0xb9f9=function(){return _0x1d0472;};return _0xb9f9();}
@@ -1 +1 @@
1
- const _0x5e8466=_0x1847;(function(_0x15aed8,_0xbd0e92){const _0x4ed949=_0x1847,_0x184e84=_0x15aed8();while(!![]){try{const _0xd6d3d9=parseInt(_0x4ed949(0x1b4))/0x1+-parseInt(_0x4ed949(0x1c1))/0x2*(-parseInt(_0x4ed949(0x1c5))/0x3)+-parseInt(_0x4ed949(0x1ca))/0x4+-parseInt(_0x4ed949(0x1bc))/0x5*(parseInt(_0x4ed949(0x1c8))/0x6)+parseInt(_0x4ed949(0x1b5))/0x7+-parseInt(_0x4ed949(0x1c7))/0x8+parseInt(_0x4ed949(0x1c3))/0x9*(parseInt(_0x4ed949(0x1cb))/0xa);if(_0xd6d3d9===_0xbd0e92)break;else _0x184e84['push'](_0x184e84['shift']());}catch(_0x1d10f0){_0x184e84['push'](_0x184e84['shift']());}}}(_0x1367,0xdeb57));function _0x1367(){const _0x163ad5=['cArgX','Invalid\x20skill\x20frontmatter','VLxXj','\x20\x20Skill\x20not\x20found:\x20','eCSVH','590MTnxip','\x20\x20Installed\x20skill:\x20','uYbxw','QHXCF','gOAmx','3005346MejvoJ','catch','9qjlxRt','trim','3zsRSjH','SKILL.md','11613224LHoeen','52764hvpDdj','project','4071228dJzfDu','16534900IpwInh','bug-bash','log','warn','feature-tracker','ranger','match','filter','eITQK','length','isDirectory','947308LpyFjG','2211272ebDcvc','push'];_0x1367=function(){return _0x163ad5;};return _0x1367();}import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5e8466(0x1d0)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x5e8466(0x1cc),_0x5e8466(0x1cf)];export async function installSkill(_0x542bcb,_0x2ab47f={}){const _0x567021=_0x5e8466,_0x4880a6={'Xghyz':'claude','eCSVH':function(_0xa9860f,_0x5ec27e,_0x388618){return _0xa9860f(_0x5ec27e,_0x388618);},'gOAmx':function(_0x3a3d23,_0x3e6c31,_0x550991){return _0x3a3d23(_0x3e6c31,_0x550991);},'iuYcB':function(_0x3580c0,_0x392966){return _0x3580c0(_0x392966);},'QHXCF':function(_0x2d97e3,_0x20c206){return _0x2d97e3===_0x20c206;},'jCImA':function(_0x2c3a89,_0x16a8c5,_0x527ef7){return _0x2c3a89(_0x16a8c5,_0x527ef7);},'yZoYi':function(_0x3f6e3c,_0x1a5fe0,_0x57ce90){return _0x3f6e3c(_0x1a5fe0,_0x57ce90);},'uYbxw':function(_0x5a85d1,_0x3beb64,_0x337d6b){return _0x5a85d1(_0x3beb64,_0x337d6b);},'efpbE':_0x567021(0x1c6),'auDec':'utf-8','eHEeM':function(_0xe41c8a,_0x2cf99d,_0x8a95f7,_0x46d596){return _0xe41c8a(_0x2cf99d,_0x8a95f7,_0x46d596);},'cArgX':function(_0x3c6a91,_0x173d9f){return _0x3c6a91(_0x173d9f);}},{level:level=_0x567021(0x1c9),cliVersion:_0x1788c4,platform:platform=_0x4880a6['Xghyz']}=_0x2ab47f,_0x45357d=getSourceSkillsDir(),_0x4c7465=join(_0x45357d,_0x542bcb),_0x4062c9=_0x4880a6['eCSVH'](join,_0x45357d,_0x542bcb+'.md'),_0xa0d5e3=existsSync(_0x4c7465)&&statSync(_0x4c7465)[_0x567021(0x1d5)]()&&existsSync(_0x4880a6[_0x567021(0x1c0)](join,_0x4c7465,'SKILL.md')),_0xf61bc2=_0x4880a6['iuYcB'](existsSync,_0x4062c9);if(!_0xa0d5e3&&!_0xf61bc2)return console['warn'](_0x567021(0x1ba)+_0x542bcb),![];const _0x1048c5=_0x4880a6[_0x567021(0x1bf)](platform,'opencode')?getOpencodeSkillsDir(level):getSkillsDir(level),_0x17d351=_0x4880a6['jCImA'](join,_0x1048c5,_0x542bcb);await mkdir(_0x17d351,{'recursive':!![]});let _0x37cdf9,_0x5dcefd=[];if(_0xa0d5e3){const _0x1a7063=await readdir(_0x4c7465),_0x569aa5=_0x1a7063[_0x567021(0x1d2)](_0x2fe4e6=>_0x2fe4e6['endsWith']('.md'));for(const _0x47a528 of _0x569aa5){const _0x4e051a=join(_0x4c7465,_0x47a528),_0x185b61=_0x4880a6[_0x567021(0x1bb)](join,_0x17d351,_0x47a528);await _0x4880a6['gOAmx'](copyFile,_0x4e051a,_0x185b61),_0x5dcefd['push'](_0x47a528);}_0x37cdf9=await _0x4880a6['yZoYi'](readFile,_0x4880a6[_0x567021(0x1be)](join,_0x4c7465,_0x4880a6['efpbE']),_0x4880a6['auDec']);}else{_0x37cdf9=await _0x4880a6['jCImA'](readFile,_0x4062c9,'utf-8');const _0x6076c6=join(_0x17d351,'SKILL.md');await _0x4880a6['eHEeM'](writeFile,_0x6076c6,_0x37cdf9,'utf-8'),_0x5dcefd[_0x567021(0x1b6)]('SKILL.md');}const {name:_0x2746d8}=_0x4880a6[_0x567021(0x1b7)](parseFrontmatter,_0x37cdf9);return console['log'](_0x567021(0x1bd)+_0x2746d8),console['log']('\x20\x20Location:\x20'+_0x17d351),_0x5dcefd[_0x567021(0x1d4)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x5dcefd['join'](',\x20')),logLocalAgentInstallation(_0x542bcb,{'skillDisplayName':_0x2746d8,'installLevel':level},_0x1788c4)[_0x567021(0x1c2)](()=>{}),!![];}function _0x1847(_0x51e3db,_0x28d366){_0x51e3db=_0x51e3db-0x1b4;const _0x136727=_0x1367();let _0x1847ce=_0x136727[_0x51e3db];return _0x1847ce;}function getSourceSkillsDir(){const _0x4b53cc=_0x5e8466,_0x1749af={'mnsHr':function(_0x53e299,_0x2e34ca,_0x5a930f,_0x4e5002,_0x4730a9){return _0x53e299(_0x2e34ca,_0x5a930f,_0x4e5002,_0x4730a9);},'upQCr':function(_0x12affb,_0x2071db,_0x30e59f,_0x53f35e,_0xe6c77,_0xed8f24){return _0x12affb(_0x2071db,_0x30e59f,_0x53f35e,_0xe6c77,_0xed8f24);},'VLxXj':'skills','LVfIf':function(_0x294fcc,_0x427965){return _0x294fcc(_0x427965);}},_0x171062=[_0x1749af['mnsHr'](join,__dirname,'..','..','skills'),_0x1749af['upQCr'](join,__dirname,'..','..','..',_0x1749af[_0x4b53cc(0x1b9)])];for(const _0x22204d of _0x171062){if(_0x1749af['LVfIf'](existsSync,_0x22204d))return _0x22204d;}return _0x171062[0x0];}function parseFrontmatter(_0x205164){const _0xb6ac3d=_0x5e8466,_0x4f75a1=_0x205164[_0xb6ac3d(0x1d1)](/^---\n([\s\S]+?)\n---/);if(!_0x4f75a1)throw new Error(_0xb6ac3d(0x1b8));const _0x198faa=_0x4f75a1[0x1],_0x53ff78=_0x198faa['match'](/name:\s*(.+)/),_0x410578=_0x198faa[_0xb6ac3d(0x1d1)](/description:\s*"?(.+?)"?\n/);return{'name':_0x53ff78?.[0x1][_0xb6ac3d(0x1c4)]()||'','description':_0x410578?.[0x1][_0xb6ac3d(0x1c4)]()||''};}export async function removeSkill(_0x8bb7d6,_0x105782){const _0x5ae29b=_0x5e8466,_0xd18138={'AjNLj':function(_0x2a1987,_0x355254){return _0x2a1987(_0x355254);},'eITQK':function(_0x4603d8,_0x35a9b9,_0x8f3a52){return _0x4603d8(_0x35a9b9,_0x8f3a52);}},_0x355759=getSkillsDir(_0x105782),_0x42df86=join(_0x355759,_0x8bb7d6);if(!_0xd18138['AjNLj'](existsSync,_0x42df86))return![];try{return await _0xd18138[_0x5ae29b(0x1d3)](rm,_0x42df86,{'recursive':!![]}),console[_0x5ae29b(0x1cd)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x8bb7d6),!![];}catch{return console[_0x5ae29b(0x1ce)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x8bb7d6),![];}}
1
+ const _0x23f516=_0x1060;function _0x1060(_0x124d14,_0x19dc6f){_0x124d14=_0x124d14-0x1b4;const _0xd6c284=_0xd6c2();let _0x106087=_0xd6c284[_0x124d14];return _0x106087;}(function(_0x132e7b,_0x4d118d){const _0x5e5633=_0x1060,_0x2b7243=_0x132e7b();while(!![]){try{const _0x478932=parseInt(_0x5e5633(0x1d4))/0x1*(-parseInt(_0x5e5633(0x1bd))/0x2)+-parseInt(_0x5e5633(0x1d3))/0x3*(-parseInt(_0x5e5633(0x1b7))/0x4)+-parseInt(_0x5e5633(0x1b6))/0x5+-parseInt(_0x5e5633(0x1d9))/0x6+parseInt(_0x5e5633(0x1c7))/0x7*(-parseInt(_0x5e5633(0x1c8))/0x8)+parseInt(_0x5e5633(0x1be))/0x9*(parseInt(_0x5e5633(0x1bb))/0xa)+-parseInt(_0x5e5633(0x1bf))/0xb*(-parseInt(_0x5e5633(0x1c3))/0xc);if(_0x478932===_0x4d118d)break;else _0x2b7243['push'](_0x2b7243['shift']());}catch(_0x4c013f){_0x2b7243['push'](_0x2b7243['shift']());}}}(_0xd6c2,0xca1dd));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x23f516(0x1cd)];export const DEPRECATED_SKILLS=[_0x23f516(0x1cf),'bug-bash','feature-tracker'];export async function installSkill(_0x25ab5e,_0x3b4fcd={}){const _0x44ca35=_0x23f516,_0x57242d={'wPGOz':function(_0x1b82da){return _0x1b82da();},'nduWS':function(_0x22aa52,_0x3c6730){return _0x22aa52(_0x3c6730);},'JxnOx':function(_0x2383fa,_0x25d464,_0x249f01){return _0x2383fa(_0x25d464,_0x249f01);},'GcyVt':function(_0x4ec7e0,_0x2570e2){return _0x4ec7e0&&_0x2570e2;},'LGTIW':function(_0x457810,_0x1cd8ee){return _0x457810===_0x1cd8ee;},'wVzBM':function(_0x1a2789,_0x508400){return _0x1a2789(_0x508400);},'BQBUO':function(_0x431949,_0x43bed5,_0x4135e6){return _0x431949(_0x43bed5,_0x4135e6);},'PrcCf':function(_0x3becc9,_0x3e46ff,_0x24cab2){return _0x3becc9(_0x3e46ff,_0x24cab2);},'UfWMK':_0x44ca35(0x1ce),'UUaan':'utf-8','VZqcn':function(_0x4648f4,_0x88bf51,_0x59f0bb,_0x15124a){return _0x4648f4(_0x88bf51,_0x59f0bb,_0x15124a);}},{level:level=_0x44ca35(0x1d8),cliVersion:_0x39c601,platform:platform='claude'}=_0x3b4fcd,_0x42c8df=_0x57242d[_0x44ca35(0x1c1)](getSourceSkillsDir),_0x141bd7=join(_0x42c8df,_0x25ab5e),_0x1bdb39=join(_0x42c8df,_0x25ab5e+'.md'),_0x259097=existsSync(_0x141bd7)&&_0x57242d['nduWS'](statSync,_0x141bd7)[_0x44ca35(0x1cb)]()&&_0x57242d[_0x44ca35(0x1c9)](existsSync,_0x57242d['JxnOx'](join,_0x141bd7,_0x44ca35(0x1ce))),_0x343297=existsSync(_0x1bdb39);if(_0x57242d['GcyVt'](!_0x259097,!_0x343297))return console[_0x44ca35(0x1b8)](_0x44ca35(0x1c2)+_0x25ab5e),![];const _0x923603=_0x57242d[_0x44ca35(0x1cc)](platform,'opencode')?getOpencodeSkillsDir(level):_0x57242d[_0x44ca35(0x1bc)](getSkillsDir,level),_0x1abb87=join(_0x923603,_0x25ab5e);await _0x57242d['BQBUO'](mkdir,_0x1abb87,{'recursive':!![]});let _0x83eda5,_0x5d640d=[];if(_0x259097){const _0x4aee41=await _0x57242d[_0x44ca35(0x1c9)](readdir,_0x141bd7),_0x400d4a=_0x4aee41[_0x44ca35(0x1b5)](_0x19d0e3=>_0x19d0e3[_0x44ca35(0x1b4)]('.md'));for(const _0x550d27 of _0x400d4a){const _0x4f7ab7=_0x57242d[_0x44ca35(0x1c6)](join,_0x141bd7,_0x550d27),_0x185718=join(_0x1abb87,_0x550d27);await copyFile(_0x4f7ab7,_0x185718),_0x5d640d[_0x44ca35(0x1ca)](_0x550d27);}_0x83eda5=await _0x57242d['BQBUO'](readFile,_0x57242d['PrcCf'](join,_0x141bd7,_0x57242d[_0x44ca35(0x1d5)]),_0x44ca35(0x1c0));}else{_0x83eda5=await readFile(_0x1bdb39,_0x57242d['UUaan']);const _0x449e30=join(_0x1abb87,_0x57242d[_0x44ca35(0x1d5)]);await _0x57242d[_0x44ca35(0x1c5)](writeFile,_0x449e30,_0x83eda5,_0x57242d['UUaan']),_0x5d640d['push'](_0x57242d['UfWMK']);}const {name:_0x3f3615}=_0x57242d['nduWS'](parseFrontmatter,_0x83eda5);return console[_0x44ca35(0x1d2)]('\x20\x20Installed\x20skill:\x20'+_0x3f3615),console[_0x44ca35(0x1d2)](_0x44ca35(0x1d7)+_0x1abb87),_0x5d640d['length']>0x1&&console[_0x44ca35(0x1d2)]('\x20\x20Files:\x20'+_0x5d640d['join'](',\x20')),_0x57242d[_0x44ca35(0x1c5)](logLocalAgentInstallation,_0x25ab5e,{'skillDisplayName':_0x3f3615,'installLevel':level},_0x39c601)['catch'](()=>{}),!![];}function _0xd6c2(){const _0x5b2f17=['10022556ZyYhZq','trim','VZqcn','JxnOx','14COqSAT','2158088ZpFNES','nduWS','push','isDirectory','LGTIW','ranger','SKILL.md','e2e-test-recommender','NbZNh','skills','log','878415JLLmgm','4SXsqFj','UfWMK','QsLEM','\x20\x20Location:\x20','project','5782794cwAIkP','endsWith','filter','1365940yvMYfJ','20sHgyqY','warn','\x20\x20Removed\x20deprecated\x20skill:\x20','match','10870jcEqjx','wVzBM','424282QxksIv','2637tnlBbs','22TpRWtb','utf-8','wPGOz','\x20\x20Skill\x20not\x20found:\x20'];_0xd6c2=function(){return _0x5b2f17;};return _0xd6c2();}function getSourceSkillsDir(){const _0x537e01=_0x23f516,_0x292119={'aaQvt':function(_0x322f06,_0x3de0e7,_0x5ec947,_0x3341b4,_0x28b758){return _0x322f06(_0x3de0e7,_0x5ec947,_0x3341b4,_0x28b758);},'NbZNh':function(_0x3408a1,_0x36f5e5){return _0x3408a1(_0x36f5e5);}},_0x418813=[_0x292119['aaQvt'](join,__dirname,'..','..',_0x537e01(0x1d1)),join(__dirname,'..','..','..',_0x537e01(0x1d1))];for(const _0x34a13e of _0x418813){if(_0x292119[_0x537e01(0x1d0)](existsSync,_0x34a13e))return _0x34a13e;}return _0x418813[0x0];}function parseFrontmatter(_0x44758){const _0x18c200=_0x23f516,_0x4b2943={'fbSQP':'Invalid\x20skill\x20frontmatter'},_0x29dde7=_0x44758['match'](/^---\n([\s\S]+?)\n---/);if(!_0x29dde7)throw new Error(_0x4b2943['fbSQP']);const _0x531648=_0x29dde7[0x1],_0x5a76c5=_0x531648['match'](/name:\s*(.+)/),_0x1ff23a=_0x531648[_0x18c200(0x1ba)](/description:\s*"?(.+?)"?\n/);return{'name':_0x5a76c5?.[0x1]['trim']()||'','description':_0x1ff23a?.[0x1][_0x18c200(0x1c4)]()||''};}export async function removeSkill(_0x31e94e,_0x4d9072){const _0x57e597=_0x23f516,_0x4121e5={'CtydY':function(_0x135ebe,_0xc01f6a){return _0x135ebe(_0xc01f6a);},'QsLEM':function(_0xe43b1d,_0x2821ea){return _0xe43b1d(_0x2821ea);}},_0x4b7d4a=_0x4121e5['CtydY'](getSkillsDir,_0x4d9072),_0x2fb471=join(_0x4b7d4a,_0x31e94e);if(!_0x4121e5[_0x57e597(0x1d6)](existsSync,_0x2fb471))return![];try{return await rm(_0x2fb471,{'recursive':!![]}),console['log'](_0x57e597(0x1b9)+_0x31e94e),!![];}catch{return console[_0x57e597(0x1b8)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x31e94e),![];}}
@@ -1 +1 @@
1
- const _0x1ea88d=_0x3fe3;(function(_0xf5b64b,_0x4e5bd7){const _0x3f5ab4=_0x3fe3,_0x13d4b1=_0xf5b64b();while(!![]){try{const _0x55d2be=-parseInt(_0x3f5ab4(0x1d1))/0x1*(-parseInt(_0x3f5ab4(0x1c5))/0x2)+-parseInt(_0x3f5ab4(0x18c))/0x3*(-parseInt(_0x3f5ab4(0x1b0))/0x4)+-parseInt(_0x3f5ab4(0x1d5))/0x5+parseInt(_0x3f5ab4(0x1ac))/0x6+parseInt(_0x3f5ab4(0x1ca))/0x7*(-parseInt(_0x3f5ab4(0x1c1))/0x8)+parseInt(_0x3f5ab4(0x1af))/0x9+parseInt(_0x3f5ab4(0x1a8))/0xa*(-parseInt(_0x3f5ab4(0x1bc))/0xb);if(_0x55d2be===_0x4e5bd7)break;else _0x13d4b1['push'](_0x13d4b1['shift']());}catch(_0x55f601){_0x13d4b1['push'](_0x13d4b1['shift']());}}}(_0x4cd8,0x19f7f));import{readFileSync,writeFileSync}from'fs';function _0x4cd8(){const _0x5994d5=['71ZCagJR','IRyAF','UEgiN','prmHr','1040050WdVYMM','poMgF','max','SkdIS','exit','6qXUxeD','concat','lnsZz','BRxEA','EUasZ','lkUzC','khWig','header','GjVSH','ppQCM','push','FbKaQ','maxTicks','NRFZI','AkokA','BRJUc','from','GKpKY','JWOXW','iIHKa','clusters','stitchWebmFiles.ts','NRxcg','alloc','jbyhd','irSGC','error','maxTimestampTicks','1907090UBfluF','MrTFs','MLEWq','Taxgc','1245834MeLwai','GyKmB','floor','1273860ChLMCP','151876QsgPvS','pTeyO','fDOjV','xTCBs','rARdL','timestamp','iJvvQ','length','HkJLZ','kUCQp','DpDNo','bodyBeforeTimestamp','11MTRwGZ','pow','zrwpH','AyMMt','XHiAf','16ErCtOb','readInt16BE','iSBKc','hqFHM','5246FEpCBq','slice','OdRkk','HljLQ','has','371924YBSfff','argv','hsVQs','RfiGi','WXsHG','WppSf','JjAqc'];_0x4cd8=function(){return _0x5994d5;};return _0x4cd8();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x2c60e0,_0x43ee38){const _0x2d8abd=_0x3fe3,_0x444c6d={'DpDNo':function(_0x12d557,_0x166235){return _0x12d557>=_0x166235;},'MrTFs':function(_0x32cf93,_0x5c9792){return _0x32cf93<=_0x5c9792;},'qLClr':function(_0x9d7522,_0x19295e){return _0x9d7522&_0x19295e;},'pTeyO':function(_0x324ae5,_0x1d0dc3){return _0x324ae5&_0x1d0dc3;},'WXsHG':function(_0x1ee51f,_0x5d5116){return _0x1ee51f-_0x5d5116;},'mMtAl':function(_0x127627,_0x45c5f1){return _0x127627+_0x45c5f1;}};if(_0x444c6d[_0x2d8abd(0x1ba)](_0x43ee38,_0x2c60e0['length']))return[0x0,0x0];const _0x92b076=_0x2c60e0[_0x43ee38];let _0xac2ca3=0x1,_0x2f6a2e=0x80;while(_0x444c6d[_0x2d8abd(0x1a9)](_0xac2ca3,0x8)&&!_0x444c6d['qLClr'](_0x92b076,_0x2f6a2e)){_0xac2ca3++,_0x2f6a2e>>=0x1;}if(_0x43ee38+_0xac2ca3>_0x2c60e0[_0x2d8abd(0x1b7)])return[0x0,0x0];let _0x8d4044=_0x444c6d[_0x2d8abd(0x1b1)](_0x92b076,_0x444c6d[_0x2d8abd(0x1ce)](_0x2f6a2e,0x1));for(let _0x224745=0x1;_0x224745<_0xac2ca3;_0x224745++){_0x8d4044=_0x444c6d['mMtAl'](_0x8d4044*0x100,_0x2c60e0[_0x43ee38+_0x224745]);}return[_0x8d4044,_0xac2ca3];}function readId(_0x4d2801,_0x44a387){const _0x248658=_0x3fe3,_0x5c7f25={'jbyhd':function(_0x270bbf,_0x46ca7f){return _0x270bbf>=_0x46ca7f;},'iVvmv':function(_0x42265f,_0x311f9e){return _0x42265f>=_0x311f9e;},'RWzZa':function(_0x2fa0a5,_0x38e730){return _0x2fa0a5+_0x38e730;},'ppQCM':function(_0x3bbdc6,_0x2d69fa){return _0x3bbdc6+_0x2d69fa;}};if(_0x44a387>=_0x4d2801[_0x248658(0x1b7)])return[0x0,0x0];const _0x295a61=_0x4d2801[_0x44a387];let _0x9cc31f;if(_0x5c7f25[_0x248658(0x1a4)](_0x295a61,0x80))_0x9cc31f=0x1;else{if(_0x295a61>=0x40)_0x9cc31f=0x2;else{if(_0x295a61>=0x20)_0x9cc31f=0x3;else{if(_0x5c7f25['iVvmv'](_0x295a61,0x10))_0x9cc31f=0x4;else return[_0x295a61,0x1];}}}if(_0x5c7f25['RWzZa'](_0x44a387,_0x9cc31f)>_0x4d2801['length'])return[0x0,0x0];let _0x494b11=0x0;for(let _0x3ca070=0x0;_0x3ca070<_0x9cc31f;_0x3ca070++){_0x494b11=_0x5c7f25[_0x248658(0x195)](_0x494b11*0x100,_0x4d2801[_0x44a387+_0x3ca070]);}return[_0x494b11,_0x9cc31f];}function readUint(_0x4c3d85,_0x495054,_0x293f2f){const _0x2bcf33=_0x3fe3,_0xd97497={'Taxgc':function(_0x424ac1,_0x4d22e4){return _0x424ac1<_0x4d22e4;},'mderM':function(_0x2dd2f7,_0x4ead2b){return _0x2dd2f7+_0x4ead2b;}};let _0x20791e=0x0;for(let _0x470451=0x0;_0xd97497[_0x2bcf33(0x1ab)](_0x470451,_0x293f2f);_0x470451++){_0x20791e=_0x20791e*0x100+_0x4c3d85[_0xd97497['mderM'](_0x495054,_0x470451)];}return _0x20791e;}function isUnknownSize(_0x50e523,_0x495ef5){const _0x14dfb0=_0x3fe3,_0x1372cf={'BRJUc':function(_0x307bf3,_0x335a31){return _0x307bf3===_0x335a31;},'QGpIB':function(_0xc6945,_0x1fb79e){return _0xc6945-_0x1fb79e;},'EUasZ':function(_0x4209ae,_0x5bb73d){return _0x4209ae*_0x5bb73d;}};return _0x1372cf[_0x14dfb0(0x19b)](_0x50e523,_0x1372cf['QGpIB'](Math['pow'](0x2,_0x1372cf[_0x14dfb0(0x190)](0x7,_0x495ef5)),0x1));}function writeVint(_0x1dd9fb,_0x4278b3){const _0x16fd3=_0x3fe3,_0x1e7274={'VFthF':function(_0x4d70f1,_0x8b3faf){return _0x4d70f1||_0x8b3faf;},'RfiGi':function(_0x17b9b2,_0x259c04){return _0x17b9b2*_0x259c04;},'MsUox':function(_0x1f7ee8,_0x10b097){return _0x1f7ee8-_0x10b097;},'FiSEX':function(_0x1a2878,_0x4d00bb){return _0x1a2878>=_0x4d00bb;}};let _0x3a3738=_0x1e7274['VFthF'](_0x4278b3,0x1);while(Math[_0x16fd3(0x1bd)](0x2,_0x1e7274[_0x16fd3(0x1cd)](0x7,_0x3a3738))-0x2<_0x1dd9fb)_0x3a3738++;const _0x473bb4=Buffer[_0x16fd3(0x1a3)](_0x3a3738);for(let _0x353303=_0x1e7274['MsUox'](_0x3a3738,0x1);_0x1e7274['FiSEX'](_0x353303,0x0);_0x353303--){_0x473bb4[_0x353303]=_0x1dd9fb&0xff,_0x1dd9fb=Math['floor'](_0x1dd9fb/0x100);}return _0x473bb4[0x0]|=0x1<<0x8-_0x3a3738,_0x473bb4;}function writeUint(_0x178fc0,_0x23b385){const _0xb8c386=_0x3fe3,_0x5bcd96={'aNFlo':function(_0x3c85e1,_0x3f5d4c){return _0x3c85e1>=_0x3f5d4c;},'QpHkN':function(_0x15f4dd,_0xb7f5d7){return _0x15f4dd/_0xb7f5d7;}},_0x31cc42=Buffer['alloc'](_0x23b385);for(let _0x205479=_0x23b385-0x1;_0x5bcd96['aNFlo'](_0x205479,0x0);_0x205479--){_0x31cc42[_0x205479]=_0x178fc0&0xff,_0x178fc0=Math[_0xb8c386(0x1ae)](_0x5bcd96['QpHkN'](_0x178fc0,0x100));}return _0x31cc42;}function writeUnknownSizeVint(_0x227bc2){const _0x495514=Buffer['alloc'](_0x227bc2,0xff);return _0x495514[0x0]=0xff>>_0x227bc2-0x1,_0x495514;}function uintSize(_0x112a0c){const _0x37a1fe={'TVTne':function(_0x35fa4a,_0x55671b){return _0x35fa4a===_0x55671b;},'tbFlw':function(_0x184842,_0x8960b0){return _0x184842>_0x8960b0;},'ORXBH':function(_0x53c183,_0x107b27){return _0x53c183/_0x107b27;}};if(_0x37a1fe['TVTne'](_0x112a0c,0x0))return 0x1;let _0x473dec=0x0,_0x3113e5=_0x112a0c;while(_0x37a1fe['tbFlw'](_0x3113e5,0x0)){_0x473dec++,_0x3113e5=Math['floor'](_0x37a1fe['ORXBH'](_0x3113e5,0x100));}return _0x473dec;}function findTimestampScale(_0x27462d,_0x304afb){const _0x16260b=_0x3fe3,_0x18d87a={'OdRkk':function(_0x3db051,_0x58c364){return _0x3db051+_0x58c364;},'JWOXW':function(_0x233c57,_0x2f6c92,_0xa4dfd1){return _0x233c57(_0x2f6c92,_0xa4dfd1);},'HljLQ':function(_0x10adff,_0x58c49c){return _0x10adff+_0x58c49c;},'cEZeJ':function(_0x13fd50,_0xabebe7){return _0x13fd50===_0xabebe7;},'GKpKY':function(_0x426184,_0x3cb6ff){return _0x426184+_0x3cb6ff;},'poMgF':function(_0x2faa55,_0x2c3a8a,_0x5c0db9){return _0x2faa55(_0x2c3a8a,_0x5c0db9);},'Ihkap':function(_0x22dc1e,_0x3cca58){return _0x22dc1e===_0x3cca58;},'kUCQp':function(_0x1ee2fc,_0x34bdf3){return _0x1ee2fc+_0x34bdf3;},'zrwpH':function(_0x2ea3f3,_0x31b755,_0x423717){return _0x2ea3f3(_0x31b755,_0x423717);},'TguAE':function(_0x239d0f,_0x48dd86){return _0x239d0f+_0x48dd86;},'fvjWk':function(_0x3588e5,_0x547b8e){return _0x3588e5+_0x547b8e;}};let _0x46a76a=_0x304afb;const _0x30275c=Math['min'](_0x27462d[_0x16260b(0x1b7)],_0x18d87a[_0x16260b(0x1c7)](_0x304afb,0x2710));while(_0x46a76a<_0x30275c){const [_0x5e0169,_0x56b8c6]=_0x18d87a[_0x16260b(0x19e)](readId,_0x27462d,_0x46a76a),[_0x464e19,_0x3e50e6]=_0x18d87a[_0x16260b(0x19e)](readVint,_0x27462d,_0x18d87a[_0x16260b(0x1c8)](_0x46a76a,_0x56b8c6));if(_0x18d87a['cEZeJ'](_0x5e0169,ID_INFO)){let _0x13c6e2=_0x18d87a['OdRkk'](_0x18d87a['GKpKY'](_0x46a76a,_0x56b8c6),_0x3e50e6);const _0x57abfe=_0x18d87a['HljLQ'](_0x13c6e2,_0x464e19);while(_0x13c6e2<_0x57abfe){const [_0x46e5a7,_0x3e7435]=_0x18d87a[_0x16260b(0x1d6)](readId,_0x27462d,_0x13c6e2),[_0x5532c3,_0x423499]=_0x18d87a[_0x16260b(0x19e)](readVint,_0x27462d,_0x13c6e2+_0x3e7435);if(_0x18d87a['Ihkap'](_0x46e5a7,ID_TIMESTAMP_SCALE))return readUint(_0x27462d,_0x18d87a[_0x16260b(0x19d)](_0x18d87a[_0x16260b(0x1c8)](_0x13c6e2,_0x3e7435),_0x423499),_0x5532c3);_0x13c6e2+=_0x18d87a[_0x16260b(0x1b9)](_0x18d87a[_0x16260b(0x1c8)](_0x3e7435,_0x423499),_0x5532c3);}break;}if(_0x5e0169===ID_CLUSTER)break;if(_0x18d87a[_0x16260b(0x1be)](isUnknownSize,_0x464e19,_0x3e50e6))break;_0x46a76a+=_0x18d87a['TguAE'](_0x18d87a['fvjWk'](_0x56b8c6,_0x3e50e6),_0x464e19);}return 0xf4240;}function findFirstClusterOffset(_0x11381d,_0x3c15e6){const _0x571223=_0x3fe3,_0x1b8cc2={'rARdL':function(_0x355839,_0x28a1b5){return _0x355839<_0x28a1b5;},'BRgGa':function(_0x15f9c1,_0x40f7b1,_0x534570){return _0x15f9c1(_0x40f7b1,_0x534570);},'tVhLf':function(_0x804479,_0x28855a){return _0x804479===_0x28855a;},'JSweB':function(_0x31d9a3,_0x3f0855){return _0x31d9a3+_0x3f0855;},'dIBFm':function(_0x5249c2,_0xae2d73){return _0x5249c2+_0xae2d73;}};let _0x2e5184=_0x3c15e6;while(_0x1b8cc2[_0x571223(0x1b4)](_0x2e5184,_0x11381d['length'])){const [_0x165df3,_0x5d481c]=_0x1b8cc2['BRgGa'](readId,_0x11381d,_0x2e5184);if(_0x1b8cc2['tVhLf'](_0x165df3,ID_CLUSTER))return _0x2e5184;const [_0xf564b4,_0xae7f3f]=_0x1b8cc2['BRgGa'](readVint,_0x11381d,_0x1b8cc2['JSweB'](_0x2e5184,_0x5d481c));if(isUnknownSize(_0xf564b4,_0xae7f3f))return _0x2e5184;_0x2e5184+=_0x1b8cc2['dIBFm'](_0x5d481c+_0xae7f3f,_0xf564b4);}return _0x11381d[_0x571223(0x1b7)];}function findClusterEnd(_0x4f237e,_0x131816,_0xbd114d,_0x15bb66){const _0x23c649=_0x3fe3,_0x59e61f={'ynfNL':function(_0x1bb788,_0x963986){return _0x1bb788+_0x963986;},'UXBNo':function(_0x175a6e,_0x2396fa){return _0x175a6e-_0x2396fa;},'rylHA':function(_0x4ef0d2,_0x7ce84f,_0x3fdd43){return _0x4ef0d2(_0x7ce84f,_0x3fdd43);}};if(!isUnknownSize(_0xbd114d,_0x15bb66))return _0x59e61f['ynfNL'](_0x131816,_0xbd114d);const _0xcefbdc=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4136f4=_0x131816;while(_0x4136f4<_0x59e61f['UXBNo'](_0x4f237e['length'],0x4)){const [_0x4719f7,_0x31fb06]=readId(_0x4f237e,_0x4136f4);if(_0xcefbdc[_0x23c649(0x1c9)](_0x4719f7))return _0x4136f4;const [_0x107b07,_0x5c45f9]=readVint(_0x4f237e,_0x4136f4+_0x31fb06);if(_0x59e61f['rylHA'](isUnknownSize,_0x107b07,_0x5c45f9))return _0x4f237e[_0x23c649(0x1b7)];_0x4136f4+=_0x59e61f['ynfNL'](_0x31fb06,_0x5c45f9)+_0x107b07;}return _0x4f237e['length'];}function extractClusters(_0x5a4e3e,_0x57df87){const _0x4778b0=_0x3fe3,_0x50528b={'iIHKa':function(_0xe69a33,_0x4551b1){return _0xe69a33+_0x4551b1;},'FbKaQ':function(_0x48c90c,_0x260dc6,_0x747980){return _0x48c90c(_0x260dc6,_0x747980);},'UEgiN':function(_0x3a4045,_0x5dd48c,_0x19c85e){return _0x3a4045(_0x5dd48c,_0x19c85e);},'AkokA':function(_0x9e8ff2,_0x4ffc03,_0x37c8dc,_0x3ed32c){return _0x9e8ff2(_0x4ffc03,_0x37c8dc,_0x3ed32c);},'NRxcg':function(_0x244bf1,_0x580f48){return _0x244bf1+_0x580f48;},'tfRMX':function(_0x4269b1,_0x8dd15f){return _0x4269b1+_0x8dd15f;},'IRyAF':function(_0x4363f4,_0x5ebbd1){return _0x4363f4+_0x5ebbd1;},'TKCyl':function(_0x322f12,_0x5cabc0){return _0x322f12+_0x5cabc0;},'lkUzC':function(_0x973352,_0x3d830e,_0x46a574){return _0x973352(_0x3d830e,_0x46a574);},'JsdfW':function(_0x48e6a5,_0x1c4d97){return _0x48e6a5+_0x1c4d97;},'lnsZz':function(_0x1f43ff,_0x181449){return _0x1f43ff===_0x181449;},'NRFZI':function(_0x492d52,_0x7f0145){return _0x492d52>=_0x7f0145;},'HkJLZ':function(_0x351654,_0x38252e){return _0x351654+_0x38252e;},'iJvvQ':function(_0x3a2eec,_0x370551){return _0x3a2eec+_0x370551;},'khWig':function(_0x9c8e39,_0x4e5885){return _0x9c8e39>_0x4e5885;},'UFINQ':function(_0x27004f,_0x3df6d8){return _0x27004f===_0x3df6d8;},'zBlct':function(_0x52b44c,_0x4cd3ab){return _0x52b44c+_0x4cd3ab;}},_0x1de0ab=[],_0x3233a0=Buffer[_0x4778b0(0x19c)]([0x1f,0x43,0xb6,0x75]);let _0x440ad7=0x0;while(_0x440ad7<_0x5a4e3e[_0x4778b0(0x1b7)]){const _0x400afd=_0x5a4e3e['indexOf'](_0x3233a0,_0x440ad7);if(_0x400afd===-0x1)break;const [_0x4831b7,_0x2b1851]=readId(_0x5a4e3e,_0x400afd);if(_0x4831b7!==ID_CLUSTER){_0x440ad7=_0x50528b['iIHKa'](_0x400afd,0x1);continue;}const [_0x59e8f6,_0x1508d3]=_0x50528b[_0x4778b0(0x197)](readVint,_0x5a4e3e,_0x400afd+_0x2b1851),_0x133234=_0x50528b[_0x4778b0(0x19f)](_0x400afd,_0x2b1851)+_0x1508d3,_0x135d58=findClusterEnd(_0x5a4e3e,_0x133234,_0x59e8f6,_0x1508d3);let _0x45f368=_0x133234,_0x4d039b=0x0,_0x4f7698=0x2,_0x464d43=![],_0x4eee36=Buffer[_0x4778b0(0x1a3)](0x0),_0x5f3952=Buffer[_0x4778b0(0x1a3)](0x0);while(_0x45f368<_0x135d58){const [_0x4fc9c1,_0x578d92]=_0x50528b[_0x4778b0(0x1d3)](readId,_0x5a4e3e,_0x45f368),[_0x4f785f,_0x211b94]=readVint(_0x5a4e3e,_0x45f368+_0x578d92);if(_0x4fc9c1===ID_TIMESTAMP){_0x4d039b=_0x50528b[_0x4778b0(0x19a)](readUint,_0x5a4e3e,_0x50528b['iIHKa'](_0x45f368+_0x578d92,_0x211b94),_0x4f785f),_0x4f7698=_0x4f785f,_0x464d43=!![],_0x4eee36=_0x5a4e3e[_0x4778b0(0x1c6)](_0x133234,_0x45f368);const _0x3e901a=_0x50528b[_0x4778b0(0x1a2)](_0x50528b['tfRMX'](_0x50528b[_0x4778b0(0x1d2)](_0x45f368,_0x578d92),_0x211b94),_0x4f785f);_0x5f3952=_0x5a4e3e[_0x4778b0(0x1c6)](_0x3e901a,_0x135d58);break;}if(_0x4fc9c1===ID_CLUSTER)break;if(isUnknownSize(_0x4f785f,_0x211b94))break;_0x45f368+=_0x50528b['tfRMX'](_0x50528b['TKCyl'](_0x578d92,_0x211b94),_0x4f785f);}!_0x464d43&&(_0x5f3952=_0x5a4e3e[_0x4778b0(0x1c6)](_0x133234,_0x135d58));let _0x3128dd=_0x4d039b;_0x45f368=_0x133234;while(_0x45f368<_0x135d58){const [_0x5c58a3,_0x4f6cf1]=readId(_0x5a4e3e,_0x45f368),[_0xf49a28,_0x10d182]=_0x50528b[_0x4778b0(0x191)](readVint,_0x5a4e3e,_0x50528b['JsdfW'](_0x45f368,_0x4f6cf1));if(_0x50528b[_0x4778b0(0x18e)](_0x5c58a3,ID_SIMPLE_BLOCK)&&_0x50528b[_0x4778b0(0x199)](_0xf49a28,0x4)){const _0xeb97f2=_0x50528b[_0x4778b0(0x1b8)](_0x50528b[_0x4778b0(0x1b6)](_0x45f368,_0x4f6cf1),_0x10d182),[,_0x832132]=readVint(_0x5a4e3e,_0xeb97f2),_0x1951dc=_0x5a4e3e[_0x4778b0(0x1c2)](_0xeb97f2+_0x832132),_0x586034=_0x50528b['iIHKa'](_0x4d039b,_0x1951dc);if(_0x50528b[_0x4778b0(0x192)](_0x586034,_0x3128dd))_0x3128dd=_0x586034;}if(_0x50528b['UFINQ'](_0x5c58a3,ID_CLUSTER))break;if(isUnknownSize(_0xf49a28,_0x10d182))break;_0x45f368+=_0x50528b['zBlct'](_0x4f6cf1,_0x10d182)+_0xf49a28;}_0x1de0ab['push']({'timestamp':_0x4d039b,'maxTicks':_0x3128dd,'bodyBeforeTimestamp':_0x4eee36,'bodyAfterTimestamp':_0x5f3952,'timestampElementSize':_0x4f7698}),_0x440ad7=_0x135d58;}return _0x1de0ab;}function parseWebm(_0x4005a8){const _0xdf0937=_0x3fe3,_0xe1b69c={'XHiAf':function(_0x1185ae,_0x36b701,_0x1e6da5){return _0x1185ae(_0x36b701,_0x1e6da5);},'iSBKc':function(_0x55cf57,_0xc86165){return _0x55cf57+_0xc86165;},'GyKmB':function(_0x11b303,_0x4b37a4,_0x2bf659){return _0x11b303(_0x4b37a4,_0x2bf659);},'xTCBs':function(_0x563d95,_0x129ca1,_0x20829e){return _0x563d95(_0x129ca1,_0x20829e);}};let _0x32bb25=0x0;const [,_0x4264d9]=_0xe1b69c[_0xdf0937(0x1c0)](readId,_0x4005a8,_0x32bb25),[_0x5e1e2b,_0x42a6ea]=_0xe1b69c['XHiAf'](readVint,_0x4005a8,_0x32bb25+_0x4264d9);_0x32bb25+=_0x4264d9+_0x42a6ea+_0x5e1e2b;const [_0x5af04e,_0x45b239]=_0xe1b69c['XHiAf'](readId,_0x4005a8,_0x32bb25);if(_0x5af04e!==ID_SEGMENT)return null;const [,_0x372497]=readVint(_0x4005a8,_0xe1b69c[_0xdf0937(0x1c3)](_0x32bb25,_0x45b239)),_0x3b1a03=_0xe1b69c[_0xdf0937(0x1c3)](_0x32bb25+_0x45b239,_0x372497),_0x51b251=findTimestampScale(_0x4005a8,_0x3b1a03),_0x38c076=_0xe1b69c[_0xdf0937(0x1ad)](findFirstClusterOffset,_0x4005a8,_0x3b1a03),_0x3b9c62=_0x4005a8['slice'](0x0,_0x38c076),_0xb859d4=_0xe1b69c[_0xdf0937(0x1b3)](extractClusters,_0x4005a8,_0x51b251);let _0x1c4e95=0x0;for(const _0x43041b of _0xb859d4){if(_0x43041b['maxTicks']>_0x1c4e95)_0x1c4e95=_0x43041b[_0xdf0937(0x198)];}return{'header':_0x3b9c62,'clusters':_0xb859d4,'timestampScale':_0x51b251,'maxTimestampTicks':_0x1c4e95};}function buildCluster(_0x1ede0f,_0x5b172c,_0x125075){const _0x45d350=_0x3fe3,_0x3596e9={'vLMZV':function(_0x5a8f22,_0x37d2fb){return _0x5a8f22(_0x37d2fb);},'hsVQs':function(_0x5d9ef5,_0x4a8a18,_0x5641a5){return _0x5d9ef5(_0x4a8a18,_0x5641a5);}},_0x5a4a2f=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4eb7b7=Math[_0x45d350(0x1d7)](0x4,_0x3596e9['vLMZV'](uintSize,_0x1ede0f)),_0x1b8bb5=Buffer['concat']([Buffer[_0x45d350(0x19c)]([ID_TIMESTAMP]),writeVint(_0x4eb7b7),_0x3596e9[_0x45d350(0x1cc)](writeUint,_0x1ede0f,_0x4eb7b7)]),_0x18d19d=Buffer['concat']([_0x5b172c,_0x1b8bb5,_0x125075]),_0x2c6803=writeVint(_0x18d19d[_0x45d350(0x1b7)]);return Buffer['concat']([_0x5a4a2f,_0x2c6803,_0x18d19d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2f6f80){const _0x4bcde4=_0x3fe3,_0x3b437f={'hqFHM':function(_0x462b50,_0x546ed4,_0x52984f){return _0x462b50(_0x546ed4,_0x52984f);},'GjVSH':function(_0x2fc66b,_0x3b7ced){return _0x2fc66b+_0x3b7ced;},'irSGC':function(_0x585e30,_0x590ad6){return _0x585e30+_0x590ad6;},'MLEWq':function(_0x2fe131,_0x365c23){return _0x2fe131(_0x365c23);},'CmnqH':function(_0x524171,_0x3593f){return _0x524171+_0x3593f;},'AyMMt':function(_0x79cea,_0x529af9){return _0x79cea===_0x529af9;},'iJRUG':function(_0x31619f,_0x356e40){return _0x31619f+_0x356e40;},'SkdIS':function(_0x187a74,_0x3f907e,_0x5ae840){return _0x187a74(_0x3f907e,_0x5ae840);},'JjAqc':function(_0x8c3e94,_0x24d1ca,_0x433554){return _0x8c3e94(_0x24d1ca,_0x433554);},'dTniX':function(_0x7f87d8,_0x2025c6){return _0x7f87d8+_0x2025c6;}},_0x1d7d91=Buffer['from'](_0x2f6f80);let _0x5d75d7=0x0;const [,_0x54c7c6]=readId(_0x1d7d91,_0x5d75d7),[_0x137469,_0x2563ab]=_0x3b437f['hqFHM'](readVint,_0x1d7d91,_0x5d75d7+_0x54c7c6),_0x4b6af8=_0x3b437f['GjVSH'](_0x3b437f['GjVSH'](_0x5d75d7+_0x54c7c6,_0x2563ab),_0x137469),[,_0x291d0a]=readId(_0x1d7d91,_0x4b6af8),[,_0x4205f0]=readVint(_0x1d7d91,_0x3b437f['irSGC'](_0x4b6af8,_0x291d0a)),_0x2a1eb8=_0x3b437f[_0x4bcde4(0x1a5)](_0x4b6af8+_0x291d0a,_0x4205f0),_0x371b6e=_0x3b437f[_0x4bcde4(0x1aa)](writeUnknownSizeVint,_0x4205f0);_0x371b6e['copy'](_0x1d7d91,_0x3b437f['irSGC'](_0x4b6af8,_0x291d0a));let _0x239240=_0x2a1eb8;const _0xbb802d=Math['min'](_0x1d7d91[_0x4bcde4(0x1b7)],_0x3b437f['CmnqH'](_0x2a1eb8,0x2710));while(_0x239240<_0xbb802d){const [_0x57f2ec,_0x4bf9b9]=readId(_0x1d7d91,_0x239240),[_0x300836,_0x35eab4]=_0x3b437f[_0x4bcde4(0x1c4)](readVint,_0x1d7d91,_0x239240+_0x4bf9b9);if(_0x57f2ec===ID_CLUSTER)break;if(_0x3b437f[_0x4bcde4(0x1c4)](isUnknownSize,_0x300836,_0x35eab4))break;if(_0x3b437f[_0x4bcde4(0x1bf)](_0x57f2ec,ID_INFO)){const _0xfc492d=_0x3b437f['iJRUG'](_0x3b437f[_0x4bcde4(0x194)](_0x239240,_0x4bf9b9),_0x35eab4),_0x4a196c=_0xfc492d+_0x300836,_0x7a82a3=[];let _0x48e9d2=_0xfc492d;while(_0x48e9d2<_0x4a196c){const [_0xd6fdd9,_0x44c232]=_0x3b437f[_0x4bcde4(0x1d8)](readId,_0x1d7d91,_0x48e9d2),[_0x380d1a,_0x3e2da4]=readVint(_0x1d7d91,_0x3b437f['CmnqH'](_0x48e9d2,_0x44c232)),_0x36d6f9=_0x44c232+_0x3e2da4+_0x380d1a;_0xd6fdd9!==ID_DURATION&&_0x7a82a3[_0x4bcde4(0x196)](_0x1d7d91['slice'](_0x48e9d2,_0x48e9d2+_0x36d6f9)),_0x48e9d2+=_0x36d6f9;}const _0x4c7bbb=Buffer[_0x4bcde4(0x18d)](_0x7a82a3),_0xab1da4=Buffer[_0x4bcde4(0x18d)]([_0x1d7d91[_0x4bcde4(0x1c6)](_0x239240,_0x3b437f[_0x4bcde4(0x194)](_0x239240,_0x4bf9b9)),_0x3b437f[_0x4bcde4(0x1d0)](writeVint,_0x4c7bbb['length'],_0x35eab4)]);return Buffer[_0x4bcde4(0x18d)]([_0x1d7d91['slice'](0x0,_0x239240),_0xab1da4,_0x4c7bbb,_0x1d7d91[_0x4bcde4(0x1c6)](_0x4a196c)]);}_0x239240+=_0x3b437f['dTniX'](_0x4bf9b9+_0x35eab4,_0x300836);}return _0x1d7d91;}export function stitchWebmFiles(_0x2aa2b1,_0x4baad4){const _0x52ac7d=_0x3fe3,_0x4d1990={'fDOjV':function(_0x2f2788,_0x3a8a9e){return _0x2f2788(_0x3a8a9e);},'prmHr':function(_0x4c34b3,_0x2d4ff2){return _0x4c34b3(_0x2d4ff2);},'BRxEA':function(_0x1c8e2d,_0x3bba00){return _0x1c8e2d<_0x3bba00;},'WppSf':function(_0x40110e,_0x5bd3cc){return _0x40110e+_0x5bd3cc;},'OgTkk':function(_0x20e9b9,_0x231162,_0x5a3307){return _0x20e9b9(_0x231162,_0x5a3307);}};if(_0x2aa2b1[_0x52ac7d(0x1b7)]<=0x1)return![];const _0x2924b4=[];for(const _0xc626e2 of _0x2aa2b1){const _0x2092db=_0x4d1990[_0x52ac7d(0x1b2)](readFileSync,_0xc626e2),_0x1412ec=_0x4d1990[_0x52ac7d(0x1d4)](parseWebm,_0x2092db);if(!_0x1412ec||_0x1412ec[_0x52ac7d(0x1a0)]['length']===0x0)return![];_0x2924b4[_0x52ac7d(0x196)](_0x1412ec);}const _0x5b84e5=_0x2924b4[0x0],_0x502abe=rebuildHeaderWithoutDuration(_0x5b84e5[_0x52ac7d(0x193)]),_0x235df3=[_0x502abe];let _0x579bf7=0x0;for(let _0x2e6021=0x0;_0x4d1990[_0x52ac7d(0x18f)](_0x2e6021,_0x2924b4[_0x52ac7d(0x1b7)]);_0x2e6021++){const _0x2c110d=_0x2924b4[_0x2e6021];for(const _0x33113e of _0x2c110d[_0x52ac7d(0x1a0)]){const _0x53623a=_0x33113e[_0x52ac7d(0x1b5)]+_0x579bf7;_0x235df3[_0x52ac7d(0x196)](buildCluster(_0x53623a,_0x33113e[_0x52ac7d(0x1bb)],_0x33113e['bodyAfterTimestamp']));}const _0x39316d=0x1e;_0x579bf7+=_0x4d1990[_0x52ac7d(0x1cf)](_0x2c110d[_0x52ac7d(0x1a7)],_0x39316d);}return _0x4d1990['OgTkk'](writeFileSync,_0x4baad4,Buffer[_0x52ac7d(0x18d)](_0x235df3)),!![];}function _0x3fe3(_0x2625ad,_0x1e1b7b){_0x2625ad=_0x2625ad-0x18c;const _0x4cd867=_0x4cd8();let _0x3fe3a9=_0x4cd867[_0x2625ad];return _0x3fe3a9;}if(process['argv'][0x1]?.['endsWith'](_0x1ea88d(0x1a1))||process[_0x1ea88d(0x1cb)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x1ea88d(0x1cb)][_0x1ea88d(0x1c6)](0x2);args[_0x1ea88d(0x1b7)]<0x3&&(console[_0x1ea88d(0x1a6)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x1ea88d(0x1d9)](0x1));const output=args[args['length']-0x1],inputs=args[_0x1ea88d(0x1c6)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x1ea88d(0x1b7)]+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x562a20=_0x277d;(function(_0x1db26b,_0x5f417d){const _0x4bcd81=_0x277d,_0x5a2822=_0x1db26b();while(!![]){try{const _0x367676=-parseInt(_0x4bcd81(0xbe))/0x1*(-parseInt(_0x4bcd81(0x8c))/0x2)+-parseInt(_0x4bcd81(0xcd))/0x3+parseInt(_0x4bcd81(0x9e))/0x4+parseInt(_0x4bcd81(0x9a))/0x5+-parseInt(_0x4bcd81(0xc3))/0x6+parseInt(_0x4bcd81(0xc1))/0x7+-parseInt(_0x4bcd81(0xb5))/0x8;if(_0x367676===_0x5f417d)break;else _0x5a2822['push'](_0x5a2822['shift']());}catch(_0x4e830d){_0x5a2822['push'](_0x5a2822['shift']());}}}(_0x54cf,0x41ea8));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(_0x337ab6,_0x4c8752){const _0xa1524a=_0x277d,_0x3170a0={'hbuXe':function(_0x3b31e5,_0x47af53){return _0x3b31e5&_0x47af53;},'bMRUl':function(_0xd3d303,_0x3f9628){return _0xd3d303+_0x3f9628;}};if(_0x4c8752>=_0x337ab6[_0xa1524a(0xc9)])return[0x0,0x0];const _0x4a2683=_0x337ab6[_0x4c8752];let _0x371bc1=0x1,_0x1fb5bc=0x80;while(_0x371bc1<=0x8&&!_0x3170a0[_0xa1524a(0xd4)](_0x4a2683,_0x1fb5bc)){_0x371bc1++,_0x1fb5bc>>=0x1;}if(_0x4c8752+_0x371bc1>_0x337ab6[_0xa1524a(0xc9)])return[0x0,0x0];let _0x4f2ef9=_0x3170a0[_0xa1524a(0xd4)](_0x4a2683,_0x1fb5bc-0x1);for(let _0x738d33=0x1;_0x738d33<_0x371bc1;_0x738d33++){_0x4f2ef9=_0x3170a0[_0xa1524a(0xd6)](_0x4f2ef9*0x100,_0x337ab6[_0x4c8752+_0x738d33]);}return[_0x4f2ef9,_0x371bc1];}function readId(_0x528f8c,_0x2cbce3){const _0x3fb49c=_0x277d,_0x2cb2e3={'DWMTX':function(_0x42f8b1,_0x4f5497){return _0x42f8b1>=_0x4f5497;},'SmKVM':function(_0x5a8ea4,_0x3b1c91){return _0x5a8ea4>=_0x3b1c91;},'wKIvs':function(_0x337451,_0x3e0ae2){return _0x337451+_0x3e0ae2;},'qBFKi':function(_0x25d064,_0x1cef58){return _0x25d064*_0x1cef58;}};if(_0x2cb2e3[_0x3fb49c(0xb3)](_0x2cbce3,_0x528f8c[_0x3fb49c(0xc9)]))return[0x0,0x0];const _0x29c5e1=_0x528f8c[_0x2cbce3];let _0x18face;if(_0x2cb2e3[_0x3fb49c(0x9d)](_0x29c5e1,0x80))_0x18face=0x1;else{if(_0x29c5e1>=0x40)_0x18face=0x2;else{if(_0x2cb2e3['DWMTX'](_0x29c5e1,0x20))_0x18face=0x3;else{if(_0x29c5e1>=0x10)_0x18face=0x4;else return[_0x29c5e1,0x1];}}}if(_0x2cb2e3['wKIvs'](_0x2cbce3,_0x18face)>_0x528f8c[_0x3fb49c(0xc9)])return[0x0,0x0];let _0x118e03=0x0;for(let _0x23ce1d=0x0;_0x23ce1d<_0x18face;_0x23ce1d++){_0x118e03=_0x2cb2e3[_0x3fb49c(0xc0)](_0x118e03,0x100)+_0x528f8c[_0x2cbce3+_0x23ce1d];}return[_0x118e03,_0x18face];}function _0x277d(_0x28afc6,_0x3b139b){_0x28afc6=_0x28afc6-0x8c;const _0x54cf5b=_0x54cf();let _0x277dda=_0x54cf5b[_0x28afc6];return _0x277dda;}function readUint(_0x5c9c85,_0x21c9d1,_0x3bab7a){const _0x45ba12=_0x277d,_0xdb458e={'mTXqv':function(_0x363871,_0x324d61){return _0x363871<_0x324d61;},'Fctlw':function(_0x1af21e,_0x38cad4){return _0x1af21e*_0x38cad4;},'jpazD':function(_0x597c4a,_0x4223a4){return _0x597c4a+_0x4223a4;}};let _0x596075=0x0;for(let _0x4f0b61=0x0;_0xdb458e['mTXqv'](_0x4f0b61,_0x3bab7a);_0x4f0b61++){_0x596075=_0xdb458e[_0x45ba12(0xbb)](_0x596075,0x100)+_0x5c9c85[_0xdb458e[_0x45ba12(0x9c)](_0x21c9d1,_0x4f0b61)];}return _0x596075;}function isUnknownSize(_0x25b8fa,_0x1b9633){const _0x169e05=_0x277d,_0x964dd8={'TZSDm':function(_0x22e4b7,_0x10f52f){return _0x22e4b7===_0x10f52f;},'LZYkQ':function(_0x51d5ce,_0xaf0816){return _0x51d5ce-_0xaf0816;}};return _0x964dd8[_0x169e05(0xcf)](_0x25b8fa,_0x964dd8[_0x169e05(0xa0)](Math[_0x169e05(0x99)](0x2,0x7*_0x1b9633),0x1));}function writeVint(_0x44fc96,_0x9b48f4){const _0x35e693=_0x277d,_0x1b207c={'yaArG':function(_0x5a44b1,_0x151df4){return _0x5a44b1||_0x151df4;},'VCEiJ':function(_0x5d18c3,_0x45e1cd){return _0x5d18c3<_0x45e1cd;},'jCrfI':function(_0x2b2a36,_0xa1dd25){return _0x2b2a36>=_0xa1dd25;},'icJdX':function(_0x16ec40,_0x3c2cdc){return _0x16ec40&_0x3c2cdc;},'GMLDm':function(_0x4d4b13,_0x1a430e){return _0x4d4b13/_0x1a430e;},'pBYVw':function(_0x18019c,_0x1e39b8){return _0x18019c<<_0x1e39b8;},'RvdIE':function(_0x2894b1,_0x254eee){return _0x2894b1-_0x254eee;}};let _0x520817=_0x1b207c['yaArG'](_0x9b48f4,0x1);while(_0x1b207c[_0x35e693(0x8e)](Math['pow'](0x2,0x7*_0x520817)-0x2,_0x44fc96))_0x520817++;const _0x59628c=Buffer['alloc'](_0x520817);for(let _0x5d618b=_0x520817-0x1;_0x1b207c['jCrfI'](_0x5d618b,0x0);_0x5d618b--){_0x59628c[_0x5d618b]=_0x1b207c['icJdX'](_0x44fc96,0xff),_0x44fc96=Math[_0x35e693(0xd3)](_0x1b207c['GMLDm'](_0x44fc96,0x100));}return _0x59628c[0x0]|=_0x1b207c['pBYVw'](0x1,_0x1b207c['RvdIE'](0x8,_0x520817)),_0x59628c;}function writeUint(_0x5b3d95,_0x192b09){const _0x30225e=_0x277d,_0xbaba58={'UloLI':function(_0x276eb,_0x3e8741){return _0x276eb/_0x3e8741;}},_0x3604ff=Buffer[_0x30225e(0xc2)](_0x192b09);for(let _0x49699e=_0x192b09-0x1;_0x49699e>=0x0;_0x49699e--){_0x3604ff[_0x49699e]=_0x5b3d95&0xff,_0x5b3d95=Math['floor'](_0xbaba58['UloLI'](_0x5b3d95,0x100));}return _0x3604ff;}function writeUnknownSizeVint(_0x5c5999){const _0x3e77f3=_0x277d,_0x3c3c25={'WlsdL':function(_0x1f9905,_0x1c1f2b){return _0x1f9905>>_0x1c1f2b;},'oCPiH':function(_0x3fd6bc,_0x1b956d){return _0x3fd6bc-_0x1b956d;}},_0x413f32=Buffer[_0x3e77f3(0xc2)](_0x5c5999,0xff);return _0x413f32[0x0]=_0x3c3c25[_0x3e77f3(0x8f)](0xff,_0x3c3c25['oCPiH'](_0x5c5999,0x1)),_0x413f32;}function uintSize(_0x45c435){const _0x589c2d={'rZphr':function(_0xfdf3d,_0x252bc6){return _0xfdf3d>_0x252bc6;}};if(_0x45c435===0x0)return 0x1;let _0xa2d928=0x0,_0x1a7a9f=_0x45c435;while(_0x589c2d['rZphr'](_0x1a7a9f,0x0)){_0xa2d928++,_0x1a7a9f=Math['floor'](_0x1a7a9f/0x100);}return _0xa2d928;}function findTimestampScale(_0x4f73bc,_0x35f26a){const _0x199df6=_0x277d,_0x4b3e43={'bafFr':function(_0x2334b0,_0x430fbd){return _0x2334b0+_0x430fbd;},'MEFCA':function(_0x4e6904,_0x40aac8){return _0x4e6904<_0x40aac8;},'AdTsE':function(_0xb2481e,_0x55e25b,_0x1cec45){return _0xb2481e(_0x55e25b,_0x1cec45);},'HVsYe':function(_0x56d272,_0x5e9610){return _0x56d272===_0x5e9610;},'cVRay':function(_0x5b81de,_0x1759bd){return _0x5b81de+_0x1759bd;},'dwdCn':function(_0x34fcaf,_0x14c23f,_0x59cb39){return _0x34fcaf(_0x14c23f,_0x59cb39);},'bqqVK':function(_0x573b4c,_0x14a663,_0xb32256,_0x12f919){return _0x573b4c(_0x14a663,_0xb32256,_0x12f919);},'aaKaz':function(_0x30ccdc,_0x4dd64e){return _0x30ccdc+_0x4dd64e;},'JHQTJ':function(_0x440a55,_0x55f0b2){return _0x440a55+_0x55f0b2;},'DuEAY':function(_0x7babd,_0x2113ea,_0x4ce5ae){return _0x7babd(_0x2113ea,_0x4ce5ae);},'gpzmf':function(_0x447b1d,_0x49ec1a){return _0x447b1d+_0x49ec1a;}};let _0x268fcd=_0x35f26a;const _0x32e575=Math[_0x199df6(0xaa)](_0x4f73bc[_0x199df6(0xc9)],_0x4b3e43['bafFr'](_0x35f26a,0x2710));while(_0x4b3e43['MEFCA'](_0x268fcd,_0x32e575)){const [_0x1b2db4,_0x264993]=_0x4b3e43[_0x199df6(0xcc)](readId,_0x4f73bc,_0x268fcd),[_0x1575ef,_0x4d4f91]=readVint(_0x4f73bc,_0x268fcd+_0x264993);if(_0x4b3e43['HVsYe'](_0x1b2db4,ID_INFO)){let _0x16d413=_0x268fcd+_0x264993+_0x4d4f91;const _0x350cbd=_0x4b3e43['cVRay'](_0x16d413,_0x1575ef);while(_0x16d413<_0x350cbd){const [_0x224672,_0x1784aa]=_0x4b3e43['AdTsE'](readId,_0x4f73bc,_0x16d413),[_0x544008,_0x418fd7]=_0x4b3e43[_0x199df6(0xc8)](readVint,_0x4f73bc,_0x16d413+_0x1784aa);if(_0x224672===ID_TIMESTAMP_SCALE)return _0x4b3e43[_0x199df6(0xdb)](readUint,_0x4f73bc,_0x4b3e43[_0x199df6(0xc4)](_0x16d413+_0x1784aa,_0x418fd7),_0x544008);_0x16d413+=_0x4b3e43[_0x199df6(0x92)](_0x4b3e43['cVRay'](_0x1784aa,_0x418fd7),_0x544008);}break;}if(_0x1b2db4===ID_CLUSTER)break;if(_0x4b3e43[_0x199df6(0xa6)](isUnknownSize,_0x1575ef,_0x4d4f91))break;_0x268fcd+=_0x4b3e43[_0x199df6(0xd1)](_0x264993+_0x4d4f91,_0x1575ef);}return 0xf4240;}function findFirstClusterOffset(_0x41b213,_0x4650f2){const _0x4c934f=_0x277d,_0x167db0={'umNlD':function(_0x14bd11,_0x541e71){return _0x14bd11<_0x541e71;},'XVbJW':function(_0x44b3cd,_0x14110c,_0x5a2f48){return _0x44b3cd(_0x14110c,_0x5a2f48);},'fvZZe':function(_0x138dbb,_0xe96a0f){return _0x138dbb+_0xe96a0f;},'cbQpu':function(_0x22d7d1,_0x4c2a81){return _0x22d7d1+_0x4c2a81;},'vCrmO':function(_0x525eec,_0x1c2ef1){return _0x525eec+_0x1c2ef1;}};let _0x364666=_0x4650f2;while(_0x167db0['umNlD'](_0x364666,_0x41b213['length'])){const [_0x289948,_0x2b3195]=_0x167db0[_0x4c934f(0xbd)](readId,_0x41b213,_0x364666);if(_0x289948===ID_CLUSTER)return _0x364666;const [_0x477d53,_0x2fc509]=_0x167db0['XVbJW'](readVint,_0x41b213,_0x167db0['fvZZe'](_0x364666,_0x2b3195));if(isUnknownSize(_0x477d53,_0x2fc509))return _0x364666;_0x364666+=_0x167db0['cbQpu'](_0x167db0['vCrmO'](_0x2b3195,_0x2fc509),_0x477d53);}return _0x41b213[_0x4c934f(0xc9)];}function findClusterEnd(_0x2f429c,_0x5f5b57,_0x92fff0,_0x164681){const _0x4ba965=_0x277d,_0x44ca6e={'gDLgk':function(_0x1d601b,_0x3b96e5,_0x58c272){return _0x1d601b(_0x3b96e5,_0x58c272);},'bDdVU':function(_0x3e3616,_0xc86c2b){return _0x3e3616-_0xc86c2b;}};if(!_0x44ca6e['gDLgk'](isUnknownSize,_0x92fff0,_0x164681))return _0x5f5b57+_0x92fff0;const _0x4be83c=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4c660c=_0x5f5b57;while(_0x4c660c<_0x44ca6e[_0x4ba965(0xc5)](_0x2f429c[_0x4ba965(0xc9)],0x4)){const [_0xd9ff7e,_0x5bf5ca]=_0x44ca6e[_0x4ba965(0xa9)](readId,_0x2f429c,_0x4c660c);if(_0x4be83c['has'](_0xd9ff7e))return _0x4c660c;const [_0x105ede,_0x317e3c]=readVint(_0x2f429c,_0x4c660c+_0x5bf5ca);if(_0x44ca6e[_0x4ba965(0xa9)](isUnknownSize,_0x105ede,_0x317e3c))return _0x2f429c['length'];_0x4c660c+=_0x5bf5ca+_0x317e3c+_0x105ede;}return _0x2f429c[_0x4ba965(0xc9)];}function _0x54cf(){const _0x4a1066=['RbtSJ','aUanh','DkZKb','header','Fctlw','stitchWebmFiles.ts','XVbJW','2QgMjba','grlCk','qBFKi','840133ZxpRXk','alloc','2599194uzVjbY','aaKaz','bDdVU','copy','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','dwdCn','length','faQpv','PpSPq','AdTsE','163830woYoVR','bodyAfterTimestamp','TZSDm','kcNgZ','gpzmf','exit','floor','hbuXe','JCcar','bMRUl','argv','max','GZSTt','kgYvO','bqqVK','388186YFsjyt','indexOf','VCEiJ','WlsdL','from','bWAaG','JHQTJ','SSiJG','wzcCN','endsWith','aFvoJ','PkXjv','uSuMS','pow','1980860LJZDky','slice','jpazD','SmKVM','1870128QyFsJP','yddCM','LZYkQ','azGtY','maxTicks','concat','yEsTR','push','DuEAY','MeMYy','IMrjE','gDLgk','min','wUUkA','BylGk','log','iBsIa','pgRrK','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','APNmE','zffWS','DWMTX','timestamp','4912864TJakwQ','nrWWT'];_0x54cf=function(){return _0x4a1066;};return _0x54cf();}function extractClusters(_0x5727b6,_0x480039){const _0xee7877=_0x277d,_0x29a6fc={'wzcCN':function(_0x207704,_0x1ce505){return _0x207704<_0x1ce505;},'RbtSJ':function(_0x409e74,_0xc206b7,_0x3f4078){return _0x409e74(_0xc206b7,_0x3f4078);},'IMrjE':function(_0x33c64c,_0x2fd738){return _0x33c64c!==_0x2fd738;},'OjBYI':function(_0x227765,_0x3ebfb6){return _0x227765+_0x3ebfb6;},'MeMYy':function(_0x2c400d,_0x3eb6d0,_0x4d2216){return _0x2c400d(_0x3eb6d0,_0x4d2216);},'emgcG':function(_0x2793e9,_0x5bee7c,_0x3fbd6c,_0x2e8377,_0x568dd6){return _0x2793e9(_0x5bee7c,_0x3fbd6c,_0x2e8377,_0x568dd6);},'yEsTR':function(_0x39a669,_0x444ad2){return _0x39a669+_0x444ad2;},'aUanh':function(_0x363576,_0x406d0b){return _0x363576===_0x406d0b;},'kcNgZ':function(_0x2500b5,_0x4bbca2){return _0x2500b5===_0x4bbca2;},'pgRrK':function(_0x3db2fc,_0x11e4cc){return _0x3db2fc+_0x11e4cc;},'wUUkA':function(_0x5b3a27,_0xbfdd47){return _0x5b3a27<_0xbfdd47;},'FtNVj':function(_0x2eba46,_0x17f0b5){return _0x2eba46+_0x17f0b5;}},_0x411950=[],_0x452363=Buffer[_0xee7877(0x90)]([0x1f,0x43,0xb6,0x75]);let _0x24dd47=0x0;while(_0x29a6fc[_0xee7877(0x94)](_0x24dd47,_0x5727b6['length'])){const _0x215f43=_0x5727b6[_0xee7877(0x8d)](_0x452363,_0x24dd47);if(_0x215f43===-0x1)break;const [_0x52460e,_0x177797]=_0x29a6fc['RbtSJ'](readId,_0x5727b6,_0x215f43);if(_0x29a6fc[_0xee7877(0xa8)](_0x52460e,ID_CLUSTER)){_0x24dd47=_0x29a6fc['OjBYI'](_0x215f43,0x1);continue;}const [_0xb531df,_0x1ba281]=_0x29a6fc[_0xee7877(0xa7)](readVint,_0x5727b6,_0x215f43+_0x177797),_0x1f2d83=_0x215f43+_0x177797+_0x1ba281,_0x518664=_0x29a6fc['emgcG'](findClusterEnd,_0x5727b6,_0x1f2d83,_0xb531df,_0x1ba281);let _0x239f84=_0x1f2d83,_0x1a007f=0x0,_0x154ec1=0x2,_0x39d36f=![],_0xbe7b6b=Buffer['alloc'](0x0),_0x2e9146=Buffer[_0xee7877(0xc2)](0x0);while(_0x239f84<_0x518664){const [_0x290c3d,_0x33ec70]=_0x29a6fc['RbtSJ'](readId,_0x5727b6,_0x239f84),[_0x3bec86,_0x1296ac]=readVint(_0x5727b6,_0x29a6fc[_0xee7877(0xa4)](_0x239f84,_0x33ec70));if(_0x29a6fc[_0xee7877(0xb8)](_0x290c3d,ID_TIMESTAMP)){_0x1a007f=readUint(_0x5727b6,_0x239f84+_0x33ec70+_0x1296ac,_0x3bec86),_0x154ec1=_0x3bec86,_0x39d36f=!![],_0xbe7b6b=_0x5727b6['slice'](_0x1f2d83,_0x239f84);const _0x389b85=_0x29a6fc[_0xee7877(0xa4)](_0x29a6fc[_0xee7877(0xa4)](_0x239f84,_0x33ec70),_0x1296ac)+_0x3bec86;_0x2e9146=_0x5727b6['slice'](_0x389b85,_0x518664);break;}if(_0x29a6fc[_0xee7877(0xd0)](_0x290c3d,ID_CLUSTER))break;if(isUnknownSize(_0x3bec86,_0x1296ac))break;_0x239f84+=_0x29a6fc[_0xee7877(0xaf)](_0x33ec70,_0x1296ac)+_0x3bec86;}!_0x39d36f&&(_0x2e9146=_0x5727b6[_0xee7877(0x9b)](_0x1f2d83,_0x518664));let _0x273694=_0x1a007f;_0x239f84=_0x1f2d83;while(_0x29a6fc[_0xee7877(0xab)](_0x239f84,_0x518664)){const [_0x23c1c7,_0x39470a]=readId(_0x5727b6,_0x239f84),[_0x1d7e24,_0x39bb72]=_0x29a6fc[_0xee7877(0xb7)](readVint,_0x5727b6,_0x29a6fc['yEsTR'](_0x239f84,_0x39470a));if(_0x29a6fc[_0xee7877(0xb8)](_0x23c1c7,ID_SIMPLE_BLOCK)&&_0x1d7e24>=0x4){const _0x201d3d=_0x29a6fc['pgRrK'](_0x239f84,_0x39470a)+_0x39bb72,[,_0x122016]=readVint(_0x5727b6,_0x201d3d),_0x2e70fa=_0x5727b6['readInt16BE'](_0x201d3d+_0x122016),_0x1d9ca7=_0x1a007f+_0x2e70fa;if(_0x1d9ca7>_0x273694)_0x273694=_0x1d9ca7;}if(_0x23c1c7===ID_CLUSTER)break;if(isUnknownSize(_0x1d7e24,_0x39bb72))break;_0x239f84+=_0x29a6fc['FtNVj'](_0x39470a+_0x39bb72,_0x1d7e24);}_0x411950['push']({'timestamp':_0x1a007f,'maxTicks':_0x273694,'bodyBeforeTimestamp':_0xbe7b6b,'bodyAfterTimestamp':_0x2e9146,'timestampElementSize':_0x154ec1}),_0x24dd47=_0x518664;}return _0x411950;}function parseWebm(_0x243e76){const _0x36b012=_0x277d,_0xbd01b1={'faQpv':function(_0x1895d4,_0x39ce7f,_0x4069ec){return _0x1895d4(_0x39ce7f,_0x4069ec);},'PpSPq':function(_0x14732b,_0x7ee762){return _0x14732b+_0x7ee762;},'yddCM':function(_0x5cb7ef,_0x500631){return _0x5cb7ef+_0x500631;},'lkKVe':function(_0x2c86c4,_0x4f5a5a){return _0x2c86c4+_0x4f5a5a;},'aFvoJ':function(_0x458d57,_0xed4ee7,_0x3be62d){return _0x458d57(_0xed4ee7,_0x3be62d);}};let _0x45ca3c=0x0;const [,_0x3b351e]=readId(_0x243e76,_0x45ca3c),[_0x4fe250,_0x45d5d4]=_0xbd01b1[_0x36b012(0xca)](readVint,_0x243e76,_0xbd01b1['PpSPq'](_0x45ca3c,_0x3b351e));_0x45ca3c+=_0xbd01b1['yddCM'](_0xbd01b1[_0x36b012(0x9f)](_0x3b351e,_0x45d5d4),_0x4fe250);const [_0x3ec1e6,_0x2482cc]=_0xbd01b1['faQpv'](readId,_0x243e76,_0x45ca3c);if(_0x3ec1e6!==ID_SEGMENT)return null;const [,_0x59a4b8]=readVint(_0x243e76,_0x45ca3c+_0x2482cc),_0x1a1de9=_0xbd01b1['lkKVe'](_0xbd01b1[_0x36b012(0xcb)](_0x45ca3c,_0x2482cc),_0x59a4b8),_0x97e548=_0xbd01b1[_0x36b012(0x96)](findTimestampScale,_0x243e76,_0x1a1de9),_0xf9cbde=findFirstClusterOffset(_0x243e76,_0x1a1de9),_0x272a5d=_0x243e76[_0x36b012(0x9b)](0x0,_0xf9cbde),_0x5d5e11=_0xbd01b1['faQpv'](extractClusters,_0x243e76,_0x97e548);let _0x999edf=0x0;for(const _0x384d4b of _0x5d5e11){if(_0x384d4b['maxTicks']>_0x999edf)_0x999edf=_0x384d4b[_0x36b012(0xa2)];}return{'header':_0x272a5d,'clusters':_0x5d5e11,'timestampScale':_0x97e548,'maxTimestampTicks':_0x999edf};}function buildCluster(_0x22b58b,_0x5881a9,_0xbe161b){const _0x236deb=_0x277d,_0x50c926={'zffWS':function(_0x717f63,_0x33e273){return _0x717f63(_0x33e273);},'grlCk':function(_0x14cb3e,_0x993a74){return _0x14cb3e(_0x993a74);},'PkXjv':function(_0x45126e,_0xd66ef1,_0x18e552){return _0x45126e(_0xd66ef1,_0x18e552);}},_0x36b486=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x5a5aa3=Math[_0x236deb(0xd8)](0x4,_0x50c926[_0x236deb(0xb2)](uintSize,_0x22b58b)),_0x516f0a=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x50c926[_0x236deb(0xbf)](writeVint,_0x5a5aa3),_0x50c926[_0x236deb(0x97)](writeUint,_0x22b58b,_0x5a5aa3)]),_0xa46748=Buffer['concat']([_0x5881a9,_0x516f0a,_0xbe161b]),_0x5a8f1e=_0x50c926[_0x236deb(0xb2)](writeVint,_0xa46748[_0x236deb(0xc9)]);return Buffer['concat']([_0x36b486,_0x5a8f1e,_0xa46748]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x4e4f8c){const _0x21a0b5=_0x277d,_0x5d7541={'BylGk':function(_0x367093,_0x3aa309,_0x2f0b6b){return _0x367093(_0x3aa309,_0x2f0b6b);},'GZSTt':function(_0x58a5e2,_0x1f5587){return _0x58a5e2+_0x1f5587;},'uSuMS':function(_0x579669,_0x161a0b){return _0x579669+_0x161a0b;},'APNmE':function(_0x8b1735,_0x4f7450){return _0x8b1735+_0x4f7450;},'kgYvO':function(_0x49e65b,_0x434f04){return _0x49e65b(_0x434f04);},'iBsIa':function(_0x4b3449,_0x7c53ea){return _0x4b3449<_0x7c53ea;},'FTGrB':function(_0x27f0be,_0x3763f8){return _0x27f0be+_0x3763f8;},'azGtY':function(_0x54782e,_0x3c5a6f){return _0x54782e===_0x3c5a6f;},'bWAaG':function(_0x36eba7,_0x1184cc){return _0x36eba7+_0x1184cc;},'yoGNy':function(_0x26b9e6,_0x1514de,_0x2ef042){return _0x26b9e6(_0x1514de,_0x2ef042);}},_0x28def5=Buffer['from'](_0x4e4f8c);let _0x3a689f=0x0;const [,_0x4a7fdd]=_0x5d7541['BylGk'](readId,_0x28def5,_0x3a689f),[_0x36f10a,_0x7beaa7]=readVint(_0x28def5,_0x5d7541[_0x21a0b5(0xd9)](_0x3a689f,_0x4a7fdd)),_0x4513a4=_0x5d7541[_0x21a0b5(0x98)](_0x3a689f+_0x4a7fdd,_0x7beaa7)+_0x36f10a,[,_0x3991f6]=readId(_0x28def5,_0x4513a4),[,_0x576ef5]=readVint(_0x28def5,_0x4513a4+_0x3991f6),_0x5614e2=_0x5d7541[_0x21a0b5(0x98)](_0x5d7541[_0x21a0b5(0xb1)](_0x4513a4,_0x3991f6),_0x576ef5),_0x34d5a7=_0x5d7541[_0x21a0b5(0xda)](writeUnknownSizeVint,_0x576ef5);_0x34d5a7[_0x21a0b5(0xc6)](_0x28def5,_0x4513a4+_0x3991f6);let _0xc57f14=_0x5614e2;const _0x18da4f=Math[_0x21a0b5(0xaa)](_0x28def5[_0x21a0b5(0xc9)],_0x5d7541[_0x21a0b5(0xd9)](_0x5614e2,0x2710));while(_0x5d7541[_0x21a0b5(0xae)](_0xc57f14,_0x18da4f)){const [_0x57fd7a,_0x398d9e]=_0x5d7541['BylGk'](readId,_0x28def5,_0xc57f14),[_0x3a82b7,_0x147db4]=readVint(_0x28def5,_0x5d7541['FTGrB'](_0xc57f14,_0x398d9e));if(_0x57fd7a===ID_CLUSTER)break;if(_0x5d7541[_0x21a0b5(0xac)](isUnknownSize,_0x3a82b7,_0x147db4))break;if(_0x5d7541[_0x21a0b5(0xa1)](_0x57fd7a,ID_INFO)){const _0x490da7=_0x5d7541['APNmE'](_0xc57f14+_0x398d9e,_0x147db4),_0x27ca14=_0x5d7541['FTGrB'](_0x490da7,_0x3a82b7),_0x258454=[];let _0xb3814a=_0x490da7;while(_0xb3814a<_0x27ca14){const [_0x46decf,_0x11f4af]=_0x5d7541['BylGk'](readId,_0x28def5,_0xb3814a),[_0x52d1c7,_0x19e321]=readVint(_0x28def5,_0xb3814a+_0x11f4af),_0x1f2a36=_0x11f4af+_0x19e321+_0x52d1c7;_0x46decf!==ID_DURATION&&_0x258454[_0x21a0b5(0xa5)](_0x28def5[_0x21a0b5(0x9b)](_0xb3814a,_0xb3814a+_0x1f2a36)),_0xb3814a+=_0x1f2a36;}const _0x3186a3=Buffer['concat'](_0x258454),_0x240a3b=Buffer['concat']([_0x28def5[_0x21a0b5(0x9b)](_0xc57f14,_0x5d7541[_0x21a0b5(0x91)](_0xc57f14,_0x398d9e)),_0x5d7541['yoGNy'](writeVint,_0x3186a3[_0x21a0b5(0xc9)],_0x147db4)]);return Buffer[_0x21a0b5(0xa3)]([_0x28def5['slice'](0x0,_0xc57f14),_0x240a3b,_0x3186a3,_0x28def5[_0x21a0b5(0x9b)](_0x27ca14)]);}_0xc57f14+=_0x5d7541['bWAaG'](_0x398d9e,_0x147db4)+_0x3a82b7;}return _0x28def5;}export function stitchWebmFiles(_0x323954,_0x435301){const _0x4ce66b=_0x277d,_0x504364={'JCcar':function(_0x1b9f96,_0x82a78e){return _0x1b9f96<=_0x82a78e;},'BEmZI':function(_0x20c9e0,_0x51ce34){return _0x20c9e0(_0x51ce34);},'SSiJG':function(_0xfded46,_0x257f7e){return _0xfded46===_0x257f7e;},'nrWWT':function(_0x378a8e,_0x43e8b7){return _0x378a8e+_0x43e8b7;},'DkZKb':function(_0x2f1baf,_0x4c27dc,_0x5838a5){return _0x2f1baf(_0x4c27dc,_0x5838a5);}};if(_0x504364[_0x4ce66b(0xd5)](_0x323954[_0x4ce66b(0xc9)],0x1))return![];const _0x5991e9=[];for(const _0x4ee52b of _0x323954){const _0x12d605=_0x504364['BEmZI'](readFileSync,_0x4ee52b),_0x5514f4=parseWebm(_0x12d605);if(!_0x5514f4||_0x504364[_0x4ce66b(0x93)](_0x5514f4['clusters']['length'],0x0))return![];_0x5991e9[_0x4ce66b(0xa5)](_0x5514f4);}const _0x4f69c1=_0x5991e9[0x0],_0x4a41ec=rebuildHeaderWithoutDuration(_0x4f69c1[_0x4ce66b(0xba)]),_0x4067bf=[_0x4a41ec];let _0x170a7d=0x0;for(let _0x1710bd=0x0;_0x1710bd<_0x5991e9['length'];_0x1710bd++){const _0x53cab6=_0x5991e9[_0x1710bd];for(const _0x3cf8b5 of _0x53cab6['clusters']){const _0xfa1a8=_0x504364['nrWWT'](_0x3cf8b5[_0x4ce66b(0xb4)],_0x170a7d);_0x4067bf['push'](buildCluster(_0xfa1a8,_0x3cf8b5['bodyBeforeTimestamp'],_0x3cf8b5[_0x4ce66b(0xce)]));}const _0x51f1c1=0x1e;_0x170a7d+=_0x504364[_0x4ce66b(0xb6)](_0x53cab6['maxTimestampTicks'],_0x51f1c1);}return _0x504364[_0x4ce66b(0xb9)](writeFileSync,_0x435301,Buffer[_0x4ce66b(0xa3)](_0x4067bf)),!![];}if(process[_0x562a20(0xd7)][0x1]?.[_0x562a20(0x95)](_0x562a20(0xbc))||process[_0x562a20(0xd7)][0x1]?.[_0x562a20(0x95)]('stitchWebmFiles.js')){const args=process['argv'][_0x562a20(0x9b)](0x2);args[_0x562a20(0xc9)]<0x3&&(console['error'](_0x562a20(0xc7)),process[_0x562a20(0xd2)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x562a20(0xad)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console['log'](_0x562a20(0xb0));}