@ranger-testing/ranger-cli 3.1.1-alpha.08fb70e-39 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x76db(){const _0x116a22=['RANGER_SESSION_STATE_PATH=','baseUrl','4112076zvQwiX','Profile\x20\x22','4446449UGDPnS','local','settings','cloud','eUAYn','xQfWS','`ranger\x20profile\x20add`\x20to\x20create\x20one.','cdpEndpoint','startPath','1273102hZfDXz','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','\x20does\x20not\x20exist.','31231180IYyLfe','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','url','envBaseUrl','1557945MmKXUv','4FVibnp','\x20baseUrl\x20<url>','50526UsfhUH','cwd','Local\x20profile','873030zDKGRf','OHrtZ','1nRfTbR','domains','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','312pGrpOV','xMyWG','RANGER_TEST_USERNAME','BRpsO','string','XKFqk','AROAk','resolvedEnv','envStartPath','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','SJOMI','prompt'];_0x76db=function(){return _0x116a22;};return _0x76db();}(function(_0x158180,_0x2a21dc){const _0x4ac37b=_0x4b41,_0x35166a=_0x158180();while(!![]){try{const _0x2c2d28=-parseInt(_0x4ac37b(0xf0))/0x1*(parseInt(_0x4ac37b(0x10d))/0x2)+-parseInt(_0x4ac37b(0xee))/0x3+-parseInt(_0x4ac37b(0xe9))/0x4*(parseInt(_0x4ac37b(0xe8))/0x5)+-parseInt(_0x4ac37b(0x102))/0x6+-parseInt(_0x4ac37b(0x104))/0x7+parseInt(_0x4ac37b(0xf3))/0x8*(-parseInt(_0x4ac37b(0xeb))/0x9)+parseInt(_0x4ac37b(0xe3))/0xa;if(_0x2c2d28===_0x2a21dc)break;else _0x35166a['push'](_0x35166a['shift']());}catch(_0x5f0dc2){_0x35166a['push'](_0x35166a['shift']());}}}(_0x76db,0x54195));function _0x4b41(_0x252d6a,_0x2d7d0b){_0x252d6a=_0x252d6a-0xe1;const _0x76dbd2=_0x76db();let _0x4b41e0=_0x76dbd2[_0x252d6a];return _0x4b41e0;}import{existsSync}from'fs';import _0x8c77c7 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(_0x4efac0){const _0x21bc3c=_0x4b41,_0x4c0d04={'CQFUK':function(_0x1ddcf6){return _0x1ddcf6();},'siGUz':function(_0x47da09,_0x4daaab){return _0x47da09+_0x4daaab;},'yTRtI':function(_0x185fe4,_0x4126b5){return _0x185fe4+_0x4126b5;},'oezjN':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','eUAYn':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','BRpsO':_0x21bc3c(0xe1),'SJOMI':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','XKFqk':function(_0x57245c,_0x26b9f6){return _0x57245c(_0x26b9f6);},'xMyWG':function(_0x685169,_0x41fed1){return _0x685169 instanceof _0x41fed1;},'ArpQY':function(_0x34868d,_0x34208e){return _0x34868d&&_0x34208e;},'UvXkg':function(_0x217713,_0x152d61){return _0x217713+_0x152d61;},'DJGCP':_0x21bc3c(0x10a),'qCEYT':function(_0x589d94,_0x2db08f){return _0x589d94&&_0x2db08f;},'rPEge':'source','lTYMr':'Cloud\x20profile\x20(recommended)','FUycd':_0x21bc3c(0x107),'xQfWS':_0x21bc3c(0xed),'OHrtZ':function(_0x1aee6b,_0x2a16ed,_0xc0b359){return _0x1aee6b(_0x2a16ed,_0xc0b359);},'BSfdw':function(_0x148599,_0x265ecc){return _0x148599??_0x265ecc;},'bSgtW':function(_0x1417e1,_0x16bf89){return _0x1417e1(_0x16bf89);}},_0x1c69b8=_0x4efac0['profile'];let _0x4880a8=_0x4efac0['profile']??await readActiveProfileName(),_0x166de8=null;if(!_0x4880a8&&process['env'][_0x21bc3c(0xf5)]){const _0x5651e0=await resolveAdHocProfile();_0x5651e0&&(_0x4880a8=_0x5651e0['name'],_0x166de8=_0x5651e0['profile']);}if(!_0x4880a8)try{const _0x2f23b9=await _0x4c0d04['CQFUK'](listCloudProfiles);if(_0x2f23b9['length']===0x1){const _0x1307d7=_0x2f23b9[0x0];_0x4880a8=_0x1307d7['name'],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x1307d7['name']),console['log'](_0x21bc3c(0xf2));}}catch{}if(!_0x4880a8)throw new Error(_0x4c0d04['siGUz'](_0x4c0d04['yTRtI'](_0x4c0d04['yTRtI'](_0x4c0d04['oezjN'],_0x4c0d04[_0x21bc3c(0x108)])+_0x21bc3c(0xfc),_0x4c0d04[_0x21bc3c(0xf6)]),_0x4c0d04[_0x21bc3c(0xfe)]));const _0x924dc0=getEnvDir(_0x4880a8),_0xa52917=existsSync(_0x924dc0);let _0x667f99=_0x166de8,_0x24c984=![];if(!_0x667f99)try{_0x667f99=await _0x4c0d04[_0x21bc3c(0xf8)](fetchCloudProfile,_0x4880a8);if(!_0x667f99)_0x24c984=!![];}catch(_0x2b26fb){_0x4c0d04[_0x21bc3c(0xf4)](_0x2b26fb,ApiError)&&_0x2b26fb['status']===0x194&&(_0x24c984=!![]);}if(_0x4c0d04['ArpQY'](_0x1c69b8,_0x24c984)&&!_0xa52917&&!_0x667f99)throw new Error(_0x4c0d04['UvXkg'](_0x21bc3c(0x103)+_0x1c69b8+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x21bc3c(0xe5))+_0x4c0d04['DJGCP']);if(_0x4c0d04['qCEYT'](_0x667f99,_0xa52917)){let _0x310a91=!![];if(isInteractive()){const {source:_0x1cb0c7}=await _0x8c77c7[_0x21bc3c(0xff)]([{'type':'list','name':_0x4c0d04['rPEge'],'message':'Profile\x20\x22'+_0x4880a8+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x4c0d04['lTYMr'],'value':_0x4c0d04['FUycd']},{'name':_0x4c0d04[_0x21bc3c(0x109)],'value':_0x21bc3c(0x105)}],'default':_0x21bc3c(0x107)}]);_0x310a91=_0x1cb0c7===_0x4c0d04['FUycd'];}if(!_0x310a91)_0x667f99=null;}const _0x35d1e9=readProfileOverrides(process[_0x21bc3c(0xec)](),_0x4880a8);let _0xc380a9=null,_0xa811fc,_0x4b061b,_0x31e279,_0x5981e4,_0x909354=null,_0x447c39;const _0x52d7c4=expandOverrides(_0x35d1e9),_0x32bb41=readUrlEnvVars();if(_0x667f99){_0xc380a9=_0x667f99;const _0x2beeab=_0x667f99['settings']??{},_0x358aec=_0x4c0d04[_0x21bc3c(0xef)](mergeCloudProfileSettings,_0x2beeab,_0x4c0d04['BSfdw'](_0x35d1e9,undefined)),_0x12f872={..._0x667f99,'settings':_0x358aec};_0x909354={'baseUrl':expandString(_0x2beeab['baseUrl']),'startPath':_0x4c0d04['XKFqk'](expandString,_0x2beeab[_0x21bc3c(0x10c)])};const _0x4c9364=await fetchAuthConfig(),_0x4afa59=_0x4c9364?resolveAuthEnvironmentLocally(_0x4c9364,_0x667f99['environmentKey']):null;_0x447c39=_0x4afa59?.[_0x21bc3c(0xf1)]?.[0x0];const _0x2aa6fb=_0x4c0d04['XKFqk'](resolveProfileUrl,{'flagBaseUrl':_0x4efac0['baseUrl'],'flagStartPath':_0x4efac0['startPath'],'envBaseUrl':_0x32bb41['envBaseUrl'],'envStartPath':_0x32bb41[_0x21bc3c(0xfb)],'projectOverrides':_0x52d7c4,'cloudSettings':_0x909354,'authEnvironmentDomain':_0x447c39}),_0x883cce=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x883cce){if(!_0x4c0d04['XKFqk'](existsSync,_0x883cce))throw new Error(_0x21bc3c(0x100)+_0x883cce+_0x21bc3c(0xe2));_0xa811fc=_0x883cce,_0x4b061b=resolveEnvVars(_0x358aec),_0x31e279=_0x4c0d04['bSgtW'](Boolean,_0x4b061b[_0x21bc3c(0x10b)]);}else{const _0x1c50cd=await resolveCloudProfileSession(_0x12f872,{'effectiveBaseUrl':_0x2aa6fb['baseUrl']});_0xa811fc=_0x1c50cd['authPath'],_0x4b061b=resolveEnvVars(_0x1c50cd[_0x21bc3c(0x106)]),_0x31e279=Boolean(_0x4b061b[_0x21bc3c(0x10b)]),_0x447c39=_0x1c50cd[_0x21bc3c(0xfa)]?.['domains']?.[0x0];}}else{if(!_0xa52917)throw new Error(_0x21bc3c(0x103)+_0x4880a8+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4880a8);const _0x1894d0=await loadSettings(_0x4880a8);_0x4b061b=resolveEnvVars(_0x1894d0),_0x31e279=Boolean(_0x4b061b[_0x21bc3c(0x10b)]),_0x5981e4=_0x4b061b['baseUrl'];}const _0x1bb842=resolveProfileUrl({'flagBaseUrl':_0x4efac0['baseUrl'],'flagStartPath':_0x4efac0[_0x21bc3c(0x10c)],'envBaseUrl':_0x32bb41[_0x21bc3c(0xe7)],'envStartPath':_0x32bb41[_0x21bc3c(0xfb)],'localSettingsBaseUrl':_0x5981e4,'projectOverrides':_0x52d7c4,'cloudSettings':_0x909354,'authEnvironmentDomain':_0x447c39}),_0x3e6f0f=_0x1bb842[_0x21bc3c(0xe6)]??_0x1bb842['baseUrl'];if(!_0x3e6f0f&&!_0x31e279)throw new Error(_0x21bc3c(0xfd)+_0x4880a8+_0x21bc3c(0xe4)+_0x4880a8+_0x21bc3c(0xea));return{'activeProfile':_0x4880a8,'resolvedCloudProfile':_0xc380a9,'cloudAuthPath':_0xa811fc,'resolvedSettings':_0x4b061b,'isCdpMode':_0x31e279,'url':_0x3e6f0f,'startPath':_0x1bb842['startPath']};}function expandString(_0x114d4e){if(typeof _0x114d4e!=='string')return _0x114d4e;return resolveEnvVars(_0x114d4e);}function expandOverrides(_0xaf4f20){const _0x50b992=_0x4b41,_0x298e29={'UbIBe':function(_0x5ea2bd,_0x228175){return _0x5ea2bd===_0x228175;},'sxlrh':_0x50b992(0xf7),'AROAk':function(_0x30f819,_0x7eb21b){return _0x30f819(_0x7eb21b);}};if(!_0xaf4f20)return _0xaf4f20;const _0xa2af15={..._0xaf4f20};return _0x298e29['UbIBe'](typeof _0xa2af15[_0x50b992(0x101)],_0x298e29['sxlrh'])&&(_0xa2af15[_0x50b992(0x101)]=_0x298e29[_0x50b992(0xf9)](resolveEnvVars,_0xa2af15['baseUrl'])),typeof _0xa2af15['startPath']===_0x50b992(0xf7)&&(_0xa2af15[_0x50b992(0x10c)]=resolveEnvVars(_0xa2af15[_0x50b992(0x10c)])),_0xa2af15;}
1
+ (function(_0x2be1a6,_0x1ae15d){const _0x5b0361=_0x43de,_0x1f6bec=_0x2be1a6();while(!![]){try{const _0x26fa75=parseInt(_0x5b0361(0x203))/0x1+parseInt(_0x5b0361(0x1ed))/0x2*(-parseInt(_0x5b0361(0x1e4))/0x3)+parseInt(_0x5b0361(0x1eb))/0x4*(-parseInt(_0x5b0361(0x200))/0x5)+parseInt(_0x5b0361(0x1ee))/0x6*(-parseInt(_0x5b0361(0x1ef))/0x7)+parseInt(_0x5b0361(0x1d9))/0x8*(parseInt(_0x5b0361(0x1e7))/0x9)+parseInt(_0x5b0361(0x1f3))/0xa+-parseInt(_0x5b0361(0x1f6))/0xb*(-parseInt(_0x5b0361(0x1f0))/0xc);if(_0x26fa75===_0x1ae15d)break;else _0x1f6bec['push'](_0x1f6bec['shift']());}catch(_0x2776f0){_0x1f6bec['push'](_0x1f6bec['shift']());}}}(_0x6146,0x4d472));import{existsSync}from'fs';import _0x4bb450 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x43de(_0x85ce75,_0x1cf04b){_0x85ce75=_0x85ce75-0x1d0;const _0x6146b1=_0x6146();let _0x43de5c=_0x6146b1[_0x85ce75];return _0x43de5c;}function _0x6146(){const _0x4285d9=['18cTNnFo','log','local','envBaseUrl','8GehgOW','RANGER_TEST_USERNAME','3260wEWegq','1907316sGHeZY','7LEMPvy','24DlPONQ','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','5903400LbizdI','cdpEndpoint','prompt','143693WTRZCQ','profile','domains','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','UnjLU','baseUrl','UmRbs','Cloud\x20profile\x20(recommended)','`ranger\x20profile\x20add`\x20to\x20create\x20one.','eYyuu','1203630CbZdOW','list','length','128718sfmasp','WJKnf','IxRCz','ChbHu','startPath','xpdxk','VAyLs','MaLAr','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','envStartPath','\x20does\x20not\x20exist.','1528376pTpCjQ','\x20baseUrl\x20<url>','Profile\x20\x22','name','env','cloud','url','PPnZB','evQhj','string','JjHbl','21zVvOKk','xACHh','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'];_0x6146=function(){return _0x4285d9;};return _0x6146();}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x305791){const _0x2a01bc=_0x43de,_0xd51ced={'UmRbs':function(_0x4721c2){return _0x4721c2();},'yoLqL':function(_0x40b611){return _0x40b611();},'cvEhj':function(_0x1a30a6,_0x2c1c46){return _0x1a30a6===_0x2c1c46;},'IxRCz':function(_0x5f3a22,_0xcdf752){return _0x5f3a22+_0xcdf752;},'VAyLs':function(_0x98c68b,_0x9701c8){return _0x98c68b+_0x9701c8;},'eYyuu':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','yhDJN':_0x2a01bc(0x1f2),'JjHbl':function(_0x232c37,_0x1f83f){return _0x232c37(_0x1f83f);},'ChbHu':function(_0x507e94,_0x315949){return _0x507e94(_0x315949);},'xACHh':function(_0x359140,_0x3e4b03){return _0x359140&&_0x3e4b03;},'WJKnf':function(_0x1bdeff,_0x292174){return _0x1bdeff+_0x292174;},'rMIek':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','jNwJq':_0x2a01bc(0x1fe),'tUfcV':function(_0x2e5eb4,_0x469858){return _0x2e5eb4&&_0x469858;},'xpdxk':'source','MaLAr':_0x2a01bc(0x1e9),'EbMHZ':_0x2a01bc(0x1de),'kMEZT':function(_0x1b5329){return _0x1b5329();},'PPnZB':function(_0x2b9892){return _0x2b9892();},'gKpDc':function(_0xb03f71,_0x5bb306){return _0xb03f71(_0x5bb306);},'UnjLU':function(_0x1f88e7,_0x57f8b4){return _0x1f88e7(_0x57f8b4);}},_0x170234=_0x305791['profile'];let _0xd98853=_0x305791[_0x2a01bc(0x1f7)]??await _0xd51ced[_0x2a01bc(0x1fc)](readActiveProfileName),_0x26d5a0=null;if(!_0xd98853&&process['env'][_0x2a01bc(0x1ec)]){const _0x38befe=await _0xd51ced['yoLqL'](resolveAdHocProfile);_0x38befe&&(_0xd98853=_0x38befe[_0x2a01bc(0x1dc)],_0x26d5a0=_0x38befe['profile']);}if(!_0xd98853)try{const _0xcce40=await listCloudProfiles();if(_0xd51ced['cvEhj'](_0xcce40[_0x2a01bc(0x202)],0x1)){const _0x4a86aa=_0xcce40[0x0];_0xd98853=_0x4a86aa['name'],console[_0x2a01bc(0x1e8)](_0x2a01bc(0x1e6)+_0x4a86aa['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0xd98853)throw new Error(_0xd51ced['IxRCz'](_0xd51ced[_0x2a01bc(0x1d0)](_0xd51ced[_0x2a01bc(0x1d4)](_0xd51ced[_0x2a01bc(0x1ff)]+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a',_0x2a01bc(0x1f9)),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),_0xd51ced['yhDJN']));const _0x3842dd=getEnvDir(_0xd98853),_0x48263d=_0xd51ced['JjHbl'](existsSync,_0x3842dd);let _0x5aee20=_0x26d5a0,_0x7bb897=![];if(!_0x5aee20)try{_0x5aee20=await _0xd51ced['ChbHu'](fetchCloudProfile,_0xd98853);if(!_0x5aee20)_0x7bb897=!![];}catch(_0x592e01){_0x592e01 instanceof ApiError&&_0x592e01['status']===0x194&&(_0x7bb897=!![]);}if(_0xd51ced[_0x2a01bc(0x1e5)](_0x170234,_0x7bb897)&&!_0x48263d&&!_0x5aee20)throw new Error(_0xd51ced[_0x2a01bc(0x204)](_0x2a01bc(0x1db)+_0x170234+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0xd51ced['rMIek'])+_0xd51ced['jNwJq']);if(_0xd51ced['tUfcV'](_0x5aee20,_0x48263d)){let _0x5236b4=!![];if(_0xd51ced[_0x2a01bc(0x1fc)](isInteractive)){const {source:_0x302e50}=await _0x4bb450[_0x2a01bc(0x1f5)]([{'type':_0x2a01bc(0x201),'name':_0xd51ced[_0x2a01bc(0x1d3)],'message':_0x2a01bc(0x1db)+_0xd98853+_0x2a01bc(0x1d6),'choices':[{'name':_0x2a01bc(0x1fd),'value':_0x2a01bc(0x1de)},{'name':'Local\x20profile','value':_0xd51ced[_0x2a01bc(0x1d5)]}],'default':_0x2a01bc(0x1de)}]);_0x5236b4=_0x302e50===_0xd51ced['EbMHZ'];}if(!_0x5236b4)_0x5aee20=null;}const _0x5de758=readProfileOverrides(process['cwd'](),_0xd98853);let _0x2e7b21=null,_0x553837,_0x1f136f,_0xf20a28,_0x4fa826,_0x36029b=null,_0x2f6dfe;const _0x39fb7e=_0xd51ced[_0x2a01bc(0x1d1)](expandOverrides,_0x5de758),_0x5e4b3a=_0xd51ced['kMEZT'](readUrlEnvVars);if(_0x5aee20){_0x2e7b21=_0x5aee20;const _0x5d4849=_0x5aee20['settings']??{},_0x384a4a=mergeCloudProfileSettings(_0x5d4849,_0x5de758??undefined),_0x49b29d={..._0x5aee20,'settings':_0x384a4a};_0x36029b={'baseUrl':_0xd51ced[_0x2a01bc(0x1d1)](expandString,_0x5d4849['baseUrl']),'startPath':_0xd51ced[_0x2a01bc(0x1e3)](expandString,_0x5d4849[_0x2a01bc(0x1d2)])};const _0x5b7b0f=await _0xd51ced[_0x2a01bc(0x1e0)](fetchAuthConfig),_0x47f9d2=_0x5b7b0f?resolveAuthEnvironmentLocally(_0x5b7b0f,_0x5aee20['environmentKey']):null;_0x2f6dfe=_0x47f9d2?.['domains']?.[0x0];const _0xdd7646=_0xd51ced['ChbHu'](resolveProfileUrl,{'flagBaseUrl':_0x305791[_0x2a01bc(0x1fb)],'flagStartPath':_0x305791[_0x2a01bc(0x1d2)],'envBaseUrl':_0x5e4b3a[_0x2a01bc(0x1ea)],'envStartPath':_0x5e4b3a[_0x2a01bc(0x1d7)],'projectOverrides':_0x39fb7e,'cloudSettings':_0x36029b,'authEnvironmentDomain':_0x2f6dfe}),_0xfbc80f=process[_0x2a01bc(0x1dd)]['RANGER_SESSION_STATE_PATH'];if(_0xfbc80f){if(!_0xd51ced[_0x2a01bc(0x1d1)](existsSync,_0xfbc80f))throw new Error('RANGER_SESSION_STATE_PATH='+_0xfbc80f+_0x2a01bc(0x1d8));_0x553837=_0xfbc80f,_0x1f136f=resolveEnvVars(_0x384a4a),_0xf20a28=Boolean(_0x1f136f['cdpEndpoint']);}else{const _0x4416af=await resolveCloudProfileSession(_0x49b29d,{'effectiveBaseUrl':_0xdd7646[_0x2a01bc(0x1fb)]});_0x553837=_0x4416af['authPath'],_0x1f136f=resolveEnvVars(_0x4416af['settings']),_0xf20a28=Boolean(_0x1f136f[_0x2a01bc(0x1f4)]),_0x2f6dfe=_0x4416af['resolvedEnv']?.[_0x2a01bc(0x1f8)]?.[0x0];}}else{if(!_0x48263d)throw new Error('Profile\x20\x22'+_0xd98853+_0x2a01bc(0x1f1)+_0xd98853);const _0x16bd4c=await loadSettings(_0xd98853);_0x1f136f=_0xd51ced['gKpDc'](resolveEnvVars,_0x16bd4c),_0xf20a28=Boolean(_0x1f136f[_0x2a01bc(0x1f4)]),_0x4fa826=_0x1f136f['baseUrl'];}const _0x134831=_0xd51ced[_0x2a01bc(0x1fa)](resolveProfileUrl,{'flagBaseUrl':_0x305791[_0x2a01bc(0x1fb)],'flagStartPath':_0x305791[_0x2a01bc(0x1d2)],'envBaseUrl':_0x5e4b3a[_0x2a01bc(0x1ea)],'envStartPath':_0x5e4b3a[_0x2a01bc(0x1d7)],'localSettingsBaseUrl':_0x4fa826,'projectOverrides':_0x39fb7e,'cloudSettings':_0x36029b,'authEnvironmentDomain':_0x2f6dfe}),_0x4da4ef=_0x134831[_0x2a01bc(0x1df)]??_0x134831[_0x2a01bc(0x1fb)];if(_0xd51ced['tUfcV'](!_0x4da4ef,!_0xf20a28))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0xd98853+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0xd98853+_0x2a01bc(0x1da));return{'activeProfile':_0xd98853,'resolvedCloudProfile':_0x2e7b21,'cloudAuthPath':_0x553837,'resolvedSettings':_0x1f136f,'isCdpMode':_0xf20a28,'url':_0x4da4ef,'startPath':_0x134831[_0x2a01bc(0x1d2)]};}function expandString(_0x5a6fba){if(typeof _0x5a6fba!=='string')return _0x5a6fba;return resolveEnvVars(_0x5a6fba);}function expandOverrides(_0x49f73f){const _0x10caa5=_0x43de,_0x357e0b={'evQhj':_0x10caa5(0x1e2),'ecMVX':function(_0x1ec5df,_0x59e34f){return _0x1ec5df===_0x59e34f;}};if(!_0x49f73f)return _0x49f73f;const _0x1b8f6d={..._0x49f73f};return typeof _0x1b8f6d['baseUrl']===_0x357e0b[_0x10caa5(0x1e1)]&&(_0x1b8f6d[_0x10caa5(0x1fb)]=resolveEnvVars(_0x1b8f6d[_0x10caa5(0x1fb)])),_0x357e0b['ecMVX'](typeof _0x1b8f6d['startPath'],_0x357e0b['evQhj'])&&(_0x1b8f6d['startPath']=resolveEnvVars(_0x1b8f6d['startPath'])),_0x1b8f6d;}
@@ -1 +1 @@
1
- const _0x2ee97f=_0x2ac5;function _0x2ac5(_0x22bf97,_0x2b459c){_0x22bf97=_0x22bf97-0x1eb;const _0x25ae01=_0x25ae();let _0x2ac511=_0x25ae01[_0x22bf97];return _0x2ac511;}(function(_0x1ececa,_0x3703d9){const _0x23f692=_0x2ac5,_0x25d34e=_0x1ececa();while(!![]){try{const _0x46db9c=-parseInt(_0x23f692(0x1fc))/0x1*(parseInt(_0x23f692(0x1ef))/0x2)+parseInt(_0x23f692(0x1f8))/0x3*(-parseInt(_0x23f692(0x1ed))/0x4)+-parseInt(_0x23f692(0x1f1))/0x5+parseInt(_0x23f692(0x1f3))/0x6*(parseInt(_0x23f692(0x1fb))/0x7)+parseInt(_0x23f692(0x204))/0x8*(-parseInt(_0x23f692(0x1fd))/0x9)+-parseInt(_0x23f692(0x1f2))/0xa+parseInt(_0x23f692(0x205))/0xb*(parseInt(_0x23f692(0x1f9))/0xc);if(_0x46db9c===_0x3703d9)break;else _0x25d34e['push'](_0x25d34e['shift']());}catch(_0x125eea){_0x25d34e['push'](_0x25d34e['shift']());}}}(_0x25ae,0xa21aa));function firstDefined(..._0x4396fb){const _0x355891=_0x2ac5,_0x4e8cd1={'mQBFk':function(_0x5de9f4,_0x2254e9){return _0x5de9f4!==_0x2254e9;},'JuNOr':function(_0xa9f192,_0x3f4a9a){return _0xa9f192!==_0x3f4a9a;},'NLHRr':function(_0x555c04,_0x84f550){return _0x555c04!==_0x84f550;}};for(const _0x24bbcf of _0x4396fb){if(_0x4e8cd1[_0x355891(0x1f7)](_0x24bbcf,undefined)&&_0x4e8cd1['JuNOr'](_0x24bbcf,null)&&_0x4e8cd1['NLHRr'](_0x24bbcf,''))return _0x24bbcf;}return undefined;}function normalizeAuthEnvironmentDomain(_0x3bc360){const _0x2dd5fc=_0x2ac5;if(!_0x3bc360)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2dd5fc(0x1f4)](_0x3bc360))return _0x3bc360;return _0x2dd5fc(0x1f5)+_0x3bc360;}export function resolveBaseUrl(_0x7f2428){const _0x49913b=_0x2ac5,_0x40a04d={'PezIY':function(_0x48a4c0,_0x271ecc){return _0x48a4c0 in _0x271ecc;},'ZkfRP':function(_0x5db592,_0x5cabcd){return _0x5db592===_0x5cabcd;},'ogDOX':function(_0x18c248,_0x3f9ce3){return _0x18c248===_0x3f9ce3;},'byuOc':_0x49913b(0x208),'bjRXv':function(_0x57ca6e,_0xdfa058){return _0x57ca6e(_0xdfa058);}},_0x40cd30=_0x7f2428['projectOverrides'],_0x55756c=!!_0x40cd30&&_0x40a04d[_0x49913b(0x207)]('baseUrl',_0x40cd30),_0x5d2af6=_0x40cd30?.['baseUrl'],_0x25cc35=!(_0x55756c&&_0x40a04d[_0x49913b(0x1ff)](_0x5d2af6,null));return firstDefined(_0x7f2428['flagBaseUrl'],_0x7f2428[_0x49913b(0x1ec)],_0x7f2428['localSettingsBaseUrl'],_0x40a04d[_0x49913b(0x201)](typeof _0x5d2af6,_0x40a04d[_0x49913b(0x1ee)])?_0x5d2af6:undefined,_0x25cc35?_0x7f2428[_0x49913b(0x1eb)]?.[_0x49913b(0x200)]:undefined,_0x25cc35?_0x40a04d[_0x49913b(0x203)](normalizeAuthEnvironmentDomain,_0x7f2428[_0x49913b(0x1fa)]):undefined);}export function resolveStartPath(_0x5a525f){const _0x80e644=_0x2ac5,_0x1a2d9b={'RPBSa':_0x80e644(0x208)},_0x44676e=_0x5a525f['projectOverrides'],_0x248754=!!_0x44676e&&'startPath'in _0x44676e,_0x21230f=_0x44676e?.[_0x80e644(0x202)],_0x501393=!(_0x248754&&_0x21230f===null);return firstDefined(_0x5a525f['flagStartPath'],_0x5a525f['envStartPath'],typeof _0x21230f===_0x1a2d9b[_0x80e644(0x1f0)]?_0x21230f:undefined,_0x501393?_0x5a525f['cloudSettings']?.[_0x80e644(0x202)]:undefined);}function _0x25ae(){const _0xa1f0dc=['bjRXv','3208424mNjnJe','250932nXgvQL','env','PezIY','string','slice','cloudSettings','envBaseUrl','34832TDwcPd','byuOc','136akocIc','RPBSa','6034160smwyks','9890680EKXHXA','12BdSrRZ','test','https://','RANGER_START_PATH','mQBFk','357qLbuok','2064yABnUR','authEnvironmentDomain','2864750zColCA','646NoodXI','18EAKAAl','startsWith','ZkfRP','baseUrl','ogDOX','startPath'];_0x25ae=function(){return _0xa1f0dc;};return _0x25ae();}export function joinBaseAndPath(_0x171d29,_0x4d3ad1){const _0x18faf0=_0x2ac5,_0x56d79e={'HUJpC':function(_0xad347a,_0xbd2ba3){return _0xad347a+_0xbd2ba3;}};if(!_0x171d29)return undefined;if(!_0x4d3ad1)return _0x171d29;const _0x5baceb=_0x171d29['endsWith']('/')?_0x171d29[_0x18faf0(0x209)](0x0,-0x1):_0x171d29,_0x2017a0=_0x4d3ad1[_0x18faf0(0x1fe)]('/')?_0x4d3ad1:_0x56d79e['HUJpC']('/',_0x4d3ad1);return _0x5baceb+_0x2017a0;}export function resolveProfileUrl(_0x3ea16e){const _0x3178fc={'DxIYS':function(_0x233d5c,_0x89246e){return _0x233d5c(_0x89246e);}},_0x314608=_0x3178fc['DxIYS'](resolveBaseUrl,_0x3ea16e),_0x5715d1=resolveStartPath(_0x3ea16e);return{'baseUrl':_0x314608,'startPath':_0x5715d1,'url':joinBaseAndPath(_0x314608,_0x5715d1)};}export function readUrlEnvVars(_0xe0e200=process[_0x2ee97f(0x206)]){const _0x2c3ac4=_0x2ee97f;return{'envBaseUrl':_0xe0e200['RANGER_BASE_URL'],'envStartPath':_0xe0e200[_0x2c3ac4(0x1f6)]};}
1
+ (function(_0x300f99,_0x44bbdb){const _0x3e5c20=_0xc609,_0x4f0ad7=_0x300f99();while(!![]){try{const _0x9f14d7=-parseInt(_0x3e5c20(0x145))/0x1*(-parseInt(_0x3e5c20(0x13c))/0x2)+-parseInt(_0x3e5c20(0x14f))/0x3*(-parseInt(_0x3e5c20(0x13b))/0x4)+parseInt(_0x3e5c20(0x13f))/0x5*(-parseInt(_0x3e5c20(0x14e))/0x6)+-parseInt(_0x3e5c20(0x141))/0x7*(parseInt(_0x3e5c20(0x143))/0x8)+-parseInt(_0x3e5c20(0x13a))/0x9*(-parseInt(_0x3e5c20(0x153))/0xa)+-parseInt(_0x3e5c20(0x150))/0xb+parseInt(_0x3e5c20(0x152))/0xc*(parseInt(_0x3e5c20(0x13d))/0xd);if(_0x9f14d7===_0x44bbdb)break;else _0x4f0ad7['push'](_0x4f0ad7['shift']());}catch(_0x2fa3ce){_0x4f0ad7['push'](_0x4f0ad7['shift']());}}}(_0x3123,0x68994));function firstDefined(..._0x4bed7f){const _0x4f6631={'Ylder':function(_0xcca375,_0x47369b){return _0xcca375!==_0x47369b;}};for(const _0x35e235 of _0x4bed7f){if(_0x35e235!==undefined&&_0x35e235!==null&&_0x4f6631['Ylder'](_0x35e235,''))return _0x35e235;}return undefined;}function _0x3123(){const _0x3851b5=['endsWith','string','cloudSettings','RANGER_START_PATH','QbKQm','flagStartPath','test','https://','41796PybLOD','147HMAvAY','8977540wuUGFQ','envBaseUrl','12gmKiuW','5440qlElJv','startsWith','flagBaseUrl','1728GmXWll','63608ErzDJX','34966hJEXnp','3286049mVhHfl','localSettingsBaseUrl','220chfdJN','baseUrl','7pMoYJA','startPath','1438088tffPsQ','projectOverrides','34vKCBQn'];_0x3123=function(){return _0x3851b5;};return _0x3123();}function normalizeAuthEnvironmentDomain(_0x1d559c){const _0x14cb64=_0xc609;if(!_0x1d559c)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x14cb64(0x14c)](_0x1d559c))return _0x1d559c;return _0x14cb64(0x14d)+_0x1d559c;}function _0xc609(_0x423155,_0x5557bb){_0x423155=_0x423155-0x13a;const _0x312361=_0x3123();let _0xc60915=_0x312361[_0x423155];return _0xc60915;}export function resolveBaseUrl(_0x698c2d){const _0x3787e4=_0xc609,_0x5a1121={'atUId':'baseUrl','nCafc':function(_0xacefc5,_0x1138da){return _0xacefc5===_0x1138da;},'QbKQm':function(_0x292de8,_0xf9b588){return _0x292de8===_0xf9b588;}},_0x5131f3=_0x698c2d[_0x3787e4(0x144)],_0x48b6e8=!!_0x5131f3&&_0x5a1121['atUId']in _0x5131f3,_0x589dc1=_0x5131f3?.[_0x3787e4(0x140)],_0x12cfc4=!(_0x48b6e8&&_0x5a1121['nCafc'](_0x589dc1,null));return firstDefined(_0x698c2d[_0x3787e4(0x155)],_0x698c2d[_0x3787e4(0x151)],_0x698c2d[_0x3787e4(0x13e)],_0x5a1121[_0x3787e4(0x14a)](typeof _0x589dc1,'string')?_0x589dc1:undefined,_0x12cfc4?_0x698c2d[_0x3787e4(0x148)]?.['baseUrl']:undefined,_0x12cfc4?normalizeAuthEnvironmentDomain(_0x698c2d['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x257837){const _0xc10ed3=_0xc609,_0xa553f={'UXBTr':function(_0x1ecb9b,_0x3eabd0){return _0x1ecb9b in _0x3eabd0;},'VEVxN':_0xc10ed3(0x142)},_0x4a3e67=_0x257837[_0xc10ed3(0x144)],_0x1f47ec=!!_0x4a3e67&&_0xa553f['UXBTr'](_0xa553f['VEVxN'],_0x4a3e67),_0x22ab1e=_0x4a3e67?.['startPath'],_0x47c983=!(_0x1f47ec&&_0x22ab1e===null);return firstDefined(_0x257837[_0xc10ed3(0x14b)],_0x257837['envStartPath'],typeof _0x22ab1e===_0xc10ed3(0x147)?_0x22ab1e:undefined,_0x47c983?_0x257837[_0xc10ed3(0x148)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x17b5ec,_0x513d45){const _0x4662b1=_0xc609;if(!_0x17b5ec)return undefined;if(!_0x513d45)return _0x17b5ec;const _0x487519=_0x17b5ec[_0x4662b1(0x146)]('/')?_0x17b5ec['slice'](0x0,-0x1):_0x17b5ec,_0x210767=_0x513d45[_0x4662b1(0x154)]('/')?_0x513d45:'/'+_0x513d45;return _0x487519+_0x210767;}export function resolveProfileUrl(_0x24fec8){const _0x4bcab7={'kZdqv':function(_0x14f378,_0x385d40){return _0x14f378(_0x385d40);},'pZtya':function(_0x583ddf,_0x2b3d48,_0x1a7907){return _0x583ddf(_0x2b3d48,_0x1a7907);}},_0x4f3118=_0x4bcab7['kZdqv'](resolveBaseUrl,_0x24fec8),_0x11e42d=resolveStartPath(_0x24fec8);return{'baseUrl':_0x4f3118,'startPath':_0x11e42d,'url':_0x4bcab7['pZtya'](joinBaseAndPath,_0x4f3118,_0x11e42d)};}export function readUrlEnvVars(_0x49c89f=process['env']){const _0x52d526=_0xc609;return{'envBaseUrl':_0x49c89f['RANGER_BASE_URL'],'envStartPath':_0x49c89f[_0x52d526(0x149)]};}
@@ -1 +1 @@
1
- function _0xe4c8(_0x29257e,_0x4300f0){_0x29257e=_0x29257e-0x1eb;const _0x50cd59=_0x50cd();let _0xe4c853=_0x50cd59[_0x29257e];return _0xe4c853;}(function(_0x5577aa,_0x5722be){const _0x20cf0b=_0xe4c8,_0x15bb75=_0x5577aa();while(!![]){try{const _0x1c2335=-parseInt(_0x20cf0b(0x1f8))/0x1*(-parseInt(_0x20cf0b(0x1eb))/0x2)+parseInt(_0x20cf0b(0x1f3))/0x3*(parseInt(_0x20cf0b(0x1f2))/0x4)+parseInt(_0x20cf0b(0x1f7))/0x5*(parseInt(_0x20cf0b(0x1ed))/0x6)+parseInt(_0x20cf0b(0x1f5))/0x7+-parseInt(_0x20cf0b(0x1ee))/0x8*(parseInt(_0x20cf0b(0x1f0))/0x9)+-parseInt(_0x20cf0b(0x1fd))/0xa+-parseInt(_0x20cf0b(0x1f1))/0xb;if(_0x1c2335===_0x5722be)break;else _0x15bb75['push'](_0x15bb75['shift']());}catch(_0x17c315){_0x15bb75['push'](_0x15bb75['shift']());}}}(_0x50cd,0x65c21));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x52f95d,_0x4c53ee){const _0x291d17=_0xe4c8,_0x3bd990={'LkVUp':function(_0x3473e3,_0x1354c7){return _0x3473e3<=_0x1354c7;},'fyrwI':function(_0x2d52ed,_0x3e24b1){return _0x2d52ed instanceof _0x3e24b1;},'COImw':function(_0x2459a0,_0x22c7cd){return _0x2459a0<_0x22c7cd;},'IDSnq':function(_0x5e2896,_0x54c0e0){return _0x5e2896*_0x54c0e0;}},_0x3b9e15=_0x4c53ee?.[_0x291d17(0x1ef)]??DEFAULT_MAX_RETRIES,_0x3f2e7d=_0x4c53ee?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x14fdcf;for(let _0x439910=0x0;_0x3bd990[_0x291d17(0x1fa)](_0x439910,_0x3b9e15);_0x439910++){try{return await _0x52f95d();}catch(_0x48bd18){_0x14fdcf=_0x3bd990[_0x291d17(0x1ff)](_0x48bd18,Error)?_0x48bd18:new Error(String(_0x48bd18));if(_0x3bd990[_0x291d17(0x1ec)](_0x439910,_0x3b9e15)){const _0xe02e16=_0x3bd990[_0x291d17(0x1f6)](_0x3f2e7d,Math['pow'](0x2,_0x439910));_0x4c53ee?.[_0x291d17(0x1f9)]&&console[_0x291d17(0x1f4)](_0x4c53ee['label']+_0x291d17(0x1fe)+(_0x439910+0x1)+'/'+(_0x3b9e15+0x1)+_0x291d17(0x1fc)+_0xe02e16+_0x291d17(0x1fb)),await new Promise(_0x2df3b2=>setTimeout(_0x2df3b2,_0xe02e16));}}}throw _0x14fdcf;}function _0x50cd(){const _0x2fdbc1=['668FbGDpR','11535vvzzwP','error','2741963YxdKAn','IDSnq','4415dDSTyO','19281atCPrU','label','LkVUp','ms...','),\x20retrying\x20in\x20','5227060RuxGeK','\x20failed\x20(attempt\x20','fyrwI','60pIJqXU','COImw','3288dEUKwJ','105016MEkaeR','maxRetries','450DNVbGW','5503091ctAaRz'];_0x50cd=function(){return _0x2fdbc1;};return _0x50cd();}
1
+ (function(_0x2a082d,_0x4861ab){const _0x19902a=_0x107f,_0x2b333e=_0x2a082d();while(!![]){try{const _0x41b603=parseInt(_0x19902a(0xa2))/0x1*(parseInt(_0x19902a(0xa5))/0x2)+parseInt(_0x19902a(0xa4))/0x3*(-parseInt(_0x19902a(0x9b))/0x4)+parseInt(_0x19902a(0xa1))/0x5+parseInt(_0x19902a(0xa6))/0x6+-parseInt(_0x19902a(0x9e))/0x7+parseInt(_0x19902a(0x9c))/0x8+-parseInt(_0x19902a(0xa0))/0x9*(parseInt(_0x19902a(0xa3))/0xa);if(_0x41b603===_0x4861ab)break;else _0x2b333e['push'](_0x2b333e['shift']());}catch(_0x52884c){_0x2b333e['push'](_0x2b333e['shift']());}}}(_0x30b3,0x4fee0));function _0x107f(_0x491dd4,_0x5e61fb){_0x491dd4=_0x491dd4-0x96;const _0x30b32b=_0x30b3();let _0x107f2c=_0x30b32b[_0x491dd4];return _0x107f2c;}function _0x30b3(){const _0x37a4eb=['oKTfz','484650vTGfVz','2279150TdyEtc','517116kJtkFx','130UghXTG','8718VNJhmS','2rbkmRN','3829428pxhArF','JEpxh','ms...','),\x20retrying\x20in\x20','\x20failed\x20(attempt\x20','efaWk','524kndTIc','3464928AiiMgS','label','4453204aCqtAd'];_0x30b3=function(){return _0x37a4eb;};return _0x30b3();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4645ae,_0x3504d0){const _0x2d1eb3=_0x107f,_0x1fadbb={'mwbZi':function(_0x2cb998,_0xb8bc9){return _0x2cb998<=_0xb8bc9;},'efaWk':function(_0x457c94,_0x26f7ed){return _0x457c94(_0x26f7ed);},'oKTfz':function(_0x5be379,_0x49b3f5){return _0x5be379<_0x49b3f5;},'JEpxh':function(_0x90ddeb,_0x275b5c){return _0x90ddeb+_0x275b5c;}},_0x3e7808=_0x3504d0?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x1b3920=_0x3504d0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x573f79;for(let _0x3970be=0x0;_0x1fadbb['mwbZi'](_0x3970be,_0x3e7808);_0x3970be++){try{return await _0x4645ae();}catch(_0x1d80e9){_0x573f79=_0x1d80e9 instanceof Error?_0x1d80e9:new Error(_0x1fadbb[_0x2d1eb3(0x9a)](String,_0x1d80e9));if(_0x1fadbb[_0x2d1eb3(0x9f)](_0x3970be,_0x3e7808)){const _0x50e301=_0x1b3920*Math['pow'](0x2,_0x3970be);_0x3504d0?.['label']&&console['error'](_0x3504d0[_0x2d1eb3(0x9d)]+_0x2d1eb3(0x99)+(_0x3970be+0x1)+'/'+_0x1fadbb[_0x2d1eb3(0x96)](_0x3e7808,0x1)+_0x2d1eb3(0x98)+_0x50e301+_0x2d1eb3(0x97)),await new Promise(_0x2b7573=>setTimeout(_0x2b7573,_0x50e301));}}}throw _0x573f79;}
@@ -1 +1 @@
1
- const _0x3415a8=_0x3e92;(function(_0x33683e,_0x31a2f1){const _0x3b6658=_0x3e92,_0x4bd50a=_0x33683e();while(!![]){try{const _0x16aab9=-parseInt(_0x3b6658(0x1a8))/0x1*(-parseInt(_0x3b6658(0x1c9))/0x2)+parseInt(_0x3b6658(0x1aa))/0x3+parseInt(_0x3b6658(0x1c0))/0x4+-parseInt(_0x3b6658(0x1c3))/0x5+parseInt(_0x3b6658(0x1c8))/0x6*(-parseInt(_0x3b6658(0x1a2))/0x7)+-parseInt(_0x3b6658(0x1c6))/0x8+parseInt(_0x3b6658(0x1be))/0x9;if(_0x16aab9===_0x31a2f1)break;else _0x4bd50a['push'](_0x4bd50a['shift']());}catch(_0x5a82ca){_0x4bd50a['push'](_0x4bd50a['shift']());}}}(_0x2e30,0xd07f6));import*as _0x4a2dc1 from'fs';import*as _0x207d4a from'path';import*as _0x4d484f from'os';import{execSync}from'child_process';const CACHE_FILE=_0x207d4a[_0x3415a8(0x1a0)](_0x4d484f[_0x3415a8(0x1a3)](),'.claude',_0x3415a8(0x1cd));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x125d69=_0x3415a8,_0xb5314e={'TjGEQ':_0x125d69(0x1ab)};try{if(_0x4a2dc1['existsSync'](CACHE_FILE)){const _0xf50e67=JSON['parse'](_0x4a2dc1['readFileSync'](CACHE_FILE,_0xb5314e[_0x125d69(0x1b8)]));return{'version':0x3,'sessions':_0xf50e67['sessions']||{},'branches':_0xf50e67[_0x125d69(0x1cc)]||{},'lastEnabledSessionClearedAt':_0xf50e67[_0x125d69(0x1d2)]};}}catch{}return createEmptyCache();}function saveCache(_0x2e6a46){const _0x8d2fd8=_0x3415a8;try{const _0x4a59bb=_0x207d4a['dirname'](CACHE_FILE);!_0x4a2dc1['existsSync'](_0x4a59bb)&&_0x4a2dc1[_0x8d2fd8(0x1b5)](_0x4a59bb,{'recursive':!![]}),_0x4a2dc1[_0x8d2fd8(0x1a5)](CACHE_FILE,JSON[_0x8d2fd8(0x1d3)](_0x2e6a46,null,0x2));}catch{}}export function getCurrentBranch(){const _0x35e599=_0x3415a8,_0x364418={'ZRzMz':function(_0x2285fc,_0x4bb2ad,_0x1ed840){return _0x2285fc(_0x4bb2ad,_0x1ed840);},'pPmTF':'pipe','qipiV':function(_0x554f20,_0x1c15f5){return _0x554f20===_0x1c15f5;},'fuLBJ':'HEAD'};try{const _0xe52f2c=_0x364418[_0x35e599(0x1a4)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x35e599(0x1ab),'stdio':['pipe',_0x364418['pPmTF'],_0x364418[_0x35e599(0x1a7)]]})[_0x35e599(0x1ce)]();if(!_0xe52f2c||_0x364418[_0x35e599(0x1d1)](_0xe52f2c,_0x364418['fuLBJ']))return null;return _0xe52f2c;}catch{return null;}}export function enableBranch(_0x598b22){const _0x54ad9b={'kZkCS':function(_0x597e47,_0x2dccc7){return _0x597e47(_0x2dccc7);}},_0x4c7176=loadCache();_0x4c7176['branches'][_0x598b22]=!![],_0x54ad9b['kZkCS'](saveCache,_0x4c7176);}export function disableBranch(_0x16635e){const _0x5b729d=_0x3415a8,_0x348eaf={'Rlgjj':function(_0x43b992){return _0x43b992();},'eRMeA':function(_0x33d2c4,_0x3278af){return _0x33d2c4(_0x3278af);}},_0x2c30c4=_0x348eaf['Rlgjj'](loadCache);delete _0x2c30c4[_0x5b729d(0x1cc)][_0x16635e],_0x348eaf[_0x5b729d(0x1b0)](saveCache,_0x2c30c4);}export function isBranchEnabled(_0x49f029){const _0x9afb7c=_0x3415a8,_0x2cff99={'ZNLaI':function(_0x56f9c8){return _0x56f9c8();},'vYtzL':function(_0x1ca6a9,_0xd94ab1){return _0x1ca6a9===_0xd94ab1;}},_0x40279b=_0x2cff99[_0x9afb7c(0x1b7)](loadCache);return _0x2cff99[_0x9afb7c(0x1bf)](_0x40279b['branches'][_0x49f029],!![]);}function getOrCreateSession(_0x1d0475,_0x31c707){const _0x5e54e7=_0x3415a8;return!_0x1d0475['sessions'][_0x31c707]&&(_0x1d0475['sessions'][_0x31c707]={}),_0x1d0475[_0x5e54e7(0x1b9)][_0x31c707];}export function enableSession(_0x32e26c){const _0x37661a=_0x3415a8,_0x5e85b4={'uIlIm':function(_0x55aa3a){return _0x55aa3a();},'cmbmG':function(_0x53c5f0,_0x91d110){return _0x53c5f0!==_0x91d110;},'dgiAc':_0x37661a(0x19f),'mWjPl':function(_0xeee33d,_0x3a044f){return _0xeee33d!==_0x3a044f;}},_0x2589d0=_0x5e85b4[_0x37661a(0x1c2)](loadCache),_0x367efc=getOrCreateSession(_0x2589d0,_0x32e26c);_0x367efc['enabled']=!![];const _0x252c33=getCurrentBranch();_0x252c33&&_0x5e85b4[_0x37661a(0x1ca)](_0x252c33,_0x5e85b4['dgiAc'])&&_0x5e85b4['mWjPl'](_0x252c33,'master')&&(_0x2589d0['branches'][_0x252c33]=!![],_0x367efc[_0x37661a(0x1a6)]=_0x252c33),saveCache(_0x2589d0);}export function isSessionEnabled(_0xec1572){const _0x12c86c=_0x3415a8,_0x3077ea={'EaIDk':function(_0xb9d759){return _0xb9d759();},'cKgou':_0x12c86c(0x19f),'XHBsc':function(_0x39c40d,_0x4285d4){return _0x39c40d===_0x4285d4;}},_0x482035=_0x3077ea[_0x12c86c(0x1a1)](loadCache),_0x3b356a=getCurrentBranch();if(!_0x3b356a||_0x3b356a===_0x3077ea[_0x12c86c(0x1cb)]||_0x3077ea['XHBsc'](_0x3b356a,_0x12c86c(0x1c1)))return _0x482035[_0x12c86c(0x1b9)][_0xec1572]?.['enabled']===!![];const _0x1e50ab=_0x482035['branches'][_0x3b356a]===!![],_0x2667bd=_0x482035['sessions'][_0xec1572]?.['enabled']===!![];return _0x1e50ab||_0x2667bd;}export function disableSession(_0x57a944){const _0x48fcc3={'CHidw':function(_0x326767){return _0x326767();},'zrsni':function(_0x3d6618,_0x561388,_0x1865d1){return _0x3d6618(_0x561388,_0x1865d1);}},_0x4c1908=_0x48fcc3['CHidw'](loadCache),_0x311d27=_0x48fcc3['zrsni'](getOrCreateSession,_0x4c1908,_0x57a944);_0x311d27['enabled']=![],saveCache(_0x4c1908);}export function updateBranchTracking(_0x17932b){const _0x13f630=_0x3415a8,_0x427c7b={'aSUxL':function(_0x1a3b5){return _0x1a3b5();},'gRuUs':function(_0x2df820,_0x5f4af7){return _0x2df820===_0x5f4af7;},'PeqHt':_0x13f630(0x19f),'HWtCc':_0x13f630(0x1c1),'KdjHP':function(_0x3d6fbc,_0x3f5c9a){return _0x3d6fbc!==_0x3f5c9a;}},_0x2b6b28=_0x427c7b[_0x13f630(0x1b6)](loadCache),_0x3b9c3b=_0x2b6b28['sessions'][_0x17932b];if(!_0x3b9c3b?.[_0x13f630(0x1ad)])return;const _0x225384=_0x427c7b[_0x13f630(0x1b6)](getCurrentBranch);if(!_0x225384||_0x427c7b[_0x13f630(0x1cf)](_0x225384,_0x427c7b[_0x13f630(0x1ae)])||_0x225384===_0x427c7b['HWtCc'])return;_0x427c7b['KdjHP'](_0x3b9c3b[_0x13f630(0x1a6)],_0x225384)&&(_0x2b6b28[_0x13f630(0x1cc)][_0x225384]=!![],_0x3b9c3b[_0x13f630(0x1a6)]=_0x225384,saveCache(_0x2b6b28));}function _0x2e30(){const _0x5b2248=['29KRMpeC','FJmka','1439715MinbJm','utf-8','featureId','enabled','PeqHt','LSyKh','eRMeA','ytkpG','gHYto','wGqWh','toISOString','mkdirSync','aSUxL','ZNLaI','TjGEQ','sessions','HTtzY','NQqiY','prompted','clear','24194763qnocVJ','vYtzL','2981324DULRWM','master','uIlIm','8365630vUQcqc','now','GxcLQ','9088320GsQgwb','uVyzd','12FnLaSb','14374uXbVfW','cmbmG','cKgou','branches','.ranger_cache.json','trim','gRuUs','lastPlanReminderAt','qipiV','lastEnabledSessionClearedAt','stringify','registeredAt','main','join','EaIDk','1605779KvmahL','homedir','ZRzMz','writeFileSync','currentBranch','pPmTF'];_0x2e30=function(){return _0x5b2248;};return _0x2e30();}function _0x3e92(_0x4e59ff,_0x1ef2fb){_0x4e59ff=_0x4e59ff-0x19f;const _0x2e30ba=_0x2e30();let _0x3e928d=_0x2e30ba[_0x4e59ff];return _0x3e928d;}export function initBranchTracking(_0xabde5e){const _0x5d43b7=_0x3415a8,_0x4543ab={'ytkpG':function(_0x3a13a5,_0x3bc094){return _0x3a13a5===_0x3bc094;},'HTtzY':_0x5d43b7(0x19f),'zIjBE':'master','lFAsN':function(_0x12d08e,_0x3a4334){return _0x12d08e(_0x3a4334);}},_0x356b55=loadCache(),_0x47828f=getCurrentBranch();if(!_0x47828f||_0x4543ab[_0x5d43b7(0x1b1)](_0x47828f,_0x4543ab[_0x5d43b7(0x1ba)])||_0x4543ab[_0x5d43b7(0x1b1)](_0x47828f,_0x4543ab['zIjBE']))return;if(_0x356b55['branches'][_0x47828f]===!![]){const _0x745bca=getOrCreateSession(_0x356b55,_0xabde5e);_0x745bca[_0x5d43b7(0x1ad)]=!![],_0x745bca['currentBranch']=_0x47828f,_0x4543ab['lFAsN'](saveCache,_0x356b55);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1890fd){const _0x424f27=_0x3415a8,_0x164202={'nJhns':function(_0x5531f8){return _0x5531f8();},'gHYto':function(_0x19a4d9,_0x42fe70){return _0x19a4d9(_0x42fe70);}},_0x327e3d=_0x164202['nJhns'](loadCache),_0x160442=_0x327e3d[_0x424f27(0x1b9)][_0x1890fd];_0x160442?.[_0x424f27(0x1ad)]&&(_0x327e3d[_0x424f27(0x1d2)]=Date['now'](),_0x164202[_0x424f27(0x1b2)](saveCache,_0x327e3d));}export function shouldAutoEnableAfterClear(_0x1cf780){const _0x4cdab5=_0x3415a8,_0x4f0c95={'FiZtt':_0x4cdab5(0x1bd),'onfDN':function(_0x3fe8ab){return _0x3fe8ab();},'QmLsw':function(_0x52a7f9,_0x25303d){return _0x52a7f9-_0x25303d;},'rcBmZ':function(_0x58e78a,_0x134eb4){return _0x58e78a<=_0x134eb4;}};if(_0x1cf780!==_0x4f0c95['FiZtt'])return![];const _0x189c08=_0x4f0c95['onfDN'](loadCache),_0x5099cb=_0x189c08['lastEnabledSessionClearedAt'];if(!_0x5099cb)return![];const _0x5c1534=_0x4f0c95['QmLsw'](Date[_0x4cdab5(0x1c4)](),_0x5099cb);return _0x4f0c95['rcBmZ'](_0x5c1534,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x1ac1c4){const _0x3610d9=_0x3415a8,_0x3f339c={'uVyzd':function(_0x88adc4,_0x46ca34,_0x79bd19){return _0x88adc4(_0x46ca34,_0x79bd19);},'GxcLQ':function(_0x17c83a,_0x1c0518){return _0x17c83a!==_0x1c0518;},'BruLp':'main'},_0x3cfdd6=loadCache(),_0x460147=_0x3f339c[_0x3610d9(0x1c7)](getOrCreateSession,_0x3cfdd6,_0x1ac1c4);_0x460147[_0x3610d9(0x1ad)]=!![];const _0x5c3198=getCurrentBranch();_0x5c3198&&_0x3f339c['GxcLQ'](_0x5c3198,_0x3f339c['BruLp'])&&_0x3f339c[_0x3610d9(0x1c5)](_0x5c3198,'master')&&(_0x460147['currentBranch']=_0x5c3198),delete _0x3cfdd6[_0x3610d9(0x1d2)],saveCache(_0x3cfdd6);}export function registerSession(_0x27bd3a,_0x4e323b){const _0x308981=_0x3415a8,_0x56d255={'ALCet':function(_0xfdfe2a){return _0xfdfe2a();},'zLEcP':function(_0xdd436a,_0x555956){return _0xdd436a(_0x555956);}},_0xeda365=_0x56d255['ALCet'](loadCache),_0x8bb7d8=getOrCreateSession(_0xeda365,_0x27bd3a);_0x8bb7d8['featureId']=_0x4e323b,_0x8bb7d8[_0x308981(0x1d4)]=new Date()[_0x308981(0x1b4)](),_0x56d255['zLEcP'](saveCache,_0xeda365);}export function getSessionEntry(_0x10abfa){const _0x20d55f=_0x3415a8,_0x390a4f=loadCache(),_0x3b3e70=_0x390a4f[_0x20d55f(0x1b9)][_0x10abfa];if(_0x3b3e70?.['featureId']&&_0x3b3e70?.['registeredAt'])return{'featureId':_0x3b3e70[_0x20d55f(0x1ac)],'registeredAt':_0x3b3e70[_0x20d55f(0x1d4)]};return null;}export function unregisterSession(_0x1d97c1){const _0x7e74f=_0x3415a8,_0x8fd5b9={'frNQu':function(_0x2bac6c,_0x4cf59a){return _0x2bac6c(_0x4cf59a);}},_0x34d912=loadCache(),_0x2d9fee=_0x34d912[_0x7e74f(0x1b9)][_0x1d97c1];_0x2d9fee&&(delete _0x2d9fee['featureId'],delete _0x2d9fee[_0x7e74f(0x1d4)],_0x8fd5b9['frNQu'](saveCache,_0x34d912));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x557d2d){const _0x54803f=_0x3415a8,_0xa4420f={'NQqiY':function(_0x1c72f2){return _0x1c72f2();},'LSyKh':function(_0x2b0d6b,_0x158128,_0x37aff4){return _0x2b0d6b(_0x158128,_0x37aff4);},'BgJtq':function(_0x2ac349,_0x2d0d31){return _0x2ac349(_0x2d0d31);}},_0x320c73=_0xa4420f[_0x54803f(0x1bb)](loadCache),_0x3b2b95=_0xa4420f[_0x54803f(0x1af)](getOrCreateSession,_0x320c73,_0x557d2d),_0x17c0de=_0x3b2b95[_0x54803f(0x1d0)]||0x0,_0x132036=Date[_0x54803f(0x1c4)]();if(_0x132036-_0x17c0de>=PLAN_REMINDER_INTERVAL_MS)return _0x3b2b95['lastPlanReminderAt']=_0x132036,_0xa4420f['BgJtq'](saveCache,_0x320c73),!![];return![];}export function shouldShowStopReminder(_0x5284ec){const _0x397dee=_0x3415a8,_0x4b66cb={'FJmka':function(_0x4d8d02){return _0x4d8d02();},'YHrVo':function(_0x2f86f2,_0x360a57,_0x55a38b){return _0x2f86f2(_0x360a57,_0x55a38b);},'UdJSm':function(_0x1c1d99,_0x7eee70){return _0x1c1d99>=_0x7eee70;}},_0x5c1f46=_0x4b66cb[_0x397dee(0x1a9)](loadCache),_0x410d35=_0x4b66cb['YHrVo'](getOrCreateSession,_0x5c1f46,_0x5284ec),_0x38fb90=_0x410d35['lastStopReminderAt']||0x0,_0x310524=Date[_0x397dee(0x1c4)]();if(_0x4b66cb['UdJSm'](_0x310524-_0x38fb90,STOP_REMINDER_INTERVAL_MS))return _0x410d35['lastStopReminderAt']=_0x310524,saveCache(_0x5c1f46),!![];return![];}export function hasSessionBeenPrompted(_0x3f1a31){const _0x4421ea=_0x3415a8,_0x1cd6f3={'ANqfw':function(_0x12096d){return _0x12096d();}},_0x3a89c5=_0x1cd6f3['ANqfw'](loadCache);return _0x3a89c5[_0x4421ea(0x1b9)][_0x3f1a31]?.['prompted']===!![];}export function markSessionPrompted(_0x2ae1b6){const _0x32a063=_0x3415a8,_0x260ad5={'wGqWh':function(_0x18b079){return _0x18b079();},'udUIB':function(_0x20e117,_0x3edfea,_0x16c1ca){return _0x20e117(_0x3edfea,_0x16c1ca);},'QGQrd':function(_0x53651a,_0x24cdb3){return _0x53651a(_0x24cdb3);}},_0xc112d8=_0x260ad5[_0x32a063(0x1b3)](loadCache),_0x279063=_0x260ad5['udUIB'](getOrCreateSession,_0xc112d8,_0x2ae1b6);_0x279063[_0x32a063(0x1bc)]=!![],_0x260ad5['QGQrd'](saveCache,_0xc112d8);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0xaa40b8=_0x4b62;(function(_0x4c58fb,_0x3197fd){const _0x5d2521=_0x4b62,_0x48fb1a=_0x4c58fb();while(!![]){try{const _0x5deb2e=-parseInt(_0x5d2521(0xcf))/0x1*(parseInt(_0x5d2521(0xae))/0x2)+parseInt(_0x5d2521(0xa3))/0x3*(parseInt(_0x5d2521(0xaf))/0x4)+parseInt(_0x5d2521(0xab))/0x5+-parseInt(_0x5d2521(0xa0))/0x6*(parseInt(_0x5d2521(0xaa))/0x7)+-parseInt(_0x5d2521(0xb8))/0x8+-parseInt(_0x5d2521(0xc2))/0x9+parseInt(_0x5d2521(0xa1))/0xa;if(_0x5deb2e===_0x3197fd)break;else _0x48fb1a['push'](_0x48fb1a['shift']());}catch(_0x15ec65){_0x48fb1a['push'](_0x48fb1a['shift']());}}}(_0x2817,0x409f8));import*as _0x1bfd68 from'fs';import*as _0x44539b from'path';function _0x2817(){const _0x4f50a5=['HxhOG','prompted','16yIuknb','4vKNRNZ','poURA','branches','oadOb','master','QVBXi','upPUE','.ranger_cache.json','enabled','226184OIiOjJ','sessions','lastStopReminderAt','HEAD','existsSync','hOhPy','bvzQS','now','stringify','dRgUx','712341cNveqf','lastEnabledSessionClearedAt','TNdAw','mouIL','hrrKE','YuNFW','featureId','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lJybJ','uFXiw','ipvFC','utf-8','toISOString','12326RMXzZt','CXJcC','McBky','1368OGGmfn','760770kIhoBJ','lastPlanReminderAt','668238WxeCnO','homedir','clear','rsQDT','currentBranch','main','xrkCw','4011bQEZMM','1512735ObAhfS'];_0x2817=function(){return _0x4f50a5;};return _0x2817();}import*as _0x4d0592 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x44539b['join'](_0x4d0592[_0xaa40b8(0xa4)](),'.claude',_0xaa40b8(0xb6));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ba595=_0xaa40b8,_0x552495={'McBky':_0x3ba595(0xcd),'mouIL':function(_0x2cec4f){return _0x2cec4f();}};try{if(_0x1bfd68['existsSync'](CACHE_FILE)){const _0x417690=JSON['parse'](_0x1bfd68['readFileSync'](CACHE_FILE,_0x552495[_0x3ba595(0x9f)]));return{'version':0x3,'sessions':_0x417690['sessions']||{},'branches':_0x417690['branches']||{},'lastEnabledSessionClearedAt':_0x417690[_0x3ba595(0xc3)]};}}catch{}return _0x552495[_0x3ba595(0xc5)](createEmptyCache);}function saveCache(_0x10d9ad){const _0x1a8671=_0xaa40b8;try{const _0x5adb03=_0x44539b['dirname'](CACHE_FILE);!_0x1bfd68[_0x1a8671(0xbc)](_0x5adb03)&&_0x1bfd68['mkdirSync'](_0x5adb03,{'recursive':!![]}),_0x1bfd68['writeFileSync'](CACHE_FILE,JSON[_0x1a8671(0xc0)](_0x10d9ad,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58f467=_0xaa40b8,_0x323747={'pfvVy':function(_0x4b1f3c,_0x3cb0e4,_0x3a9c5d){return _0x4b1f3c(_0x3cb0e4,_0x3a9c5d);},'lJybJ':_0x58f467(0xc9),'poURA':_0x58f467(0xcd),'HVBJe':'pipe','ipvFC':function(_0x1f614e,_0x563304){return _0x1f614e===_0x563304;},'yuLTH':_0x58f467(0xbb)};try{const _0x473495=_0x323747['pfvVy'](execSync,_0x323747[_0x58f467(0xca)],{'encoding':_0x323747[_0x58f467(0xb0)],'stdio':[_0x323747['HVBJe'],_0x323747['HVBJe'],'pipe']})['trim']();if(!_0x473495||_0x323747[_0x58f467(0xcc)](_0x473495,_0x323747['yuLTH']))return null;return _0x473495;}catch{return null;}}export function enableBranch(_0x53c84a){const _0x2007f7=loadCache();_0x2007f7['branches'][_0x53c84a]=!![],saveCache(_0x2007f7);}export function disableBranch(_0x2c9958){const _0x4bbc94=_0xaa40b8,_0x288be1=loadCache();delete _0x288be1[_0x4bbc94(0xb1)][_0x2c9958],saveCache(_0x288be1);}export function isBranchEnabled(_0xa706c9){const _0x142bbe={'BCVgH':function(_0x4e4743,_0x55a0e0){return _0x4e4743===_0x55a0e0;}},_0x423bd6=loadCache();return _0x142bbe['BCVgH'](_0x423bd6['branches'][_0xa706c9],!![]);}function getOrCreateSession(_0x585051,_0x3a246f){const _0xbbd101=_0xaa40b8;return!_0x585051[_0xbbd101(0xb9)][_0x3a246f]&&(_0x585051[_0xbbd101(0xb9)][_0x3a246f]={}),_0x585051['sessions'][_0x3a246f];}export function enableSession(_0x236600){const _0x34f5b4=_0xaa40b8,_0x137144={'etqGa':function(_0x471d74){return _0x471d74();},'MscOh':function(_0x49d9d0,_0xf344fa){return _0x49d9d0!==_0xf344fa;}},_0x3ee0dc=_0x137144['etqGa'](loadCache),_0x7053f8=getOrCreateSession(_0x3ee0dc,_0x236600);_0x7053f8[_0x34f5b4(0xb7)]=!![];const _0x27d116=getCurrentBranch();_0x27d116&&_0x27d116!=='main'&&_0x137144['MscOh'](_0x27d116,'master')&&(_0x3ee0dc['branches'][_0x27d116]=!![],_0x7053f8['currentBranch']=_0x27d116),saveCache(_0x3ee0dc);}export function isSessionEnabled(_0x54e94c){const _0x17c4e6=_0xaa40b8,_0x16b28f={'XXJku':function(_0x1b7756){return _0x1b7756();},'sKORc':_0x17c4e6(0xa8),'rxzSe':'master','uFXiw':function(_0x42beb6,_0xec8228){return _0x42beb6===_0xec8228;},'YuNFW':function(_0x5bc41f,_0x3c5923){return _0x5bc41f||_0x3c5923;}},_0x5905b=_0x16b28f['XXJku'](loadCache),_0xca6cc9=getCurrentBranch();if(!_0xca6cc9||_0xca6cc9===_0x16b28f['sKORc']||_0xca6cc9===_0x16b28f['rxzSe'])return _0x5905b[_0x17c4e6(0xb9)][_0x54e94c]?.[_0x17c4e6(0xb7)]===!![];const _0x5bd32f=_0x16b28f[_0x17c4e6(0xcb)](_0x5905b[_0x17c4e6(0xb1)][_0xca6cc9],!![]),_0x319f53=_0x5905b[_0x17c4e6(0xb9)][_0x54e94c]?.['enabled']===!![];return _0x16b28f[_0x17c4e6(0xc7)](_0x5bd32f,_0x319f53);}export function disableSession(_0x24445d){const _0x12fe5a=_0xaa40b8,_0x3be05c={'xrkCw':function(_0x37d001,_0x55d749){return _0x37d001(_0x55d749);}},_0x12b1f7=loadCache(),_0x190f1c=getOrCreateSession(_0x12b1f7,_0x24445d);_0x190f1c['enabled']=![],_0x3be05c[_0x12fe5a(0xa9)](saveCache,_0x12b1f7);}export function updateBranchTracking(_0xa7c70c){const _0x18e353=_0xaa40b8,_0x49b7c9={'HxhOG':function(_0x1a5e46){return _0x1a5e46();},'QVBXi':function(_0x7e08c1,_0x9b1a48){return _0x7e08c1===_0x9b1a48;},'rsQDT':'master','TNdAw':function(_0xa84649,_0x3cc323){return _0xa84649!==_0x3cc323;}},_0x535f1f=_0x49b7c9[_0x18e353(0xac)](loadCache),_0xef92ab=_0x535f1f[_0x18e353(0xb9)][_0xa7c70c];if(!_0xef92ab?.['enabled'])return;const _0x263491=getCurrentBranch();if(!_0x263491||_0x263491===_0x18e353(0xa8)||_0x49b7c9[_0x18e353(0xb4)](_0x263491,_0x49b7c9[_0x18e353(0xa6)]))return;_0x49b7c9[_0x18e353(0xc4)](_0xef92ab['currentBranch'],_0x263491)&&(_0x535f1f['branches'][_0x263491]=!![],_0xef92ab['currentBranch']=_0x263491,saveCache(_0x535f1f));}function _0x4b62(_0x2897b1,_0x5c6eac){_0x2897b1=_0x2897b1-0x9e;const _0x2817d6=_0x2817();let _0x4b62fb=_0x2817d6[_0x2897b1];return _0x4b62fb;}export function initBranchTracking(_0x4d37ff){const _0x5d5597=_0xaa40b8,_0x1b801c={'hOhPy':function(_0x3e6b69){return _0x3e6b69();},'tpwER':function(_0x540038,_0x2dc22d){return _0x540038===_0x2dc22d;}},_0x32acc7=_0x1b801c[_0x5d5597(0xbd)](loadCache),_0x3a0335=getCurrentBranch();if(!_0x3a0335||_0x3a0335===_0x5d5597(0xa8)||_0x1b801c['tpwER'](_0x3a0335,'master'))return;if(_0x32acc7['branches'][_0x3a0335]===!![]){const _0x35d694=getOrCreateSession(_0x32acc7,_0x4d37ff);_0x35d694[_0x5d5597(0xb7)]=!![],_0x35d694['currentBranch']=_0x3a0335,saveCache(_0x32acc7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x4147b4){const _0x34e781=_0xaa40b8,_0x4b76d3=loadCache(),_0x809b65=_0x4b76d3[_0x34e781(0xb9)][_0x4147b4];_0x809b65?.['enabled']&&(_0x4b76d3[_0x34e781(0xc3)]=Date[_0x34e781(0xbf)](),saveCache(_0x4b76d3));}export function shouldAutoEnableAfterClear(_0x534d7a){const _0x2b2f8e=_0xaa40b8,_0x250aba={'xEfqw':function(_0x3a8632){return _0x3a8632();},'zglFo':function(_0x5429b5,_0x23c82a){return _0x5429b5<=_0x23c82a;}};if(_0x534d7a!==_0x2b2f8e(0xa5))return![];const _0x13746b=_0x250aba['xEfqw'](loadCache),_0x44455e=_0x13746b['lastEnabledSessionClearedAt'];if(!_0x44455e)return![];const _0x484263=Date['now']()-_0x44455e;return _0x250aba['zglFo'](_0x484263,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xcd7435){const _0x36db33=_0xaa40b8,_0x1c0fe9={'dRgUx':function(_0x124031){return _0x124031();},'oadOb':function(_0x45e706){return _0x45e706();},'jzPtY':_0x36db33(0xb3)},_0x2b9d94=_0x1c0fe9[_0x36db33(0xc1)](loadCache),_0x2fe751=getOrCreateSession(_0x2b9d94,_0xcd7435);_0x2fe751[_0x36db33(0xb7)]=!![];const _0x2da64c=_0x1c0fe9[_0x36db33(0xb2)](getCurrentBranch);_0x2da64c&&_0x2da64c!=='main'&&_0x2da64c!==_0x1c0fe9['jzPtY']&&(_0x2fe751[_0x36db33(0xa7)]=_0x2da64c),delete _0x2b9d94['lastEnabledSessionClearedAt'],saveCache(_0x2b9d94);}export function registerSession(_0x4c8735,_0x5f1850){const _0xb3a60e=_0xaa40b8,_0x5049b5={'MuSfl':function(_0x2c4f3b){return _0x2c4f3b();},'WteGx':function(_0x4e3623,_0x11b0a6,_0x259b17){return _0x4e3623(_0x11b0a6,_0x259b17);}},_0x13c299=_0x5049b5['MuSfl'](loadCache),_0x2cc5f2=_0x5049b5['WteGx'](getOrCreateSession,_0x13c299,_0x4c8735);_0x2cc5f2['featureId']=_0x5f1850,_0x2cc5f2['registeredAt']=new Date()[_0xb3a60e(0xce)](),saveCache(_0x13c299);}export function getSessionEntry(_0x1ef64f){const _0x11e3d8=_0xaa40b8,_0x1df92d=loadCache(),_0x1786d6=_0x1df92d[_0x11e3d8(0xb9)][_0x1ef64f];if(_0x1786d6?.['featureId']&&_0x1786d6?.['registeredAt'])return{'featureId':_0x1786d6[_0x11e3d8(0xc8)],'registeredAt':_0x1786d6['registeredAt']};return null;}export function unregisterSession(_0x13fd5c){const _0x31b427=_0xaa40b8,_0x53659c={'hrrKE':function(_0x83f148){return _0x83f148();},'uVXIT':function(_0x318f02,_0x2f515e){return _0x318f02(_0x2f515e);}},_0x5cf67f=_0x53659c[_0x31b427(0xc6)](loadCache),_0x383b05=_0x5cf67f[_0x31b427(0xb9)][_0x13fd5c];_0x383b05&&(delete _0x383b05['featureId'],delete _0x383b05['registeredAt'],_0x53659c['uVXIT'](saveCache,_0x5cf67f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3976b6){const _0x3816d8=_0xaa40b8,_0x459efd={'CXJcC':function(_0x327018,_0x40eea9,_0x38af51){return _0x327018(_0x40eea9,_0x38af51);},'HlzBJ':function(_0xeac8c6,_0x26e2b2){return _0xeac8c6-_0x26e2b2;}},_0x5ab15b=loadCache(),_0x11e298=_0x459efd[_0x3816d8(0x9e)](getOrCreateSession,_0x5ab15b,_0x3976b6),_0x3c912f=_0x11e298[_0x3816d8(0xa2)]||0x0,_0x1e7d1d=Date[_0x3816d8(0xbf)]();if(_0x459efd['HlzBJ'](_0x1e7d1d,_0x3c912f)>=PLAN_REMINDER_INTERVAL_MS)return _0x11e298[_0x3816d8(0xa2)]=_0x1e7d1d,saveCache(_0x5ab15b),!![];return![];}export function shouldShowStopReminder(_0x23922c){const _0xcebc95=_0xaa40b8,_0x26f8a7={'bvzQS':function(_0x381e96){return _0x381e96();},'eWrUC':function(_0xe93d17,_0x9fa718,_0x500c17){return _0xe93d17(_0x9fa718,_0x500c17);},'ifUAq':function(_0x32a740,_0x3032e1){return _0x32a740>=_0x3032e1;},'LbSfY':function(_0x5e8df5,_0x2e1750){return _0x5e8df5-_0x2e1750;}},_0x3867ba=_0x26f8a7[_0xcebc95(0xbe)](loadCache),_0x37b062=_0x26f8a7['eWrUC'](getOrCreateSession,_0x3867ba,_0x23922c),_0x16beb6=_0x37b062['lastStopReminderAt']||0x0,_0x3a47c4=Date['now']();if(_0x26f8a7['ifUAq'](_0x26f8a7['LbSfY'](_0x3a47c4,_0x16beb6),STOP_REMINDER_INTERVAL_MS))return _0x37b062[_0xcebc95(0xba)]=_0x3a47c4,saveCache(_0x3867ba),!![];return![];}export function hasSessionBeenPrompted(_0xe6924e){const _0x45207c={'sAaKy':function(_0x401d08,_0x381706){return _0x401d08===_0x381706;}},_0x4aee07=loadCache();return _0x45207c['sAaKy'](_0x4aee07['sessions'][_0xe6924e]?.['prompted'],!![]);}export function markSessionPrompted(_0x5180e6){const _0x4e218c=_0xaa40b8,_0x1f264d={'upPUE':function(_0x316f73){return _0x316f73();},'meLcS':function(_0x3cef45,_0x901e1b,_0x37f33b){return _0x3cef45(_0x901e1b,_0x37f33b);}},_0x1154a8=_0x1f264d[_0x4e218c(0xb5)](loadCache),_0x3b5a53=_0x1f264d['meLcS'](getOrCreateSession,_0x1154a8,_0x5180e6);_0x3b5a53[_0x4e218c(0xad)]=!![],saveCache(_0x1154a8);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x27b55b=_0x55c4;(function(_0xf0c174,_0x2b412d){const _0x737460=_0x55c4,_0x41956e=_0xf0c174();while(!![]){try{const _0x438304=-parseInt(_0x737460(0x9f))/0x1+-parseInt(_0x737460(0xce))/0x2*(parseInt(_0x737460(0xc5))/0x3)+-parseInt(_0x737460(0xf3))/0x4*(-parseInt(_0x737460(0x11b))/0x5)+parseInt(_0x737460(0xe6))/0x6+-parseInt(_0x737460(0x99))/0x7*(-parseInt(_0x737460(0x118))/0x8)+parseInt(_0x737460(0xcb))/0x9+parseInt(_0x737460(0xcf))/0xa*(-parseInt(_0x737460(0xb6))/0xb);if(_0x438304===_0x2b412d)break;else _0x41956e['push'](_0x41956e['shift']());}catch(_0x217c08){_0x41956e['push'](_0x41956e['shift']());}}}(_0x5294,0x633dd));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(_0x380182,_0x35bbf8){const _0x4b27c4=_0x55c4,_0x366cca={'umOdN':function(_0x1b8602,_0x198628,_0x22a66e,_0xb5f4d6){return _0x1b8602(_0x198628,_0x22a66e,_0xb5f4d6);},'LnnWm':_0x4b27c4(0xec),'ksxRu':function(_0x37ef45,_0x24bb88){return _0x37ef45(_0x24bb88);},'GILUr':function(_0x3b179d,_0x56b764){return _0x3b179d(_0x56b764);},'GNwYa':function(_0x3abede,_0x5db413){return _0x3abede!==_0x5db413;}},_0x42aeed=_0x366cca['umOdN'](join,_0x35bbf8,'ci',_0x380182),_0x279b73=join(_0x35bbf8,_0x366cca['LnnWm'],_0x380182),_0x508c8f=join(_0x35bbf8,_0x380182),_0x4bb4c9=join(_0x35bbf8,_0x4b27c4(0xec)),_0x52b767=join(_0x35bbf8,'ci');if(existsSync(_0x42aeed))return _0x42aeed;if(_0x366cca['ksxRu'](existsSync,_0x279b73))return _0x279b73;if(_0x366cca['GILUr'](existsSync,_0x508c8f)&&(_0x366cca['GNwYa'](_0x508c8f,_0x4bb4c9)&&_0x366cca[_0x4b27c4(0xa0)](_0x508c8f,_0x52b767)?!![]:hasLegacyProfileFiles(_0x508c8f)))return _0x508c8f;return null;}export function getEnvDir(_0x72850,_0x3baabd={}){const _0x22cd45=_0x55c4,_0x40cad3={'oPPIZ':function(_0x546272,_0x4bbc7b,_0x2839b3){return _0x546272(_0x4bbc7b,_0x2839b3);},'hTtAx':function(_0x56bcb4){return _0x56bcb4();},'QJWai':function(_0x3d12a8,_0x582bfa){return _0x3d12a8!==_0x582bfa;},'iEHvZ':function(_0x27ccba,_0x1361b2,_0x4dcb70){return _0x27ccba(_0x1361b2,_0x4dcb70);},'iRyyk':function(_0x4d42ab,_0x5b5719){return _0x4d42ab(_0x5b5719);},'nCPlm':function(_0x468e34,_0x4b2ea8,_0xc2247e){return _0x468e34(_0x4b2ea8,_0xc2247e);}},_0x18a813=getRangerDir(),_0x503c94=findEnvInRoot(_0x72850,_0x18a813);if(_0x503c94){if(_0x3baabd['forWrite']&&isLegacyEnvPath(_0x503c94))throw _0x40cad3[_0x22cd45(0xa6)](legacyWriteError,_0x72850,_0x503c94);return _0x503c94;}const _0x161dfe=_0x40cad3['hTtAx'](getRangerHomeDir);if(_0x40cad3[_0x22cd45(0x102)](_0x161dfe,_0x18a813)){const _0x4dc83c=_0x40cad3['iEHvZ'](findEnvInRoot,_0x72850,_0x161dfe);if(_0x4dc83c){if(_0x3baabd['forWrite']&&_0x40cad3[_0x22cd45(0xe7)](isLegacyEnvPath,_0x4dc83c))throw _0x40cad3[_0x22cd45(0x10a)](legacyWriteError,_0x72850,_0x4dc83c);return _0x4dc83c;}}const _0x263655=join(_0x161dfe,_0x22cd45(0xec),_0x72850);if(_0x3baabd[_0x22cd45(0x117)])throw _0x40cad3[_0x22cd45(0x96)](legacyWriteError,_0x72850,_0x263655);return _0x263655;}function isLegacyEnvPath(_0x3ca3fc){const _0x5d2142=_0x55c4,_0x3f7df6={'NRaWW':function(_0x2f014e){return _0x2f014e();}},_0xd58bcb=_0x3f7df6[_0x5d2142(0xa7)](getRangerDir),_0xf9865f=getRangerHomeDir();for(const _0x12e8fe of new Set([_0xd58bcb,_0xf9865f])){const _0x2b62e4=_0x12e8fe[_0x5d2142(0xff)]('/')?_0x12e8fe:_0x12e8fe+'/';if(_0x3ca3fc===_0x12e8fe||_0x3ca3fc[_0x5d2142(0xca)](_0x2b62e4))return!![];}return![];}function legacyWriteError(_0x18e221,_0xead199){const _0x89b6db=_0x55c4,_0x52fbf7={'sIduQ':function(_0x52cfc8,_0x1ca8a2){return _0x52cfc8+_0x1ca8a2;}};return new Error(_0x52fbf7['sIduQ'](_0x52fbf7[_0x89b6db(0xaa)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x18e221+'\x22\x20to\x20legacy\x20path\x20'+_0xead199+'.\x0a',_0x89b6db(0xbb))+_0x89b6db(0xa1),_0x89b6db(0xf2)));}export function findExistingEnv(_0x59d2fe,_0x387ae7){const _0x378945=_0x55c4,_0x1b9d03={'tomte':'local','RcPCF':function(_0x50f8e8,_0x32b152,_0xd868df){return _0x50f8e8(_0x32b152,_0xd868df);},'RstGs':function(_0x22c9c8,_0xaacc13,_0x265914,_0x19753d){return _0x22c9c8(_0xaacc13,_0x265914,_0x19753d);},'fHCfv':_0x378945(0xf0),'TlElM':function(_0x3729c2,_0xf6f41f){return _0x3729c2(_0xf6f41f);},'jBgSP':function(_0x3e8bcd,_0x15dbc2){return _0x3e8bcd===_0x15dbc2;}},_0x11c8fd=_0x387ae7?.['rangerDir'],_0x98a348=_0x11c8fd?[_0x11c8fd]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x344474,_0x225c66,_0x40006c)=>_0x40006c['indexOf'](_0x344474)===_0x225c66),_0x4e2df9=_0x387ae7?.['locations']??['ci',_0x378945(0xec),'legacy'];for(const _0x237540 of _0x98a348){const _0x177718=join(_0x237540,_0x1b9d03['tomte']),_0x4c3668=_0x1b9d03[_0x378945(0xa9)](join,_0x237540,'ci'),_0x44bbdc=[{'location':'ci','path':join(_0x237540,'ci',_0x59d2fe)},{'location':'local','path':_0x1b9d03[_0x378945(0xe3)](join,_0x237540,'local',_0x59d2fe)},{'location':_0x1b9d03['fHCfv'],'path':join(_0x237540,_0x59d2fe)}];for(const _0x3c7e75 of _0x44bbdc){if(_0x4e2df9[_0x378945(0xcd)](_0x3c7e75['location'])&&_0x1b9d03['TlElM'](existsSync,_0x3c7e75[_0x378945(0xd2)])){if(_0x3c7e75['location']===_0x378945(0xf0)&&(_0x3c7e75['path']===_0x177718||_0x1b9d03[_0x378945(0xac)](_0x3c7e75[_0x378945(0xd2)],_0x4c3668))&&!hasLegacyProfileFiles(_0x3c7e75['path']))continue;return{'path':_0x3c7e75[_0x378945(0xd2)],'location':_0x3c7e75[_0x378945(0xf7)]};}}}return null;}function hasLegacyProfileFiles(_0x22cc73){const _0x178b07=_0x55c4,_0x2e0932={'aOxMn':function(_0x82b687,_0x57b11d){return _0x82b687(_0x57b11d);},'LoamY':_0x178b07(0xdd),'VXoPh':function(_0x477142,_0x341efe,_0x33a79a){return _0x477142(_0x341efe,_0x33a79a);},'PLrgK':'auth.json','XxIOX':function(_0x398d5c,_0x230b64,_0x3f7759){return _0x398d5c(_0x230b64,_0x3f7759);}};return _0x2e0932['aOxMn'](existsSync,join(_0x22cc73,_0x2e0932[_0x178b07(0x101)]))||existsSync(_0x2e0932['VXoPh'](join,_0x22cc73,_0x2e0932['PLrgK']))||existsSync(_0x2e0932['XxIOX'](join,_0x22cc73,_0x178b07(0xb7)));}export function isEnvCi(_0x2d29bb){const _0x28b018=_0x55c4,_0x199fad={'cchtL':function(_0x3d699b,_0x2a1afb){return _0x3d699b(_0x2a1afb);},'PwDru':function(_0x348af9,_0x42c439,_0x1216e8,_0x14a19b){return _0x348af9(_0x42c439,_0x1216e8,_0x14a19b);},'fuAVN':function(_0x339673){return _0x339673();},'IjwmX':function(_0x48b9fc){return _0x48b9fc();}};if(_0x199fad[_0x28b018(0xa4)](existsSync,_0x199fad['PwDru'](join,_0x199fad['fuAVN'](getRangerDir),'ci',_0x2d29bb)))return!![];const _0x3c5424=getRangerHomeDir();if(_0x3c5424!==_0x199fad[_0x28b018(0xf1)](getRangerDir)&&existsSync(join(_0x3c5424,'ci',_0x2d29bb)))return!![];return![];}export async function cleanupTempFiles(_0x288db8){const _0x6942b3=_0x55c4,_0x28c180={'meqNA':function(_0x45393d,_0x548747){return _0x45393d!==_0x548747;}},_0x35a4ce=[_0x288db8[_0x6942b3(0x10e)],_0x288db8['configPath']]['filter'](Boolean);await Promise['all'](_0x35a4ce[_0x6942b3(0xe2)](_0x35aec0=>unlink(_0x35aec0)['catch'](_0x140897=>{const _0x2ba6ed=_0x6942b3;_0x28c180[_0x2ba6ed(0x109)](_0x140897['code'],_0x2ba6ed(0xb0))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x35aec0+':',_0x140897['message']);})));}function _0x5294(){const _0x5ea115=['iRyyk','\x20is\x20not\x20set','nMNmM','repeat','NIMoQ','local','FNGHp','HoPqI','clipboard-write','legacy','IjwmX','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','2314932cMMpwO','-rangerwright.json','GYSSZ','iVdmA','location','isArray','hyZeT','length','Default','RySWG','setupHeaders','extraHTTPHeaders','endsWith','QglBj','LoamY','QJWai','Environment\x20variable\x20','stringify','userAgent','zrqEq','.json','catch','meqNA','iEHvZ','chromium','executablePath','split','tempAuthPath','ANLwF','ranger-config','safeMode','ruCOJ','iQIBi','push','QsSsF','NhUus','forWrite','8lolYNl','setupHeader','none','5bqjXLm','BIIyF','nCPlm','filter','VjgHq','1202593gEkdMb','headers','kWRvq','--allow-running-insecure-content','ZBLZC','atkxx','240500vMSHEI','GNwYa','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','-cli','--disable-setuid-sandbox','cchtL','allow','oPPIZ','NRaWW','OuzqV','RcPCF','sIduQ','rhsWh','jBgSP','yqeox','JtJsX','KzgKU','ENOENT','args','cdpEndpoint','pHBAU','MiZCt','smDPJ','101981cIQwRM','auth.json.enc','clipboard-read','entries','ELuGH','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','allowInsecureLocalhost','now','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','storageStatePath','install','object','gzxFT','file','utf-8','357MjUXXv','ApPIl','KVECo','jHpXm','DWeoI','startsWith','5680467DRJbzJ','QXGpl','includes','5102MaTLfT','1200IKAmuN','fromEntries','--no-sandbox','path','vVREF','BDFNB','contextOptions','stagehand','ignoreHTTPSErrors','getuid','string','sessions','xxSCD','baseUrl','settings.json','--allow-insecure-localhost','ToOVm','browser','storageState','map','RstGs','headless','WoCxT','4088322TqFIeR'];_0x5294=function(){return _0x5ea115;};return _0x5294();}export function getSettingsPath(_0x1ff227){const _0x33a965=_0x55c4,_0x1d13ba={'GbKwt':function(_0x3330d5,_0x5ad3da){return _0x3330d5(_0x5ad3da);},'smDPJ':'settings.json'};return join(_0x1d13ba['GbKwt'](getEnvDir,_0x1ff227),_0x1d13ba[_0x33a965(0xb5)]);}export async function loadSettings(_0x339365){const _0x2b8633=_0x55c4,_0x4424c6={'TugNe':function(_0x5722ad,_0x3cea83,_0x2fac0f){return _0x5722ad(_0x3cea83,_0x2fac0f);},'pbbTK':_0x2b8633(0xc4)},_0x4a27c2=getSettingsPath(_0x339365);if(!existsSync(_0x4a27c2))return{};try{const _0xe574ad=await _0x4424c6['TugNe'](readFile,_0x4a27c2,_0x4424c6['pbbTK']);return JSON['parse'](_0xe574ad);}catch{return{};}}export async function saveSettings(_0x147dac,_0x2c7d4a){const _0x2a8533=_0x55c4,_0x586988={'jHpXm':function(_0x1cf707,_0x25f274){return _0x1cf707(_0x25f274);},'yqeox':function(_0xf5b11f,_0x4a4dc0,_0x248661){return _0xf5b11f(_0x4a4dc0,_0x248661);}},_0x2aa268=_0x586988[_0x2a8533(0xc8)](getSettingsPath,_0x147dac),_0x2b6c10=dirname(_0x2aa268);!existsSync(_0x2b6c10)&&await mkdir(_0x2b6c10,{'recursive':!![]}),await _0x586988[_0x2a8533(0xad)](writeFile,_0x2aa268,JSON['stringify'](_0x2c7d4a,null,0x2));}function _0x55c4(_0x10ad56,_0x195619){_0x10ad56=_0x10ad56-0x96;const _0x529428=_0x5294();let _0x55c478=_0x529428[_0x10ad56];return _0x55c478;}export function resolveEnvVars(_0x4e7905){const _0x9990a6=_0x55c4,_0x155ac6={'BDFNB':function(_0x323bb3,_0x6bf835){return _0x323bb3===_0x6bf835;},'ELuGH':function(_0xeb93eb,_0x663dd7){return _0xeb93eb===_0x663dd7;},'xVHPW':_0x9990a6(0xc1)};if(typeof _0x4e7905===_0x9990a6(0xd9))return _0x4e7905['replace'](/\$\{(\w+)\}/g,(_0x1566d0,_0x1f7f17)=>{const _0xc99dec=_0x9990a6,_0x176839=process['env'][_0x1f7f17];if(_0x155ac6[_0xc99dec(0xd4)](_0x176839,undefined))throw new Error(_0xc99dec(0x103)+_0x1f7f17+_0xc99dec(0xe8));return _0x176839;});if(Array['isArray'](_0x4e7905))return _0x4e7905['map'](resolveEnvVars);if(_0x4e7905&&_0x155ac6[_0x9990a6(0xba)](typeof _0x4e7905,_0x155ac6['xVHPW']))return Object[_0x9990a6(0xd0)](Object[_0x9990a6(0xb9)](_0x4e7905)[_0x9990a6(0xe2)](([_0xe4fee1,_0x77e807])=>[_0xe4fee1,resolveEnvVars(_0x77e807)]));return _0x4e7905;}const isRecord=_0xe474aa=>typeof _0xe474aa==='object'&&_0xe474aa!==null&&!Array[_0x27b55b(0xf8)](_0xe474aa),asRecord=_0x2e24e5=>isRecord(_0x2e24e5)?_0x2e24e5:undefined,mergeHeaders=(_0x544aa5,_0xef220a)=>{const _0x59710f=_0x27b55b,_0x1f7f7f={'afjlZ':function(_0x1154ab,_0x560cdf){return _0x1154ab??_0x560cdf;},'XpokS':function(_0x38ee82,_0x1437e0){return _0x38ee82??_0x1437e0;}},_0x1032ba={..._0x1f7f7f['afjlZ'](_0x544aa5,{}),..._0x1f7f7f['XpokS'](_0xef220a,{})};return Object['keys'](_0x1032ba)[_0x59710f(0xfa)]?_0x1032ba:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x27b55b(0x9c),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x27b55b(0xde)];export function buildBrowserOptionsFromSettings(_0x312802,_0x225fb5={}){const _0x1ee1ba=_0x27b55b,_0x321ca2={'bpaih':function(_0x1d901a,_0x454d0d){return _0x1d901a===_0x454d0d;},'xxSCD':function(_0x56fe69,_0x526c23){return _0x56fe69(_0x526c23);},'atkxx':function(_0x514c6d,_0xfd6f38){return _0x514c6d===_0xfd6f38;},'YTvFJ':function(_0x5541bf,_0xb81508,_0x838831){return _0x5541bf(_0xb81508,_0x838831);},'kWRvq':function(_0x518a9c,_0x58a257){return _0x518a9c(_0x58a257);}},_0x301d41=asRecord(_0x312802['browser']),_0x1baa30={...asRecord(_0x301d41?.['launchOptions'])??{}};_0x321ca2['bpaih'](typeof _0x225fb5['headless'],'boolean')&&(_0x1baa30[_0x1ee1ba(0xe4)]=_0x225fb5[_0x1ee1ba(0xe4)]);if(_0x312802[_0x1ee1ba(0x111)]){const _0xb7e09d=_0x1baa30['args']??[],_0x8915b7=SAFE_MODE_ARGS[_0x1ee1ba(0x97)](_0x5dd10e=>!_0xb7e09d['includes'](_0x5dd10e));_0x1baa30['args']=[..._0xb7e09d,..._0x8915b7];}if(_0x312802[_0x1ee1ba(0xbc)]){const _0x345202=_0x1baa30['args']??[],_0x1622eb=ALLOW_LOCALHOST_ARGS['filter'](_0xbabbe0=>!_0x345202[_0x1ee1ba(0xcd)](_0xbabbe0));_0x1baa30[_0x1ee1ba(0xb1)]=[..._0x345202,..._0x1622eb];}const _0x4a4a0d={..._0x321ca2['xxSCD'](asRecord,_0x301d41?.[_0x1ee1ba(0xd5)])??{}};_0x4a4a0d[_0x1ee1ba(0xd7)]=!![];_0x321ca2[_0x1ee1ba(0x9e)](typeof _0x312802[_0x1ee1ba(0x105)],_0x1ee1ba(0xd9))&&(_0x4a4a0d[_0x1ee1ba(0x105)]=_0x312802['userAgent']);const _0x198fd1=_0x321ca2['YTvFJ'](mergeHeaders,_0x321ca2[_0x1ee1ba(0x9b)](asRecord,_0x4a4a0d[_0x1ee1ba(0xfe)]),_0x321ca2[_0x1ee1ba(0xdb)](asRecord,_0x312802[_0x1ee1ba(0x9a)]));return _0x198fd1?_0x4a4a0d['extraHTTPHeaders']=_0x198fd1:delete _0x4a4a0d[_0x1ee1ba(0xfe)],_0x225fb5['storageStatePath']&&(_0x4a4a0d[_0x1ee1ba(0xe1)]=_0x225fb5[_0x1ee1ba(0xbf)]),{'launchOptions':_0x1baa30,'contextOptions':_0x4a4a0d};}export async function resolveProfileStorageState(_0x48fea0){return resolveLocalAuthPath(getEnvDir(_0x48fea0));}async function resolveLocalAuthPath(_0x5cdd25){const _0x29e45c=_0x27b55b,_0x5edafd={'ooMOQ':function(_0x3af913,_0x15fa8b,_0x35c52e){return _0x3af913(_0x15fa8b,_0x35c52e);},'xLVGf':'auth.json','iVdmA':function(_0x2a8b4f,_0x38e439){return _0x2a8b4f(_0x38e439);},'gzxFT':function(_0x5535c5,_0x1184b2,_0x635c1b){return _0x5535c5(_0x1184b2,_0x635c1b);}},_0x3047ae=join(_0x5cdd25,'auth.json.enc'),_0x13c478=_0x5edafd['ooMOQ'](join,_0x5cdd25,_0x5edafd['xLVGf']);if(_0x5edafd[_0x29e45c(0xf6)](existsSync,_0x3047ae))try{const _0x4e6c40=await getToken();if(!_0x4e6c40)throw new Error(_0x29e45c(0xbe));const _0x52b495=await readFile(_0x3047ae),_0x35918b=_0x5edafd[_0x29e45c(0xc2)](decrypt,_0x52b495,_0x4e6c40),_0x5933c9=_0x5edafd['gzxFT'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x29e45c(0x107));return await writeFile(_0x5933c9,_0x35918b),{'storageStatePath':_0x5933c9,'tempAuthPath':_0x5933c9};}catch(_0x2bf50e){const _0x217bd1=_0x2bf50e instanceof Error?_0x2bf50e['message']:_0x5edafd[_0x29e45c(0xf6)](String,_0x2bf50e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x217bd1);}if(_0x5edafd['iVdmA'](existsSync,_0x13c478))return{'storageStatePath':_0x13c478};return{};}export async function buildPlaywrightConfig(_0x37381a,_0x497855,_0x320f4,_0xe989d3,_0x45eba5){const _0x3de7c0=_0x27b55b,_0x3d4cfe={'BIIyF':function(_0x479aa7,_0x2242a0,_0x47124f,_0x798c96,_0x53712d,_0xa052d5,_0x5051fa){return _0x479aa7(_0x2242a0,_0x47124f,_0x798c96,_0x53712d,_0xa052d5,_0x5051fa);},'UBoRY':function(_0x4a46ac,_0x5df91e){return _0x4a46ac(_0x5df91e);},'lICkp':_0x3de7c0(0xd6)};if(_0x45eba5)return _0x3d4cfe[_0x3de7c0(0x11c)](buildPlaywrightConfigCore,_0x37381a,_0x45eba5,_0x497855,_0x320f4,_0xe989d3,_0x3de7c0(0xd6));const {storageStatePath:_0x24e59a,tempAuthPath:_0x43806c}=await resolveLocalAuthPath(_0x3d4cfe['UBoRY'](getEnvDir,_0x497855));try{const _0x13448e=await _0x3d4cfe[_0x3de7c0(0x11c)](buildPlaywrightConfigCore,_0x37381a,_0x24e59a,_0x497855,_0x320f4,_0xe989d3,_0x3d4cfe['lICkp']);return{..._0x13448e,'tempAuthPath':_0x43806c};}catch(_0x5149e0){_0x43806c&&await unlink(_0x43806c)['catch'](()=>{});throw _0x5149e0;}}export async function buildPlaywrightConfigCore(_0x34259f,_0x3fff22,_0x547ee4,_0x48c2f6,_0x879dfc,_0xe28348='stagehand'){const _0x580391=_0x27b55b,_0x1ce424={'HoPqI':function(_0xaf045b,_0x50ffbe,_0x8b4931){return _0xaf045b(_0x50ffbe,_0x8b4931);},'KVECo':function(_0x4dfefd,_0x482645){return _0x4dfefd===_0x482645;},'miEMS':_0x580391(0xa3),'JtJsX':'clipboard-read','UwBkE':'clipboard-write','OuzqV':function(_0x1ed64a){return _0x1ed64a();},'cLKoc':function(_0x59cc86,_0x570455,_0x6afad,_0x56f1c2){return _0x59cc86(_0x570455,_0x6afad,_0x56f1c2);},'oVXmQ':function(_0x206fa2,_0x5a6d0c){return _0x206fa2(_0x5a6d0c);},'KzgKU':function(_0x4c1670,_0xefed50){return _0x4c1670===_0xefed50;},'GYSSZ':'playwright-cli','HcxyV':_0x580391(0x11a),'ApPIl':'core','QglBj':'pdf','QNWbD':'vision','jzZfQ':_0x580391(0x110)},_0x2404a9=_0x48c2f6||_0x1ce424['OuzqV'](randomUUID),_0x1498e0=_0x1ce424['cLKoc'](join,getRangerDir(),_0x580391(0xda),_0x2404a9),_0x40e5a6=_0x1ce424['oVXmQ'](Boolean,_0x34259f[_0x580391(0xb2)]),_0x30c2da=_0x40e5a6?{'browserName':'chromium','cdpEndpoint':_0x34259f[_0x580391(0xb2)]}:((()=>{const _0x32a661=_0x580391,{launchOptions:_0x59467f,contextOptions:_0x73dfa4}=_0x1ce424[_0x32a661(0xee)](buildBrowserOptionsFromSettings,_0x34259f,{'headless':_0x879dfc?![]:_0x34259f['headless']??!![],'storageStatePath':_0x3fff22});if(_0x1ce424['KVECo'](process['getuid']?.(),0x0)){const _0x482df4=[_0x32a661(0xd1),_0x1ce424['miEMS']],_0x31609a=_0x59467f['args']??[],_0x43333d=_0x482df4['filter'](_0x3b692c=>!_0x31609a['includes'](_0x3b692c));_0x59467f[_0x32a661(0xb1)]=[..._0x31609a,..._0x43333d];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x59467f,'contextOptions':{..._0x73dfa4,'permissions':[_0x1ce424[_0x32a661(0xae)],_0x1ce424['UwBkE']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x540224=_0x1ce424[_0x580391(0xaf)](_0xe28348,_0x1ce424[_0x580391(0xf5)])?{'browser':_0x30c2da,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1498e0,'outputMode':_0x580391(0xc3),'codegen':_0x1ce424['HcxyV']}:{'name':_0x547ee4,'browser':_0x30c2da,'capabilities':[_0x1ce424[_0x580391(0xc6)],'tabs',_0x580391(0xc0),_0x1ce424[_0x580391(0x100)],_0x1ce424['QNWbD']],'imageResponses':_0x580391(0xa5),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1498e0};if(!_0x40e5a6){const _0x430d64=_0x540224[_0x580391(0xe0)],_0x33a7ac=_0x430d64['contextOptions'];if(_0x1ce424[_0x580391(0xc7)](_0x33a7ac[_0x580391(0x105)],undefined))delete _0x33a7ac[_0x580391(0x105)];if(_0x33a7ac[_0x580391(0xe1)]===undefined)delete _0x33a7ac[_0x580391(0xe1)];}const _0x16c872=join(_0x1ce424[_0x580391(0xa8)](tmpdir),_0x1ce424['jzZfQ']);!existsSync(_0x16c872)&&await _0x1ce424['HoPqI'](mkdir,_0x16c872,{'recursive':!![]});const _0x5362ae=_0xe28348===_0x1ce424['GYSSZ']?_0x580391(0xa2):'',_0x38687b=join(_0x16c872,_0x547ee4+'-'+Date['now']()+_0x5362ae+_0x580391(0x107));return await writeFile(_0x38687b,JSON[_0x580391(0x104)](_0x540224,null,0x2)),{'configPath':_0x38687b,'storageStatePath':_0x3fff22};}export async function buildPlaywrightCliConfig(_0x29db15,_0x114dea,_0xda9994,_0x3a7680,_0x593ec7){const _0x5b6606=_0x27b55b,_0x20ebda={'pNvvh':function(_0x197d09,_0x557401,_0x48d664,_0x57ea93,_0x5006ae,_0x33c538,_0x1bd902){return _0x197d09(_0x557401,_0x48d664,_0x57ea93,_0x5006ae,_0x33c538,_0x1bd902);},'DWeoI':function(_0x513139,_0x14b74c){return _0x513139(_0x14b74c);},'LSlfj':'playwright-cli'};if(_0x593ec7)return _0x20ebda['pNvvh'](buildPlaywrightConfigCore,_0x29db15,_0x593ec7,_0x114dea,_0xda9994,_0x3a7680,'playwright-cli');const {storageStatePath:_0x12bdc0,tempAuthPath:_0x410f7f}=await resolveLocalAuthPath(_0x20ebda[_0x5b6606(0xc9)](getEnvDir,_0x114dea));try{const _0x5fc616=await _0x20ebda['pNvvh'](buildPlaywrightConfigCore,_0x29db15,_0x12bdc0,_0x114dea,_0xda9994,_0x3a7680,_0x20ebda['LSlfj']);return{..._0x5fc616,'tempAuthPath':_0x410f7f};}catch(_0x14718a){_0x410f7f&&await unlink(_0x410f7f)[_0x5b6606(0x108)](()=>{});throw _0x14718a;}}export async function buildRangerwrightCliConfig(_0x4b02ac,_0x100af4,_0x17fd9c,_0x1259dc,_0x2b1ca2){const _0xe35fb9=_0x27b55b,_0x489ef9={'QXGpl':function(_0x2e456f,_0x283b0b,_0x21fda3){return _0x2e456f(_0x283b0b,_0x21fda3);},'zrqEq':function(_0x2b8077,_0x2ab846){return _0x2b8077===_0x2ab846;},'NhUus':_0xe35fb9(0xd1),'rhsWh':'chromium','mOrFk':_0xe35fb9(0xb8),'FNGHp':function(_0x49f10c,_0x46d7b3){return _0x49f10c(_0x46d7b3);},'hyZeT':_0xe35fb9(0x110)},{storageStatePath:_0x2127fd,tempAuthPath:_0x222379}=_0x2b1ca2?{'storageStatePath':_0x2b1ca2,'tempAuthPath':undefined}:await _0x489ef9[_0xe35fb9(0xed)](resolveLocalAuthPath,getEnvDir(_0x100af4)),_0x386cf6=_0x17fd9c||randomUUID(),_0x16b317=join(getRangerDir(),'sessions',_0x386cf6),_0x3ec793=_0x489ef9['FNGHp'](Boolean,_0x4b02ac[_0xe35fb9(0xb2)]),_0x181add=_0x3ec793?{'browserName':_0xe35fb9(0x10b),'cdpEndpoint':_0x4b02ac[_0xe35fb9(0xb2)]}:((()=>{const _0xa7e67=_0xe35fb9,{launchOptions:_0x13ecd5,contextOptions:_0x4ecd6e}=_0x489ef9['QXGpl'](buildBrowserOptionsFromSettings,_0x4b02ac,{'headless':_0x1259dc?![]:_0x4b02ac['headless']??!![],'storageStatePath':_0x2127fd});if(_0x489ef9['zrqEq'](process[_0xa7e67(0xd8)]?.(),0x0)){const _0x2d8ddb=[_0x489ef9[_0xa7e67(0x116)],'--disable-setuid-sandbox'],_0x3ed7c4=_0x13ecd5['args']??[],_0x7104be=_0x2d8ddb[_0xa7e67(0x97)](_0x5d4a6d=>!_0x3ed7c4[_0xa7e67(0xcd)](_0x5d4a6d));_0x13ecd5['args']=[..._0x3ed7c4,..._0x7104be];}return{'browserName':_0x489ef9[_0xa7e67(0xab)],'launchOptions':_0x13ecd5,'contextOptions':{..._0x4ecd6e,'permissions':[_0x489ef9['mOrFk'],_0xa7e67(0xef)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3ec793){const _0x563b7c=_0x181add['contextOptions'];if(_0x563b7c){if(_0x489ef9[_0xe35fb9(0x106)](_0x563b7c['userAgent'],undefined))delete _0x563b7c[_0xe35fb9(0x105)];if(_0x563b7c[_0xe35fb9(0xe1)]===undefined)delete _0x563b7c['storageState'];}}const _0x512b4e={'browser':_0x181add,'outputDir':_0x16b317,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x5b47b7;try{const _0x4d7be8=_0x489ef9[_0xe35fb9(0xcc)](join,tmpdir(),_0x489ef9[_0xe35fb9(0xf9)]);!_0x489ef9[_0xe35fb9(0xed)](existsSync,_0x4d7be8)&&await mkdir(_0x4d7be8,{'recursive':!![]}),_0x5b47b7=_0x489ef9['QXGpl'](join,_0x4d7be8,_0x100af4+'-'+Date[_0xe35fb9(0xbd)]()+_0xe35fb9(0xf4)),await writeFile(_0x5b47b7,JSON[_0xe35fb9(0x104)](_0x512b4e,null,0x2));}catch(_0xdc870d){_0x222379&&await unlink(_0x222379)['catch'](()=>{});throw _0xdc870d;}return{'configPath':_0x5b47b7,'storageStatePath':_0x2127fd,'tempAuthPath':_0x222379,'outputDir':_0x16b317};}export async function buildNovaActCliConfig(_0x2cf481,_0x2927a7,_0x511571,_0x1a81d3,_0xc6ef0d){const _0x760979=_0x27b55b,_0x2b8a04={'nMNmM':function(_0x1e3243,_0x4c1668){return _0x1e3243(_0x4c1668);},'RySWG':function(_0x3541ae){return _0x3541ae();},'MNyBA':function(_0x7d270f){return _0x7d270f();},'gDEEi':'nova-user-data','NWzIl':function(_0x4421df,_0x433031,_0x45feb3){return _0x4421df(_0x433031,_0x45feb3);},'tLUiZ':_0x760979(0xfb),'MiZCt':_0x760979(0xd1),'ruCOJ':function(_0x278390,_0x4e36c6){return _0x278390===_0x4e36c6;},'WoCxT':_0x760979(0xd9),'IMHxo':function(_0x341e1d,_0x1028db){return _0x341e1d(_0x1028db);},'pHBAU':function(_0x276ac9,_0x339b39){return _0x276ac9(_0x339b39);},'FgTDA':function(_0x195390,_0x4c5038){return _0x195390(_0x4c5038);}},{storageStatePath:_0x1638b2,tempAuthPath:_0x77dbdf}=_0xc6ef0d?{'storageStatePath':_0xc6ef0d,'tempAuthPath':undefined}:await _0x2b8a04[_0x760979(0xe9)](resolveLocalAuthPath,getEnvDir(_0x2927a7)),_0x1cb03b=_0x511571||_0x2b8a04[_0x760979(0xfc)](randomUUID),_0x142f31=join(_0x2b8a04['MNyBA'](getRangerDir),_0x760979(0xda),_0x1cb03b),_0x9e4057=join(_0x142f31,_0x2b8a04['gDEEi']),_0x487ee4=_0x1638b2?_0x2b8a04['NWzIl'](join,_0x9e4057,_0x2b8a04['tLUiZ']):undefined,{launchOptions:_0x11c3cd,contextOptions:_0x1690ec}=buildBrowserOptionsFromSettings(_0x2cf481,{'headless':_0x1a81d3?![]:_0x2cf481['headless']??!![],'storageStatePath':_0x1638b2});if(process[_0x760979(0xd8)]?.()===0x0){const _0x3203ab=[_0x2b8a04[_0x760979(0xb4)],_0x760979(0xa3)],_0x41768b=_0x11c3cd['args']??[],_0x1e8b53=_0x3203ab['filter'](_0x513e2b=>!_0x41768b['includes'](_0x513e2b));_0x11c3cd[_0x760979(0xb1)]=[..._0x41768b,..._0x1e8b53];}const _0x207481=_0x2b8a04[_0x760979(0x112)](typeof _0x11c3cd['executablePath'],_0x2b8a04[_0x760979(0xe5)])?_0x11c3cd[_0x760979(0x10c)]:_0x1638b2?chromium[_0x760979(0x10c)]():undefined;return{'storageStatePath':_0x1638b2,'tempAuthPath':_0x77dbdf,'baseUrl':_0x2cf481[_0x760979(0xdc)],'headless':_0x2b8a04[_0x760979(0xe9)](Boolean,_0x11c3cd[_0x760979(0xe4)]),'userDataDir':_0x9e4057,'browserProfilePath':_0x487ee4,'executablePath':_0x207481,'launchArgs':Array[_0x760979(0xf8)](_0x11c3cd['args'])?_0x11c3cd['args'][_0x760979(0x97)](_0x25d100=>typeof _0x25d100===_0x760979(0xd9)):[],'userAgent':typeof _0x1690ec[_0x760979(0x105)]===_0x760979(0xd9)?_0x1690ec[_0x760979(0x105)]:undefined,'extraHTTPHeaders':_0x1690ec['extraHTTPHeaders'],'allowInsecureLocalhost':_0x2b8a04['IMHxo'](Boolean,_0x2cf481[_0x760979(0xbc)]),'safeMode':_0x2b8a04[_0x760979(0xb3)](Boolean,_0x2cf481[_0x760979(0x111)]),'cdpEndpoint':_0x2cf481['cdpEndpoint'],'isCdpMode':_0x2b8a04['FgTDA'](Boolean,_0x2cf481[_0x760979(0xb2)])};}export function getNestedValue(_0x34681a,_0x5cd381){const _0x5ddb81=_0x27b55b,_0xe7dff2={'QsSsF':function(_0x2b22c9,_0x515204){return _0x2b22c9===_0x515204;},'hSLGU':function(_0x45da5b,_0x4fa367){return _0x45da5b===_0x4fa367;},'VjgHq':'object'},_0xd16392=parseKeyPath(_0x5cd381);let _0x49bc3b=_0x34681a;for(const _0x1d6291 of _0xd16392){if(_0xe7dff2[_0x5ddb81(0x115)](_0x49bc3b,null)||_0xe7dff2['hSLGU'](_0x49bc3b,undefined)||typeof _0x49bc3b!==_0xe7dff2[_0x5ddb81(0x98)])return undefined;_0x49bc3b=_0x49bc3b[_0x1d6291];}return _0x49bc3b;}export function setNestedValue(_0x20262a,_0x240a97,_0x16850b){const _0x4836d3=_0x27b55b,_0x1f5466={'ToOVm':function(_0x175674,_0x37002d){return _0x175674<_0x37002d;},'LzMhn':function(_0x44ff41,_0x34c874){return _0x44ff41-_0x34c874;},'jqEas':function(_0x509f27,_0x7628fd){return _0x509f27 in _0x7628fd;}},_0x5547ab=parseKeyPath(_0x240a97);let _0x13031f=_0x20262a;for(let _0x4f8b43=0x0;_0x1f5466[_0x4836d3(0xdf)](_0x4f8b43,_0x1f5466['LzMhn'](_0x5547ab[_0x4836d3(0xfa)],0x1));_0x4f8b43++){const _0x43ecd6=_0x5547ab[_0x4f8b43];(!_0x1f5466['jqEas'](_0x43ecd6,_0x13031f)||typeof _0x13031f[_0x43ecd6]!==_0x4836d3(0xc1))&&(_0x13031f[_0x43ecd6]={}),_0x13031f=_0x13031f[_0x43ecd6];}_0x13031f[_0x5547ab[_0x5547ab[_0x4836d3(0xfa)]-0x1]]=_0x16850b;}export function deleteNestedValue(_0x3c9460,_0x21dfe5){const _0x3c6da8=_0x27b55b,_0x539a2e={'NIMoQ':function(_0x368b84,_0x368b95){return _0x368b84===_0x368b95;},'iQIBi':function(_0x1adf18,_0x55f9bb){return _0x1adf18!==_0x55f9bb;},'ZBLZC':'object','gusvA':function(_0x404ce5,_0xda1d3e){return _0x404ce5 in _0xda1d3e;}},_0x287075=parseKeyPath(_0x21dfe5);let _0x74628a=_0x3c9460;for(let _0x47ea8e=0x0;_0x47ea8e<_0x287075[_0x3c6da8(0xfa)]-0x1;_0x47ea8e++){if(_0x539a2e[_0x3c6da8(0xeb)](_0x74628a,null)||_0x539a2e[_0x3c6da8(0xeb)](_0x74628a,undefined)||_0x539a2e[_0x3c6da8(0x113)](typeof _0x74628a,_0x539a2e[_0x3c6da8(0x9d)]))return![];_0x74628a=_0x74628a[_0x287075[_0x47ea8e]];}if(_0x539a2e['NIMoQ'](_0x74628a,null)||_0x74628a===undefined||typeof _0x74628a!=='object')return![];const _0x27593e=_0x287075[_0x287075['length']-0x1];if(_0x539a2e['gusvA'](_0x27593e,_0x74628a))return delete _0x74628a[_0x27593e],!![];return![];}function parseKeyPath(_0xd3dd5c){const _0x3f419=_0x27b55b,_0x2a9863={'ANLwF':function(_0x187773,_0x109689){return _0x187773===_0x109689;},'FFTvG':'header','vVREF':_0x3f419(0x119),'zIhEf':_0x3f419(0xfd)},_0x352c4a=_0xd3dd5c[_0x3f419(0x10d)]('.');return _0x2a9863[_0x3f419(0x10f)](_0x352c4a[0x0],_0x2a9863['FFTvG'])&&(_0x352c4a[0x0]=_0x3f419(0x9a)),_0x2a9863['ANLwF'](_0x352c4a[0x0],_0x2a9863[_0x3f419(0xd3)])&&(_0x352c4a[0x0]=_0x2a9863['zIhEf']),_0x352c4a;}export function formatSettings(_0x24aaf8,_0x24af36=0x0){const _0x26eb9c=_0x27b55b,_0x530997={'yGkhL':function(_0x55eb96,_0x458043){return _0x55eb96===_0x458043;}},_0xae984d=[],_0x3e7554='\x20\x20'[_0x26eb9c(0xea)](_0x24af36);for(const [_0x798b0a,_0xfdd332]of Object[_0x26eb9c(0xb9)](_0x24aaf8)){if(_0x530997['yGkhL'](_0xfdd332,undefined))continue;if(_0x530997['yGkhL'](typeof _0xfdd332,'object')&&_0xfdd332!==null){_0xae984d[_0x26eb9c(0x114)](''+_0x3e7554+_0x798b0a+':');for(const [_0xb4db7b,_0x139553]of Object['entries'](_0xfdd332)){_0xae984d[_0x26eb9c(0x114)](_0x3e7554+'\x20\x20'+_0xb4db7b+':\x20'+_0x139553);}}else _0xae984d['push'](''+_0x3e7554+_0x798b0a+':\x20'+_0xfdd332);}return _0xae984d['join']('\x0a');}
1
+ const _0x21d118=_0x224b;(function(_0x346144,_0x41203c){const _0x1c33f5=_0x224b,_0x1bf68c=_0x346144();while(!![]){try{const _0x11d4d6=parseInt(_0x1c33f5(0x16e))/0x1+parseInt(_0x1c33f5(0x193))/0x2*(parseInt(_0x1c33f5(0x1e6))/0x3)+parseInt(_0x1c33f5(0x185))/0x4*(parseInt(_0x1c33f5(0x18c))/0x5)+-parseInt(_0x1c33f5(0x19c))/0x6*(parseInt(_0x1c33f5(0x19f))/0x7)+-parseInt(_0x1c33f5(0x1ac))/0x8*(-parseInt(_0x1c33f5(0x1f3))/0x9)+-parseInt(_0x1c33f5(0x1b2))/0xa+-parseInt(_0x1c33f5(0x16f))/0xb;if(_0x11d4d6===_0x41203c)break;else _0x1bf68c['push'](_0x1bf68c['shift']());}catch(_0x64cf61){_0x1bf68c['push'](_0x1bf68c['shift']());}}}(_0x5364,0x4a286));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3946dd,_0x7c226d){const _0x5eb32d=_0x224b,_0x9c4a36={'KxpEq':function(_0xea450,_0x3808d9,_0x539acf,_0x59fbe4){return _0xea450(_0x3808d9,_0x539acf,_0x59fbe4);},'vPsTF':'local','iTqtE':function(_0x1bd1b6,_0x2ed540,_0x216943){return _0x1bd1b6(_0x2ed540,_0x216943);},'uQrfh':function(_0x27558a,_0x2f9ff5){return _0x27558a(_0x2f9ff5);},'tXTlV':function(_0x7cf19c,_0x1b435c){return _0x7cf19c(_0x1b435c);},'XAQeV':function(_0x375dd8,_0x1f7305){return _0x375dd8!==_0x1f7305;}},_0x38d7d2=join(_0x7c226d,'ci',_0x3946dd),_0x546686=_0x9c4a36[_0x5eb32d(0x1f1)](join,_0x7c226d,_0x5eb32d(0x198),_0x3946dd),_0x1012da=join(_0x7c226d,_0x3946dd),_0x53f440=join(_0x7c226d,_0x9c4a36[_0x5eb32d(0x171)]),_0x58af71=_0x9c4a36[_0x5eb32d(0x1e1)](join,_0x7c226d,'ci');if(existsSync(_0x38d7d2))return _0x38d7d2;if(_0x9c4a36[_0x5eb32d(0x1ed)](existsSync,_0x546686))return _0x546686;if(_0x9c4a36[_0x5eb32d(0x1d0)](existsSync,_0x1012da)&&(_0x1012da!==_0x53f440&&_0x9c4a36[_0x5eb32d(0x180)](_0x1012da,_0x58af71)?!![]:hasLegacyProfileFiles(_0x1012da)))return _0x1012da;return null;}export function getEnvDir(_0x4e36c2,_0x3be119={}){const _0x1610e0=_0x224b,_0x565500={'tMZCS':function(_0x4724dc,_0x3a144e){return _0x4724dc(_0x3a144e);},'pFKrF':function(_0x2576a2,_0x52bbfd,_0x43de19){return _0x2576a2(_0x52bbfd,_0x43de19);},'FfHcq':function(_0xab5eb2){return _0xab5eb2();},'bkrIt':function(_0x2fed88,_0x31d45f){return _0x2fed88!==_0x31d45f;},'PtRnR':function(_0x11241c,_0x5c39d2,_0x29743d){return _0x11241c(_0x5c39d2,_0x29743d);},'nqiLu':_0x1610e0(0x198),'PbCea':function(_0x3281a7,_0x165410,_0x174ebd){return _0x3281a7(_0x165410,_0x174ebd);}},_0x716ad=getRangerDir(),_0x17f83f=findEnvInRoot(_0x4e36c2,_0x716ad);if(_0x17f83f){if(_0x3be119['forWrite']&&_0x565500['tMZCS'](isLegacyEnvPath,_0x17f83f))throw _0x565500['pFKrF'](legacyWriteError,_0x4e36c2,_0x17f83f);return _0x17f83f;}const _0x54931d=_0x565500['FfHcq'](getRangerHomeDir);if(_0x565500[_0x1610e0(0x17b)](_0x54931d,_0x716ad)){const _0x516f1f=_0x565500[_0x1610e0(0x1cb)](findEnvInRoot,_0x4e36c2,_0x54931d);if(_0x516f1f){if(_0x3be119[_0x1610e0(0x17f)]&&_0x565500[_0x1610e0(0x166)](isLegacyEnvPath,_0x516f1f))throw _0x565500[_0x1610e0(0x182)](legacyWriteError,_0x4e36c2,_0x516f1f);return _0x516f1f;}}const _0x15663a=join(_0x54931d,_0x565500[_0x1610e0(0x1e5)],_0x4e36c2);if(_0x3be119[_0x1610e0(0x17f)])throw _0x565500[_0x1610e0(0x1d3)](legacyWriteError,_0x4e36c2,_0x15663a);return _0x15663a;}function isLegacyEnvPath(_0xf50761){const _0x7d90d8=_0x224b,_0x5cecc1={'MxLaN':function(_0x35861c,_0x266ae3){return _0x35861c===_0x266ae3;}},_0x253615=getRangerDir(),_0x295002=getRangerHomeDir();for(const _0x1dd481 of new Set([_0x253615,_0x295002])){const _0x448db4=_0x1dd481['endsWith']('/')?_0x1dd481:_0x1dd481+'/';if(_0x5cecc1['MxLaN'](_0xf50761,_0x1dd481)||_0xf50761[_0x7d90d8(0x18a)](_0x448db4))return!![];}return![];}function legacyWriteError(_0x3b4d30,_0x186467){const _0x5286d4=_0x224b,_0x173821={'RkpVT':function(_0x489eb6,_0x89ddd7){return _0x489eb6+_0x89ddd7;}};return new Error(_0x173821[_0x5286d4(0x1a8)](_0x5286d4(0x1c7)+_0x3b4d30+_0x5286d4(0x168)+_0x186467+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5286d4(0x16b)+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x25651f,_0x2a4a73){const _0x2c4c5c=_0x224b,_0x39b904={'ZzfRP':function(_0x38dde0){return _0x38dde0();},'Kyozm':function(_0x21bc5c){return _0x21bc5c();},'DjXgq':'local','VsQoh':'legacy','iVusm':function(_0x48202b,_0x27c86f,_0x4e4250){return _0x48202b(_0x27c86f,_0x4e4250);},'dBRAg':function(_0x40f610,_0xf0aa04,_0x29ade0){return _0x40f610(_0xf0aa04,_0x29ade0);},'lwRXL':function(_0xca4a3b,_0x2c0b34,_0x4f5377,_0x15a983){return _0xca4a3b(_0x2c0b34,_0x4f5377,_0x15a983);},'JFhSO':function(_0x583f97,_0x1b63dc){return _0x583f97(_0x1b63dc);},'cZHgd':function(_0x218ce5,_0x56d59d){return _0x218ce5===_0x56d59d;}},_0x2f96cd=_0x2a4a73?.['rangerDir'],_0x99b83f=_0x2f96cd?[_0x2f96cd]:[_0x39b904[_0x2c4c5c(0x18b)](getRangerDir),_0x39b904[_0x2c4c5c(0x197)](getRangerHomeDir)][_0x2c4c5c(0x17d)]((_0x448822,_0x292c27,_0x36d97e)=>_0x36d97e[_0x2c4c5c(0x1a0)](_0x448822)===_0x292c27),_0x670cc0=_0x2a4a73?.[_0x2c4c5c(0x19d)]??['ci',_0x39b904['DjXgq'],_0x39b904[_0x2c4c5c(0x1e8)]];for(const _0xdfe193 of _0x99b83f){const _0xe0594c=_0x39b904['iVusm'](join,_0xdfe193,_0x39b904[_0x2c4c5c(0x1e0)]),_0x10c6c6=_0x39b904['dBRAg'](join,_0xdfe193,'ci'),_0x2951f0=[{'location':'ci','path':join(_0xdfe193,'ci',_0x25651f)},{'location':'local','path':_0x39b904['lwRXL'](join,_0xdfe193,_0x39b904['DjXgq'],_0x25651f)},{'location':'legacy','path':join(_0xdfe193,_0x25651f)}];for(const _0x4e19b4 of _0x2951f0){if(_0x670cc0['includes'](_0x4e19b4[_0x2c4c5c(0x17c)])&&_0x39b904[_0x2c4c5c(0x1cc)](existsSync,_0x4e19b4[_0x2c4c5c(0x1b7)])){if(_0x39b904[_0x2c4c5c(0x191)](_0x4e19b4['location'],_0x2c4c5c(0x1d1))&&(_0x4e19b4['path']===_0xe0594c||_0x4e19b4['path']===_0x10c6c6)&&!hasLegacyProfileFiles(_0x4e19b4[_0x2c4c5c(0x1b7)]))continue;return{'path':_0x4e19b4[_0x2c4c5c(0x1b7)],'location':_0x4e19b4[_0x2c4c5c(0x17c)]};}}}return null;}function hasLegacyProfileFiles(_0x43449a){const _0x26e3f3=_0x224b,_0xa4ae29={'NnjSq':function(_0x2f3e49,_0x1dd91b){return _0x2f3e49(_0x1dd91b);},'HzExl':function(_0x5f3d2f,_0xf4da11,_0x20346a){return _0x5f3d2f(_0xf4da11,_0x20346a);},'iaKht':'auth.json','bpgCN':'auth.json.enc'};return _0xa4ae29['NnjSq'](existsSync,_0xa4ae29[_0x26e3f3(0x1d4)](join,_0x43449a,'settings.json'))||existsSync(join(_0x43449a,_0xa4ae29['iaKht']))||existsSync(join(_0x43449a,_0xa4ae29['bpgCN']));}export function isEnvCi(_0x274e71){const _0x149419=_0x224b,_0x437eea={'UciMG':function(_0x19a35c){return _0x19a35c();},'yTSGd':function(_0x31ed1b){return _0x31ed1b();}};if(existsSync(join(getRangerDir(),'ci',_0x274e71)))return!![];const _0x5dd4d3=_0x437eea[_0x149419(0x1b4)](getRangerHomeDir);if(_0x5dd4d3!==_0x437eea[_0x149419(0x1dd)](getRangerDir)&&existsSync(join(_0x5dd4d3,'ci',_0x274e71)))return!![];return![];}export async function cleanupTempFiles(_0x319af4){const _0xbe5e6=_0x224b,_0x2185a3=[_0x319af4[_0xbe5e6(0x167)],_0x319af4[_0xbe5e6(0x1ee)]][_0xbe5e6(0x17d)](Boolean);await Promise[_0xbe5e6(0x195)](_0x2185a3['map'](_0x5bc958=>unlink(_0x5bc958)[_0xbe5e6(0x184)](_0x17ebd4=>{const _0x23e97c=_0xbe5e6;_0x17ebd4[_0x23e97c(0x199)]!=='ENOENT'&&console['warn'](_0x23e97c(0x187)+_0x5bc958+':',_0x17ebd4['message']);})));}export function getSettingsPath(_0x5cd777){const _0x225ed7=_0x224b,_0x3f5efb={'tzsIV':function(_0x3fe35f,_0x3fa1c0,_0x12a575){return _0x3fe35f(_0x3fa1c0,_0x12a575);},'AXdJw':'settings.json'};return _0x3f5efb['tzsIV'](join,getEnvDir(_0x5cd777),_0x3f5efb[_0x225ed7(0x1c6)]);}function _0x5364(){const _0x5abe8a=['666570ZOhIko','eRyas','UciMG','.json','Failed\x20to\x20decrypt\x20auth\x20state:\x20','path','headers','install','KItIN','kTBex','--disable-features=WebBluetooth','map','rFQix','now','chromium','ignoreHTTPSErrors','oqTnt','storageStatePath','kPFHm','Jypxm','AXdJw','Refusing\x20to\x20write\x20profile\x20\x22','-rangerwright.json','--no-sandbox','PPUHl','pFKrF','JFhSO','boolean','clipboard-write','--disable-setuid-sandbox','tXTlV','legacy','entries','PbCea','HzExl','split','zpAzL','mmrJL','EvjNR','yVWNR','KPXZQ','userAgent','stringify','yTSGd','args','GKguR','DjXgq','iTqtE','ranger-config','object','isArray','nqiLu','200520BOsyBE','NMELR','VsQoh','lcMbX','extraHTTPHeaders','clEBN','storageState','uQrfh','configPath','string','keys','KxpEq','LSDDb','261EYGdXL','YQIuQ','setupHeader','tMZCS','tempAuthPath','\x22\x20to\x20legacy\x20path\x20','Fuiqz','getuid','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','baseUrl','tNnaH','516985DWqzsh','8779793GpMKES','ziRrT','vPsTF','KDtOh','lvZMl','matbv','clipboard-read','playwright-cli','includes','executablePath','pYquE','JWbnX','bkrIt','location','filter','sIAuh','forWrite','XAQeV','PlKTe','PtRnR','DoiZH','catch','15676sYfvxP','sPlDF','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','UTYHJ','mcZTz','startsWith','ZzfRP','515tlJFcd','vnEOp','stagehand','auth.json','message','cZHgd','LMIoR','6zeJlPH','HAYlE','all','PveKc','Kyozm','local','code','parse','jPurT','6OpXqPf','locations','sessions','3574067JRMiog','indexOf','length','CrWMB','TjnNo','lZnMs','LltOQ','fBjSK','lPJek','RkpVT','UqSXc','safeMode','--unsafely-treat-insecure-origin-as-secure=http://localhost','153928HAgeJA','TGfQq','none','cdpEndpoint','headless','header'];_0x5364=function(){return _0x5abe8a;};return _0x5364();}export async function loadSettings(_0x491085){const _0x208e0b=_0x224b,_0x3034f7={'zpAzL':function(_0x559052,_0x5b2dfb){return _0x559052(_0x5b2dfb);},'oqTnt':'utf-8'},_0x1f9b08=_0x3034f7[_0x208e0b(0x1d6)](getSettingsPath,_0x491085);if(!existsSync(_0x1f9b08))return{};try{const _0x3e0d49=await readFile(_0x1f9b08,_0x3034f7[_0x208e0b(0x1c2)]);return JSON[_0x208e0b(0x19a)](_0x3e0d49);}catch{return{};}}export async function saveSettings(_0x5e812e,_0x7728c5){const _0x13ff66=_0x224b,_0x5ec39d={'TjnNo':function(_0x59c8d7,_0x3ebe85){return _0x59c8d7(_0x3ebe85);},'YWlvC':function(_0x510e13,_0x14a018,_0x3621e9){return _0x510e13(_0x14a018,_0x3621e9);}},_0x1cf892=_0x5ec39d['TjnNo'](getSettingsPath,_0x5e812e),_0x36cf24=_0x5ec39d['TjnNo'](dirname,_0x1cf892);!_0x5ec39d[_0x13ff66(0x1a3)](existsSync,_0x36cf24)&&await mkdir(_0x36cf24,{'recursive':!![]}),await _0x5ec39d['YWlvC'](writeFile,_0x1cf892,JSON[_0x13ff66(0x1dc)](_0x7728c5,null,0x2));}export function resolveEnvVars(_0x255fc7){const _0x26eeb3=_0x224b,_0x33be99={'TGfQq':function(_0x3167fa,_0x2d5fc9){return _0x3167fa===_0x2d5fc9;},'pYquE':'string','uhgdd':'object'};if(_0x33be99[_0x26eeb3(0x1ad)](typeof _0x255fc7,_0x33be99[_0x26eeb3(0x179)]))return _0x255fc7['replace'](/\$\{(\w+)\}/g,(_0x13954e,_0x153694)=>{const _0x15e0cd=process['env'][_0x153694];if(_0x15e0cd===undefined)throw new Error('Environment\x20variable\x20'+_0x153694+'\x20is\x20not\x20set');return _0x15e0cd;});if(Array['isArray'](_0x255fc7))return _0x255fc7[_0x26eeb3(0x1bd)](resolveEnvVars);if(_0x255fc7&&_0x33be99[_0x26eeb3(0x1ad)](typeof _0x255fc7,_0x33be99['uhgdd']))return Object['fromEntries'](Object['entries'](_0x255fc7)[_0x26eeb3(0x1bd)](([_0x8b60dc,_0xef6221])=>[_0x8b60dc,resolveEnvVars(_0xef6221)]));return _0x255fc7;}const isRecord=_0x1d7772=>typeof _0x1d7772===_0x21d118(0x1e3)&&_0x1d7772!==null&&!Array[_0x21d118(0x1e4)](_0x1d7772),asRecord=_0x2bc15e=>isRecord(_0x2bc15e)?_0x2bc15e:undefined,mergeHeaders=(_0x298e3c,_0x5d3141)=>{const _0xfed17c=_0x21d118,_0x319afa={'UqSXc':function(_0x1bf6e8,_0x19e75b){return _0x1bf6e8??_0x19e75b;}},_0x2d26f6={..._0x319afa[_0xfed17c(0x1a9)](_0x298e3c,{}),..._0x319afa['UqSXc'](_0x5d3141,{})};return Object[_0xfed17c(0x1f0)](_0x2d26f6)[_0xfed17c(0x1a1)]?_0x2d26f6:undefined;},SAFE_MODE_ARGS=[_0x21d118(0x1bc)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x21d118(0x1ab),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0xb322be,_0x46350c={}){const _0x4fc1bf=_0x21d118,_0x5344f6={'xRgyb':function(_0x2b633f,_0x277d46){return _0x2b633f(_0x277d46);},'lvZMl':function(_0x4a4218,_0x4e8b57){return _0x4a4218(_0x4e8b57);},'glUAu':function(_0x3504ca,_0x19257b){return _0x3504ca(_0x19257b);}},_0x4c16f0=asRecord(_0xb322be['browser']),_0x138e98={..._0x5344f6['xRgyb'](asRecord,_0x4c16f0?.['launchOptions'])??{}};typeof _0x46350c[_0x4fc1bf(0x1b0)]===_0x4fc1bf(0x1cd)&&(_0x138e98['headless']=_0x46350c['headless']);if(_0xb322be[_0x4fc1bf(0x1aa)]){const _0xfe46e6=_0x138e98['args']??[],_0x2c463d=SAFE_MODE_ARGS[_0x4fc1bf(0x17d)](_0x825b96=>!_0xfe46e6[_0x4fc1bf(0x177)](_0x825b96));_0x138e98[_0x4fc1bf(0x1de)]=[..._0xfe46e6,..._0x2c463d];}if(_0xb322be['allowInsecureLocalhost']){const _0xc4ae26=_0x138e98['args']??[],_0x2787f2=ALLOW_LOCALHOST_ARGS['filter'](_0x5a6db0=>!_0xc4ae26[_0x4fc1bf(0x177)](_0x5a6db0));_0x138e98[_0x4fc1bf(0x1de)]=[..._0xc4ae26,..._0x2787f2];}const _0x5c5d2f={..._0x5344f6[_0x4fc1bf(0x173)](asRecord,_0x4c16f0?.['contextOptions'])??{}};_0x5c5d2f[_0x4fc1bf(0x1c1)]=!![];typeof _0xb322be[_0x4fc1bf(0x1db)]===_0x4fc1bf(0x1ef)&&(_0x5c5d2f[_0x4fc1bf(0x1db)]=_0xb322be[_0x4fc1bf(0x1db)]);const _0x806499=mergeHeaders(asRecord(_0x5c5d2f[_0x4fc1bf(0x1ea)]),_0x5344f6['glUAu'](asRecord,_0xb322be[_0x4fc1bf(0x1b8)]));return _0x806499?_0x5c5d2f[_0x4fc1bf(0x1ea)]=_0x806499:delete _0x5c5d2f['extraHTTPHeaders'],_0x46350c[_0x4fc1bf(0x1c3)]&&(_0x5c5d2f['storageState']=_0x46350c['storageStatePath']),{'launchOptions':_0x138e98,'contextOptions':_0x5c5d2f};}export async function resolveProfileStorageState(_0x2b228d){return resolveLocalAuthPath(getEnvDir(_0x2b228d));}async function resolveLocalAuthPath(_0x37445c){const _0x47dc79=_0x21d118,_0x4cc147={'GKguR':function(_0x5e2b6d,_0x309595,_0x486d54){return _0x5e2b6d(_0x309595,_0x486d54);},'YnPKw':'auth.json.enc','lcMbX':function(_0x1d23c9){return _0x1d23c9();},'KPXZQ':function(_0x33dc17,_0x1a13ae,_0x1f0695){return _0x33dc17(_0x1a13ae,_0x1f0695);},'aGOCu':function(_0x219b5a,_0x2794cd,_0x4bf048){return _0x219b5a(_0x2794cd,_0x4bf048);},'EvjNR':function(_0x280cac,_0xb15d51){return _0x280cac(_0xb15d51);}},_0x2f4852=_0x4cc147[_0x47dc79(0x1df)](join,_0x37445c,_0x4cc147['YnPKw']),_0x31495c=join(_0x37445c,_0x47dc79(0x18f));if(existsSync(_0x2f4852))try{const _0x40c122=await _0x4cc147[_0x47dc79(0x1e9)](getToken);if(!_0x40c122)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0xcf0ca9=await readFile(_0x2f4852),_0x308597=_0x4cc147[_0x47dc79(0x1da)](decrypt,_0xcf0ca9,_0x40c122),_0x4c8212=_0x4cc147['GKguR'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x47dc79(0x1b5));return await _0x4cc147['aGOCu'](writeFile,_0x4c8212,_0x308597),{'storageStatePath':_0x4c8212,'tempAuthPath':_0x4c8212};}catch(_0x46c915){const _0x26c29f=_0x46c915 instanceof Error?_0x46c915[_0x47dc79(0x190)]:_0x4cc147[_0x47dc79(0x1d8)](String,_0x46c915);throw new Error(_0x47dc79(0x1b6)+_0x26c29f);}if(_0x4cc147['EvjNR'](existsSync,_0x31495c))return{'storageStatePath':_0x31495c};return{};}export async function buildPlaywrightConfig(_0x15a18b,_0x51f92a,_0x125d3b,_0x1f9017,_0x28104f){const _0x20c6ea=_0x21d118,_0x2e5530={'WlBgt':function(_0x2bc372,_0x349a7c){return _0x2bc372(_0x349a7c);},'PveKc':function(_0x36e1b6,_0x41357d){return _0x36e1b6(_0x41357d);},'KDtOh':function(_0x30c452,_0x57d935,_0x367ffa,_0x31c7ef,_0x14112e,_0x521bd6,_0x279097){return _0x30c452(_0x57d935,_0x367ffa,_0x31c7ef,_0x14112e,_0x521bd6,_0x279097);},'fyxPx':'stagehand','UTYHJ':function(_0x4a223c,_0x7566c9){return _0x4a223c(_0x7566c9);}};if(_0x28104f)return buildPlaywrightConfigCore(_0x15a18b,_0x28104f,_0x51f92a,_0x125d3b,_0x1f9017,_0x20c6ea(0x18e));const {storageStatePath:_0x55a617,tempAuthPath:_0x156f3c}=await _0x2e5530['WlBgt'](resolveLocalAuthPath,_0x2e5530[_0x20c6ea(0x196)](getEnvDir,_0x51f92a));try{const _0x186c68=await _0x2e5530[_0x20c6ea(0x172)](buildPlaywrightConfigCore,_0x15a18b,_0x55a617,_0x51f92a,_0x125d3b,_0x1f9017,_0x2e5530['fyxPx']);return{..._0x186c68,'tempAuthPath':_0x156f3c};}catch(_0x96e775){_0x156f3c&&await _0x2e5530[_0x20c6ea(0x188)](unlink,_0x156f3c)[_0x20c6ea(0x184)](()=>{});throw _0x96e775;}}export async function buildPlaywrightConfigCore(_0x31d704,_0x5574c4,_0x287b98,_0x4c8b19,_0x4eb652,_0x3076bc=_0x21d118(0x18e)){const _0x545d8e=_0x21d118,_0x14d311={'eRyas':function(_0x3a1ec8,_0xc80abd,_0xc376ca){return _0x3a1ec8(_0xc80abd,_0xc376ca);},'HgIHi':function(_0x16d173,_0x14e952){return _0x16d173===_0x14e952;},'yqCaQ':'--no-sandbox','lPJek':'chromium','zlpQs':'clipboard-write','lzndY':_0x545d8e(0x19e),'Vpikk':function(_0x184dcb,_0x454caf){return _0x184dcb===_0x454caf;},'vnEOp':'core','dDYAK':'tabs','NMELR':_0x545d8e(0x1b9),'sIAuh':'pdf','JWbnX':function(_0x2cf1ef,_0x25c686,_0x287616){return _0x2cf1ef(_0x25c686,_0x287616);},'ckkze':'ranger-config','OPgvO':'-cli','clEBN':function(_0x31805d,_0x28303f,_0x3fccf4){return _0x31805d(_0x28303f,_0x3fccf4);}},_0x4a2f44=_0x4c8b19||randomUUID(),_0x4a0af4=join(getRangerDir(),_0x14d311['lzndY'],_0x4a2f44),_0x43006a=Boolean(_0x31d704[_0x545d8e(0x1af)]),_0x456929=_0x43006a?{'browserName':_0x14d311[_0x545d8e(0x1a7)],'cdpEndpoint':_0x31d704['cdpEndpoint']}:((()=>{const _0x1ff38c=_0x545d8e,{launchOptions:_0x1a20c6,contextOptions:_0x44a304}=_0x14d311[_0x1ff38c(0x1b3)](buildBrowserOptionsFromSettings,_0x31d704,{'headless':_0x4eb652?![]:_0x31d704['headless']??!![],'storageStatePath':_0x5574c4});if(_0x14d311['HgIHi'](process[_0x1ff38c(0x16a)]?.(),0x0)){const _0x57e08e=[_0x14d311['yqCaQ'],_0x1ff38c(0x1cf)],_0x67eaeb=_0x1a20c6[_0x1ff38c(0x1de)]??[],_0x498530=_0x57e08e['filter'](_0x584114=>!_0x67eaeb[_0x1ff38c(0x177)](_0x584114));_0x1a20c6[_0x1ff38c(0x1de)]=[..._0x67eaeb,..._0x498530];}return{'isolated':!![],'browserName':_0x14d311[_0x1ff38c(0x1a7)],'launchOptions':_0x1a20c6,'contextOptions':{..._0x44a304,'permissions':[_0x1ff38c(0x175),_0x14d311['zlpQs']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x10d0e4=_0x14d311['Vpikk'](_0x3076bc,'playwright-cli')?{'browser':_0x456929,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4a0af4,'outputMode':'file','codegen':_0x545d8e(0x1ae)}:{'name':_0x287b98,'browser':_0x456929,'capabilities':[_0x14d311[_0x545d8e(0x18d)],_0x14d311['dDYAK'],_0x14d311[_0x545d8e(0x1e7)],_0x14d311[_0x545d8e(0x17e)],'vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4a0af4};if(!_0x43006a){const _0x547bb8=_0x10d0e4['browser'],_0x454e7a=_0x547bb8['contextOptions'];if(_0x454e7a['userAgent']===undefined)delete _0x454e7a['userAgent'];if(_0x454e7a[_0x545d8e(0x1ec)]===undefined)delete _0x454e7a['storageState'];}const _0x1dbecc=_0x14d311[_0x545d8e(0x17a)](join,tmpdir(),_0x14d311['ckkze']);!existsSync(_0x1dbecc)&&await _0x14d311['eRyas'](mkdir,_0x1dbecc,{'recursive':!![]});const _0x2019f1=_0x3076bc===_0x545d8e(0x176)?_0x14d311['OPgvO']:'',_0x1bcc17=_0x14d311[_0x545d8e(0x1eb)](join,_0x1dbecc,_0x287b98+'-'+Date['now']()+_0x2019f1+'.json');return await writeFile(_0x1bcc17,JSON[_0x545d8e(0x1dc)](_0x10d0e4,null,0x2)),{'configPath':_0x1bcc17,'storageStatePath':_0x5574c4};}export async function buildPlaywrightCliConfig(_0x516d39,_0x2da8f4,_0x213254,_0x43a9e5,_0xfc505f){const _0x893e=_0x21d118,_0x3191eb={'HAYlE':function(_0x2bde4b,_0x5c21d3){return _0x2bde4b(_0x5c21d3);},'EsaPG':_0x893e(0x176)};if(_0xfc505f)return buildPlaywrightConfigCore(_0x516d39,_0xfc505f,_0x2da8f4,_0x213254,_0x43a9e5,'playwright-cli');const {storageStatePath:_0x4d49b4,tempAuthPath:_0x3daaef}=await resolveLocalAuthPath(_0x3191eb[_0x893e(0x194)](getEnvDir,_0x2da8f4));try{const _0x1b69a6=await buildPlaywrightConfigCore(_0x516d39,_0x4d49b4,_0x2da8f4,_0x213254,_0x43a9e5,_0x3191eb['EsaPG']);return{..._0x1b69a6,'tempAuthPath':_0x3daaef};}catch(_0x42cc6e){_0x3daaef&&await _0x3191eb[_0x893e(0x194)](unlink,_0x3daaef)[_0x893e(0x184)](()=>{});throw _0x42cc6e;}}function _0x224b(_0x226f88,_0x404ed7){_0x226f88=_0x226f88-0x165;const _0x53645b=_0x5364();let _0x224bfa=_0x53645b[_0x226f88];return _0x224bfa;}export async function buildRangerwrightCliConfig(_0x441d36,_0x426fbb,_0x4b94df,_0x353722,_0x463e32){const _0x4086d0=_0x21d118,_0x5a3854={'oPoqq':'--no-sandbox','rFQix':'--disable-setuid-sandbox','lZnMs':_0x4086d0(0x175),'kTBex':_0x4086d0(0x1ce),'sPlDF':function(_0x4ca1fe,_0x6d7f9){return _0x4ca1fe(_0x6d7f9);},'jxUdO':function(_0x1c9be7,_0x1e940e){return _0x1c9be7(_0x1e940e);},'GAnXw':function(_0x526897){return _0x526897();},'dtuKF':function(_0xfcbd8a,_0x2ed366,_0x292b16,_0x10c4df){return _0xfcbd8a(_0x2ed366,_0x292b16,_0x10c4df);},'PlKTe':function(_0x3522a3,_0x647e67){return _0x3522a3(_0x647e67);},'Jypxm':_0x4086d0(0x1e2),'ljdxf':function(_0x3c5a29,_0x10bd67,_0x391f06){return _0x3c5a29(_0x10bd67,_0x391f06);}},{storageStatePath:_0x4cde82,tempAuthPath:_0x4b3555}=_0x463e32?{'storageStatePath':_0x463e32,'tempAuthPath':undefined}:await _0x5a3854[_0x4086d0(0x186)](resolveLocalAuthPath,_0x5a3854['jxUdO'](getEnvDir,_0x426fbb)),_0x498807=_0x4b94df||_0x5a3854['GAnXw'](randomUUID),_0xe6e02a=_0x5a3854['dtuKF'](join,getRangerDir(),'sessions',_0x498807),_0x417a3f=_0x5a3854[_0x4086d0(0x181)](Boolean,_0x441d36['cdpEndpoint']),_0x3cf3a3=_0x417a3f?{'browserName':_0x4086d0(0x1c0),'cdpEndpoint':_0x441d36[_0x4086d0(0x1af)]}:((()=>{const _0x2e104a=_0x4086d0,{launchOptions:_0x19eb05,contextOptions:_0xf9912e}=buildBrowserOptionsFromSettings(_0x441d36,{'headless':_0x353722?![]:_0x441d36[_0x2e104a(0x1b0)]??!![],'storageStatePath':_0x4cde82});if(process['getuid']?.()===0x0){const _0x104d4f=[_0x5a3854['oPoqq'],_0x5a3854[_0x2e104a(0x1be)]],_0x3dfcc2=_0x19eb05['args']??[],_0x5a8e78=_0x104d4f['filter'](_0xc92b1d=>!_0x3dfcc2['includes'](_0xc92b1d));_0x19eb05[_0x2e104a(0x1de)]=[..._0x3dfcc2,..._0x5a8e78];}return{'browserName':_0x2e104a(0x1c0),'launchOptions':_0x19eb05,'contextOptions':{..._0xf9912e,'permissions':[_0x5a3854[_0x2e104a(0x1a4)],_0x5a3854[_0x2e104a(0x1bb)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x417a3f){const _0x19f24f=_0x3cf3a3['contextOptions'];if(_0x19f24f){if(_0x19f24f['userAgent']===undefined)delete _0x19f24f['userAgent'];if(_0x19f24f[_0x4086d0(0x1ec)]===undefined)delete _0x19f24f['storageState'];}}const _0x1ea2fc={'browser':_0x3cf3a3,'outputDir':_0xe6e02a,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x13a71a;try{const _0x3023b3=join(tmpdir(),_0x5a3854[_0x4086d0(0x1c5)]);!_0x5a3854[_0x4086d0(0x186)](existsSync,_0x3023b3)&&await _0x5a3854['ljdxf'](mkdir,_0x3023b3,{'recursive':!![]}),_0x13a71a=join(_0x3023b3,_0x426fbb+'-'+Date[_0x4086d0(0x1bf)]()+_0x4086d0(0x1c8)),await writeFile(_0x13a71a,JSON['stringify'](_0x1ea2fc,null,0x2));}catch(_0x5cda65){_0x4b3555&&await unlink(_0x4b3555)['catch'](()=>{});throw _0x5cda65;}return{'configPath':_0x13a71a,'storageStatePath':_0x4cde82,'tempAuthPath':_0x4b3555,'outputDir':_0xe6e02a};}export async function buildNovaActCliConfig(_0x5b0209,_0x38be52,_0x21753e,_0x2dc01d,_0x497144){const _0x6f085=_0x21d118,_0xbf1775={'mmrJL':function(_0xd7b06d,_0x17adcc){return _0xd7b06d(_0x17adcc);},'QqIbN':function(_0x4d2f50){return _0x4d2f50();},'YQIuQ':function(_0x569775,_0x559761,_0x259bb8){return _0x569775(_0x559761,_0x259bb8);},'LltOQ':function(_0x220722,_0x229fa5){return _0x220722===_0x229fa5;},'Fuiqz':_0x6f085(0x1c9),'CrWMB':function(_0x1ece45,_0x21ebf7){return _0x1ece45===_0x21ebf7;},'mdZnc':'string','jPurT':function(_0x26b903,_0x272a9a){return _0x26b903(_0x272a9a);}},{storageStatePath:_0x3ee954,tempAuthPath:_0x3af028}=_0x497144?{'storageStatePath':_0x497144,'tempAuthPath':undefined}:await _0xbf1775[_0x6f085(0x1d7)](resolveLocalAuthPath,getEnvDir(_0x38be52)),_0x1e9130=_0x21753e||_0xbf1775['QqIbN'](randomUUID),_0xcfa207=join(getRangerDir(),_0x6f085(0x19e),_0x1e9130),_0x41a22a=_0xbf1775[_0x6f085(0x1f4)](join,_0xcfa207,'nova-user-data'),_0x3cd500=_0x3ee954?join(_0x41a22a,'Default'):undefined,{launchOptions:_0x66138,contextOptions:_0x2df60b}=buildBrowserOptionsFromSettings(_0x5b0209,{'headless':_0x2dc01d?![]:_0x5b0209[_0x6f085(0x1b0)]??!![],'storageStatePath':_0x3ee954});if(_0xbf1775[_0x6f085(0x1a5)](process['getuid']?.(),0x0)){const _0x238563=[_0xbf1775[_0x6f085(0x169)],'--disable-setuid-sandbox'],_0x357dd9=_0x66138[_0x6f085(0x1de)]??[],_0x195b1f=_0x238563['filter'](_0x4c466b=>!_0x357dd9[_0x6f085(0x177)](_0x4c466b));_0x66138[_0x6f085(0x1de)]=[..._0x357dd9,..._0x195b1f];}const _0x3e3890=_0xbf1775[_0x6f085(0x1a2)](typeof _0x66138['executablePath'],'string')?_0x66138[_0x6f085(0x178)]:_0x3ee954?chromium[_0x6f085(0x178)]():undefined;return{'storageStatePath':_0x3ee954,'tempAuthPath':_0x3af028,'baseUrl':_0x5b0209[_0x6f085(0x16c)],'headless':Boolean(_0x66138[_0x6f085(0x1b0)]),'userDataDir':_0x41a22a,'browserProfilePath':_0x3cd500,'executablePath':_0x3e3890,'launchArgs':Array[_0x6f085(0x1e4)](_0x66138[_0x6f085(0x1de)])?_0x66138['args']['filter'](_0x32f327=>typeof _0x32f327==='string'):[],'userAgent':typeof _0x2df60b[_0x6f085(0x1db)]===_0xbf1775['mdZnc']?_0x2df60b['userAgent']:undefined,'extraHTTPHeaders':_0x2df60b[_0x6f085(0x1ea)],'allowInsecureLocalhost':_0xbf1775['mmrJL'](Boolean,_0x5b0209['allowInsecureLocalhost']),'safeMode':Boolean(_0x5b0209['safeMode']),'cdpEndpoint':_0x5b0209[_0x6f085(0x1af)],'isCdpMode':_0xbf1775[_0x6f085(0x19b)](Boolean,_0x5b0209[_0x6f085(0x1af)])};}export function getNestedValue(_0xbf6a90,_0x2ea65a){const _0x5aef0b=_0x21d118,_0x1bb30f={'Xbcdl':function(_0x4ccb2a,_0x5c090d){return _0x4ccb2a(_0x5c090d);},'fBjSK':function(_0x5fd913,_0x322bb8){return _0x5fd913===_0x322bb8;},'ugWhb':function(_0x2427ff,_0x760980){return _0x2427ff!==_0x760980;},'dYsbP':'object'},_0x8954c5=_0x1bb30f['Xbcdl'](parseKeyPath,_0x2ea65a);let _0x41ce59=_0xbf6a90;for(const _0x3b79b0 of _0x8954c5){if(_0x41ce59===null||_0x1bb30f[_0x5aef0b(0x1a6)](_0x41ce59,undefined)||_0x1bb30f['ugWhb'](typeof _0x41ce59,_0x1bb30f['dYsbP']))return undefined;_0x41ce59=_0x41ce59[_0x3b79b0];}return _0x41ce59;}export function setNestedValue(_0x420d93,_0x3ddcff,_0x4a2ddb){const _0x1bfe19=_0x21d118,_0x38bd8a={'accMD':function(_0x44a582,_0x8bf9e0){return _0x44a582(_0x8bf9e0);},'LSDDb':function(_0x301aeb,_0x313fb7){return _0x301aeb-_0x313fb7;},'matbv':function(_0x11e4b2,_0x1bb77b){return _0x11e4b2!==_0x1bb77b;}},_0x3e12b6=_0x38bd8a['accMD'](parseKeyPath,_0x3ddcff);let _0x355b4e=_0x420d93;for(let _0x39d0ea=0x0;_0x39d0ea<_0x38bd8a[_0x1bfe19(0x1f2)](_0x3e12b6[_0x1bfe19(0x1a1)],0x1);_0x39d0ea++){const _0x5157eb=_0x3e12b6[_0x39d0ea];(!(_0x5157eb in _0x355b4e)||_0x38bd8a[_0x1bfe19(0x174)](typeof _0x355b4e[_0x5157eb],_0x1bfe19(0x1e3)))&&(_0x355b4e[_0x5157eb]={}),_0x355b4e=_0x355b4e[_0x5157eb];}_0x355b4e[_0x3e12b6[_0x3e12b6[_0x1bfe19(0x1a1)]-0x1]]=_0x4a2ddb;}export function deleteNestedValue(_0x1d3963,_0x3bf051){const _0x5cd5b8=_0x21d118,_0x4651bb={'LMIoR':function(_0x4aadba,_0x511026){return _0x4aadba(_0x511026);},'tNnaH':function(_0x4af8cf,_0x3e18c1){return _0x4af8cf<_0x3e18c1;},'ziRrT':function(_0x49cff7,_0x114f90){return _0x49cff7-_0x114f90;},'kPFHm':function(_0x40e323,_0x4fc5da){return _0x40e323===_0x4fc5da;},'mcZTz':_0x5cd5b8(0x1e3),'RmIwS':function(_0x3249bc,_0x40c88b){return _0x3249bc in _0x40c88b;}},_0x1829c0=_0x4651bb[_0x5cd5b8(0x192)](parseKeyPath,_0x3bf051);let _0x5b3e57=_0x1d3963;for(let _0x466faf=0x0;_0x4651bb[_0x5cd5b8(0x16d)](_0x466faf,_0x4651bb[_0x5cd5b8(0x170)](_0x1829c0['length'],0x1));_0x466faf++){if(_0x5b3e57===null||_0x4651bb[_0x5cd5b8(0x1c4)](_0x5b3e57,undefined)||typeof _0x5b3e57!==_0x4651bb['mcZTz'])return![];_0x5b3e57=_0x5b3e57[_0x1829c0[_0x466faf]];}if(_0x5b3e57===null||_0x4651bb['kPFHm'](_0x5b3e57,undefined)||typeof _0x5b3e57!==_0x4651bb[_0x5cd5b8(0x189)])return![];const _0x5198b2=_0x1829c0[_0x1829c0[_0x5cd5b8(0x1a1)]-0x1];if(_0x4651bb['RmIwS'](_0x5198b2,_0x5b3e57))return delete _0x5b3e57[_0x5198b2],!![];return![];}function parseKeyPath(_0x5a1fbb){const _0x99a4b=_0x21d118,_0x17b3e5={'KslsQ':function(_0x513183,_0x54d4e1){return _0x513183===_0x54d4e1;},'KItIN':_0x99a4b(0x1b1),'DoiZH':'headers','PPUHl':function(_0x1982e6,_0x5162a0){return _0x1982e6===_0x5162a0;},'CMedL':_0x99a4b(0x165)},_0x24be75=_0x5a1fbb[_0x99a4b(0x1d5)]('.');return _0x17b3e5['KslsQ'](_0x24be75[0x0],_0x17b3e5[_0x99a4b(0x1ba)])&&(_0x24be75[0x0]=_0x17b3e5[_0x99a4b(0x183)]),_0x17b3e5[_0x99a4b(0x1ca)](_0x24be75[0x0],_0x17b3e5['CMedL'])&&(_0x24be75[0x0]='setupHeaders'),_0x24be75;}export function formatSettings(_0x819ca8,_0x3dd706=0x0){const _0x1f4eee=_0x21d118,_0x17a450={'yVWNR':function(_0x2ef2d4,_0x57135e){return _0x2ef2d4===_0x57135e;}},_0x3929e1=[],_0x51fd3c='\x20\x20'['repeat'](_0x3dd706);for(const [_0xcd023a,_0x4700f7]of Object[_0x1f4eee(0x1d2)](_0x819ca8)){if(_0x17a450[_0x1f4eee(0x1d9)](_0x4700f7,undefined))continue;if(_0x17a450['yVWNR'](typeof _0x4700f7,'object')&&_0x4700f7!==null){_0x3929e1['push'](''+_0x51fd3c+_0xcd023a+':');for(const [_0x130ce5,_0xc247fa]of Object['entries'](_0x4700f7)){_0x3929e1['push'](_0x51fd3c+'\x20\x20'+_0x130ce5+':\x20'+_0xc247fa);}}else _0x3929e1['push'](''+_0x51fd3c+_0xcd023a+':\x20'+_0x4700f7);}return _0x3929e1['join']('\x0a');}
@@ -1 +1 @@
1
- function _0xc80f(){const _0x482a5f=['6066WvoLOF','26gKzjUb','22OWjFzx','13722bAmIRm','88wDCfeq','455hVtwZU','ranger/SKILL.md','1490965rmmDmE','421920AZySQz','57ItnnlK','555948wzsbnh','3YhvPRL','3671004xbiEMl','kyvda','859310YySuSt','skills'];_0xc80f=function(){return _0x482a5f;};return _0xc80f();}function _0x3866(_0x10af8f,_0x314634){_0x10af8f=_0x10af8f-0x9b;const _0xc80f98=_0xc80f();let _0x3866cc=_0xc80f98[_0x10af8f];return _0x3866cc;}(function(_0xf674cc,_0x450dbe){const _0x3a7735=_0x3866,_0x195719=_0xf674cc();while(!![]){try{const _0x102155=-parseInt(_0x3a7735(0xa6))/0x1*(parseInt(_0x3a7735(0xa0))/0x2)+parseInt(_0x3a7735(0xa8))/0x3*(parseInt(_0x3a7735(0xa7))/0x4)+-parseInt(_0x3a7735(0xa2))/0x5*(-parseInt(_0x3a7735(0x9d))/0x6)+parseInt(_0x3a7735(0xa4))/0x7+-parseInt(_0x3a7735(0xa1))/0x8*(parseInt(_0x3a7735(0xa5))/0x9)+-parseInt(_0x3a7735(0x9b))/0xa*(-parseInt(_0x3a7735(0x9f))/0xb)+-parseInt(_0x3a7735(0xa9))/0xc*(-parseInt(_0x3a7735(0x9e))/0xd);if(_0x102155===_0x450dbe)break;else _0x195719['push'](_0x195719['shift']());}catch(_0x529192){_0x195719['push'](_0x195719['shift']());}}}(_0xc80f,0x4e59a));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x77252c){const _0x2d9f70=_0x3866,_0x28c92e={'faQJp':_0x2d9f70(0x9c),'kyvda':'utf-8'},_0x1a4808=join(__dirname,'..','..',_0x28c92e['faQJp']),_0x3ffcec=join(_0x1a4808,_0x77252c);try{return readFileSync(_0x3ffcec,_0x28c92e[_0x2d9f70(0xaa)]);}catch{return'';}}export function getRangerSkillContent(){const _0x2331c6=_0x3866,_0x274124={'lzoin':_0x2331c6(0xa3)};return readSkillContent(_0x274124['lzoin']);}
1
+ (function(_0x2840ef,_0x5a4164){const _0x5b71ec=_0x34a0,_0x5ebd24=_0x2840ef();while(!![]){try{const _0x5c08bb=parseInt(_0x5b71ec(0x134))/0x1+parseInt(_0x5b71ec(0x135))/0x2*(-parseInt(_0x5b71ec(0x129))/0x3)+parseInt(_0x5b71ec(0x131))/0x4*(parseInt(_0x5b71ec(0x130))/0x5)+-parseInt(_0x5b71ec(0x132))/0x6+-parseInt(_0x5b71ec(0x136))/0x7+-parseInt(_0x5b71ec(0x137))/0x8*(parseInt(_0x5b71ec(0x12a))/0x9)+parseInt(_0x5b71ec(0x12e))/0xa;if(_0x5c08bb===_0x5a4164)break;else _0x5ebd24['push'](_0x5ebd24['shift']());}catch(_0x5155a4){_0x5ebd24['push'](_0x5ebd24['shift']());}}}(_0x346a,0x2c3f9));function _0x346a(){const _0x3178d8=['2087334DvWZcg','nmHFY','GunTL','utf-8','3603880booQYf','skills','5eXxOLQ','399628DkozIX','39852YWYhCv','NmIkq','298036RqSfin','498244hECTTo','625800mNZruT','8aiFTDc','3iVrpqI'];_0x346a=function(){return _0x3178d8;};return _0x346a();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x34a0(_0x2068ad,_0x2932da){_0x2068ad=_0x2068ad-0x129;const _0x346a84=_0x346a();let _0x34a04c=_0x346a84[_0x2068ad];return _0x34a04c;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x2d3c2b){const _0x50d79f=_0x34a0,_0x473b11={'nmHFY':function(_0x21c1ea,_0x22d6ad,_0x12eb21,_0xe1280,_0x17e8d1){return _0x21c1ea(_0x22d6ad,_0x12eb21,_0xe1280,_0x17e8d1);},'ubwJZ':_0x50d79f(0x12f),'GunTL':function(_0x3fe6ae,_0x218387,_0x4f1566){return _0x3fe6ae(_0x218387,_0x4f1566);},'NmIkq':_0x50d79f(0x12d)},_0x57b83a=_0x473b11[_0x50d79f(0x12b)](join,__dirname,'..','..',_0x473b11['ubwJZ']),_0x523332=join(_0x57b83a,_0x2d3c2b);try{return _0x473b11[_0x50d79f(0x12c)](readFileSync,_0x523332,_0x473b11[_0x50d79f(0x133)]);}catch{return'';}}export function getRangerSkillContent(){const _0x4d4db1={'iIBxf':function(_0x2dba83,_0x12a032){return _0x2dba83(_0x12a032);}};return _0x4d4db1['iIBxf'](readSkillContent,'ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x3b66a8=_0x5862;function _0x2793(){const _0x30b9dc=['mJVuE','nNfOS','cZyyr','bddzt','3135saaMcF','\x20\x20Installed\x20skill:\x20','catch','2AsHyPZ','\x20\x20Location:\x20','350244LoJdvo','skills','jPlmh','8568660gDYpJv','ranger','PjuRV','trim','7WbizUR','42190joreyS','length','log','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','SKILL.md','6EmbNbL','utf-8','30729ecLZfc','931427GREZVU','6392824CmrWdl','push','3818690CaaGQw','claude','pQTVg','oLGGf','CqiMy','qjAdh','28iQOqNM','e2e-test-recommender','urSRD','mfbQv','join'];_0x2793=function(){return _0x30b9dc;};return _0x2793();}(function(_0x553866,_0x3bb14a){const _0x50b970=_0x5862,_0x6c923f=_0x553866();while(!![]){try{const _0xbfd325=parseInt(_0x50b970(0xea))/0x1*(-parseInt(_0x50b970(0xd8))/0x2)+parseInt(_0x50b970(0xe9))/0x3*(-parseInt(_0x50b970(0xf3))/0x4)+-parseInt(_0x50b970(0xed))/0x5*(-parseInt(_0x50b970(0xe7))/0x6)+parseInt(_0x50b970(0xe1))/0x7*(-parseInt(_0x50b970(0xeb))/0x8)+-parseInt(_0x50b970(0xda))/0x9+parseInt(_0x50b970(0xe2))/0xa*(parseInt(_0x50b970(0xd5))/0xb)+parseInt(_0x50b970(0xdd))/0xc;if(_0xbfd325===_0x3bb14a)break;else _0x6c923f['push'](_0x6c923f['shift']());}catch(_0x5aa815){_0x6c923f['push'](_0x6c923f['shift']());}}}(_0x2793,0xccd95));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=[_0x3b66a8(0xde)];export const DEPRECATED_SKILLS=[_0x3b66a8(0xcd),'bug-bash','feature-tracker'];function _0x5862(_0x2070f0,_0x81b0c7){_0x2070f0=_0x2070f0-0xcd;const _0x279307=_0x2793();let _0x58627c=_0x279307[_0x2070f0];return _0x58627c;}export async function installSkill(_0x24f21f,_0x607a72={}){const _0x290a75=_0x3b66a8,_0x571afb={'mJVuE':_0x290a75(0xee),'PjuRV':function(_0x489f68){return _0x489f68();},'emwXO':function(_0x8b2378,_0x2bf945,_0x146369){return _0x8b2378(_0x2bf945,_0x146369);},'qjAdh':function(_0x49a15a,_0x387aa3){return _0x49a15a(_0x387aa3);},'pQTVg':function(_0x28abce,_0xbebdeb){return _0x28abce(_0xbebdeb);},'cDYxp':function(_0xad6f4b,_0xf9da95){return _0xad6f4b===_0xf9da95;},'CqiMy':function(_0x75de36,_0x395343,_0x5d4ad0){return _0x75de36(_0x395343,_0x5d4ad0);},'JYKYA':function(_0x3b9f3b,_0x27f942,_0x442020){return _0x3b9f3b(_0x27f942,_0x442020);},'nNfOS':_0x290a75(0xe6),'MMNqK':_0x290a75(0xe8),'cHLYj':function(_0x2fbb7a,_0x458e3d,_0x3c04e5){return _0x2fbb7a(_0x458e3d,_0x3c04e5);},'mfbQv':function(_0xf13159,_0x107348,_0x2a5af2){return _0xf13159(_0x107348,_0x2a5af2);},'lIKZs':function(_0x588a08,_0x4de311,_0x5b2024,_0x52761a){return _0x588a08(_0x4de311,_0x5b2024,_0x52761a);}},{level:level='project',cliVersion:_0x3d429b,platform:platform=_0x571afb[_0x290a75(0xd1)]}=_0x607a72,_0x18da28=_0x571afb[_0x290a75(0xdf)](getSourceSkillsDir),_0x4f0920=join(_0x18da28,_0x24f21f),_0xdaff03=_0x571afb['emwXO'](join,_0x18da28,_0x24f21f+'.md'),_0x2ba032=_0x571afb[_0x290a75(0xf2)](existsSync,_0x4f0920)&&statSync(_0x4f0920)['isDirectory']()&&_0x571afb[_0x290a75(0xf2)](existsSync,join(_0x4f0920,'SKILL.md')),_0x521cde=_0x571afb['pQTVg'](existsSync,_0xdaff03);if(!_0x2ba032&&!_0x521cde)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x24f21f),![];const _0x281966=_0x571afb['cDYxp'](platform,'opencode')?_0x571afb[_0x290a75(0xef)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x5d9f04=_0x571afb[_0x290a75(0xf1)](join,_0x281966,_0x24f21f);await mkdir(_0x5d9f04,{'recursive':!![]});let _0x33cc68,_0x22cfa4=[];if(_0x2ba032){const _0x2487e8=await _0x571afb['qjAdh'](readdir,_0x4f0920),_0x3457bc=_0x2487e8['filter'](_0x54f13c=>_0x54f13c['endsWith']('.md'));for(const _0x727e0e of _0x3457bc){const _0x3cb4bb=join(_0x4f0920,_0x727e0e),_0x181b95=join(_0x5d9f04,_0x727e0e);await _0x571afb['JYKYA'](copyFile,_0x3cb4bb,_0x181b95),_0x22cfa4[_0x290a75(0xec)](_0x727e0e);}_0x33cc68=await readFile(_0x571afb[_0x290a75(0xf1)](join,_0x4f0920,_0x571afb[_0x290a75(0xd2)]),_0x571afb['MMNqK']);}else{_0x33cc68=await _0x571afb['cHLYj'](readFile,_0xdaff03,_0x571afb['MMNqK']);const _0x54c035=_0x571afb[_0x290a75(0xcf)](join,_0x5d9f04,_0x571afb['nNfOS']);await _0x571afb['lIKZs'](writeFile,_0x54c035,_0x33cc68,_0x290a75(0xe8)),_0x22cfa4['push']('SKILL.md');}const {name:_0x53ad90}=parseFrontmatter(_0x33cc68);return console['log'](_0x290a75(0xd6)+_0x53ad90),console['log'](_0x290a75(0xd9)+_0x5d9f04),_0x22cfa4[_0x290a75(0xe3)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x22cfa4[_0x290a75(0xd0)](',\x20')),logLocalAgentInstallation(_0x24f21f,{'skillDisplayName':_0x53ad90,'installLevel':level},_0x3d429b)[_0x290a75(0xd7)](()=>{}),!![];}function getSourceSkillsDir(){const _0x2ecd54=_0x3b66a8,_0x46766b={'bddzt':'skills'},_0x478943=[join(__dirname,'..','..',_0x46766b[_0x2ecd54(0xd4)]),join(__dirname,'..','..','..',_0x2ecd54(0xdb))];for(const _0x33219b of _0x478943){if(existsSync(_0x33219b))return _0x33219b;}return _0x478943[0x0];}function parseFrontmatter(_0x1a3ce9){const _0x491ea3=_0x3b66a8,_0x5271eb={'oLGGf':'Invalid\x20skill\x20frontmatter'},_0x449b5a=_0x1a3ce9['match'](/^---\n([\s\S]+?)\n---/);if(!_0x449b5a)throw new Error(_0x5271eb[_0x491ea3(0xf0)]);const _0x38d51d=_0x449b5a[0x1],_0x514fb0=_0x38d51d['match'](/name:\s*(.+)/),_0x595655=_0x38d51d['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x514fb0?.[0x1][_0x491ea3(0xe0)]()||'','description':_0x595655?.[0x1][_0x491ea3(0xe0)]()||''};}export async function removeSkill(_0x221118,_0x56f906){const _0x3c3856=_0x3b66a8,_0x1d666b={'jPlmh':function(_0x3f52a6,_0x3b1b26,_0x43440b){return _0x3f52a6(_0x3b1b26,_0x43440b);},'cZyyr':function(_0xe2a659,_0x315c2c){return _0xe2a659(_0x315c2c);},'urSRD':function(_0x23c40f,_0x29b7aa,_0x56a768){return _0x23c40f(_0x29b7aa,_0x56a768);}},_0x52fb3f=getSkillsDir(_0x56f906),_0x1f2eb3=_0x1d666b[_0x3c3856(0xdc)](join,_0x52fb3f,_0x221118);if(!_0x1d666b[_0x3c3856(0xd3)](existsSync,_0x1f2eb3))return![];try{return await _0x1d666b[_0x3c3856(0xce)](rm,_0x1f2eb3,{'recursive':!![]}),console[_0x3c3856(0xe4)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x221118),!![];}catch{return console['warn'](_0x3c3856(0xe5)+_0x221118),![];}}
1
+ const _0x5e8466=_0x1847;(function(_0x15aed8,_0xbd0e92){const _0x4ed949=_0x1847,_0x184e84=_0x15aed8();while(!![]){try{const _0xd6d3d9=parseInt(_0x4ed949(0x1b4))/0x1+-parseInt(_0x4ed949(0x1c1))/0x2*(-parseInt(_0x4ed949(0x1c5))/0x3)+-parseInt(_0x4ed949(0x1ca))/0x4+-parseInt(_0x4ed949(0x1bc))/0x5*(parseInt(_0x4ed949(0x1c8))/0x6)+parseInt(_0x4ed949(0x1b5))/0x7+-parseInt(_0x4ed949(0x1c7))/0x8+parseInt(_0x4ed949(0x1c3))/0x9*(parseInt(_0x4ed949(0x1cb))/0xa);if(_0xd6d3d9===_0xbd0e92)break;else _0x184e84['push'](_0x184e84['shift']());}catch(_0x1d10f0){_0x184e84['push'](_0x184e84['shift']());}}}(_0x1367,0xdeb57));function _0x1367(){const _0x163ad5=['cArgX','Invalid\x20skill\x20frontmatter','VLxXj','\x20\x20Skill\x20not\x20found:\x20','eCSVH','590MTnxip','\x20\x20Installed\x20skill:\x20','uYbxw','QHXCF','gOAmx','3005346MejvoJ','catch','9qjlxRt','trim','3zsRSjH','SKILL.md','11613224LHoeen','52764hvpDdj','project','4071228dJzfDu','16534900IpwInh','bug-bash','log','warn','feature-tracker','ranger','match','filter','eITQK','length','isDirectory','947308LpyFjG','2211272ebDcvc','push'];_0x1367=function(){return _0x163ad5;};return _0x1367();}import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5e8466(0x1d0)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x5e8466(0x1cc),_0x5e8466(0x1cf)];export async function installSkill(_0x542bcb,_0x2ab47f={}){const _0x567021=_0x5e8466,_0x4880a6={'Xghyz':'claude','eCSVH':function(_0xa9860f,_0x5ec27e,_0x388618){return _0xa9860f(_0x5ec27e,_0x388618);},'gOAmx':function(_0x3a3d23,_0x3e6c31,_0x550991){return _0x3a3d23(_0x3e6c31,_0x550991);},'iuYcB':function(_0x3580c0,_0x392966){return _0x3580c0(_0x392966);},'QHXCF':function(_0x2d97e3,_0x20c206){return _0x2d97e3===_0x20c206;},'jCImA':function(_0x2c3a89,_0x16a8c5,_0x527ef7){return _0x2c3a89(_0x16a8c5,_0x527ef7);},'yZoYi':function(_0x3f6e3c,_0x1a5fe0,_0x57ce90){return _0x3f6e3c(_0x1a5fe0,_0x57ce90);},'uYbxw':function(_0x5a85d1,_0x3beb64,_0x337d6b){return _0x5a85d1(_0x3beb64,_0x337d6b);},'efpbE':_0x567021(0x1c6),'auDec':'utf-8','eHEeM':function(_0xe41c8a,_0x2cf99d,_0x8a95f7,_0x46d596){return _0xe41c8a(_0x2cf99d,_0x8a95f7,_0x46d596);},'cArgX':function(_0x3c6a91,_0x173d9f){return _0x3c6a91(_0x173d9f);}},{level:level=_0x567021(0x1c9),cliVersion:_0x1788c4,platform:platform=_0x4880a6['Xghyz']}=_0x2ab47f,_0x45357d=getSourceSkillsDir(),_0x4c7465=join(_0x45357d,_0x542bcb),_0x4062c9=_0x4880a6['eCSVH'](join,_0x45357d,_0x542bcb+'.md'),_0xa0d5e3=existsSync(_0x4c7465)&&statSync(_0x4c7465)[_0x567021(0x1d5)]()&&existsSync(_0x4880a6[_0x567021(0x1c0)](join,_0x4c7465,'SKILL.md')),_0xf61bc2=_0x4880a6['iuYcB'](existsSync,_0x4062c9);if(!_0xa0d5e3&&!_0xf61bc2)return console['warn'](_0x567021(0x1ba)+_0x542bcb),![];const _0x1048c5=_0x4880a6[_0x567021(0x1bf)](platform,'opencode')?getOpencodeSkillsDir(level):getSkillsDir(level),_0x17d351=_0x4880a6['jCImA'](join,_0x1048c5,_0x542bcb);await mkdir(_0x17d351,{'recursive':!![]});let _0x37cdf9,_0x5dcefd=[];if(_0xa0d5e3){const _0x1a7063=await readdir(_0x4c7465),_0x569aa5=_0x1a7063[_0x567021(0x1d2)](_0x2fe4e6=>_0x2fe4e6['endsWith']('.md'));for(const _0x47a528 of _0x569aa5){const _0x4e051a=join(_0x4c7465,_0x47a528),_0x185b61=_0x4880a6[_0x567021(0x1bb)](join,_0x17d351,_0x47a528);await _0x4880a6['gOAmx'](copyFile,_0x4e051a,_0x185b61),_0x5dcefd['push'](_0x47a528);}_0x37cdf9=await _0x4880a6['yZoYi'](readFile,_0x4880a6[_0x567021(0x1be)](join,_0x4c7465,_0x4880a6['efpbE']),_0x4880a6['auDec']);}else{_0x37cdf9=await _0x4880a6['jCImA'](readFile,_0x4062c9,'utf-8');const _0x6076c6=join(_0x17d351,'SKILL.md');await _0x4880a6['eHEeM'](writeFile,_0x6076c6,_0x37cdf9,'utf-8'),_0x5dcefd[_0x567021(0x1b6)]('SKILL.md');}const {name:_0x2746d8}=_0x4880a6[_0x567021(0x1b7)](parseFrontmatter,_0x37cdf9);return console['log'](_0x567021(0x1bd)+_0x2746d8),console['log']('\x20\x20Location:\x20'+_0x17d351),_0x5dcefd[_0x567021(0x1d4)]>0x1&&console['log']('\x20\x20Files:\x20'+_0x5dcefd['join'](',\x20')),logLocalAgentInstallation(_0x542bcb,{'skillDisplayName':_0x2746d8,'installLevel':level},_0x1788c4)[_0x567021(0x1c2)](()=>{}),!![];}function _0x1847(_0x51e3db,_0x28d366){_0x51e3db=_0x51e3db-0x1b4;const _0x136727=_0x1367();let _0x1847ce=_0x136727[_0x51e3db];return _0x1847ce;}function getSourceSkillsDir(){const _0x4b53cc=_0x5e8466,_0x1749af={'mnsHr':function(_0x53e299,_0x2e34ca,_0x5a930f,_0x4e5002,_0x4730a9){return _0x53e299(_0x2e34ca,_0x5a930f,_0x4e5002,_0x4730a9);},'upQCr':function(_0x12affb,_0x2071db,_0x30e59f,_0x53f35e,_0xe6c77,_0xed8f24){return _0x12affb(_0x2071db,_0x30e59f,_0x53f35e,_0xe6c77,_0xed8f24);},'VLxXj':'skills','LVfIf':function(_0x294fcc,_0x427965){return _0x294fcc(_0x427965);}},_0x171062=[_0x1749af['mnsHr'](join,__dirname,'..','..','skills'),_0x1749af['upQCr'](join,__dirname,'..','..','..',_0x1749af[_0x4b53cc(0x1b9)])];for(const _0x22204d of _0x171062){if(_0x1749af['LVfIf'](existsSync,_0x22204d))return _0x22204d;}return _0x171062[0x0];}function parseFrontmatter(_0x205164){const _0xb6ac3d=_0x5e8466,_0x4f75a1=_0x205164[_0xb6ac3d(0x1d1)](/^---\n([\s\S]+?)\n---/);if(!_0x4f75a1)throw new Error(_0xb6ac3d(0x1b8));const _0x198faa=_0x4f75a1[0x1],_0x53ff78=_0x198faa['match'](/name:\s*(.+)/),_0x410578=_0x198faa[_0xb6ac3d(0x1d1)](/description:\s*"?(.+?)"?\n/);return{'name':_0x53ff78?.[0x1][_0xb6ac3d(0x1c4)]()||'','description':_0x410578?.[0x1][_0xb6ac3d(0x1c4)]()||''};}export async function removeSkill(_0x8bb7d6,_0x105782){const _0x5ae29b=_0x5e8466,_0xd18138={'AjNLj':function(_0x2a1987,_0x355254){return _0x2a1987(_0x355254);},'eITQK':function(_0x4603d8,_0x35a9b9,_0x8f3a52){return _0x4603d8(_0x35a9b9,_0x8f3a52);}},_0x355759=getSkillsDir(_0x105782),_0x42df86=join(_0x355759,_0x8bb7d6);if(!_0xd18138['AjNLj'](existsSync,_0x42df86))return![];try{return await _0xd18138[_0x5ae29b(0x1d3)](rm,_0x42df86,{'recursive':!![]}),console[_0x5ae29b(0x1cd)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x8bb7d6),!![];}catch{return console[_0x5ae29b(0x1ce)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x8bb7d6),![];}}
@@ -1 +1 @@
1
- const _0x458c6a=_0x11b5;(function(_0x2558ac,_0x219fa9){const _0x5db144=_0x11b5,_0x172354=_0x2558ac();while(!![]){try{const _0x509b02=-parseInt(_0x5db144(0x1d5))/0x1*(parseInt(_0x5db144(0x1d0))/0x2)+-parseInt(_0x5db144(0x1e7))/0x3+-parseInt(_0x5db144(0x1ee))/0x4+-parseInt(_0x5db144(0x1c9))/0x5*(-parseInt(_0x5db144(0x1f1))/0x6)+parseInt(_0x5db144(0x1cd))/0x7+parseInt(_0x5db144(0x1e6))/0x8+-parseInt(_0x5db144(0x1de))/0x9*(-parseInt(_0x5db144(0x1ca))/0xa);if(_0x509b02===_0x219fa9)break;else _0x172354['push'](_0x172354['shift']());}catch(_0x3faac0){_0x172354['push'](_0x172354['shift']());}}}(_0x1c8a,0x921e7));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 _0x11b5(_0x2067c5,_0x56e755){_0x2067c5=_0x2067c5-0x1c9;const _0x1c8a4a=_0x1c8a();let _0x11b560=_0x1c8a4a[_0x2067c5];return _0x11b560;}function readVint(_0x4b19a1,_0x3831b7){const _0x9860f6=_0x11b5,_0xa17d50={'cQOLY':function(_0x5b1c3a,_0x7ff51b){return _0x5b1c3a>=_0x7ff51b;},'TgpxA':function(_0x49e401,_0x425035){return _0x49e401<=_0x425035;},'Pvqbd':function(_0x5dcf0d,_0x5b0e01){return _0x5dcf0d>_0x5b0e01;},'OfyMz':function(_0x16ae8d,_0x28d72d){return _0x16ae8d+_0x28d72d;},'GMWNq':function(_0x239c02,_0x13f117){return _0x239c02&_0x13f117;},'kTRHu':function(_0x33942a,_0x50f62f){return _0x33942a-_0x50f62f;},'DaoyI':function(_0x232647,_0x5a7630){return _0x232647<_0x5a7630;},'pQFvC':function(_0x244312,_0x356b38){return _0x244312*_0x356b38;},'FtJLy':function(_0x3ed19e,_0x24c5b4){return _0x3ed19e+_0x24c5b4;}};if(_0xa17d50[_0x9860f6(0x1d1)](_0x3831b7,_0x4b19a1[_0x9860f6(0x1e2)]))return[0x0,0x0];const _0x501497=_0x4b19a1[_0x3831b7];let _0x4e1fc5=0x1,_0x6f27fa=0x80;while(_0xa17d50[_0x9860f6(0x1f6)](_0x4e1fc5,0x8)&&!(_0x501497&_0x6f27fa)){_0x4e1fc5++,_0x6f27fa>>=0x1;}if(_0xa17d50['Pvqbd'](_0xa17d50['OfyMz'](_0x3831b7,_0x4e1fc5),_0x4b19a1['length']))return[0x0,0x0];let _0x4c2415=_0xa17d50[_0x9860f6(0x1d4)](_0x501497,_0xa17d50[_0x9860f6(0x1fa)](_0x6f27fa,0x1));for(let _0x5687fb=0x1;_0xa17d50['DaoyI'](_0x5687fb,_0x4e1fc5);_0x5687fb++){_0x4c2415=_0xa17d50['pQFvC'](_0x4c2415,0x100)+_0x4b19a1[_0xa17d50['FtJLy'](_0x3831b7,_0x5687fb)];}return[_0x4c2415,_0x4e1fc5];}function readId(_0x17c9ed,_0xedfb33){const _0x4716eb=_0x11b5,_0x1a2c3b={'tUhEr':function(_0xeb6ef5,_0x44e135){return _0xeb6ef5>=_0x44e135;},'nodeW':function(_0x5f1951,_0x570901){return _0x5f1951>=_0x570901;},'ffvpC':function(_0x1f69e3,_0x48eb98){return _0x1f69e3>=_0x48eb98;},'augpH':function(_0x4df9e8,_0x1310eb){return _0x4df9e8>_0x1310eb;},'EEqoH':function(_0x26e019,_0x4c123e){return _0x26e019+_0x4c123e;}};if(_0x1a2c3b['tUhEr'](_0xedfb33,_0x17c9ed[_0x4716eb(0x1e2)]))return[0x0,0x0];const _0x353604=_0x17c9ed[_0xedfb33];let _0x438ac4;if(_0x1a2c3b['nodeW'](_0x353604,0x80))_0x438ac4=0x1;else{if(_0x1a2c3b[_0x4716eb(0x1da)](_0x353604,0x40))_0x438ac4=0x2;else{if(_0x353604>=0x20)_0x438ac4=0x3;else{if(_0x353604>=0x10)_0x438ac4=0x4;else return[_0x353604,0x1];}}}if(_0x1a2c3b['augpH'](_0xedfb33+_0x438ac4,_0x17c9ed[_0x4716eb(0x1e2)]))return[0x0,0x0];let _0x374668=0x0;for(let _0x1b6bfe=0x0;_0x1b6bfe<_0x438ac4;_0x1b6bfe++){_0x374668=_0x1a2c3b['EEqoH'](_0x374668*0x100,_0x17c9ed[_0x1a2c3b[_0x4716eb(0x1cc)](_0xedfb33,_0x1b6bfe)]);}return[_0x374668,_0x438ac4];}function readUint(_0x3e4997,_0x3195ee,_0x5aa128){const _0x148500={'LTXjw':function(_0x35fdf4,_0x29b63d){return _0x35fdf4<_0x29b63d;}};let _0x42f268=0x0;for(let _0x1ceb09=0x0;_0x148500['LTXjw'](_0x1ceb09,_0x5aa128);_0x1ceb09++){_0x42f268=_0x42f268*0x100+_0x3e4997[_0x3195ee+_0x1ceb09];}return _0x42f268;}function isUnknownSize(_0x552d07,_0x16d0f0){const _0x14cec6={'TzxGC':function(_0x25424e,_0x55f9e5){return _0x25424e*_0x55f9e5;}};return _0x552d07===Math['pow'](0x2,_0x14cec6['TzxGC'](0x7,_0x16d0f0))-0x1;}function writeVint(_0x5ec4f1,_0x5f587d){const _0x1ad6d9=_0x11b5,_0x1f3a61={'mQUwt':function(_0x28daf1,_0xb3cc11){return _0x28daf1||_0xb3cc11;},'RiWMv':function(_0x5abd23,_0x571175){return _0x5abd23<_0x571175;},'jiZbJ':function(_0x2c35b7,_0x4d99ac){return _0x2c35b7-_0x4d99ac;},'gRFli':function(_0x30dd7d,_0x4fe26d){return _0x30dd7d>=_0x4fe26d;},'CwXgc':function(_0x2bb4a2,_0x57f10c){return _0x2bb4a2<<_0x57f10c;}};let _0x560d77=_0x1f3a61[_0x1ad6d9(0x1d3)](_0x5f587d,0x1);while(_0x1f3a61['RiWMv'](_0x1f3a61['jiZbJ'](Math[_0x1ad6d9(0x1d9)](0x2,0x7*_0x560d77),0x2),_0x5ec4f1))_0x560d77++;const _0x521d69=Buffer['alloc'](_0x560d77);for(let _0x2bcbef=_0x1f3a61[_0x1ad6d9(0x1f8)](_0x560d77,0x1);_0x1f3a61['gRFli'](_0x2bcbef,0x0);_0x2bcbef--){_0x521d69[_0x2bcbef]=_0x5ec4f1&0xff,_0x5ec4f1=Math[_0x1ad6d9(0x1fb)](_0x5ec4f1/0x100);}return _0x521d69[0x0]|=_0x1f3a61['CwXgc'](0x1,_0x1f3a61[_0x1ad6d9(0x1f8)](0x8,_0x560d77)),_0x521d69;}function writeUint(_0x28288c,_0x287ea5){const _0xe35df6=_0x11b5,_0x46e1b2={'koNNx':function(_0x46918e,_0x393e52){return _0x46918e>=_0x393e52;},'OBGmp':function(_0x4410d3,_0x19eae6){return _0x4410d3/_0x19eae6;}},_0x122bc0=Buffer[_0xe35df6(0x1f3)](_0x287ea5);for(let _0x76f082=_0x287ea5-0x1;_0x46e1b2[_0xe35df6(0x203)](_0x76f082,0x0);_0x76f082--){_0x122bc0[_0x76f082]=_0x28288c&0xff,_0x28288c=Math[_0xe35df6(0x1fb)](_0x46e1b2['OBGmp'](_0x28288c,0x100));}return _0x122bc0;}function writeUnknownSizeVint(_0x9090c2){const _0x312247=_0x11b5,_0x2ccbe={'LRVfu':function(_0x2eb6eb,_0x345ecd){return _0x2eb6eb>>_0x345ecd;},'bTswN':function(_0x45d110,_0x32952e){return _0x45d110-_0x32952e;}},_0x1a807a=Buffer[_0x312247(0x1f3)](_0x9090c2,0xff);return _0x1a807a[0x0]=_0x2ccbe[_0x312247(0x1cf)](0xff,_0x2ccbe['bTswN'](_0x9090c2,0x1)),_0x1a807a;}function uintSize(_0x41534d){const _0x4c959c=_0x11b5,_0x95c0a6={'qdrkd':function(_0x5f5692,_0x2ccf35){return _0x5f5692===_0x2ccf35;},'WGQdc':function(_0x4ea938,_0x1486c0){return _0x4ea938>_0x1486c0;},'myZoy':function(_0x211c36,_0x2aeb53){return _0x211c36/_0x2aeb53;}};if(_0x95c0a6[_0x4c959c(0x1e3)](_0x41534d,0x0))return 0x1;let _0x1a2256=0x0,_0x12ebcc=_0x41534d;while(_0x95c0a6[_0x4c959c(0x1df)](_0x12ebcc,0x0)){_0x1a2256++,_0x12ebcc=Math[_0x4c959c(0x1fb)](_0x95c0a6['myZoy'](_0x12ebcc,0x100));}return _0x1a2256;}function findTimestampScale(_0x37593b,_0x31fc3e){const _0x568390=_0x11b5,_0x605ca={'cqDrT':function(_0x223e34,_0x460120){return _0x223e34+_0x460120;},'NQbcn':function(_0x5f06b2,_0x9a6c9c){return _0x5f06b2<_0x9a6c9c;},'UDrwd':function(_0x520bb9,_0x3c1d94,_0x1b8efb){return _0x520bb9(_0x3c1d94,_0x1b8efb);},'jRqmn':function(_0x33cf41,_0x4e3550,_0x1ecf1e){return _0x33cf41(_0x4e3550,_0x1ecf1e);},'VakEu':function(_0x47fdbb,_0x3bb518){return _0x47fdbb+_0x3bb518;},'OXvAI':function(_0x37391b,_0x31433d){return _0x37391b+_0x31433d;},'BPNrj':function(_0x3afbd9,_0x3600f8,_0x6bf0b3){return _0x3afbd9(_0x3600f8,_0x6bf0b3);},'ZZWHY':function(_0x2e7044,_0x57181e){return _0x2e7044+_0x57181e;}};let _0x35f21c=_0x31fc3e;const _0x371c9a=Math['min'](_0x37593b[_0x568390(0x1e2)],_0x605ca['cqDrT'](_0x31fc3e,0x2710));while(_0x605ca[_0x568390(0x1e1)](_0x35f21c,_0x371c9a)){const [_0x1fd88a,_0x301cf9]=_0x605ca['UDrwd'](readId,_0x37593b,_0x35f21c),[_0x1bc0d0,_0x2cf799]=readVint(_0x37593b,_0x605ca[_0x568390(0x1e0)](_0x35f21c,_0x301cf9));if(_0x1fd88a===ID_INFO){let _0x49ba35=_0x605ca[_0x568390(0x1e0)](_0x35f21c,_0x301cf9)+_0x2cf799;const _0x29c17a=_0x49ba35+_0x1bc0d0;while(_0x49ba35<_0x29c17a){const [_0x435d5e,_0x514a2a]=_0x605ca['jRqmn'](readId,_0x37593b,_0x49ba35),[_0x10fdd7,_0x421a60]=_0x605ca[_0x568390(0x1f0)](readVint,_0x37593b,_0x605ca['cqDrT'](_0x49ba35,_0x514a2a));if(_0x435d5e===ID_TIMESTAMP_SCALE)return readUint(_0x37593b,_0x605ca[_0x568390(0x1e0)](_0x49ba35,_0x514a2a)+_0x421a60,_0x10fdd7);_0x49ba35+=_0x605ca['VakEu'](_0x605ca['OXvAI'](_0x514a2a,_0x421a60),_0x10fdd7);}break;}if(_0x1fd88a===ID_CLUSTER)break;if(_0x605ca[_0x568390(0x205)](isUnknownSize,_0x1bc0d0,_0x2cf799))break;_0x35f21c+=_0x605ca['ZZWHY'](_0x301cf9+_0x2cf799,_0x1bc0d0);}return 0xf4240;}function findFirstClusterOffset(_0x3a13b8,_0x570294){const _0x2ebf16=_0x11b5,_0x53aa76={'daQeJ':function(_0x5c7c0b,_0x383bd6){return _0x5c7c0b===_0x383bd6;}};let _0xb8a234=_0x570294;while(_0xb8a234<_0x3a13b8[_0x2ebf16(0x1e2)]){const [_0x28cc38,_0x1ee0bd]=readId(_0x3a13b8,_0xb8a234);if(_0x53aa76['daQeJ'](_0x28cc38,ID_CLUSTER))return _0xb8a234;const [_0x3e5782,_0x5988d9]=readVint(_0x3a13b8,_0xb8a234+_0x1ee0bd);if(isUnknownSize(_0x3e5782,_0x5988d9))return _0xb8a234;_0xb8a234+=_0x1ee0bd+_0x5988d9+_0x3e5782;}return _0x3a13b8['length'];}function findClusterEnd(_0x136353,_0x34d381,_0x2cd88c,_0x17ab19){const _0x4520ef=_0x11b5,_0x5b7da9={'olNST':function(_0x1d65e8,_0x42a76f,_0x234220){return _0x1d65e8(_0x42a76f,_0x234220);},'ccJHx':function(_0x5c2f6e,_0xd876ba){return _0x5c2f6e+_0xd876ba;},'Oubad':function(_0x341dd6,_0x2365f5){return _0x341dd6<_0x2365f5;}};if(!_0x5b7da9[_0x4520ef(0x1cb)](isUnknownSize,_0x2cd88c,_0x17ab19))return _0x5b7da9['ccJHx'](_0x34d381,_0x2cd88c);const _0x28ed7e=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x5db11d=_0x34d381;while(_0x5b7da9['Oubad'](_0x5db11d,_0x136353['length']-0x4)){const [_0x541c73,_0xa5014f]=_0x5b7da9['olNST'](readId,_0x136353,_0x5db11d);if(_0x28ed7e['has'](_0x541c73))return _0x5db11d;const [_0x3db689,_0x102dd7]=readVint(_0x136353,_0x5db11d+_0xa5014f);if(isUnknownSize(_0x3db689,_0x102dd7))return _0x136353[_0x4520ef(0x1e2)];_0x5db11d+=_0x5b7da9['ccJHx'](_0xa5014f,_0x102dd7)+_0x3db689;}return _0x136353[_0x4520ef(0x1e2)];}function _0x1c8a(){const _0x6877d8=['mXNKA','1874196bsDypw','WGQdc','cqDrT','NQbcn','length','qdrkd','wmZjy','max','1619840KkAaOk','2507877ULhwez','fFyWI','HzWgD','LIsKX','from','stitchWebmFiles.ts','log','958852imAgYY','toKFF','UDrwd','980676EVWMDo','slice','alloc','header','cPFHu','TgpxA','copy','jiZbJ','uXcHT','kTRHu','floor','Sesoz','sjxab','maxTicks','argv','ZAbjf','tSUzO','push','koNNx','maxTimestampTicks','BPNrj','endsWith','kwNaj','\x20files\x20->\x20','5daWOpu','60rCCiQA','olNST','EEqoH','3676400zYVKyT','bodyAfterTimestamp','LRVfu','932830DDIcbl','cQOLY','ScUJY','mQUwt','GMWNq','1Sayjkm','concat','QZaNu','error','pow','ffvpC','gpeFd','UuidE'];_0x1c8a=function(){return _0x6877d8;};return _0x1c8a();}function extractClusters(_0x20f1e2,_0x140095){const _0x20887c=_0x11b5,_0x52c96a={'LIsKX':function(_0x4d63ab,_0x435521){return _0x4d63ab<_0x435521;},'aaeRQ':function(_0x49f002,_0x30d74e,_0x455840){return _0x49f002(_0x30d74e,_0x455840);},'iqSPY':function(_0x574cfd,_0x40778f){return _0x574cfd+_0x40778f;},'kwNaj':function(_0x59bad7,_0x336096,_0x403fde){return _0x59bad7(_0x336096,_0x403fde);},'uXXCm':function(_0x446fa0,_0x2b0df3,_0xd06ebf,_0x5c8476,_0x44c2d5){return _0x446fa0(_0x2b0df3,_0xd06ebf,_0x5c8476,_0x44c2d5);},'hkFhf':function(_0x555746,_0x15ed03){return _0x555746===_0x15ed03;},'coQjL':function(_0x49114c,_0x32f616){return _0x49114c+_0x32f616;},'Sesoz':function(_0x1b2682,_0x4ac0de){return _0x1b2682+_0x4ac0de;},'ScUJY':function(_0x577524,_0xbd3c58){return _0x577524+_0xbd3c58;},'xXyxK':function(_0x28f5d5,_0x4eeeb3){return _0x28f5d5===_0x4eeeb3;},'QhlZc':function(_0x1d0890,_0x51e68a){return _0x1d0890<_0x51e68a;},'KntTX':function(_0x215353,_0x38ed51){return _0x215353>=_0x38ed51;},'RKYze':function(_0x490008,_0x29f78c){return _0x490008>_0x29f78c;},'sjxab':function(_0x1efa07,_0x4ad32d){return _0x1efa07+_0x4ad32d;}},_0x5a683=[],_0x13216d=Buffer[_0x20887c(0x1eb)]([0x1f,0x43,0xb6,0x75]);let _0x3a6ea5=0x0;while(_0x52c96a[_0x20887c(0x1ea)](_0x3a6ea5,_0x20f1e2['length'])){const _0x356039=_0x20f1e2['indexOf'](_0x13216d,_0x3a6ea5);if(_0x356039===-0x1)break;const [_0x38777b,_0x5ceb96]=_0x52c96a['aaeRQ'](readId,_0x20f1e2,_0x356039);if(_0x38777b!==ID_CLUSTER){_0x3a6ea5=_0x52c96a['iqSPY'](_0x356039,0x1);continue;}const [_0x870814,_0xb60d98]=_0x52c96a['kwNaj'](readVint,_0x20f1e2,_0x356039+_0x5ceb96),_0xb80015=_0x52c96a['iqSPY'](_0x356039+_0x5ceb96,_0xb60d98),_0x100baf=_0x52c96a['uXXCm'](findClusterEnd,_0x20f1e2,_0xb80015,_0x870814,_0xb60d98);let _0x30d5ca=_0xb80015,_0x52b08c=0x0,_0x46a541=0x2,_0x3247ab=![],_0x431eba=Buffer['alloc'](0x0),_0x2fcb71=Buffer['alloc'](0x0);while(_0x30d5ca<_0x100baf){const [_0x22fbb4,_0x2b3a02]=readId(_0x20f1e2,_0x30d5ca),[_0x327a97,_0x1a5d97]=readVint(_0x20f1e2,_0x30d5ca+_0x2b3a02);if(_0x52c96a['hkFhf'](_0x22fbb4,ID_TIMESTAMP)){_0x52b08c=readUint(_0x20f1e2,_0x52c96a['coQjL'](_0x30d5ca+_0x2b3a02,_0x1a5d97),_0x327a97),_0x46a541=_0x327a97,_0x3247ab=!![],_0x431eba=_0x20f1e2[_0x20887c(0x1f2)](_0xb80015,_0x30d5ca);const _0xafe90f=_0x52c96a[_0x20887c(0x1fc)](_0x52c96a[_0x20887c(0x1d2)](_0x30d5ca,_0x2b3a02),_0x1a5d97)+_0x327a97;_0x2fcb71=_0x20f1e2[_0x20887c(0x1f2)](_0xafe90f,_0x100baf);break;}if(_0x52c96a['xXyxK'](_0x22fbb4,ID_CLUSTER))break;if(isUnknownSize(_0x327a97,_0x1a5d97))break;_0x30d5ca+=_0x52c96a[_0x20887c(0x1d2)](_0x2b3a02,_0x1a5d97)+_0x327a97;}!_0x3247ab&&(_0x2fcb71=_0x20f1e2['slice'](_0xb80015,_0x100baf));let _0x4525ba=_0x52b08c;_0x30d5ca=_0xb80015;while(_0x52c96a['QhlZc'](_0x30d5ca,_0x100baf)){const [_0x207210,_0x3f97a9]=_0x52c96a[_0x20887c(0x207)](readId,_0x20f1e2,_0x30d5ca),[_0x6b7dbd,_0x4917fd]=_0x52c96a[_0x20887c(0x207)](readVint,_0x20f1e2,_0x52c96a['Sesoz'](_0x30d5ca,_0x3f97a9));if(_0x207210===ID_SIMPLE_BLOCK&&_0x52c96a['KntTX'](_0x6b7dbd,0x4)){const _0x78ce8c=_0x52c96a['Sesoz'](_0x30d5ca,_0x3f97a9)+_0x4917fd,[,_0x5cfa0e]=readVint(_0x20f1e2,_0x78ce8c),_0x23828f=_0x20f1e2['readInt16BE'](_0x78ce8c+_0x5cfa0e),_0x1edf8d=_0x52b08c+_0x23828f;if(_0x52c96a['RKYze'](_0x1edf8d,_0x4525ba))_0x4525ba=_0x1edf8d;}if(_0x207210===ID_CLUSTER)break;if(isUnknownSize(_0x6b7dbd,_0x4917fd))break;_0x30d5ca+=_0x52c96a[_0x20887c(0x1fd)](_0x3f97a9+_0x4917fd,_0x6b7dbd);}_0x5a683['push']({'timestamp':_0x52b08c,'maxTicks':_0x4525ba,'bodyBeforeTimestamp':_0x431eba,'bodyAfterTimestamp':_0x2fcb71,'timestampElementSize':_0x46a541}),_0x3a6ea5=_0x100baf;}return _0x5a683;}function parseWebm(_0x1d0326){const _0x3c245a=_0x11b5,_0x266a74={'QZaNu':function(_0x35330e,_0x328867){return _0x35330e+_0x328867;},'tSUzO':function(_0x19b768,_0x5f9235,_0x45e9ce){return _0x19b768(_0x5f9235,_0x45e9ce);},'rGDYR':function(_0x1e226d,_0x23b794){return _0x1e226d!==_0x23b794;},'fFyWI':function(_0x62e60c,_0x374090){return _0x62e60c+_0x374090;},'QrGOs':function(_0x1661b7,_0x5b2943){return _0x1661b7+_0x5b2943;},'rMtjg':function(_0x1a3379,_0x2dff1c){return _0x1a3379>_0x2dff1c;}};let _0x4477ac=0x0;const [,_0x18e8cf]=readId(_0x1d0326,_0x4477ac),[_0x2c474b,_0x46db10]=readVint(_0x1d0326,_0x266a74[_0x3c245a(0x1d7)](_0x4477ac,_0x18e8cf));_0x4477ac+=_0x266a74[_0x3c245a(0x1d7)](_0x18e8cf,_0x46db10)+_0x2c474b;const [_0x25dbc0,_0x503738]=_0x266a74[_0x3c245a(0x201)](readId,_0x1d0326,_0x4477ac);if(_0x266a74['rGDYR'](_0x25dbc0,ID_SEGMENT))return null;const [,_0x5f5d10]=readVint(_0x1d0326,_0x266a74[_0x3c245a(0x1e8)](_0x4477ac,_0x503738)),_0x4360e7=_0x266a74['QrGOs'](_0x4477ac,_0x503738)+_0x5f5d10,_0x27abc8=findTimestampScale(_0x1d0326,_0x4360e7),_0x1cb982=findFirstClusterOffset(_0x1d0326,_0x4360e7),_0x4875a4=_0x1d0326[_0x3c245a(0x1f2)](0x0,_0x1cb982),_0x2827fd=extractClusters(_0x1d0326,_0x27abc8);let _0x2b464f=0x0;for(const _0x1f663b of _0x2827fd){if(_0x266a74['rMtjg'](_0x1f663b[_0x3c245a(0x1fe)],_0x2b464f))_0x2b464f=_0x1f663b[_0x3c245a(0x1fe)];}return{'header':_0x4875a4,'clusters':_0x2827fd,'timestampScale':_0x27abc8,'maxTimestampTicks':_0x2b464f};}function buildCluster(_0x5899d2,_0x1d978c,_0x1d4d55){const _0xa91d2c=_0x11b5,_0x26f9d3=Buffer[_0xa91d2c(0x1eb)]([0x1f,0x43,0xb6,0x75]),_0x33ea8d=Math[_0xa91d2c(0x1e5)](0x4,uintSize(_0x5899d2)),_0x2d8d0b=Buffer[_0xa91d2c(0x1d6)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x33ea8d),writeUint(_0x5899d2,_0x33ea8d)]),_0x458194=Buffer['concat']([_0x1d978c,_0x2d8d0b,_0x1d4d55]),_0x6a954b=writeVint(_0x458194['length']);return Buffer[_0xa91d2c(0x1d6)]([_0x26f9d3,_0x6a954b,_0x458194]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1d386b){const _0x2262ac=_0x11b5,_0x1552cf={'epuqt':function(_0x36be8f,_0x32bb93,_0x306439){return _0x36be8f(_0x32bb93,_0x306439);},'ZiAuP':function(_0x4a0961,_0x2c6eff,_0x5980f1){return _0x4a0961(_0x2c6eff,_0x5980f1);},'gpeFd':function(_0x3eee20,_0x3eecb6){return _0x3eee20+_0x3eecb6;},'UuidE':function(_0x52caa6,_0x5cb8d6){return _0x52caa6+_0x5cb8d6;},'QVRBW':function(_0x6206f7,_0x213c0c,_0x276841){return _0x6206f7(_0x213c0c,_0x276841);},'hnemm':function(_0x49cd11,_0x78f83f){return _0x49cd11+_0x78f83f;},'cPFHu':function(_0x5abe5f,_0x9c46be){return _0x5abe5f===_0x9c46be;},'mXNKA':function(_0x505362,_0x34bf27){return _0x505362+_0x34bf27;},'tcoky':function(_0x146dbf,_0x10640f){return _0x146dbf<_0x10640f;},'wmZjy':function(_0x11d4a6,_0x3b8d18,_0x51315a){return _0x11d4a6(_0x3b8d18,_0x51315a);},'hkAiE':function(_0x98cb8,_0x34c4e5,_0x5a45cb){return _0x98cb8(_0x34c4e5,_0x5a45cb);},'uXcHT':function(_0x55d876,_0x206f8d){return _0x55d876+_0x206f8d;},'aXwQf':function(_0x480e28,_0xa4da57){return _0x480e28!==_0xa4da57;},'ORMpc':function(_0x4f59c4,_0x1869e6){return _0x4f59c4+_0x1869e6;},'IBiag':function(_0x308f1f,_0xc68cba,_0x54ffb2){return _0x308f1f(_0xc68cba,_0x54ffb2);},'pZsul':function(_0x10d11,_0x5266ae){return _0x10d11+_0x5266ae;}},_0x45319d=Buffer['from'](_0x1d386b);let _0x576780=0x0;const [,_0x3cd361]=_0x1552cf['epuqt'](readId,_0x45319d,_0x576780),[_0x50b9d9,_0x354e0c]=_0x1552cf['ZiAuP'](readVint,_0x45319d,_0x1552cf['gpeFd'](_0x576780,_0x3cd361)),_0x38c8e5=_0x1552cf[_0x2262ac(0x1db)](_0x1552cf[_0x2262ac(0x1db)](_0x1552cf[_0x2262ac(0x1dc)](_0x576780,_0x3cd361),_0x354e0c),_0x50b9d9),[,_0x4f2839]=_0x1552cf['epuqt'](readId,_0x45319d,_0x38c8e5),[,_0x9c3499]=readVint(_0x45319d,_0x38c8e5+_0x4f2839),_0x20e1d4=_0x38c8e5+_0x4f2839+_0x9c3499,_0x17b6ad=writeUnknownSizeVint(_0x9c3499);_0x17b6ad[_0x2262ac(0x1f7)](_0x45319d,_0x1552cf['UuidE'](_0x38c8e5,_0x4f2839));let _0x4d60a1=_0x20e1d4;const _0x4903e6=Math['min'](_0x45319d['length'],_0x20e1d4+0x2710);while(_0x4d60a1<_0x4903e6){const [_0x5373db,_0x2156e7]=readId(_0x45319d,_0x4d60a1),[_0x9b6b2,_0x2b371e]=_0x1552cf['QVRBW'](readVint,_0x45319d,_0x1552cf['hnemm'](_0x4d60a1,_0x2156e7));if(_0x1552cf[_0x2262ac(0x1f5)](_0x5373db,ID_CLUSTER))break;if(_0x1552cf['ZiAuP'](isUnknownSize,_0x9b6b2,_0x2b371e))break;if(_0x1552cf[_0x2262ac(0x1f5)](_0x5373db,ID_INFO)){const _0x47ac79=_0x1552cf[_0x2262ac(0x1dd)](_0x4d60a1,_0x2156e7)+_0x2b371e,_0x6fc2a2=_0x47ac79+_0x9b6b2,_0x2dbee2=[];let _0x3ff073=_0x47ac79;while(_0x1552cf['tcoky'](_0x3ff073,_0x6fc2a2)){const [_0xe889af,_0x2cab91]=_0x1552cf[_0x2262ac(0x1e4)](readId,_0x45319d,_0x3ff073),[_0x1afba4,_0x1b20eb]=_0x1552cf['hkAiE'](readVint,_0x45319d,_0x1552cf['UuidE'](_0x3ff073,_0x2cab91)),_0x3773a7=_0x1552cf[_0x2262ac(0x1f9)](_0x2cab91,_0x1b20eb)+_0x1afba4;_0x1552cf['aXwQf'](_0xe889af,ID_DURATION)&&_0x2dbee2[_0x2262ac(0x202)](_0x45319d['slice'](_0x3ff073,_0x3ff073+_0x3773a7)),_0x3ff073+=_0x3773a7;}const _0x3a0105=Buffer[_0x2262ac(0x1d6)](_0x2dbee2),_0x2da489=Buffer[_0x2262ac(0x1d6)]([_0x45319d[_0x2262ac(0x1f2)](_0x4d60a1,_0x1552cf['ORMpc'](_0x4d60a1,_0x2156e7)),_0x1552cf['IBiag'](writeVint,_0x3a0105['length'],_0x2b371e)]);return Buffer[_0x2262ac(0x1d6)]([_0x45319d['slice'](0x0,_0x4d60a1),_0x2da489,_0x3a0105,_0x45319d[_0x2262ac(0x1f2)](_0x6fc2a2)]);}_0x4d60a1+=_0x1552cf['pZsul'](_0x2156e7+_0x2b371e,_0x9b6b2);}return _0x45319d;}export function stitchWebmFiles(_0x5aaa2d,_0x242883){const _0x14722c=_0x11b5,_0x5cde83={'toKFF':function(_0x2a82f6,_0x405da7){return _0x2a82f6(_0x405da7);},'sYIxu':function(_0x4b116c,_0x51cfbe){return _0x4b116c<_0x51cfbe;},'ZAbjf':function(_0x34c055,_0x26c97a,_0x2880e5,_0x32fdcf){return _0x34c055(_0x26c97a,_0x2880e5,_0x32fdcf);},'TDcpg':function(_0x1035eb,_0x402910){return _0x1035eb+_0x402910;},'HzWgD':function(_0x455475,_0x407775,_0x1b120b){return _0x455475(_0x407775,_0x1b120b);}};if(_0x5aaa2d['length']<=0x1)return![];const _0x48d43d=[];for(const _0x1a535a of _0x5aaa2d){const _0x1ae474=readFileSync(_0x1a535a),_0x662427=parseWebm(_0x1ae474);if(!_0x662427||_0x662427['clusters']['length']===0x0)return![];_0x48d43d['push'](_0x662427);}const _0x131a34=_0x48d43d[0x0],_0x5a66f3=_0x5cde83[_0x14722c(0x1ef)](rebuildHeaderWithoutDuration,_0x131a34[_0x14722c(0x1f4)]),_0x47310e=[_0x5a66f3];let _0x1eeb69=0x0;for(let _0x4fb6f8=0x0;_0x5cde83['sYIxu'](_0x4fb6f8,_0x48d43d[_0x14722c(0x1e2)]);_0x4fb6f8++){const _0x3f7154=_0x48d43d[_0x4fb6f8];for(const _0x33da77 of _0x3f7154['clusters']){const _0x79d8b6=_0x33da77['timestamp']+_0x1eeb69;_0x47310e[_0x14722c(0x202)](_0x5cde83[_0x14722c(0x200)](buildCluster,_0x79d8b6,_0x33da77['bodyBeforeTimestamp'],_0x33da77[_0x14722c(0x1ce)]));}const _0xdf467f=0x1e;_0x1eeb69+=_0x5cde83['TDcpg'](_0x3f7154[_0x14722c(0x204)],_0xdf467f);}return _0x5cde83[_0x14722c(0x1e9)](writeFileSync,_0x242883,Buffer[_0x14722c(0x1d6)](_0x47310e)),!![];}if(process['argv'][0x1]?.[_0x458c6a(0x206)](_0x458c6a(0x1ec))||process[_0x458c6a(0x1ff)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0x458c6a(0x1f2)](0x2);args['length']<0x3&&(console[_0x458c6a(0x1d8)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x458c6a(0x1f2)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x458c6a(0x1ed)]('Stitched\x20'+inputs['length']+_0x458c6a(0x208)+output):console[_0x458c6a(0x1ed)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x1ea88d=_0x3fe3;(function(_0xf5b64b,_0x4e5bd7){const _0x3f5ab4=_0x3fe3,_0x13d4b1=_0xf5b64b();while(!![]){try{const _0x55d2be=-parseInt(_0x3f5ab4(0x1d1))/0x1*(-parseInt(_0x3f5ab4(0x1c5))/0x2)+-parseInt(_0x3f5ab4(0x18c))/0x3*(-parseInt(_0x3f5ab4(0x1b0))/0x4)+-parseInt(_0x3f5ab4(0x1d5))/0x5+parseInt(_0x3f5ab4(0x1ac))/0x6+parseInt(_0x3f5ab4(0x1ca))/0x7*(-parseInt(_0x3f5ab4(0x1c1))/0x8)+parseInt(_0x3f5ab4(0x1af))/0x9+parseInt(_0x3f5ab4(0x1a8))/0xa*(-parseInt(_0x3f5ab4(0x1bc))/0xb);if(_0x55d2be===_0x4e5bd7)break;else _0x13d4b1['push'](_0x13d4b1['shift']());}catch(_0x55f601){_0x13d4b1['push'](_0x13d4b1['shift']());}}}(_0x4cd8,0x19f7f));import{readFileSync,writeFileSync}from'fs';function _0x4cd8(){const _0x5994d5=['71ZCagJR','IRyAF','UEgiN','prmHr','1040050WdVYMM','poMgF','max','SkdIS','exit','6qXUxeD','concat','lnsZz','BRxEA','EUasZ','lkUzC','khWig','header','GjVSH','ppQCM','push','FbKaQ','maxTicks','NRFZI','AkokA','BRJUc','from','GKpKY','JWOXW','iIHKa','clusters','stitchWebmFiles.ts','NRxcg','alloc','jbyhd','irSGC','error','maxTimestampTicks','1907090UBfluF','MrTFs','MLEWq','Taxgc','1245834MeLwai','GyKmB','floor','1273860ChLMCP','151876QsgPvS','pTeyO','fDOjV','xTCBs','rARdL','timestamp','iJvvQ','length','HkJLZ','kUCQp','DpDNo','bodyBeforeTimestamp','11MTRwGZ','pow','zrwpH','AyMMt','XHiAf','16ErCtOb','readInt16BE','iSBKc','hqFHM','5246FEpCBq','slice','OdRkk','HljLQ','has','371924YBSfff','argv','hsVQs','RfiGi','WXsHG','WppSf','JjAqc'];_0x4cd8=function(){return _0x5994d5;};return _0x4cd8();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x2c60e0,_0x43ee38){const _0x2d8abd=_0x3fe3,_0x444c6d={'DpDNo':function(_0x12d557,_0x166235){return _0x12d557>=_0x166235;},'MrTFs':function(_0x32cf93,_0x5c9792){return _0x32cf93<=_0x5c9792;},'qLClr':function(_0x9d7522,_0x19295e){return _0x9d7522&_0x19295e;},'pTeyO':function(_0x324ae5,_0x1d0dc3){return _0x324ae5&_0x1d0dc3;},'WXsHG':function(_0x1ee51f,_0x5d5116){return _0x1ee51f-_0x5d5116;},'mMtAl':function(_0x127627,_0x45c5f1){return _0x127627+_0x45c5f1;}};if(_0x444c6d[_0x2d8abd(0x1ba)](_0x43ee38,_0x2c60e0['length']))return[0x0,0x0];const _0x92b076=_0x2c60e0[_0x43ee38];let _0xac2ca3=0x1,_0x2f6a2e=0x80;while(_0x444c6d[_0x2d8abd(0x1a9)](_0xac2ca3,0x8)&&!_0x444c6d['qLClr'](_0x92b076,_0x2f6a2e)){_0xac2ca3++,_0x2f6a2e>>=0x1;}if(_0x43ee38+_0xac2ca3>_0x2c60e0[_0x2d8abd(0x1b7)])return[0x0,0x0];let _0x8d4044=_0x444c6d[_0x2d8abd(0x1b1)](_0x92b076,_0x444c6d[_0x2d8abd(0x1ce)](_0x2f6a2e,0x1));for(let _0x224745=0x1;_0x224745<_0xac2ca3;_0x224745++){_0x8d4044=_0x444c6d['mMtAl'](_0x8d4044*0x100,_0x2c60e0[_0x43ee38+_0x224745]);}return[_0x8d4044,_0xac2ca3];}function readId(_0x4d2801,_0x44a387){const _0x248658=_0x3fe3,_0x5c7f25={'jbyhd':function(_0x270bbf,_0x46ca7f){return _0x270bbf>=_0x46ca7f;},'iVvmv':function(_0x42265f,_0x311f9e){return _0x42265f>=_0x311f9e;},'RWzZa':function(_0x2fa0a5,_0x38e730){return _0x2fa0a5+_0x38e730;},'ppQCM':function(_0x3bbdc6,_0x2d69fa){return _0x3bbdc6+_0x2d69fa;}};if(_0x44a387>=_0x4d2801[_0x248658(0x1b7)])return[0x0,0x0];const _0x295a61=_0x4d2801[_0x44a387];let _0x9cc31f;if(_0x5c7f25[_0x248658(0x1a4)](_0x295a61,0x80))_0x9cc31f=0x1;else{if(_0x295a61>=0x40)_0x9cc31f=0x2;else{if(_0x295a61>=0x20)_0x9cc31f=0x3;else{if(_0x5c7f25['iVvmv'](_0x295a61,0x10))_0x9cc31f=0x4;else return[_0x295a61,0x1];}}}if(_0x5c7f25['RWzZa'](_0x44a387,_0x9cc31f)>_0x4d2801['length'])return[0x0,0x0];let _0x494b11=0x0;for(let _0x3ca070=0x0;_0x3ca070<_0x9cc31f;_0x3ca070++){_0x494b11=_0x5c7f25[_0x248658(0x195)](_0x494b11*0x100,_0x4d2801[_0x44a387+_0x3ca070]);}return[_0x494b11,_0x9cc31f];}function readUint(_0x4c3d85,_0x495054,_0x293f2f){const _0x2bcf33=_0x3fe3,_0xd97497={'Taxgc':function(_0x424ac1,_0x4d22e4){return _0x424ac1<_0x4d22e4;},'mderM':function(_0x2dd2f7,_0x4ead2b){return _0x2dd2f7+_0x4ead2b;}};let _0x20791e=0x0;for(let _0x470451=0x0;_0xd97497[_0x2bcf33(0x1ab)](_0x470451,_0x293f2f);_0x470451++){_0x20791e=_0x20791e*0x100+_0x4c3d85[_0xd97497['mderM'](_0x495054,_0x470451)];}return _0x20791e;}function isUnknownSize(_0x50e523,_0x495ef5){const _0x14dfb0=_0x3fe3,_0x1372cf={'BRJUc':function(_0x307bf3,_0x335a31){return _0x307bf3===_0x335a31;},'QGpIB':function(_0xc6945,_0x1fb79e){return _0xc6945-_0x1fb79e;},'EUasZ':function(_0x4209ae,_0x5bb73d){return _0x4209ae*_0x5bb73d;}};return _0x1372cf[_0x14dfb0(0x19b)](_0x50e523,_0x1372cf['QGpIB'](Math['pow'](0x2,_0x1372cf[_0x14dfb0(0x190)](0x7,_0x495ef5)),0x1));}function writeVint(_0x1dd9fb,_0x4278b3){const _0x16fd3=_0x3fe3,_0x1e7274={'VFthF':function(_0x4d70f1,_0x8b3faf){return _0x4d70f1||_0x8b3faf;},'RfiGi':function(_0x17b9b2,_0x259c04){return _0x17b9b2*_0x259c04;},'MsUox':function(_0x1f7ee8,_0x10b097){return _0x1f7ee8-_0x10b097;},'FiSEX':function(_0x1a2878,_0x4d00bb){return _0x1a2878>=_0x4d00bb;}};let _0x3a3738=_0x1e7274['VFthF'](_0x4278b3,0x1);while(Math[_0x16fd3(0x1bd)](0x2,_0x1e7274[_0x16fd3(0x1cd)](0x7,_0x3a3738))-0x2<_0x1dd9fb)_0x3a3738++;const _0x473bb4=Buffer[_0x16fd3(0x1a3)](_0x3a3738);for(let _0x353303=_0x1e7274['MsUox'](_0x3a3738,0x1);_0x1e7274['FiSEX'](_0x353303,0x0);_0x353303--){_0x473bb4[_0x353303]=_0x1dd9fb&0xff,_0x1dd9fb=Math['floor'](_0x1dd9fb/0x100);}return _0x473bb4[0x0]|=0x1<<0x8-_0x3a3738,_0x473bb4;}function writeUint(_0x178fc0,_0x23b385){const _0xb8c386=_0x3fe3,_0x5bcd96={'aNFlo':function(_0x3c85e1,_0x3f5d4c){return _0x3c85e1>=_0x3f5d4c;},'QpHkN':function(_0x15f4dd,_0xb7f5d7){return _0x15f4dd/_0xb7f5d7;}},_0x31cc42=Buffer['alloc'](_0x23b385);for(let _0x205479=_0x23b385-0x1;_0x5bcd96['aNFlo'](_0x205479,0x0);_0x205479--){_0x31cc42[_0x205479]=_0x178fc0&0xff,_0x178fc0=Math[_0xb8c386(0x1ae)](_0x5bcd96['QpHkN'](_0x178fc0,0x100));}return _0x31cc42;}function writeUnknownSizeVint(_0x227bc2){const _0x495514=Buffer['alloc'](_0x227bc2,0xff);return _0x495514[0x0]=0xff>>_0x227bc2-0x1,_0x495514;}function uintSize(_0x112a0c){const _0x37a1fe={'TVTne':function(_0x35fa4a,_0x55671b){return _0x35fa4a===_0x55671b;},'tbFlw':function(_0x184842,_0x8960b0){return _0x184842>_0x8960b0;},'ORXBH':function(_0x53c183,_0x107b27){return _0x53c183/_0x107b27;}};if(_0x37a1fe['TVTne'](_0x112a0c,0x0))return 0x1;let _0x473dec=0x0,_0x3113e5=_0x112a0c;while(_0x37a1fe['tbFlw'](_0x3113e5,0x0)){_0x473dec++,_0x3113e5=Math['floor'](_0x37a1fe['ORXBH'](_0x3113e5,0x100));}return _0x473dec;}function findTimestampScale(_0x27462d,_0x304afb){const _0x16260b=_0x3fe3,_0x18d87a={'OdRkk':function(_0x3db051,_0x58c364){return _0x3db051+_0x58c364;},'JWOXW':function(_0x233c57,_0x2f6c92,_0xa4dfd1){return _0x233c57(_0x2f6c92,_0xa4dfd1);},'HljLQ':function(_0x10adff,_0x58c49c){return _0x10adff+_0x58c49c;},'cEZeJ':function(_0x13fd50,_0xabebe7){return _0x13fd50===_0xabebe7;},'GKpKY':function(_0x426184,_0x3cb6ff){return _0x426184+_0x3cb6ff;},'poMgF':function(_0x2faa55,_0x2c3a8a,_0x5c0db9){return _0x2faa55(_0x2c3a8a,_0x5c0db9);},'Ihkap':function(_0x22dc1e,_0x3cca58){return _0x22dc1e===_0x3cca58;},'kUCQp':function(_0x1ee2fc,_0x34bdf3){return _0x1ee2fc+_0x34bdf3;},'zrwpH':function(_0x2ea3f3,_0x31b755,_0x423717){return _0x2ea3f3(_0x31b755,_0x423717);},'TguAE':function(_0x239d0f,_0x48dd86){return _0x239d0f+_0x48dd86;},'fvjWk':function(_0x3588e5,_0x547b8e){return _0x3588e5+_0x547b8e;}};let _0x46a76a=_0x304afb;const _0x30275c=Math['min'](_0x27462d[_0x16260b(0x1b7)],_0x18d87a[_0x16260b(0x1c7)](_0x304afb,0x2710));while(_0x46a76a<_0x30275c){const [_0x5e0169,_0x56b8c6]=_0x18d87a[_0x16260b(0x19e)](readId,_0x27462d,_0x46a76a),[_0x464e19,_0x3e50e6]=_0x18d87a[_0x16260b(0x19e)](readVint,_0x27462d,_0x18d87a[_0x16260b(0x1c8)](_0x46a76a,_0x56b8c6));if(_0x18d87a['cEZeJ'](_0x5e0169,ID_INFO)){let _0x13c6e2=_0x18d87a['OdRkk'](_0x18d87a['GKpKY'](_0x46a76a,_0x56b8c6),_0x3e50e6);const _0x57abfe=_0x18d87a['HljLQ'](_0x13c6e2,_0x464e19);while(_0x13c6e2<_0x57abfe){const [_0x46e5a7,_0x3e7435]=_0x18d87a[_0x16260b(0x1d6)](readId,_0x27462d,_0x13c6e2),[_0x5532c3,_0x423499]=_0x18d87a[_0x16260b(0x19e)](readVint,_0x27462d,_0x13c6e2+_0x3e7435);if(_0x18d87a['Ihkap'](_0x46e5a7,ID_TIMESTAMP_SCALE))return readUint(_0x27462d,_0x18d87a[_0x16260b(0x19d)](_0x18d87a[_0x16260b(0x1c8)](_0x13c6e2,_0x3e7435),_0x423499),_0x5532c3);_0x13c6e2+=_0x18d87a[_0x16260b(0x1b9)](_0x18d87a[_0x16260b(0x1c8)](_0x3e7435,_0x423499),_0x5532c3);}break;}if(_0x5e0169===ID_CLUSTER)break;if(_0x18d87a[_0x16260b(0x1be)](isUnknownSize,_0x464e19,_0x3e50e6))break;_0x46a76a+=_0x18d87a['TguAE'](_0x18d87a['fvjWk'](_0x56b8c6,_0x3e50e6),_0x464e19);}return 0xf4240;}function findFirstClusterOffset(_0x11381d,_0x3c15e6){const _0x571223=_0x3fe3,_0x1b8cc2={'rARdL':function(_0x355839,_0x28a1b5){return _0x355839<_0x28a1b5;},'BRgGa':function(_0x15f9c1,_0x40f7b1,_0x534570){return _0x15f9c1(_0x40f7b1,_0x534570);},'tVhLf':function(_0x804479,_0x28855a){return _0x804479===_0x28855a;},'JSweB':function(_0x31d9a3,_0x3f0855){return _0x31d9a3+_0x3f0855;},'dIBFm':function(_0x5249c2,_0xae2d73){return _0x5249c2+_0xae2d73;}};let _0x2e5184=_0x3c15e6;while(_0x1b8cc2[_0x571223(0x1b4)](_0x2e5184,_0x11381d['length'])){const [_0x165df3,_0x5d481c]=_0x1b8cc2['BRgGa'](readId,_0x11381d,_0x2e5184);if(_0x1b8cc2['tVhLf'](_0x165df3,ID_CLUSTER))return _0x2e5184;const [_0xf564b4,_0xae7f3f]=_0x1b8cc2['BRgGa'](readVint,_0x11381d,_0x1b8cc2['JSweB'](_0x2e5184,_0x5d481c));if(isUnknownSize(_0xf564b4,_0xae7f3f))return _0x2e5184;_0x2e5184+=_0x1b8cc2['dIBFm'](_0x5d481c+_0xae7f3f,_0xf564b4);}return _0x11381d[_0x571223(0x1b7)];}function findClusterEnd(_0x4f237e,_0x131816,_0xbd114d,_0x15bb66){const _0x23c649=_0x3fe3,_0x59e61f={'ynfNL':function(_0x1bb788,_0x963986){return _0x1bb788+_0x963986;},'UXBNo':function(_0x175a6e,_0x2396fa){return _0x175a6e-_0x2396fa;},'rylHA':function(_0x4ef0d2,_0x7ce84f,_0x3fdd43){return _0x4ef0d2(_0x7ce84f,_0x3fdd43);}};if(!isUnknownSize(_0xbd114d,_0x15bb66))return _0x59e61f['ynfNL'](_0x131816,_0xbd114d);const _0xcefbdc=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4136f4=_0x131816;while(_0x4136f4<_0x59e61f['UXBNo'](_0x4f237e['length'],0x4)){const [_0x4719f7,_0x31fb06]=readId(_0x4f237e,_0x4136f4);if(_0xcefbdc[_0x23c649(0x1c9)](_0x4719f7))return _0x4136f4;const [_0x107b07,_0x5c45f9]=readVint(_0x4f237e,_0x4136f4+_0x31fb06);if(_0x59e61f['rylHA'](isUnknownSize,_0x107b07,_0x5c45f9))return _0x4f237e[_0x23c649(0x1b7)];_0x4136f4+=_0x59e61f['ynfNL'](_0x31fb06,_0x5c45f9)+_0x107b07;}return _0x4f237e['length'];}function extractClusters(_0x5a4e3e,_0x57df87){const _0x4778b0=_0x3fe3,_0x50528b={'iIHKa':function(_0xe69a33,_0x4551b1){return _0xe69a33+_0x4551b1;},'FbKaQ':function(_0x48c90c,_0x260dc6,_0x747980){return _0x48c90c(_0x260dc6,_0x747980);},'UEgiN':function(_0x3a4045,_0x5dd48c,_0x19c85e){return _0x3a4045(_0x5dd48c,_0x19c85e);},'AkokA':function(_0x9e8ff2,_0x4ffc03,_0x37c8dc,_0x3ed32c){return _0x9e8ff2(_0x4ffc03,_0x37c8dc,_0x3ed32c);},'NRxcg':function(_0x244bf1,_0x580f48){return _0x244bf1+_0x580f48;},'tfRMX':function(_0x4269b1,_0x8dd15f){return _0x4269b1+_0x8dd15f;},'IRyAF':function(_0x4363f4,_0x5ebbd1){return _0x4363f4+_0x5ebbd1;},'TKCyl':function(_0x322f12,_0x5cabc0){return _0x322f12+_0x5cabc0;},'lkUzC':function(_0x973352,_0x3d830e,_0x46a574){return _0x973352(_0x3d830e,_0x46a574);},'JsdfW':function(_0x48e6a5,_0x1c4d97){return _0x48e6a5+_0x1c4d97;},'lnsZz':function(_0x1f43ff,_0x181449){return _0x1f43ff===_0x181449;},'NRFZI':function(_0x492d52,_0x7f0145){return _0x492d52>=_0x7f0145;},'HkJLZ':function(_0x351654,_0x38252e){return _0x351654+_0x38252e;},'iJvvQ':function(_0x3a2eec,_0x370551){return _0x3a2eec+_0x370551;},'khWig':function(_0x9c8e39,_0x4e5885){return _0x9c8e39>_0x4e5885;},'UFINQ':function(_0x27004f,_0x3df6d8){return _0x27004f===_0x3df6d8;},'zBlct':function(_0x52b44c,_0x4cd3ab){return _0x52b44c+_0x4cd3ab;}},_0x1de0ab=[],_0x3233a0=Buffer[_0x4778b0(0x19c)]([0x1f,0x43,0xb6,0x75]);let _0x440ad7=0x0;while(_0x440ad7<_0x5a4e3e[_0x4778b0(0x1b7)]){const _0x400afd=_0x5a4e3e['indexOf'](_0x3233a0,_0x440ad7);if(_0x400afd===-0x1)break;const [_0x4831b7,_0x2b1851]=readId(_0x5a4e3e,_0x400afd);if(_0x4831b7!==ID_CLUSTER){_0x440ad7=_0x50528b['iIHKa'](_0x400afd,0x1);continue;}const [_0x59e8f6,_0x1508d3]=_0x50528b[_0x4778b0(0x197)](readVint,_0x5a4e3e,_0x400afd+_0x2b1851),_0x133234=_0x50528b[_0x4778b0(0x19f)](_0x400afd,_0x2b1851)+_0x1508d3,_0x135d58=findClusterEnd(_0x5a4e3e,_0x133234,_0x59e8f6,_0x1508d3);let _0x45f368=_0x133234,_0x4d039b=0x0,_0x4f7698=0x2,_0x464d43=![],_0x4eee36=Buffer[_0x4778b0(0x1a3)](0x0),_0x5f3952=Buffer[_0x4778b0(0x1a3)](0x0);while(_0x45f368<_0x135d58){const [_0x4fc9c1,_0x578d92]=_0x50528b[_0x4778b0(0x1d3)](readId,_0x5a4e3e,_0x45f368),[_0x4f785f,_0x211b94]=readVint(_0x5a4e3e,_0x45f368+_0x578d92);if(_0x4fc9c1===ID_TIMESTAMP){_0x4d039b=_0x50528b[_0x4778b0(0x19a)](readUint,_0x5a4e3e,_0x50528b['iIHKa'](_0x45f368+_0x578d92,_0x211b94),_0x4f785f),_0x4f7698=_0x4f785f,_0x464d43=!![],_0x4eee36=_0x5a4e3e[_0x4778b0(0x1c6)](_0x133234,_0x45f368);const _0x3e901a=_0x50528b[_0x4778b0(0x1a2)](_0x50528b['tfRMX'](_0x50528b[_0x4778b0(0x1d2)](_0x45f368,_0x578d92),_0x211b94),_0x4f785f);_0x5f3952=_0x5a4e3e[_0x4778b0(0x1c6)](_0x3e901a,_0x135d58);break;}if(_0x4fc9c1===ID_CLUSTER)break;if(isUnknownSize(_0x4f785f,_0x211b94))break;_0x45f368+=_0x50528b['tfRMX'](_0x50528b['TKCyl'](_0x578d92,_0x211b94),_0x4f785f);}!_0x464d43&&(_0x5f3952=_0x5a4e3e[_0x4778b0(0x1c6)](_0x133234,_0x135d58));let _0x3128dd=_0x4d039b;_0x45f368=_0x133234;while(_0x45f368<_0x135d58){const [_0x5c58a3,_0x4f6cf1]=readId(_0x5a4e3e,_0x45f368),[_0xf49a28,_0x10d182]=_0x50528b[_0x4778b0(0x191)](readVint,_0x5a4e3e,_0x50528b['JsdfW'](_0x45f368,_0x4f6cf1));if(_0x50528b[_0x4778b0(0x18e)](_0x5c58a3,ID_SIMPLE_BLOCK)&&_0x50528b[_0x4778b0(0x199)](_0xf49a28,0x4)){const _0xeb97f2=_0x50528b[_0x4778b0(0x1b8)](_0x50528b[_0x4778b0(0x1b6)](_0x45f368,_0x4f6cf1),_0x10d182),[,_0x832132]=readVint(_0x5a4e3e,_0xeb97f2),_0x1951dc=_0x5a4e3e[_0x4778b0(0x1c2)](_0xeb97f2+_0x832132),_0x586034=_0x50528b['iIHKa'](_0x4d039b,_0x1951dc);if(_0x50528b[_0x4778b0(0x192)](_0x586034,_0x3128dd))_0x3128dd=_0x586034;}if(_0x50528b['UFINQ'](_0x5c58a3,ID_CLUSTER))break;if(isUnknownSize(_0xf49a28,_0x10d182))break;_0x45f368+=_0x50528b['zBlct'](_0x4f6cf1,_0x10d182)+_0xf49a28;}_0x1de0ab['push']({'timestamp':_0x4d039b,'maxTicks':_0x3128dd,'bodyBeforeTimestamp':_0x4eee36,'bodyAfterTimestamp':_0x5f3952,'timestampElementSize':_0x4f7698}),_0x440ad7=_0x135d58;}return _0x1de0ab;}function parseWebm(_0x4005a8){const _0xdf0937=_0x3fe3,_0xe1b69c={'XHiAf':function(_0x1185ae,_0x36b701,_0x1e6da5){return _0x1185ae(_0x36b701,_0x1e6da5);},'iSBKc':function(_0x55cf57,_0xc86165){return _0x55cf57+_0xc86165;},'GyKmB':function(_0x11b303,_0x4b37a4,_0x2bf659){return _0x11b303(_0x4b37a4,_0x2bf659);},'xTCBs':function(_0x563d95,_0x129ca1,_0x20829e){return _0x563d95(_0x129ca1,_0x20829e);}};let _0x32bb25=0x0;const [,_0x4264d9]=_0xe1b69c[_0xdf0937(0x1c0)](readId,_0x4005a8,_0x32bb25),[_0x5e1e2b,_0x42a6ea]=_0xe1b69c['XHiAf'](readVint,_0x4005a8,_0x32bb25+_0x4264d9);_0x32bb25+=_0x4264d9+_0x42a6ea+_0x5e1e2b;const [_0x5af04e,_0x45b239]=_0xe1b69c['XHiAf'](readId,_0x4005a8,_0x32bb25);if(_0x5af04e!==ID_SEGMENT)return null;const [,_0x372497]=readVint(_0x4005a8,_0xe1b69c[_0xdf0937(0x1c3)](_0x32bb25,_0x45b239)),_0x3b1a03=_0xe1b69c[_0xdf0937(0x1c3)](_0x32bb25+_0x45b239,_0x372497),_0x51b251=findTimestampScale(_0x4005a8,_0x3b1a03),_0x38c076=_0xe1b69c[_0xdf0937(0x1ad)](findFirstClusterOffset,_0x4005a8,_0x3b1a03),_0x3b9c62=_0x4005a8['slice'](0x0,_0x38c076),_0xb859d4=_0xe1b69c[_0xdf0937(0x1b3)](extractClusters,_0x4005a8,_0x51b251);let _0x1c4e95=0x0;for(const _0x43041b of _0xb859d4){if(_0x43041b['maxTicks']>_0x1c4e95)_0x1c4e95=_0x43041b[_0xdf0937(0x198)];}return{'header':_0x3b9c62,'clusters':_0xb859d4,'timestampScale':_0x51b251,'maxTimestampTicks':_0x1c4e95};}function buildCluster(_0x1ede0f,_0x5b172c,_0x125075){const _0x45d350=_0x3fe3,_0x3596e9={'vLMZV':function(_0x5a8f22,_0x37d2fb){return _0x5a8f22(_0x37d2fb);},'hsVQs':function(_0x5d9ef5,_0x4a8a18,_0x5641a5){return _0x5d9ef5(_0x4a8a18,_0x5641a5);}},_0x5a4a2f=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4eb7b7=Math[_0x45d350(0x1d7)](0x4,_0x3596e9['vLMZV'](uintSize,_0x1ede0f)),_0x1b8bb5=Buffer['concat']([Buffer[_0x45d350(0x19c)]([ID_TIMESTAMP]),writeVint(_0x4eb7b7),_0x3596e9[_0x45d350(0x1cc)](writeUint,_0x1ede0f,_0x4eb7b7)]),_0x18d19d=Buffer['concat']([_0x5b172c,_0x1b8bb5,_0x125075]),_0x2c6803=writeVint(_0x18d19d[_0x45d350(0x1b7)]);return Buffer['concat']([_0x5a4a2f,_0x2c6803,_0x18d19d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2f6f80){const _0x4bcde4=_0x3fe3,_0x3b437f={'hqFHM':function(_0x462b50,_0x546ed4,_0x52984f){return _0x462b50(_0x546ed4,_0x52984f);},'GjVSH':function(_0x2fc66b,_0x3b7ced){return _0x2fc66b+_0x3b7ced;},'irSGC':function(_0x585e30,_0x590ad6){return _0x585e30+_0x590ad6;},'MLEWq':function(_0x2fe131,_0x365c23){return _0x2fe131(_0x365c23);},'CmnqH':function(_0x524171,_0x3593f){return _0x524171+_0x3593f;},'AyMMt':function(_0x79cea,_0x529af9){return _0x79cea===_0x529af9;},'iJRUG':function(_0x31619f,_0x356e40){return _0x31619f+_0x356e40;},'SkdIS':function(_0x187a74,_0x3f907e,_0x5ae840){return _0x187a74(_0x3f907e,_0x5ae840);},'JjAqc':function(_0x8c3e94,_0x24d1ca,_0x433554){return _0x8c3e94(_0x24d1ca,_0x433554);},'dTniX':function(_0x7f87d8,_0x2025c6){return _0x7f87d8+_0x2025c6;}},_0x1d7d91=Buffer['from'](_0x2f6f80);let _0x5d75d7=0x0;const [,_0x54c7c6]=readId(_0x1d7d91,_0x5d75d7),[_0x137469,_0x2563ab]=_0x3b437f['hqFHM'](readVint,_0x1d7d91,_0x5d75d7+_0x54c7c6),_0x4b6af8=_0x3b437f['GjVSH'](_0x3b437f['GjVSH'](_0x5d75d7+_0x54c7c6,_0x2563ab),_0x137469),[,_0x291d0a]=readId(_0x1d7d91,_0x4b6af8),[,_0x4205f0]=readVint(_0x1d7d91,_0x3b437f['irSGC'](_0x4b6af8,_0x291d0a)),_0x2a1eb8=_0x3b437f[_0x4bcde4(0x1a5)](_0x4b6af8+_0x291d0a,_0x4205f0),_0x371b6e=_0x3b437f[_0x4bcde4(0x1aa)](writeUnknownSizeVint,_0x4205f0);_0x371b6e['copy'](_0x1d7d91,_0x3b437f['irSGC'](_0x4b6af8,_0x291d0a));let _0x239240=_0x2a1eb8;const _0xbb802d=Math['min'](_0x1d7d91[_0x4bcde4(0x1b7)],_0x3b437f['CmnqH'](_0x2a1eb8,0x2710));while(_0x239240<_0xbb802d){const [_0x57f2ec,_0x4bf9b9]=readId(_0x1d7d91,_0x239240),[_0x300836,_0x35eab4]=_0x3b437f[_0x4bcde4(0x1c4)](readVint,_0x1d7d91,_0x239240+_0x4bf9b9);if(_0x57f2ec===ID_CLUSTER)break;if(_0x3b437f[_0x4bcde4(0x1c4)](isUnknownSize,_0x300836,_0x35eab4))break;if(_0x3b437f[_0x4bcde4(0x1bf)](_0x57f2ec,ID_INFO)){const _0xfc492d=_0x3b437f['iJRUG'](_0x3b437f[_0x4bcde4(0x194)](_0x239240,_0x4bf9b9),_0x35eab4),_0x4a196c=_0xfc492d+_0x300836,_0x7a82a3=[];let _0x48e9d2=_0xfc492d;while(_0x48e9d2<_0x4a196c){const [_0xd6fdd9,_0x44c232]=_0x3b437f[_0x4bcde4(0x1d8)](readId,_0x1d7d91,_0x48e9d2),[_0x380d1a,_0x3e2da4]=readVint(_0x1d7d91,_0x3b437f['CmnqH'](_0x48e9d2,_0x44c232)),_0x36d6f9=_0x44c232+_0x3e2da4+_0x380d1a;_0xd6fdd9!==ID_DURATION&&_0x7a82a3[_0x4bcde4(0x196)](_0x1d7d91['slice'](_0x48e9d2,_0x48e9d2+_0x36d6f9)),_0x48e9d2+=_0x36d6f9;}const _0x4c7bbb=Buffer[_0x4bcde4(0x18d)](_0x7a82a3),_0xab1da4=Buffer[_0x4bcde4(0x18d)]([_0x1d7d91[_0x4bcde4(0x1c6)](_0x239240,_0x3b437f[_0x4bcde4(0x194)](_0x239240,_0x4bf9b9)),_0x3b437f[_0x4bcde4(0x1d0)](writeVint,_0x4c7bbb['length'],_0x35eab4)]);return Buffer[_0x4bcde4(0x18d)]([_0x1d7d91['slice'](0x0,_0x239240),_0xab1da4,_0x4c7bbb,_0x1d7d91[_0x4bcde4(0x1c6)](_0x4a196c)]);}_0x239240+=_0x3b437f['dTniX'](_0x4bf9b9+_0x35eab4,_0x300836);}return _0x1d7d91;}export function stitchWebmFiles(_0x2aa2b1,_0x4baad4){const _0x52ac7d=_0x3fe3,_0x4d1990={'fDOjV':function(_0x2f2788,_0x3a8a9e){return _0x2f2788(_0x3a8a9e);},'prmHr':function(_0x4c34b3,_0x2d4ff2){return _0x4c34b3(_0x2d4ff2);},'BRxEA':function(_0x1c8e2d,_0x3bba00){return _0x1c8e2d<_0x3bba00;},'WppSf':function(_0x40110e,_0x5bd3cc){return _0x40110e+_0x5bd3cc;},'OgTkk':function(_0x20e9b9,_0x231162,_0x5a3307){return _0x20e9b9(_0x231162,_0x5a3307);}};if(_0x2aa2b1[_0x52ac7d(0x1b7)]<=0x1)return![];const _0x2924b4=[];for(const _0xc626e2 of _0x2aa2b1){const _0x2092db=_0x4d1990[_0x52ac7d(0x1b2)](readFileSync,_0xc626e2),_0x1412ec=_0x4d1990[_0x52ac7d(0x1d4)](parseWebm,_0x2092db);if(!_0x1412ec||_0x1412ec[_0x52ac7d(0x1a0)]['length']===0x0)return![];_0x2924b4[_0x52ac7d(0x196)](_0x1412ec);}const _0x5b84e5=_0x2924b4[0x0],_0x502abe=rebuildHeaderWithoutDuration(_0x5b84e5[_0x52ac7d(0x193)]),_0x235df3=[_0x502abe];let _0x579bf7=0x0;for(let _0x2e6021=0x0;_0x4d1990[_0x52ac7d(0x18f)](_0x2e6021,_0x2924b4[_0x52ac7d(0x1b7)]);_0x2e6021++){const _0x2c110d=_0x2924b4[_0x2e6021];for(const _0x33113e of _0x2c110d[_0x52ac7d(0x1a0)]){const _0x53623a=_0x33113e[_0x52ac7d(0x1b5)]+_0x579bf7;_0x235df3[_0x52ac7d(0x196)](buildCluster(_0x53623a,_0x33113e[_0x52ac7d(0x1bb)],_0x33113e['bodyAfterTimestamp']));}const _0x39316d=0x1e;_0x579bf7+=_0x4d1990[_0x52ac7d(0x1cf)](_0x2c110d[_0x52ac7d(0x1a7)],_0x39316d);}return _0x4d1990['OgTkk'](writeFileSync,_0x4baad4,Buffer[_0x52ac7d(0x18d)](_0x235df3)),!![];}function _0x3fe3(_0x2625ad,_0x1e1b7b){_0x2625ad=_0x2625ad-0x18c;const _0x4cd867=_0x4cd8();let _0x3fe3a9=_0x4cd867[_0x2625ad];return _0x3fe3a9;}if(process['argv'][0x1]?.['endsWith'](_0x1ea88d(0x1a1))||process[_0x1ea88d(0x1cb)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x1ea88d(0x1cb)][_0x1ea88d(0x1c6)](0x2);args[_0x1ea88d(0x1b7)]<0x3&&(console[_0x1ea88d(0x1a6)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x1ea88d(0x1d9)](0x1));const output=args[args['length']-0x1],inputs=args[_0x1ea88d(0x1c6)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x1ea88d(0x1b7)]+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}