@ranger-testing/ranger-cli 3.1.7-alpha.387730d-58 → 3.1.7-alpha.9ed0a8d-59

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 (86) 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/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x506844,_0xa6d8d9){const _0x564221=_0x2a51,_0x126b7a=_0x506844();while(!![]){try{const _0x2e3935=parseInt(_0x564221(0x1f9))/0x1*(-parseInt(_0x564221(0x203))/0x2)+-parseInt(_0x564221(0x20b))/0x3*(-parseInt(_0x564221(0x1e8))/0x4)+parseInt(_0x564221(0x1ea))/0x5*(parseInt(_0x564221(0x200))/0x6)+parseInt(_0x564221(0x214))/0x7+-parseInt(_0x564221(0x1f5))/0x8+parseInt(_0x564221(0x205))/0x9+-parseInt(_0x564221(0x1fc))/0xa;if(_0x2e3935===_0xa6d8d9)break;else _0x126b7a['push'](_0x126b7a['shift']());}catch(_0x45e6fe){_0x126b7a['push'](_0x126b7a['shift']());}}}(_0x22c8,0x89ddf));import{existsSync}from'fs';import _0x513919 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 _0x22c8(){const _0x943b65=['baseUrl','cdpEndpoint','BGOzm','2093912ZZukNY','\x20\x20Note:\x20--env\x20\x22','Local\x20profile','qfTSr','218871nmqNaD','CHJdd','bMdKd','3337270QkiEys','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','RANGER_SESSION_STATE_PATH=','Profile\x20\x22','6ItCECj','local','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','2RgpTOG','lBPph','486288CpEabF','HgVqp','authPath','utlcQ','XtLay','authEnv','55383rlsRfC','key','domains','env','\x20does\x20not\x20exist.','envStartPath','settings','`\x20to\x20recreate\x20it.','ADkxc','6401444XbuUME','qDaBt','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','source','HAlri','string','name','length','envBaseUrl','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a','\x20to\x20override.','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','profile','resolvedEnv','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','CQUIE','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','status','log','20FRDIbr','\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.','1591055xxNIHA','vsHhh','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','aplvw','environmentKey','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','CrNLm','startPath'];_0x22c8=function(){return _0x943b65;};return _0x22c8();}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x1e1433){const _0xf8ed0b=_0x2a51,_0x14fb65={'ADkxc':function(_0x587b56){return _0x587b56();},'XtLay':function(_0x198841,_0x2337a8){return _0x198841(_0x2337a8);},'qDaBt':function(_0x21cad0,_0x56bc12){return _0x21cad0!==_0x56bc12;},'oZibk':function(_0x3da6d3,_0x4e2495){return _0x3da6d3 instanceof _0x4e2495;},'qfTSr':function(_0x534449,_0x180bb1){return _0x534449??_0x180bb1;},'eKuGP':function(_0x38a9ec,_0x50d626){return _0x38a9ec+_0x50d626;},'XScPL':function(_0x2e4c65,_0xcfd9d1){return _0x2e4c65+_0xcfd9d1;},'vsHhh':function(_0x3ff502,_0x422e2d){return _0x3ff502+_0x422e2d;},'aplvw':_0xf8ed0b(0x1e0),'BiItr':_0xf8ed0b(0x21d),'HAlri':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','xZzTw':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','uOBEQ':function(_0x121ddf,_0x5ba874){return _0x121ddf(_0x5ba874);},'lBPph':function(_0x487359,_0x2037e2){return _0x487359 instanceof _0x2037e2;},'HgVqp':function(_0x5d6a4e,_0x4a1711){return _0x5d6a4e&&_0x4a1711;},'elsIb':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','CQUIE':function(_0x193a0e,_0x175c9d){return _0x193a0e&&_0x175c9d;},'CrNLm':'list','bMdKd':'Cloud\x20profile\x20(recommended)','anaWz':'cloud','tDoFj':function(_0x2f19b1,_0x5bb546,_0x564ac2){return _0x2f19b1(_0x5bb546,_0x564ac2);},'EGTTZ':_0xf8ed0b(0x21e),'TJLEN':function(_0x17dcdc,_0x275e18){return _0x17dcdc(_0x275e18);}},_0x1054c3=_0x1e1433['profile'];let _0xb56c0f=_0x1054c3,_0x449571=null;const _0x15a3c6=_0x1054c3?null:await _0x14fb65['ADkxc'](readActiveProfileName);if(_0x1e1433['authEnv']&&_0x1054c3)console['log'](_0xf8ed0b(0x1f6)+_0x1e1433[_0xf8ed0b(0x20a)]+'\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22'+_0x1054c3+'\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).');else _0x1e1433['authEnv']&&!process[_0xf8ed0b(0x20e)]['RANGER_TEST_USERNAME']&&console[_0xf8ed0b(0x1e7)](_0xf8ed0b(0x1f6)+_0x1e1433['authEnv']+_0xf8ed0b(0x1e9));if(!_0x1054c3&&process[_0xf8ed0b(0x20e)]['RANGER_TEST_USERNAME'])try{const _0x360195=await _0x14fb65['XtLay'](resolveAdHocProfile,{'targetUrl':_0x1e1433['baseUrl']??readUrlEnvVars()['envBaseUrl'],'envKey':_0x1e1433['authEnv']});_0x360195&&(_0x15a3c6&&_0x14fb65[_0xf8ed0b(0x215)](_0x15a3c6,_0x360195['name'])&&console[_0xf8ed0b(0x1e7)]('\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22'+_0x360195['name']+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x15a3c6+'\x22.\x20Pass\x20--profile\x20'+_0x15a3c6+_0xf8ed0b(0x1df)),_0xb56c0f=_0x360195['name'],_0x449571=_0x360195[_0xf8ed0b(0x1e1)]);}catch(_0x3e0769){if(!_0x15a3c6||_0x1e1433[_0xf8ed0b(0x20a)])throw _0x3e0769;console['log']('\x20\x20Warning:\x20'+(_0x14fb65['oZibk'](_0x3e0769,Error)?_0x3e0769['message']:String(_0x3e0769))),console[_0xf8ed0b(0x1e7)](_0xf8ed0b(0x216)+_0x15a3c6+'\x22.');}if(!_0xb56c0f)_0xb56c0f=_0x14fb65[_0xf8ed0b(0x1f8)](_0x15a3c6,undefined);if(!_0xb56c0f)try{const _0x58f1cb=await _0x14fb65['ADkxc'](listCloudProfiles);if(_0x58f1cb[_0xf8ed0b(0x21b)]===0x1){const _0x13099e=_0x58f1cb[0x0];_0xb56c0f=_0x13099e[_0xf8ed0b(0x21a)],console[_0xf8ed0b(0x1e7)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x13099e['name']),console['log'](_0xf8ed0b(0x202));}}catch{}if(!_0xb56c0f)throw new Error(_0x14fb65['eKuGP'](_0x14fb65['XScPL'](_0x14fb65['vsHhh'](_0xf8ed0b(0x1e5),_0x14fb65[_0xf8ed0b(0x1ed)]),_0x14fb65['BiItr'])+_0x14fb65[_0xf8ed0b(0x218)],_0x14fb65['xZzTw']));const _0x424203=getEnvDir(_0xb56c0f),_0x9ac97c=_0x14fb65[_0xf8ed0b(0x209)](existsSync,_0x424203);let _0x1d5bcf=_0x449571,_0x5eb39f=![];if(!_0x1d5bcf)try{_0x1d5bcf=await _0x14fb65['uOBEQ'](fetchCloudProfile,_0xb56c0f);if(!_0x1d5bcf)_0x5eb39f=!![];}catch(_0x4b558f){_0x14fb65[_0xf8ed0b(0x204)](_0x4b558f,ApiError)&&_0x4b558f[_0xf8ed0b(0x1e6)]===0x194&&(_0x5eb39f=!![]);}if(_0x14fb65[_0xf8ed0b(0x206)](_0x1054c3,_0x5eb39f)&&!_0x9ac97c&&!_0x1d5bcf)throw new Error(_0x14fb65[_0xf8ed0b(0x1eb)](_0x14fb65[_0xf8ed0b(0x1eb)](_0xf8ed0b(0x1ff)+_0x1054c3+_0xf8ed0b(0x1ec),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'),_0x14fb65['elsIb']));if(_0x14fb65[_0xf8ed0b(0x1e4)](_0x1d5bcf,_0x9ac97c)){let _0x27aa48=!![];if(isInteractive()){const {source:_0x4e6d6c}=await _0x513919['prompt']([{'type':_0x14fb65[_0xf8ed0b(0x1f0)],'name':_0xf8ed0b(0x217),'message':'Profile\x20\x22'+_0xb56c0f+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x14fb65[_0xf8ed0b(0x1fb)],'value':_0x14fb65['anaWz']},{'name':_0xf8ed0b(0x1f7),'value':_0xf8ed0b(0x201)}],'default':'cloud'}]);_0x27aa48=_0x4e6d6c===_0x14fb65['anaWz'];}if(!_0x27aa48)_0x1d5bcf=null;}const _0x32e391=_0x14fb65['tDoFj'](readProfileOverrides,process['cwd'](),_0xb56c0f);let _0x359ed2=null,_0x28e6bd,_0x5ac2be,_0x9616e4,_0x39dedd,_0x121f35=null,_0x5a31c6,_0x29e380;const _0x37cb00=expandOverrides(_0x32e391),_0x44a0d5=_0x14fb65[_0xf8ed0b(0x213)](readUrlEnvVars);if(_0x1d5bcf){_0x359ed2=_0x1d5bcf;const _0x5c13e5=_0x1d5bcf['settings']??{},_0x221203=mergeCloudProfileSettings(_0x5c13e5,_0x32e391??undefined),_0x53b05a={..._0x1d5bcf,'settings':_0x221203};_0x121f35={'baseUrl':expandString(_0x5c13e5[_0xf8ed0b(0x1f2)]),'startPath':expandString(_0x5c13e5[_0xf8ed0b(0x1f1)])};const _0x132030=await fetchAuthConfig(),_0x416e44=_0x132030?resolveAuthEnvironmentLocally(_0x132030,_0x1d5bcf[_0xf8ed0b(0x1ee)]):null;_0x5a31c6=_0x416e44?.['domains']?.[0x0],_0x29e380=_0x416e44?.[_0xf8ed0b(0x20c)];const _0x552d86=resolveProfileUrl({'flagBaseUrl':_0x1e1433[_0xf8ed0b(0x1f2)],'flagStartPath':_0x1e1433['startPath'],'envBaseUrl':_0x44a0d5[_0xf8ed0b(0x21c)],'envStartPath':_0x44a0d5['envStartPath'],'projectOverrides':_0x37cb00,'cloudSettings':_0x121f35,'authEnvironmentDomain':_0x5a31c6}),_0x2444e0=process[_0xf8ed0b(0x20e)]['RANGER_SESSION_STATE_PATH'];if(_0x2444e0){if(!existsSync(_0x2444e0))throw new Error(_0xf8ed0b(0x1fe)+_0x2444e0+_0xf8ed0b(0x20f));_0x28e6bd=_0x2444e0,_0x5ac2be=resolveEnvVars(_0x221203),_0x9616e4=Boolean(_0x5ac2be['cdpEndpoint']);}else{const _0x59c4e2=await resolveCloudProfileSession(_0x53b05a,{'effectiveBaseUrl':_0x552d86[_0xf8ed0b(0x1f2)],'telemetry':_0x1e1433['telemetry'],'assertedEnv':_0x1e1433[_0xf8ed0b(0x20a)]});_0x28e6bd=_0x59c4e2[_0xf8ed0b(0x207)],_0x5ac2be=resolveEnvVars(_0x59c4e2[_0xf8ed0b(0x211)]),_0x9616e4=Boolean(_0x5ac2be[_0xf8ed0b(0x1f3)]),_0x5a31c6=_0x59c4e2[_0xf8ed0b(0x1e2)]?.[_0xf8ed0b(0x20d)]?.[0x0],_0x29e380=_0x59c4e2[_0xf8ed0b(0x1e2)]?.[_0xf8ed0b(0x20c)];}}else{if(!_0x9ac97c){const _0x18bb91=!_0x1054c3;throw new Error(_0x18bb91?'Active\x20profile\x20\x22'+_0xb56c0f+'\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a'+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a'+_0x14fb65['EGTTZ']+(_0xf8ed0b(0x1fd)+_0xb56c0f+_0xf8ed0b(0x212)):'Profile\x20\x22'+_0xb56c0f+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0xb56c0f);}const _0x3ad634=await loadSettings(_0xb56c0f);_0x5ac2be=resolveEnvVars(_0x3ad634),_0x9616e4=_0x14fb65['TJLEN'](Boolean,_0x5ac2be[_0xf8ed0b(0x1f3)]),_0x39dedd=_0x5ac2be[_0xf8ed0b(0x1f2)];}const _0xbf3e7=resolveProfileUrl({'flagBaseUrl':_0x1e1433['baseUrl'],'flagStartPath':_0x1e1433['startPath'],'envBaseUrl':_0x44a0d5['envBaseUrl'],'envStartPath':_0x44a0d5[_0xf8ed0b(0x210)],'localSettingsBaseUrl':_0x39dedd,'projectOverrides':_0x37cb00,'cloudSettings':_0x121f35,'authEnvironmentDomain':_0x5a31c6}),_0x26013c=_0xbf3e7['url']??_0xbf3e7['baseUrl'];if(!_0x26013c&&!_0x9616e4)throw new Error(_0xf8ed0b(0x1ef)+_0xb56c0f+_0xf8ed0b(0x1e3)+_0xb56c0f+'\x20baseUrl\x20<url>');return{'activeProfile':_0xb56c0f,'resolvedCloudProfile':_0x359ed2,'cloudAuthPath':_0x28e6bd,'resolvedSettings':_0x5ac2be,'isCdpMode':_0x9616e4,'url':_0x26013c,'baseUrlSource':_0xbf3e7['baseUrlSource'],'authEnvKey':_0x29e380,'startPath':_0xbf3e7['startPath']};}function _0x2a51(_0x296d05,_0x466988){_0x296d05=_0x296d05-0x1df;const _0x22c811=_0x22c8();let _0x2a510a=_0x22c811[_0x296d05];return _0x2a510a;}function expandString(_0x5e57b0){const _0x2c1a4=_0x2a51,_0x1af8b6={'BGOzm':_0x2c1a4(0x219)};if(typeof _0x5e57b0!==_0x1af8b6[_0x2c1a4(0x1f4)])return _0x5e57b0;return resolveEnvVars(_0x5e57b0);}function expandOverrides(_0x29e55d){const _0x279b9d=_0x2a51,_0x3d7d5a={'utlcQ':function(_0x1bfc4c,_0x122d37){return _0x1bfc4c(_0x122d37);},'ZxXUv':'string','CHJdd':function(_0x206c7c,_0x1a8904){return _0x206c7c(_0x1a8904);}};if(!_0x29e55d)return _0x29e55d;const _0xca6035={..._0x29e55d};return typeof _0xca6035['baseUrl']==='string'&&(_0xca6035['baseUrl']=_0x3d7d5a[_0x279b9d(0x208)](resolveEnvVars,_0xca6035[_0x279b9d(0x1f2)])),typeof _0xca6035['startPath']===_0x3d7d5a['ZxXUv']&&(_0xca6035[_0x279b9d(0x1f1)]=_0x3d7d5a[_0x279b9d(0x1fa)](resolveEnvVars,_0xca6035[_0x279b9d(0x1f1)])),_0xca6035;}
1
+ function _0x4584(){const _0x210995=['Cloud\x20profile\x20(recommended)','534mRXeBF','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','startPath','kbsVc','RANGER_SESSION_STATE_PATH=','cYlSI','cdpEndpoint','aiYhw','cwd','\x22\x20this\x20run\x20(overrides\x20the\x20profile\x27s\x20pinned\x20env\x20for\x20login).','string','topSz','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x22\x20is\x20used\x20as\x20the\x20auth-environment\x20assertion\x20for\x20\x22','\x20\x20Warning:\x20','envBaseUrl','settings','atQDF','profile','domains','cjfmj','82035LZamnV','enZbK','8jXnkiN','\x20\x20Note:\x20--env\x20\x22','baseUrlSource','RANGER_SESSION_STATE_PATH','14rovsKs','list','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','RANGER_TEST_USERNAME','Local\x20profile','resolvedEnv','envStartPath','317550ghiWHj','20iwuoaY','XBUBJ','60ARGqbY','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','message','name','key','hITKn','log','1697806kpDgoh','XrVDz','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','Profile\x20\x22','Active\x20profile\x20\x22','HvXpt','5841120IeaMUt','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','Tlkpw','201876kYiHId','env','aWZbQ','source','AfAPR','KzAuO','NZydn','baseUrl','102960cSobzH','authEnv','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20to\x20switch\x20(see\x20`ranger\x20profile\x20ls`),\x20or\x0a','\x20\x20RANGER_TEST_USERNAME\x20is\x20set\x20—\x20using\x20profile\x20\x22','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20Falling\x20back\x20to\x20saved\x20active\x20profile\x20\x22','telemetry','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','10101924WHthcl'];_0x4584=function(){return _0x210995;};return _0x4584();}(function(_0x881a28,_0x12daa4){const _0xa65fa2=_0x4ff9,_0x7082ce=_0x881a28();while(!![]){try{const _0x334a08=-parseInt(_0xa65fa2(0x1ab))/0x1*(-parseInt(_0xa65fa2(0x191))/0x2)+parseInt(_0xa65fa2(0x1a3))/0x3*(parseInt(_0xa65fa2(0x185))/0x4)+parseInt(_0xa65fa2(0x183))/0x5*(parseInt(_0xa65fa2(0x16e))/0x6)+-parseInt(_0xa65fa2(0x189))/0x7*(parseInt(_0xa65fa2(0x1a0))/0x8)+-parseInt(_0xa65fa2(0x16c))/0x9+-parseInt(_0xa65fa2(0x190))/0xa+parseInt(_0xa65fa2(0x19a))/0xb*(parseInt(_0xa65fa2(0x193))/0xc);if(_0x334a08===_0x12daa4)break;else _0x7082ce['push'](_0x7082ce['shift']());}catch(_0x31e23b){_0x7082ce['push'](_0x7082ce['shift']());}}}(_0x4584,0xbed62));import{existsSync}from'fs';function _0x4ff9(_0x5bd1e2,_0x49d986){_0x5bd1e2=_0x5bd1e2-0x166;const _0x45848f=_0x4584();let _0x4ff935=_0x45848f[_0x5bd1e2];return _0x4ff935;}import _0x231e7f 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';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x29fb0b){const _0x31014e=_0x4ff9,_0x305ce4={'atQDF':function(_0x210452){return _0x210452();},'aWZbQ':function(_0x5a6b1b,_0x1a533b){return _0x5a6b1b(_0x1a533b);},'cYlSI':function(_0x3956a1){return _0x3956a1();},'Tlkpw':function(_0x4a2508,_0x2d2d97){return _0x4a2508??_0x2d2d97;},'XulWm':function(_0x4946d5,_0x35cc2d){return _0x4946d5===_0x35cc2d;},'aiYhw':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','NZydn':function(_0x2bf184,_0x144dcb){return _0x2bf184&&_0x144dcb;},'enZbK':function(_0x51d62a,_0x3d3b2b){return _0x51d62a+_0x3d3b2b;},'HvXpt':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','hITKn':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','EDfOP':_0x31014e(0x16d),'KzAuO':'cloud','XBUBJ':_0x31014e(0x18d),'kbsVc':'local','cjfmj':function(_0x345e93,_0x40e721){return _0x345e93===_0x40e721;},'topSz':function(_0x176283,_0xb0fe85,_0x12556d){return _0x176283(_0xb0fe85,_0x12556d);},'BIXHd':function(_0x37c992,_0x31a7bb){return _0x37c992(_0x31a7bb);},'vwgEy':function(_0x421688,_0x332ad1){return _0x421688(_0x332ad1);},'sBOwq':function(_0x5a5839,_0x4cd418){return _0x5a5839(_0x4cd418);},'YBILP':function(_0x139de6,_0x272ab3){return _0x139de6&&_0x272ab3;}},_0x251626=_0x29fb0b['profile'];let _0x5d261e=_0x251626,_0x3b4b4a=null;const _0x352e7a=_0x251626?null:await _0x305ce4[_0x31014e(0x17f)](readActiveProfileName);if(_0x29fb0b['authEnv']&&_0x251626)console['log'](_0x31014e(0x186)+_0x29fb0b['authEnv']+_0x31014e(0x17b)+_0x251626+_0x31014e(0x177));else _0x29fb0b[_0x31014e(0x1ac)]&&!process[_0x31014e(0x1a4)][_0x31014e(0x18c)]&&console[_0x31014e(0x199)](_0x31014e(0x186)+_0x29fb0b[_0x31014e(0x1ac)]+'\x22\x20only\x20affects\x20ad-hoc\x20profile\x20resolution;\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20use\x20it.');if(!_0x251626&&process[_0x31014e(0x1a4)]['RANGER_TEST_USERNAME'])try{const _0x2a3250=await _0x305ce4[_0x31014e(0x1a5)](resolveAdHocProfile,{'targetUrl':_0x29fb0b['baseUrl']??_0x305ce4[_0x31014e(0x173)](readUrlEnvVars)['envBaseUrl'],'envKey':_0x29fb0b[_0x31014e(0x1ac)]});_0x2a3250&&(_0x352e7a&&_0x352e7a!==_0x2a3250[_0x31014e(0x196)]&&console[_0x31014e(0x199)](_0x31014e(0x167)+_0x2a3250['name']+'\x22\x20instead\x20of\x20the\x20saved\x20active\x20profile\x20\x22'+_0x352e7a+'\x22.\x20Pass\x20--profile\x20'+_0x352e7a+'\x20to\x20override.'),_0x5d261e=_0x2a3250['name'],_0x3b4b4a=_0x2a3250[_0x31014e(0x180)]);}catch(_0x290b27){if(!_0x352e7a||_0x29fb0b['authEnv'])throw _0x290b27;console['log'](_0x31014e(0x17c)+(_0x290b27 instanceof Error?_0x290b27[_0x31014e(0x195)]:String(_0x290b27))),console[_0x31014e(0x199)](_0x31014e(0x169)+_0x352e7a+'\x22.');}if(!_0x5d261e)_0x5d261e=_0x305ce4[_0x31014e(0x1a2)](_0x352e7a,undefined);if(!_0x5d261e)try{const _0x202c8e=await _0x305ce4['cYlSI'](listCloudProfiles);if(_0x305ce4['XulWm'](_0x202c8e['length'],0x1)){const _0x3360e2=_0x202c8e[0x0];_0x5d261e=_0x3360e2['name'],console['log'](_0x31014e(0x18b)+_0x3360e2[_0x31014e(0x196)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x5d261e)throw new Error(_0x31014e(0x1a1)+_0x305ce4[_0x31014e(0x175)]+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x31014e(0x19c));const _0x5102d1=getEnvDir(_0x5d261e),_0x3b5cc6=existsSync(_0x5102d1);let _0x34a6f7=_0x3b4b4a,_0x2a0e70=![];if(!_0x34a6f7)try{_0x34a6f7=await _0x305ce4[_0x31014e(0x1a5)](fetchCloudProfile,_0x5d261e);if(!_0x34a6f7)_0x2a0e70=!![];}catch(_0x110896){_0x110896 instanceof ApiError&&_0x305ce4['XulWm'](_0x110896['status'],0x194)&&(_0x2a0e70=!![]);}if(_0x305ce4[_0x31014e(0x1a9)](_0x251626,_0x2a0e70)&&!_0x3b5cc6&&!_0x34a6f7)throw new Error(_0x305ce4['enZbK'](_0x31014e(0x19d)+_0x251626+_0x31014e(0x17a)+_0x305ce4[_0x31014e(0x19f)],_0x305ce4[_0x31014e(0x198)]));if(_0x34a6f7&&_0x3b5cc6){let _0x6b2f24=!![];if(isInteractive()){const {source:_0x162b40}=await _0x231e7f['prompt']([{'type':_0x31014e(0x18a),'name':_0x31014e(0x1a6),'message':'Profile\x20\x22'+_0x5d261e+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x305ce4['EDfOP'],'value':_0x305ce4[_0x31014e(0x1a8)]},{'name':_0x305ce4[_0x31014e(0x192)],'value':_0x305ce4[_0x31014e(0x171)]}],'default':'cloud'}]);_0x6b2f24=_0x305ce4[_0x31014e(0x182)](_0x162b40,'cloud');}if(!_0x6b2f24)_0x34a6f7=null;}const _0x3931e9=_0x305ce4[_0x31014e(0x179)](readProfileOverrides,process[_0x31014e(0x176)](),_0x5d261e);let _0x212aae=null,_0xbf1340,_0x14adf6,_0x37b99e,_0x167610,_0x581a42=null,_0x319de3,_0x19f5d9;const _0x49800c=expandOverrides(_0x3931e9),_0x13c8a1=readUrlEnvVars();if(_0x34a6f7){_0x212aae=_0x34a6f7;const _0x3a3158=_0x34a6f7['settings']??{},_0x39d8c4=mergeCloudProfileSettings(_0x3a3158,_0x3931e9??undefined),_0x52cf90={..._0x34a6f7,'settings':_0x39d8c4};_0x581a42={'baseUrl':expandString(_0x3a3158[_0x31014e(0x1aa)]),'startPath':expandString(_0x3a3158[_0x31014e(0x170)])};const _0x532f69=await fetchAuthConfig(),_0x2e3ea1=_0x532f69?resolveAuthEnvironmentLocally(_0x532f69,_0x34a6f7['environmentKey']):null;_0x319de3=_0x2e3ea1?.[_0x31014e(0x181)]?.[0x0],_0x19f5d9=_0x2e3ea1?.['key'];const _0x7a5826=resolveProfileUrl({'flagBaseUrl':_0x29fb0b['baseUrl'],'flagStartPath':_0x29fb0b['startPath'],'envBaseUrl':_0x13c8a1['envBaseUrl'],'envStartPath':_0x13c8a1[_0x31014e(0x18f)],'projectOverrides':_0x49800c,'cloudSettings':_0x581a42,'authEnvironmentDomain':_0x319de3}),_0x965da6=process[_0x31014e(0x1a4)][_0x31014e(0x188)];if(_0x965da6){if(!_0x305ce4['BIXHd'](existsSync,_0x965da6))throw new Error(_0x31014e(0x172)+_0x965da6+'\x20does\x20not\x20exist.');_0xbf1340=_0x965da6,_0x14adf6=_0x305ce4['BIXHd'](resolveEnvVars,_0x39d8c4),_0x37b99e=_0x305ce4['aWZbQ'](Boolean,_0x14adf6[_0x31014e(0x174)]);}else{const _0x4ac3f4=await resolveCloudProfileSession(_0x52cf90,{'effectiveBaseUrl':_0x7a5826['baseUrl'],'telemetry':_0x29fb0b[_0x31014e(0x16a)],'assertedEnv':_0x29fb0b['authEnv']});_0xbf1340=_0x4ac3f4['authPath'],_0x14adf6=_0x305ce4['BIXHd'](resolveEnvVars,_0x4ac3f4[_0x31014e(0x17e)]),_0x37b99e=Boolean(_0x14adf6[_0x31014e(0x174)]),_0x319de3=_0x4ac3f4[_0x31014e(0x18e)]?.['domains']?.[0x0],_0x19f5d9=_0x4ac3f4['resolvedEnv']?.[_0x31014e(0x197)];}}else{if(!_0x3b5cc6){const _0x31d062=!_0x251626;throw new Error(_0x31d062?_0x305ce4[_0x31014e(0x184)](_0x305ce4[_0x31014e(0x184)](_0x31014e(0x19e)+_0x5d261e+'\x22\x20no\x20longer\x20exists\x20(or\x20could\x20not\x20be\x20fetched).\x20Options:\x0a'+_0x31014e(0x166),'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one\x20ad\x20hoc,\x20or\x0a'),_0x31014e(0x168)+_0x5d261e+'`\x20to\x20recreate\x20it.'):'Profile\x20\x22'+_0x5d261e+_0x31014e(0x194)+_0x5d261e);}const _0x20dc1a=await loadSettings(_0x5d261e);_0x14adf6=_0x305ce4['vwgEy'](resolveEnvVars,_0x20dc1a),_0x37b99e=_0x305ce4['sBOwq'](Boolean,_0x14adf6[_0x31014e(0x174)]),_0x167610=_0x14adf6['baseUrl'];}const _0x1e4c01=resolveProfileUrl({'flagBaseUrl':_0x29fb0b[_0x31014e(0x1aa)],'flagStartPath':_0x29fb0b['startPath'],'envBaseUrl':_0x13c8a1[_0x31014e(0x17d)],'envStartPath':_0x13c8a1[_0x31014e(0x18f)],'localSettingsBaseUrl':_0x167610,'projectOverrides':_0x49800c,'cloudSettings':_0x581a42,'authEnvironmentDomain':_0x319de3}),_0x2cfd07=_0x1e4c01['url']??_0x1e4c01[_0x31014e(0x1aa)];if(_0x305ce4['YBILP'](!_0x2cfd07,!_0x37b99e))throw new Error(_0x31014e(0x16f)+_0x5d261e+_0x31014e(0x16b)+_0x5d261e+'\x20baseUrl\x20<url>');return{'activeProfile':_0x5d261e,'resolvedCloudProfile':_0x212aae,'cloudAuthPath':_0xbf1340,'resolvedSettings':_0x14adf6,'isCdpMode':_0x37b99e,'url':_0x2cfd07,'baseUrlSource':_0x1e4c01[_0x31014e(0x187)],'authEnvKey':_0x19f5d9,'startPath':_0x1e4c01[_0x31014e(0x170)]};}function expandString(_0x1304eb){if(typeof _0x1304eb!=='string')return _0x1304eb;return resolveEnvVars(_0x1304eb);}function expandOverrides(_0x558e52){const _0x23080d=_0x4ff9,_0x577a3b={'AfAPR':_0x23080d(0x178),'XrVDz':function(_0xdacee8,_0x1fdda1){return _0xdacee8(_0x1fdda1);}};if(!_0x558e52)return _0x558e52;const _0x342c3b={..._0x558e52};return typeof _0x342c3b['baseUrl']===_0x23080d(0x178)&&(_0x342c3b['baseUrl']=resolveEnvVars(_0x342c3b['baseUrl'])),typeof _0x342c3b['startPath']===_0x577a3b[_0x23080d(0x1a7)]&&(_0x342c3b['startPath']=_0x577a3b[_0x23080d(0x19b)](resolveEnvVars,_0x342c3b['startPath'])),_0x342c3b;}
@@ -1 +1 @@
1
- (function(_0x538b38,_0xa584b7){const _0x4b1c75=_0x54d3,_0x3c8e63=_0x538b38();while(!![]){try{const _0x5a6642=parseInt(_0x4b1c75(0x168))/0x1*(-parseInt(_0x4b1c75(0x175))/0x2)+-parseInt(_0x4b1c75(0x17d))/0x3+-parseInt(_0x4b1c75(0x171))/0x4*(parseInt(_0x4b1c75(0x167))/0x5)+parseInt(_0x4b1c75(0x16c))/0x6*(parseInt(_0x4b1c75(0x177))/0x7)+-parseInt(_0x4b1c75(0x16f))/0x8+parseInt(_0x4b1c75(0x179))/0x9+parseInt(_0x4b1c75(0x16d))/0xa;if(_0x5a6642===_0xa584b7)break;else _0x3c8e63['push'](_0x3c8e63['shift']());}catch(_0x456f8e){_0x3c8e63['push'](_0x3c8e63['shift']());}}}(_0x1797,0x841ab));function _0x1797(){const _0x56f14f=['flagBaseUrl','140852ZahYjG','SbDss','auth\x20environment\x20domain','BKQwl','1104510TNofvZ','authEnvironmentDomain','4415369fdSFYf','projects.json\x20override','84807PLHxha','startsWith','OEzZJ','baseUrl','2027217ZvqCoS','FZVWY','cloudSettings','wpCKO','--base-url','MbPvq','flagStartPath','cloud\x20profile\x20settings','localSettingsBaseUrl','projectOverrides','5jHyagr','1ubMQIy','endsWith','tVIJA','ceSCU','6wBVxEQ','11747270wujgMk','envBaseUrl','84888aqvHGb'];_0x1797=function(){return _0x56f14f;};return _0x1797();}function _0x54d3(_0x50dee0,_0x346254){_0x50dee0=_0x50dee0-0x15f;const _0x179782=_0x1797();let _0x54d3d3=_0x179782[_0x50dee0];return _0x54d3d3;}function firstDefined(..._0x649eef){const _0x19d428=_0x54d3,_0x58ebac={'FZVWY':function(_0xf7c746,_0x287541){return _0xf7c746!==_0x287541;}};for(const _0x2ab596 of _0x649eef){if(_0x58ebac[_0x19d428(0x17e)](_0x2ab596,undefined)&&_0x58ebac[_0x19d428(0x17e)](_0x2ab596,null)&&_0x58ebac[_0x19d428(0x17e)](_0x2ab596,''))return _0x2ab596;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2de9e9){if(!_0x2de9e9)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x2de9e9))return _0x2de9e9;return'https://'+_0x2de9e9;}export function resolveBaseUrlWithSource(_0x3211de){const _0x1533e2=_0x54d3,_0x627a89={'IuEgb':function(_0x55c07f,_0x471697){return _0x55c07f in _0x471697;},'MbPvq':_0x1533e2(0x17c),'ceSCU':function(_0x13c7cd,_0x2288d4){return _0x13c7cd===_0x2288d4;},'wpCKO':_0x1533e2(0x178),'tVIJA':_0x1533e2(0x173),'GJlar':function(_0xb09954,_0x107558){return _0xb09954!==_0x107558;},'BKQwl':function(_0x2c7e10,_0x2e2a04){return _0x2c7e10!==_0x2e2a04;}},_0x3e65cc=_0x3211de[_0x1533e2(0x166)],_0x5eb833=!!_0x3e65cc&&_0x627a89['IuEgb'](_0x627a89[_0x1533e2(0x162)],_0x3e65cc),_0x4d6c69=_0x3e65cc?.[_0x1533e2(0x17c)],_0x51aa7a=!(_0x5eb833&&_0x627a89[_0x1533e2(0x16b)](_0x4d6c69,null)),_0x1c2d78=[[_0x3211de[_0x1533e2(0x170)],_0x1533e2(0x161)],[_0x3211de[_0x1533e2(0x16e)],'RANGER_BASE_URL'],[_0x3211de[_0x1533e2(0x165)],'local\x20profile\x20settings'],[_0x627a89['ceSCU'](typeof _0x4d6c69,'string')?_0x4d6c69:undefined,_0x627a89[_0x1533e2(0x160)]],[_0x51aa7a?_0x3211de[_0x1533e2(0x15f)]?.[_0x1533e2(0x17c)]:undefined,_0x1533e2(0x164)],[_0x51aa7a?normalizeAuthEnvironmentDomain(_0x3211de[_0x1533e2(0x176)]):undefined,_0x627a89[_0x1533e2(0x16a)]]];for(const [_0x5a45ae,_0x427c28]of _0x1c2d78){if(_0x627a89['GJlar'](_0x5a45ae,undefined)&&_0x5a45ae!==null&&_0x627a89[_0x1533e2(0x174)](_0x5a45ae,''))return{'baseUrl':_0x5a45ae,'source':_0x427c28};}return{};}export function resolveBaseUrl(_0x18103c){const _0x43725f=_0x54d3;return resolveBaseUrlWithSource(_0x18103c)[_0x43725f(0x17c)];}export function resolveStartPath(_0x3d9096){const _0x5b2935=_0x54d3,_0x2f5276={'SbDss':'startPath','OEzZJ':function(_0x1fbf56,_0xef2f7c,_0x149d58,_0x7e6a81,_0x2ed656){return _0x1fbf56(_0xef2f7c,_0x149d58,_0x7e6a81,_0x2ed656);}},_0x419b34=_0x3d9096['projectOverrides'],_0x48ec11=!!_0x419b34&&_0x2f5276[_0x5b2935(0x172)]in _0x419b34,_0x71388c=_0x419b34?.['startPath'],_0x156c64=!(_0x48ec11&&_0x71388c===null);return _0x2f5276[_0x5b2935(0x17b)](firstDefined,_0x3d9096[_0x5b2935(0x163)],_0x3d9096['envStartPath'],typeof _0x71388c==='string'?_0x71388c:undefined,_0x156c64?_0x3d9096[_0x5b2935(0x15f)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x5acf0c,_0x1c4431){const _0x19bd56=_0x54d3,_0x5b23d0={'MWGlL':function(_0x3080ab,_0x25662f){return _0x3080ab+_0x25662f;}};if(!_0x5acf0c)return undefined;if(!_0x1c4431)return _0x5acf0c;const _0x124a7c=_0x5acf0c[_0x19bd56(0x169)]('/')?_0x5acf0c['slice'](0x0,-0x1):_0x5acf0c,_0x4dd58f=_0x1c4431[_0x19bd56(0x17a)]('/')?_0x1c4431:_0x5b23d0['MWGlL']('/',_0x1c4431);return _0x124a7c+_0x4dd58f;}export function resolveProfileUrl(_0x4685d0){const _0x7e7ca0={'PZfTW':function(_0x50d137,_0x2b2035){return _0x50d137(_0x2b2035);},'kHOoz':function(_0x17f3ed,_0x2bbe11,_0x146213){return _0x17f3ed(_0x2bbe11,_0x146213);}},{baseUrl:_0x124b98,source:_0x42d7b4}=resolveBaseUrlWithSource(_0x4685d0),_0x218c26=_0x7e7ca0['PZfTW'](resolveStartPath,_0x4685d0);return{'baseUrl':_0x124b98,'baseUrlSource':_0x42d7b4,'startPath':_0x218c26,'url':_0x7e7ca0['kHOoz'](joinBaseAndPath,_0x124b98,_0x218c26)};}export function readUrlEnvVars(_0x251e13=process['env']){return{'envBaseUrl':_0x251e13['RANGER_BASE_URL'],'envStartPath':_0x251e13['RANGER_START_PATH']};}
1
+ (function(_0x55fc14,_0x138b95){const _0x6f1dda=_0x56b1,_0xa76697=_0x55fc14();while(!![]){try{const _0x49011f=parseInt(_0x6f1dda(0x8a))/0x1*(-parseInt(_0x6f1dda(0x88))/0x2)+parseInt(_0x6f1dda(0x7d))/0x3+parseInt(_0x6f1dda(0x82))/0x4+-parseInt(_0x6f1dda(0x80))/0x5*(-parseInt(_0x6f1dda(0x89))/0x6)+parseInt(_0x6f1dda(0x73))/0x7*(-parseInt(_0x6f1dda(0x8b))/0x8)+parseInt(_0x6f1dda(0x86))/0x9+-parseInt(_0x6f1dda(0x81))/0xa;if(_0x49011f===_0x138b95)break;else _0xa76697['push'](_0xa76697['shift']());}catch(_0x2d9b82){_0xa76697['push'](_0xa76697['shift']());}}}(_0x1996,0x58406));function firstDefined(..._0x2e5649){for(const _0x3438ea of _0x2e5649){if(_0x3438ea!==undefined&&_0x3438ea!==null&&_0x3438ea!=='')return _0x3438ea;}return undefined;}function normalizeAuthEnvironmentDomain(_0x1187b7){if(!_0x1187b7)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x1187b7))return _0x1187b7;return'https://'+_0x1187b7;}export function resolveBaseUrlWithSource(_0x1616d3){const _0x26cd54=_0x56b1,_0x2c0870={'oVnxv':function(_0x240f6d,_0x3899cc){return _0x240f6d in _0x3899cc;},'sIFnH':_0x26cd54(0x75),'ZTZdq':_0x26cd54(0x76),'ieGor':function(_0x1c0194,_0x1eb281){return _0x1c0194===_0x1eb281;},'SnrDf':_0x26cd54(0x72),'IAaPM':function(_0x5be839,_0x53a760){return _0x5be839!==_0x53a760;},'yqjRj':function(_0x2d3f11,_0x467eb8){return _0x2d3f11!==_0x467eb8;}},_0x3a6cd1=_0x1616d3[_0x26cd54(0x74)],_0x13e55a=!!_0x3a6cd1&&_0x2c0870[_0x26cd54(0x8d)]('baseUrl',_0x3a6cd1),_0x1937ac=_0x3a6cd1?.[_0x26cd54(0x7f)],_0x567761=!(_0x13e55a&&_0x1937ac===null),_0x3cf04f=[[_0x1616d3['flagBaseUrl'],_0x2c0870['sIFnH']],[_0x1616d3[_0x26cd54(0x78)],_0x2c0870['ZTZdq']],[_0x1616d3['localSettingsBaseUrl'],_0x26cd54(0x87)],[_0x2c0870['ieGor'](typeof _0x1937ac,'string')?_0x1937ac:undefined,'projects.json\x20override'],[_0x567761?_0x1616d3['cloudSettings']?.[_0x26cd54(0x7f)]:undefined,_0x2c0870[_0x26cd54(0x7c)]],[_0x567761?normalizeAuthEnvironmentDomain(_0x1616d3['authEnvironmentDomain']):undefined,'auth\x20environment\x20domain']];for(const [_0x4840ca,_0x3a18a2]of _0x3cf04f){if(_0x2c0870['IAaPM'](_0x4840ca,undefined)&&_0x4840ca!==null&&_0x2c0870[_0x26cd54(0x8c)](_0x4840ca,''))return{'baseUrl':_0x4840ca,'source':_0x3a18a2};}return{};}function _0x56b1(_0x51d719,_0x5170e3){_0x51d719=_0x51d719-0x71;const _0x199618=_0x1996();let _0x56b1df=_0x199618[_0x51d719];return _0x56b1df;}function _0x1996(){const _0x3b002b=['VCYhh','iKXRI','startsWith','SnrDf','2138703BabHvw','startPath','baseUrl','45FQdywS','6885660cGzRgA','773904WqtBeh','RANGER_START_PATH','string','rRjkF','3583575VnsuMt','local\x20profile\x20settings','19842RgZNCq','201672qkASGa','23EYsutV','2630664sHcgwC','yqjRj','oVnxv','flagStartPath','cloud\x20profile\x20settings','7xFnxGL','projectOverrides','--base-url','RANGER_BASE_URL','cloudSettings','envBaseUrl'];_0x1996=function(){return _0x3b002b;};return _0x1996();}export function resolveBaseUrl(_0x296aa2){const _0x38526f={'nkpcf':function(_0x100ab4,_0x229c51){return _0x100ab4(_0x229c51);}};return _0x38526f['nkpcf'](resolveBaseUrlWithSource,_0x296aa2)['baseUrl'];}export function resolveStartPath(_0x5800d8){const _0x3f2a65=_0x56b1,_0x238c8b={'fxQoC':function(_0x1c57d7,_0x138963){return _0x1c57d7 in _0x138963;},'EuJsH':_0x3f2a65(0x7e),'iKXRI':function(_0x126102,_0x17505b,_0x2496d4,_0x554411,_0x3964de){return _0x126102(_0x17505b,_0x2496d4,_0x554411,_0x3964de);}},_0xbc3a4f=_0x5800d8['projectOverrides'],_0x3d94e7=!!_0xbc3a4f&&_0x238c8b['fxQoC'](_0x238c8b['EuJsH'],_0xbc3a4f),_0x8bb33f=_0xbc3a4f?.[_0x3f2a65(0x7e)],_0x4bb72c=!(_0x3d94e7&&_0x8bb33f===null);return _0x238c8b[_0x3f2a65(0x7a)](firstDefined,_0x5800d8[_0x3f2a65(0x71)],_0x5800d8['envStartPath'],typeof _0x8bb33f===_0x3f2a65(0x84)?_0x8bb33f:undefined,_0x4bb72c?_0x5800d8[_0x3f2a65(0x77)]?.[_0x3f2a65(0x7e)]:undefined);}export function joinBaseAndPath(_0x339731,_0x155618){const _0x48f73d=_0x56b1,_0x599c41={'rRjkF':function(_0x58f476,_0x3fe993){return _0x58f476+_0x3fe993;}};if(!_0x339731)return undefined;if(!_0x155618)return _0x339731;const _0xeb9338=_0x339731['endsWith']('/')?_0x339731['slice'](0x0,-0x1):_0x339731,_0x285e8a=_0x155618[_0x48f73d(0x7b)]('/')?_0x155618:'/'+_0x155618;return _0x599c41[_0x48f73d(0x85)](_0xeb9338,_0x285e8a);}export function resolveProfileUrl(_0x78de4c){const _0x538e48=_0x56b1,_0x2a1887={'VCYhh':function(_0x52743f,_0x155799){return _0x52743f(_0x155799);}},{baseUrl:_0x2bcbe2,source:_0x575dc9}=_0x2a1887[_0x538e48(0x79)](resolveBaseUrlWithSource,_0x78de4c),_0x27cf39=_0x2a1887['VCYhh'](resolveStartPath,_0x78de4c);return{'baseUrl':_0x2bcbe2,'baseUrlSource':_0x575dc9,'startPath':_0x27cf39,'url':joinBaseAndPath(_0x2bcbe2,_0x27cf39)};}export function readUrlEnvVars(_0xf12ea1=process['env']){const _0x5eb969=_0x56b1;return{'envBaseUrl':_0xf12ea1['RANGER_BASE_URL'],'envStartPath':_0xf12ea1[_0x5eb969(0x83)]};}
@@ -1 +1 @@
1
- (function(_0x153233,_0x1fcc3c){const _0x2c89cf=_0x22e2,_0x59d0b4=_0x153233();while(!![]){try{const _0x5c11eb=parseInt(_0x2c89cf(0x18a))/0x1+parseInt(_0x2c89cf(0x18e))/0x2+-parseInt(_0x2c89cf(0x192))/0x3+-parseInt(_0x2c89cf(0x187))/0x4*(-parseInt(_0x2c89cf(0x18b))/0x5)+parseInt(_0x2c89cf(0x195))/0x6+parseInt(_0x2c89cf(0x18f))/0x7+-parseInt(_0x2c89cf(0x194))/0x8;if(_0x5c11eb===_0x1fcc3c)break;else _0x59d0b4['push'](_0x59d0b4['shift']());}catch(_0x2233f4){_0x59d0b4['push'](_0x59d0b4['shift']());}}}(_0x37e6,0x6922f));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x37e6(){const _0x24de2a=['1950288ilrXwA','SSfSw','1402484PLaGZo','FKnzL','ms...','155504vEObjt','10Sgciqt','baseDelayMs','\x20failed\x20(attempt\x20','563482NSFWEI','2641275cLDOib','KrJpe','pow','921528WuRbAX','label','8824360aQdCNr'];_0x37e6=function(){return _0x24de2a;};return _0x37e6();}function _0x22e2(_0x730e03,_0x32471c){_0x730e03=_0x730e03-0x186;const _0x37e6e3=_0x37e6();let _0x22e24a=_0x37e6e3[_0x730e03];return _0x22e24a;}export async function withRetry(_0x13cd2b,_0x406937){const _0xbee77b=_0x22e2,_0x1ad137={'KrJpe':function(_0x1e200c,_0x27ef76){return _0x1e200c instanceof _0x27ef76;},'SSfSw':function(_0x4c17b1,_0x40c195){return _0x4c17b1(_0x40c195);},'FKnzL':function(_0x371ce8,_0x39eabe){return _0x371ce8+_0x39eabe;}},_0x25a2bf=_0x406937?.['maxRetries']??DEFAULT_MAX_RETRIES,_0xeca81b=_0x406937?.[_0xbee77b(0x18c)]??DEFAULT_BASE_DELAY_MS;let _0x596303;for(let _0x17875a=0x0;_0x17875a<=_0x25a2bf;_0x17875a++){try{return await _0x13cd2b();}catch(_0x38ce35){_0x596303=_0x1ad137[_0xbee77b(0x190)](_0x38ce35,Error)?_0x38ce35:new Error(_0x1ad137[_0xbee77b(0x186)](String,_0x38ce35));if(_0x17875a<_0x25a2bf){const _0x4adfbf=_0xeca81b*Math[_0xbee77b(0x191)](0x2,_0x17875a);_0x406937?.[_0xbee77b(0x193)]&&console['error'](_0x406937[_0xbee77b(0x193)]+_0xbee77b(0x18d)+_0x1ad137[_0xbee77b(0x188)](_0x17875a,0x1)+'/'+(_0x25a2bf+0x1)+'),\x20retrying\x20in\x20'+_0x4adfbf+_0xbee77b(0x189)),await new Promise(_0x8ab750=>setTimeout(_0x8ab750,_0x4adfbf));}}}throw _0x596303;}
1
+ function _0x41a2(_0x119306,_0x1e214c){_0x119306=_0x119306-0x1c0;const _0xb0dffb=_0xb0df();let _0x41a22f=_0xb0dffb[_0x119306];return _0x41a22f;}(function(_0x558ec2,_0x101c07){const _0x4c164c=_0x41a2,_0x57ddc6=_0x558ec2();while(!![]){try{const _0x25add6=parseInt(_0x4c164c(0x1d2))/0x1*(parseInt(_0x4c164c(0x1c2))/0x2)+-parseInt(_0x4c164c(0x1cd))/0x3*(-parseInt(_0x4c164c(0x1c5))/0x4)+parseInt(_0x4c164c(0x1c8))/0x5+-parseInt(_0x4c164c(0x1c9))/0x6+-parseInt(_0x4c164c(0x1d1))/0x7*(-parseInt(_0x4c164c(0x1ca))/0x8)+-parseInt(_0x4c164c(0x1cc))/0x9+parseInt(_0x4c164c(0x1c3))/0xa;if(_0x25add6===_0x101c07)break;else _0x57ddc6['push'](_0x57ddc6['shift']());}catch(_0x52783e){_0x57ddc6['push'](_0x57ddc6['shift']());}}}(_0xb0df,0x6d081));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1ec9a8,_0x160d5e){const _0x5172dd=_0x41a2,_0x5e161e={'RYsFc':function(_0x5b67f9,_0x5d1e39){return _0x5b67f9(_0x5d1e39);},'ogUvT':function(_0x4e5aeb,_0x5078c8){return _0x4e5aeb<_0x5078c8;},'KyADV':function(_0xaa21f7,_0x14f245){return _0xaa21f7*_0x14f245;},'thBsb':function(_0x3662d0,_0x46137e){return _0x3662d0+_0x46137e;}},_0x590eda=_0x160d5e?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x5ce140=_0x160d5e?.[_0x5172dd(0x1cb)]??DEFAULT_BASE_DELAY_MS;let _0x47edc6;for(let _0x4d338c=0x0;_0x4d338c<=_0x590eda;_0x4d338c++){try{return await _0x1ec9a8();}catch(_0x55534b){_0x47edc6=_0x55534b instanceof Error?_0x55534b:new Error(_0x5e161e[_0x5172dd(0x1c1)](String,_0x55534b));if(_0x5e161e[_0x5172dd(0x1c0)](_0x4d338c,_0x590eda)){const _0x361728=_0x5e161e[_0x5172dd(0x1c4)](_0x5ce140,Math['pow'](0x2,_0x4d338c));_0x160d5e?.['label']&&console['error'](_0x160d5e[_0x5172dd(0x1c7)]+_0x5172dd(0x1c6)+(_0x4d338c+0x1)+'/'+_0x5e161e[_0x5172dd(0x1d0)](_0x590eda,0x1)+_0x5172dd(0x1cf)+_0x361728+_0x5172dd(0x1ce)),await new Promise(_0x58782d=>setTimeout(_0x58782d,_0x361728));}}}throw _0x47edc6;}function _0xb0df(){const _0x5a85d7=['RYsFc','2IYILMZ','2439810jEclVE','KyADV','284vxpQAH','\x20failed\x20(attempt\x20','label','1457290UwopLc','3728520YbxUqd','16gptVPD','baseDelayMs','6190632UBwCHe','1599vcrpjP','ms...','),\x20retrying\x20in\x20','thBsb','2509087WWIkUp','465697rbEgzI','ogUvT'];_0xb0df=function(){return _0x5a85d7;};return _0xb0df();}
@@ -1 +1 @@
1
- (function(_0x32c6dc,_0x139f07){const _0x19fdc1=_0x2a97,_0x2047fb=_0x32c6dc();while(!![]){try{const _0x17a02c=parseInt(_0x19fdc1(0x88))/0x1+-parseInt(_0x19fdc1(0x8b))/0x2+parseInt(_0x19fdc1(0x8c))/0x3+parseInt(_0x19fdc1(0x87))/0x4*(parseInt(_0x19fdc1(0x8d))/0x5)+-parseInt(_0x19fdc1(0x8e))/0x6*(-parseInt(_0x19fdc1(0x8f))/0x7)+parseInt(_0x19fdc1(0x91))/0x8*(parseInt(_0x19fdc1(0x92))/0x9)+parseInt(_0x19fdc1(0x8a))/0xa*(-parseInt(_0x19fdc1(0x90))/0xb);if(_0x17a02c===_0x139f07)break;else _0x2047fb['push'](_0x2047fb['shift']());}catch(_0x40c6a8){_0x2047fb['push'](_0x2047fb['shift']());}}}(_0x4ef0,0xc0a1a));const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;function _0x2a97(_0x4bddc3,_0x80dfa6){_0x4bddc3=_0x4bddc3-0x87;const _0x4ef082=_0x4ef0();let _0x2a9713=_0x4ef082[_0x4bddc3];return _0x2a9713;}export function extractUrlOrigins(_0x2e8561){const _0x455a93=_0x2a97,_0x15cc87=new Set();for(const _0x1d3592 of _0x2e8561['matchAll'](ABSOLUTE_URL_PATTERN)){const _0x21eb0e=_0x1d3592[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x15cc87['add'](new URL(_0x21eb0e)[_0x455a93(0x89)]);}catch{}}return[..._0x15cc87];}export function findScenarioOriginMismatches(_0x19c254,_0x3e4ec3){const _0x5ae48a=_0x2a97,_0x5cac7c={'eaLhp':function(_0x1ca737,_0x556edb){return _0x1ca737(_0x556edb);}};let _0x54d723;try{_0x54d723=new URL(_0x3e4ec3)[_0x5ae48a(0x89)];}catch{return[];}return _0x5cac7c['eaLhp'](extractUrlOrigins,_0x19c254)['filter'](_0x3ef3df=>_0x3ef3df!==_0x54d723);}function _0x4ef0(){const _0x259af3=['154IDmlOQ','6282232DDIhAO','9gevBAa','4137124bsvjhK','512213OYDigz','origin','2940560UmTEWi','111374YpfnGW','3559449bwmTpl','5IJZlZj','787218xtFpZU','77jxRZNz'];_0x4ef0=function(){return _0x259af3;};return _0x4ef0();}
1
+ (function(_0x5c9af3,_0x4fa4fa){const _0x661f69=_0x564f,_0x5156b9=_0x5c9af3();while(!![]){try{const _0x2de064=-parseInt(_0x661f69(0x180))/0x1*(parseInt(_0x661f69(0x184))/0x2)+parseInt(_0x661f69(0x187))/0x3*(-parseInt(_0x661f69(0x181))/0x4)+-parseInt(_0x661f69(0x17d))/0x5*(parseInt(_0x661f69(0x17f))/0x6)+-parseInt(_0x661f69(0x188))/0x7+-parseInt(_0x661f69(0x17b))/0x8*(-parseInt(_0x661f69(0x182))/0x9)+parseInt(_0x661f69(0x185))/0xa*(-parseInt(_0x661f69(0x189))/0xb)+parseInt(_0x661f69(0x183))/0xc*(parseInt(_0x661f69(0x186))/0xd);if(_0x2de064===_0x4fa4fa)break;else _0x5156b9['push'](_0x5156b9['shift']());}catch(_0x1526f9){_0x5156b9['push'](_0x5156b9['shift']());}}}(_0x21a7,0x5bcc1));function _0x21a7(){const _0x12ad3f=['filter','78YTEILS','2699JkVEEr','1262488HgpmZb','5250474nWDkvd','2452524MgJfgv','178MCHVjC','210TTntci','52yfkFSz','6HyucXg','701876VCIHQI','15873lOkQxc','matchAll','8haorJV','origin','8795MGILYE'];_0x21a7=function(){return _0x12ad3f;};return _0x21a7();}function _0x564f(_0x52d96c,_0x15e434){_0x52d96c=_0x52d96c-0x17a;const _0x21a7f=_0x21a7();let _0x564f71=_0x21a7f[_0x52d96c];return _0x564f71;}const ABSOLUTE_URL_PATTERN=/https?:\/\/[^\s"'<>()\[\]]+/gi;export function extractUrlOrigins(_0x273f17){const _0x17b692=_0x564f,_0x5d5aa2=new Set();for(const _0x3b0d94 of _0x273f17[_0x17b692(0x17a)](ABSOLUTE_URL_PATTERN)){const _0x9d6f8c=_0x3b0d94[0x0]['replace'](/[.,;:!?]+$/,'');try{_0x5d5aa2['add'](new URL(_0x9d6f8c)['origin']);}catch{}}return[..._0x5d5aa2];}export function findScenarioOriginMismatches(_0x2ca7a2,_0x5ad58e){const _0x262e3a=_0x564f;let _0x2a193c;try{_0x2a193c=new URL(_0x5ad58e)[_0x262e3a(0x17c)];}catch{return[];}return extractUrlOrigins(_0x2ca7a2)[_0x262e3a(0x17e)](_0x4acaf2=>_0x4acaf2!==_0x2a193c);}
@@ -1 +1 @@
1
- const _0x43e164=_0x303e;(function(_0x4ff1a9,_0x3c9400){const _0x8f43c7=_0x303e,_0x28e713=_0x4ff1a9();while(!![]){try{const _0xfb866e=-parseInt(_0x8f43c7(0x173))/0x1*(-parseInt(_0x8f43c7(0x146))/0x2)+-parseInt(_0x8f43c7(0x176))/0x3*(-parseInt(_0x8f43c7(0x164))/0x4)+-parseInt(_0x8f43c7(0x167))/0x5+parseInt(_0x8f43c7(0x15f))/0x6+-parseInt(_0x8f43c7(0x168))/0x7+-parseInt(_0x8f43c7(0x16f))/0x8+parseInt(_0x8f43c7(0x15a))/0x9;if(_0xfb866e===_0x3c9400)break;else _0x28e713['push'](_0x28e713['shift']());}catch(_0x38a58c){_0x28e713['push'](_0x28e713['shift']());}}}(_0x520a,0xea9e0));import*as _0x4fe0ff from'fs';function _0x520a(){const _0x2835ef=['prompted','99729ffouwS','toISOString','8xCLwyJ','iMzIA','writeFileSync','featureId','CyVzC','qugVQ','dShUH','homedir','YveKY','StVdK','lastStopReminderAt','clear','kMXOu','dhVIR','mkdirSync','fdDOT','SEWRp','IxoDT','now','enabled','6515388lxfjHE','master','nObmV','HEAD','TrMZh','5347278ZLAxVJ','HtPtp','lastPlanReminderAt','stringify','existsSync','52ikfegb','main','VsZQy','4998370IebdMQ','1599080IFvfaq','branches','uvUHr','currentBranch','SfKIw','KxlWT','DqTyG','667952yWJeYH','sessions','CSTJG','registeredAt','56324iXoNOh','rPflq'];_0x520a=function(){return _0x2835ef;};return _0x520a();}import*as _0x235dec from'path';import*as _0x2919f0 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x235dec['join'](_0x2919f0[_0x43e164(0x14d)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5541cd=_0x43e164,_0x21a6fd={'SEWRp':'utf-8'};try{if(_0x4fe0ff[_0x5541cd(0x163)](CACHE_FILE)){const _0x5829d1=JSON['parse'](_0x4fe0ff['readFileSync'](CACHE_FILE,_0x21a6fd[_0x5541cd(0x156)]));return{'version':0x3,'sessions':_0x5829d1['sessions']||{},'branches':_0x5829d1['branches']||{},'lastEnabledSessionClearedAt':_0x5829d1['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x2d39df){const _0xb21d4=_0x43e164;try{const _0x3366c1=_0x235dec['dirname'](CACHE_FILE);!_0x4fe0ff[_0xb21d4(0x163)](_0x3366c1)&&_0x4fe0ff[_0xb21d4(0x154)](_0x3366c1,{'recursive':!![]}),_0x4fe0ff[_0xb21d4(0x148)](CACHE_FILE,JSON[_0xb21d4(0x162)](_0x2d39df,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2494e2=_0x43e164,_0x437553={'IxoDT':function(_0x2ac004,_0x556910,_0x1f6060){return _0x2ac004(_0x556910,_0x1f6060);},'SfKIw':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','VsZQy':'utf-8','EPKaq':'pipe'};try{const _0x68e3c=_0x437553[_0x2494e2(0x157)](execSync,_0x437553[_0x2494e2(0x16c)],{'encoding':_0x437553[_0x2494e2(0x166)],'stdio':[_0x437553['EPKaq'],'pipe','pipe']})['trim']();if(!_0x68e3c||_0x68e3c===_0x2494e2(0x15d))return null;return _0x68e3c;}catch{return null;}}export function enableBranch(_0x493c04){const _0x26966b=_0x43e164,_0x74a007={'HtPtp':function(_0xf57c6c){return _0xf57c6c();}},_0x674659=_0x74a007[_0x26966b(0x160)](loadCache);_0x674659['branches'][_0x493c04]=!![],saveCache(_0x674659);}export function disableBranch(_0x541f70){const _0x1b4300=_0x43e164,_0x3d0bba=loadCache();delete _0x3d0bba[_0x1b4300(0x169)][_0x541f70],saveCache(_0x3d0bba);}export function isBranchEnabled(_0x555229){const _0x31a22e=_0x43e164,_0x2d10ef={'TrMZh':function(_0x2cef99){return _0x2cef99();},'HQGae':function(_0x33ea02,_0x5481e8){return _0x33ea02===_0x5481e8;}},_0xb380ae=_0x2d10ef[_0x31a22e(0x15e)](loadCache);return _0x2d10ef['HQGae'](_0xb380ae[_0x31a22e(0x169)][_0x555229],!![]);}function getOrCreateSession(_0x2eb182,_0x352ad8){const _0x5edaa=_0x43e164;return!_0x2eb182[_0x5edaa(0x170)][_0x352ad8]&&(_0x2eb182[_0x5edaa(0x170)][_0x352ad8]={}),_0x2eb182[_0x5edaa(0x170)][_0x352ad8];}export function enableSession(_0x464fdf){const _0x1d4492=_0x43e164,_0x20605c={'CyVzC':function(_0x39a643){return _0x39a643();},'NWnrk':function(_0x58c46d,_0x5e8517){return _0x58c46d!==_0x5e8517;},'ktwXv':'main','zdbqs':_0x1d4492(0x15b)},_0x5af54e=_0x20605c[_0x1d4492(0x14a)](loadCache),_0x3e914f=getOrCreateSession(_0x5af54e,_0x464fdf);_0x3e914f[_0x1d4492(0x159)]=!![];const _0x28c909=_0x20605c[_0x1d4492(0x14a)](getCurrentBranch);_0x28c909&&_0x20605c['NWnrk'](_0x28c909,_0x20605c['ktwXv'])&&_0x28c909!==_0x20605c['zdbqs']&&(_0x5af54e[_0x1d4492(0x169)][_0x28c909]=!![],_0x3e914f[_0x1d4492(0x16b)]=_0x28c909),saveCache(_0x5af54e);}export function isSessionEnabled(_0x2a23aa){const _0x42eda9=_0x43e164,_0x5f3f30={'BzefS':function(_0x41ee0b){return _0x41ee0b();},'StVdK':function(_0x4a8ab2,_0x51fb45){return _0x4a8ab2===_0x51fb45;},'dSmZG':'main','KxlWT':_0x42eda9(0x15b),'YveKY':function(_0x5cc75c,_0x1570d3){return _0x5cc75c||_0x1570d3;}},_0x21ae89=loadCache(),_0x2200b5=_0x5f3f30['BzefS'](getCurrentBranch);if(!_0x2200b5||_0x5f3f30['StVdK'](_0x2200b5,_0x5f3f30['dSmZG'])||_0x2200b5===_0x5f3f30[_0x42eda9(0x16d)])return _0x21ae89[_0x42eda9(0x170)][_0x2a23aa]?.['enabled']===!![];const _0x3b45f4=_0x5f3f30[_0x42eda9(0x14f)](_0x21ae89['branches'][_0x2200b5],!![]),_0x130d59=_0x21ae89[_0x42eda9(0x170)][_0x2a23aa]?.[_0x42eda9(0x159)]===!![];return _0x5f3f30[_0x42eda9(0x14e)](_0x3b45f4,_0x130d59);}export function disableSession(_0x38a2f0){const _0x565ea5={'ALqGE':function(_0x22695a){return _0x22695a();}},_0x29af2e=_0x565ea5['ALqGE'](loadCache),_0x41f968=getOrCreateSession(_0x29af2e,_0x38a2f0);_0x41f968['enabled']=![],saveCache(_0x29af2e);}export function updateBranchTracking(_0x3899cc){const _0x2b6d24=_0x43e164,_0x319402={'uNMyH':function(_0x8b423b){return _0x8b423b();},'Wejdi':function(_0x5cf2b2,_0x3b8a4b){return _0x5cf2b2===_0x3b8a4b;},'HZMuM':'master','dhVIR':function(_0xbeaaba,_0x11669d){return _0xbeaaba(_0x11669d);}},_0x128506=_0x319402['uNMyH'](loadCache),_0x366dae=_0x128506['sessions'][_0x3899cc];if(!_0x366dae?.['enabled'])return;const _0x21b314=getCurrentBranch();if(!_0x21b314||_0x319402['Wejdi'](_0x21b314,_0x2b6d24(0x165))||_0x21b314===_0x319402['HZMuM'])return;_0x366dae[_0x2b6d24(0x16b)]!==_0x21b314&&(_0x128506['branches'][_0x21b314]=!![],_0x366dae['currentBranch']=_0x21b314,_0x319402[_0x2b6d24(0x153)](saveCache,_0x128506));}export function initBranchTracking(_0x3f95b1){const _0x3b76b8=_0x43e164,_0x48de32={'UdpBo':function(_0x747c95){return _0x747c95();},'kMXOu':'main','CSTJG':function(_0x1bf18a,_0x3c5989){return _0x1bf18a===_0x3c5989;},'iMzIA':_0x3b76b8(0x15b),'GHbdo':function(_0x456923,_0x423ce9){return _0x456923(_0x423ce9);}},_0x1a8075=_0x48de32['UdpBo'](loadCache),_0x2b9a8a=getCurrentBranch();if(!_0x2b9a8a||_0x2b9a8a===_0x48de32[_0x3b76b8(0x152)]||_0x48de32[_0x3b76b8(0x171)](_0x2b9a8a,_0x48de32[_0x3b76b8(0x147)]))return;if(_0x1a8075['branches'][_0x2b9a8a]===!![]){const _0x2b1fc7=getOrCreateSession(_0x1a8075,_0x3f95b1);_0x2b1fc7[_0x3b76b8(0x159)]=!![],_0x2b1fc7['currentBranch']=_0x2b9a8a,_0x48de32['GHbdo'](saveCache,_0x1a8075);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5cad6e){const _0x35160b=_0x43e164,_0x29c9f4=loadCache(),_0x315aa1=_0x29c9f4[_0x35160b(0x170)][_0x5cad6e];_0x315aa1?.['enabled']&&(_0x29c9f4['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x29c9f4));}export function shouldAutoEnableAfterClear(_0x4d3af5){const _0x260e4f=_0x43e164,_0x9a7500={'DhHcW':function(_0x3c1297){return _0x3c1297();},'qugVQ':function(_0x270f79,_0x221e8d){return _0x270f79-_0x221e8d;},'nObmV':function(_0x2f6e20,_0x839f8a){return _0x2f6e20<=_0x839f8a;}};if(_0x4d3af5!==_0x260e4f(0x151))return![];const _0x71a379=_0x9a7500['DhHcW'](loadCache),_0x45be31=_0x71a379['lastEnabledSessionClearedAt'];if(!_0x45be31)return![];const _0x32cffc=_0x9a7500[_0x260e4f(0x14b)](Date['now'](),_0x45be31);return _0x9a7500[_0x260e4f(0x15c)](_0x32cffc,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x31315c){const _0x9da7e=_0x43e164,_0x1295b2={'dShUH':function(_0x94cb5e,_0x1e60dc,_0x2ebb58){return _0x94cb5e(_0x1e60dc,_0x2ebb58);},'gwoGP':function(_0x2ab456,_0x1fac22){return _0x2ab456!==_0x1fac22;},'fdDOT':function(_0x8a686d,_0x1cbda4){return _0x8a686d!==_0x1cbda4;}},_0x3bdf56=loadCache(),_0xa01579=_0x1295b2[_0x9da7e(0x14c)](getOrCreateSession,_0x3bdf56,_0x31315c);_0xa01579[_0x9da7e(0x159)]=!![];const _0x47250e=getCurrentBranch();_0x47250e&&_0x1295b2['gwoGP'](_0x47250e,_0x9da7e(0x165))&&_0x1295b2[_0x9da7e(0x155)](_0x47250e,_0x9da7e(0x15b))&&(_0xa01579[_0x9da7e(0x16b)]=_0x47250e),delete _0x3bdf56['lastEnabledSessionClearedAt'],saveCache(_0x3bdf56);}export function registerSession(_0x553026,_0x2bef30){const _0x3180f3=_0x43e164,_0x45d239={'uvUHr':function(_0x23e1bc){return _0x23e1bc();}},_0x5b8c70=_0x45d239[_0x3180f3(0x16a)](loadCache),_0x300ad6=getOrCreateSession(_0x5b8c70,_0x553026);_0x300ad6[_0x3180f3(0x149)]=_0x2bef30,_0x300ad6['registeredAt']=new Date()[_0x3180f3(0x145)](),saveCache(_0x5b8c70);}export function getSessionEntry(_0x36e777){const _0x1d0ffe=_0x43e164,_0x6ec80b=loadCache(),_0x3ed321=_0x6ec80b[_0x1d0ffe(0x170)][_0x36e777];if(_0x3ed321?.['featureId']&&_0x3ed321?.['registeredAt'])return{'featureId':_0x3ed321[_0x1d0ffe(0x149)],'registeredAt':_0x3ed321[_0x1d0ffe(0x172)]};return null;}export function unregisterSession(_0x2fbf49){const _0x2bd1dd=_0x43e164,_0x8a05c0={'DqTyG':function(_0x368a13){return _0x368a13();}},_0x465364=_0x8a05c0[_0x2bd1dd(0x16e)](loadCache),_0xad0993=_0x465364[_0x2bd1dd(0x170)][_0x2fbf49];_0xad0993&&(delete _0xad0993['featureId'],delete _0xad0993[_0x2bd1dd(0x172)],saveCache(_0x465364));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x43b8cc){const _0x290123=_0x43e164,_0x40c9c0={'rPflq':function(_0x334c77,_0xf42efb){return _0x334c77>=_0xf42efb;},'Vbmzn':function(_0x3602bd,_0x1fc08f){return _0x3602bd-_0x1fc08f;}},_0x44aa41=loadCache(),_0x19883f=getOrCreateSession(_0x44aa41,_0x43b8cc),_0x2e419e=_0x19883f['lastPlanReminderAt']||0x0,_0x453e3e=Date['now']();if(_0x40c9c0[_0x290123(0x174)](_0x40c9c0['Vbmzn'](_0x453e3e,_0x2e419e),PLAN_REMINDER_INTERVAL_MS))return _0x19883f[_0x290123(0x161)]=_0x453e3e,saveCache(_0x44aa41),!![];return![];}function _0x303e(_0x257b9f,_0x1a9ce2){_0x257b9f=_0x257b9f-0x145;const _0x520ab7=_0x520a();let _0x303e5f=_0x520ab7[_0x257b9f];return _0x303e5f;}export function shouldShowStopReminder(_0x260bd0){const _0x4fc7bf=_0x43e164,_0x40d218={'WwCMI':function(_0x191ec5,_0x158731){return _0x191ec5>=_0x158731;},'wjRNJ':function(_0x3ab63e,_0xf3532b){return _0x3ab63e-_0xf3532b;}},_0x3b0212=loadCache(),_0x597c47=getOrCreateSession(_0x3b0212,_0x260bd0),_0x48fbd1=_0x597c47[_0x4fc7bf(0x150)]||0x0,_0x328429=Date[_0x4fc7bf(0x158)]();if(_0x40d218['WwCMI'](_0x40d218['wjRNJ'](_0x328429,_0x48fbd1),STOP_REMINDER_INTERVAL_MS))return _0x597c47[_0x4fc7bf(0x150)]=_0x328429,saveCache(_0x3b0212),!![];return![];}export function hasSessionBeenPrompted(_0x3eeec4){const _0xad4b7f=_0x43e164,_0x4fd445=loadCache();return _0x4fd445[_0xad4b7f(0x170)][_0x3eeec4]?.[_0xad4b7f(0x175)]===!![];}export function markSessionPrompted(_0x53bbf2){const _0x4012be=_0x43e164,_0x4afa94={'wXGMU':function(_0x3ceeca,_0x349e60,_0x3954b8){return _0x3ceeca(_0x349e60,_0x3954b8);},'cODSe':function(_0x33318f,_0x4d2cbf){return _0x33318f(_0x4d2cbf);}},_0x233f3d=loadCache(),_0x8f2028=_0x4afa94['wXGMU'](getOrCreateSession,_0x233f3d,_0x53bbf2);_0x8f2028[_0x4012be(0x175)]=!![],_0x4afa94['cODSe'](saveCache,_0x233f3d);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x43f2aa=_0x3280;(function(_0x23cdf6,_0x7f8158){const _0x3a8c30=_0x3280,_0x5f4153=_0x23cdf6();while(!![]){try{const _0x60b082=parseInt(_0x3a8c30(0xc6))/0x1*(-parseInt(_0x3a8c30(0xeb))/0x2)+-parseInt(_0x3a8c30(0xdf))/0x3+-parseInt(_0x3a8c30(0xce))/0x4*(-parseInt(_0x3a8c30(0xca))/0x5)+-parseInt(_0x3a8c30(0xbe))/0x6*(parseInt(_0x3a8c30(0xd7))/0x7)+-parseInt(_0x3a8c30(0xe4))/0x8+-parseInt(_0x3a8c30(0xe9))/0x9*(parseInt(_0x3a8c30(0xea))/0xa)+-parseInt(_0x3a8c30(0xc0))/0xb*(-parseInt(_0x3a8c30(0xe1))/0xc);if(_0x60b082===_0x7f8158)break;else _0x5f4153['push'](_0x5f4153['shift']());}catch(_0x7ae1b5){_0x5f4153['push'](_0x5f4153['shift']());}}}(_0x548e,0x4634a));import*as _0x5844e4 from'fs';import*as _0x4b8d05 from'path';import*as _0x30f5b8 from'os';import{execSync}from'child_process';function _0x3280(_0x1840f5,_0x16b0ec){_0x1840f5=_0x1840f5-0xbb;const _0x548e6b=_0x548e();let _0x328077=_0x548e6b[_0x1840f5];return _0x328077;}const CACHE_FILE=_0x4b8d05[_0x43f2aa(0xd1)](_0x30f5b8['homedir'](),_0x43f2aa(0xd4),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4bdd56=_0x43f2aa,_0x50de99={'sjDbj':_0x4bdd56(0xc4),'fwXbU':function(_0x415941){return _0x415941();}};try{if(_0x5844e4[_0x4bdd56(0xd2)](CACHE_FILE)){const _0x928b32=JSON[_0x4bdd56(0xda)](_0x5844e4['readFileSync'](CACHE_FILE,_0x50de99[_0x4bdd56(0xc2)]));return{'version':0x3,'sessions':_0x928b32['sessions']||{},'branches':_0x928b32[_0x4bdd56(0xd8)]||{},'lastEnabledSessionClearedAt':_0x928b32[_0x4bdd56(0xd0)]};}}catch{}return _0x50de99[_0x4bdd56(0xc1)](createEmptyCache);}function saveCache(_0x1160a3){const _0x20bce2=_0x43f2aa;try{const _0x163d66=_0x4b8d05[_0x20bce2(0xe0)](CACHE_FILE);!_0x5844e4['existsSync'](_0x163d66)&&_0x5844e4[_0x20bce2(0xe3)](_0x163d66,{'recursive':!![]}),_0x5844e4['writeFileSync'](CACHE_FILE,JSON[_0x20bce2(0xdd)](_0x1160a3,null,0x2));}catch{}}export function getCurrentBranch(){const _0xd74cac=_0x43f2aa,_0x22ed71={'uJxRv':function(_0x39d493,_0x5b79b9,_0x2bd135){return _0x39d493(_0x5b79b9,_0x2bd135);},'fBMvP':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','IXQjs':_0xd74cac(0xc3),'EUlAh':function(_0x528ebc,_0x3bea1b){return _0x528ebc===_0x3bea1b;},'Srkln':_0xd74cac(0xc9)};try{const _0x31f37e=_0x22ed71['uJxRv'](execSync,_0x22ed71['fBMvP'],{'encoding':_0xd74cac(0xc4),'stdio':['pipe',_0x22ed71['IXQjs'],'pipe']})[_0xd74cac(0xcb)]();if(!_0x31f37e||_0x22ed71['EUlAh'](_0x31f37e,_0x22ed71[_0xd74cac(0xc8)]))return null;return _0x31f37e;}catch{return null;}}export function enableBranch(_0x1d6481){const _0x529908=_0x43f2aa,_0x45ae96={'RsLYj':function(_0x45db1a,_0x237a49){return _0x45db1a(_0x237a49);}},_0x1c71a0=loadCache();_0x1c71a0[_0x529908(0xd8)][_0x1d6481]=!![],_0x45ae96[_0x529908(0xbd)](saveCache,_0x1c71a0);}function _0x548e(){const _0x6fc7dc=['Nkcre','now','stringify','FqCvM','205596OifEFJ','dirname','15117180ZFONBV','SoOmU','mkdirSync','1468416mFWBQB','enabled','bDGoR','gdXsO','SSptm','737433cmonjD','50jVfKij','31518lcRBmB','wPkAU','LejoJ','uJkPW','sessions','sdNak','Zyuhv','master','IaMwL','CaoFf','RsLYj','2988ascZsC','uXQMB','11ewtGPm','fwXbU','sjDbj','pipe','utf-8','toISOString','18ZYZaRN','Jfwel','Srkln','HEAD','422355KEAXmn','trim','eAEpN','currentBranch','8hoBGFj','hwwna','lastEnabledSessionClearedAt','join','existsSync','lastStopReminderAt','.claude','vIbjQ','lastPlanReminderAt','2751ruGYNU','branches','euCUv','parse'];_0x548e=function(){return _0x6fc7dc;};return _0x548e();}export function disableBranch(_0x7817c7){const _0x352b5c={'OQjgV':function(_0x57ba1d){return _0x57ba1d();}},_0x4409c5=_0x352b5c['OQjgV'](loadCache);delete _0x4409c5['branches'][_0x7817c7],saveCache(_0x4409c5);}export function isBranchEnabled(_0x2293f6){const _0x5bb244=loadCache();return _0x5bb244['branches'][_0x2293f6]===!![];}function getOrCreateSession(_0x42a9b9,_0x59165d){const _0x34a5b8=_0x43f2aa;return!_0x42a9b9[_0x34a5b8(0xef)][_0x59165d]&&(_0x42a9b9[_0x34a5b8(0xef)][_0x59165d]={}),_0x42a9b9[_0x34a5b8(0xef)][_0x59165d];}export function enableSession(_0x597641){const _0x1044e8=_0x43f2aa,_0x159d0a={'fqOoY':function(_0x16e62c,_0x1919be,_0x30b0a0){return _0x16e62c(_0x1919be,_0x30b0a0);},'xnJxz':'main'},_0x1b2bdf=loadCache(),_0x2b5c46=_0x159d0a['fqOoY'](getOrCreateSession,_0x1b2bdf,_0x597641);_0x2b5c46[_0x1044e8(0xe5)]=!![];const _0x234223=getCurrentBranch();_0x234223&&_0x234223!==_0x159d0a['xnJxz']&&_0x234223!=='master'&&(_0x1b2bdf['branches'][_0x234223]=!![],_0x2b5c46[_0x1044e8(0xcd)]=_0x234223),saveCache(_0x1b2bdf);}export function isSessionEnabled(_0x28c6a0){const _0x3942bf=_0x43f2aa,_0x324258={'hwwna':function(_0xd5237d){return _0xd5237d();},'FqCvM':function(_0x5896ac){return _0x5896ac();},'Jfwel':'main','SoOmU':function(_0x486b41,_0x4a3ca9){return _0x486b41===_0x4a3ca9;},'Nkcre':function(_0x3b987e,_0x3c4097){return _0x3b987e||_0x3c4097;}},_0x1eda4b=_0x324258[_0x3942bf(0xcf)](loadCache),_0xfa579a=_0x324258[_0x3942bf(0xde)](getCurrentBranch);if(!_0xfa579a||_0xfa579a===_0x324258[_0x3942bf(0xc7)]||_0x324258['SoOmU'](_0xfa579a,_0x3942bf(0xf2)))return _0x1eda4b[_0x3942bf(0xef)][_0x28c6a0]?.[_0x3942bf(0xe5)]===!![];const _0x24a1f0=_0x324258[_0x3942bf(0xe2)](_0x1eda4b['branches'][_0xfa579a],!![]),_0x5df82f=_0x324258[_0x3942bf(0xe2)](_0x1eda4b['sessions'][_0x28c6a0]?.['enabled'],!![]);return _0x324258[_0x3942bf(0xdb)](_0x24a1f0,_0x5df82f);}export function disableSession(_0x188ce8){const _0x27d3cf={'rYyoV':function(_0x5c5e55,_0x4343d2,_0xa54b67){return _0x5c5e55(_0x4343d2,_0xa54b67);}},_0x54fc6b=loadCache(),_0x2a96b2=_0x27d3cf['rYyoV'](getOrCreateSession,_0x54fc6b,_0x188ce8);_0x2a96b2['enabled']=![],saveCache(_0x54fc6b);}export function updateBranchTracking(_0x1960a5){const _0x2ba144=_0x43f2aa,_0x4ab7b8={'LejoJ':function(_0x5de311,_0x46db3e){return _0x5de311===_0x46db3e;},'euCUv':'master'},_0x411eee=loadCache(),_0x379602=_0x411eee['sessions'][_0x1960a5];if(!_0x379602?.[_0x2ba144(0xe5)])return;const _0x59a1ab=getCurrentBranch();if(!_0x59a1ab||_0x4ab7b8[_0x2ba144(0xed)](_0x59a1ab,'main')||_0x4ab7b8[_0x2ba144(0xed)](_0x59a1ab,_0x4ab7b8[_0x2ba144(0xd9)]))return;_0x379602[_0x2ba144(0xcd)]!==_0x59a1ab&&(_0x411eee[_0x2ba144(0xd8)][_0x59a1ab]=!![],_0x379602[_0x2ba144(0xcd)]=_0x59a1ab,saveCache(_0x411eee));}export function initBranchTracking(_0x5e6883){const _0x5313e5=_0x43f2aa,_0x5c8e8d={'SSptm':function(_0x1f6d8b){return _0x1f6d8b();},'fioMm':function(_0x5dc4e8,_0x2fde2b){return _0x5dc4e8===_0x2fde2b;}},_0xca7c82=loadCache(),_0x361159=_0x5c8e8d[_0x5313e5(0xe8)](getCurrentBranch);if(!_0x361159||_0x5c8e8d['fioMm'](_0x361159,'main')||_0x5c8e8d['fioMm'](_0x361159,'master'))return;if(_0xca7c82[_0x5313e5(0xd8)][_0x361159]===!![]){const _0x2444ac=getOrCreateSession(_0xca7c82,_0x5e6883);_0x2444ac['enabled']=!![],_0x2444ac['currentBranch']=_0x361159,saveCache(_0xca7c82);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1f5de3){const _0x209471=_0x43f2aa,_0x859987={'CaoFf':function(_0x31bbf0){return _0x31bbf0();},'fOrMY':function(_0x20ea30,_0x45b10e){return _0x20ea30(_0x45b10e);}},_0x261b9b=_0x859987[_0x209471(0xbc)](loadCache),_0x232118=_0x261b9b['sessions'][_0x1f5de3];_0x232118?.[_0x209471(0xe5)]&&(_0x261b9b['lastEnabledSessionClearedAt']=Date['now'](),_0x859987['fOrMY'](saveCache,_0x261b9b));}export function shouldAutoEnableAfterClear(_0x2721b5){const _0x351ec9=_0x43f2aa,_0x11c8e3={'vIbjQ':'clear','Mwxrp':function(_0x32d59b,_0x1b089c){return _0x32d59b-_0x1b089c;}};if(_0x2721b5!==_0x11c8e3[_0x351ec9(0xd5)])return![];const _0x2fc4c8=loadCache(),_0x5d4b32=_0x2fc4c8[_0x351ec9(0xd0)];if(!_0x5d4b32)return![];const _0x3607a2=_0x11c8e3['Mwxrp'](Date['now'](),_0x5d4b32);return _0x3607a2<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x10a49a){const _0x34f176=_0x43f2aa,_0x273992={'VgfaZ':function(_0x170508,_0x3dc0b3,_0x141476){return _0x170508(_0x3dc0b3,_0x141476);},'uXQMB':function(_0x59d6ee){return _0x59d6ee();},'eAEpN':function(_0xfe9ca4,_0x49af1f){return _0xfe9ca4(_0x49af1f);}},_0x5b0628=loadCache(),_0x1cd061=_0x273992['VgfaZ'](getOrCreateSession,_0x5b0628,_0x10a49a);_0x1cd061['enabled']=!![];const _0xca54a8=_0x273992[_0x34f176(0xbf)](getCurrentBranch);_0xca54a8&&_0xca54a8!=='main'&&_0xca54a8!=='master'&&(_0x1cd061[_0x34f176(0xcd)]=_0xca54a8),delete _0x5b0628[_0x34f176(0xd0)],_0x273992[_0x34f176(0xcc)](saveCache,_0x5b0628);}export function registerSession(_0x56c649,_0x5886ed){const _0x390982=_0x43f2aa,_0x4c8437={'bDGoR':function(_0x4c5cbc){return _0x4c5cbc();}},_0x516efb=_0x4c8437[_0x390982(0xe6)](loadCache),_0x3d44c2=getOrCreateSession(_0x516efb,_0x56c649);_0x3d44c2['featureId']=_0x5886ed,_0x3d44c2['registeredAt']=new Date()[_0x390982(0xc5)](),saveCache(_0x516efb);}export function getSessionEntry(_0x403e87){const _0x317cba=_0x43f2aa,_0x11b280={'IaMwL':function(_0x2ec8c8){return _0x2ec8c8();}},_0x55ae9d=_0x11b280[_0x317cba(0xbb)](loadCache),_0x5dfcfc=_0x55ae9d['sessions'][_0x403e87];if(_0x5dfcfc?.['featureId']&&_0x5dfcfc?.['registeredAt'])return{'featureId':_0x5dfcfc['featureId'],'registeredAt':_0x5dfcfc['registeredAt']};return null;}export function unregisterSession(_0x33d6b4){const _0x3ddf21={'oypFY':function(_0x38c852,_0x5cae3e){return _0x38c852(_0x5cae3e);}},_0x4effeb=loadCache(),_0x4072b3=_0x4effeb['sessions'][_0x33d6b4];_0x4072b3&&(delete _0x4072b3['featureId'],delete _0x4072b3['registeredAt'],_0x3ddf21['oypFY'](saveCache,_0x4effeb));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3dfd8a){const _0x37cbd2=_0x43f2aa,_0x36a15c={'qiGqf':function(_0x3680b8){return _0x3680b8();},'sdNak':function(_0x13a8df,_0x43f725){return _0x13a8df>=_0x43f725;},'wPkAU':function(_0x3a3223,_0x484ada){return _0x3a3223-_0x484ada;},'vcOpR':function(_0x2d9353,_0x58d24c){return _0x2d9353(_0x58d24c);}},_0x3aa14d=_0x36a15c['qiGqf'](loadCache),_0x5ccb34=getOrCreateSession(_0x3aa14d,_0x3dfd8a),_0x5b8028=_0x5ccb34[_0x37cbd2(0xd6)]||0x0,_0x59c554=Date[_0x37cbd2(0xdc)]();if(_0x36a15c[_0x37cbd2(0xf0)](_0x36a15c[_0x37cbd2(0xec)](_0x59c554,_0x5b8028),PLAN_REMINDER_INTERVAL_MS))return _0x5ccb34[_0x37cbd2(0xd6)]=_0x59c554,_0x36a15c['vcOpR'](saveCache,_0x3aa14d),!![];return![];}export function shouldShowStopReminder(_0x425fe8){const _0x386cc9=_0x43f2aa,_0x25f739={'Zyuhv':function(_0x28f56d,_0x1d455a){return _0x28f56d>=_0x1d455a;},'AyfbO':function(_0x5a4a45,_0x3174d5){return _0x5a4a45(_0x3174d5);}},_0x5e26df=loadCache(),_0x30a7c5=getOrCreateSession(_0x5e26df,_0x425fe8),_0xe3e9c2=_0x30a7c5['lastStopReminderAt']||0x0,_0x1c99ea=Date[_0x386cc9(0xdc)]();if(_0x25f739[_0x386cc9(0xf1)](_0x1c99ea-_0xe3e9c2,STOP_REMINDER_INTERVAL_MS))return _0x30a7c5[_0x386cc9(0xd3)]=_0x1c99ea,_0x25f739['AyfbO'](saveCache,_0x5e26df),!![];return![];}export function hasSessionBeenPrompted(_0x6973db){const _0xe1931=_0x43f2aa,_0x584fa8=loadCache();return _0x584fa8[_0xe1931(0xef)][_0x6973db]?.['prompted']===!![];}export function markSessionPrompted(_0x4385a9){const _0x3b4973=_0x43f2aa,_0x59828b={'gdXsO':function(_0x1ea07c){return _0x1ea07c();},'rKouh':function(_0x5a8e2e,_0x546486,_0x3edf34){return _0x5a8e2e(_0x546486,_0x3edf34);},'uJkPW':function(_0x50a9c4,_0x2da65a){return _0x50a9c4(_0x2da65a);}},_0x482806=_0x59828b[_0x3b4973(0xe7)](loadCache),_0x84c37f=_0x59828b['rKouh'](getOrCreateSession,_0x482806,_0x4385a9);_0x84c37f['prompted']=!![],_0x59828b[_0x3b4973(0xee)](saveCache,_0x482806);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x350f8c=_0x2f80;(function(_0x55556d,_0xd5332){const _0x37a092=_0x2f80,_0x2a48b1=_0x55556d();while(!![]){try{const _0x1a1ea7=-parseInt(_0x37a092(0x199))/0x1+parseInt(_0x37a092(0x1d5))/0x2+-parseInt(_0x37a092(0x1ef))/0x3*(-parseInt(_0x37a092(0x19f))/0x4)+-parseInt(_0x37a092(0x1d9))/0x5+-parseInt(_0x37a092(0x1c4))/0x6+-parseInt(_0x37a092(0x1f5))/0x7*(-parseInt(_0x37a092(0x1b6))/0x8)+parseInt(_0x37a092(0x1ba))/0x9*(-parseInt(_0x37a092(0x1e6))/0xa);if(_0x1a1ea7===_0xd5332)break;else _0x2a48b1['push'](_0x2a48b1['shift']());}catch(_0x1cfa39){_0x2a48b1['push'](_0x2a48b1['shift']());}}}(_0x49fe,0x6c142));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 _0x2f80(_0x32bc04,_0x210b90){_0x32bc04=_0x32bc04-0x182;const _0x49fe67=_0x49fe();let _0x2f8091=_0x49fe67[_0x32bc04];return _0x2f8091;}function findEnvInRoot(_0x520bf1,_0x43cb26){const _0x4a31a0=_0x2f80,_0xfd4a3c={'hofmX':function(_0x25619d,_0x5e08a9,_0x5b1a28,_0x3c45da){return _0x25619d(_0x5e08a9,_0x5b1a28,_0x3c45da);},'xpQwq':function(_0xda294e,_0x1b880f,_0x4b7a86){return _0xda294e(_0x1b880f,_0x4b7a86);},'jfyXJ':_0x4a31a0(0x1b0),'uJJqJ':function(_0xe12b2,_0x2b3012){return _0xe12b2(_0x2b3012);},'BwPIG':function(_0x48ff7f,_0x3e61c0){return _0x48ff7f(_0x3e61c0);}},_0x245abc=join(_0x43cb26,'ci',_0x520bf1),_0x4bd130=_0xfd4a3c['hofmX'](join,_0x43cb26,'local',_0x520bf1),_0x16e0c0=join(_0x43cb26,_0x520bf1),_0xc02627=_0xfd4a3c['xpQwq'](join,_0x43cb26,_0xfd4a3c[_0x4a31a0(0x18e)]),_0xa3767a=join(_0x43cb26,'ci');if(_0xfd4a3c['uJJqJ'](existsSync,_0x245abc))return _0x245abc;if(_0xfd4a3c[_0x4a31a0(0x1ea)](existsSync,_0x4bd130))return _0x4bd130;if(existsSync(_0x16e0c0)&&(_0x16e0c0!==_0xc02627&&_0x16e0c0!==_0xa3767a?!![]:hasLegacyProfileFiles(_0x16e0c0)))return _0x16e0c0;return null;}export function getEnvDir(_0x44288c,_0x3b6741={}){const _0x35b20d=_0x2f80,_0x48f76b={'MsDEY':function(_0xffa0ca,_0x1168e6,_0x4f8db1){return _0xffa0ca(_0x1168e6,_0x4f8db1);},'mgGza':function(_0x5e19ee){return _0x5e19ee();},'gJLSG':function(_0x47059b,_0x1cda7c){return _0x47059b!==_0x1cda7c;}},_0x153285=getRangerDir(),_0x1467b7=_0x48f76b[_0x35b20d(0x20b)](findEnvInRoot,_0x44288c,_0x153285);if(_0x1467b7){if(_0x3b6741['forWrite']&&isLegacyEnvPath(_0x1467b7))throw _0x48f76b['MsDEY'](legacyWriteError,_0x44288c,_0x1467b7);return _0x1467b7;}const _0x1502ff=_0x48f76b['mgGza'](getRangerHomeDir);if(_0x48f76b[_0x35b20d(0x1bf)](_0x1502ff,_0x153285)){const _0xb0edbb=_0x48f76b['MsDEY'](findEnvInRoot,_0x44288c,_0x1502ff);if(_0xb0edbb){if(_0x3b6741[_0x35b20d(0x202)]&&isLegacyEnvPath(_0xb0edbb))throw legacyWriteError(_0x44288c,_0xb0edbb);return _0xb0edbb;}}const _0x17ffac=join(_0x1502ff,'local',_0x44288c);if(_0x3b6741['forWrite'])throw legacyWriteError(_0x44288c,_0x17ffac);return _0x17ffac;}function isLegacyEnvPath(_0x374a72){const _0x1a635a=_0x2f80,_0x11aa2f={'VXLLO':function(_0x148bf4){return _0x148bf4();}},_0x5a00f9=getRangerDir(),_0x4f9d5a=_0x11aa2f['VXLLO'](getRangerHomeDir);for(const _0x36146f of new Set([_0x5a00f9,_0x4f9d5a])){const _0x393221=_0x36146f['endsWith']('/')?_0x36146f:_0x36146f+'/';if(_0x374a72===_0x36146f||_0x374a72[_0x1a635a(0x189)](_0x393221))return!![];}return![];}function legacyWriteError(_0x418738,_0x59770a){const _0x212ad9=_0x2f80,_0x1de295={'WPoqG':function(_0x51fcd0,_0x5f5d85){return _0x51fcd0+_0x5f5d85;},'RfnMp':function(_0x52d914,_0x38e725){return _0x52d914+_0x38e725;}};return new Error(_0x1de295[_0x212ad9(0x1e8)](_0x1de295[_0x212ad9(0x1cb)](_0x1de295['RfnMp']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x418738+'\x22\x20to\x20legacy\x20path\x20'+_0x59770a+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),_0x212ad9(0x1b4)));}export function findExistingEnv(_0x24daf0,_0x5905c5){const _0x2796d0=_0x2f80,_0x1d80c0={'jMboe':function(_0x381e23){return _0x381e23();},'RiEwH':'local','WkCmv':'legacy','nsDNV':function(_0x547671,_0x310b15){return _0x547671(_0x310b15);},'bZWCh':function(_0xdf7e3b,_0x66e673){return _0xdf7e3b===_0x66e673;},'JcNvS':function(_0xd0842e,_0x4a1085){return _0xd0842e(_0x4a1085);}},_0x1224e0=_0x5905c5?.[_0x2796d0(0x1e1)],_0x3873e9=_0x1224e0?[_0x1224e0]:[getRangerDir(),_0x1d80c0['jMboe'](getRangerHomeDir)]['filter']((_0x2d45bd,_0x546fca,_0x70f74c)=>_0x70f74c[_0x2796d0(0x196)](_0x2d45bd)===_0x546fca),_0x52009a=_0x5905c5?.[_0x2796d0(0x1b8)]??['ci','local',_0x2796d0(0x1bb)];for(const _0x322280 of _0x3873e9){const _0x365b1f=join(_0x322280,_0x1d80c0['RiEwH']),_0x19d39f=join(_0x322280,'ci'),_0x7bb8cd=[{'location':'ci','path':join(_0x322280,'ci',_0x24daf0)},{'location':_0x2796d0(0x1b0),'path':join(_0x322280,'local',_0x24daf0)},{'location':_0x1d80c0['WkCmv'],'path':join(_0x322280,_0x24daf0)}];for(const _0x23bad8 of _0x7bb8cd){if(_0x52009a[_0x2796d0(0x1ff)](_0x23bad8[_0x2796d0(0x19a)])&&_0x1d80c0[_0x2796d0(0x1a4)](existsSync,_0x23bad8[_0x2796d0(0x197)])){if(_0x1d80c0[_0x2796d0(0x1dd)](_0x23bad8['location'],_0x1d80c0[_0x2796d0(0x204)])&&(_0x23bad8['path']===_0x365b1f||_0x23bad8[_0x2796d0(0x197)]===_0x19d39f)&&!_0x1d80c0['JcNvS'](hasLegacyProfileFiles,_0x23bad8[_0x2796d0(0x197)]))continue;return{'path':_0x23bad8[_0x2796d0(0x197)],'location':_0x23bad8[_0x2796d0(0x19a)]};}}}return null;}function hasLegacyProfileFiles(_0x4ca009){const _0x213b9c=_0x2f80,_0x7a3c67={'tllfD':function(_0x2208b6,_0x21ad17){return _0x2208b6(_0x21ad17);},'mygQn':function(_0x4d85f8,_0x4d69e8,_0x1e5894){return _0x4d85f8(_0x4d69e8,_0x1e5894);},'MqnCX':'settings.json','LitAO':function(_0x1f02fc,_0x1174dc){return _0x1f02fc(_0x1174dc);},'drSid':_0x213b9c(0x1c2),'XwpmN':function(_0x2b7770,_0x2e24a5){return _0x2b7770(_0x2e24a5);}};return _0x7a3c67['tllfD'](existsSync,_0x7a3c67['mygQn'](join,_0x4ca009,_0x7a3c67['MqnCX']))||_0x7a3c67[_0x213b9c(0x1d8)](existsSync,_0x7a3c67['mygQn'](join,_0x4ca009,_0x7a3c67[_0x213b9c(0x1d3)]))||_0x7a3c67[_0x213b9c(0x1d1)](existsSync,_0x7a3c67['mygQn'](join,_0x4ca009,_0x213b9c(0x1c8)));}export function isEnvCi(_0x3531fc){const _0x5f29f3=_0x2f80,_0x67fa22={'TobjP':function(_0x516dba,_0x4c9f85){return _0x516dba(_0x4c9f85);},'ExjSg':function(_0x23901b,_0x6d5dbd,_0x2ecace,_0x10c559){return _0x23901b(_0x6d5dbd,_0x2ecace,_0x10c559);},'ksyCo':function(_0x1f9f13){return _0x1f9f13();},'sxhzv':function(_0x4ad9bb){return _0x4ad9bb();},'BozCn':function(_0x238d67,_0xcf80bf){return _0x238d67!==_0xcf80bf;},'jEDEf':function(_0x316b28){return _0x316b28();}};if(_0x67fa22[_0x5f29f3(0x1aa)](existsSync,_0x67fa22[_0x5f29f3(0x1dc)](join,_0x67fa22[_0x5f29f3(0x205)](getRangerDir),'ci',_0x3531fc)))return!![];const _0x42759f=_0x67fa22['sxhzv'](getRangerHomeDir);if(_0x67fa22['BozCn'](_0x42759f,_0x67fa22['jEDEf'](getRangerDir))&&existsSync(_0x67fa22[_0x5f29f3(0x1dc)](join,_0x42759f,'ci',_0x3531fc)))return!![];return![];}export async function cleanupTempFiles(_0x906de6){const _0x19cf6b=_0x2f80,_0x161c8b={'tTrdv':function(_0x19f47b,_0x6faee6){return _0x19f47b!==_0x6faee6;},'yRZBT':_0x19cf6b(0x1a3)},_0x5b9382=[_0x906de6[_0x19cf6b(0x188)],_0x906de6[_0x19cf6b(0x1db)]]['filter'](Boolean);await Promise[_0x19cf6b(0x209)](_0x5b9382['map'](_0x5d7a37=>unlink(_0x5d7a37)[_0x19cf6b(0x1b7)](_0x3992c=>{const _0x38930f=_0x19cf6b;_0x161c8b[_0x38930f(0x1a9)](_0x3992c['code'],_0x161c8b[_0x38930f(0x1f6)])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x5d7a37+':',_0x3992c[_0x38930f(0x1be)]);})));}export function getSettingsPath(_0x3f6fe5){const _0x16c023=_0x2f80,_0x1e7a19={'CRtaG':function(_0xf04beb,_0x219e79){return _0xf04beb(_0x219e79);},'TEltg':'settings.json'};return join(_0x1e7a19[_0x16c023(0x1a2)](getEnvDir,_0x3f6fe5),_0x1e7a19['TEltg']);}export async function loadSettings(_0xc59663){const _0x23feba=_0x2f80,_0x416175={'KvFcr':function(_0x542d20,_0x15384e){return _0x542d20(_0x15384e);},'MiFsT':'utf-8'},_0x409fed=getSettingsPath(_0xc59663);if(!_0x416175['KvFcr'](existsSync,_0x409fed))return{};try{const _0xcfaee9=await readFile(_0x409fed,_0x416175[_0x23feba(0x1d2)]);return JSON['parse'](_0xcfaee9);}catch{return{};}}export async function saveSettings(_0x285a52,_0x4568ee){const _0x326495=_0x2f80,_0x229a02={'VOIyn':function(_0x3e95e9,_0x3a7931){return _0x3e95e9(_0x3a7931);},'vuyDK':function(_0x511886,_0x246dd0,_0x2b0c12){return _0x511886(_0x246dd0,_0x2b0c12);}},_0x4e60a2=getSettingsPath(_0x285a52),_0x1c8543=_0x229a02['VOIyn'](dirname,_0x4e60a2);!_0x229a02['VOIyn'](existsSync,_0x1c8543)&&await _0x229a02['vuyDK'](mkdir,_0x1c8543,{'recursive':!![]}),await writeFile(_0x4e60a2,JSON[_0x326495(0x185)](_0x4568ee,null,0x2));}function _0x49fe(){const _0x17a419=['ranger-auth-','1848COhsAg','--allow-running-insecure-content','none','CRtaG','ENOENT','nsDNV','ellII','AAaOj','allowInsecureLocalhost','uSmXx','tTrdv','TobjP','bGRgH','executablePath','NjkgC','xvDqS','env','local','cnclN','clipboard-read','filter','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','RCcjL','368fHAJVQ','catch','locations','NTgJf','9wRvLio','legacy','rZMQx','PDsCz','message','gJLSG','OrtHn','safeMode','auth.json','pCPgg','1056198piEEFo','VLuaI','core','join','auth.json.enc','EuTfP','nwLZA','RfnMp','cdpEndpoint','string','cCPFK','TGFvL','EnkaZ','XwpmN','MiFsT','drSid','isArray','288522KlqdOA','object','userAgent','LitAO','508395WhPZLU','playwright-cli','configPath','ExjSg','bZWCh','urbUF','--allow-insecure-localhost','storageStatePath','rangerDir','ranger-config','--unsafely-treat-insecure-origin-as-secure=http://localhost','suUvr','baseUrl','7912190jBhvmM','zGVvu','WPoqG','ignoreHTTPSErrors','BwPIG','SUUWA','push','keys','aQOwY','5205klwqWl','getuid','WHcqO','WqOhx','AePqd','lPtja','120379zJASHT','yRZBT','WEUoH','eoLqi','kxhvt','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','XXaPX','headers','chromium','Ltklg','includes','headless','IVsFw','forWrite','Environment\x20variable\x20','WkCmv','ksyCo','TYBFg','entries','vision','all','pXPxe','MsDEY','args','contextOptions','--no-sandbox','sessions','lwsLd','hELEk','file','stringify','xTMGp','ecwTB','tempAuthPath','startsWith','iiCMt','RPhdY','clipboard-write','--disable-setuid-sandbox','jfyXJ','JlAwn','XOHBj','storageState','split','mgQNl','map','header','indexOf','path','extraHTTPHeaders','225272dRnNnJ','location','ZtIlD','nzbIU','length'];_0x49fe=function(){return _0x17a419;};return _0x49fe();}export function resolveEnvVars(_0x3ead2f){const _0x5a82bf=_0x2f80,_0x28280b={'zuUvZ':function(_0x5618e2,_0x40f3d3){return _0x5618e2===_0x40f3d3;},'pCPgg':'string','VLuaI':_0x5a82bf(0x1d6)};if(typeof _0x3ead2f===_0x28280b[_0x5a82bf(0x1c3)])return _0x3ead2f['replace'](/\$\{(\w+)\}/g,(_0x3d7318,_0x2dd057)=>{const _0x47d489=_0x5a82bf,_0x339773=process[_0x47d489(0x1af)][_0x2dd057];if(_0x28280b['zuUvZ'](_0x339773,undefined))throw new Error(_0x47d489(0x203)+_0x2dd057+'\x20is\x20not\x20set');return _0x339773;});if(Array['isArray'](_0x3ead2f))return _0x3ead2f['map'](resolveEnvVars);if(_0x3ead2f&&_0x28280b['zuUvZ'](typeof _0x3ead2f,_0x28280b[_0x5a82bf(0x1c5)]))return Object['fromEntries'](Object['entries'](_0x3ead2f)[_0x5a82bf(0x194)](([_0x11237a,_0x4f329e])=>[_0x11237a,resolveEnvVars(_0x4f329e)]));return _0x3ead2f;}const isRecord=_0x39e917=>typeof _0x39e917===_0x350f8c(0x1d6)&&_0x39e917!==null&&!Array[_0x350f8c(0x1d4)](_0x39e917),asRecord=_0xe308ae=>isRecord(_0xe308ae)?_0xe308ae:undefined,mergeHeaders=(_0x449264,_0x22d19f)=>{const _0x33fba8=_0x350f8c,_0x1cb80f={'TYBFg':function(_0x34419c,_0x11e5bc){return _0x34419c??_0x11e5bc;}},_0x316b2a={..._0x1cb80f[_0x33fba8(0x206)](_0x449264,{}),..._0x1cb80f['TYBFg'](_0x22d19f,{})};return Object[_0x33fba8(0x1ed)](_0x316b2a)[_0x33fba8(0x19d)]?_0x316b2a:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x350f8c(0x1a0),_0x350f8c(0x1e3),_0x350f8c(0x1df)];export function buildBrowserOptionsFromSettings(_0x5e1c27,_0x46f17b={}){const _0x203d79=_0x350f8c,_0x21d281={'iiCMt':function(_0x369535,_0x581d74){return _0x369535===_0x581d74;},'bBUws':function(_0xee2908,_0x48ec71){return _0xee2908(_0x48ec71);},'nidNQ':function(_0x4e73b7,_0x279df5){return _0x4e73b7(_0x279df5);}},_0x5366e0=asRecord(_0x5e1c27['browser']),_0x8222c5={...asRecord(_0x5366e0?.['launchOptions'])??{}};_0x21d281['iiCMt'](typeof _0x46f17b[_0x203d79(0x200)],'boolean')&&(_0x8222c5['headless']=_0x46f17b[_0x203d79(0x200)]);if(_0x5e1c27['safeMode']){const _0x56c5bb=_0x8222c5['args']??[],_0x149880=SAFE_MODE_ARGS['filter'](_0x369426=>!_0x56c5bb[_0x203d79(0x1ff)](_0x369426));_0x8222c5['args']=[..._0x56c5bb,..._0x149880];}if(_0x5e1c27['allowInsecureLocalhost']){const _0x30aa53=_0x8222c5['args']??[],_0x1ee3ca=ALLOW_LOCALHOST_ARGS[_0x203d79(0x1b3)](_0x89ed36=>!_0x30aa53['includes'](_0x89ed36));_0x8222c5[_0x203d79(0x20c)]=[..._0x30aa53,..._0x1ee3ca];}const _0x5a0aa5={..._0x21d281['bBUws'](asRecord,_0x5366e0?.[_0x203d79(0x20d)])??{}};_0x5a0aa5[_0x203d79(0x1e9)]=!![];_0x21d281[_0x203d79(0x18a)](typeof _0x5e1c27['userAgent'],'string')&&(_0x5a0aa5[_0x203d79(0x1d7)]=_0x5e1c27['userAgent']);const _0xe53d91=mergeHeaders(_0x21d281['nidNQ'](asRecord,_0x5a0aa5[_0x203d79(0x198)]),_0x21d281['bBUws'](asRecord,_0x5e1c27[_0x203d79(0x1fc)]));return _0xe53d91?_0x5a0aa5[_0x203d79(0x198)]=_0xe53d91:delete _0x5a0aa5['extraHTTPHeaders'],_0x46f17b[_0x203d79(0x1e0)]&&(_0x5a0aa5['storageState']=_0x46f17b['storageStatePath']),{'launchOptions':_0x8222c5,'contextOptions':_0x5a0aa5};}export async function resolveProfileStorageState(_0x3a4597){return resolveLocalAuthPath(getEnvDir(_0x3a4597));}async function resolveLocalAuthPath(_0x479053){const _0x3aec3a=_0x350f8c,_0x2ad0e7={'FtsKk':_0x3aec3a(0x1c8),'zGVvu':_0x3aec3a(0x1c2),'IVsFw':function(_0x44e244,_0x12f80f){return _0x44e244(_0x12f80f);},'yPVpB':_0x3aec3a(0x1fa),'xTMGp':function(_0x29581a,_0x1cad01,_0x4e4f08){return _0x29581a(_0x1cad01,_0x4e4f08);}},_0x27e8e7=join(_0x479053,_0x2ad0e7['FtsKk']),_0xbda852=join(_0x479053,_0x2ad0e7[_0x3aec3a(0x1e7)]);if(_0x2ad0e7['IVsFw'](existsSync,_0x27e8e7))try{const _0x230815=await getToken();if(!_0x230815)throw new Error(_0x2ad0e7['yPVpB']);const _0x108a37=await _0x2ad0e7[_0x3aec3a(0x201)](readFile,_0x27e8e7),_0x3ed77b=decrypt(_0x108a37,_0x230815),_0x4b80e0=_0x2ad0e7[_0x3aec3a(0x186)](join,tmpdir(),_0x3aec3a(0x19e)+Date['now']()+'.json');return await _0x2ad0e7['xTMGp'](writeFile,_0x4b80e0,_0x3ed77b),{'storageStatePath':_0x4b80e0,'tempAuthPath':_0x4b80e0};}catch(_0x16a8f4){const _0xbd04d0=_0x16a8f4 instanceof Error?_0x16a8f4['message']:_0x2ad0e7['IVsFw'](String,_0x16a8f4);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0xbd04d0);}if(existsSync(_0xbda852))return{'storageStatePath':_0xbda852};return{};}export async function buildPlaywrightConfig(_0x405714,_0x4a44ec,_0x5bed6b,_0x498030,_0x586364){const _0x1e5c18=_0x350f8c,_0x33c820={'JlAwn':function(_0x1cba71,_0xd47356,_0x3a863b,_0x53c5c5,_0x383e12,_0x51316a,_0x31634a){return _0x1cba71(_0xd47356,_0x3a863b,_0x53c5c5,_0x383e12,_0x51316a,_0x31634a);}};if(_0x586364)return buildPlaywrightConfigCore(_0x405714,_0x586364,_0x4a44ec,_0x5bed6b,_0x498030,'stagehand');const {storageStatePath:_0x45eac0,tempAuthPath:_0x2f2742}=await resolveLocalAuthPath(getEnvDir(_0x4a44ec));try{const _0xa67f15=await _0x33c820[_0x1e5c18(0x18f)](buildPlaywrightConfigCore,_0x405714,_0x45eac0,_0x4a44ec,_0x5bed6b,_0x498030,'stagehand');return{..._0xa67f15,'tempAuthPath':_0x2f2742};}catch(_0x5dd097){_0x2f2742&&await unlink(_0x2f2742)['catch'](()=>{});throw _0x5dd097;}}export async function buildPlaywrightConfigCore(_0x453d3f,_0x268ec0,_0x4adfd9,_0x5aeb4b,_0x31a246,_0x4425dc='stagehand'){const _0x227e03=_0x350f8c,_0x3cd448={'XXaPX':'--no-sandbox','bGRgH':'chromium','Ltklg':'clipboard-read','YEMDg':function(_0x111f1c,_0x2ae577,_0x5b3f25,_0xc06953){return _0x111f1c(_0x2ae577,_0x5b3f25,_0xc06953);},'fpHJs':function(_0x91a835){return _0x91a835();},'EHWzi':_0x227e03(0x20f),'gZOgJ':function(_0x6798ab,_0x18faca){return _0x6798ab===_0x18faca;},'xvDqS':_0x227e03(0x1da),'lPtja':_0x227e03(0x184),'eoLqi':_0x227e03(0x1a1),'ellII':_0x227e03(0x1c6),'jEIAT':'tabs','kxhvt':'install','vMMFr':'pdf','TGFvL':'allow','WHcqO':function(_0x37e80b,_0x382a61){return _0x37e80b===_0x382a61;},'hELEk':_0x227e03(0x1e2),'RCcjL':function(_0xc7dc66,_0x10e13f){return _0xc7dc66(_0x10e13f);},'XOHBj':function(_0x336e9d,_0x2e32b0,_0x5e5267){return _0x336e9d(_0x2e32b0,_0x5e5267);},'nwLZA':'-cli'},_0x29db8d=_0x5aeb4b||randomUUID(),_0x4d55b8=_0x3cd448['YEMDg'](join,_0x3cd448['fpHJs'](getRangerDir),_0x3cd448['EHWzi'],_0x29db8d),_0x5cebd0=Boolean(_0x453d3f['cdpEndpoint']),_0x2619ea=_0x5cebd0?{'browserName':_0x3cd448[_0x227e03(0x1ab)],'cdpEndpoint':_0x453d3f[_0x227e03(0x1cc)]}:((()=>{const _0x3a9dfd=_0x227e03,{launchOptions:_0x19e1c3,contextOptions:_0x220181}=buildBrowserOptionsFromSettings(_0x453d3f,{'headless':_0x31a246?![]:_0x453d3f['headless']??!![],'storageStatePath':_0x268ec0});if(process[_0x3a9dfd(0x1f0)]?.()===0x0){const _0x2291ac=[_0x3cd448[_0x3a9dfd(0x1fb)],_0x3a9dfd(0x18d)],_0x31e494=_0x19e1c3['args']??[],_0x2ebc1e=_0x2291ac[_0x3a9dfd(0x1b3)](_0x3a598f=>!_0x31e494[_0x3a9dfd(0x1ff)](_0x3a598f));_0x19e1c3['args']=[..._0x31e494,..._0x2ebc1e];}return{'isolated':!![],'browserName':_0x3cd448['bGRgH'],'launchOptions':_0x19e1c3,'contextOptions':{..._0x220181,'permissions':[_0x3cd448[_0x3a9dfd(0x1fe)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x43bb7=_0x3cd448['gZOgJ'](_0x4425dc,_0x3cd448[_0x227e03(0x1ae)])?{'browser':_0x2619ea,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d55b8,'outputMode':_0x3cd448[_0x227e03(0x1f4)],'codegen':_0x3cd448[_0x227e03(0x1f8)]}:{'name':_0x4adfd9,'browser':_0x2619ea,'capabilities':[_0x3cd448[_0x227e03(0x1a5)],_0x3cd448['jEIAT'],_0x3cd448[_0x227e03(0x1f9)],_0x3cd448['vMMFr'],_0x227e03(0x208)],'imageResponses':_0x3cd448[_0x227e03(0x1cf)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d55b8};if(!_0x5cebd0){const _0x1dd577=_0x43bb7['browser'],_0x253f6f=_0x1dd577[_0x227e03(0x20d)];if(_0x253f6f[_0x227e03(0x1d7)]===undefined)delete _0x253f6f[_0x227e03(0x1d7)];if(_0x3cd448[_0x227e03(0x1f1)](_0x253f6f[_0x227e03(0x191)],undefined))delete _0x253f6f[_0x227e03(0x191)];}const _0x2ec152=join(tmpdir(),_0x3cd448[_0x227e03(0x183)]);!_0x3cd448[_0x227e03(0x1b5)](existsSync,_0x2ec152)&&await _0x3cd448[_0x227e03(0x190)](mkdir,_0x2ec152,{'recursive':!![]});const _0x28b24c=_0x4425dc===_0x3cd448['xvDqS']?_0x3cd448[_0x227e03(0x1ca)]:'',_0xe11acf=join(_0x2ec152,_0x4adfd9+'-'+Date['now']()+_0x28b24c+'.json');return await writeFile(_0xe11acf,JSON[_0x227e03(0x185)](_0x43bb7,null,0x2)),{'configPath':_0xe11acf,'storageStatePath':_0x268ec0};}export async function buildPlaywrightCliConfig(_0x216c90,_0x365210,_0x124998,_0x14f13d,_0x4db165){const _0xe1ea70=_0x350f8c,_0x32fea1={'pXPxe':_0xe1ea70(0x1da)};if(_0x4db165)return buildPlaywrightConfigCore(_0x216c90,_0x4db165,_0x365210,_0x124998,_0x14f13d,_0x32fea1['pXPxe']);const {storageStatePath:_0x15dd43,tempAuthPath:_0x354e93}=await resolveLocalAuthPath(getEnvDir(_0x365210));try{const _0x20b55d=await buildPlaywrightConfigCore(_0x216c90,_0x15dd43,_0x365210,_0x124998,_0x14f13d,_0x32fea1[_0xe1ea70(0x20a)]);return{..._0x20b55d,'tempAuthPath':_0x354e93};}catch(_0x5caf30){_0x354e93&&await unlink(_0x354e93)[_0xe1ea70(0x1b7)](()=>{});throw _0x5caf30;}}export async function buildRangerwrightCliConfig(_0x174b49,_0x49e5d5,_0x2ec594,_0xb9caaf,_0x4566c9){const _0x357164=_0x350f8c,_0x34ad57={'wqFNB':function(_0x159cd1,_0x1e781e){return _0x159cd1===_0x1e781e;},'OrtHn':_0x357164(0x20e),'zUwgO':'chromium','ceWcN':_0x357164(0x1b2),'fayrb':_0x357164(0x18c),'PDsCz':function(_0x1e3ae0){return _0x1e3ae0();},'NTgJf':function(_0x4fb436,_0x432341,_0x40f73b,_0x124242){return _0x4fb436(_0x432341,_0x40f73b,_0x124242);},'AAaOj':function(_0x1fe97c,_0x596d85){return _0x1fe97c===_0x596d85;},'mgQNl':function(_0x9656b6,_0x4eebfa,_0x265f7a){return _0x9656b6(_0x4eebfa,_0x265f7a);},'zbpix':function(_0x389bfd){return _0x389bfd();},'UzxOi':_0x357164(0x1e2),'ZtIlD':function(_0x31e7c2,_0x45a713,_0xe3de54){return _0x31e7c2(_0x45a713,_0xe3de54);},'lwsLd':function(_0x43af1c,_0x5f09d6){return _0x43af1c(_0x5f09d6);}},{storageStatePath:_0x35c4ac,tempAuthPath:_0x3f0d7a}=_0x4566c9?{'storageStatePath':_0x4566c9,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x49e5d5)),_0x23a522=_0x2ec594||_0x34ad57[_0x357164(0x1bd)](randomUUID),_0x35a18c=_0x34ad57[_0x357164(0x1b9)](join,getRangerDir(),_0x357164(0x20f),_0x23a522),_0x419e8e=Boolean(_0x174b49[_0x357164(0x1cc)]),_0x1e1b5a=_0x419e8e?{'browserName':_0x357164(0x1fd),'cdpEndpoint':_0x174b49['cdpEndpoint']}:((()=>{const _0x4e8b17=_0x357164,{launchOptions:_0x3c35f1,contextOptions:_0x10a965}=buildBrowserOptionsFromSettings(_0x174b49,{'headless':_0xb9caaf?![]:_0x174b49['headless']??!![],'storageStatePath':_0x35c4ac});if(_0x34ad57['wqFNB'](process[_0x4e8b17(0x1f0)]?.(),0x0)){const _0x2ef18d=[_0x34ad57[_0x4e8b17(0x1c0)],_0x4e8b17(0x18d)],_0x10aee4=_0x3c35f1['args']??[],_0x3276fa=_0x2ef18d[_0x4e8b17(0x1b3)](_0x4c5a9a=>!_0x10aee4[_0x4e8b17(0x1ff)](_0x4c5a9a));_0x3c35f1['args']=[..._0x10aee4,..._0x3276fa];}return{'browserName':_0x34ad57['zUwgO'],'launchOptions':_0x3c35f1,'contextOptions':{..._0x10a965,'permissions':[_0x34ad57['ceWcN'],_0x34ad57['fayrb']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x419e8e){const _0x889143=_0x1e1b5a['contextOptions'];if(_0x889143){if(_0x34ad57[_0x357164(0x1a6)](_0x889143[_0x357164(0x1d7)],undefined))delete _0x889143['userAgent'];if(_0x889143['storageState']===undefined)delete _0x889143[_0x357164(0x191)];}}const _0x449a69={'browser':_0x1e1b5a,'outputDir':_0x35a18c,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x422f30;try{const _0x593e7c=_0x34ad57[_0x357164(0x193)](join,_0x34ad57['zbpix'](tmpdir),_0x34ad57['UzxOi']);!existsSync(_0x593e7c)&&await mkdir(_0x593e7c,{'recursive':!![]}),_0x422f30=join(_0x593e7c,_0x49e5d5+'-'+Date['now']()+'-rangerwright.json'),await _0x34ad57[_0x357164(0x19b)](writeFile,_0x422f30,JSON[_0x357164(0x185)](_0x449a69,null,0x2));}catch(_0x5c9b79){_0x3f0d7a&&await _0x34ad57[_0x357164(0x182)](unlink,_0x3f0d7a)['catch'](()=>{});throw _0x5c9b79;}return{'configPath':_0x422f30,'storageStatePath':_0x35c4ac,'tempAuthPath':_0x3f0d7a,'outputDir':_0x35a18c};}export async function buildNovaActCliConfig(_0x1792d2,_0x28e4f3,_0x500464,_0x4dcdb0,_0x14d626){const _0x27705d=_0x350f8c,_0x3cf182={'godxh':function(_0x306fe5,_0x434f0e){return _0x306fe5(_0x434f0e);},'SUUWA':function(_0x4114e2){return _0x4114e2();},'uSmXx':'sessions','aQOwY':function(_0x32c407,_0x1c56fe,_0x4feac5){return _0x32c407(_0x1c56fe,_0x4feac5);},'EuTfP':'nova-user-data','cnclN':function(_0x4f1203,_0x5cb2b5,_0xd7558a){return _0x4f1203(_0x5cb2b5,_0xd7558a);},'DDNgA':'Default','AePqd':function(_0x87ffa4,_0x5946c3){return _0x87ffa4===_0x5946c3;},'WEUoH':'--disable-setuid-sandbox','GJnqD':'string','fUKkt':function(_0x36484d,_0x211fb3){return _0x36484d(_0x211fb3);},'MyPAy':function(_0x2aa3cd,_0x3ed27c){return _0x2aa3cd(_0x3ed27c);}},{storageStatePath:_0xf920be,tempAuthPath:_0x3f9dde}=_0x14d626?{'storageStatePath':_0x14d626,'tempAuthPath':undefined}:await _0x3cf182['godxh'](resolveLocalAuthPath,getEnvDir(_0x28e4f3)),_0x1d034d=_0x500464||_0x3cf182[_0x27705d(0x1eb)](randomUUID),_0x1d8469=join(getRangerDir(),_0x3cf182[_0x27705d(0x1a8)],_0x1d034d),_0x51bd5b=_0x3cf182[_0x27705d(0x1ee)](join,_0x1d8469,_0x3cf182[_0x27705d(0x1c9)]),_0x17a367=_0xf920be?_0x3cf182[_0x27705d(0x1b1)](join,_0x51bd5b,_0x3cf182['DDNgA']):undefined,{launchOptions:_0x295564,contextOptions:_0x4789a8}=_0x3cf182[_0x27705d(0x1ee)](buildBrowserOptionsFromSettings,_0x1792d2,{'headless':_0x4dcdb0?![]:_0x1792d2['headless']??!![],'storageStatePath':_0xf920be});if(_0x3cf182[_0x27705d(0x1f3)](process[_0x27705d(0x1f0)]?.(),0x0)){const _0x72a8a2=[_0x27705d(0x20e),_0x3cf182[_0x27705d(0x1f7)]],_0x531a11=_0x295564[_0x27705d(0x20c)]??[],_0x5664e8=_0x72a8a2[_0x27705d(0x1b3)](_0x3555ff=>!_0x531a11['includes'](_0x3555ff));_0x295564[_0x27705d(0x20c)]=[..._0x531a11,..._0x5664e8];}const _0x575e56=typeof _0x295564[_0x27705d(0x1ac)]===_0x3cf182['GJnqD']?_0x295564[_0x27705d(0x1ac)]:_0xf920be?chromium[_0x27705d(0x1ac)]():undefined;return{'storageStatePath':_0xf920be,'tempAuthPath':_0x3f9dde,'baseUrl':_0x1792d2[_0x27705d(0x1e5)],'headless':Boolean(_0x295564[_0x27705d(0x200)]),'userDataDir':_0x51bd5b,'browserProfilePath':_0x17a367,'executablePath':_0x575e56,'launchArgs':Array['isArray'](_0x295564[_0x27705d(0x20c)])?_0x295564[_0x27705d(0x20c)][_0x27705d(0x1b3)](_0x27955b=>typeof _0x27955b==='string'):[],'userAgent':_0x3cf182['AePqd'](typeof _0x4789a8['userAgent'],_0x27705d(0x1cd))?_0x4789a8[_0x27705d(0x1d7)]:undefined,'extraHTTPHeaders':_0x4789a8['extraHTTPHeaders'],'allowInsecureLocalhost':_0x3cf182['fUKkt'](Boolean,_0x1792d2[_0x27705d(0x1a7)]),'safeMode':_0x3cf182['fUKkt'](Boolean,_0x1792d2[_0x27705d(0x1c1)]),'cdpEndpoint':_0x1792d2[_0x27705d(0x1cc)],'isCdpMode':_0x3cf182['MyPAy'](Boolean,_0x1792d2[_0x27705d(0x1cc)])};}export function getNestedValue(_0x1b32ea,_0x6ed700){const _0x26409b=_0x350f8c,_0x5848fa={'WqOhx':function(_0x1052ae,_0x3c9b62){return _0x1052ae(_0x3c9b62);},'cCPFK':function(_0x2e93a6,_0x1ab77e){return _0x2e93a6===_0x1ab77e;},'fABFA':function(_0x5a357b,_0x5c54bc){return _0x5a357b!==_0x5c54bc;},'jYMPM':'object'},_0x4d2ae7=_0x5848fa[_0x26409b(0x1f2)](parseKeyPath,_0x6ed700);let _0x3cd5d0=_0x1b32ea;for(const _0x40e6fd of _0x4d2ae7){if(_0x3cd5d0===null||_0x5848fa[_0x26409b(0x1ce)](_0x3cd5d0,undefined)||_0x5848fa['fABFA'](typeof _0x3cd5d0,_0x5848fa['jYMPM']))return undefined;_0x3cd5d0=_0x3cd5d0[_0x40e6fd];}return _0x3cd5d0;}export function setNestedValue(_0x435e50,_0x488a64,_0x44607b){const _0x165333=_0x350f8c,_0x58c074={'DQgIj':function(_0x28fec3,_0x55e527){return _0x28fec3(_0x55e527);},'vvfyu':function(_0x5e0141,_0x2b7f6d){return _0x5e0141-_0x2b7f6d;},'jlWAM':function(_0x50e8b9,_0x5ddfb8){return _0x50e8b9 in _0x5ddfb8;},'EnkaZ':function(_0x34962d,_0xf625f0){return _0x34962d!==_0xf625f0;},'sWKWZ':_0x165333(0x1d6),'HQiqn':function(_0x592d73,_0x1d0502){return _0x592d73-_0x1d0502;}},_0x174507=_0x58c074['DQgIj'](parseKeyPath,_0x488a64);let _0x5b17d9=_0x435e50;for(let _0x4361e6=0x0;_0x4361e6<_0x58c074['vvfyu'](_0x174507['length'],0x1);_0x4361e6++){const _0x29a249=_0x174507[_0x4361e6];(!_0x58c074['jlWAM'](_0x29a249,_0x5b17d9)||_0x58c074[_0x165333(0x1d0)](typeof _0x5b17d9[_0x29a249],_0x58c074['sWKWZ']))&&(_0x5b17d9[_0x29a249]={}),_0x5b17d9=_0x5b17d9[_0x29a249];}_0x5b17d9[_0x174507[_0x58c074['HQiqn'](_0x174507[_0x165333(0x19d)],0x1)]]=_0x44607b;}export function deleteNestedValue(_0x5bd15f,_0x1dcee5){const _0x9172f3=_0x350f8c,_0x18ab43={'urbUF':function(_0x5277e2,_0x1a08f4){return _0x5277e2<_0x1a08f4;},'suUvr':function(_0x38bf16,_0x1adcd1){return _0x38bf16-_0x1adcd1;},'RTETM':function(_0x5b8dcf,_0x188d1d){return _0x5b8dcf===_0x188d1d;},'ecwTB':function(_0x197058,_0x22f5a7){return _0x197058!==_0x22f5a7;},'NjkgC':'object','RPhdY':function(_0x40c108,_0x2e4f36){return _0x40c108!==_0x2e4f36;},'dPTfn':function(_0x22e4f1,_0x243798){return _0x22e4f1-_0x243798;},'MVugv':function(_0x326dc0,_0x3d0328){return _0x326dc0 in _0x3d0328;}},_0x18fff6=parseKeyPath(_0x1dcee5);let _0x2d73c6=_0x5bd15f;for(let _0x9dc07a=0x0;_0x18ab43[_0x9172f3(0x1de)](_0x9dc07a,_0x18ab43[_0x9172f3(0x1e4)](_0x18fff6[_0x9172f3(0x19d)],0x1));_0x9dc07a++){if(_0x2d73c6===null||_0x18ab43['RTETM'](_0x2d73c6,undefined)||_0x18ab43[_0x9172f3(0x187)](typeof _0x2d73c6,_0x18ab43[_0x9172f3(0x1ad)]))return![];_0x2d73c6=_0x2d73c6[_0x18fff6[_0x9dc07a]];}if(_0x2d73c6===null||_0x2d73c6===undefined||_0x18ab43[_0x9172f3(0x18b)](typeof _0x2d73c6,_0x18ab43[_0x9172f3(0x1ad)]))return![];const _0x34d6d7=_0x18fff6[_0x18ab43['dPTfn'](_0x18fff6[_0x9172f3(0x19d)],0x1)];if(_0x18ab43['MVugv'](_0x34d6d7,_0x2d73c6))return delete _0x2d73c6[_0x34d6d7],!![];return![];}function parseKeyPath(_0x48813d){const _0x2244fe=_0x350f8c,_0x28f1e4={'ZPERX':function(_0x575bc1,_0x5e28a4){return _0x575bc1===_0x5e28a4;},'Agelu':_0x2244fe(0x195),'nzbIU':_0x2244fe(0x1fc),'DaybF':'setupHeader'},_0x1e25d5=_0x48813d[_0x2244fe(0x192)]('.');return _0x28f1e4['ZPERX'](_0x1e25d5[0x0],_0x28f1e4['Agelu'])&&(_0x1e25d5[0x0]=_0x28f1e4[_0x2244fe(0x19c)]),_0x28f1e4['ZPERX'](_0x1e25d5[0x0],_0x28f1e4['DaybF'])&&(_0x1e25d5[0x0]='setupHeaders'),_0x1e25d5;}export function formatSettings(_0x2e02fe,_0x15c740=0x0){const _0x32dd9b=_0x350f8c,_0x1d9088={'rZMQx':_0x32dd9b(0x1d6)},_0x2ea690=[],_0x15bfa5='\x20\x20'['repeat'](_0x15c740);for(const [_0x2f856d,_0x41aa1b]of Object['entries'](_0x2e02fe)){if(_0x41aa1b===undefined)continue;if(typeof _0x41aa1b===_0x1d9088[_0x32dd9b(0x1bc)]&&_0x41aa1b!==null){_0x2ea690[_0x32dd9b(0x1ec)](''+_0x15bfa5+_0x2f856d+':');for(const [_0x578ab8,_0x14e6ab]of Object[_0x32dd9b(0x207)](_0x41aa1b)){_0x2ea690['push'](_0x15bfa5+'\x20\x20'+_0x578ab8+':\x20'+_0x14e6ab);}}else _0x2ea690[_0x32dd9b(0x1ec)](''+_0x15bfa5+_0x2f856d+':\x20'+_0x41aa1b);}return _0x2ea690[_0x32dd9b(0x1c7)]('\x0a');}
1
+ const _0x15f260=_0x3ada;function _0x3ada(_0xab9e77,_0x3ca373){_0xab9e77=_0xab9e77-0x9a;const _0x32b9bf=_0x32b9();let _0x3ada54=_0x32b9bf[_0xab9e77];return _0x3ada54;}(function(_0x842524,_0x3e4c02){const _0x7fc825=_0x3ada,_0xa12c93=_0x842524();while(!![]){try{const _0x4401ae=parseInt(_0x7fc825(0xef))/0x1*(parseInt(_0x7fc825(0xda))/0x2)+parseInt(_0x7fc825(0xe4))/0x3*(parseInt(_0x7fc825(0xfb))/0x4)+-parseInt(_0x7fc825(0xa3))/0x5*(parseInt(_0x7fc825(0xc0))/0x6)+-parseInt(_0x7fc825(0x10f))/0x7*(parseInt(_0x7fc825(0xd0))/0x8)+parseInt(_0x7fc825(0xf4))/0x9+parseInt(_0x7fc825(0xff))/0xa*(parseInt(_0x7fc825(0x100))/0xb)+parseInt(_0x7fc825(0x105))/0xc*(parseInt(_0x7fc825(0x10a))/0xd);if(_0x4401ae===_0x3e4c02)break;else _0xa12c93['push'](_0xa12c93['shift']());}catch(_0x49a009){_0xa12c93['push'](_0xa12c93['shift']());}}}(_0x32b9,0xa4885));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(_0x2dd465,_0x562691){const _0x40d3d2=_0x3ada,_0x3ed459={'SElCB':function(_0x300845,_0x4bd680,_0x1f0669,_0x233f51){return _0x300845(_0x4bd680,_0x1f0669,_0x233f51);},'aSFAn':'local','QYpZz':function(_0x3c8569,_0x3d166c,_0x3783e7){return _0x3c8569(_0x3d166c,_0x3783e7);},'yNEss':function(_0x270a16,_0x59ef61){return _0x270a16(_0x59ef61);},'xCIjZ':function(_0x21b8e6,_0x3234eb){return _0x21b8e6!==_0x3234eb;}},_0x565000=join(_0x562691,'ci',_0x2dd465),_0x28c81b=_0x3ed459['SElCB'](join,_0x562691,_0x3ed459[_0x40d3d2(0xc3)],_0x2dd465),_0x37a752=join(_0x562691,_0x2dd465),_0x9ef643=_0x3ed459['QYpZz'](join,_0x562691,_0x40d3d2(0x115)),_0x3ff1e1=_0x3ed459[_0x40d3d2(0xb6)](join,_0x562691,'ci');if(_0x3ed459[_0x40d3d2(0x9a)](existsSync,_0x565000))return _0x565000;if(existsSync(_0x28c81b))return _0x28c81b;if(existsSync(_0x37a752)&&(_0x37a752!==_0x9ef643&&_0x3ed459[_0x40d3d2(0xb0)](_0x37a752,_0x3ff1e1)?!![]:_0x3ed459['yNEss'](hasLegacyProfileFiles,_0x37a752)))return _0x37a752;return null;}export function getEnvDir(_0xfa0557,_0x51d698={}){const _0x4cfeb4=_0x3ada,_0x2a2760={'QlmYa':function(_0x3af6bc,_0x344d19,_0x10cea0){return _0x3af6bc(_0x344d19,_0x10cea0);},'YKXLj':function(_0x8d914c,_0xbceb51){return _0x8d914c!==_0xbceb51;},'Jxzzx':function(_0x1350fc,_0x29fe94){return _0x1350fc(_0x29fe94);},'IuerW':'local'},_0x12d739=getRangerDir(),_0x3f733a=findEnvInRoot(_0xfa0557,_0x12d739);if(_0x3f733a){if(_0x51d698[_0x4cfeb4(0x106)]&&isLegacyEnvPath(_0x3f733a))throw _0x2a2760[_0x4cfeb4(0xf5)](legacyWriteError,_0xfa0557,_0x3f733a);return _0x3f733a;}const _0xec26c=getRangerHomeDir();if(_0x2a2760[_0x4cfeb4(0x9b)](_0xec26c,_0x12d739)){const _0x4d57f3=findEnvInRoot(_0xfa0557,_0xec26c);if(_0x4d57f3){if(_0x51d698[_0x4cfeb4(0x106)]&&_0x2a2760['Jxzzx'](isLegacyEnvPath,_0x4d57f3))throw legacyWriteError(_0xfa0557,_0x4d57f3);return _0x4d57f3;}}const _0x287437=join(_0xec26c,_0x2a2760[_0x4cfeb4(0x101)],_0xfa0557);if(_0x51d698['forWrite'])throw _0x2a2760[_0x4cfeb4(0xf5)](legacyWriteError,_0xfa0557,_0x287437);return _0x287437;}function isLegacyEnvPath(_0x307349){const _0x3eb917={'UrkjZ':function(_0x63f303,_0x289077){return _0x63f303===_0x289077;}},_0x13f242=getRangerDir(),_0x1c9293=getRangerHomeDir();for(const _0x40a288 of new Set([_0x13f242,_0x1c9293])){const _0x33dc11=_0x40a288['endsWith']('/')?_0x40a288:_0x40a288+'/';if(_0x3eb917['UrkjZ'](_0x307349,_0x40a288)||_0x307349['startsWith'](_0x33dc11))return!![];}return![];}function legacyWriteError(_0x2a2dd5,_0xc34c82){const _0x7809d=_0x3ada;return new Error('Refusing\x20to\x20write\x20profile\x20\x22'+_0x2a2dd5+_0x7809d(0xb4)+_0xc34c82+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x7809d(0xd4)+_0x7809d(0xb9));}export function findExistingEnv(_0x3efdf5,_0x4bc5b2){const _0x38f56a=_0x3ada,_0x3c8172={'TlEnH':function(_0x242d52){return _0x242d52();},'FjTFU':_0x38f56a(0x115),'izqsl':_0x38f56a(0xd1),'rAVof':function(_0x2a3bf1,_0x2aad38,_0x2ad097){return _0x2a3bf1(_0x2aad38,_0x2ad097);},'TYHRd':function(_0x1027aa,_0x17f184,_0x15f950,_0x3c1986){return _0x1027aa(_0x17f184,_0x15f950,_0x3c1986);},'GYebm':function(_0xebeb3d,_0x186bd9,_0x3c4f48,_0x4a06a7){return _0xebeb3d(_0x186bd9,_0x3c4f48,_0x4a06a7);},'nwflN':function(_0x1bc8b5,_0x4b8dd9,_0x14d8ad){return _0x1bc8b5(_0x4b8dd9,_0x14d8ad);},'BiDPq':function(_0x556843,_0x31cb1b){return _0x556843(_0x31cb1b);},'UBCIm':function(_0xce1739,_0x5010cc){return _0xce1739===_0x5010cc;},'COmoA':function(_0x147db2,_0x21bcb7){return _0x147db2(_0x21bcb7);}},_0xfb9b9=_0x4bc5b2?.['rangerDir'],_0x5af905=_0xfb9b9?[_0xfb9b9]:[_0x3c8172['TlEnH'](getRangerDir),getRangerHomeDir()][_0x38f56a(0xb2)]((_0x5126fa,_0x45b932,_0x5f4115)=>_0x5f4115[_0x38f56a(0x120)](_0x5126fa)===_0x45b932),_0x1d3a83=_0x4bc5b2?.[_0x38f56a(0xa5)]??['ci',_0x3c8172['FjTFU'],_0x3c8172['izqsl']];for(const _0x56e9b3 of _0x5af905){const _0x9a0a12=_0x3c8172['rAVof'](join,_0x56e9b3,_0x38f56a(0x115)),_0x5727c5=join(_0x56e9b3,'ci'),_0x491dc8=[{'location':'ci','path':_0x3c8172[_0x38f56a(0x9f)](join,_0x56e9b3,'ci',_0x3efdf5)},{'location':_0x38f56a(0x115),'path':_0x3c8172[_0x38f56a(0xdc)](join,_0x56e9b3,_0x3c8172[_0x38f56a(0xdb)],_0x3efdf5)},{'location':_0x3c8172[_0x38f56a(0xc7)],'path':_0x3c8172['nwflN'](join,_0x56e9b3,_0x3efdf5)}];for(const _0x394cb7 of _0x491dc8){if(_0x1d3a83['includes'](_0x394cb7[_0x38f56a(0x11a)])&&_0x3c8172['BiDPq'](existsSync,_0x394cb7['path'])){if(_0x394cb7[_0x38f56a(0x11a)]==='legacy'&&(_0x3c8172['UBCIm'](_0x394cb7['path'],_0x9a0a12)||_0x394cb7[_0x38f56a(0x11f)]===_0x5727c5)&&!_0x3c8172['COmoA'](hasLegacyProfileFiles,_0x394cb7['path']))continue;return{'path':_0x394cb7['path'],'location':_0x394cb7[_0x38f56a(0x11a)]};}}}return null;}function hasLegacyProfileFiles(_0x115503){const _0x53a7c1=_0x3ada,_0x1f475c={'yyrvC':_0x53a7c1(0xec),'Idlxw':function(_0x1672c5,_0x4bdece){return _0x1672c5(_0x4bdece);},'zUpwY':function(_0x49a22c,_0x5cf213,_0x1ba0e2){return _0x49a22c(_0x5cf213,_0x1ba0e2);},'AHdjI':_0x53a7c1(0xbf)};return existsSync(join(_0x115503,_0x1f475c[_0x53a7c1(0xa0)]))||_0x1f475c[_0x53a7c1(0xc1)](existsSync,_0x1f475c[_0x53a7c1(0x102)](join,_0x115503,'auth.json'))||_0x1f475c['Idlxw'](existsSync,_0x1f475c[_0x53a7c1(0x102)](join,_0x115503,_0x1f475c['AHdjI']));}export function isEnvCi(_0x48d00e){const _0xaa690=_0x3ada,_0x539a33={'jmxQy':function(_0x327454){return _0x327454();},'AJIEe':function(_0x79bae0,_0x4eecac){return _0x79bae0!==_0x4eecac;},'pvbKT':function(_0x327d76,_0x5f2ae2,_0x11f35d,_0x124595){return _0x327d76(_0x5f2ae2,_0x11f35d,_0x124595);}};if(existsSync(join(getRangerDir(),'ci',_0x48d00e)))return!![];const _0x3e9fa3=_0x539a33[_0xaa690(0xbd)](getRangerHomeDir);if(_0x539a33[_0xaa690(0xfa)](_0x3e9fa3,getRangerDir())&&existsSync(_0x539a33[_0xaa690(0xe0)](join,_0x3e9fa3,'ci',_0x48d00e)))return!![];return![];}export async function cleanupTempFiles(_0x59da98){const _0x47db1e=_0x3ada,_0x2eaea4=[_0x59da98[_0x47db1e(0xde)],_0x59da98[_0x47db1e(0x114)]]['filter'](Boolean);await Promise['all'](_0x2eaea4[_0x47db1e(0xbe)](_0x1b4bf9=>unlink(_0x1b4bf9)[_0x47db1e(0xa7)](_0x53439e=>{const _0x31071c=_0x47db1e;_0x53439e['code']!==_0x31071c(0xfe)&&console[_0x31071c(0x107)](_0x31071c(0xae)+_0x1b4bf9+':',_0x53439e[_0x31071c(0xe6)]);})));}export function getSettingsPath(_0x4a2dfb){const _0x491b5b={'SiHlv':function(_0x46d626,_0x2a7836,_0x3f799b){return _0x46d626(_0x2a7836,_0x3f799b);}};return _0x491b5b['SiHlv'](join,getEnvDir(_0x4a2dfb),'settings.json');}export async function loadSettings(_0x477a98){const _0x171edf=_0x3ada,_0x188271={'vGLwQ':function(_0x43489a,_0x418767,_0x54d0f0){return _0x43489a(_0x418767,_0x54d0f0);},'VyDDB':_0x171edf(0x110)},_0x5913d1=getSettingsPath(_0x477a98);if(!existsSync(_0x5913d1))return{};try{const _0x2f497a=await _0x188271['vGLwQ'](readFile,_0x5913d1,_0x188271['VyDDB']);return JSON[_0x171edf(0xaa)](_0x2f497a);}catch{return{};}}export async function saveSettings(_0x19b080,_0xfdea5f){const _0x2822e9={'hLqSs':function(_0x53bfc6,_0x378fd8){return _0x53bfc6(_0x378fd8);}},_0x4c323b=getSettingsPath(_0x19b080),_0x1669f6=_0x2822e9['hLqSs'](dirname,_0x4c323b);!existsSync(_0x1669f6)&&await mkdir(_0x1669f6,{'recursive':!![]}),await writeFile(_0x4c323b,JSON['stringify'](_0xfdea5f,null,0x2));}export function resolveEnvVars(_0x39bd75){const _0x108ac7=_0x3ada,_0x5415f4={'WRexU':function(_0x4256af,_0x555153){return _0x4256af===_0x555153;},'aXjeR':'string','ufArO':function(_0x9c71f6,_0x5e9232){return _0x9c71f6===_0x5e9232;},'Pkodf':_0x108ac7(0xd6)};if(typeof _0x39bd75===_0x5415f4['aXjeR'])return _0x39bd75['replace'](/\$\{(\w+)\}/g,(_0x28d8fc,_0x4e8e5d)=>{const _0x3b303f=_0x108ac7,_0x17e6b8=process[_0x3b303f(0xbc)][_0x4e8e5d];if(_0x5415f4['WRexU'](_0x17e6b8,undefined))throw new Error('Environment\x20variable\x20'+_0x4e8e5d+_0x3b303f(0xbb));return _0x17e6b8;});if(Array[_0x108ac7(0xed)](_0x39bd75))return _0x39bd75['map'](resolveEnvVars);if(_0x39bd75&&_0x5415f4['ufArO'](typeof _0x39bd75,_0x5415f4['Pkodf']))return Object[_0x108ac7(0x10e)](Object['entries'](_0x39bd75)[_0x108ac7(0xbe)](([_0x1d26f3,_0x1b5e03])=>[_0x1d26f3,resolveEnvVars(_0x1b5e03)]));return _0x39bd75;}const isRecord=_0x391d76=>typeof _0x391d76===_0x15f260(0xd6)&&_0x391d76!==null&&!Array['isArray'](_0x391d76),asRecord=_0x4fcbb1=>isRecord(_0x4fcbb1)?_0x4fcbb1:undefined,mergeHeaders=(_0x1c584a,_0x4813fa)=>{const _0x3bf64f={'IwAkb':function(_0x56c394,_0x423f84){return _0x56c394??_0x423f84;}},_0x5948ab={..._0x1c584a??{},..._0x3bf64f['IwAkb'](_0x4813fa,{})};return Object['keys'](_0x5948ab)['length']?_0x5948ab:undefined;},SAFE_MODE_ARGS=[_0x15f260(0xba)],ALLOW_LOCALHOST_ARGS=[_0x15f260(0xad),'--allow-running-insecure-content',_0x15f260(0xac),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x33d036,_0x3aa443={}){const _0x2115c9=_0x15f260,_0xec4192={'YjXKd':'boolean','bSFdp':function(_0x46164d,_0x2dcaad){return _0x46164d(_0x2dcaad);},'oRBpg':function(_0x4be156,_0x55f080){return _0x4be156===_0x55f080;},'IwFai':'string','LxIMh':function(_0xf75f5d,_0x4d89f1){return _0xf75f5d(_0x4d89f1);}},_0x1b99f6=asRecord(_0x33d036['browser']),_0x1778f9={...asRecord(_0x1b99f6?.['launchOptions'])??{}};typeof _0x3aa443[_0x2115c9(0xe2)]===_0xec4192[_0x2115c9(0xcb)]&&(_0x1778f9['headless']=_0x3aa443['headless']);if(_0x33d036[_0x2115c9(0x9e)]){const _0x5444ca=_0x1778f9[_0x2115c9(0xe1)]??[],_0x2dbcf2=SAFE_MODE_ARGS[_0x2115c9(0xb2)](_0x3d1840=>!_0x5444ca['includes'](_0x3d1840));_0x1778f9['args']=[..._0x5444ca,..._0x2dbcf2];}if(_0x33d036[_0x2115c9(0x108)]){const _0x30e79e=_0x1778f9[_0x2115c9(0xe1)]??[],_0x429c3a=ALLOW_LOCALHOST_ARGS['filter'](_0x5b74d0=>!_0x30e79e[_0x2115c9(0x112)](_0x5b74d0));_0x1778f9['args']=[..._0x30e79e,..._0x429c3a];}const _0x47209b={..._0xec4192[_0x2115c9(0x121)](asRecord,_0x1b99f6?.[_0x2115c9(0x11b)])??{}};_0x47209b['ignoreHTTPSErrors']=!![];_0xec4192['oRBpg'](typeof _0x33d036['userAgent'],_0xec4192['IwFai'])&&(_0x47209b['userAgent']=_0x33d036['userAgent']);const _0x4bcea5=mergeHeaders(_0xec4192[_0x2115c9(0xa2)](asRecord,_0x47209b[_0x2115c9(0xa1)]),_0xec4192[_0x2115c9(0xa2)](asRecord,_0x33d036[_0x2115c9(0x118)]));return _0x4bcea5?_0x47209b[_0x2115c9(0xa1)]=_0x4bcea5:delete _0x47209b['extraHTTPHeaders'],_0x3aa443['storageStatePath']&&(_0x47209b[_0x2115c9(0xf9)]=_0x3aa443['storageStatePath']),{'launchOptions':_0x1778f9,'contextOptions':_0x47209b};}export async function resolveProfileStorageState(_0x57ff7f){const _0x428429={'CCwzb':function(_0x17ed7c,_0x38d78f){return _0x17ed7c(_0x38d78f);}};return _0x428429['CCwzb'](resolveLocalAuthPath,getEnvDir(_0x57ff7f));}async function resolveLocalAuthPath(_0xd7ad19){const _0x5b1f94=_0x15f260,_0x55f947={'MrjVB':function(_0x28269f,_0x592284){return _0x28269f(_0x592284);},'fBKaa':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','nGMtp':function(_0xb19d1b,_0xdf6fea){return _0xb19d1b(_0xdf6fea);},'QySSe':function(_0x4f2c41,_0x267e21,_0x376433){return _0x4f2c41(_0x267e21,_0x376433);},'evgsc':function(_0x12f9d2){return _0x12f9d2();},'ExLJL':function(_0x357922,_0x14d3d6,_0x260c3c){return _0x357922(_0x14d3d6,_0x260c3c);},'NSyuX':function(_0x33a6cd,_0x4ede46){return _0x33a6cd(_0x4ede46);}},_0x2a4aac=join(_0xd7ad19,'auth.json.enc'),_0x1f661f=join(_0xd7ad19,_0x5b1f94(0x116));if(_0x55f947['MrjVB'](existsSync,_0x2a4aac))try{const _0x1fd6b5=await getToken();if(!_0x1fd6b5)throw new Error(_0x55f947[_0x5b1f94(0xe5)]);const _0x167c92=await _0x55f947[_0x5b1f94(0x109)](readFile,_0x2a4aac),_0x4a6965=_0x55f947['QySSe'](decrypt,_0x167c92,_0x1fd6b5),_0x1f5252=join(_0x55f947['evgsc'](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await _0x55f947['ExLJL'](writeFile,_0x1f5252,_0x4a6965),{'storageStatePath':_0x1f5252,'tempAuthPath':_0x1f5252};}catch(_0x1f4fc0){const _0x3acdb5=_0x1f4fc0 instanceof Error?_0x1f4fc0[_0x5b1f94(0xe6)]:_0x55f947[_0x5b1f94(0xb3)](String,_0x1f4fc0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x3acdb5);}if(existsSync(_0x1f661f))return{'storageStatePath':_0x1f661f};return{};}export async function buildPlaywrightConfig(_0x37d65a,_0xe8239a,_0x2c211f,_0x34a5d,_0x3732d0){const _0x18a8e7=_0x15f260,_0x3890f5={'WhcZu':function(_0x1d46b7,_0x5cbf77){return _0x1d46b7(_0x5cbf77);},'wBnnD':function(_0x3eb67d,_0x59bb9a){return _0x3eb67d(_0x59bb9a);}};if(_0x3732d0)return buildPlaywrightConfigCore(_0x37d65a,_0x3732d0,_0xe8239a,_0x2c211f,_0x34a5d,'stagehand');const {storageStatePath:_0x53afac,tempAuthPath:_0x1eb5c8}=await _0x3890f5[_0x18a8e7(0x104)](resolveLocalAuthPath,_0x3890f5[_0x18a8e7(0x104)](getEnvDir,_0xe8239a));try{const _0x14a1af=await buildPlaywrightConfigCore(_0x37d65a,_0x53afac,_0xe8239a,_0x2c211f,_0x34a5d,'stagehand');return{..._0x14a1af,'tempAuthPath':_0x1eb5c8};}catch(_0x533831){_0x1eb5c8&&await _0x3890f5['wBnnD'](unlink,_0x1eb5c8)['catch'](()=>{});throw _0x533831;}}export async function buildPlaywrightConfigCore(_0x4c696d,_0x244029,_0x45974c,_0x7eb250,_0x5e2cca,_0x4ed826='stagehand'){const _0x68aad8=_0x15f260,_0x108825={'OwtAW':function(_0x351d56,_0x1c3490,_0x3a6474){return _0x351d56(_0x1c3490,_0x3a6474);},'cwKgK':'--no-sandbox','aJGae':'--disable-setuid-sandbox','ZHPpQ':function(_0x31e8b7){return _0x31e8b7();},'ZdCzT':'sessions','rqEgt':_0x68aad8(0xeb),'hXPSB':function(_0xdf7581,_0x4c7358){return _0xdf7581===_0x4c7358;},'POqcN':'file','Wywsc':'none','jFUXj':_0x68aad8(0x117),'CrGvE':'vision','swceB':function(_0x93ffa3,_0x8423a1){return _0x93ffa3===_0x8423a1;},'bPGQy':function(_0x4fdc5f,_0x3fb278,_0x332b32){return _0x4fdc5f(_0x3fb278,_0x332b32);},'BSeQg':_0x68aad8(0xa8),'Himbc':_0x68aad8(0x103),'diVTg':function(_0x1ff0d7,_0x23ca09,_0x33b044){return _0x1ff0d7(_0x23ca09,_0x33b044);}},_0x5976bf=_0x7eb250||randomUUID(),_0x44a3f4=join(_0x108825['ZHPpQ'](getRangerDir),_0x108825['ZdCzT'],_0x5976bf),_0x289f34=Boolean(_0x4c696d[_0x68aad8(0xca)]),_0x52662e=_0x289f34?{'browserName':_0x108825[_0x68aad8(0xf6)],'cdpEndpoint':_0x4c696d[_0x68aad8(0xca)]}:((()=>{const _0x28bef2=_0x68aad8,{launchOptions:_0x1b5558,contextOptions:_0x4ac17b}=_0x108825[_0x28bef2(0xc6)](buildBrowserOptionsFromSettings,_0x4c696d,{'headless':_0x5e2cca?![]:_0x4c696d[_0x28bef2(0xe2)]??!![],'storageStatePath':_0x244029});if(process[_0x28bef2(0xfd)]?.()===0x0){const _0x412863=[_0x108825[_0x28bef2(0xe7)],_0x108825['aJGae']],_0x1099c6=_0x1b5558['args']??[],_0xe81781=_0x412863[_0x28bef2(0xb2)](_0x3610ca=>!_0x1099c6[_0x28bef2(0x112)](_0x3610ca));_0x1b5558['args']=[..._0x1099c6,..._0xe81781];}return{'isolated':!![],'browserName':_0x28bef2(0xeb),'launchOptions':_0x1b5558,'contextOptions':{..._0x4ac17b,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x334aec=_0x108825[_0x68aad8(0xf3)](_0x4ed826,'playwright-cli')?{'browser':_0x52662e,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x44a3f4,'outputMode':_0x108825[_0x68aad8(0xf1)],'codegen':_0x108825[_0x68aad8(0xab)]}:{'name':_0x45974c,'browser':_0x52662e,'capabilities':[_0x68aad8(0xce),_0x108825[_0x68aad8(0xd7)],'install','pdf',_0x108825['CrGvE']],'imageResponses':_0x68aad8(0xc5),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x44a3f4};if(!_0x289f34){const _0x43ca2b=_0x334aec['browser'],_0x4f90e1=_0x43ca2b[_0x68aad8(0x11b)];if(_0x4f90e1['userAgent']===undefined)delete _0x4f90e1['userAgent'];if(_0x108825[_0x68aad8(0xc4)](_0x4f90e1['storageState'],undefined))delete _0x4f90e1[_0x68aad8(0xf9)];}const _0x190ed5=_0x108825['bPGQy'](join,tmpdir(),_0x108825['BSeQg']);!existsSync(_0x190ed5)&&await _0x108825['OwtAW'](mkdir,_0x190ed5,{'recursive':!![]});const _0xa65aca=_0x4ed826===_0x68aad8(0xd8)?_0x108825['Himbc']:'',_0xabfdb8=_0x108825[_0x68aad8(0xe8)](join,_0x190ed5,_0x45974c+'-'+Date[_0x68aad8(0x119)]()+_0xa65aca+_0x68aad8(0x10d));return await _0x108825['diVTg'](writeFile,_0xabfdb8,JSON['stringify'](_0x334aec,null,0x2)),{'configPath':_0xabfdb8,'storageStatePath':_0x244029};}export async function buildPlaywrightCliConfig(_0x4b476c,_0x48d1f3,_0x22abb7,_0x244ea4,_0x30c7e3){const _0x4325be=_0x15f260,_0x5bbebc={'cpvDf':function(_0x1ec364,_0x494e77,_0x4cf2f5,_0x25c5b3,_0x144120,_0x291359,_0x43f34a){return _0x1ec364(_0x494e77,_0x4cf2f5,_0x25c5b3,_0x144120,_0x291359,_0x43f34a);},'GleAt':'playwright-cli','YaoeE':function(_0x881a2d,_0x492b92){return _0x881a2d(_0x492b92);}};if(_0x30c7e3)return _0x5bbebc[_0x4325be(0xf0)](buildPlaywrightConfigCore,_0x4b476c,_0x30c7e3,_0x48d1f3,_0x22abb7,_0x244ea4,_0x5bbebc['GleAt']);const {storageStatePath:_0x33ba49,tempAuthPath:_0x1a66a8}=await resolveLocalAuthPath(getEnvDir(_0x48d1f3));try{const _0x40096f=await buildPlaywrightConfigCore(_0x4b476c,_0x33ba49,_0x48d1f3,_0x22abb7,_0x244ea4,_0x5bbebc[_0x4325be(0xe3)]);return{..._0x40096f,'tempAuthPath':_0x1a66a8};}catch(_0x5c0fc0){_0x1a66a8&&await _0x5bbebc[_0x4325be(0x10b)](unlink,_0x1a66a8)[_0x4325be(0xa7)](()=>{});throw _0x5c0fc0;}}function _0x32b9(){const _0x4b44c0=['tabs','headers','now','location','contextOptions','setupHeaders','ThkWx','zzlhB','path','indexOf','bSFdp','yNEss','YKXLj','MBbXg','Owwpm','safeMode','TYHRd','yyrvC','extraHTTPHeaders','LxIMh','1552060tfyKFu','GKRdq','locations','Dznfk','catch','ranger-config','IkAHk','parse','Wywsc','--unsafely-treat-insecure-origin-as-secure=http://localhost','--disable-web-security','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','string','xCIjZ','stringify','filter','NSyuX','\x22\x20to\x20legacy\x20path\x20','length','QYpZz','baseUrl','DeTwf','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','--disable-features=WebBluetooth','\x20is\x20not\x20set','env','jmxQy','map','auth.json.enc','12JDAORm','Idlxw','entries','aSFAn','swceB','allow','OwtAW','izqsl','clipboard-write','LRxoB','cdpEndpoint','YjXKd','setupHeader','bHDbU','core','--no-sandbox','1032uFJOoC','legacy','wuJtL','aWead','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','zdIhg','object','jFUXj','playwright-cli','YFSWR','367212bjINwh','FjTFU','GYebm','wwPxN','tempAuthPath','push','pvbKT','args','headless','GleAt','102936dMDqQa','fBKaa','message','cwKgK','diVTg','sessions','OqHmA','chromium','settings.json','isArray','edefV','1OEDkER','cpvDf','POqcN','nova-user-data','hXPSB','4900185HtDSRu','QlmYa','rqEgt','--disable-setuid-sandbox','QqyKe','storageState','AJIEe','76PkIbbr','nzNLo','getuid','ENOENT','140090OiyDjx','352ZYTyKM','IuerW','zUpwY','-cli','WhcZu','408XEjWQz','forWrite','warn','allowInsecureLocalhost','nGMtp','14898AKgNTF','YaoeE','mKFpq','.json','fromEntries','31066EaSncL','utf-8','JXJfB','includes','userAgent','configPath','local','auth.json'];_0x32b9=function(){return _0x4b44c0;};return _0x32b9();}export async function buildRangerwrightCliConfig(_0x4d3875,_0x69a311,_0x110e69,_0x9f825d,_0xbe04c6){const _0x4a4263=_0x15f260,_0x58f737={'Owwpm':function(_0x426260,_0x104583,_0x1c026c){return _0x426260(_0x104583,_0x1c026c);},'Dznfk':function(_0x55fc52,_0x5c4239){return _0x55fc52===_0x5c4239;},'hJkAw':'--no-sandbox','rfSiq':'chromium','MBbXg':'clipboard-read','IkAHk':function(_0x5cae94,_0xb7ebf){return _0x5cae94(_0xb7ebf);},'wwPxN':function(_0x8e93be,_0x2b2894,_0x194b13,_0x1285c6){return _0x8e93be(_0x2b2894,_0x194b13,_0x1285c6);},'LRxoB':function(_0x12dc30,_0x24589b){return _0x12dc30(_0x24589b);},'aWead':function(_0x1f7726,_0x3cdd91,_0x4927be){return _0x1f7726(_0x3cdd91,_0x4927be);},'wabYB':'ranger-config','QqyKe':function(_0x3575b1,_0x4de4eb,_0x5c42ea){return _0x3575b1(_0x4de4eb,_0x5c42ea);}},{storageStatePath:_0x5dcb06,tempAuthPath:_0xd07027}=_0xbe04c6?{'storageStatePath':_0xbe04c6,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x58f737[_0x4a4263(0xa9)](getEnvDir,_0x69a311)),_0x499635=_0x110e69||randomUUID(),_0xea8fb6=_0x58f737[_0x4a4263(0xdd)](join,getRangerDir(),_0x4a4263(0xe9),_0x499635),_0x9b08ec=_0x58f737[_0x4a4263(0xc9)](Boolean,_0x4d3875['cdpEndpoint']),_0x447043=_0x9b08ec?{'browserName':'chromium','cdpEndpoint':_0x4d3875['cdpEndpoint']}:((()=>{const _0x560efb=_0x4a4263,{launchOptions:_0x499e39,contextOptions:_0x1bb644}=_0x58f737[_0x560efb(0x9d)](buildBrowserOptionsFromSettings,_0x4d3875,{'headless':_0x9f825d?![]:_0x4d3875[_0x560efb(0xe2)]??!![],'storageStatePath':_0x5dcb06});if(_0x58f737[_0x560efb(0xa6)](process[_0x560efb(0xfd)]?.(),0x0)){const _0x1c0e7e=[_0x58f737['hJkAw'],'--disable-setuid-sandbox'],_0x571d9c=_0x499e39['args']??[],_0xe1da05=_0x1c0e7e[_0x560efb(0xb2)](_0x2e2ab3=>!_0x571d9c['includes'](_0x2e2ab3));_0x499e39['args']=[..._0x571d9c,..._0xe1da05];}return{'browserName':_0x58f737['rfSiq'],'launchOptions':_0x499e39,'contextOptions':{..._0x1bb644,'permissions':[_0x58f737[_0x560efb(0x9c)],_0x560efb(0xc8)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x9b08ec){const _0x3273cf=_0x447043['contextOptions'];if(_0x3273cf){if(_0x3273cf['userAgent']===undefined)delete _0x3273cf[_0x4a4263(0x113)];if(_0x3273cf['storageState']===undefined)delete _0x3273cf[_0x4a4263(0xf9)];}}const _0xf69e19={'browser':_0x447043,'outputDir':_0xea8fb6,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x14fa67;try{const _0x640c03=_0x58f737[_0x4a4263(0xd3)](join,tmpdir(),_0x58f737['wabYB']);!existsSync(_0x640c03)&&await _0x58f737[_0x4a4263(0xf8)](mkdir,_0x640c03,{'recursive':!![]}),_0x14fa67=_0x58f737['aWead'](join,_0x640c03,_0x69a311+'-'+Date['now']()+'-rangerwright.json'),await _0x58f737['Owwpm'](writeFile,_0x14fa67,JSON[_0x4a4263(0xb1)](_0xf69e19,null,0x2));}catch(_0xff4998){_0xd07027&&await _0x58f737[_0x4a4263(0xa9)](unlink,_0xd07027)[_0x4a4263(0xa7)](()=>{});throw _0xff4998;}return{'configPath':_0x14fa67,'storageStatePath':_0x5dcb06,'tempAuthPath':_0xd07027,'outputDir':_0xea8fb6};}export async function buildNovaActCliConfig(_0x37981d,_0x188c0f,_0x3cd00b,_0x1f2462,_0x457b33){const _0x28a65d=_0x15f260,_0x435085={'gfVjw':function(_0x22589c,_0x3bd250){return _0x22589c(_0x3bd250);},'bHDbU':function(_0x5f4216){return _0x5f4216();},'zdIhg':'sessions','CgXOH':function(_0x3156c9,_0xce1686,_0x52e3b2){return _0x3156c9(_0xce1686,_0x52e3b2);},'DeTwf':'Default','GKRdq':function(_0x57113b,_0x5aff72){return _0x57113b===_0x5aff72;},'zzlhB':_0x28a65d(0xcf),'nzNLo':function(_0x5f5837,_0x8ad5d4){return _0x5f5837(_0x8ad5d4);},'JXJfB':_0x28a65d(0xaf),'mKFpq':function(_0x558156,_0x4fdc17){return _0x558156(_0x4fdc17);}},{storageStatePath:_0x24408e,tempAuthPath:_0x497cfc}=_0x457b33?{'storageStatePath':_0x457b33,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x435085['gfVjw'](getEnvDir,_0x188c0f)),_0x6d09f8=_0x3cd00b||_0x435085[_0x28a65d(0xcd)](randomUUID),_0x38af28=join(_0x435085['bHDbU'](getRangerDir),_0x435085[_0x28a65d(0xd5)],_0x6d09f8),_0x2ef642=_0x435085['CgXOH'](join,_0x38af28,_0x28a65d(0xf2)),_0x11ea07=_0x24408e?join(_0x2ef642,_0x435085[_0x28a65d(0xb8)]):undefined,{launchOptions:_0x20b95e,contextOptions:_0x9a11be}=buildBrowserOptionsFromSettings(_0x37981d,{'headless':_0x1f2462?![]:_0x37981d['headless']??!![],'storageStatePath':_0x24408e});if(_0x435085['GKRdq'](process['getuid']?.(),0x0)){const _0x3304b7=[_0x435085[_0x28a65d(0x11e)],_0x28a65d(0xf7)],_0x447415=_0x20b95e[_0x28a65d(0xe1)]??[],_0x2ec231=_0x3304b7[_0x28a65d(0xb2)](_0x383982=>!_0x447415['includes'](_0x383982));_0x20b95e['args']=[..._0x447415,..._0x2ec231];}const _0x39fcca=typeof _0x20b95e['executablePath']===_0x28a65d(0xaf)?_0x20b95e['executablePath']:_0x24408e?chromium['executablePath']():undefined;return{'storageStatePath':_0x24408e,'tempAuthPath':_0x497cfc,'baseUrl':_0x37981d[_0x28a65d(0xb7)],'headless':_0x435085[_0x28a65d(0xfc)](Boolean,_0x20b95e[_0x28a65d(0xe2)]),'userDataDir':_0x2ef642,'browserProfilePath':_0x11ea07,'executablePath':_0x39fcca,'launchArgs':Array[_0x28a65d(0xed)](_0x20b95e['args'])?_0x20b95e[_0x28a65d(0xe1)][_0x28a65d(0xb2)](_0x2f7671=>typeof _0x2f7671===_0x28a65d(0xaf)):[],'userAgent':_0x435085[_0x28a65d(0xa4)](typeof _0x9a11be[_0x28a65d(0x113)],_0x435085[_0x28a65d(0x111)])?_0x9a11be[_0x28a65d(0x113)]:undefined,'extraHTTPHeaders':_0x9a11be['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x37981d['allowInsecureLocalhost']),'safeMode':Boolean(_0x37981d[_0x28a65d(0x9e)]),'cdpEndpoint':_0x37981d[_0x28a65d(0xca)],'isCdpMode':_0x435085[_0x28a65d(0x10c)](Boolean,_0x37981d['cdpEndpoint'])};}export function getNestedValue(_0x2034c4,_0x10db18){const _0x32f609={'XzDkX':function(_0x2a3525,_0x2cca08){return _0x2a3525===_0x2cca08;},'BQyiQ':function(_0x1045e4,_0x5a37e9){return _0x1045e4!==_0x5a37e9;}},_0x50c486=parseKeyPath(_0x10db18);let _0x2eb4ef=_0x2034c4;for(const _0x341249 of _0x50c486){if(_0x32f609['XzDkX'](_0x2eb4ef,null)||_0x2eb4ef===undefined||_0x32f609['BQyiQ'](typeof _0x2eb4ef,'object'))return undefined;_0x2eb4ef=_0x2eb4ef[_0x341249];}return _0x2eb4ef;}export function setNestedValue(_0x3ce5eb,_0x4f198b,_0xd3f90b){const _0xde4624=_0x15f260,_0x120d8b={'eGkTu':function(_0x190473,_0x38f8c6){return _0x190473(_0x38f8c6);}},_0x229dac=_0x120d8b['eGkTu'](parseKeyPath,_0x4f198b);let _0x139b52=_0x3ce5eb;for(let _0x48684e=0x0;_0x48684e<_0x229dac[_0xde4624(0xb5)]-0x1;_0x48684e++){const _0x2737dd=_0x229dac[_0x48684e];(!(_0x2737dd in _0x139b52)||typeof _0x139b52[_0x2737dd]!==_0xde4624(0xd6))&&(_0x139b52[_0x2737dd]={}),_0x139b52=_0x139b52[_0x2737dd];}_0x139b52[_0x229dac[_0x229dac[_0xde4624(0xb5)]-0x1]]=_0xd3f90b;}export function deleteNestedValue(_0x292f0c,_0x526b27){const _0x3c26fd=_0x15f260,_0xe79900={'iYBfd':function(_0x455e9a,_0x563cfa){return _0x455e9a===_0x563cfa;},'ThkWx':function(_0x4f787b,_0x328ade){return _0x4f787b===_0x328ade;},'edefV':function(_0x4abf6c,_0x429c34){return _0x4abf6c!==_0x429c34;},'mlxlB':function(_0x249433,_0x4f4d73){return _0x249433 in _0x4f4d73;}},_0x1bbca6=parseKeyPath(_0x526b27);let _0x489bf4=_0x292f0c;for(let _0x9430be=0x0;_0x9430be<_0x1bbca6['length']-0x1;_0x9430be++){if(_0xe79900['iYBfd'](_0x489bf4,null)||_0xe79900[_0x3c26fd(0x11d)](_0x489bf4,undefined)||_0xe79900[_0x3c26fd(0xee)](typeof _0x489bf4,_0x3c26fd(0xd6)))return![];_0x489bf4=_0x489bf4[_0x1bbca6[_0x9430be]];}if(_0x489bf4===null||_0x489bf4===undefined||_0xe79900[_0x3c26fd(0xee)](typeof _0x489bf4,_0x3c26fd(0xd6)))return![];const _0x57a186=_0x1bbca6[_0x1bbca6[_0x3c26fd(0xb5)]-0x1];if(_0xe79900['mlxlB'](_0x57a186,_0x489bf4))return delete _0x489bf4[_0x57a186],!![];return![];}function parseKeyPath(_0x1ce1dd){const _0x3056b7=_0x15f260,_0x58ec79={'YFSWR':function(_0x4913ca,_0x4b96e8){return _0x4913ca===_0x4b96e8;},'OqHmA':_0x3056b7(0x118),'qqlRy':_0x3056b7(0xcc),'wuJtL':_0x3056b7(0x11c)},_0x11f993=_0x1ce1dd['split']('.');return _0x58ec79[_0x3056b7(0xd9)](_0x11f993[0x0],'header')&&(_0x11f993[0x0]=_0x58ec79[_0x3056b7(0xea)]),_0x58ec79[_0x3056b7(0xd9)](_0x11f993[0x0],_0x58ec79['qqlRy'])&&(_0x11f993[0x0]=_0x58ec79[_0x3056b7(0xd2)]),_0x11f993;}export function formatSettings(_0x54a33d,_0x42d1c2=0x0){const _0x576945=_0x15f260,_0x2ba1cf=[],_0x6b0980='\x20\x20'['repeat'](_0x42d1c2);for(const [_0x460ae8,_0x3f6ea8]of Object['entries'](_0x54a33d)){if(_0x3f6ea8===undefined)continue;if(typeof _0x3f6ea8===_0x576945(0xd6)&&_0x3f6ea8!==null){_0x2ba1cf['push'](''+_0x6b0980+_0x460ae8+':');for(const [_0x5eb6cf,_0x425a5f]of Object[_0x576945(0xc2)](_0x3f6ea8)){_0x2ba1cf[_0x576945(0xdf)](_0x6b0980+'\x20\x20'+_0x5eb6cf+':\x20'+_0x425a5f);}}else _0x2ba1cf[_0x576945(0xdf)](''+_0x6b0980+_0x460ae8+':\x20'+_0x3f6ea8);}return _0x2ba1cf['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x42a0ee,_0x33e4bb){const _0x17f124=_0x51c2,_0x471484=_0x42a0ee();while(!![]){try{const _0x1707b6=-parseInt(_0x17f124(0x92))/0x1+-parseInt(_0x17f124(0x99))/0x2*(parseInt(_0x17f124(0x94))/0x3)+parseInt(_0x17f124(0x93))/0x4+parseInt(_0x17f124(0x91))/0x5+parseInt(_0x17f124(0x8f))/0x6+parseInt(_0x17f124(0x8c))/0x7*(parseInt(_0x17f124(0x97))/0x8)+parseInt(_0x17f124(0x8e))/0x9*(-parseInt(_0x17f124(0x95))/0xa);if(_0x1707b6===_0x33e4bb)break;else _0x471484['push'](_0x471484['shift']());}catch(_0x2a8d2f){_0x471484['push'](_0x471484['shift']());}}}(_0x1fe6,0x1ff2b));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x51c2(_0x503b1e,_0x33da26){_0x503b1e=_0x503b1e-0x8c;const _0x1fe6d3=_0x1fe6();let _0x51c2fb=_0x1fe6d3[_0x503b1e];return _0x51c2fb;}function _0x1fe6(){const _0x25fe6e=['9TSefOQ','20uAICHX','fpkJV','2360wbNcDS','ranger/SKILL.md','95638LOrnVK','5747jBdBgx','qSAZy','1275903XwSiBL','1472208YcTTIc','skills','762010OKNAha','108660gcTteZ','106180zfLigW'];_0x1fe6=function(){return _0x25fe6e;};return _0x1fe6();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3d86f1){const _0x3d0d82=_0x51c2,_0x15483a={'fpkJV':function(_0x213b19,_0x562dc0,_0x368018,_0x41e56b,_0xbed51e){return _0x213b19(_0x562dc0,_0x368018,_0x41e56b,_0xbed51e);},'qSAZy':_0x3d0d82(0x90),'mFCze':function(_0x119dea,_0xd83eab,_0x276cd4){return _0x119dea(_0xd83eab,_0x276cd4);},'kHrAE':'utf-8'},_0x4262d0=_0x15483a[_0x3d0d82(0x96)](join,__dirname,'..','..',_0x15483a[_0x3d0d82(0x8d)]),_0x557192=_0x15483a['mFCze'](join,_0x4262d0,_0x3d86f1);try{return _0x15483a['mFCze'](readFileSync,_0x557192,_0x15483a['kHrAE']);}catch{return'';}}export function getRangerSkillContent(){const _0x154565=_0x51c2;return readSkillContent(_0x154565(0x98));}
1
+ (function(_0x143f6b,_0x4fa601){const _0x16e2ea=_0x3997,_0x9ae4a5=_0x143f6b();while(!![]){try{const _0x1046aa=-parseInt(_0x16e2ea(0x115))/0x1*(-parseInt(_0x16e2ea(0x112))/0x2)+parseInt(_0x16e2ea(0x117))/0x3+parseInt(_0x16e2ea(0x111))/0x4+-parseInt(_0x16e2ea(0x119))/0x5+-parseInt(_0x16e2ea(0x118))/0x6+parseInt(_0x16e2ea(0x116))/0x7*(-parseInt(_0x16e2ea(0x110))/0x8)+parseInt(_0x16e2ea(0x114))/0x9;if(_0x1046aa===_0x4fa601)break;else _0x9ae4a5['push'](_0x9ae4a5['shift']());}catch(_0x4f9eb0){_0x9ae4a5['push'](_0x9ae4a5['shift']());}}}(_0x1392,0x36162));import{readFileSync}from'fs';function _0x1392(){const _0x3ddc90=['5851gkqkxI','189539eKrGTl','1146153pGBnJW','2169672TnECpt','1510015XlKkML','8XMhCvs','171560aMmYZJ','70oUbvbx','BzIyA','2542536aDkIZq'];_0x1392=function(){return _0x3ddc90;};return _0x1392();}function _0x3997(_0x1a5fee,_0x1bdbbd){_0x1a5fee=_0x1a5fee-0x110;const _0x139294=_0x1392();let _0x399756=_0x139294[_0x1a5fee];return _0x399756;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x156486){const _0x2b269e={'KFzOk':function(_0x344172,_0x38afc3,_0x2237ec){return _0x344172(_0x38afc3,_0x2237ec);}},_0x3b9871=join(__dirname,'..','..','skills'),_0x3a3e45=join(_0x3b9871,_0x156486);try{return _0x2b269e['KFzOk'](readFileSync,_0x3a3e45,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x2bd00f=_0x3997,_0x403d38={'BzIyA':function(_0x3f262b,_0xc0bd3c){return _0x3f262b(_0xc0bd3c);}};return _0x403d38[_0x2bd00f(0x113)](readSkillContent,'ranger/SKILL.md');}
@@ -1 +1 @@
1
- function _0x5058(_0x486140,_0x596a0f){_0x486140=_0x486140-0xbd;const _0x4002cf=_0x4002();let _0x50581f=_0x4002cf[_0x486140];return _0x50581f;}const _0x71c45b=_0x5058;(function(_0xbfa259,_0xb3ee0c){const _0x2da4e3=_0x5058,_0xe75eaa=_0xbfa259();while(!![]){try{const _0x41cbaa=parseInt(_0x2da4e3(0xd3))/0x1*(-parseInt(_0x2da4e3(0xd8))/0x2)+parseInt(_0x2da4e3(0xca))/0x3*(-parseInt(_0x2da4e3(0xbe))/0x4)+parseInt(_0x2da4e3(0xdd))/0x5+-parseInt(_0x2da4e3(0xc6))/0x6*(parseInt(_0x2da4e3(0xd9))/0x7)+-parseInt(_0x2da4e3(0xd2))/0x8+-parseInt(_0x2da4e3(0xcf))/0x9+parseInt(_0x2da4e3(0xcc))/0xa;if(_0x41cbaa===_0xb3ee0c)break;else _0xe75eaa['push'](_0xe75eaa['shift']());}catch(_0x3dcb94){_0xe75eaa['push'](_0xe75eaa['shift']());}}}(_0x4002,0xb7819));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=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x71c45b(0xc2),'feature-tracker'];export async function installSkill(_0x552a14,_0x235bb7={}){const _0xa2b726=_0x71c45b,_0x38fe35={'wpkgm':_0xa2b726(0xd0),'ggqiY':function(_0x4c69bf){return _0x4c69bf();},'PiUhM':function(_0x225f97,_0x207d45,_0x53177d){return _0x225f97(_0x207d45,_0x53177d);},'TtVlh':function(_0x18c60e,_0x660e51,_0x48fef7){return _0x18c60e(_0x660e51,_0x48fef7);},'LFGHS':_0xa2b726(0xd4),'flMZy':function(_0x22c7ed,_0x162a6d){return _0x22c7ed(_0x162a6d);},'IMTgI':function(_0xccdae8,_0x7d08c1){return _0xccdae8&&_0x7d08c1;},'HuBKl':function(_0x489cae,_0xf2951d){return _0x489cae===_0xf2951d;},'rQCFK':function(_0x490e2c,_0x5433df,_0x33e1b8){return _0x490e2c(_0x5433df,_0x33e1b8);},'rZUgO':function(_0x2ea7bd,_0x30e2c1,_0x5be85b){return _0x2ea7bd(_0x30e2c1,_0x5be85b);},'TuqKR':function(_0x53e0bd,_0xd3fa69,_0x2cbfb7){return _0x53e0bd(_0xd3fa69,_0x2cbfb7);},'KFlpE':'utf-8','FzqEc':function(_0x4e7716,_0xd1851e,_0x1aad5d,_0x450f78){return _0x4e7716(_0xd1851e,_0x1aad5d,_0x450f78);},'LSGWc':function(_0x1272f3,_0x593b13,_0x8cb231,_0x90d9){return _0x1272f3(_0x593b13,_0x8cb231,_0x90d9);}},{level:level=_0x38fe35['wpkgm'],cliVersion:_0xc01fe4,platform:platform=_0xa2b726(0xc1)}=_0x235bb7,_0x56efba=_0x38fe35['ggqiY'](getSourceSkillsDir),_0x5823a3=_0x38fe35[_0xa2b726(0xda)](join,_0x56efba,_0x552a14),_0x1b930c=_0x38fe35['TtVlh'](join,_0x56efba,_0x552a14+_0xa2b726(0xd6)),_0x3ebc19=existsSync(_0x5823a3)&&statSync(_0x5823a3)[_0xa2b726(0xdf)]()&&existsSync(join(_0x5823a3,_0x38fe35[_0xa2b726(0xce)])),_0x32a6ff=_0x38fe35['flMZy'](existsSync,_0x1b930c);if(_0x38fe35['IMTgI'](!_0x3ebc19,!_0x32a6ff))return console[_0xa2b726(0xd1)]('\x20\x20Skill\x20not\x20found:\x20'+_0x552a14),![];const _0x4a03b2=_0x38fe35['HuBKl'](platform,_0xa2b726(0xd7))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5ef416=_0x38fe35[_0xa2b726(0xbd)](join,_0x4a03b2,_0x552a14);await _0x38fe35['rZUgO'](mkdir,_0x5ef416,{'recursive':!![]});let _0x3ef4ae,_0x4de45a=[];if(_0x3ebc19){const _0x3f6b2d=await readdir(_0x5823a3),_0x98e0f9=_0x3f6b2d[_0xa2b726(0xdb)](_0x92989e=>_0x92989e[_0xa2b726(0xc8)](_0xa2b726(0xd6)));for(const _0x1c415c of _0x98e0f9){const _0x1e5fd9=_0x38fe35[_0xa2b726(0xc7)](join,_0x5823a3,_0x1c415c),_0x4e15cb=join(_0x5ef416,_0x1c415c);await copyFile(_0x1e5fd9,_0x4e15cb),_0x4de45a['push'](_0x1c415c);}_0x3ef4ae=await readFile(_0x38fe35[_0xa2b726(0xbd)](join,_0x5823a3,_0x38fe35[_0xa2b726(0xce)]),_0xa2b726(0xdc));}else{_0x3ef4ae=await readFile(_0x1b930c,_0x38fe35['KFlpE']);const _0x2dd03a=join(_0x5ef416,_0x38fe35[_0xa2b726(0xce)]);await _0x38fe35[_0xa2b726(0xde)](writeFile,_0x2dd03a,_0x3ef4ae,_0x38fe35['KFlpE']),_0x4de45a['push'](_0xa2b726(0xd4));}const {name:_0x4d6a9a}=_0x38fe35['flMZy'](parseFrontmatter,_0x3ef4ae);return console['log'](_0xa2b726(0xcb)+_0x4d6a9a),console[_0xa2b726(0xbf)]('\x20\x20Location:\x20'+_0x5ef416),_0x4de45a[_0xa2b726(0xc4)]>0x1&&console[_0xa2b726(0xbf)](_0xa2b726(0xe1)+_0x4de45a['join'](',\x20')),_0x38fe35['LSGWc'](logLocalAgentInstallation,_0x552a14,{'skillDisplayName':_0x4d6a9a,'installLevel':level},_0xc01fe4)[_0xa2b726(0xc9)](()=>{}),!![];}function getSourceSkillsDir(){const _0x33ab8=_0x71c45b,_0xa7a3f1={'XWdHc':function(_0x354999,_0x3540a2,_0x249869,_0x4b0ca8,_0x4c0c7b){return _0x354999(_0x3540a2,_0x249869,_0x4b0ca8,_0x4c0c7b);},'iXgHw':function(_0x490c83,_0x489f9f,_0x221408,_0x561b62,_0x43ced4,_0x1ea1cf){return _0x490c83(_0x489f9f,_0x221408,_0x561b62,_0x43ced4,_0x1ea1cf);},'yRmCY':_0x33ab8(0xc0)},_0xb53fd3=[_0xa7a3f1[_0x33ab8(0xe0)](join,__dirname,'..','..','skills'),_0xa7a3f1['iXgHw'](join,__dirname,'..','..','..',_0xa7a3f1['yRmCY'])];for(const _0x52da of _0xb53fd3){if(existsSync(_0x52da))return _0x52da;}return _0xb53fd3[0x0];}function _0x4002(){const _0x18f27e=['filter','utf-8','368015YmxinF','FzqEc','isDirectory','XWdHc','\x20\x20Files:\x20','rQCFK','17452JCPDUj','log','skills','claude','bug-bash','trim','length','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','156EaYDPf','TuqKR','endsWith','catch','372KQTFfN','\x20\x20Installed\x20skill:\x20','29340360MCSVAj','match','LFGHS','1401246QKcPvz','project','warn','1739664fxwdOD','55624dpwrXt','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20','.md','opencode','26uwUlwX','166579pYEFOL','PiUhM'];_0x4002=function(){return _0x18f27e;};return _0x4002();}function parseFrontmatter(_0x31ce73){const _0x8eda56=_0x71c45b,_0x17f58f=_0x31ce73[_0x8eda56(0xcd)](/^---\n([\s\S]+?)\n---/);if(!_0x17f58f)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3599b9=_0x17f58f[0x1],_0x5d12ee=_0x3599b9[_0x8eda56(0xcd)](/name:\s*(.+)/),_0x318758=_0x3599b9[_0x8eda56(0xcd)](/description:\s*"?(.+?)"?\n/);return{'name':_0x5d12ee?.[0x1][_0x8eda56(0xc3)]()||'','description':_0x318758?.[0x1][_0x8eda56(0xc3)]()||''};}export async function removeSkill(_0x50cd8c,_0x37a4c1){const _0x507e0b=_0x71c45b,_0x3cc637={'HrneC':function(_0x2efd70,_0x247c8a){return _0x2efd70(_0x247c8a);},'EwUQG':function(_0x1280a6,_0x1538c3){return _0x1280a6(_0x1538c3);}},_0x1d4814=_0x3cc637['HrneC'](getSkillsDir,_0x37a4c1),_0x4adced=join(_0x1d4814,_0x50cd8c);if(!_0x3cc637['EwUQG'](existsSync,_0x4adced))return![];try{return await rm(_0x4adced,{'recursive':!![]}),console[_0x507e0b(0xbf)](_0x507e0b(0xd5)+_0x50cd8c),!![];}catch{return console['warn'](_0x507e0b(0xc5)+_0x50cd8c),![];}}
1
+ const _0x5e2f5c=_0x4242;function _0x4242(_0x5ca055,_0x40c51a){_0x5ca055=_0x5ca055-0x186;const _0x4d72eb=_0x4d72();let _0x424287=_0x4d72eb[_0x5ca055];return _0x424287;}(function(_0x38c7c3,_0x2114a9){const _0x58dee3=_0x4242,_0x368d6b=_0x38c7c3();while(!![]){try{const _0x4d6cf8=-parseInt(_0x58dee3(0x19b))/0x1*(parseInt(_0x58dee3(0x191))/0x2)+-parseInt(_0x58dee3(0x1a3))/0x3+parseInt(_0x58dee3(0x19a))/0x4*(parseInt(_0x58dee3(0x1a4))/0x5)+-parseInt(_0x58dee3(0x187))/0x6*(-parseInt(_0x58dee3(0x1a0))/0x7)+-parseInt(_0x58dee3(0x19c))/0x8*(parseInt(_0x58dee3(0x188))/0x9)+-parseInt(_0x58dee3(0x1a8))/0xa+parseInt(_0x58dee3(0x1a6))/0xb;if(_0x4d6cf8===_0x2114a9)break;else _0x368d6b['push'](_0x368d6b['shift']());}catch(_0x2bca57){_0x368d6b['push'](_0x368d6b['shift']());}}}(_0x4d72,0x37ff5));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=[_0x5e2f5c(0x18e)];export const DEPRECATED_SKILLS=[_0x5e2f5c(0x190),'bug-bash','feature-tracker'];function _0x4d72(){const _0x4aec8f=['filter','1908mwzgXp','4721BykIXL','1650624cumSlc','IuRIx','kjkAL','warn','82439rBeoAJ','length','VrvHQ','1019850LRBSJO','4145cxayEp','gjOkv','8456382IbJzYp','pzVxw','3211620EAHvPr','opencode','MfVTk','yfFdz','78QRzuiF','18sQJwBu','SKILL.md','Invalid\x20skill\x20frontmatter','skills','XZPWt','push','ranger','JVRfK','e2e-test-recommender','6yLUhFx','utf-8','isDirectory','log','.md','rFftu','match','KZWZT'];_0x4d72=function(){return _0x4aec8f;};return _0x4d72();}export async function installSkill(_0x2fae05,_0x2ddb25={}){const _0x2bcdd9=_0x5e2f5c,_0x1c2e93={'VrvHQ':function(_0x160b17){return _0x160b17();},'kjkAL':function(_0x4d0b83,_0x3f2f8b){return _0x4d0b83(_0x3f2f8b);},'yOWAu':function(_0x328651,_0x2948ac){return _0x328651&&_0x2948ac;},'IuRIx':function(_0x421c72,_0x434e8e){return _0x421c72===_0x434e8e;},'CsOjW':function(_0x50986a,_0x21662e,_0x3ef56d){return _0x50986a(_0x21662e,_0x3ef56d);},'pzVxw':function(_0x44c8f4,_0xead9be,_0x365f69){return _0x44c8f4(_0xead9be,_0x365f69);},'XZPWt':_0x2bcdd9(0x189),'yfFdz':'utf-8','rFftu':function(_0x309525,_0x4cbbef,_0x372478){return _0x309525(_0x4cbbef,_0x372478);},'KZWZT':function(_0x2d5f02,_0x2aa80b,_0x13e9ba,_0x4d5be4){return _0x2d5f02(_0x2aa80b,_0x13e9ba,_0x4d5be4);},'IYJgR':function(_0x152bb3,_0x547933){return _0x152bb3>_0x547933;}},{level:level='project',cliVersion:_0x2bd3b1,platform:platform='claude'}=_0x2ddb25,_0x275a1b=_0x1c2e93[_0x2bcdd9(0x1a2)](getSourceSkillsDir),_0x19799c=join(_0x275a1b,_0x2fae05),_0x446068=join(_0x275a1b,_0x2fae05+_0x2bcdd9(0x195)),_0x19edaa=_0x1c2e93['kjkAL'](existsSync,_0x19799c)&&_0x1c2e93[_0x2bcdd9(0x19e)](statSync,_0x19799c)[_0x2bcdd9(0x193)]()&&_0x1c2e93['kjkAL'](existsSync,join(_0x19799c,_0x2bcdd9(0x189))),_0x3978a7=_0x1c2e93['kjkAL'](existsSync,_0x446068);if(_0x1c2e93['yOWAu'](!_0x19edaa,!_0x3978a7))return console[_0x2bcdd9(0x19f)]('\x20\x20Skill\x20not\x20found:\x20'+_0x2fae05),![];const _0x36f9f8=_0x1c2e93[_0x2bcdd9(0x19d)](platform,_0x2bcdd9(0x1a9))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x48d711=_0x1c2e93['CsOjW'](join,_0x36f9f8,_0x2fae05);await mkdir(_0x48d711,{'recursive':!![]});let _0x545abf,_0x3c8a9a=[];if(_0x19edaa){const _0x4bd8b4=await readdir(_0x19799c),_0x4abea9=_0x4bd8b4[_0x2bcdd9(0x199)](_0x5b380e=>_0x5b380e['endsWith']('.md'));for(const _0x2d541e of _0x4abea9){const _0x4aecce=_0x1c2e93[_0x2bcdd9(0x1a7)](join,_0x19799c,_0x2d541e),_0x326604=join(_0x48d711,_0x2d541e);await copyFile(_0x4aecce,_0x326604),_0x3c8a9a[_0x2bcdd9(0x18d)](_0x2d541e);}_0x545abf=await readFile(_0x1c2e93['pzVxw'](join,_0x19799c,_0x1c2e93[_0x2bcdd9(0x18c)]),_0x1c2e93[_0x2bcdd9(0x186)]);}else{_0x545abf=await readFile(_0x446068,_0x2bcdd9(0x192));const _0x574098=_0x1c2e93[_0x2bcdd9(0x196)](join,_0x48d711,_0x1c2e93['XZPWt']);await _0x1c2e93[_0x2bcdd9(0x198)](writeFile,_0x574098,_0x545abf,'utf-8'),_0x3c8a9a['push'](_0x1c2e93[_0x2bcdd9(0x18c)]);}const {name:_0x31d426}=parseFrontmatter(_0x545abf);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x31d426),console['log']('\x20\x20Location:\x20'+_0x48d711),_0x1c2e93['IYJgR'](_0x3c8a9a[_0x2bcdd9(0x1a1)],0x1)&&console[_0x2bcdd9(0x194)]('\x20\x20Files:\x20'+_0x3c8a9a['join'](',\x20')),logLocalAgentInstallation(_0x2fae05,{'skillDisplayName':_0x31d426,'installLevel':level},_0x2bd3b1)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4a6670=_0x5e2f5c,_0x138642={'gjOkv':_0x4a6670(0x18b),'MfVTk':function(_0x8ca923,_0x283549,_0x34b88b,_0x4b7112,_0x3d4988,_0x360358){return _0x8ca923(_0x283549,_0x34b88b,_0x4b7112,_0x3d4988,_0x360358);}},_0x2ddc62=[join(__dirname,'..','..',_0x138642[_0x4a6670(0x1a5)]),_0x138642[_0x4a6670(0x1aa)](join,__dirname,'..','..','..',_0x138642['gjOkv'])];for(const _0x3d196f of _0x2ddc62){if(existsSync(_0x3d196f))return _0x3d196f;}return _0x2ddc62[0x0];}function parseFrontmatter(_0x25e7cb){const _0x11e722=_0x5e2f5c,_0x6a947={'MefAw':_0x11e722(0x18a)},_0x3105ca=_0x25e7cb['match'](/^---\n([\s\S]+?)\n---/);if(!_0x3105ca)throw new Error(_0x6a947['MefAw']);const _0x1c5fef=_0x3105ca[0x1],_0x32102d=_0x1c5fef[_0x11e722(0x197)](/name:\s*(.+)/),_0x133580=_0x1c5fef[_0x11e722(0x197)](/description:\s*"?(.+?)"?\n/);return{'name':_0x32102d?.[0x1]['trim']()||'','description':_0x133580?.[0x1]['trim']()||''};}export async function removeSkill(_0x30434a,_0x38a9ae){const _0x5a73fc=_0x5e2f5c,_0x50493e={'JVRfK':function(_0x3fc577,_0x390cf9){return _0x3fc577(_0x390cf9);},'ICymu':function(_0x203904,_0x28084f,_0x8f3ed7){return _0x203904(_0x28084f,_0x8f3ed7);}},_0x451cc6=_0x50493e['JVRfK'](getSkillsDir,_0x38a9ae),_0x427652=_0x50493e['ICymu'](join,_0x451cc6,_0x30434a);if(!_0x50493e[_0x5a73fc(0x18f)](existsSync,_0x427652))return![];try{return await rm(_0x427652,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x30434a),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x30434a),![];}}
@@ -1 +1 @@
1
- const _0x569038=_0x5b66;(function(_0x3adcc8,_0x31ef91){const _0x2c9f3b=_0x5b66,_0x3721a9=_0x3adcc8();while(!![]){try{const _0x8a8feb=-parseInt(_0x2c9f3b(0xed))/0x1+-parseInt(_0x2c9f3b(0xe9))/0x2*(parseInt(_0x2c9f3b(0xdd))/0x3)+-parseInt(_0x2c9f3b(0xad))/0x4+parseInt(_0x2c9f3b(0xf3))/0x5+-parseInt(_0x2c9f3b(0xf0))/0x6+parseInt(_0x2c9f3b(0xee))/0x7*(-parseInt(_0x2c9f3b(0xe4))/0x8)+parseInt(_0x2c9f3b(0xdc))/0x9;if(_0x8a8feb===_0x31ef91)break;else _0x3721a9['push'](_0x3721a9['shift']());}catch(_0xca097f){_0x3721a9['push'](_0x3721a9['shift']());}}}(_0x3c0f,0x45456));function _0x3c0f(){const _0x77f15d=['rooTt','mVvDH','OovYr','66fbvSCc','length','floor','IiTaB','493749iGZrcm','21zkRQUH','WvrOE','323550CIxeBP','HgZFb','exit','195700CVqOni','has','BaQWa','PVKBB','361292hUnIiE','SldNy','vCvJu','concat','PWgsq','whFeB','from','push','JKcZd','clusters','lEoRr','xTLDS','xCdZd','LLvEM','timestamp','gNhuu','YiYBv','BMxpr','OewBj','alloc','bodyAfterTimestamp','CpKpS','maxTicks','tRcgF','SZYiH','YeUmI','HYjQj','slice','UiSaH','pow','\x20files\x20->\x20','eMeBS','VSAsE','header','log','oGiGI','tDIFr','RQaPn','JFZux','stitchWebmFiles.ts','UNPuk','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','uWSQY','oJMAn','xdUcl','tRNbw','AYGzF','10949391rZEBLE','22791QBlliO','EtFcX','BuKJn','AUSgi','PgaGD','yMzOk','argv','222152JcSPmc','DpMpX'];_0x3c0f=function(){return _0x77f15d;};return _0x3c0f();}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(_0x1a7fba,_0x3fae18){const _0x2ac671=_0x5b66,_0x29c61e={'BYCjz':function(_0x7330bc,_0x3dea85){return _0x7330bc>_0x3dea85;},'YiYBv':function(_0x107b46,_0x21f72d){return _0x107b46&_0x21f72d;},'tRNbw':function(_0x1464de,_0x1abb68){return _0x1464de-_0x1abb68;},'aWXzs':function(_0x1abdba,_0x5399fd){return _0x1abdba<_0x5399fd;},'VmWNz':function(_0x3ad7f7,_0x2b382b){return _0x3ad7f7+_0x2b382b;},'JKcZd':function(_0xd2c7d6,_0x145479){return _0xd2c7d6*_0x145479;},'DpMpX':function(_0x1d8781,_0x4666d1){return _0x1d8781+_0x4666d1;}};if(_0x3fae18>=_0x1a7fba['length'])return[0x0,0x0];const _0x494296=_0x1a7fba[_0x3fae18];let _0x15e978=0x1,_0x330c5c=0x80;while(_0x15e978<=0x8&&!(_0x494296&_0x330c5c)){_0x15e978++,_0x330c5c>>=0x1;}if(_0x29c61e['BYCjz'](_0x3fae18+_0x15e978,_0x1a7fba[_0x2ac671(0xea)]))return[0x0,0x0];let _0x19686f=_0x29c61e[_0x2ac671(0xbd)](_0x494296,_0x29c61e[_0x2ac671(0xda)](_0x330c5c,0x1));for(let _0x634530=0x1;_0x29c61e['aWXzs'](_0x634530,_0x15e978);_0x634530++){_0x19686f=_0x29c61e['VmWNz'](_0x29c61e[_0x2ac671(0xb5)](_0x19686f,0x100),_0x1a7fba[_0x29c61e[_0x2ac671(0xe5)](_0x3fae18,_0x634530)]);}return[_0x19686f,_0x15e978];}function readId(_0x530813,_0x1faa77){const _0x49cb61=_0x5b66,_0x2874d8={'xBeop':function(_0xae23a8,_0x2ebc54){return _0xae23a8>=_0x2ebc54;},'OovYr':function(_0x1137d7,_0x27d9b1){return _0x1137d7>=_0x27d9b1;},'JFZux':function(_0x5ee9fc,_0x23b9f4){return _0x5ee9fc>=_0x23b9f4;},'uWSQY':function(_0x511c18,_0x30504b){return _0x511c18+_0x30504b;},'sazkS':function(_0x37c212,_0x44ea63){return _0x37c212<_0x44ea63;},'FLKrj':function(_0x57dc81,_0x22b233){return _0x57dc81*_0x22b233;},'PlokQ':function(_0x6ef1bc,_0x827f27){return _0x6ef1bc+_0x827f27;}};if(_0x2874d8['xBeop'](_0x1faa77,_0x530813[_0x49cb61(0xea)]))return[0x0,0x0];const _0x4084a0=_0x530813[_0x1faa77];let _0x56da06;if(_0x4084a0>=0x80)_0x56da06=0x1;else{if(_0x2874d8[_0x49cb61(0xe8)](_0x4084a0,0x40))_0x56da06=0x2;else{if(_0x4084a0>=0x20)_0x56da06=0x3;else{if(_0x2874d8[_0x49cb61(0xd3)](_0x4084a0,0x10))_0x56da06=0x4;else return[_0x4084a0,0x1];}}}if(_0x2874d8[_0x49cb61(0xd7)](_0x1faa77,_0x56da06)>_0x530813[_0x49cb61(0xea)])return[0x0,0x0];let _0x1a13ee=0x0;for(let _0x3f97c5=0x0;_0x2874d8['sazkS'](_0x3f97c5,_0x56da06);_0x3f97c5++){_0x1a13ee=_0x2874d8['FLKrj'](_0x1a13ee,0x100)+_0x530813[_0x2874d8['PlokQ'](_0x1faa77,_0x3f97c5)];}return[_0x1a13ee,_0x56da06];}function readUint(_0x3291e4,_0x5308a5,_0x8be05a){const _0x3d4dcb=_0x5b66,_0x5710fe={'nZyiw':function(_0x5c203d,_0x140ec3){return _0x5c203d<_0x140ec3;},'BMxpr':function(_0x3fd942,_0xc4088){return _0x3fd942+_0xc4088;}};let _0x5a09f2=0x0;for(let _0x483c54=0x0;_0x5710fe['nZyiw'](_0x483c54,_0x8be05a);_0x483c54++){_0x5a09f2=_0x5710fe[_0x3d4dcb(0xbe)](_0x5a09f2*0x100,_0x3291e4[_0x5308a5+_0x483c54]);}return _0x5a09f2;}function isUnknownSize(_0x16c846,_0x289b97){const _0x4cd650=_0x5b66,_0x1ed84a={'lEoRr':function(_0x4b528d,_0x2b671e){return _0x4b528d===_0x2b671e;},'LYGlK':function(_0x40f493,_0x1b6337){return _0x40f493*_0x1b6337;}};return _0x1ed84a[_0x4cd650(0xb7)](_0x16c846,Math[_0x4cd650(0xca)](0x2,_0x1ed84a['LYGlK'](0x7,_0x289b97))-0x1);}function writeVint(_0xd684a2,_0x4f7f66){const _0x3e9508=_0x5b66,_0x99ba36={'rooTt':function(_0x3c789a,_0x15bc97){return _0x3c789a<_0x15bc97;},'IiTaB':function(_0x3bc057,_0x5e491c){return _0x3bc057*_0x5e491c;},'XYiIu':function(_0xd9dc85,_0x56aa79){return _0xd9dc85>=_0x56aa79;},'PTOlE':function(_0x5295ff,_0x4a7c15){return _0x5295ff-_0x4a7c15;}};let _0x1a1769=_0x4f7f66||0x1;while(_0x99ba36[_0x3e9508(0xe6)](Math[_0x3e9508(0xca)](0x2,_0x99ba36[_0x3e9508(0xec)](0x7,_0x1a1769))-0x2,_0xd684a2))_0x1a1769++;const _0x38e0b4=Buffer[_0x3e9508(0xc0)](_0x1a1769);for(let _0x5da985=_0x1a1769-0x1;_0x99ba36['XYiIu'](_0x5da985,0x0);_0x5da985--){_0x38e0b4[_0x5da985]=_0xd684a2&0xff,_0xd684a2=Math[_0x3e9508(0xeb)](_0xd684a2/0x100);}return _0x38e0b4[0x0]|=0x1<<_0x99ba36['PTOlE'](0x8,_0x1a1769),_0x38e0b4;}function writeUint(_0x185854,_0x3ebe58){const _0x479822=_0x5b66,_0xdd0a24={'lwCsO':function(_0x59c69c,_0x3d830e){return _0x59c69c>=_0x3d830e;},'tRcgF':function(_0x28a2b9,_0x109c1f){return _0x28a2b9&_0x109c1f;},'PVKBB':function(_0x216b0c,_0x8c6727){return _0x216b0c/_0x8c6727;}},_0x81c265=Buffer[_0x479822(0xc0)](_0x3ebe58);for(let _0x39aef0=_0x3ebe58-0x1;_0xdd0a24['lwCsO'](_0x39aef0,0x0);_0x39aef0--){_0x81c265[_0x39aef0]=_0xdd0a24[_0x479822(0xc4)](_0x185854,0xff),_0x185854=Math['floor'](_0xdd0a24[_0x479822(0xac)](_0x185854,0x100));}return _0x81c265;}function writeUnknownSizeVint(_0x33fcab){const _0x3148ef=_0x5b66,_0x1806f0={'EtFcX':function(_0x5f3eff,_0x10fc2a){return _0x5f3eff>>_0x10fc2a;},'wzJpd':function(_0x34797f,_0xdd9c9e){return _0x34797f-_0xdd9c9e;}},_0x137764=Buffer['alloc'](_0x33fcab,0xff);return _0x137764[0x0]=_0x1806f0[_0x3148ef(0xde)](0xff,_0x1806f0['wzJpd'](_0x33fcab,0x1)),_0x137764;}function uintSize(_0x4806db){const _0x3849de=_0x5b66,_0x290fa9={'PxUEL':function(_0x427147,_0x107cdb){return _0x427147===_0x107cdb;},'SZYiH':function(_0x579a0a,_0xd0022d){return _0x579a0a/_0xd0022d;}};if(_0x290fa9['PxUEL'](_0x4806db,0x0))return 0x1;let _0x5c832b=0x0,_0x2588e3=_0x4806db;while(_0x2588e3>0x0){_0x5c832b++,_0x2588e3=Math[_0x3849de(0xeb)](_0x290fa9[_0x3849de(0xc5)](_0x2588e3,0x100));}return _0x5c832b;}function findTimestampScale(_0x4e966a,_0x56dcbc){const _0x3d4ce9=_0x5b66,_0xd58dac={'PgaGD':function(_0x437139,_0x44f2c1){return _0x437139+_0x44f2c1;},'CUMXc':function(_0x258e23,_0x471c5a){return _0x258e23<_0x471c5a;},'BuKJn':function(_0x46523d,_0x2c0382,_0x4d0a43){return _0x46523d(_0x2c0382,_0x4d0a43);},'UNPuk':function(_0x20b333,_0x5edf7d){return _0x20b333===_0x5edf7d;},'grHqO':function(_0x43a09a,_0x2267c3){return _0x43a09a+_0x2267c3;},'mVvDH':function(_0x6806e5,_0x5121d2,_0x1dbb6a){return _0x6806e5(_0x5121d2,_0x1dbb6a);},'xCdZd':function(_0x2ef130,_0x417f42,_0x427e85,_0x171ef0){return _0x2ef130(_0x417f42,_0x427e85,_0x171ef0);},'KUSXl':function(_0x9dffd,_0x369431){return _0x9dffd+_0x369431;}};let _0xf4b434=_0x56dcbc;const _0x128b76=Math['min'](_0x4e966a['length'],_0xd58dac['PgaGD'](_0x56dcbc,0x2710));while(_0xd58dac['CUMXc'](_0xf4b434,_0x128b76)){const [_0x38bfde,_0x4ac107]=_0xd58dac[_0x3d4ce9(0xdf)](readId,_0x4e966a,_0xf4b434),[_0x11203c,_0x1f27c1]=readVint(_0x4e966a,_0xf4b434+_0x4ac107);if(_0xd58dac[_0x3d4ce9(0xd5)](_0x38bfde,ID_INFO)){let _0xf5191a=_0xf4b434+_0x4ac107+_0x1f27c1;const _0x2b7667=_0xd58dac['grHqO'](_0xf5191a,_0x11203c);while(_0xf5191a<_0x2b7667){const [_0x5771c2,_0x3387a4]=_0xd58dac[_0x3d4ce9(0xe7)](readId,_0x4e966a,_0xf5191a),[_0x2015f9,_0x6ed0f1]=_0xd58dac['BuKJn'](readVint,_0x4e966a,_0xf5191a+_0x3387a4);if(_0xd58dac[_0x3d4ce9(0xd5)](_0x5771c2,ID_TIMESTAMP_SCALE))return _0xd58dac[_0x3d4ce9(0xb9)](readUint,_0x4e966a,_0xd58dac['KUSXl'](_0xd58dac[_0x3d4ce9(0xe1)](_0xf5191a,_0x3387a4),_0x6ed0f1),_0x2015f9);_0xf5191a+=_0x3387a4+_0x6ed0f1+_0x2015f9;}break;}if(_0x38bfde===ID_CLUSTER)break;if(_0xd58dac['mVvDH'](isUnknownSize,_0x11203c,_0x1f27c1))break;_0xf4b434+=_0x4ac107+_0x1f27c1+_0x11203c;}return 0xf4240;}function findFirstClusterOffset(_0x49df9b,_0x2b9caa){const _0x2cb0ca=_0x5b66,_0x1fcb14={'qpdVl':function(_0x1fc6a6,_0x516ecd){return _0x1fc6a6<_0x516ecd;},'VSAsE':function(_0x3f5dbb,_0x432090,_0x26e08){return _0x3f5dbb(_0x432090,_0x26e08);},'plClo':function(_0x38e681,_0x150c80){return _0x38e681===_0x150c80;}};let _0x46aed9=_0x2b9caa;while(_0x1fcb14['qpdVl'](_0x46aed9,_0x49df9b['length'])){const [_0x20122d,_0x5e81bf]=_0x1fcb14[_0x2cb0ca(0xcd)](readId,_0x49df9b,_0x46aed9);if(_0x1fcb14['plClo'](_0x20122d,ID_CLUSTER))return _0x46aed9;const [_0x31f4d8,_0x3cdca3]=readVint(_0x49df9b,_0x46aed9+_0x5e81bf);if(isUnknownSize(_0x31f4d8,_0x3cdca3))return _0x46aed9;_0x46aed9+=_0x5e81bf+_0x3cdca3+_0x31f4d8;}return _0x49df9b['length'];}function findClusterEnd(_0x2bb740,_0x2c0ae7,_0x105ba7,_0x5a0faf){const _0x10b3c5=_0x5b66,_0xf4ad8e={'bsiGG':function(_0x32fe8a,_0x453a2d){return _0x32fe8a<_0x453a2d;},'yMzOk':function(_0x33849d,_0x1f8e60,_0x4c14a7){return _0x33849d(_0x1f8e60,_0x4c14a7);},'oJMAn':function(_0x46a067,_0x269eca,_0x281d65){return _0x46a067(_0x269eca,_0x281d65);},'CpKpS':function(_0x3c0249,_0x390af3){return _0x3c0249+_0x390af3;},'RQaPn':function(_0x2b0af9,_0x1090bd){return _0x2b0af9+_0x1090bd;}};if(!isUnknownSize(_0x105ba7,_0x5a0faf))return _0x2c0ae7+_0x105ba7;const _0x44dd80=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x527d53=_0x2c0ae7;while(_0xf4ad8e['bsiGG'](_0x527d53,_0x2bb740[_0x10b3c5(0xea)]-0x4)){const [_0x45ee44,_0x3bca9e]=_0xf4ad8e[_0x10b3c5(0xe2)](readId,_0x2bb740,_0x527d53);if(_0x44dd80[_0x10b3c5(0xf4)](_0x45ee44))return _0x527d53;const [_0x1061fa,_0x21bac3]=_0xf4ad8e['yMzOk'](readVint,_0x2bb740,_0x527d53+_0x3bca9e);if(_0xf4ad8e[_0x10b3c5(0xd8)](isUnknownSize,_0x1061fa,_0x21bac3))return _0x2bb740['length'];_0x527d53+=_0xf4ad8e[_0x10b3c5(0xc2)](_0xf4ad8e[_0x10b3c5(0xd2)](_0x3bca9e,_0x21bac3),_0x1061fa);}return _0x2bb740[_0x10b3c5(0xea)];}function extractClusters(_0x33c183,_0x57eb5a){const _0x337914=_0x5b66,_0x49c067={'vCvJu':function(_0x157a6c,_0x3d1989){return _0x157a6c<_0x3d1989;},'LLvEM':function(_0x151b02,_0x16093f,_0x57acc8){return _0x151b02(_0x16093f,_0x57acc8);},'WvrOE':function(_0x4534f4,_0x55a1b9){return _0x4534f4+_0x55a1b9;},'HgZFb':function(_0x1050cd,_0x448787){return _0x1050cd===_0x448787;},'AUSgi':function(_0x4858af,_0x4f645c){return _0x4858af+_0x4f645c;},'zLnZV':function(_0x488ffc,_0x38f97b,_0x2ca03e){return _0x488ffc(_0x38f97b,_0x2ca03e);},'lttBg':function(_0x1a3db5,_0x5aa84a){return _0x1a3db5+_0x5aa84a;},'mgloS':function(_0x555f08,_0x5a3b98,_0x43e786){return _0x555f08(_0x5a3b98,_0x43e786);},'gNhuu':function(_0x586abe,_0x361906,_0x546130){return _0x586abe(_0x361906,_0x546130);},'Ftrix':function(_0x20e17a,_0x2492e6){return _0x20e17a>=_0x2492e6;},'oGiGI':function(_0x5e0bb6,_0x5dab7f,_0x1479de){return _0x5e0bb6(_0x5dab7f,_0x1479de);}},_0x243be4=[],_0x4ddf58=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x307a1f=0x0;while(_0x49c067[_0x337914(0xaf)](_0x307a1f,_0x33c183['length'])){const _0x39f2d0=_0x33c183['indexOf'](_0x4ddf58,_0x307a1f);if(_0x39f2d0===-0x1)break;const [_0x2c9f78,_0x36367f]=_0x49c067[_0x337914(0xba)](readId,_0x33c183,_0x39f2d0);if(_0x2c9f78!==ID_CLUSTER){_0x307a1f=_0x49c067[_0x337914(0xef)](_0x39f2d0,0x1);continue;}const [_0x340cf2,_0x250397]=readVint(_0x33c183,_0x39f2d0+_0x36367f),_0x530be7=_0x49c067['WvrOE'](_0x39f2d0+_0x36367f,_0x250397),_0xfae74a=findClusterEnd(_0x33c183,_0x530be7,_0x340cf2,_0x250397);let _0x12c575=_0x530be7,_0x3c2550=0x0,_0x2e276d=0x2,_0x1aeef7=![],_0x251e45=Buffer[_0x337914(0xc0)](0x0),_0x5aadbe=Buffer['alloc'](0x0);while(_0x12c575<_0xfae74a){const [_0x47cf75,_0x2eae39]=readId(_0x33c183,_0x12c575),[_0x48b9b7,_0x41b5c8]=readVint(_0x33c183,_0x49c067[_0x337914(0xef)](_0x12c575,_0x2eae39));if(_0x49c067['HgZFb'](_0x47cf75,ID_TIMESTAMP)){_0x3c2550=readUint(_0x33c183,_0x49c067[_0x337914(0xe0)](_0x12c575+_0x2eae39,_0x41b5c8),_0x48b9b7),_0x2e276d=_0x48b9b7,_0x1aeef7=!![],_0x251e45=_0x33c183['slice'](_0x530be7,_0x12c575);const _0x2f6016=_0x12c575+_0x2eae39+_0x41b5c8+_0x48b9b7;_0x5aadbe=_0x33c183[_0x337914(0xc8)](_0x2f6016,_0xfae74a);break;}if(_0x47cf75===ID_CLUSTER)break;if(_0x49c067['zLnZV'](isUnknownSize,_0x48b9b7,_0x41b5c8))break;_0x12c575+=_0x49c067['lttBg'](_0x2eae39,_0x41b5c8)+_0x48b9b7;}!_0x1aeef7&&(_0x5aadbe=_0x33c183['slice'](_0x530be7,_0xfae74a));let _0x54fe0d=_0x3c2550;_0x12c575=_0x530be7;while(_0x12c575<_0xfae74a){const [_0x27797b,_0x2f348d]=_0x49c067['mgloS'](readId,_0x33c183,_0x12c575),[_0x3edeaa,_0x7f2d50]=_0x49c067[_0x337914(0xbc)](readVint,_0x33c183,_0x12c575+_0x2f348d);if(_0x49c067[_0x337914(0xf1)](_0x27797b,ID_SIMPLE_BLOCK)&&_0x49c067['Ftrix'](_0x3edeaa,0x4)){const _0x39a129=_0x12c575+_0x2f348d+_0x7f2d50,[,_0x876e4c]=_0x49c067[_0x337914(0xbc)](readVint,_0x33c183,_0x39a129),_0x332e07=_0x33c183['readInt16BE'](_0x49c067['WvrOE'](_0x39a129,_0x876e4c)),_0x39ba86=_0x49c067['AUSgi'](_0x3c2550,_0x332e07);if(_0x39ba86>_0x54fe0d)_0x54fe0d=_0x39ba86;}if(_0x49c067[_0x337914(0xf1)](_0x27797b,ID_CLUSTER))break;if(_0x49c067[_0x337914(0xd0)](isUnknownSize,_0x3edeaa,_0x7f2d50))break;_0x12c575+=_0x49c067['AUSgi'](_0x2f348d+_0x7f2d50,_0x3edeaa);}_0x243be4[_0x337914(0xb4)]({'timestamp':_0x3c2550,'maxTicks':_0x54fe0d,'bodyBeforeTimestamp':_0x251e45,'bodyAfterTimestamp':_0x5aadbe,'timestampElementSize':_0x2e276d}),_0x307a1f=_0xfae74a;}return _0x243be4;}function _0x5b66(_0xad5ff9,_0xa02ba0){_0xad5ff9=_0xad5ff9-0xab;const _0x3c0f8f=_0x3c0f();let _0x5b66a9=_0x3c0f8f[_0xad5ff9];return _0x5b66a9;}function parseWebm(_0x412d83){const _0x4d7f44=_0x5b66,_0x4b55ab={'OewBj':function(_0x4c75ee,_0x26b0fe,_0x16f39b){return _0x4c75ee(_0x26b0fe,_0x16f39b);},'eMeBS':function(_0x4797cc,_0x157877){return _0x4797cc+_0x157877;},'xCbXm':function(_0xd9b259,_0x1ecc84,_0xb53f7c){return _0xd9b259(_0x1ecc84,_0xb53f7c);}};let _0x19ef22=0x0;const [,_0xde7e54]=_0x4b55ab[_0x4d7f44(0xbf)](readId,_0x412d83,_0x19ef22),[_0xac7a0b,_0x1af31e]=_0x4b55ab[_0x4d7f44(0xbf)](readVint,_0x412d83,_0x4b55ab[_0x4d7f44(0xcc)](_0x19ef22,_0xde7e54));_0x19ef22+=_0x4b55ab['eMeBS'](_0xde7e54+_0x1af31e,_0xac7a0b);const [_0x466efc,_0x15c602]=readId(_0x412d83,_0x19ef22);if(_0x466efc!==ID_SEGMENT)return null;const [,_0x364442]=readVint(_0x412d83,_0x19ef22+_0x15c602),_0x5dde42=_0x4b55ab['eMeBS'](_0x19ef22+_0x15c602,_0x364442),_0x484713=_0x4b55ab['xCbXm'](findTimestampScale,_0x412d83,_0x5dde42),_0x25e955=findFirstClusterOffset(_0x412d83,_0x5dde42),_0xf30474=_0x412d83[_0x4d7f44(0xc8)](0x0,_0x25e955),_0x1df83c=extractClusters(_0x412d83,_0x484713);let _0x381d24=0x0;for(const _0x4a912a of _0x1df83c){if(_0x4a912a[_0x4d7f44(0xc3)]>_0x381d24)_0x381d24=_0x4a912a['maxTicks'];}return{'header':_0xf30474,'clusters':_0x1df83c,'timestampScale':_0x484713,'maxTimestampTicks':_0x381d24};}function buildCluster(_0x279d85,_0x47f05c,_0x47ff7e){const _0xc04d4e=_0x5b66,_0x13e865={'aDEZd':function(_0x2c8f5e,_0x1e7152){return _0x2c8f5e(_0x1e7152);}},_0x500c95=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x5616eb=Math['max'](0x4,_0x13e865['aDEZd'](uintSize,_0x279d85)),_0x42f680=Buffer[_0xc04d4e(0xb0)]([Buffer[_0xc04d4e(0xb3)]([ID_TIMESTAMP]),writeVint(_0x5616eb),writeUint(_0x279d85,_0x5616eb)]),_0x49530a=Buffer[_0xc04d4e(0xb0)]([_0x47f05c,_0x42f680,_0x47ff7e]),_0x5f41f5=writeVint(_0x49530a[_0xc04d4e(0xea)]);return Buffer[_0xc04d4e(0xb0)]([_0x500c95,_0x5f41f5,_0x49530a]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x3b1c81){const _0x473285=_0x5b66,_0x47ac88={'Ybxhl':function(_0x1435ed,_0x436a0e,_0x5b8b3d){return _0x1435ed(_0x436a0e,_0x5b8b3d);},'BaQWa':function(_0x2ebb8d,_0x86c3f2,_0x4350e9){return _0x2ebb8d(_0x86c3f2,_0x4350e9);},'xTLDS':function(_0x529a0b,_0x28d5e0){return _0x529a0b+_0x28d5e0;},'XcdCt':function(_0x5bf97b,_0x1a4f13){return _0x5bf97b(_0x1a4f13);},'tDIFr':function(_0x5efe7a,_0x1717b8){return _0x5efe7a+_0x1717b8;},'gcjZY':function(_0x2177a3,_0x55d830){return _0x2177a3<_0x55d830;},'whFeB':function(_0x41b1d1,_0x1c355b,_0x59d2bc){return _0x41b1d1(_0x1c355b,_0x59d2bc);},'PWgsq':function(_0x4e22f9,_0x307359){return _0x4e22f9===_0x307359;},'UiSaH':function(_0xb42d82,_0x3b9231){return _0xb42d82+_0x3b9231;},'YeUmI':function(_0x45a9ac,_0x5f22a1){return _0x45a9ac+_0x5f22a1;},'AYGzF':function(_0x58251c,_0x55e0eb){return _0x58251c!==_0x55e0eb;}},_0x50ace4=Buffer['from'](_0x3b1c81);let _0x48065b=0x0;const [,_0x5c25e0]=_0x47ac88['Ybxhl'](readId,_0x50ace4,_0x48065b),[_0x4b93af,_0x3fd1f0]=_0x47ac88[_0x473285(0xab)](readVint,_0x50ace4,_0x48065b+_0x5c25e0),_0x8d4c8f=_0x47ac88[_0x473285(0xb8)](_0x48065b,_0x5c25e0)+_0x3fd1f0+_0x4b93af,[,_0x2d8296]=readId(_0x50ace4,_0x8d4c8f),[,_0x48533a]=readVint(_0x50ace4,_0x47ac88[_0x473285(0xb8)](_0x8d4c8f,_0x2d8296)),_0x140a2f=_0x8d4c8f+_0x2d8296+_0x48533a,_0x4b4318=_0x47ac88['XcdCt'](writeUnknownSizeVint,_0x48533a);_0x4b4318['copy'](_0x50ace4,_0x47ac88['xTLDS'](_0x8d4c8f,_0x2d8296));let _0xe8b395=_0x140a2f;const _0x375672=Math['min'](_0x50ace4[_0x473285(0xea)],_0x47ac88[_0x473285(0xd1)](_0x140a2f,0x2710));while(_0x47ac88['gcjZY'](_0xe8b395,_0x375672)){const [_0x50e832,_0x3e4343]=_0x47ac88['BaQWa'](readId,_0x50ace4,_0xe8b395),[_0x29ce7b,_0x5a6f8a]=_0x47ac88['whFeB'](readVint,_0x50ace4,_0xe8b395+_0x3e4343);if(_0x47ac88[_0x473285(0xb1)](_0x50e832,ID_CLUSTER))break;if(_0x47ac88[_0x473285(0xb2)](isUnknownSize,_0x29ce7b,_0x5a6f8a))break;if(_0x50e832===ID_INFO){const _0x593f85=_0x47ac88[_0x473285(0xc9)](_0xe8b395+_0x3e4343,_0x5a6f8a),_0x945e2f=_0x47ac88[_0x473285(0xc6)](_0x593f85,_0x29ce7b),_0x10e6ed=[];let _0x5f1b5d=_0x593f85;while(_0x47ac88['gcjZY'](_0x5f1b5d,_0x945e2f)){const [_0x5248d2,_0x303a2a]=readId(_0x50ace4,_0x5f1b5d),[_0x5cab33,_0x43b707]=_0x47ac88['whFeB'](readVint,_0x50ace4,_0x5f1b5d+_0x303a2a),_0x3a24c1=_0x303a2a+_0x43b707+_0x5cab33;_0x47ac88[_0x473285(0xdb)](_0x5248d2,ID_DURATION)&&_0x10e6ed['push'](_0x50ace4['slice'](_0x5f1b5d,_0x47ac88[_0x473285(0xb8)](_0x5f1b5d,_0x3a24c1))),_0x5f1b5d+=_0x3a24c1;}const _0x127ee7=Buffer['concat'](_0x10e6ed),_0x285b8f=Buffer['concat']([_0x50ace4[_0x473285(0xc8)](_0xe8b395,_0x47ac88['YeUmI'](_0xe8b395,_0x3e4343)),_0x47ac88[_0x473285(0xab)](writeVint,_0x127ee7['length'],_0x5a6f8a)]);return Buffer['concat']([_0x50ace4['slice'](0x0,_0xe8b395),_0x285b8f,_0x127ee7,_0x50ace4['slice'](_0x945e2f)]);}_0xe8b395+=_0x47ac88[_0x473285(0xd1)](_0x3e4343,_0x5a6f8a)+_0x29ce7b;}return _0x50ace4;}export function stitchWebmFiles(_0x4a6c6f,_0x76fdd5){const _0x305e42=_0x5b66,_0xeb3850={'xdUcl':function(_0x4b53aa,_0x5905ae){return _0x4b53aa<=_0x5905ae;},'wHVvv':function(_0x422e5c,_0x5f0d66){return _0x422e5c(_0x5f0d66);},'SldNy':function(_0x30521f,_0xe45845,_0x346a00,_0x3ca9c9){return _0x30521f(_0xe45845,_0x346a00,_0x3ca9c9);},'lUtnJ':function(_0x154bfc,_0xc35caf){return _0x154bfc+_0xc35caf;},'HYjQj':function(_0x36b3e3,_0x228c94,_0x86adcf){return _0x36b3e3(_0x228c94,_0x86adcf);}};if(_0xeb3850[_0x305e42(0xd9)](_0x4a6c6f['length'],0x1))return![];const _0xea04ad=[];for(const _0x290118 of _0x4a6c6f){const _0x59bf81=readFileSync(_0x290118),_0x492b6a=_0xeb3850['wHVvv'](parseWebm,_0x59bf81);if(!_0x492b6a||_0x492b6a[_0x305e42(0xb6)][_0x305e42(0xea)]===0x0)return![];_0xea04ad['push'](_0x492b6a);}const _0x358576=_0xea04ad[0x0],_0x59c5b2=rebuildHeaderWithoutDuration(_0x358576[_0x305e42(0xce)]),_0x4c6571=[_0x59c5b2];let _0x2c5f5b=0x0;for(let _0x25f0ef=0x0;_0x25f0ef<_0xea04ad[_0x305e42(0xea)];_0x25f0ef++){const _0x55c69b=_0xea04ad[_0x25f0ef];for(const _0x13bbae of _0x55c69b[_0x305e42(0xb6)]){const _0x3334bb=_0x13bbae[_0x305e42(0xbb)]+_0x2c5f5b;_0x4c6571['push'](_0xeb3850[_0x305e42(0xae)](buildCluster,_0x3334bb,_0x13bbae['bodyBeforeTimestamp'],_0x13bbae[_0x305e42(0xc1)]));}const _0x70345=0x1e;_0x2c5f5b+=_0xeb3850['lUtnJ'](_0x55c69b['maxTimestampTicks'],_0x70345);}return _0xeb3850[_0x305e42(0xc7)](writeFileSync,_0x76fdd5,Buffer[_0x305e42(0xb0)](_0x4c6571)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x569038(0xd4))||process[_0x569038(0xe3)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0x569038(0xc8)](0x2);args['length']<0x3&&(console['error'](_0x569038(0xd6)),process[_0x569038(0xf2)](0x1));const output=args[args[_0x569038(0xea)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x569038(0xea)]+_0x569038(0xcb)+output):console[_0x569038(0xcf)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x47972c=_0xcf24;(function(_0x4d2e71,_0x78bb54){const _0x17e716=_0xcf24,_0x1237c5=_0x4d2e71();while(!![]){try{const _0x20d5cd=parseInt(_0x17e716(0x131))/0x1+-parseInt(_0x17e716(0x132))/0x2*(parseInt(_0x17e716(0x157))/0x3)+parseInt(_0x17e716(0x169))/0x4+-parseInt(_0x17e716(0x13c))/0x5*(parseInt(_0x17e716(0x15e))/0x6)+-parseInt(_0x17e716(0x139))/0x7+parseInt(_0x17e716(0x13b))/0x8+parseInt(_0x17e716(0x16f))/0x9;if(_0x20d5cd===_0x78bb54)break;else _0x1237c5['push'](_0x1237c5['shift']());}catch(_0x130721){_0x1237c5['push'](_0x1237c5['shift']());}}}(_0x5626,0x59178));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(_0x3e10e3,_0x1f84e1){const _0x16a819=_0xcf24,_0x41f166={'IMakT':function(_0x176aeb,_0x4d687f){return _0x176aeb>_0x4d687f;},'dnHwr':function(_0x391e53,_0x25bb90){return _0x391e53&_0x25bb90;},'JJJqo':function(_0x1c0d5d,_0x5e4a8f){return _0x1c0d5d-_0x5e4a8f;}};if(_0x1f84e1>=_0x3e10e3[_0x16a819(0x151)])return[0x0,0x0];const _0x14c7b7=_0x3e10e3[_0x1f84e1];let _0x41ac59=0x1,_0x4e41d4=0x80;while(_0x41ac59<=0x8&&!(_0x14c7b7&_0x4e41d4)){_0x41ac59++,_0x4e41d4>>=0x1;}if(_0x41f166['IMakT'](_0x1f84e1+_0x41ac59,_0x3e10e3['length']))return[0x0,0x0];let _0x26c426=_0x41f166['dnHwr'](_0x14c7b7,_0x41f166[_0x16a819(0x16b)](_0x4e41d4,0x1));for(let _0x15be7f=0x1;_0x15be7f<_0x41ac59;_0x15be7f++){_0x26c426=_0x26c426*0x100+_0x3e10e3[_0x1f84e1+_0x15be7f];}return[_0x26c426,_0x41ac59];}function _0xcf24(_0x1bb106,_0xf36d98){_0x1bb106=_0x1bb106-0x12e;const _0x562697=_0x5626();let _0xcf24af=_0x562697[_0x1bb106];return _0xcf24af;}function readId(_0x146312,_0xd369b4){const _0x46e1df=_0xcf24,_0x42cc73={'uMKrC':function(_0x352752,_0xdbc978){return _0x352752>=_0xdbc978;},'laGBN':function(_0x3b862b,_0x1dc203){return _0x3b862b>=_0x1dc203;},'inrDr':function(_0x3e0137,_0x5a541b){return _0x3e0137>_0x5a541b;},'aBvsz':function(_0x2df3c9,_0x2ce5d1){return _0x2df3c9+_0x2ce5d1;},'hORfO':function(_0x34f7d0,_0xaa93ce){return _0x34f7d0*_0xaa93ce;}};if(_0x42cc73['uMKrC'](_0xd369b4,_0x146312[_0x46e1df(0x151)]))return[0x0,0x0];const _0xd0b821=_0x146312[_0xd369b4];let _0x5dac08;if(_0x42cc73['uMKrC'](_0xd0b821,0x80))_0x5dac08=0x1;else{if(_0x42cc73['laGBN'](_0xd0b821,0x40))_0x5dac08=0x2;else{if(_0xd0b821>=0x20)_0x5dac08=0x3;else{if(_0xd0b821>=0x10)_0x5dac08=0x4;else return[_0xd0b821,0x1];}}}if(_0x42cc73[_0x46e1df(0x13a)](_0xd369b4+_0x5dac08,_0x146312['length']))return[0x0,0x0];let _0x373ef5=0x0;for(let _0x5d4594=0x0;_0x5d4594<_0x5dac08;_0x5d4594++){_0x373ef5=_0x42cc73[_0x46e1df(0x145)](_0x42cc73[_0x46e1df(0x130)](_0x373ef5,0x100),_0x146312[_0x42cc73[_0x46e1df(0x145)](_0xd369b4,_0x5d4594)]);}return[_0x373ef5,_0x5dac08];}function readUint(_0x14cd69,_0x1617a5,_0x18ec3d){const _0x24be7d=_0xcf24,_0x50619b={'FgHMu':function(_0x4ea595,_0x1e8547){return _0x4ea595<_0x1e8547;},'ajisD':function(_0x1c0d6a,_0x477630){return _0x1c0d6a+_0x477630;},'Ctcdq':function(_0x218581,_0x35b962){return _0x218581*_0x35b962;}};let _0x35988f=0x0;for(let _0x22f784=0x0;_0x50619b['FgHMu'](_0x22f784,_0x18ec3d);_0x22f784++){_0x35988f=_0x50619b[_0x24be7d(0x150)](_0x50619b['Ctcdq'](_0x35988f,0x100),_0x14cd69[_0x1617a5+_0x22f784]);}return _0x35988f;}function isUnknownSize(_0x322679,_0x26cab4){const _0x2b5559={'sSMUr':function(_0xda4b63,_0x56fbd0){return _0xda4b63*_0x56fbd0;}};return _0x322679===Math['pow'](0x2,_0x2b5559['sSMUr'](0x7,_0x26cab4))-0x1;}function writeVint(_0x3bb94a,_0xc6fa6){const _0x229e75=_0xcf24,_0x56b033={'AtHhi':function(_0x305b47,_0x1a91d2){return _0x305b47*_0x1a91d2;},'SqsNd':function(_0x52bd34,_0x2e251c){return _0x52bd34-_0x2e251c;},'iaFQf':function(_0x2fbac8,_0x6c34a){return _0x2fbac8>=_0x6c34a;},'gjJRl':function(_0x35d013,_0x46f705){return _0x35d013-_0x46f705;}};let _0x3c060c=_0xc6fa6||0x1;while(Math[_0x229e75(0x140)](0x2,_0x56b033[_0x229e75(0x133)](0x7,_0x3c060c))-0x2<_0x3bb94a)_0x3c060c++;const _0xf647af=Buffer[_0x229e75(0x14e)](_0x3c060c);for(let _0xf1a4d2=_0x56b033['SqsNd'](_0x3c060c,0x1);_0x56b033['iaFQf'](_0xf1a4d2,0x0);_0xf1a4d2--){_0xf647af[_0xf1a4d2]=_0x3bb94a&0xff,_0x3bb94a=Math[_0x229e75(0x15d)](_0x3bb94a/0x100);}return _0xf647af[0x0]|=0x1<<_0x56b033[_0x229e75(0x152)](0x8,_0x3c060c),_0xf647af;}function writeUint(_0x2ad92c,_0x315537){const _0x222c9c=_0xcf24,_0x5cedd0={'OkytZ':function(_0x10e465,_0x45f326){return _0x10e465-_0x45f326;},'bQtQe':function(_0x287a55,_0x5469ba){return _0x287a55>=_0x5469ba;},'dUDaq':function(_0x3d9b30,_0xb9a0b1){return _0x3d9b30&_0xb9a0b1;},'hittV':function(_0x245c5e,_0x558983){return _0x245c5e/_0x558983;}},_0x31a932=Buffer[_0x222c9c(0x14e)](_0x315537);for(let _0x1f525c=_0x5cedd0['OkytZ'](_0x315537,0x1);_0x5cedd0['bQtQe'](_0x1f525c,0x0);_0x1f525c--){_0x31a932[_0x1f525c]=_0x5cedd0['dUDaq'](_0x2ad92c,0xff),_0x2ad92c=Math['floor'](_0x5cedd0[_0x222c9c(0x158)](_0x2ad92c,0x100));}return _0x31a932;}function writeUnknownSizeVint(_0x21e04f){const _0xdc3a16=_0xcf24,_0x54f92a={'ZBAfu':function(_0x49224c,_0x4102e8){return _0x49224c>>_0x4102e8;},'CRwoB':function(_0x2b3c41,_0x3fc8fe){return _0x2b3c41-_0x3fc8fe;}},_0x4eeb8d=Buffer[_0xdc3a16(0x14e)](_0x21e04f,0xff);return _0x4eeb8d[0x0]=_0x54f92a[_0xdc3a16(0x159)](0xff,_0x54f92a['CRwoB'](_0x21e04f,0x1)),_0x4eeb8d;}function uintSize(_0x3ef292){const _0x4dc805=_0xcf24,_0x2e1a3d={'LRbod':function(_0x35bb54,_0x457507){return _0x35bb54/_0x457507;}};if(_0x3ef292===0x0)return 0x1;let _0x39a8e1=0x0,_0x59dc59=_0x3ef292;while(_0x59dc59>0x0){_0x39a8e1++,_0x59dc59=Math[_0x4dc805(0x15d)](_0x2e1a3d['LRbod'](_0x59dc59,0x100));}return _0x39a8e1;}function findTimestampScale(_0x217917,_0x4dca9e){const _0x4d6655=_0xcf24,_0x417d26={'pyJgN':function(_0x324d83,_0x23d9a1){return _0x324d83+_0x23d9a1;},'GrRAV':function(_0x2d3d4d,_0x294330){return _0x2d3d4d+_0x294330;},'AcPbY':function(_0x3f6eed,_0x226131){return _0x3f6eed+_0x226131;},'XSvur':function(_0x1a74a0,_0x2c4a7b){return _0x1a74a0+_0x2c4a7b;},'nSRJq':function(_0x3564d0,_0x525289){return _0x3564d0<_0x525289;},'QsTvB':function(_0x48b105,_0x2aa2d2,_0x3dfffd,_0x566fef){return _0x48b105(_0x2aa2d2,_0x3dfffd,_0x566fef);},'cKUVp':function(_0x58bcde,_0x53c91c,_0x2dc63d){return _0x58bcde(_0x53c91c,_0x2dc63d);},'FemeG':function(_0x23ae69,_0x165dfe){return _0x23ae69+_0x165dfe;}};let _0x1ef5ff=_0x4dca9e;const _0x59c56c=Math[_0x4d6655(0x14a)](_0x217917[_0x4d6655(0x151)],_0x417d26['pyJgN'](_0x4dca9e,0x2710));while(_0x1ef5ff<_0x59c56c){const [_0x5df88d,_0x4ecf63]=readId(_0x217917,_0x1ef5ff),[_0x4862d3,_0x37a448]=readVint(_0x217917,_0x417d26[_0x4d6655(0x146)](_0x1ef5ff,_0x4ecf63));if(_0x5df88d===ID_INFO){let _0x1eeed2=_0x417d26['AcPbY'](_0x1ef5ff+_0x4ecf63,_0x37a448);const _0x2b2baa=_0x417d26['XSvur'](_0x1eeed2,_0x4862d3);while(_0x417d26['nSRJq'](_0x1eeed2,_0x2b2baa)){const [_0x36eb23,_0x27d8ee]=readId(_0x217917,_0x1eeed2),[_0xe15090,_0x39621b]=readVint(_0x217917,_0x417d26[_0x4d6655(0x16d)](_0x1eeed2,_0x27d8ee));if(_0x36eb23===ID_TIMESTAMP_SCALE)return _0x417d26[_0x4d6655(0x135)](readUint,_0x217917,_0x1eeed2+_0x27d8ee+_0x39621b,_0xe15090);_0x1eeed2+=_0x27d8ee+_0x39621b+_0xe15090;}break;}if(_0x5df88d===ID_CLUSTER)break;if(_0x417d26[_0x4d6655(0x15f)](isUnknownSize,_0x4862d3,_0x37a448))break;_0x1ef5ff+=_0x417d26[_0x4d6655(0x148)](_0x417d26['FemeG'](_0x4ecf63,_0x37a448),_0x4862d3);}return 0xf4240;}function findFirstClusterOffset(_0x54959b,_0x561092){const _0x4edff0=_0xcf24,_0x1a8d79={'bmNAc':function(_0x477113,_0x57cfd3){return _0x477113<_0x57cfd3;},'ouwxJ':function(_0x19c71b,_0x34a4c0,_0xfc1dd9){return _0x19c71b(_0x34a4c0,_0xfc1dd9);},'jCtgF':function(_0x2ef78b,_0x1f543c){return _0x2ef78b+_0x1f543c;}};let _0x5756ad=_0x561092;while(_0x1a8d79['bmNAc'](_0x5756ad,_0x54959b[_0x4edff0(0x151)])){const [_0x1996b0,_0x4bc2c5]=_0x1a8d79[_0x4edff0(0x161)](readId,_0x54959b,_0x5756ad);if(_0x1996b0===ID_CLUSTER)return _0x5756ad;const [_0x55f7f4,_0x499f41]=readVint(_0x54959b,_0x5756ad+_0x4bc2c5);if(_0x1a8d79[_0x4edff0(0x161)](isUnknownSize,_0x55f7f4,_0x499f41))return _0x5756ad;_0x5756ad+=_0x1a8d79['jCtgF'](_0x4bc2c5+_0x499f41,_0x55f7f4);}return _0x54959b['length'];}function findClusterEnd(_0x11f494,_0x325f00,_0x35eb95,_0x447928){const _0x5966bc=_0xcf24,_0x4146ea={'eQYXD':function(_0x350a9b,_0xa908c8,_0x28e27e){return _0x350a9b(_0xa908c8,_0x28e27e);},'wyGQf':function(_0x57bedb,_0x31bd63){return _0x57bedb+_0x31bd63;}};if(!isUnknownSize(_0x35eb95,_0x447928))return _0x325f00+_0x35eb95;const _0x5dd551=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4c2518=_0x325f00;while(_0x4c2518<_0x11f494[_0x5966bc(0x151)]-0x4){const [_0x246df6,_0x20f673]=_0x4146ea['eQYXD'](readId,_0x11f494,_0x4c2518);if(_0x5dd551[_0x5966bc(0x14f)](_0x246df6))return _0x4c2518;const [_0x3d726f,_0x4a95a6]=readVint(_0x11f494,_0x4c2518+_0x20f673);if(isUnknownSize(_0x3d726f,_0x4a95a6))return _0x11f494[_0x5966bc(0x151)];_0x4c2518+=_0x4146ea[_0x5966bc(0x160)](_0x20f673+_0x4a95a6,_0x3d726f);}return _0x11f494['length'];}function extractClusters(_0x2636ac,_0x59123f){const _0x15f089=_0xcf24,_0x4c8765={'cJgGs':function(_0x49c6da,_0x3d2dc6){return _0x49c6da+_0x3d2dc6;},'oxZqM':function(_0x509baa,_0x271c8d,_0x110b3f){return _0x509baa(_0x271c8d,_0x110b3f);},'JgxRf':function(_0x990da6,_0x5a7bc0){return _0x990da6+_0x5a7bc0;},'wsoMX':function(_0x1ee081,_0x4551b7,_0x106aa6,_0x40ec64,_0x3bd0f8){return _0x1ee081(_0x4551b7,_0x106aa6,_0x40ec64,_0x3bd0f8);},'mFOzx':function(_0x4706c7,_0x300a3e){return _0x4706c7<_0x300a3e;},'lBJgx':function(_0x55d81d,_0x2fc3ca){return _0x55d81d===_0x2fc3ca;},'BgSdw':function(_0x2737c4,_0x30449c){return _0x2737c4+_0x30449c;},'jjGYm':function(_0xdcb36e,_0x2bff1d){return _0xdcb36e+_0x2bff1d;},'PgwEs':function(_0x2a6933,_0x411cfb,_0x1bfaca){return _0x2a6933(_0x411cfb,_0x1bfaca);},'wJnNk':function(_0x3ef22f,_0x472633){return _0x3ef22f===_0x472633;},'gBeZW':function(_0x24e025,_0xcb4ed7){return _0x24e025>_0xcb4ed7;},'vDwNb':function(_0x922a58,_0x1cf953){return _0x922a58===_0x1cf953;}},_0x35cb8e=[],_0xea96a5=Buffer[_0x15f089(0x12f)]([0x1f,0x43,0xb6,0x75]);let _0x4303b8=0x0;while(_0x4303b8<_0x2636ac[_0x15f089(0x151)]){const _0x13161f=_0x2636ac[_0x15f089(0x174)](_0xea96a5,_0x4303b8);if(_0x13161f===-0x1)break;const [_0x168ef9,_0x1bf83a]=readId(_0x2636ac,_0x13161f);if(_0x168ef9!==ID_CLUSTER){_0x4303b8=_0x4c8765['cJgGs'](_0x13161f,0x1);continue;}const [_0x3517d6,_0x21d568]=_0x4c8765[_0x15f089(0x168)](readVint,_0x2636ac,_0x4c8765[_0x15f089(0x143)](_0x13161f,_0x1bf83a)),_0x31cffa=_0x4c8765['JgxRf'](_0x13161f+_0x1bf83a,_0x21d568),_0x2a4ee2=_0x4c8765['wsoMX'](findClusterEnd,_0x2636ac,_0x31cffa,_0x3517d6,_0x21d568);let _0x5c56a8=_0x31cffa,_0x431bc3=0x0,_0x4ed8a1=0x2,_0x2bc384=![],_0x38969d=Buffer['alloc'](0x0),_0x5544ed=Buffer['alloc'](0x0);while(_0x4c8765[_0x15f089(0x12e)](_0x5c56a8,_0x2a4ee2)){const [_0x4ad3f3,_0x60e20e]=readId(_0x2636ac,_0x5c56a8),[_0x10e403,_0xe706f5]=readVint(_0x2636ac,_0x5c56a8+_0x60e20e);if(_0x4c8765['lBJgx'](_0x4ad3f3,ID_TIMESTAMP)){_0x431bc3=readUint(_0x2636ac,_0x4c8765[_0x15f089(0x167)](_0x5c56a8,_0x60e20e)+_0xe706f5,_0x10e403),_0x4ed8a1=_0x10e403,_0x2bc384=!![],_0x38969d=_0x2636ac[_0x15f089(0x16c)](_0x31cffa,_0x5c56a8);const _0x133ddd=_0x4c8765[_0x15f089(0x167)](_0x5c56a8+_0x60e20e,_0xe706f5)+_0x10e403;_0x5544ed=_0x2636ac[_0x15f089(0x16c)](_0x133ddd,_0x2a4ee2);break;}if(_0x4ad3f3===ID_CLUSTER)break;if(isUnknownSize(_0x10e403,_0xe706f5))break;_0x5c56a8+=_0x4c8765['jjGYm'](_0x60e20e+_0xe706f5,_0x10e403);}!_0x2bc384&&(_0x5544ed=_0x2636ac['slice'](_0x31cffa,_0x2a4ee2));let _0x3dcecb=_0x431bc3;_0x5c56a8=_0x31cffa;while(_0x5c56a8<_0x2a4ee2){const [_0x43cd37,_0x1ddcd4]=readId(_0x2636ac,_0x5c56a8),[_0x163c47,_0x93de45]=_0x4c8765[_0x15f089(0x163)](readVint,_0x2636ac,_0x5c56a8+_0x1ddcd4);if(_0x4c8765[_0x15f089(0x165)](_0x43cd37,ID_SIMPLE_BLOCK)&&_0x163c47>=0x4){const _0x11739f=_0x5c56a8+_0x1ddcd4+_0x93de45,[,_0x339d1c]=readVint(_0x2636ac,_0x11739f),_0x3eafb9=_0x2636ac[_0x15f089(0x142)](_0x4c8765['cJgGs'](_0x11739f,_0x339d1c)),_0x1b8514=_0x4c8765[_0x15f089(0x16a)](_0x431bc3,_0x3eafb9);if(_0x4c8765[_0x15f089(0x14d)](_0x1b8514,_0x3dcecb))_0x3dcecb=_0x1b8514;}if(_0x4c8765['vDwNb'](_0x43cd37,ID_CLUSTER))break;if(isUnknownSize(_0x163c47,_0x93de45))break;_0x5c56a8+=_0x1ddcd4+_0x93de45+_0x163c47;}_0x35cb8e['push']({'timestamp':_0x431bc3,'maxTicks':_0x3dcecb,'bodyBeforeTimestamp':_0x38969d,'bodyAfterTimestamp':_0x5544ed,'timestampElementSize':_0x4ed8a1}),_0x4303b8=_0x2a4ee2;}return _0x35cb8e;}function parseWebm(_0x1af168){const _0x204788=_0xcf24,_0x5ac252={'eGoRe':function(_0x1b0520,_0x3d4901){return _0x1b0520+_0x3d4901;},'fefCE':function(_0xecedfa,_0xc048c6,_0x4a37c3){return _0xecedfa(_0xc048c6,_0x4a37c3);},'YcVMt':function(_0x2c1d51,_0x3f739b){return _0x2c1d51+_0x3f739b;},'IDYlc':function(_0x1e999a,_0x4870e0,_0x200a73){return _0x1e999a(_0x4870e0,_0x200a73);},'eaRTO':function(_0x3c7e79,_0x40bd14){return _0x3c7e79>_0x40bd14;}};let _0x2e7906=0x0;const [,_0x53443c]=readId(_0x1af168,_0x2e7906),[_0x2dea41,_0x3a8703]=readVint(_0x1af168,_0x2e7906+_0x53443c);_0x2e7906+=_0x5ac252[_0x204788(0x138)](_0x5ac252[_0x204788(0x138)](_0x53443c,_0x3a8703),_0x2dea41);const [_0x40600c,_0x3b3c4f]=_0x5ac252['fefCE'](readId,_0x1af168,_0x2e7906);if(_0x40600c!==ID_SEGMENT)return null;const [,_0x4c862d]=readVint(_0x1af168,_0x2e7906+_0x3b3c4f),_0x25d2bd=_0x5ac252['YcVMt'](_0x5ac252[_0x204788(0x170)](_0x2e7906,_0x3b3c4f),_0x4c862d),_0x48fbfe=_0x5ac252['fefCE'](findTimestampScale,_0x1af168,_0x25d2bd),_0x3e7fd1=_0x5ac252['IDYlc'](findFirstClusterOffset,_0x1af168,_0x25d2bd),_0x35e3e8=_0x1af168['slice'](0x0,_0x3e7fd1),_0x154c62=extractClusters(_0x1af168,_0x48fbfe);let _0x1875c8=0x0;for(const _0x21ccca of _0x154c62){if(_0x5ac252[_0x204788(0x173)](_0x21ccca[_0x204788(0x14c)],_0x1875c8))_0x1875c8=_0x21ccca[_0x204788(0x14c)];}return{'header':_0x35e3e8,'clusters':_0x154c62,'timestampScale':_0x48fbfe,'maxTimestampTicks':_0x1875c8};}function buildCluster(_0x1b6f36,_0x5e7674,_0x404c6d){const _0x3b9ac6=_0xcf24,_0xda5df3={'wUhIq':function(_0x43d033,_0x42cb72,_0x18576e){return _0x43d033(_0x42cb72,_0x18576e);},'vpzGp':function(_0x2cc81c,_0x3180b8){return _0x2cc81c(_0x3180b8);}},_0x379962=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x43e44f=Math[_0x3b9ac6(0x164)](0x4,uintSize(_0x1b6f36)),_0x32eb93=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x43e44f),_0xda5df3[_0x3b9ac6(0x16e)](writeUint,_0x1b6f36,_0x43e44f)]),_0x58c73c=Buffer[_0x3b9ac6(0x166)]([_0x5e7674,_0x32eb93,_0x404c6d]),_0x3e9565=_0xda5df3['vpzGp'](writeVint,_0x58c73c[_0x3b9ac6(0x151)]);return Buffer[_0x3b9ac6(0x166)]([_0x379962,_0x3e9565,_0x58c73c]);}const ID_DURATION=0x4489;function _0x5626(){const _0xff771d=['from','hORfO','136894eVqWdD','91618gLRMUM','AtHhi','zNiDw','QsTvB','log','copy','eGoRe','1172549cbUZdr','inrDr','2455480ykGPAf','1035qHaFkr','lkZkK','ehDfX','timestamp','pow','bodyAfterTimestamp','readInt16BE','JgxRf','argv','aBvsz','GrRAV','Stitched\x20','pyJgN','iqmdI','min','push','maxTicks','gBeZW','alloc','has','ajisD','length','gjJRl','clusters','YRaMp','stitchWebmFiles.js','nxblP','33zKTNnO','hittV','ZBAfu','MDhXP','bodyBeforeTimestamp','endsWith','floor','17658cparDF','cKUVp','wyGQf','ouwxJ','stitchWebmFiles.ts','PgwEs','max','wJnNk','concat','BgSdw','oxZqM','1775112crkUzt','cJgGs','JJJqo','slice','XSvur','wUhIq','6821280RwUgIk','YcVMt','ArFIM','exit','eaRTO','indexOf','jDetX','mFOzx'];_0x5626=function(){return _0xff771d;};return _0x5626();}function rebuildHeaderWithoutDuration(_0x5e37a6){const _0x38c836=_0xcf24,_0x57ef06={'jDetX':function(_0x5397ce,_0x2c7366,_0x12beb8){return _0x5397ce(_0x2c7366,_0x12beb8);},'nxblP':function(_0x324dcc,_0x4cd6c3){return _0x324dcc+_0x4cd6c3;},'SZFuv':function(_0x4d5f91,_0x32d31e,_0x1f430f){return _0x4d5f91(_0x32d31e,_0x1f430f);},'MDhXP':function(_0x2bf469,_0x4e8d99){return _0x2bf469+_0x4e8d99;},'uGYLd':function(_0x424b96,_0x14940b){return _0x424b96<_0x14940b;},'EDxte':function(_0x2c35ba,_0x45b42c){return _0x2c35ba===_0x45b42c;},'NFRxG':function(_0x445836,_0x462d19,_0xf212e1){return _0x445836(_0x462d19,_0xf212e1);},'ehDfX':function(_0x1d30ce,_0x53ef6c,_0x34cfcd){return _0x1d30ce(_0x53ef6c,_0x34cfcd);},'mnJzf':function(_0x4bb675,_0x274782,_0xfabf6){return _0x4bb675(_0x274782,_0xfabf6);},'ArFIM':function(_0x49f555,_0x567880){return _0x49f555!==_0x567880;},'iqmdI':function(_0x286999,_0x525c8c){return _0x286999+_0x525c8c;},'lkZkK':function(_0x4a1f3b,_0x1bdf8b){return _0x4a1f3b+_0x1bdf8b;}},_0x5edf6a=Buffer[_0x38c836(0x12f)](_0x5e37a6);let _0x456c3d=0x0;const [,_0x2ca59e]=_0x57ef06[_0x38c836(0x175)](readId,_0x5edf6a,_0x456c3d),[_0x2b5506,_0x2e8012]=readVint(_0x5edf6a,_0x57ef06['nxblP'](_0x456c3d,_0x2ca59e)),_0x1f6a50=_0x456c3d+_0x2ca59e+_0x2e8012+_0x2b5506,[,_0x25f127]=_0x57ef06['jDetX'](readId,_0x5edf6a,_0x1f6a50),[,_0x5a3d3d]=_0x57ef06['SZFuv'](readVint,_0x5edf6a,_0x57ef06[_0x38c836(0x15a)](_0x1f6a50,_0x25f127)),_0x51ca93=_0x1f6a50+_0x25f127+_0x5a3d3d,_0x1bc4f8=writeUnknownSizeVint(_0x5a3d3d);_0x1bc4f8[_0x38c836(0x137)](_0x5edf6a,_0x1f6a50+_0x25f127);let _0xcc6419=_0x51ca93;const _0x3e04cb=Math[_0x38c836(0x14a)](_0x5edf6a[_0x38c836(0x151)],_0x57ef06[_0x38c836(0x156)](_0x51ca93,0x2710));while(_0x57ef06['uGYLd'](_0xcc6419,_0x3e04cb)){const [_0x225988,_0x334915]=_0x57ef06['SZFuv'](readId,_0x5edf6a,_0xcc6419),[_0x5abbd7,_0x7fa741]=readVint(_0x5edf6a,_0x57ef06['nxblP'](_0xcc6419,_0x334915));if(_0x57ef06['EDxte'](_0x225988,ID_CLUSTER))break;if(_0x57ef06['NFRxG'](isUnknownSize,_0x5abbd7,_0x7fa741))break;if(_0x225988===ID_INFO){const _0x279b53=_0x57ef06['MDhXP'](_0xcc6419+_0x334915,_0x7fa741),_0x359f14=_0x57ef06['MDhXP'](_0x279b53,_0x5abbd7),_0x17677f=[];let _0x29eeed=_0x279b53;while(_0x29eeed<_0x359f14){const [_0x595971,_0x495b88]=_0x57ef06[_0x38c836(0x13e)](readId,_0x5edf6a,_0x29eeed),[_0x58bd93,_0xdc61fe]=_0x57ef06['mnJzf'](readVint,_0x5edf6a,_0x29eeed+_0x495b88),_0x2a02e9=_0x495b88+_0xdc61fe+_0x58bd93;_0x57ef06[_0x38c836(0x171)](_0x595971,ID_DURATION)&&_0x17677f['push'](_0x5edf6a[_0x38c836(0x16c)](_0x29eeed,_0x57ef06[_0x38c836(0x15a)](_0x29eeed,_0x2a02e9))),_0x29eeed+=_0x2a02e9;}const _0x1950cf=Buffer[_0x38c836(0x166)](_0x17677f),_0x2ee9b3=Buffer[_0x38c836(0x166)]([_0x5edf6a['slice'](_0xcc6419,_0x57ef06[_0x38c836(0x15a)](_0xcc6419,_0x334915)),writeVint(_0x1950cf['length'],_0x7fa741)]);return Buffer[_0x38c836(0x166)]([_0x5edf6a['slice'](0x0,_0xcc6419),_0x2ee9b3,_0x1950cf,_0x5edf6a['slice'](_0x359f14)]);}_0xcc6419+=_0x57ef06[_0x38c836(0x149)](_0x57ef06[_0x38c836(0x13d)](_0x334915,_0x7fa741),_0x5abbd7);}return _0x5edf6a;}export function stitchWebmFiles(_0xc46b8e,_0x4560b8){const _0x5a40a0=_0xcf24,_0x2abeca={'YRaMp':function(_0x43aa30,_0x2e80b6){return _0x43aa30===_0x2e80b6;},'zNiDw':function(_0x5358fa,_0x28d10e){return _0x5358fa(_0x28d10e);},'DNTjI':function(_0x1ac58c,_0x15201e){return _0x1ac58c<_0x15201e;},'GsfOt':function(_0x100e5e,_0x3d00af){return _0x100e5e+_0x3d00af;},'FwCYX':function(_0x59c453,_0x32ec27,_0xe1e6e2,_0x1423b0){return _0x59c453(_0x32ec27,_0xe1e6e2,_0x1423b0);},'KlCwE':function(_0x447184,_0x549e12,_0xba37f2){return _0x447184(_0x549e12,_0xba37f2);}};if(_0xc46b8e[_0x5a40a0(0x151)]<=0x1)return![];const _0x1da0b3=[];for(const _0x20916b of _0xc46b8e){const _0x28d4fa=readFileSync(_0x20916b),_0xf1ea62=parseWebm(_0x28d4fa);if(!_0xf1ea62||_0x2abeca[_0x5a40a0(0x154)](_0xf1ea62[_0x5a40a0(0x153)][_0x5a40a0(0x151)],0x0))return![];_0x1da0b3['push'](_0xf1ea62);}const _0x360406=_0x1da0b3[0x0],_0x379946=_0x2abeca[_0x5a40a0(0x134)](rebuildHeaderWithoutDuration,_0x360406['header']),_0x9a6693=[_0x379946];let _0x16ccf7=0x0;for(let _0x599bf2=0x0;_0x2abeca['DNTjI'](_0x599bf2,_0x1da0b3[_0x5a40a0(0x151)]);_0x599bf2++){const _0x45ea9f=_0x1da0b3[_0x599bf2];for(const _0x54bdc2 of _0x45ea9f[_0x5a40a0(0x153)]){const _0x4e60e0=_0x2abeca['GsfOt'](_0x54bdc2[_0x5a40a0(0x13f)],_0x16ccf7);_0x9a6693[_0x5a40a0(0x14b)](_0x2abeca['FwCYX'](buildCluster,_0x4e60e0,_0x54bdc2[_0x5a40a0(0x15b)],_0x54bdc2[_0x5a40a0(0x141)]));}const _0xbd0694=0x1e;_0x16ccf7+=_0x45ea9f['maxTimestampTicks']+_0xbd0694;}return _0x2abeca['KlCwE'](writeFileSync,_0x4560b8,Buffer[_0x5a40a0(0x166)](_0x9a6693)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x47972c(0x162))||process[_0x47972c(0x144)][0x1]?.[_0x47972c(0x15c)](_0x47972c(0x155))){const args=process[_0x47972c(0x144)][_0x47972c(0x16c)](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x47972c(0x172)](0x1));const output=args[args[_0x47972c(0x151)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x47972c(0x136)](_0x47972c(0x147)+inputs[_0x47972c(0x151)]+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}