@ranger-testing/ranger-cli 3.0.1-alpha.c0b290b-36 → 3.0.1-alpha.d8f00ab-37
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3c8113,_0x55771d){const _0x43ecba=_0x2b3b,_0x330a76=_0x3c8113();while(!![]){try{const _0xbc5358=parseInt(_0x43ecba(0x137))/0x1+parseInt(_0x43ecba(0x13d))/0x2*(parseInt(_0x43ecba(0x133))/0x3)+-parseInt(_0x43ecba(0x14e))/0x4*(-parseInt(_0x43ecba(0x147))/0x5)+-parseInt(_0x43ecba(0x149))/0x6+parseInt(_0x43ecba(0x148))/0x7*(parseInt(_0x43ecba(0x161))/0x8)+parseInt(_0x43ecba(0x146))/0x9*(parseInt(_0x43ecba(0x135))/0xa)+-parseInt(_0x43ecba(0x143))/0xb;if(_0xbc5358===_0x55771d)break;else _0x330a76['push'](_0x330a76['shift']());}catch(_0x5762fe){_0x330a76['push'](_0x330a76['shift']());}}}(_0x4ee5,0x4bac3));import{existsSync}from'fs';import _0x390260 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';function _0x2b3b(_0x54d9e8,_0x320d03){_0x54d9e8=_0x54d9e8-0x133;const _0x4ee528=_0x4ee5();let _0x2b3b4d=_0x4ee528[_0x54d9e8];return _0x2b3b4d;}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';function _0x4ee5(){const _0x2ff628=['51150ixqxdM','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','4225660pRqjMs','dupKP','424395mtzyvr','\x20baseUrl\x20<url>','envBaseUrl','cdpEndpoint','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','name','40BCLhBA','local','settings','startPath','list','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','12127489yeEPDL','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','myRrP','9BhyDOp','5BkITLh','3149734kbXSdG','2152380FpzvnH','domains','RANGER_SESSION_STATE_PATH=','ZmBeP','mGMpL','533044ZmbINJ','GshVA','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','source','yZXTO','QRPan','LjUVS','zMdTx','baseUrl','Profile\x20\x22','Local\x20profile','VTfgt','\x20does\x20not\x20exist.','ekQLi','profile','RANGER_TEST_USERNAME','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','TXTxT','ADXBu','8pRJjAM','length','cloud','AJhBm','log','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','env','string'];_0x4ee5=function(){return _0x2ff628;};return _0x4ee5();}export async function resolveProfileContext(_0x736add){const _0x39f39d=_0x2b3b,_0x3424d9={'LyIFv':function(_0x9257d5){return _0x9257d5();},'myRrP':function(_0x56c118,_0x1456bb){return _0x56c118===_0x1456bb;},'yZXTO':function(_0x1ea04a,_0x1f1110){return _0x1ea04a+_0x1f1110;},'mGMpL':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','zMdTx':function(_0x3acaa8,_0x5a6b20){return _0x3acaa8(_0x5a6b20);},'TXTxT':function(_0x4bfd8f,_0x376048){return _0x4bfd8f(_0x376048);},'ZmBeP':function(_0x33af28,_0x5f2cee){return _0x33af28 instanceof _0x5f2cee;},'MFFqg':function(_0x4d75ef,_0x142b18){return _0x4d75ef+_0x142b18;},'QRPan':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','AJhBm':'cloud','LjUVS':_0x39f39d(0x158),'YjMXu':function(_0x1ce483){return _0x1ce483();},'VTfgt':function(_0x44e84e,_0x7f500a){return _0x44e84e(_0x7f500a);},'ekQLi':function(_0x37f910,_0x2dafc9){return _0x37f910(_0x2dafc9);},'ADXBu':function(_0x15f422,_0x167c59){return _0x15f422(_0x167c59);},'GshVA':function(_0x356754,_0x4ada4c,_0x2de1de){return _0x356754(_0x4ada4c,_0x2de1de);},'uYArD':function(_0x35af72,_0x45a3e6){return _0x35af72(_0x45a3e6);}},_0x47cb26=_0x736add['profile'];let _0x5c60cc=_0x736add[_0x39f39d(0x15c)]??await readActiveProfileName(),_0x537044=null;if(!_0x5c60cc&&process[_0x39f39d(0x167)][_0x39f39d(0x15d)]){const _0x1aee3c=await _0x3424d9['LyIFv'](resolveAdHocProfile);_0x1aee3c&&(_0x5c60cc=_0x1aee3c['name'],_0x537044=_0x1aee3c[_0x39f39d(0x15c)]);}if(!_0x5c60cc)try{const _0x866e22=await listCloudProfiles();if(_0x3424d9[_0x39f39d(0x145)](_0x866e22[_0x39f39d(0x162)],0x1)){const _0x43c83e=_0x866e22[0x0];_0x5c60cc=_0x43c83e['name'],console['log'](_0x39f39d(0x166)+_0x43c83e[_0x39f39d(0x13c)]),console[_0x39f39d(0x165)](_0x39f39d(0x144));}}catch{}if(!_0x5c60cc)throw new Error(_0x3424d9['yZXTO'](_0x3424d9['yZXTO'](_0x3424d9[_0x39f39d(0x152)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x39f39d(0x15e)),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+_0x3424d9[_0x39f39d(0x14d)],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x5b8de2=getEnvDir(_0x5c60cc),_0x20c959=_0x3424d9[_0x39f39d(0x155)](existsSync,_0x5b8de2);let _0x4bead6=_0x537044,_0x493ade=![];if(!_0x4bead6)try{_0x4bead6=await _0x3424d9[_0x39f39d(0x15f)](fetchCloudProfile,_0x5c60cc);if(!_0x4bead6)_0x493ade=!![];}catch(_0x3c6a6d){_0x3424d9[_0x39f39d(0x14c)](_0x3c6a6d,ApiError)&&_0x3c6a6d['status']===0x194&&(_0x493ade=!![]);}if(_0x47cb26&&_0x493ade&&!_0x20c959&&!_0x4bead6)throw new Error(_0x3424d9['yZXTO'](_0x3424d9['MFFqg']('Profile\x20\x22'+_0x47cb26+_0x39f39d(0x13b),_0x39f39d(0x142)),_0x3424d9[_0x39f39d(0x153)]));if(_0x4bead6&&_0x20c959){let _0x5ed2b7=!![];if(isInteractive()){const {source:_0x4c3e3d}=await _0x390260['prompt']([{'type':_0x39f39d(0x141),'name':_0x39f39d(0x151),'message':_0x39f39d(0x157)+_0x5c60cc+_0x39f39d(0x134),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':_0x3424d9[_0x39f39d(0x164)]},{'name':_0x3424d9[_0x39f39d(0x154)],'value':_0x39f39d(0x13e)}],'default':_0x39f39d(0x163)}]);_0x5ed2b7=_0x3424d9['myRrP'](_0x4c3e3d,_0x3424d9[_0x39f39d(0x164)]);}if(!_0x5ed2b7)_0x4bead6=null;}const _0xfa8f6d=readProfileOverrides(process['cwd'](),_0x5c60cc);let _0x4bf965=null,_0x5dad7a,_0x37268a,_0x1db04,_0x4520ce,_0x46a57c=null,_0x564a23;const _0x4a318b=expandOverrides(_0xfa8f6d),_0x3a3334=_0x3424d9['YjMXu'](readUrlEnvVars);if(_0x4bead6){_0x4bf965=_0x4bead6;const _0x1952eb=_0x4bead6[_0x39f39d(0x13f)]??{},_0x12a482=mergeCloudProfileSettings(_0x1952eb,_0xfa8f6d??undefined),_0x119e21={..._0x4bead6,'settings':_0x12a482};_0x46a57c={'baseUrl':_0x3424d9[_0x39f39d(0x159)](expandString,_0x1952eb['baseUrl']),'startPath':expandString(_0x1952eb[_0x39f39d(0x140)])};const _0x49a4be=await fetchAuthConfig(),_0x4824e5=_0x49a4be?resolveAuthEnvironmentLocally(_0x49a4be,_0x4bead6['environmentKey']):null;_0x564a23=_0x4824e5?.[_0x39f39d(0x14a)]?.[0x0];const _0x5bdb43=resolveProfileUrl({'flagBaseUrl':_0x736add['baseUrl'],'flagStartPath':_0x736add['startPath'],'envBaseUrl':_0x3a3334[_0x39f39d(0x139)],'envStartPath':_0x3a3334['envStartPath'],'projectOverrides':_0x4a318b,'cloudSettings':_0x46a57c,'authEnvironmentDomain':_0x564a23}),_0x29ec8b=process[_0x39f39d(0x167)]['RANGER_SESSION_STATE_PATH'];if(_0x29ec8b){if(!_0x3424d9[_0x39f39d(0x15b)](existsSync,_0x29ec8b))throw new Error(_0x39f39d(0x14b)+_0x29ec8b+_0x39f39d(0x15a));_0x5dad7a=_0x29ec8b,_0x37268a=_0x3424d9['ADXBu'](resolveEnvVars,_0x12a482),_0x1db04=_0x3424d9['ekQLi'](Boolean,_0x37268a[_0x39f39d(0x13a)]);}else{const _0x31e99e=await _0x3424d9[_0x39f39d(0x14f)](resolveCloudProfileSession,_0x119e21,{'effectiveBaseUrl':_0x5bdb43[_0x39f39d(0x156)]});_0x5dad7a=_0x31e99e['authPath'],_0x37268a=resolveEnvVars(_0x31e99e[_0x39f39d(0x13f)]),_0x1db04=Boolean(_0x37268a['cdpEndpoint']),_0x564a23=_0x31e99e['resolvedEnv']?.[_0x39f39d(0x14a)]?.[0x0];}}else{if(!_0x20c959)throw new Error('Profile\x20\x22'+_0x5c60cc+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5c60cc);const _0x577fc2=await _0x3424d9[_0x39f39d(0x160)](loadSettings,_0x5c60cc);_0x37268a=resolveEnvVars(_0x577fc2),_0x1db04=_0x3424d9[_0x39f39d(0x15b)](Boolean,_0x37268a[_0x39f39d(0x13a)]),_0x4520ce=_0x37268a['baseUrl'];}const _0x187a3a=_0x3424d9['uYArD'](resolveProfileUrl,{'flagBaseUrl':_0x736add[_0x39f39d(0x156)],'flagStartPath':_0x736add['startPath'],'envBaseUrl':_0x3a3334[_0x39f39d(0x139)],'envStartPath':_0x3a3334['envStartPath'],'localSettingsBaseUrl':_0x4520ce,'projectOverrides':_0x4a318b,'cloudSettings':_0x46a57c,'authEnvironmentDomain':_0x564a23}),_0x167ab9=_0x187a3a['url']??_0x187a3a['baseUrl'];if(!_0x167ab9&&!_0x1db04)throw new Error(_0x39f39d(0x150)+_0x5c60cc+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x5c60cc+_0x39f39d(0x138));return{'activeProfile':_0x5c60cc,'resolvedCloudProfile':_0x4bf965,'cloudAuthPath':_0x5dad7a,'resolvedSettings':_0x37268a,'isCdpMode':_0x1db04,'url':_0x167ab9,'startPath':_0x187a3a['startPath']};}function expandString(_0x317fc2){const _0x2ba990=_0x2b3b,_0x13bb0d={'SXhkF':function(_0x47b25f,_0x3f6525){return _0x47b25f!==_0x3f6525;},'VEjLj':function(_0x1f7d8b,_0x46b765){return _0x1f7d8b(_0x46b765);}};if(_0x13bb0d['SXhkF'](typeof _0x317fc2,_0x2ba990(0x168)))return _0x317fc2;return _0x13bb0d['VEjLj'](resolveEnvVars,_0x317fc2);}function expandOverrides(_0x4e7e95){const _0x3b3ced=_0x2b3b,_0xbea8fe={'lBzHB':function(_0x2177a5,_0x46330d){return _0x2177a5===_0x46330d;},'dupKP':_0x3b3ced(0x168),'osIfh':function(_0x284eb3,_0xdca657){return _0x284eb3(_0xdca657);}};if(!_0x4e7e95)return _0x4e7e95;const _0x72525a={..._0x4e7e95};return _0xbea8fe['lBzHB'](typeof _0x72525a['baseUrl'],_0xbea8fe[_0x3b3ced(0x136)])&&(_0x72525a[_0x3b3ced(0x156)]=resolveEnvVars(_0x72525a[_0x3b3ced(0x156)])),typeof _0x72525a[_0x3b3ced(0x140)]===_0xbea8fe['dupKP']&&(_0x72525a[_0x3b3ced(0x140)]=_0xbea8fe['osIfh'](resolveEnvVars,_0x72525a[_0x3b3ced(0x140)])),_0x72525a;}
|
|
1
|
+
(function(_0x51940e,_0x2303d2){const _0x3da84c=_0x3320,_0x4980d5=_0x51940e();while(!![]){try{const _0xf1f2f9=-parseInt(_0x3da84c(0x134))/0x1*(parseInt(_0x3da84c(0x11e))/0x2)+parseInt(_0x3da84c(0x114))/0x3*(parseInt(_0x3da84c(0x116))/0x4)+-parseInt(_0x3da84c(0x128))/0x5*(-parseInt(_0x3da84c(0x11d))/0x6)+parseInt(_0x3da84c(0x14b))/0x7+parseInt(_0x3da84c(0x145))/0x8*(-parseInt(_0x3da84c(0x125))/0x9)+parseInt(_0x3da84c(0x13f))/0xa*(parseInt(_0x3da84c(0x135))/0xb)+parseInt(_0x3da84c(0x12c))/0xc*(-parseInt(_0x3da84c(0x139))/0xd);if(_0xf1f2f9===_0x2303d2)break;else _0x4980d5['push'](_0x4980d5['shift']());}catch(_0x4d04d0){_0x4980d5['push'](_0x4980d5['shift']());}}}(_0x23fe,0x5ecbb));import{existsSync}from'fs';import _0x512cda from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x3320(_0x528097,_0x113946){_0x528097=_0x528097-0x114;const _0x23fe40=_0x23fe();let _0x332005=_0x23fe40[_0x528097];return _0x332005;}import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x23fe(){const _0x5aa4bc=['24VuTpwC','2ncWGeW','profile','Cloud\x20profile\x20(recommended)','Local\x20profile','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','RANGER_TEST_USERNAME','string','53505JPcOGX','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','startPath','911895QfEiGV','Profile\x20\x22','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','environmentKey','22020ySecqK','source','envBaseUrl','RANGER_SESSION_STATE_PATH=','VYtaP','oYgwZ','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','388131YjqvMq','36014HdSJFS','resolvedEnv','env','JiTMI','5980hpVcqS','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','qAPHb','\x20baseUrl\x20<url>','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','890VdQpJT','ztPds','settings','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','RANGER_SESSION_STATE_PATH','cdpEndpoint','160gWtNnc','list','IYYYx','cBYhD','bKTuf','baseUrl','215614ZWTdwK','LsorC','dOoyg','cmJXD','name','OitFb','domains','3sPWEfd','jUgAM','2750840SEipcN','\x20does\x20not\x20exist.','hUheR','log','cloud','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','NRJne'];_0x23fe=function(){return _0x5aa4bc;};return _0x23fe();}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x13fea3){const _0x3bc59c=_0x3320,_0x49e8b2={'cmJXD':function(_0x17dcd8){return _0x17dcd8();},'dOoyg':function(_0x93cdbd,_0x217e16){return _0x93cdbd+_0x217e16;},'VYtaP':_0x3bc59c(0x142),'zCsJL':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','mZBKJ':_0x3bc59c(0x11b),'SDoof':_0x3bc59c(0x13e),'bKTuf':function(_0x68f87c,_0x19cec1){return _0x68f87c(_0x19cec1);},'oYgwZ':function(_0x29a9a1,_0x2f2fbd){return _0x29a9a1===_0x2f2fbd;},'IYYYx':function(_0x4abd8b,_0x130fe2){return _0x4abd8b+_0x130fe2;},'YBJBd':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','NRJne':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','jUgAM':function(_0x56cd8c,_0x1a8441){return _0x56cd8c&&_0x1a8441;},'SOfEA':function(_0x2d0180){return _0x2d0180();},'SuQLY':_0x3bc59c(0x146),'XqSbr':_0x3bc59c(0x12d),'wypSV':'cloud','hUheR':function(_0x433493,_0x18cfed){return _0x433493===_0x18cfed;},'cBYhD':function(_0x2f16f9,_0x381aad,_0x54945f){return _0x2f16f9(_0x381aad,_0x54945f);},'LsorC':function(_0x3b65e3,_0x49526f){return _0x3b65e3??_0x49526f;},'JiTMI':function(_0x3c693a){return _0x3c693a();},'Isjbb':function(_0x200e0a,_0x1a9735){return _0x200e0a(_0x1a9735);},'gPkMN':function(_0x345d8b,_0x5d954b,_0x23092e){return _0x345d8b(_0x5d954b,_0x23092e);},'ztPds':function(_0x599025,_0x3a3029){return _0x599025(_0x3a3029);},'jFRDP':function(_0x3bf2f6,_0x3b88b1){return _0x3bf2f6(_0x3b88b1);},'OitFb':function(_0x47cd44,_0x199d6c){return _0x47cd44(_0x199d6c);}},_0x663615=_0x13fea3[_0x3bc59c(0x11f)];let _0x492cd3=_0x13fea3[_0x3bc59c(0x11f)]??await readActiveProfileName(),_0x40c7cb=null;if(!_0x492cd3&&process[_0x3bc59c(0x137)][_0x3bc59c(0x123)]){const _0x118a7b=await _0x49e8b2[_0x3bc59c(0x14e)](resolveAdHocProfile);_0x118a7b&&(_0x492cd3=_0x118a7b['name'],_0x40c7cb=_0x118a7b[_0x3bc59c(0x11f)]);}if(!_0x492cd3)try{const _0x4e97e2=await _0x49e8b2['cmJXD'](listCloudProfiles);if(_0x4e97e2['length']===0x1){const _0x28e933=_0x4e97e2[0x0];_0x492cd3=_0x28e933[_0x3bc59c(0x14f)],console[_0x3bc59c(0x119)](_0x3bc59c(0x132)+_0x28e933['name']),console['log'](_0x3bc59c(0x13b));}}catch{}if(!_0x492cd3)throw new Error(_0x49e8b2[_0x3bc59c(0x14d)](_0x49e8b2['dOoyg'](_0x49e8b2['dOoyg'](_0x3bc59c(0x126),_0x49e8b2[_0x3bc59c(0x130)]),_0x49e8b2['zCsJL'])+_0x49e8b2['mZBKJ'],_0x49e8b2['SDoof']));const _0x36cda8=getEnvDir(_0x492cd3),_0x3b0422=_0x49e8b2['bKTuf'](existsSync,_0x36cda8);let _0x7aa607=_0x40c7cb,_0xc7d9db=![];if(!_0x7aa607)try{_0x7aa607=await fetchCloudProfile(_0x492cd3);if(!_0x7aa607)_0xc7d9db=!![];}catch(_0xdd19c){_0xdd19c instanceof ApiError&&_0x49e8b2[_0x3bc59c(0x131)](_0xdd19c['status'],0x194)&&(_0xc7d9db=!![]);}if(_0x663615&&_0xc7d9db&&!_0x3b0422&&!_0x7aa607)throw new Error(_0x49e8b2['dOoyg'](_0x49e8b2[_0x3bc59c(0x147)]('Profile\x20\x22'+_0x663615+_0x3bc59c(0x13a),_0x49e8b2['YBJBd']),_0x49e8b2[_0x3bc59c(0x11c)]));if(_0x49e8b2[_0x3bc59c(0x115)](_0x7aa607,_0x3b0422)){let _0x5b6364=!![];if(_0x49e8b2['SOfEA'](isInteractive)){const {source:_0x1d7155}=await _0x512cda['prompt']([{'type':_0x49e8b2['SuQLY'],'name':_0x49e8b2['XqSbr'],'message':_0x3bc59c(0x129)+_0x492cd3+_0x3bc59c(0x12a),'choices':[{'name':_0x3bc59c(0x120),'value':_0x49e8b2['wypSV']},{'name':_0x3bc59c(0x121),'value':'local'}],'default':'cloud'}]);_0x5b6364=_0x49e8b2[_0x3bc59c(0x118)](_0x1d7155,_0x3bc59c(0x11a));}if(!_0x5b6364)_0x7aa607=null;}const _0x387280=_0x49e8b2[_0x3bc59c(0x148)](readProfileOverrides,process['cwd'](),_0x492cd3);let _0x12b36b=null,_0x2ca055,_0x6efd1a,_0x331b94,_0x27988a,_0x397238=null,_0x4f8103;const _0x5441a1=_0x49e8b2['bKTuf'](expandOverrides,_0x387280),_0x53adb3=_0x49e8b2['cmJXD'](readUrlEnvVars);if(_0x7aa607){_0x12b36b=_0x7aa607;const _0xd51871=_0x7aa607['settings']??{},_0x932335=mergeCloudProfileSettings(_0xd51871,_0x49e8b2[_0x3bc59c(0x14c)](_0x387280,undefined)),_0x4504fb={..._0x7aa607,'settings':_0x932335};_0x397238={'baseUrl':expandString(_0xd51871['baseUrl']),'startPath':_0x49e8b2[_0x3bc59c(0x149)](expandString,_0xd51871[_0x3bc59c(0x127)])};const _0x1d826d=await _0x49e8b2[_0x3bc59c(0x138)](fetchAuthConfig),_0x58f65b=_0x1d826d?resolveAuthEnvironmentLocally(_0x1d826d,_0x7aa607[_0x3bc59c(0x12b)]):null;_0x4f8103=_0x58f65b?.[_0x3bc59c(0x151)]?.[0x0];const _0x1d0532=resolveProfileUrl({'flagBaseUrl':_0x13fea3[_0x3bc59c(0x14a)],'flagStartPath':_0x13fea3['startPath'],'envBaseUrl':_0x53adb3[_0x3bc59c(0x12e)],'envStartPath':_0x53adb3['envStartPath'],'projectOverrides':_0x5441a1,'cloudSettings':_0x397238,'authEnvironmentDomain':_0x4f8103}),_0x5b9ff9=process[_0x3bc59c(0x137)][_0x3bc59c(0x143)];if(_0x5b9ff9){if(!_0x49e8b2['bKTuf'](existsSync,_0x5b9ff9))throw new Error(_0x3bc59c(0x12f)+_0x5b9ff9+_0x3bc59c(0x117));_0x2ca055=_0x5b9ff9,_0x6efd1a=_0x49e8b2['bKTuf'](resolveEnvVars,_0x932335),_0x331b94=_0x49e8b2['Isjbb'](Boolean,_0x6efd1a['cdpEndpoint']);}else{const _0x1ba2f7=await _0x49e8b2['gPkMN'](resolveCloudProfileSession,_0x4504fb,{'effectiveBaseUrl':_0x1d0532['baseUrl']});_0x2ca055=_0x1ba2f7['authPath'],_0x6efd1a=resolveEnvVars(_0x1ba2f7[_0x3bc59c(0x141)]),_0x331b94=Boolean(_0x6efd1a[_0x3bc59c(0x144)]),_0x4f8103=_0x1ba2f7[_0x3bc59c(0x136)]?.[_0x3bc59c(0x151)]?.[0x0];}}else{if(!_0x3b0422)throw new Error('Profile\x20\x22'+_0x492cd3+_0x3bc59c(0x133)+_0x492cd3);const _0x4fd8b3=await _0x49e8b2[_0x3bc59c(0x140)](loadSettings,_0x492cd3);_0x6efd1a=_0x49e8b2['jFRDP'](resolveEnvVars,_0x4fd8b3),_0x331b94=_0x49e8b2[_0x3bc59c(0x150)](Boolean,_0x6efd1a['cdpEndpoint']),_0x27988a=_0x6efd1a[_0x3bc59c(0x14a)];}const _0x5b82ab=_0x49e8b2['ztPds'](resolveProfileUrl,{'flagBaseUrl':_0x13fea3[_0x3bc59c(0x14a)],'flagStartPath':_0x13fea3['startPath'],'envBaseUrl':_0x53adb3['envBaseUrl'],'envStartPath':_0x53adb3['envStartPath'],'localSettingsBaseUrl':_0x27988a,'projectOverrides':_0x5441a1,'cloudSettings':_0x397238,'authEnvironmentDomain':_0x4f8103}),_0x163071=_0x5b82ab['url']??_0x5b82ab['baseUrl'];if(!_0x163071&&!_0x331b94)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x492cd3+_0x3bc59c(0x122)+_0x492cd3+_0x3bc59c(0x13d));return{'activeProfile':_0x492cd3,'resolvedCloudProfile':_0x12b36b,'cloudAuthPath':_0x2ca055,'resolvedSettings':_0x6efd1a,'isCdpMode':_0x331b94,'url':_0x163071,'startPath':_0x5b82ab['startPath']};}function expandString(_0x5ab098){const _0x8a289b=_0x3320;if(typeof _0x5ab098!==_0x8a289b(0x124))return _0x5ab098;return resolveEnvVars(_0x5ab098);}function expandOverrides(_0x294018){const _0xe0bd6e=_0x3320,_0x4520e9={'qAPHb':'string','GqCnc':function(_0x5cd789,_0x4b9d7e){return _0x5cd789(_0x4b9d7e);},'pvqXX':function(_0x35d63d,_0x876e3e){return _0x35d63d===_0x876e3e;}};if(!_0x294018)return _0x294018;const _0x3a3051={..._0x294018};return typeof _0x3a3051['baseUrl']===_0x4520e9[_0xe0bd6e(0x13c)]&&(_0x3a3051[_0xe0bd6e(0x14a)]=_0x4520e9['GqCnc'](resolveEnvVars,_0x3a3051[_0xe0bd6e(0x14a)])),_0x4520e9['pvqXX'](typeof _0x3a3051['startPath'],_0xe0bd6e(0x124))&&(_0x3a3051['startPath']=resolveEnvVars(_0x3a3051[_0xe0bd6e(0x127)])),_0x3a3051;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xfa9f(){const _0x2ee5f2=['aXrWN','localSettingsBaseUrl','cloudSettings','startsWith','rDnPP','24FTKjAx','xOIAo','188RmUPqA','838WlbUCs','12198300PnDIbS','18390HowwEc','8oYIsBZ','22rshTjJ','8658472ZVxGIF','goZtl','startPath','478681wAFwbG','DUPPo','test','30pFACPy','UxiNI','projectOverrides','1188939FvJfDi','flagBaseUrl','baseUrl','envBaseUrl','2876112dQoKtv','endsWith'];_0xfa9f=function(){return _0x2ee5f2;};return _0xfa9f();}(function(_0x18b738,_0x4bad22){const _0xec616e=_0x2163,_0x1d2f24=_0x18b738();while(!![]){try{const _0x927d3=parseInt(_0xec616e(0x7f))/0x1*(-parseInt(_0xec616e(0x9a))/0x2)+parseInt(_0xec616e(0x8d))/0x3+parseInt(_0xec616e(0x82))/0x4*(parseInt(_0xec616e(0x81))/0x5)+-parseInt(_0xec616e(0x98))/0x6*(-parseInt(_0xec616e(0x87))/0x7)+-parseInt(_0xec616e(0x84))/0x8+-parseInt(_0xec616e(0x91))/0x9*(parseInt(_0xec616e(0x8a))/0xa)+-parseInt(_0xec616e(0x83))/0xb*(-parseInt(_0xec616e(0x80))/0xc);if(_0x927d3===_0x4bad22)break;else _0x1d2f24['push'](_0x1d2f24['shift']());}catch(_0x3a29e3){_0x1d2f24['push'](_0x1d2f24['shift']());}}}(_0xfa9f,0x90282));function firstDefined(..._0x32ed85){const _0x589943={'GdiMR':function(_0x414795,_0x4c4ac7){return _0x414795!==_0x4c4ac7;},'TlYQU':function(_0x3ee6d7,_0x1a24a1){return _0x3ee6d7!==_0x1a24a1;}};for(const _0x5705e4 of _0x32ed85){if(_0x589943['GdiMR'](_0x5705e4,undefined)&&_0x589943['TlYQU'](_0x5705e4,null)&&_0x589943['GdiMR'](_0x5705e4,''))return _0x5705e4;}return undefined;}function normalizeAuthEnvironmentDomain(_0x4f1604){const _0x291230=_0x2163;if(!_0x4f1604)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x291230(0x89)](_0x4f1604))return _0x4f1604;return'https://'+_0x4f1604;}export function resolveBaseUrl(_0x22cc61){const _0x3c9516=_0x2163,_0x69ab6e={'goZtl':function(_0x3e5cb8,_0x57bb9d){return _0x3e5cb8===_0x57bb9d;},'aXrWN':'string','Ugbtn':function(_0x50da05,_0x14f081){return _0x50da05(_0x14f081);}},_0x2bfc32=_0x22cc61[_0x3c9516(0x8c)],_0xefa866=!!_0x2bfc32&&'baseUrl'in _0x2bfc32,_0x458fa3=_0x2bfc32?.[_0x3c9516(0x8f)],_0x37b9be=!(_0xefa866&&_0x458fa3===null);return firstDefined(_0x22cc61[_0x3c9516(0x8e)],_0x22cc61[_0x3c9516(0x90)],_0x22cc61[_0x3c9516(0x94)],_0x69ab6e[_0x3c9516(0x85)](typeof _0x458fa3,_0x69ab6e[_0x3c9516(0x93)])?_0x458fa3:undefined,_0x37b9be?_0x22cc61['cloudSettings']?.[_0x3c9516(0x8f)]:undefined,_0x37b9be?_0x69ab6e['Ugbtn'](normalizeAuthEnvironmentDomain,_0x22cc61['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x208e81){const _0x2a1696=_0x2163,_0x56e59b={'DUPPo':function(_0x4288a1,_0x32fbb8){return _0x4288a1 in _0x32fbb8;},'IHbvH':function(_0xde1c53,_0x3ee0f9){return _0xde1c53===_0x3ee0f9;},'UxiNI':'string'},_0x4b4b2e=_0x208e81[_0x2a1696(0x8c)],_0x52d3b8=!!_0x4b4b2e&&_0x56e59b[_0x2a1696(0x88)]('startPath',_0x4b4b2e),_0x1ec5dc=_0x4b4b2e?.['startPath'],_0x59c644=!(_0x52d3b8&&_0x1ec5dc===null);return firstDefined(_0x208e81['flagStartPath'],_0x208e81['envStartPath'],_0x56e59b['IHbvH'](typeof _0x1ec5dc,_0x56e59b[_0x2a1696(0x8b)])?_0x1ec5dc:undefined,_0x59c644?_0x208e81[_0x2a1696(0x95)]?.[_0x2a1696(0x86)]:undefined);}function _0x2163(_0x1dd66b,_0xa130ec){_0x1dd66b=_0x1dd66b-0x7f;const _0xfa9f21=_0xfa9f();let _0x2163bd=_0xfa9f21[_0x1dd66b];return _0x2163bd;}export function joinBaseAndPath(_0x2be2de,_0x103a03){const _0xe91bca=_0x2163,_0x9e4a54={'WNIip':function(_0x5b2e4b,_0x113065){return _0x5b2e4b+_0x113065;},'Nxdqn':function(_0x52009c,_0x414ffd){return _0x52009c+_0x414ffd;}};if(!_0x2be2de)return undefined;if(!_0x103a03)return _0x2be2de;const _0x34c05b=_0x2be2de[_0xe91bca(0x92)]('/')?_0x2be2de['slice'](0x0,-0x1):_0x2be2de,_0x8c131e=_0x103a03[_0xe91bca(0x96)]('/')?_0x103a03:_0x9e4a54['WNIip']('/',_0x103a03);return _0x9e4a54['Nxdqn'](_0x34c05b,_0x8c131e);}export function resolveProfileUrl(_0x8a1ce6){const _0x2a8c3b=_0x2163,_0x372a98={'xOIAo':function(_0x5314c8,_0x3c084a){return _0x5314c8(_0x3c084a);},'rDnPP':function(_0x463b76,_0x2b0a87,_0x4a97cd){return _0x463b76(_0x2b0a87,_0x4a97cd);}},_0x27f87=resolveBaseUrl(_0x8a1ce6),_0x32f8ba=_0x372a98[_0x2a8c3b(0x99)](resolveStartPath,_0x8a1ce6);return{'baseUrl':_0x27f87,'startPath':_0x32f8ba,'url':_0x372a98[_0x2a8c3b(0x97)](joinBaseAndPath,_0x27f87,_0x32f8ba)};}export function readUrlEnvVars(_0x298075=process['env']){return{'envBaseUrl':_0x298075['RANGER_BASE_URL'],'envStartPath':_0x298075['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26012c,_0x55aac1){const _0x233f8c=_0x367a,_0x3baa85=_0x26012c();while(!![]){try{const _0x439b8a=parseInt(_0x233f8c(0x192))/0x1*(-parseInt(_0x233f8c(0x18e))/0x2)+-parseInt(_0x233f8c(0x186))/0x3+parseInt(_0x233f8c(0x18c))/0x4*(parseInt(_0x233f8c(0x18b))/0x5)+parseInt(_0x233f8c(0x187))/0x6+parseInt(_0x233f8c(0x191))/0x7+parseInt(_0x233f8c(0x18d))/0x8*(parseInt(_0x233f8c(0x190))/0x9)+-parseInt(_0x233f8c(0x18a))/0xa*(parseInt(_0x233f8c(0x189))/0xb);if(_0x439b8a===_0x55aac1)break;else _0x3baa85['push'](_0x3baa85['shift']());}catch(_0x68872c){_0x3baa85['push'](_0x3baa85['shift']());}}}(_0x2080,0x813d9));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x2080(){const _0x4ade2d=['253Eisttf','158260LGjLqI','20yUPNsd','200348bzGmyK','8splRFq','291658wQIsiv','label','773154MmLHpW','3206700TwwVGG','1AcJwNR','qwGbq','\x20failed\x20(attempt\x20','pDdaA','),\x20retrying\x20in\x20','131040fyJimx','2031132UviIib','error'];_0x2080=function(){return _0x4ade2d;};return _0x2080();}function _0x367a(_0x37e8df,_0x412daa){_0x37e8df=_0x37e8df-0x182;const _0x20801d=_0x2080();let _0x367a78=_0x20801d[_0x37e8df];return _0x367a78;}export async function withRetry(_0x3248c3,_0x43d840){const _0x7aa7c3=_0x367a,_0x374fc1={'CpuIA':function(_0x22a9b0,_0xcddede){return _0x22a9b0<=_0xcddede;},'pDdaA':function(_0x918630,_0x51e0c6){return _0x918630(_0x51e0c6);},'lJZRK':function(_0x57f0a3,_0xfb1748){return _0x57f0a3<_0xfb1748;},'qwGbq':function(_0x382e26,_0x15fa77){return _0x382e26*_0x15fa77;}},_0x1e8c6f=_0x43d840?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x49cefe=_0x43d840?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x18f2bc;for(let _0x35e7e8=0x0;_0x374fc1['CpuIA'](_0x35e7e8,_0x1e8c6f);_0x35e7e8++){try{return await _0x3248c3();}catch(_0x206949){_0x18f2bc=_0x206949 instanceof Error?_0x206949:new Error(_0x374fc1[_0x7aa7c3(0x184)](String,_0x206949));if(_0x374fc1['lJZRK'](_0x35e7e8,_0x1e8c6f)){const _0x236000=_0x374fc1[_0x7aa7c3(0x182)](_0x49cefe,Math['pow'](0x2,_0x35e7e8));_0x43d840?.[_0x7aa7c3(0x18f)]&&console[_0x7aa7c3(0x188)](_0x43d840['label']+_0x7aa7c3(0x183)+(_0x35e7e8+0x1)+'/'+(_0x1e8c6f+0x1)+_0x7aa7c3(0x185)+_0x236000+'ms...'),await new Promise(_0x361662=>setTimeout(_0x361662,_0x236000));}}}throw _0x18f2bc;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x23dc31=_0x31c9;(function(_0x205446,_0x4b525f){const _0x357bbc=_0x31c9,_0x326cc9=_0x205446();while(!![]){try{const _0xa2af29=-parseInt(_0x357bbc(0x118))/0x1*(-parseInt(_0x357bbc(0xe8))/0x2)+parseInt(_0x357bbc(0x11a))/0x3*(-parseInt(_0x357bbc(0xf3))/0x4)+-parseInt(_0x357bbc(0xf8))/0x5*(parseInt(_0x357bbc(0x103))/0x6)+parseInt(_0x357bbc(0xfd))/0x7*(-parseInt(_0x357bbc(0x104))/0x8)+parseInt(_0x357bbc(0x113))/0x9+parseInt(_0x357bbc(0x116))/0xa*(parseInt(_0x357bbc(0xe4))/0xb)+-parseInt(_0x357bbc(0x10b))/0xc;if(_0xa2af29===_0x4b525f)break;else _0x326cc9['push'](_0x326cc9['shift']());}catch(_0x2bf09a){_0x326cc9['push'](_0x326cc9['shift']());}}}(_0x20a9,0x2399e));import*as _0x84c60d from'fs';function _0x31c9(_0x205deb,_0x220696){_0x205deb=_0x205deb-0xe4;const _0x20a925=_0x20a9();let _0x31c90b=_0x20a925[_0x205deb];return _0x31c90b;}import*as _0x1e52ca from'path';import*as _0x40d74e from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1e52ca[_0x23dc31(0x110)](_0x40d74e[_0x23dc31(0x100)](),_0x23dc31(0x10a),_0x23dc31(0x111));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x53dd6a=_0x23dc31,_0xc584c9={'wgIrW':_0x53dd6a(0x108),'WlUZL':function(_0x5c2064){return _0x5c2064();}};try{if(_0x84c60d['existsSync'](CACHE_FILE)){const _0x1d230f=JSON['parse'](_0x84c60d['readFileSync'](CACHE_FILE,_0xc584c9[_0x53dd6a(0xea)]));return{'version':0x3,'sessions':_0x1d230f['sessions']||{},'branches':_0x1d230f[_0x53dd6a(0x112)]||{},'lastEnabledSessionClearedAt':_0x1d230f['lastEnabledSessionClearedAt']};}}catch{}return _0xc584c9[_0x53dd6a(0x11b)](createEmptyCache);}function saveCache(_0x135e84){const _0x3b80fb=_0x23dc31;try{const _0x2ba4e1=_0x1e52ca[_0x3b80fb(0x119)](CACHE_FILE);!_0x84c60d['existsSync'](_0x2ba4e1)&&_0x84c60d['mkdirSync'](_0x2ba4e1,{'recursive':!![]}),_0x84c60d['writeFileSync'](CACHE_FILE,JSON[_0x3b80fb(0xe9)](_0x135e84,null,0x2));}catch{}}export function getCurrentBranch(){const _0x53f2de=_0x23dc31,_0x2919c9={'mUffC':'utf-8','fQHsm':'pipe','RhKbz':function(_0x2ef14c,_0x3f7d30){return _0x2ef14c===_0x3f7d30;}};try{const _0x2ae50f=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x2919c9['mUffC'],'stdio':[_0x2919c9[_0x53f2de(0x109)],_0x53f2de(0x10c),_0x2919c9[_0x53f2de(0x109)]]})[_0x53f2de(0xf9)]();if(!_0x2ae50f||_0x2919c9[_0x53f2de(0x106)](_0x2ae50f,_0x53f2de(0x105)))return null;return _0x2ae50f;}catch{return null;}}export function enableBranch(_0x1bd141){const _0x544e44=loadCache();_0x544e44['branches'][_0x1bd141]=!![],saveCache(_0x544e44);}export function disableBranch(_0x432a2f){const _0x4b03e2=_0x23dc31,_0x45360a={'BadLe':function(_0x26496f,_0x1fe736){return _0x26496f(_0x1fe736);}},_0x153a83=loadCache();delete _0x153a83['branches'][_0x432a2f],_0x45360a[_0x4b03e2(0xf1)](saveCache,_0x153a83);}export function isBranchEnabled(_0x5020fa){const _0x4ff627={'RbVBh':function(_0x1ed22e){return _0x1ed22e();}},_0x3c2623=_0x4ff627['RbVBh'](loadCache);return _0x3c2623['branches'][_0x5020fa]===!![];}function getOrCreateSession(_0x333b8a,_0x57153f){const _0x578d89=_0x23dc31;return!_0x333b8a[_0x578d89(0x101)][_0x57153f]&&(_0x333b8a['sessions'][_0x57153f]={}),_0x333b8a['sessions'][_0x57153f];}export function enableSession(_0x4ba026){const _0xfe01aa=_0x23dc31,_0x1df080={'mzWkK':_0xfe01aa(0xfa),'OIred':function(_0x477cc2,_0x4d1cb6){return _0x477cc2!==_0x4d1cb6;}},_0xa39de3=loadCache(),_0x2f3482=getOrCreateSession(_0xa39de3,_0x4ba026);_0x2f3482['enabled']=!![];const _0x4285b6=getCurrentBranch();_0x4285b6&&_0x4285b6!==_0x1df080['mzWkK']&&_0x1df080[_0xfe01aa(0xfe)](_0x4285b6,'master')&&(_0xa39de3['branches'][_0x4285b6]=!![],_0x2f3482[_0xfe01aa(0xf6)]=_0x4285b6),saveCache(_0xa39de3);}export function isSessionEnabled(_0x14143d){const _0x1871b2=_0x23dc31,_0x30cbfd={'IpzOp':function(_0x4cb2c1,_0x44d7f8){return _0x4cb2c1===_0x44d7f8;},'hVeOS':function(_0x510108,_0x191ce1){return _0x510108===_0x191ce1;},'hLHLb':function(_0x2e7420,_0x35bffd){return _0x2e7420===_0x35bffd;}},_0x230f3e=loadCache(),_0x3a1699=getCurrentBranch();if(!_0x3a1699||_0x3a1699===_0x1871b2(0xfa)||_0x30cbfd['IpzOp'](_0x3a1699,_0x1871b2(0xe6)))return _0x30cbfd['hVeOS'](_0x230f3e['sessions'][_0x14143d]?.['enabled'],!![]);const _0x596f32=_0x230f3e['branches'][_0x3a1699]===!![],_0x52dab6=_0x30cbfd[_0x1871b2(0x10f)](_0x230f3e['sessions'][_0x14143d]?.[_0x1871b2(0x11c)],!![]);return _0x596f32||_0x52dab6;}export function disableSession(_0x1c364b){const _0x4d45b9={'YCpSA':function(_0x17e839,_0x1dc785,_0x306b6e){return _0x17e839(_0x1dc785,_0x306b6e);}},_0x14de4c=loadCache(),_0x20301e=_0x4d45b9['YCpSA'](getOrCreateSession,_0x14de4c,_0x1c364b);_0x20301e['enabled']=![],saveCache(_0x14de4c);}export function updateBranchTracking(_0x3cfb76){const _0x460fd2=_0x23dc31,_0x3edd80={'YsDmv':'main','cuOjK':function(_0x64cc3b,_0x26b543){return _0x64cc3b===_0x26b543;}},_0x3566f2=loadCache(),_0x1c1356=_0x3566f2[_0x460fd2(0x101)][_0x3cfb76];if(!_0x1c1356?.[_0x460fd2(0x11c)])return;const _0x26c7cf=getCurrentBranch();if(!_0x26c7cf||_0x26c7cf===_0x3edd80['YsDmv']||_0x3edd80['cuOjK'](_0x26c7cf,_0x460fd2(0xe6)))return;_0x1c1356[_0x460fd2(0xf6)]!==_0x26c7cf&&(_0x3566f2['branches'][_0x26c7cf]=!![],_0x1c1356['currentBranch']=_0x26c7cf,saveCache(_0x3566f2));}export function initBranchTracking(_0x30da93){const _0x316880=_0x23dc31,_0x137819={'FIWXr':function(_0x457438){return _0x457438();},'oHvLn':_0x316880(0xfa),'JuHKY':function(_0x5881d7,_0x2512eb){return _0x5881d7===_0x2512eb;},'Mfjco':function(_0x4dd0b5,_0x1a1069,_0x3b5473){return _0x4dd0b5(_0x1a1069,_0x3b5473);}},_0x59cf09=loadCache(),_0x315aa8=_0x137819[_0x316880(0xf7)](getCurrentBranch);if(!_0x315aa8||_0x315aa8===_0x137819[_0x316880(0xf2)]||_0x137819['JuHKY'](_0x315aa8,'master'))return;if(_0x137819['JuHKY'](_0x59cf09['branches'][_0x315aa8],!![])){const _0x1efadd=_0x137819[_0x316880(0xf5)](getOrCreateSession,_0x59cf09,_0x30da93);_0x1efadd[_0x316880(0x11c)]=!![],_0x1efadd[_0x316880(0xf6)]=_0x315aa8,saveCache(_0x59cf09);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5ce3c){const _0x3d6fe9=_0x23dc31,_0x5a5119={'gGjSD':function(_0x4584b3){return _0x4584b3();},'yVwNs':function(_0x5cb97f,_0x363c72){return _0x5cb97f(_0x363c72);}},_0x474e9b=_0x5a5119[_0x3d6fe9(0xed)](loadCache),_0x23160f=_0x474e9b['sessions'][_0x5ce3c];_0x23160f?.['enabled']&&(_0x474e9b[_0x3d6fe9(0xf4)]=Date['now'](),_0x5a5119['yVwNs'](saveCache,_0x474e9b));}export function shouldAutoEnableAfterClear(_0x1721d7){const _0x23d292=_0x23dc31,_0x13ec35={'SvkjC':function(_0x36c831,_0x2aadcf){return _0x36c831!==_0x2aadcf;},'fBcNS':'clear','sgSFY':function(_0x291230){return _0x291230();},'vXZiY':function(_0x26531c,_0x5e0739){return _0x26531c-_0x5e0739;}};if(_0x13ec35[_0x23d292(0xe7)](_0x1721d7,_0x13ec35[_0x23d292(0x11d)]))return![];const _0x321275=_0x13ec35[_0x23d292(0xff)](loadCache),_0x558f46=_0x321275[_0x23d292(0xf4)];if(!_0x558f46)return![];const _0x3414f4=_0x13ec35['vXZiY'](Date['now'](),_0x558f46);return _0x3414f4<=CLEAR_AUTO_ENABLE_WINDOW_MS;}function _0x20a9(){const _0x100e9f=['gGjSD','yvPZh','ctSMr','lastPlanReminderAt','BadLe','oHvLn','251288LjIrXi','lastEnabledSessionClearedAt','Mfjco','currentBranch','FIWXr','1084255lglmsl','trim','main','SfOFp','whnNJ','683389urRPKY','OIred','sgSFY','homedir','sessions','prompted','6YNUYWB','8fmKMbg','HEAD','RhKbz','registeredAt','utf-8','fQHsm','.claude','474552MmOMwq','pipe','UDQyr','PDmXw','hLHLb','join','.ranger_cache.json','branches','2596617hUBjxz','orlrP','lastStopReminderAt','10neNLbm','FewLo','76343gApvzR','dirname','6IaTtcJ','WlUZL','enabled','fBcNS','1187428snKlii','toISOString','master','SvkjC','6PkxHUI','stringify','wgIrW','VuzBo','featureId'];_0x20a9=function(){return _0x100e9f;};return _0x20a9();}export function autoEnableAfterClear(_0x653087){const _0x412e0c=_0x23dc31,_0xf125c7={'VuzBo':function(_0x522d7d){return _0x522d7d();},'DiVzd':function(_0x4cee9e,_0x527565){return _0x4cee9e!==_0x527565;},'ctSMr':'main','orlrP':'master'},_0x202395=_0xf125c7[_0x412e0c(0xeb)](loadCache),_0x15bbdf=getOrCreateSession(_0x202395,_0x653087);_0x15bbdf['enabled']=!![];const _0x3e02f5=getCurrentBranch();_0x3e02f5&&_0xf125c7['DiVzd'](_0x3e02f5,_0xf125c7[_0x412e0c(0xef)])&&_0x3e02f5!==_0xf125c7[_0x412e0c(0x114)]&&(_0x15bbdf[_0x412e0c(0xf6)]=_0x3e02f5),delete _0x202395[_0x412e0c(0xf4)],saveCache(_0x202395);}export function registerSession(_0xc9fb8d,_0x2ea936){const _0x34caa5=_0x23dc31,_0x3e160e={'UDQyr':function(_0x870f3a){return _0x870f3a();}},_0x34405a=_0x3e160e[_0x34caa5(0x10d)](loadCache),_0x191f2d=getOrCreateSession(_0x34405a,_0xc9fb8d);_0x191f2d['featureId']=_0x2ea936,_0x191f2d[_0x34caa5(0x107)]=new Date()[_0x34caa5(0xe5)](),saveCache(_0x34405a);}export function getSessionEntry(_0x2e91bf){const _0x62275a=loadCache(),_0x384a38=_0x62275a['sessions'][_0x2e91bf];if(_0x384a38?.['featureId']&&_0x384a38?.['registeredAt'])return{'featureId':_0x384a38['featureId'],'registeredAt':_0x384a38['registeredAt']};return null;}export function unregisterSession(_0x1585ea){const _0x277b46=_0x23dc31,_0x4c2616=loadCache(),_0x4e0960=_0x4c2616['sessions'][_0x1585ea];_0x4e0960&&(delete _0x4e0960[_0x277b46(0xec)],delete _0x4e0960[_0x277b46(0x107)],saveCache(_0x4c2616));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x35117f){const _0x2875b7=_0x23dc31,_0x3f0c54={'whnNJ':function(_0x4c4825,_0x4f0e18,_0x291e55){return _0x4c4825(_0x4f0e18,_0x291e55);},'yvPZh':function(_0x43cc0d,_0x379483){return _0x43cc0d>=_0x379483;},'PDmXw':function(_0x19d0af,_0x13369a){return _0x19d0af-_0x13369a;},'zTxQA':function(_0x3840e5,_0x55a92f){return _0x3840e5(_0x55a92f);}},_0x5d82a3=loadCache(),_0x175d2d=_0x3f0c54[_0x2875b7(0xfc)](getOrCreateSession,_0x5d82a3,_0x35117f),_0x14c803=_0x175d2d[_0x2875b7(0xf0)]||0x0,_0x58bf9a=Date['now']();if(_0x3f0c54[_0x2875b7(0xee)](_0x3f0c54[_0x2875b7(0x10e)](_0x58bf9a,_0x14c803),PLAN_REMINDER_INTERVAL_MS))return _0x175d2d[_0x2875b7(0xf0)]=_0x58bf9a,_0x3f0c54['zTxQA'](saveCache,_0x5d82a3),!![];return![];}export function shouldShowStopReminder(_0x20ff95){const _0x2c8d8b=_0x23dc31,_0x10d0ac={'tJNWB':function(_0x255750){return _0x255750();},'eZIJD':function(_0x397a70,_0x469722,_0x32243c){return _0x397a70(_0x469722,_0x32243c);},'FewLo':function(_0x315c72,_0x4f0b94){return _0x315c72-_0x4f0b94;},'oSDxZ':function(_0x16022a,_0x474683){return _0x16022a(_0x474683);}},_0x17ef48=_0x10d0ac['tJNWB'](loadCache),_0x173d7f=_0x10d0ac['eZIJD'](getOrCreateSession,_0x17ef48,_0x20ff95),_0x15c3d8=_0x173d7f[_0x2c8d8b(0x115)]||0x0,_0x4a7a3c=Date['now']();if(_0x10d0ac[_0x2c8d8b(0x117)](_0x4a7a3c,_0x15c3d8)>=STOP_REMINDER_INTERVAL_MS)return _0x173d7f[_0x2c8d8b(0x115)]=_0x4a7a3c,_0x10d0ac['oSDxZ'](saveCache,_0x17ef48),!![];return![];}export function hasSessionBeenPrompted(_0x3d18ff){const _0x5f1b61=_0x23dc31,_0x782157={'SfOFp':function(_0x4dd0c8,_0x4a964e){return _0x4dd0c8===_0x4a964e;}},_0x5d74a6=loadCache();return _0x782157[_0x5f1b61(0xfb)](_0x5d74a6['sessions'][_0x3d18ff]?.[_0x5f1b61(0x102)],!![]);}export function markSessionPrompted(_0x280781){const _0xcae59a=loadCache(),_0x5de98a=getOrCreateSession(_0xcae59a,_0x280781);_0x5de98a['prompted']=!![],saveCache(_0xcae59a);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x78c235=_0x2793;(function(_0x3e35a0,_0x426ed5){const _0x69aa31=_0x2793,_0x52974d=_0x3e35a0();while(!![]){try{const _0x2bd627=parseInt(_0x69aa31(0x9d))/0x1*(parseInt(_0x69aa31(0x78))/0x2)+parseInt(_0x69aa31(0x85))/0x3+-parseInt(_0x69aa31(0x9f))/0x4+parseInt(_0x69aa31(0x95))/0x5+-parseInt(_0x69aa31(0x7b))/0x6+parseInt(_0x69aa31(0x73))/0x7*(-parseInt(_0x69aa31(0x8a))/0x8)+parseInt(_0x69aa31(0x93))/0x9;if(_0x2bd627===_0x426ed5)break;else _0x52974d['push'](_0x52974d['shift']());}catch(_0x5975d1){_0x52974d['push'](_0x52974d['shift']());}}}(_0x39f9,0x7deb6));import*as _0x1fdf8c from'fs';import*as _0x272489 from'path';import*as _0x52b31b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x272489['join'](_0x52b31b[_0x78c235(0x9b)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xe684fc=_0x78c235,_0x41419e={'WNUBu':function(_0x28878a){return _0x28878a();}};try{if(_0x1fdf8c[_0xe684fc(0x72)](CACHE_FILE)){const _0x30dec2=JSON[_0xe684fc(0x8c)](_0x1fdf8c[_0xe684fc(0x8e)](CACHE_FILE,_0xe684fc(0xa0)));return{'version':0x3,'sessions':_0x30dec2[_0xe684fc(0x76)]||{},'branches':_0x30dec2[_0xe684fc(0x97)]||{},'lastEnabledSessionClearedAt':_0x30dec2['lastEnabledSessionClearedAt']};}}catch{}return _0x41419e[_0xe684fc(0x80)](createEmptyCache);}function saveCache(_0x3fc7a8){const _0x398246=_0x78c235;try{const _0x22aae=_0x272489[_0x398246(0x89)](CACHE_FILE);!_0x1fdf8c['existsSync'](_0x22aae)&&_0x1fdf8c[_0x398246(0x82)](_0x22aae,{'recursive':!![]}),_0x1fdf8c['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x3fc7a8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x535c1e=_0x78c235,_0x51be3c={'dqFUc':_0x535c1e(0xa0),'yfRnO':'pipe','oyQht':function(_0x236841,_0x3e57a6){return _0x236841===_0x3e57a6;},'tlVqW':'HEAD'};try{const _0x20f68a=execSync(_0x535c1e(0x71),{'encoding':_0x51be3c['dqFUc'],'stdio':[_0x51be3c[_0x535c1e(0x7a)],_0x51be3c['yfRnO'],'pipe']})['trim']();if(!_0x20f68a||_0x51be3c['oyQht'](_0x20f68a,_0x51be3c['tlVqW']))return null;return _0x20f68a;}catch{return null;}}export function enableBranch(_0x1a4901){const _0x5c6f12={'aFUeH':function(_0x2ff93c){return _0x2ff93c();}},_0x6bf1d8=_0x5c6f12['aFUeH'](loadCache);_0x6bf1d8['branches'][_0x1a4901]=!![],saveCache(_0x6bf1d8);}export function disableBranch(_0x194dbb){const _0x38fb34=_0x78c235,_0x5c7c9b={'JDZpB':function(_0x3b1f9f){return _0x3b1f9f();},'kUSQf':function(_0x49b4a5,_0x22ca24){return _0x49b4a5(_0x22ca24);}},_0x58c150=_0x5c7c9b['JDZpB'](loadCache);delete _0x58c150[_0x38fb34(0x97)][_0x194dbb],_0x5c7c9b[_0x38fb34(0x74)](saveCache,_0x58c150);}export function isBranchEnabled(_0x3f90e4){const _0x2b9aaf=_0x78c235,_0x2aa99d={'nDAgL':function(_0x137f39){return _0x137f39();},'nofqA':function(_0x234668,_0xe24770){return _0x234668===_0xe24770;}},_0x26397a=_0x2aa99d['nDAgL'](loadCache);return _0x2aa99d['nofqA'](_0x26397a[_0x2b9aaf(0x97)][_0x3f90e4],!![]);}function _0x39f9(){const _0x578274=['1914412iRWcMK','utf-8','hONcy','lastEnabledSessionClearedAt','NwHmt','toISOString','git\x20rev-parse\x20--abbrev-ref\x20HEAD','existsSync','301UyhdeY','kUSQf','main','sessions','aNuqk','1405330faqynr','master','yfRnO','3745542rsdpRt','lastPlanReminderAt','featureId','registeredAt','yVsdZ','WNUBu','bJyGo','mkdirSync','currentBranch','enabled','1932474NMxgeC','YxLDL','qTWsJ','eeDUv','dirname','88712fLxSVA','uLQlV','parse','QKGgA','readFileSync','YnsMs','grmOM','QPrMT','CTkCV','5055894HPgIJj','fdjot','934320rakZqE','clear','branches','AmKmq','lastStopReminderAt','prompted','homedir','AosUB','1cYfVkx','now'];_0x39f9=function(){return _0x578274;};return _0x39f9();}function getOrCreateSession(_0x3776a4,_0x56f11e){const _0x3fa76e=_0x78c235;return!_0x3776a4[_0x3fa76e(0x76)][_0x56f11e]&&(_0x3776a4['sessions'][_0x56f11e]={}),_0x3776a4[_0x3fa76e(0x76)][_0x56f11e];}export function enableSession(_0x106557){const _0x187622=_0x78c235,_0x4a417a={'yVsdZ':function(_0x11d351){return _0x11d351();},'QPrMT':function(_0x54b055,_0x2e2bcc,_0x16d10b){return _0x54b055(_0x2e2bcc,_0x16d10b);},'NIYqT':function(_0x457bbd,_0x54ccdb){return _0x457bbd!==_0x54ccdb;},'bJyGo':_0x187622(0x75),'GHHJS':function(_0x4493ad,_0x2c170e){return _0x4493ad!==_0x2c170e;},'uLQlV':function(_0x573590,_0x5a2d64){return _0x573590(_0x5a2d64);}},_0x1aac38=_0x4a417a['yVsdZ'](loadCache),_0x54c538=_0x4a417a[_0x187622(0x91)](getOrCreateSession,_0x1aac38,_0x106557);_0x54c538[_0x187622(0x84)]=!![];const _0x28af9d=_0x4a417a[_0x187622(0x7f)](getCurrentBranch);_0x28af9d&&_0x4a417a['NIYqT'](_0x28af9d,_0x4a417a[_0x187622(0x81)])&&_0x4a417a['GHHJS'](_0x28af9d,_0x187622(0x79))&&(_0x1aac38[_0x187622(0x97)][_0x28af9d]=!![],_0x54c538['currentBranch']=_0x28af9d),_0x4a417a[_0x187622(0x8b)](saveCache,_0x1aac38);}export function isSessionEnabled(_0x5595cd){const _0x1ae59d=_0x78c235,_0x593e61={'gjYVv':function(_0x11138f){return _0x11138f();},'hAUGR':'main','QisZN':function(_0x5242cf,_0x180abb){return _0x5242cf===_0x180abb;},'eeDUv':function(_0x35f5af,_0x2b81d2){return _0x35f5af||_0x2b81d2;}},_0x67b15a=_0x593e61['gjYVv'](loadCache),_0x928140=_0x593e61['gjYVv'](getCurrentBranch);if(!_0x928140||_0x928140===_0x593e61['hAUGR']||_0x593e61['QisZN'](_0x928140,_0x1ae59d(0x79)))return _0x593e61['QisZN'](_0x67b15a['sessions'][_0x5595cd]?.[_0x1ae59d(0x84)],!![]);const _0x494e53=_0x593e61['QisZN'](_0x67b15a[_0x1ae59d(0x97)][_0x928140],!![]),_0x3a7f34=_0x67b15a[_0x1ae59d(0x76)][_0x5595cd]?.['enabled']===!![];return _0x593e61[_0x1ae59d(0x88)](_0x494e53,_0x3a7f34);}export function disableSession(_0x32b05c){const _0xf05636={'VQCEM':function(_0x46fc19,_0x1fc5d2,_0xd269bc){return _0x46fc19(_0x1fc5d2,_0xd269bc);}},_0x22137d=loadCache(),_0x538376=_0xf05636['VQCEM'](getOrCreateSession,_0x22137d,_0x32b05c);_0x538376['enabled']=![],saveCache(_0x22137d);}export function updateBranchTracking(_0x31cf2a){const _0x1a7eab=_0x78c235,_0x159444={'sxktQ':function(_0x1443f1){return _0x1443f1();}},_0x2850e0=_0x159444['sxktQ'](loadCache),_0xd56d44=_0x2850e0[_0x1a7eab(0x76)][_0x31cf2a];if(!_0xd56d44?.['enabled'])return;const _0x2337e4=_0x159444['sxktQ'](getCurrentBranch);if(!_0x2337e4||_0x2337e4==='main'||_0x2337e4===_0x1a7eab(0x79))return;_0xd56d44['currentBranch']!==_0x2337e4&&(_0x2850e0['branches'][_0x2337e4]=!![],_0xd56d44['currentBranch']=_0x2337e4,saveCache(_0x2850e0));}export function initBranchTracking(_0xadae66){const _0xb66bb3=_0x78c235,_0x3cfd26={'AmKmq':function(_0x9ac1ec){return _0x9ac1ec();},'NlngV':function(_0x18e533,_0x15f2c5){return _0x18e533===_0x15f2c5;},'qTWsJ':function(_0x25bdd4,_0x183e44,_0x5a7ce1){return _0x25bdd4(_0x183e44,_0x5a7ce1);},'iJDbq':function(_0x288cce,_0x464b89){return _0x288cce(_0x464b89);}},_0x8053a=loadCache(),_0xc0bca1=_0x3cfd26[_0xb66bb3(0x98)](getCurrentBranch);if(!_0xc0bca1||_0x3cfd26['NlngV'](_0xc0bca1,'main')||_0xc0bca1===_0xb66bb3(0x79))return;if(_0x8053a['branches'][_0xc0bca1]===!![]){const _0x204b6a=_0x3cfd26[_0xb66bb3(0x87)](getOrCreateSession,_0x8053a,_0xadae66);_0x204b6a['enabled']=!![],_0x204b6a[_0xb66bb3(0x83)]=_0xc0bca1,_0x3cfd26['iJDbq'](saveCache,_0x8053a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1f25da){const _0x489682=_0x78c235,_0x48db62={'bgODb':function(_0x29a1a2,_0x1326d4){return _0x29a1a2(_0x1326d4);}},_0x15de99=loadCache(),_0x482d09=_0x15de99[_0x489682(0x76)][_0x1f25da];_0x482d09?.['enabled']&&(_0x15de99[_0x489682(0xa2)]=Date[_0x489682(0x9e)](),_0x48db62['bgODb'](saveCache,_0x15de99));}export function shouldAutoEnableAfterClear(_0x3f3a85){const _0x35183b=_0x78c235,_0x2754ee={'CTkCV':_0x35183b(0x96),'YxLDL':function(_0x4184a8,_0x1bbd16){return _0x4184a8-_0x1bbd16;},'jbPmm':function(_0x4307b2,_0x3914be){return _0x4307b2<=_0x3914be;}};if(_0x3f3a85!==_0x2754ee[_0x35183b(0x92)])return![];const _0x4aaad1=loadCache(),_0x2cb1c0=_0x4aaad1['lastEnabledSessionClearedAt'];if(!_0x2cb1c0)return![];const _0x35a399=_0x2754ee[_0x35183b(0x86)](Date['now'](),_0x2cb1c0);return _0x2754ee['jbPmm'](_0x35a399,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4fe8b7){const _0x1a7a0b=_0x78c235,_0xde6a9f={'vPfCC':function(_0x41595f){return _0x41595f();},'PXMfI':function(_0x301c09,_0x5f5cd9){return _0x301c09!==_0x5f5cd9;},'rfeus':_0x1a7a0b(0x79)},_0x4c3709=_0xde6a9f['vPfCC'](loadCache),_0x46e397=getOrCreateSession(_0x4c3709,_0x4fe8b7);_0x46e397['enabled']=!![];const _0x974082=_0xde6a9f['vPfCC'](getCurrentBranch);_0x974082&&_0x974082!==_0x1a7a0b(0x75)&&_0xde6a9f['PXMfI'](_0x974082,_0xde6a9f['rfeus'])&&(_0x46e397[_0x1a7a0b(0x83)]=_0x974082),delete _0x4c3709['lastEnabledSessionClearedAt'],saveCache(_0x4c3709);}export function registerSession(_0x12bee9,_0x5d6b45){const _0x1dbc2c=_0x78c235,_0xe20689={'FubKE':function(_0x3ef65f,_0x3e15de,_0x35b141){return _0x3ef65f(_0x3e15de,_0x35b141);}},_0x135099=loadCache(),_0x1b85c9=_0xe20689['FubKE'](getOrCreateSession,_0x135099,_0x12bee9);_0x1b85c9[_0x1dbc2c(0x7d)]=_0x5d6b45,_0x1b85c9['registeredAt']=new Date()[_0x1dbc2c(0xa4)](),saveCache(_0x135099);}export function getSessionEntry(_0xf9df6f){const _0x448977=_0x78c235,_0x49fcde=loadCache(),_0x286d21=_0x49fcde['sessions'][_0xf9df6f];if(_0x286d21?.['featureId']&&_0x286d21?.[_0x448977(0x7e)])return{'featureId':_0x286d21[_0x448977(0x7d)],'registeredAt':_0x286d21['registeredAt']};return null;}function _0x2793(_0x5252dc,_0x36fbe5){_0x5252dc=_0x5252dc-0x71;const _0x39f9c5=_0x39f9();let _0x2793c1=_0x39f9c5[_0x5252dc];return _0x2793c1;}export function unregisterSession(_0x306029){const _0x2ceb9a=_0x78c235,_0x4f2b48={'hONcy':function(_0x1fa93b,_0x1d00de){return _0x1fa93b(_0x1d00de);}},_0x50be11=loadCache(),_0x52ec66=_0x50be11[_0x2ceb9a(0x76)][_0x306029];_0x52ec66&&(delete _0x52ec66[_0x2ceb9a(0x7d)],delete _0x52ec66[_0x2ceb9a(0x7e)],_0x4f2b48[_0x2ceb9a(0xa1)](saveCache,_0x50be11));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x174ac2){const _0x13403b=_0x78c235,_0x517c81={'PVXgn':function(_0x57eccc){return _0x57eccc();},'YnsMs':function(_0x1d98ce,_0x96f24d,_0x3ab489){return _0x1d98ce(_0x96f24d,_0x3ab489);},'ArSRf':function(_0x4daffc,_0x2d098e){return _0x4daffc>=_0x2d098e;},'NwHmt':function(_0x14db1b,_0x160c61){return _0x14db1b-_0x160c61;},'fdjot':function(_0x4ba82d,_0x438b13){return _0x4ba82d(_0x438b13);}},_0x3970ca=_0x517c81['PVXgn'](loadCache),_0x42c40d=_0x517c81[_0x13403b(0x8f)](getOrCreateSession,_0x3970ca,_0x174ac2),_0x571255=_0x42c40d[_0x13403b(0x7c)]||0x0,_0x1f2279=Date[_0x13403b(0x9e)]();if(_0x517c81['ArSRf'](_0x517c81[_0x13403b(0xa3)](_0x1f2279,_0x571255),PLAN_REMINDER_INTERVAL_MS))return _0x42c40d['lastPlanReminderAt']=_0x1f2279,_0x517c81[_0x13403b(0x94)](saveCache,_0x3970ca),!![];return![];}export function shouldShowStopReminder(_0x2fca6e){const _0x374451=_0x78c235,_0x3b690d={'aNuqk':function(_0x381707){return _0x381707();},'MnNbl':function(_0x5f28b1,_0x2097e1,_0x3c8a34){return _0x5f28b1(_0x2097e1,_0x3c8a34);},'grmOM':function(_0x1c27e1,_0x526cc8){return _0x1c27e1>=_0x526cc8;},'AosUB':function(_0x260b8a,_0xb5550e){return _0x260b8a-_0xb5550e;}},_0x28a5eb=_0x3b690d[_0x374451(0x77)](loadCache),_0x10ea4c=_0x3b690d['MnNbl'](getOrCreateSession,_0x28a5eb,_0x2fca6e),_0x54d3e1=_0x10ea4c['lastStopReminderAt']||0x0,_0x1d8802=Date[_0x374451(0x9e)]();if(_0x3b690d[_0x374451(0x90)](_0x3b690d[_0x374451(0x9c)](_0x1d8802,_0x54d3e1),STOP_REMINDER_INTERVAL_MS))return _0x10ea4c[_0x374451(0x99)]=_0x1d8802,saveCache(_0x28a5eb),!![];return![];}export function hasSessionBeenPrompted(_0x4745f7){const _0x37b041=_0x78c235,_0x1efa6e=loadCache();return _0x1efa6e[_0x37b041(0x76)][_0x4745f7]?.['prompted']===!![];}export function markSessionPrompted(_0x3350d0){const _0x54aefc=_0x78c235,_0x4a2747={'QKGgA':function(_0x67af22){return _0x67af22();},'ZrLYC':function(_0x317821,_0x3c9d77){return _0x317821(_0x3c9d77);}},_0x1627d0=_0x4a2747[_0x54aefc(0x8d)](loadCache),_0xe35b9f=getOrCreateSession(_0x1627d0,_0x3350d0);_0xe35b9f[_0x54aefc(0x9a)]=!![],_0x4a2747['ZrLYC'](saveCache,_0x1627d0);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f5ae2=_0x229b;(function(_0x172002,_0x48fe7a){const _0x405074=_0x229b,_0x110fe5=_0x172002();while(!![]){try{const _0x3a65d1=-parseInt(_0x405074(0x109))/0x1*(parseInt(_0x405074(0x17c))/0x2)+-parseInt(_0x405074(0x14d))/0x3*(parseInt(_0x405074(0x17b))/0x4)+-parseInt(_0x405074(0x15c))/0x5*(parseInt(_0x405074(0x15e))/0x6)+parseInt(_0x405074(0x10b))/0x7*(-parseInt(_0x405074(0x11f))/0x8)+-parseInt(_0x405074(0x124))/0x9*(parseInt(_0x405074(0x120))/0xa)+-parseInt(_0x405074(0x11d))/0xb+parseInt(_0x405074(0x13b))/0xc*(parseInt(_0x405074(0x159))/0xd);if(_0x3a65d1===_0x48fe7a)break;else _0x110fe5['push'](_0x110fe5['shift']());}catch(_0x5afbfb){_0x110fe5['push'](_0x110fe5['shift']());}}}(_0x4e99,0xcd2b7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x229b(_0x2b1856,_0x57e032){_0x2b1856=_0x2b1856-0x103;const _0x4e9976=_0x4e99();let _0x229be2=_0x4e9976[_0x2b1856];return _0x229be2;}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(_0x4e92bb,_0x4291c2){const _0x34107e=_0x229b,_0x441295={'BrQva':function(_0x4808aa,_0x5c0c40){return _0x4808aa(_0x5c0c40);}},_0x218c41=join(_0x4291c2,'ci',_0x4e92bb),_0x50bc5c=join(_0x4291c2,'local',_0x4e92bb),_0x2b9406=join(_0x4291c2,_0x4e92bb),_0x4fe812=join(_0x4291c2,'local'),_0x5006d8=join(_0x4291c2,'ci');if(_0x441295['BrQva'](existsSync,_0x218c41))return _0x218c41;if(existsSync(_0x50bc5c))return _0x50bc5c;if(_0x441295[_0x34107e(0x14c)](existsSync,_0x2b9406)&&(_0x2b9406!==_0x4fe812&&_0x2b9406!==_0x5006d8?!![]:hasLegacyProfileFiles(_0x2b9406)))return _0x2b9406;return null;}export function getEnvDir(_0x53ef0a,_0x6b36d7={}){const _0x57dd58=_0x229b,_0x2528b5=getRangerDir(),_0xf5d34a=findEnvInRoot(_0x53ef0a,_0x2528b5);if(_0xf5d34a){if(_0x6b36d7[_0x57dd58(0x173)]&&isLegacyEnvPath(_0xf5d34a))throw legacyWriteError(_0x53ef0a,_0xf5d34a);return _0xf5d34a;}const _0x2aa670=getRangerHomeDir();if(_0x2aa670!==_0x2528b5){const _0x1d3966=findEnvInRoot(_0x53ef0a,_0x2aa670);if(_0x1d3966){if(_0x6b36d7['forWrite']&&isLegacyEnvPath(_0x1d3966))throw legacyWriteError(_0x53ef0a,_0x1d3966);return _0x1d3966;}}const _0x24c192=join(_0x2aa670,'local',_0x53ef0a);if(_0x6b36d7[_0x57dd58(0x173)])throw legacyWriteError(_0x53ef0a,_0x24c192);return _0x24c192;}function isLegacyEnvPath(_0x40d26a){const _0x428397=_0x229b,_0x40e80e={'BmaDH':function(_0x2011d5){return _0x2011d5();},'IgNiq':function(_0x24adda,_0x4eb207){return _0x24adda===_0x4eb207;}},_0x642ced=getRangerDir(),_0x557580=_0x40e80e[_0x428397(0x175)](getRangerHomeDir);for(const _0x46729d of new Set([_0x642ced,_0x557580])){const _0x3146dd=_0x46729d['endsWith']('/')?_0x46729d:_0x46729d+'/';if(_0x40e80e[_0x428397(0x177)](_0x40d26a,_0x46729d)||_0x40d26a[_0x428397(0x164)](_0x3146dd))return!![];}return![];}function _0x4e99(){const _0x165e6a=['4omlvts','904NYdamO','object','OFymY','Failed\x20to\x20decrypt\x20auth\x20state:\x20','HVCtb','cdpEndpoint','KUmsM','JfJFn','length','auth.json.enc','nUkvi','location','allow','EoUSw','1549sueDhu','headers','2053079zBfcty','UtgSR','ENOENT','psWpe','includes','NhCyS','entries','--unsafely-treat-insecure-origin-as-secure=http://localhost','zXjWv','DacPh','warn','safeMode','pQqLI','locations','vmhvc','XDzIJ','join','wpAVV','2704845NUxAzL','XYeCO','40FQcCEz','1850mdgIwb','uDkVQ','ubALL','playwright-cli','25587mIIalc','auth.json','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','RUnLZ','zJSZq','njrGC','configPath','clipboard-write','stringify','NYnHG','Refusing\x20to\x20write\x20profile\x20\x22','WeDxr','push','browser','ILlWJ','getuid','faODc','zLwtG','replace','extraHTTPHeaders','-cli','rTALg','tHKoK','696YERvtT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','qhyLl','ignoreHTTPSErrors','map','NOYvv','install','headless','UEdMY','chromium','now','MlVMU','dJnJv','legacy','sessions','OfjSn','BrQva','1386759Nvjvuh','userAgent','DksFE','OPTbG','fTWXe','filter','DkRiS','GAPpj','all','CRmKP','--no-sandbox','SddED','1063842PkmXbM','vision','CpckI','5iHHbvG','storageState','3031566aymKqS','soKOu','args','amFyb','Zpzrb','qkxdT','startsWith','tabs','--disable-setuid-sandbox','local','PbqkN','LhWpl','QcsZy','xNWbK','setupHeader','SEhZO','message','string','QYQhk','cFahT','ranger-config','forWrite','path','BmaDH','tempAuthPath','IgNiq','contextOptions','--disable-features=WebBluetooth','stagehand'];_0x4e99=function(){return _0x165e6a;};return _0x4e99();}function legacyWriteError(_0x5f0551,_0x147e1a){const _0x4b70a7=_0x229b,_0x4ec00e={'cGlMO':function(_0x2dc75f,_0x2f076a){return _0x2dc75f+_0x2f076a;},'mxboy':function(_0x51840a,_0x40a0c4){return _0x51840a+_0x40a0c4;}};return new Error(_0x4ec00e['cGlMO'](_0x4ec00e['mxboy'](_0x4b70a7(0x12e)+_0x5f0551+'\x22\x20to\x20legacy\x20path\x20'+_0x147e1a+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x4b70a7(0x126),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x2b512c,_0xb649df){const _0x21cbaf=_0x229b,_0x3a3310={'tHKoK':function(_0x361753,_0x361e56,_0x438da9){return _0x361753(_0x361e56,_0x438da9);},'YwYYT':_0x21cbaf(0x167),'aKACG':function(_0x521c22,_0x17807d,_0x5f3925,_0x2ef12d){return _0x521c22(_0x17807d,_0x5f3925,_0x2ef12d);},'njrGC':_0x21cbaf(0x149),'DacPh':function(_0x48a34c,_0x45d2d1,_0xd447e8){return _0x48a34c(_0x45d2d1,_0xd447e8);},'RUnLZ':function(_0x165fc7,_0x3fb550){return _0x165fc7===_0x3fb550;},'MlVMU':function(_0x3aa4ab,_0x3a8206){return _0x3aa4ab(_0x3a8206);}},_0x201297=_0xb649df?.['rangerDir'],_0x2f9e20=_0x201297?[_0x201297]:[getRangerDir(),getRangerHomeDir()][_0x21cbaf(0x152)]((_0x47b171,_0x3c2deb,_0x3aff9f)=>_0x3aff9f['indexOf'](_0x47b171)===_0x3c2deb),_0x3dbb21=_0xb649df?.[_0x21cbaf(0x118)]??['ci','local','legacy'];for(const _0x182440 of _0x2f9e20){const _0x4dc448=_0x3a3310['tHKoK'](join,_0x182440,_0x3a3310['YwYYT']),_0x5264e5=_0x3a3310[_0x21cbaf(0x13a)](join,_0x182440,'ci'),_0x1ca088=[{'location':'ci','path':_0x3a3310['aKACG'](join,_0x182440,'ci',_0x2b512c)},{'location':'local','path':_0x3a3310['aKACG'](join,_0x182440,_0x3a3310['YwYYT'],_0x2b512c)},{'location':_0x3a3310[_0x21cbaf(0x129)],'path':_0x3a3310[_0x21cbaf(0x114)](join,_0x182440,_0x2b512c)}];for(const _0x15c716 of _0x1ca088){if(_0x3dbb21[_0x21cbaf(0x10f)](_0x15c716[_0x21cbaf(0x106)])&&existsSync(_0x15c716['path'])){if(_0x15c716[_0x21cbaf(0x106)]===_0x3a3310[_0x21cbaf(0x129)]&&(_0x3a3310[_0x21cbaf(0x127)](_0x15c716[_0x21cbaf(0x174)],_0x4dc448)||_0x15c716['path']===_0x5264e5)&&!_0x3a3310[_0x21cbaf(0x147)](hasLegacyProfileFiles,_0x15c716['path']))continue;return{'path':_0x15c716['path'],'location':_0x15c716[_0x21cbaf(0x106)]};}}}return null;}function hasLegacyProfileFiles(_0x5a94b7){const _0x5374c6=_0x229b,_0x36d49e={'VUTKy':function(_0x1c9f48,_0x2d4c5c,_0x4f1161){return _0x1c9f48(_0x2d4c5c,_0x4f1161);},'mXlNA':function(_0x4bdf2d,_0x457d5f){return _0x4bdf2d(_0x457d5f);},'wpAVV':function(_0x1645b9,_0x5de80e,_0x20dda8){return _0x1645b9(_0x5de80e,_0x20dda8);},'JFrsJ':'auth.json.enc'};return existsSync(_0x36d49e['VUTKy'](join,_0x5a94b7,'settings.json'))||existsSync(join(_0x5a94b7,_0x5374c6(0x125)))||_0x36d49e['mXlNA'](existsSync,_0x36d49e[_0x5374c6(0x11c)](join,_0x5a94b7,_0x36d49e['JFrsJ']));}export function isEnvCi(_0x2ecf8b){const _0x2457f3=_0x229b,_0x3df9c2={'nmlzj':function(_0x363b9c,_0x5a6ae2){return _0x363b9c(_0x5a6ae2);},'wapUE':function(_0x51dd6a){return _0x51dd6a();},'amFyb':function(_0x3b569c,_0x47b5a4){return _0x3b569c(_0x47b5a4);},'nUkvi':function(_0x2e16ea,_0x27d960,_0x3b1d88,_0x3ab84f){return _0x2e16ea(_0x27d960,_0x3b1d88,_0x3ab84f);}};if(_0x3df9c2['nmlzj'](existsSync,join(_0x3df9c2['wapUE'](getRangerDir),'ci',_0x2ecf8b)))return!![];const _0x439dc9=getRangerHomeDir();if(_0x439dc9!==_0x3df9c2['wapUE'](getRangerDir)&&_0x3df9c2[_0x2457f3(0x161)](existsSync,_0x3df9c2[_0x2457f3(0x105)](join,_0x439dc9,'ci',_0x2ecf8b)))return!![];return![];}export async function cleanupTempFiles(_0x3b50a3){const _0x47cf85=_0x229b,_0x5b95fe=[_0x3b50a3[_0x47cf85(0x176)],_0x3b50a3[_0x47cf85(0x12a)]][_0x47cf85(0x152)](Boolean);await Promise[_0x47cf85(0x155)](_0x5b95fe['map'](_0x49f1f7=>unlink(_0x49f1f7)['catch'](_0x2ee55b=>{const _0x4bc779=_0x47cf85;_0x2ee55b['code']!==_0x4bc779(0x10d)&&console[_0x4bc779(0x115)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x49f1f7+':',_0x2ee55b[_0x4bc779(0x16e)]);})));}export function getSettingsPath(_0x27a5d7){return join(getEnvDir(_0x27a5d7),'settings.json');}export async function loadSettings(_0x26bb23){const _0x204ffc=_0x229b,_0x3c06a6={'Zpzrb':function(_0x55d614,_0xe1adbf){return _0x55d614(_0xe1adbf);},'zVazb':function(_0x30925e,_0x5e62bc,_0x3e3fd5){return _0x30925e(_0x5e62bc,_0x3e3fd5);}},_0x1427a3=getSettingsPath(_0x26bb23);if(!_0x3c06a6[_0x204ffc(0x162)](existsSync,_0x1427a3))return{};try{const _0x32daee=await _0x3c06a6['zVazb'](readFile,_0x1427a3,'utf-8');return JSON['parse'](_0x32daee);}catch{return{};}}export async function saveSettings(_0x2eeff0,_0x1810b8){const _0x159d1e=_0x229b,_0x5e5cbe={'ubALL':function(_0x38677a,_0x96e4f){return _0x38677a(_0x96e4f);},'QmSzv':function(_0x12b428,_0x2bdf8a){return _0x12b428(_0x2bdf8a);},'CVuWG':function(_0x420ffd,_0x4758e0,_0x5e66fc){return _0x420ffd(_0x4758e0,_0x5e66fc);}},_0x4215fc=_0x5e5cbe[_0x159d1e(0x122)](getSettingsPath,_0x2eeff0),_0x5ce65a=dirname(_0x4215fc);!_0x5e5cbe['QmSzv'](existsSync,_0x5ce65a)&&await mkdir(_0x5ce65a,{'recursive':!![]}),await _0x5e5cbe['CVuWG'](writeFile,_0x4215fc,JSON['stringify'](_0x1810b8,null,0x2));}export function resolveEnvVars(_0x69e56a){const _0x4b0b83=_0x229b,_0x4d9614={'EoUSw':'string','UEdMY':_0x4b0b83(0x17d)};if(typeof _0x69e56a===_0x4d9614[_0x4b0b83(0x108)])return _0x69e56a[_0x4b0b83(0x136)](/\$\{(\w+)\}/g,(_0x42bb8a,_0x4f5bab)=>{const _0x5f0549=process['env'][_0x4f5bab];if(_0x5f0549===undefined)throw new Error('Environment\x20variable\x20'+_0x4f5bab+'\x20is\x20not\x20set');return _0x5f0549;});if(Array['isArray'](_0x69e56a))return _0x69e56a[_0x4b0b83(0x140)](resolveEnvVars);if(_0x69e56a&&typeof _0x69e56a===_0x4d9614[_0x4b0b83(0x144)])return Object['fromEntries'](Object[_0x4b0b83(0x111)](_0x69e56a)['map'](([_0xf63e0c,_0x433ce2])=>[_0xf63e0c,resolveEnvVars(_0x433ce2)]));return _0x69e56a;}const isRecord=_0x416737=>typeof _0x416737==='object'&&_0x416737!==null&&!Array['isArray'](_0x416737),asRecord=_0x388e03=>isRecord(_0x388e03)?_0x388e03:undefined,mergeHeaders=(_0x368def,_0x358efe)=>{const _0x3cdd71=_0x229b,_0x5865eb={..._0x368def??{},..._0x358efe??{}};return Object['keys'](_0x5865eb)[_0x3cdd71(0x103)]?_0x5865eb:undefined;},SAFE_MODE_ARGS=[_0x1f5ae2(0x179)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x1f5ae2(0x112),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x100fc1,_0x5bf86e={}){const _0x5a5f53=_0x1f5ae2,_0x14be94={'wqmzF':'boolean','HgbLX':function(_0x427cd9,_0x5b055b){return _0x427cd9(_0x5b055b);},'uyuRe':function(_0x27575c,_0x13fd74){return _0x27575c===_0x13fd74;},'UtgSR':_0x5a5f53(0x16f)},_0x12a863=asRecord(_0x100fc1[_0x5a5f53(0x131)]),_0x3ede32={...asRecord(_0x12a863?.['launchOptions'])??{}};typeof _0x5bf86e[_0x5a5f53(0x143)]===_0x14be94['wqmzF']&&(_0x3ede32[_0x5a5f53(0x143)]=_0x5bf86e[_0x5a5f53(0x143)]);if(_0x100fc1[_0x5a5f53(0x116)]){const _0x30d59b=_0x3ede32[_0x5a5f53(0x160)]??[],_0x5bb36a=SAFE_MODE_ARGS['filter'](_0x45cc86=>!_0x30d59b[_0x5a5f53(0x10f)](_0x45cc86));_0x3ede32[_0x5a5f53(0x160)]=[..._0x30d59b,..._0x5bb36a];}if(_0x100fc1['allowInsecureLocalhost']){const _0x2d9d6d=_0x3ede32[_0x5a5f53(0x160)]??[],_0x49a7be=ALLOW_LOCALHOST_ARGS[_0x5a5f53(0x152)](_0x244ba0=>!_0x2d9d6d[_0x5a5f53(0x10f)](_0x244ba0));_0x3ede32['args']=[..._0x2d9d6d,..._0x49a7be];}const _0x4d0afb={..._0x14be94['HgbLX'](asRecord,_0x12a863?.[_0x5a5f53(0x178)])??{}};_0x4d0afb[_0x5a5f53(0x13f)]=!![];_0x14be94['uyuRe'](typeof _0x100fc1[_0x5a5f53(0x14e)],_0x14be94[_0x5a5f53(0x10c)])&&(_0x4d0afb[_0x5a5f53(0x14e)]=_0x100fc1[_0x5a5f53(0x14e)]);const _0x47d4b4=mergeHeaders(asRecord(_0x4d0afb[_0x5a5f53(0x137)]),_0x14be94['HgbLX'](asRecord,_0x100fc1['headers']));return _0x47d4b4?_0x4d0afb['extraHTTPHeaders']=_0x47d4b4:delete _0x4d0afb[_0x5a5f53(0x137)],_0x5bf86e['storageStatePath']&&(_0x4d0afb[_0x5a5f53(0x15d)]=_0x5bf86e['storageStatePath']),{'launchOptions':_0x3ede32,'contextOptions':_0x4d0afb};}export async function resolveProfileStorageState(_0x1c1615){const _0x7d2be4=_0x1f5ae2,_0xbc0427={'psWpe':function(_0x12f740,_0x4e5b6a){return _0x12f740(_0x4e5b6a);}};return resolveLocalAuthPath(_0xbc0427[_0x7d2be4(0x10e)](getEnvDir,_0x1c1615));}async function resolveLocalAuthPath(_0x5094ec){const _0x133e0f=_0x1f5ae2,_0x2df851={'dJnJv':function(_0x4f3b85,_0x40d6af,_0x30dc12){return _0x4f3b85(_0x40d6af,_0x30dc12);},'VkDqh':function(_0x57b8d9,_0x1c380f,_0x193b3a){return _0x57b8d9(_0x1c380f,_0x193b3a);},'PbqkN':function(_0x1c9d1b){return _0x1c9d1b();},'rTALg':_0x133e0f(0x13c),'SddED':function(_0x213b23,_0x2ddc71,_0xc034c7){return _0x213b23(_0x2ddc71,_0xc034c7);},'qeWlO':function(_0x41db8f,_0x40fb2e){return _0x41db8f(_0x40fb2e);}},_0x3e6883=_0x2df851[_0x133e0f(0x148)](join,_0x5094ec,_0x133e0f(0x104)),_0x280eeb=_0x2df851['VkDqh'](join,_0x5094ec,_0x133e0f(0x125));if(existsSync(_0x3e6883))try{const _0x546dde=await _0x2df851[_0x133e0f(0x168)](getToken);if(!_0x546dde)throw new Error(_0x2df851[_0x133e0f(0x139)]);const _0x835f20=await readFile(_0x3e6883),_0x5acc95=_0x2df851[_0x133e0f(0x158)](decrypt,_0x835f20,_0x546dde),_0x3c42b1=join(_0x2df851['PbqkN'](tmpdir),'ranger-auth-'+Date[_0x133e0f(0x146)]()+'.json');return await writeFile(_0x3c42b1,_0x5acc95),{'storageStatePath':_0x3c42b1,'tempAuthPath':_0x3c42b1};}catch(_0x2ee4f7){const _0x17f477=_0x2ee4f7 instanceof Error?_0x2ee4f7['message']:_0x2df851['qeWlO'](String,_0x2ee4f7);throw new Error(_0x133e0f(0x17f)+_0x17f477);}if(existsSync(_0x280eeb))return{'storageStatePath':_0x280eeb};return{};}export async function buildPlaywrightConfig(_0x1a603f,_0x1a4785,_0x526901,_0x5110d2,_0x2b605a){const _0x42753c=_0x1f5ae2,_0x2d7536={'CpckI':_0x42753c(0x17a),'CRmKP':function(_0x3f4cf8,_0x2de3b3){return _0x3f4cf8(_0x2de3b3);},'XAOvW':function(_0x2ab34a,_0xfd5075){return _0x2ab34a(_0xfd5075);},'fTWXe':function(_0x2d55d6,_0x384502,_0x39bfad,_0x482a0f,_0x4bcf22,_0x506f0d,_0x1bc940){return _0x2d55d6(_0x384502,_0x39bfad,_0x482a0f,_0x4bcf22,_0x506f0d,_0x1bc940);},'pQqLI':function(_0x3785a7,_0x4b4ea0){return _0x3785a7(_0x4b4ea0);}};if(_0x2b605a)return buildPlaywrightConfigCore(_0x1a603f,_0x2b605a,_0x1a4785,_0x526901,_0x5110d2,_0x2d7536[_0x42753c(0x15b)]);const {storageStatePath:_0x31c710,tempAuthPath:_0x3b6279}=await _0x2d7536[_0x42753c(0x156)](resolveLocalAuthPath,_0x2d7536['XAOvW'](getEnvDir,_0x1a4785));try{const _0x5f32ca=await _0x2d7536[_0x42753c(0x151)](buildPlaywrightConfigCore,_0x1a603f,_0x31c710,_0x1a4785,_0x526901,_0x5110d2,'stagehand');return{..._0x5f32ca,'tempAuthPath':_0x3b6279};}catch(_0x3a13c5){_0x3b6279&&await _0x2d7536[_0x42753c(0x117)](unlink,_0x3b6279)['catch'](()=>{});throw _0x3a13c5;}}export async function buildPlaywrightConfigCore(_0x398514,_0x296a2c,_0x5ce554,_0x145648,_0x2f462b,_0x5b007d=_0x1f5ae2(0x17a)){const _0x247500=_0x1f5ae2,_0x313f59={'KUmsM':function(_0x18c712,_0x20366b,_0x3c8141){return _0x18c712(_0x20366b,_0x3c8141);},'zLwtG':function(_0x386156,_0x23851f){return _0x386156===_0x23851f;},'qkxdT':_0x247500(0x145),'uXygE':'clipboard-write','SEhZO':function(_0x28fc78,_0x4ef29a,_0x4a8bad,_0x2d1e86){return _0x28fc78(_0x4ef29a,_0x4a8bad,_0x2d1e86);},'DBczF':_0x247500(0x14a),'XDzIJ':'playwright-cli','ndXWX':'none','OFymY':_0x247500(0x165),'GAPpj':_0x247500(0x15a),'hyQSv':function(_0x27dec5){return _0x27dec5();},'NYnHG':_0x247500(0x172),'mkthJ':function(_0x13d6d0,_0x1356e8){return _0x13d6d0(_0x1356e8);},'xamkd':_0x247500(0x138),'zXjWv':function(_0x5c7865,_0x198bfc,_0x414478){return _0x5c7865(_0x198bfc,_0x414478);}},_0x3ca74f=_0x145648||randomUUID(),_0x5905a4=_0x313f59[_0x247500(0x16d)](join,getRangerDir(),_0x313f59['DBczF'],_0x3ca74f),_0x630ba=Boolean(_0x398514['cdpEndpoint']),_0xc79dec=_0x630ba?{'browserName':_0x247500(0x145),'cdpEndpoint':_0x398514[_0x247500(0x181)]}:((()=>{const _0x36f03d=_0x247500,{launchOptions:_0x630eda,contextOptions:_0x5d52aa}=_0x313f59[_0x36f03d(0x182)](buildBrowserOptionsFromSettings,_0x398514,{'headless':_0x2f462b?![]:_0x398514['headless']??!![],'storageStatePath':_0x296a2c});if(_0x313f59['zLwtG'](process[_0x36f03d(0x133)]?.(),0x0)){const _0x5860f3=[_0x36f03d(0x157),_0x36f03d(0x166)],_0xc5a7c=_0x630eda['args']??[],_0x348980=_0x5860f3['filter'](_0x16de96=>!_0xc5a7c['includes'](_0x16de96));_0x630eda['args']=[..._0xc5a7c,..._0x348980];}return{'isolated':!![],'browserName':_0x313f59[_0x36f03d(0x163)],'launchOptions':_0x630eda,'contextOptions':{..._0x5d52aa,'permissions':['clipboard-read',_0x313f59['uXygE']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3ac988=_0x313f59['zLwtG'](_0x5b007d,_0x313f59[_0x247500(0x11a)])?{'browser':_0xc79dec,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5905a4,'outputMode':'file','codegen':_0x313f59['ndXWX']}:{'name':_0x5ce554,'browser':_0xc79dec,'capabilities':['core',_0x313f59[_0x247500(0x17e)],_0x247500(0x142),'pdf',_0x313f59[_0x247500(0x154)]],'imageResponses':_0x247500(0x107),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5905a4};if(!_0x630ba){const _0x2fc352=_0x3ac988[_0x247500(0x131)],_0x3c75d4=_0x2fc352['contextOptions'];if(_0x3c75d4[_0x247500(0x14e)]===undefined)delete _0x3c75d4['userAgent'];if(_0x3c75d4['storageState']===undefined)delete _0x3c75d4[_0x247500(0x15d)];}const _0xc8ee7d=join(_0x313f59['hyQSv'](tmpdir),_0x313f59[_0x247500(0x12d)]);!_0x313f59['mkthJ'](existsSync,_0xc8ee7d)&&await mkdir(_0xc8ee7d,{'recursive':!![]});const _0x148dfd=_0x313f59[_0x247500(0x135)](_0x5b007d,_0x313f59[_0x247500(0x11a)])?_0x313f59['xamkd']:'',_0x424a64=_0x313f59[_0x247500(0x113)](join,_0xc8ee7d,_0x5ce554+'-'+Date['now']()+_0x148dfd+'.json');return await _0x313f59[_0x247500(0x182)](writeFile,_0x424a64,JSON[_0x247500(0x12c)](_0x3ac988,null,0x2)),{'configPath':_0x424a64,'storageStatePath':_0x296a2c};}export async function buildPlaywrightCliConfig(_0x5f564c,_0x15cca1,_0x2baf40,_0x1bc3ab,_0x58b883){const _0x40bae7=_0x1f5ae2,_0x4a2e61={'LhWpl':_0x40bae7(0x123),'nZWGL':function(_0x54fc4,_0x158a9c){return _0x54fc4(_0x158a9c);}};if(_0x58b883)return buildPlaywrightConfigCore(_0x5f564c,_0x58b883,_0x15cca1,_0x2baf40,_0x1bc3ab,_0x4a2e61[_0x40bae7(0x169)]);const {storageStatePath:_0x263fdf,tempAuthPath:_0x396b9e}=await resolveLocalAuthPath(getEnvDir(_0x15cca1));try{const _0x43b6a5=await buildPlaywrightConfigCore(_0x5f564c,_0x263fdf,_0x15cca1,_0x2baf40,_0x1bc3ab,'playwright-cli');return{..._0x43b6a5,'tempAuthPath':_0x396b9e};}catch(_0xc9fdf8){_0x396b9e&&await _0x4a2e61['nZWGL'](unlink,_0x396b9e)[_0x40bae7(0x13d)](()=>{});throw _0xc9fdf8;}}export async function buildRangerwrightCliConfig(_0x87d95,_0x4354a2,_0x992bd4,_0x577fe0,_0x20f000){const _0x49a17e=_0x1f5ae2,_0x39b925={'HVCtb':function(_0x565212,_0x54188c,_0x47260d){return _0x565212(_0x54188c,_0x47260d);},'ILlWJ':'--no-sandbox','xNWbK':_0x49a17e(0x166),'DksFE':'chromium','cFahT':'clipboard-read','faODc':function(_0x486e1d,_0x2dbee8){return _0x486e1d(_0x2dbee8);},'vmhvc':function(_0x2ecfcc,_0x8c303e,_0x3aa16e,_0x10c53d){return _0x2ecfcc(_0x8c303e,_0x3aa16e,_0x10c53d);},'CqkoU':function(_0x512fb3){return _0x512fb3();},'EMtpZ':_0x49a17e(0x14a),'qhyLl':function(_0x2e0ab6,_0x4d1972){return _0x2e0ab6===_0x4d1972;},'exQOO':function(_0x3e2773,_0x4a9677,_0x5273cc){return _0x3e2773(_0x4a9677,_0x5273cc);},'CVmjb':function(_0x22ccef,_0x4033d8){return _0x22ccef(_0x4033d8);}},{storageStatePath:_0x304220,tempAuthPath:_0x47f5ee}=_0x20f000?{'storageStatePath':_0x20f000,'tempAuthPath':undefined}:await _0x39b925[_0x49a17e(0x134)](resolveLocalAuthPath,_0x39b925['faODc'](getEnvDir,_0x4354a2)),_0x29fc6a=_0x992bd4||randomUUID(),_0x1fb54d=_0x39b925[_0x49a17e(0x119)](join,_0x39b925['CqkoU'](getRangerDir),_0x39b925['EMtpZ'],_0x29fc6a),_0x4d82d6=Boolean(_0x87d95[_0x49a17e(0x181)]),_0x4851cd=_0x4d82d6?{'browserName':_0x39b925['DksFE'],'cdpEndpoint':_0x87d95[_0x49a17e(0x181)]}:((()=>{const _0xed3c88=_0x49a17e,{launchOptions:_0x40e4ce,contextOptions:_0x3ca7a3}=_0x39b925['HVCtb'](buildBrowserOptionsFromSettings,_0x87d95,{'headless':_0x577fe0?![]:_0x87d95['headless']??!![],'storageStatePath':_0x304220});if(process[_0xed3c88(0x133)]?.()===0x0){const _0x27cc39=[_0x39b925[_0xed3c88(0x132)],_0x39b925[_0xed3c88(0x16b)]],_0x5f499e=_0x40e4ce['args']??[],_0x3a9adf=_0x27cc39['filter'](_0x17915d=>!_0x5f499e['includes'](_0x17915d));_0x40e4ce['args']=[..._0x5f499e,..._0x3a9adf];}return{'browserName':_0x39b925[_0xed3c88(0x14f)],'launchOptions':_0x40e4ce,'contextOptions':{..._0x3ca7a3,'permissions':[_0x39b925[_0xed3c88(0x171)],_0xed3c88(0x12b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4d82d6){const _0x4b4cf8=_0x4851cd['contextOptions'];if(_0x4b4cf8){if(_0x39b925[_0x49a17e(0x13e)](_0x4b4cf8['userAgent'],undefined))delete _0x4b4cf8[_0x49a17e(0x14e)];if(_0x39b925[_0x49a17e(0x13e)](_0x4b4cf8[_0x49a17e(0x15d)],undefined))delete _0x4b4cf8['storageState'];}}const _0x453f31={'browser':_0x4851cd,'outputDir':_0x1fb54d,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x3b6891;try{const _0x3f2d5b=_0x39b925['HVCtb'](join,tmpdir(),_0x49a17e(0x172));!existsSync(_0x3f2d5b)&&await _0x39b925[_0x49a17e(0x180)](mkdir,_0x3f2d5b,{'recursive':!![]}),_0x3b6891=_0x39b925['exQOO'](join,_0x3f2d5b,_0x4354a2+'-'+Date[_0x49a17e(0x146)]()+'-rangerwright.json'),await writeFile(_0x3b6891,JSON[_0x49a17e(0x12c)](_0x453f31,null,0x2));}catch(_0x305c77){_0x47f5ee&&await _0x39b925['CVmjb'](unlink,_0x47f5ee)['catch'](()=>{});throw _0x305c77;}return{'configPath':_0x3b6891,'storageStatePath':_0x304220,'tempAuthPath':_0x47f5ee,'outputDir':_0x1fb54d};}export async function buildNovaActCliConfig(_0x27b434,_0x362c72,_0x52178f,_0x57ee2a,_0x110bfd){const _0x4308b9=_0x1f5ae2,_0x562bb9={'JfJFn':function(_0x4e751f,_0x3ab88b){return _0x4e751f(_0x3ab88b);},'soKOu':function(_0x1c439b,_0x47a10e,_0x57b58e,_0x566a20){return _0x1c439b(_0x47a10e,_0x57b58e,_0x566a20);},'dibyR':function(_0x50b0dc){return _0x50b0dc();},'QcsZy':'Default','WeDxr':function(_0x36e2c8,_0x85fdf3,_0x1ed88f){return _0x36e2c8(_0x85fdf3,_0x1ed88f);},'OfjSn':'string','zJSZq':function(_0x41beb1,_0x448528){return _0x41beb1(_0x448528);}},{storageStatePath:_0x3e8f3a,tempAuthPath:_0x1ce571}=_0x110bfd?{'storageStatePath':_0x110bfd,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x562bb9[_0x4308b9(0x183)](getEnvDir,_0x362c72)),_0x487fbb=_0x52178f||randomUUID(),_0x208bdf=_0x562bb9[_0x4308b9(0x15f)](join,_0x562bb9['dibyR'](getRangerDir),_0x4308b9(0x14a),_0x487fbb),_0x5185ea=join(_0x208bdf,'nova-user-data'),_0x229992=_0x3e8f3a?join(_0x5185ea,_0x562bb9[_0x4308b9(0x16a)]):undefined,{launchOptions:_0x21b128,contextOptions:_0xd57b21}=_0x562bb9[_0x4308b9(0x12f)](buildBrowserOptionsFromSettings,_0x27b434,{'headless':_0x57ee2a?![]:_0x27b434['headless']??!![],'storageStatePath':_0x3e8f3a});if(process[_0x4308b9(0x133)]?.()===0x0){const _0x5911d9=[_0x4308b9(0x157),_0x4308b9(0x166)],_0x3da33b=_0x21b128[_0x4308b9(0x160)]??[],_0x12ae0e=_0x5911d9['filter'](_0x10cb8e=>!_0x3da33b[_0x4308b9(0x10f)](_0x10cb8e));_0x21b128['args']=[..._0x3da33b,..._0x12ae0e];}const _0x19c2ac=typeof _0x21b128['executablePath']===_0x562bb9[_0x4308b9(0x14b)]?_0x21b128['executablePath']:_0x3e8f3a?chromium['executablePath']():undefined;return{'storageStatePath':_0x3e8f3a,'tempAuthPath':_0x1ce571,'baseUrl':_0x27b434['baseUrl'],'headless':Boolean(_0x21b128[_0x4308b9(0x143)]),'userDataDir':_0x5185ea,'browserProfilePath':_0x229992,'executablePath':_0x19c2ac,'launchArgs':Array['isArray'](_0x21b128[_0x4308b9(0x160)])?_0x21b128['args']['filter'](_0x2d24a8=>typeof _0x2d24a8===_0x4308b9(0x16f)):[],'userAgent':typeof _0xd57b21[_0x4308b9(0x14e)]==='string'?_0xd57b21['userAgent']:undefined,'extraHTTPHeaders':_0xd57b21['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x27b434['allowInsecureLocalhost']),'safeMode':_0x562bb9[_0x4308b9(0x128)](Boolean,_0x27b434[_0x4308b9(0x116)]),'cdpEndpoint':_0x27b434['cdpEndpoint'],'isCdpMode':_0x562bb9['zJSZq'](Boolean,_0x27b434['cdpEndpoint'])};}export function getNestedValue(_0x398679,_0x8f7cb4){const _0x31499f=_0x1f5ae2,_0x4dbfb8={'OPTbG':function(_0x385d31,_0xc702cf){return _0x385d31(_0xc702cf);},'uDkVQ':_0x31499f(0x17d)},_0x4a486f=_0x4dbfb8[_0x31499f(0x150)](parseKeyPath,_0x8f7cb4);let _0x3b8119=_0x398679;for(const _0x3fb335 of _0x4a486f){if(_0x3b8119===null||_0x3b8119===undefined||typeof _0x3b8119!==_0x4dbfb8[_0x31499f(0x121)])return undefined;_0x3b8119=_0x3b8119[_0x3fb335];}return _0x3b8119;}export function setNestedValue(_0x426eee,_0x5a9bbc,_0x2814ef){const _0x552555=_0x1f5ae2,_0x111324={'NhCyS':function(_0x438856,_0xac88cf){return _0x438856-_0xac88cf;}},_0x172f85=parseKeyPath(_0x5a9bbc);let _0x5e80d2=_0x426eee;for(let _0x2b9dac=0x0;_0x2b9dac<_0x111324[_0x552555(0x110)](_0x172f85['length'],0x1);_0x2b9dac++){const _0x351836=_0x172f85[_0x2b9dac];(!(_0x351836 in _0x5e80d2)||typeof _0x5e80d2[_0x351836]!==_0x552555(0x17d))&&(_0x5e80d2[_0x351836]={}),_0x5e80d2=_0x5e80d2[_0x351836];}_0x5e80d2[_0x172f85[_0x111324[_0x552555(0x110)](_0x172f85['length'],0x1)]]=_0x2814ef;}export function deleteNestedValue(_0x525de6,_0x8b8936){const _0x30fa21=_0x1f5ae2,_0x132ac2={'fSBAj':function(_0x1c559e,_0x37f6c7){return _0x1c559e<_0x37f6c7;},'fYhpW':function(_0x4d4869,_0x7bf429){return _0x4d4869===_0x7bf429;},'DkRiS':function(_0x3b4071,_0x1e5445){return _0x3b4071!==_0x1e5445;},'PoAiS':_0x30fa21(0x17d),'DVOAb':function(_0xdb27f8,_0x43c2ef){return _0xdb27f8===_0x43c2ef;},'ElWnU':function(_0x4191bc,_0x2f7a35){return _0x4191bc===_0x2f7a35;},'vNUTD':function(_0x4ad5cc,_0x24a9d3){return _0x4ad5cc-_0x24a9d3;}},_0x8f85a7=parseKeyPath(_0x8b8936);let _0x4519a2=_0x525de6;for(let _0x5c94bb=0x0;_0x132ac2['fSBAj'](_0x5c94bb,_0x8f85a7['length']-0x1);_0x5c94bb++){if(_0x4519a2===null||_0x132ac2['fYhpW'](_0x4519a2,undefined)||_0x132ac2[_0x30fa21(0x153)](typeof _0x4519a2,_0x132ac2['PoAiS']))return![];_0x4519a2=_0x4519a2[_0x8f85a7[_0x5c94bb]];}if(_0x132ac2['DVOAb'](_0x4519a2,null)||_0x132ac2['ElWnU'](_0x4519a2,undefined)||typeof _0x4519a2!==_0x132ac2['PoAiS'])return![];const _0x2ce234=_0x8f85a7[_0x132ac2['vNUTD'](_0x8f85a7['length'],0x1)];if(_0x2ce234 in _0x4519a2)return delete _0x4519a2[_0x2ce234],!![];return![];}function parseKeyPath(_0x19d902){const _0x52676b=_0x1f5ae2,_0x57b9ba={'XYeCO':_0x52676b(0x10a),'KIqTd':function(_0x2bafe9,_0x5ac7f6){return _0x2bafe9===_0x5ac7f6;},'gdbaC':_0x52676b(0x16c),'mcbCq':'setupHeaders'},_0x59194e=_0x19d902['split']('.');return _0x59194e[0x0]==='header'&&(_0x59194e[0x0]=_0x57b9ba[_0x52676b(0x11e)]),_0x57b9ba['KIqTd'](_0x59194e[0x0],_0x57b9ba['gdbaC'])&&(_0x59194e[0x0]=_0x57b9ba['mcbCq']),_0x59194e;}export function formatSettings(_0x2487a7,_0x424b79=0x0){const _0x1551ff=_0x1f5ae2,_0xe2926={'NOYvv':function(_0x4aa8a6,_0x156bdd){return _0x4aa8a6===_0x156bdd;},'QYQhk':_0x1551ff(0x17d)},_0x4823ed=[],_0x5edbac='\x20\x20'['repeat'](_0x424b79);for(const [_0x5a43a7,_0x74dd03]of Object[_0x1551ff(0x111)](_0x2487a7)){if(_0xe2926[_0x1551ff(0x141)](_0x74dd03,undefined))continue;if(typeof _0x74dd03===_0xe2926[_0x1551ff(0x170)]&&_0x74dd03!==null){_0x4823ed[_0x1551ff(0x130)](''+_0x5edbac+_0x5a43a7+':');for(const [_0x57f778,_0x3cbc57]of Object['entries'](_0x74dd03)){_0x4823ed[_0x1551ff(0x130)](_0x5edbac+'\x20\x20'+_0x57f778+':\x20'+_0x3cbc57);}}else _0x4823ed['push'](''+_0x5edbac+_0x5a43a7+':\x20'+_0x74dd03);}return _0x4823ed[_0x1551ff(0x11b)]('\x0a');}
|
|
1
|
+
const _0x256d84=_0x5410;(function(_0x262a30,_0x5adb1d){const _0x54b909=_0x5410,_0x57a806=_0x262a30();while(!![]){try{const _0x1246b6=parseInt(_0x54b909(0xa6))/0x1*(parseInt(_0x54b909(0x123))/0x2)+-parseInt(_0x54b909(0x122))/0x3+-parseInt(_0x54b909(0xd3))/0x4*(parseInt(_0x54b909(0xed))/0x5)+-parseInt(_0x54b909(0x126))/0x6*(parseInt(_0x54b909(0xbd))/0x7)+-parseInt(_0x54b909(0xb3))/0x8+-parseInt(_0x54b909(0x114))/0x9*(parseInt(_0x54b909(0x105))/0xa)+-parseInt(_0x54b909(0xa5))/0xb*(-parseInt(_0x54b909(0x104))/0xc);if(_0x1246b6===_0x5adb1d)break;else _0x57a806['push'](_0x57a806['shift']());}catch(_0x52fe2b){_0x57a806['push'](_0x57a806['shift']());}}}(_0x4e45,0xc9713));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x5410(_0x418668,_0x5041da){_0x418668=_0x418668-0x97;const _0x4e45a1=_0x4e45();let _0x5410ff=_0x4e45a1[_0x418668];return _0x5410ff;}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(_0x37417a,_0x56e4df){const _0x416d00=_0x5410,_0x39f9fd={'EZBAP':function(_0x32bfc7,_0x319dd5,_0x41b45f,_0x51cddd){return _0x32bfc7(_0x319dd5,_0x41b45f,_0x51cddd);},'HTUWU':function(_0x338d2b,_0x4cc4e8,_0x142c03,_0x44208d){return _0x338d2b(_0x4cc4e8,_0x142c03,_0x44208d);},'iKBnJ':_0x416d00(0xd7),'amrFV':function(_0x13b20f,_0x579e52,_0x489397){return _0x13b20f(_0x579e52,_0x489397);},'paCpY':function(_0x8e571e,_0x5e2bda,_0x489228){return _0x8e571e(_0x5e2bda,_0x489228);},'lVNEj':function(_0x3a5266,_0x74052f){return _0x3a5266(_0x74052f);},'oOvhK':function(_0x593394,_0x49c21e){return _0x593394!==_0x49c21e;}},_0x36a7d2=_0x39f9fd[_0x416d00(0xeb)](join,_0x56e4df,'ci',_0x37417a),_0x19433f=_0x39f9fd[_0x416d00(0x111)](join,_0x56e4df,_0x39f9fd['iKBnJ'],_0x37417a),_0x5b99c4=_0x39f9fd[_0x416d00(0x10d)](join,_0x56e4df,_0x37417a),_0x328e1f=_0x39f9fd['paCpY'](join,_0x56e4df,'local'),_0x45ac8c=_0x39f9fd[_0x416d00(0x10d)](join,_0x56e4df,'ci');if(existsSync(_0x36a7d2))return _0x36a7d2;if(_0x39f9fd[_0x416d00(0xe0)](existsSync,_0x19433f))return _0x19433f;if(_0x39f9fd[_0x416d00(0xe0)](existsSync,_0x5b99c4)&&(_0x39f9fd[_0x416d00(0xac)](_0x5b99c4,_0x328e1f)&&_0x5b99c4!==_0x45ac8c?!![]:hasLegacyProfileFiles(_0x5b99c4)))return _0x5b99c4;return null;}export function getEnvDir(_0x38943a,_0x3509ef={}){const _0x2740a2=_0x5410,_0x50e6a6={'cNpVE':function(_0x4550b8){return _0x4550b8();},'VqLOP':function(_0x2f564f,_0x4336d5){return _0x2f564f(_0x4336d5);},'VedqK':function(_0x48e2ba){return _0x48e2ba();}},_0x53fc0f=_0x50e6a6['cNpVE'](getRangerDir),_0x1d043f=findEnvInRoot(_0x38943a,_0x53fc0f);if(_0x1d043f){if(_0x3509ef[_0x2740a2(0xe6)]&&_0x50e6a6['VqLOP'](isLegacyEnvPath,_0x1d043f))throw legacyWriteError(_0x38943a,_0x1d043f);return _0x1d043f;}const _0x2565f9=_0x50e6a6['VedqK'](getRangerHomeDir);if(_0x2565f9!==_0x53fc0f){const _0x57ecf4=findEnvInRoot(_0x38943a,_0x2565f9);if(_0x57ecf4){if(_0x3509ef[_0x2740a2(0xe6)]&&isLegacyEnvPath(_0x57ecf4))throw legacyWriteError(_0x38943a,_0x57ecf4);return _0x57ecf4;}}const _0x5b33df=join(_0x2565f9,'local',_0x38943a);if(_0x3509ef[_0x2740a2(0xe6)])throw legacyWriteError(_0x38943a,_0x5b33df);return _0x5b33df;}function isLegacyEnvPath(_0x345d53){const _0x11fe40=_0x5410,_0x3cac05={'DWwKk':function(_0x35ecb0){return _0x35ecb0();},'GXqXF':function(_0x58604b,_0x5ef700){return _0x58604b===_0x5ef700;}},_0x5ca312=_0x3cac05['DWwKk'](getRangerDir),_0x2c963c=_0x3cac05[_0x11fe40(0xce)](getRangerHomeDir);for(const _0x221081 of new Set([_0x5ca312,_0x2c963c])){const _0x4b3f3e=_0x221081[_0x11fe40(0xdf)]('/')?_0x221081:_0x221081+'/';if(_0x3cac05[_0x11fe40(0x120)](_0x345d53,_0x221081)||_0x345d53['startsWith'](_0x4b3f3e))return!![];}return![];}function legacyWriteError(_0x1a5146,_0x3f0c16){const _0x32efbf=_0x5410,_0xa08dc4={'hwvqY':function(_0x2d4d1b,_0x173a7c){return _0x2d4d1b+_0x173a7c;}};return new Error(_0xa08dc4[_0x32efbf(0xde)](_0xa08dc4[_0x32efbf(0xde)](_0xa08dc4['hwvqY'](_0x32efbf(0x10e)+_0x1a5146+_0x32efbf(0x9f)+_0x3f0c16+'.\x0a',_0x32efbf(0xcd)),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),_0x32efbf(0x107)));}export function findExistingEnv(_0x5ea8d9,_0x336ce3){const _0x2fbca5=_0x5410,_0x446a89={'ygqPo':function(_0x292f35){return _0x292f35();},'tcXIH':_0x2fbca5(0x112),'TcpBV':_0x2fbca5(0xd7),'eWecQ':function(_0x4d6c50,_0x140b52,_0x119c3b,_0x15318a){return _0x4d6c50(_0x140b52,_0x119c3b,_0x15318a);},'GNPeQ':function(_0x12f51b,_0x1c84f2){return _0x12f51b===_0x1c84f2;},'eJdVG':function(_0x3eaf2b,_0x544a4e){return _0x3eaf2b===_0x544a4e;},'njKwB':function(_0x287e3a,_0x274da7){return _0x287e3a(_0x274da7);}},_0x1f56cc=_0x336ce3?.['rangerDir'],_0x4c2690=_0x1f56cc?[_0x1f56cc]:[getRangerDir(),_0x446a89[_0x2fbca5(0xea)](getRangerHomeDir)]['filter']((_0x2d80cd,_0xc44402,_0xa10f9d)=>_0xa10f9d[_0x2fbca5(0x115)](_0x2d80cd)===_0xc44402),_0x3d10b3=_0x336ce3?.[_0x2fbca5(0x10b)]??['ci',_0x2fbca5(0xd7),_0x446a89['tcXIH']];for(const _0x379677 of _0x4c2690){const _0xe93406=join(_0x379677,_0x446a89['TcpBV']),_0x572c6a=join(_0x379677,'ci'),_0x372575=[{'location':'ci','path':_0x446a89[_0x2fbca5(0x106)](join,_0x379677,'ci',_0x5ea8d9)},{'location':_0x446a89['TcpBV'],'path':_0x446a89['eWecQ'](join,_0x379677,'local',_0x5ea8d9)},{'location':_0x2fbca5(0x112),'path':join(_0x379677,_0x5ea8d9)}];for(const _0x42afcf of _0x372575){if(_0x3d10b3['includes'](_0x42afcf['location'])&&existsSync(_0x42afcf['path'])){if(_0x446a89[_0x2fbca5(0xb9)](_0x42afcf[_0x2fbca5(0xad)],_0x2fbca5(0x112))&&(_0x446a89['eJdVG'](_0x42afcf['path'],_0xe93406)||_0x42afcf['path']===_0x572c6a)&&!_0x446a89['njKwB'](hasLegacyProfileFiles,_0x42afcf[_0x2fbca5(0xf2)]))continue;return{'path':_0x42afcf['path'],'location':_0x42afcf['location']};}}}return null;}function hasLegacyProfileFiles(_0x9edd95){const _0x132240=_0x5410,_0x1bb671={'cXaMZ':function(_0x54f2c0,_0x57de42){return _0x54f2c0(_0x57de42);},'Bsphn':function(_0x4cdbfa,_0x3e231f){return _0x4cdbfa(_0x3e231f);},'iwhnv':function(_0x53479a,_0x44d053,_0x4fc6ab){return _0x53479a(_0x44d053,_0x4fc6ab);},'KqXPi':function(_0x2c0246,_0x22c7d3){return _0x2c0246(_0x22c7d3);},'cKVpL':function(_0x24aac1,_0x3105bd,_0x27010b){return _0x24aac1(_0x3105bd,_0x27010b);}};return _0x1bb671[_0x132240(0xff)](existsSync,join(_0x9edd95,'settings.json'))||_0x1bb671['Bsphn'](existsSync,_0x1bb671[_0x132240(0xa4)](join,_0x9edd95,'auth.json'))||_0x1bb671['KqXPi'](existsSync,_0x1bb671['cKVpL'](join,_0x9edd95,'auth.json.enc'));}export function isEnvCi(_0x34f500){const _0x46b0ab=_0x5410,_0x4a46ec={'adrzc':function(_0x152674,_0x422884){return _0x152674(_0x422884);},'hpCAr':function(_0x14c050){return _0x14c050();},'wXpKN':function(_0x527a2a,_0x40a191){return _0x527a2a(_0x40a191);}};if(_0x4a46ec[_0x46b0ab(0x127)](existsSync,join(getRangerDir(),'ci',_0x34f500)))return!![];const _0x40870c=_0x4a46ec[_0x46b0ab(0x109)](getRangerHomeDir);if(_0x40870c!==getRangerDir()&&_0x4a46ec[_0x46b0ab(0x113)](existsSync,join(_0x40870c,'ci',_0x34f500)))return!![];return![];}export async function cleanupTempFiles(_0x3ebd5c){const _0x1ddac7=_0x5410,_0x18c3f1={'PiSsA':function(_0x583627,_0x13832){return _0x583627!==_0x13832;}},_0x45e496=[_0x3ebd5c['tempAuthPath'],_0x3ebd5c[_0x1ddac7(0xfb)]]['filter'](Boolean);await Promise[_0x1ddac7(0x10c)](_0x45e496[_0x1ddac7(0xca)](_0x195856=>unlink(_0x195856)[_0x1ddac7(0xe1)](_0x43cbca=>{const _0x26c679=_0x1ddac7;_0x18c3f1['PiSsA'](_0x43cbca[_0x26c679(0x9a)],'ENOENT')&&console[_0x26c679(0xc0)](_0x26c679(0x9d)+_0x195856+':',_0x43cbca[_0x26c679(0xba)]);})));}export function getSettingsPath(_0x237be3){const _0x2b0650=_0x5410,_0x551332={'MzlLW':function(_0x2ac85d,_0x14c6c2,_0xbd9c23){return _0x2ac85d(_0x14c6c2,_0xbd9c23);},'oFXqo':function(_0x388014,_0xcc87ef){return _0x388014(_0xcc87ef);},'RWVJL':_0x2b0650(0xa7)};return _0x551332['MzlLW'](join,_0x551332['oFXqo'](getEnvDir,_0x237be3),_0x551332[_0x2b0650(0xee)]);}export async function loadSettings(_0x56470b){const _0x4ee87c=_0x5410,_0x2a7da2={'anxzE':function(_0x396af9,_0x4ab7f1){return _0x396af9(_0x4ab7f1);},'IAHtI':function(_0x3b2854,_0x3a7fb8,_0x2f367b){return _0x3b2854(_0x3a7fb8,_0x2f367b);}},_0x275ef4=getSettingsPath(_0x56470b);if(!_0x2a7da2[_0x4ee87c(0x10f)](existsSync,_0x275ef4))return{};try{const _0x24846b=await _0x2a7da2['IAHtI'](readFile,_0x275ef4,_0x4ee87c(0xbf));return JSON[_0x4ee87c(0xc7)](_0x24846b);}catch{return{};}}export async function saveSettings(_0x36d9bb,_0x317beb){const _0x3ed105=_0x5410,_0x3ab792={'FNcbP':function(_0x79c32c,_0x3dbde6,_0x4c19ee){return _0x79c32c(_0x3dbde6,_0x4c19ee);}},_0x499ebd=getSettingsPath(_0x36d9bb),_0x2d2338=dirname(_0x499ebd);!existsSync(_0x2d2338)&&await mkdir(_0x2d2338,{'recursive':!![]}),await _0x3ab792[_0x3ed105(0xe7)](writeFile,_0x499ebd,JSON[_0x3ed105(0xc8)](_0x317beb,null,0x2));}export function resolveEnvVars(_0xfd71df){const _0x156116=_0x5410,_0x4348a2={'QNkTA':function(_0x27fe60,_0x46cd5a){return _0x27fe60===_0x46cd5a;},'HZfAK':_0x156116(0xd9)};if(typeof _0xfd71df===_0x156116(0xdc))return _0xfd71df['replace'](/\$\{(\w+)\}/g,(_0x2f4f2a,_0x264be1)=>{const _0xe67d35=_0x156116,_0x5286d2=process[_0xe67d35(0xa2)][_0x264be1];if(_0x4348a2['QNkTA'](_0x5286d2,undefined))throw new Error('Environment\x20variable\x20'+_0x264be1+_0xe67d35(0xf8));return _0x5286d2;});if(Array['isArray'](_0xfd71df))return _0xfd71df['map'](resolveEnvVars);if(_0xfd71df&&typeof _0xfd71df===_0x4348a2[_0x156116(0xcf)])return Object[_0x156116(0xe8)](Object['entries'](_0xfd71df)['map'](([_0x318b6e,_0x47f60f])=>[_0x318b6e,resolveEnvVars(_0x47f60f)]));return _0xfd71df;}function _0x4e45(){const _0x21aff5=['xNJAZ','env','uFoac','iwhnv','2717CMfQvI','38279ThjnGU','settings.json','sessions','stagehand','vision','contextOptions','oOvhK','location','qUDVG','cdpEndpoint','clipboard-read','WeBKS','fQeIk','5695608zNAHtB','baseUrl','QwtGO','repeat','auth.json','IZimk','GNPeQ','message','slkZb','uyogs','294FBIHwS','sOTLY','utf-8','warn','oZBic','xvpDh','keys','ranger-auth-','EDtID','allowInsecureLocalhost','parse','stringify','now','map','launchOptions','mSuhH','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','DWwKk','HZfAK','Failed\x20to\x20decrypt\x20auth\x20state:\x20','header','Xinnu','248jTVmby','storageState','--unsafely-treat-insecure-origin-as-secure=http://localhost','browser','local','--no-sandbox','object','jxXXh','NEsyq','string','executablePath','hwvqY','endsWith','lVNEj','catch','vufUL','getuid','none','fSVML','forWrite','FNcbP','fromEntries','oTErk','ygqPo','EZBAP','yKsMW','27735jbUiyB','RWVJL','chromium','--allow-insecure-localhost','MccIp','path','.json','ranger-config','split','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vdSjL','\x20is\x20not\x20set','headless','bHLSp','configPath','--allow-running-insecure-content','--disable-setuid-sandbox','RqvCW','cXaMZ','filter','zmLPB','Qcxre','includes','99168kZjBbf','6940xvnzmX','eWecQ','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','push','hpCAr','safeMode','locations','all','amrFV','Refusing\x20to\x20write\x20profile\x20\x22','anxzE','length','HTUWU','legacy','wXpKN','2358ofzINz','indexOf','extraHTTPHeaders','EWGdd','kipuw','ilmWl','DBnzs','playwright-cli','headers','Bjqpb','isArray','Default','GXqXF','jFWGW','480612ehNHsd','32yurHlI','args','UNTaO','61524eYivgD','adrzc','--disable-web-security','userAgent','-cli','code','storageStatePath','HeTjg','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','rpyUP','\x22\x20to\x20legacy\x20path\x20','allow'];_0x4e45=function(){return _0x21aff5;};return _0x4e45();}const isRecord=_0xcfe925=>typeof _0xcfe925==='object'&&_0xcfe925!==null&&!Array[_0x256d84(0x11e)](_0xcfe925),asRecord=_0x1c7c33=>isRecord(_0x1c7c33)?_0x1c7c33:undefined,mergeHeaders=(_0x2506c9,_0x9a48d0)=>{const _0x1d1e1a=_0x256d84,_0xe2cdf5={'rHJrw':function(_0x452d54,_0x54c8f3){return _0x452d54??_0x54c8f3;},'UNTaO':function(_0x39e835,_0x172786){return _0x39e835??_0x172786;}},_0x195d63={..._0xe2cdf5['rHJrw'](_0x2506c9,{}),..._0xe2cdf5[_0x1d1e1a(0x125)](_0x9a48d0,{})};return Object[_0x1d1e1a(0xc3)](_0x195d63)[_0x1d1e1a(0x110)]?_0x195d63:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x256d84(0x97),_0x256d84(0xfc),_0x256d84(0xd5),_0x256d84(0xf0)];export function buildBrowserOptionsFromSettings(_0x3ce3e0,_0x38fa84={}){const _0x8a147c=_0x256d84,_0x227af9={'LOLsw':function(_0x8ce745,_0x5a475e){return _0x8ce745(_0x5a475e);},'IZimk':function(_0x395ce6,_0x38a2c7,_0x457062){return _0x395ce6(_0x38a2c7,_0x457062);}},_0x5a9599=_0x227af9['LOLsw'](asRecord,_0x3ce3e0['browser']),_0x169b71={...asRecord(_0x5a9599?.[_0x8a147c(0xcb)])??{}};typeof _0x38fa84[_0x8a147c(0xf9)]==='boolean'&&(_0x169b71['headless']=_0x38fa84['headless']);if(_0x3ce3e0['safeMode']){const _0x41e40a=_0x169b71['args']??[],_0x1fdcce=SAFE_MODE_ARGS[_0x8a147c(0x100)](_0x197ab9=>!_0x41e40a[_0x8a147c(0x103)](_0x197ab9));_0x169b71[_0x8a147c(0x124)]=[..._0x41e40a,..._0x1fdcce];}if(_0x3ce3e0[_0x8a147c(0xc6)]){const _0x2b377f=_0x169b71[_0x8a147c(0x124)]??[],_0x122759=ALLOW_LOCALHOST_ARGS['filter'](_0x23bdef=>!_0x2b377f[_0x8a147c(0x103)](_0x23bdef));_0x169b71['args']=[..._0x2b377f,..._0x122759];}const _0x59b6a3={...asRecord(_0x5a9599?.[_0x8a147c(0xab)])??{}};_0x59b6a3['ignoreHTTPSErrors']=!![];typeof _0x3ce3e0['userAgent']===_0x8a147c(0xdc)&&(_0x59b6a3['userAgent']=_0x3ce3e0[_0x8a147c(0x98)]);const _0x94cfe2=_0x227af9[_0x8a147c(0xb8)](mergeHeaders,asRecord(_0x59b6a3['extraHTTPHeaders']),asRecord(_0x3ce3e0['headers']));return _0x94cfe2?_0x59b6a3['extraHTTPHeaders']=_0x94cfe2:delete _0x59b6a3[_0x8a147c(0x116)],_0x38fa84[_0x8a147c(0x9b)]&&(_0x59b6a3[_0x8a147c(0xd4)]=_0x38fa84['storageStatePath']),{'launchOptions':_0x169b71,'contextOptions':_0x59b6a3};}export async function resolveProfileStorageState(_0x449a1b){const _0x2079c3={'XQmBJ':function(_0x2513e7,_0x2a3f7d){return _0x2513e7(_0x2a3f7d);}};return resolveLocalAuthPath(_0x2079c3['XQmBJ'](getEnvDir,_0x449a1b));}async function resolveLocalAuthPath(_0x2d7202){const _0x4c81e1=_0x256d84,_0x2034d9={'kuzrE':'auth.json.enc','vufUL':function(_0x328d23,_0x403415,_0x3adb51){return _0x328d23(_0x403415,_0x3adb51);},'sOTLY':_0x4c81e1(0xb7),'jchWI':_0x4c81e1(0xf6),'DBnzs':function(_0x5de0cc,_0x4f4544,_0x884318){return _0x5de0cc(_0x4f4544,_0x884318);},'RqvCW':function(_0x50efbe){return _0x50efbe();},'WJIlU':function(_0x509101,_0x59a329){return _0x509101 instanceof _0x59a329;}},_0x569e93=join(_0x2d7202,_0x2034d9['kuzrE']),_0x3a3be2=_0x2034d9[_0x4c81e1(0xe2)](join,_0x2d7202,_0x2034d9[_0x4c81e1(0xbe)]);if(existsSync(_0x569e93))try{const _0x422f70=await getToken();if(!_0x422f70)throw new Error(_0x2034d9['jchWI']);const _0x389636=await readFile(_0x569e93),_0x1252f6=_0x2034d9[_0x4c81e1(0x11a)](decrypt,_0x389636,_0x422f70),_0x4bcfb6=_0x2034d9[_0x4c81e1(0xe2)](join,_0x2034d9[_0x4c81e1(0xfe)](tmpdir),_0x4c81e1(0xc4)+Date['now']()+_0x4c81e1(0xf3));return await writeFile(_0x4bcfb6,_0x1252f6),{'storageStatePath':_0x4bcfb6,'tempAuthPath':_0x4bcfb6};}catch(_0x4795e4){const _0x48fb02=_0x2034d9['WJIlU'](_0x4795e4,Error)?_0x4795e4['message']:String(_0x4795e4);throw new Error(_0x4c81e1(0xd0)+_0x48fb02);}if(existsSync(_0x3a3be2))return{'storageStatePath':_0x3a3be2};return{};}export async function buildPlaywrightConfig(_0x2c62d4,_0x18df3a,_0x1d8e6b,_0x85d2fd,_0x2dc6df){const _0x1b993c=_0x256d84,_0x4118d3={'bHLSp':function(_0x40d73b,_0x40e998,_0x3def1d,_0x4a3498,_0x29c596,_0x3780db,_0x5a5426){return _0x40d73b(_0x40e998,_0x3def1d,_0x4a3498,_0x29c596,_0x3780db,_0x5a5426);},'SOhOD':function(_0x2d2c68,_0x1ec45f){return _0x2d2c68(_0x1ec45f);},'mSuhH':_0x1b993c(0xa9)};if(_0x2dc6df)return _0x4118d3[_0x1b993c(0xfa)](buildPlaywrightConfigCore,_0x2c62d4,_0x2dc6df,_0x18df3a,_0x1d8e6b,_0x85d2fd,'stagehand');const {storageStatePath:_0x439440,tempAuthPath:_0x2762c2}=await _0x4118d3['SOhOD'](resolveLocalAuthPath,getEnvDir(_0x18df3a));try{const _0xf6226e=await buildPlaywrightConfigCore(_0x2c62d4,_0x439440,_0x18df3a,_0x1d8e6b,_0x85d2fd,_0x4118d3[_0x1b993c(0xcc)]);return{..._0xf6226e,'tempAuthPath':_0x2762c2};}catch(_0x258ff1){_0x2762c2&&await _0x4118d3['SOhOD'](unlink,_0x2762c2)[_0x1b993c(0xe1)](()=>{});throw _0x258ff1;}}export async function buildPlaywrightConfigCore(_0x3a97e8,_0x22fa7f,_0xbd8a78,_0x19357a,_0x2feecd,_0x500db6='stagehand'){const _0x22f209=_0x256d84,_0x37c499={'cMDdB':function(_0x162ced,_0x837b52){return _0x162ced===_0x837b52;},'yKsMW':_0x22f209(0xd8),'slkZb':'clipboard-read','Qcxre':'clipboard-write','Yvkdi':'pdf','oTErk':function(_0x42077b,_0xf80376){return _0x42077b===_0xf80376;},'MccIp':function(_0x31666e,_0x418507){return _0x31666e===_0x418507;},'EDtID':_0x22f209(0xf4),'xvpDh':function(_0xd379bf,_0x504ab1){return _0xd379bf(_0x504ab1);},'vdSjL':function(_0x12c069,_0x19fc70,_0x2ccbdd){return _0x12c069(_0x19fc70,_0x2ccbdd);},'YsOph':function(_0x59c930,_0x4ec8d4){return _0x59c930===_0x4ec8d4;},'XaKnN':_0x22f209(0x11b),'trbEG':_0x22f209(0x99)},_0x54b0b9=_0x19357a||randomUUID(),_0x1e6dc4=join(getRangerDir(),'sessions',_0x54b0b9),_0xa2c5cf=Boolean(_0x3a97e8['cdpEndpoint']),_0x580e50=_0xa2c5cf?{'browserName':'chromium','cdpEndpoint':_0x3a97e8[_0x22f209(0xaf)]}:((()=>{const _0x3de13c=_0x22f209,{launchOptions:_0x40368d,contextOptions:_0x46f0ad}=buildBrowserOptionsFromSettings(_0x3a97e8,{'headless':_0x2feecd?![]:_0x3a97e8[_0x3de13c(0xf9)]??!![],'storageStatePath':_0x22fa7f});if(_0x37c499['cMDdB'](process['getuid']?.(),0x0)){const _0x132a58=[_0x37c499[_0x3de13c(0xec)],'--disable-setuid-sandbox'],_0x47ebe1=_0x40368d['args']??[],_0x1e66f7=_0x132a58['filter'](_0x54f197=>!_0x47ebe1[_0x3de13c(0x103)](_0x54f197));_0x40368d[_0x3de13c(0x124)]=[..._0x47ebe1,..._0x1e66f7];}return{'isolated':!![],'browserName':_0x3de13c(0xef),'launchOptions':_0x40368d,'contextOptions':{..._0x46f0ad,'permissions':[_0x37c499[_0x3de13c(0xbb)],_0x37c499[_0x3de13c(0x102)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x453e3f=_0x37c499['cMDdB'](_0x500db6,'playwright-cli')?{'browser':_0x580e50,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1e6dc4,'outputMode':'file','codegen':_0x22f209(0xe4)}:{'name':_0xbd8a78,'browser':_0x580e50,'capabilities':['core','tabs','install',_0x37c499['Yvkdi'],_0x22f209(0xaa)],'imageResponses':_0x22f209(0xa0),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1e6dc4};if(!_0xa2c5cf){const _0x5102b4=_0x453e3f[_0x22f209(0xd6)],_0x376a7e=_0x5102b4[_0x22f209(0xab)];if(_0x37c499[_0x22f209(0xe9)](_0x376a7e['userAgent'],undefined))delete _0x376a7e[_0x22f209(0x98)];if(_0x37c499[_0x22f209(0xf1)](_0x376a7e['storageState'],undefined))delete _0x376a7e[_0x22f209(0xd4)];}const _0x4e6339=join(tmpdir(),_0x37c499[_0x22f209(0xc5)]);!_0x37c499[_0x22f209(0xc2)](existsSync,_0x4e6339)&&await _0x37c499[_0x22f209(0xf7)](mkdir,_0x4e6339,{'recursive':!![]});const _0xcc17aa=_0x37c499['YsOph'](_0x500db6,_0x37c499['XaKnN'])?_0x37c499['trbEG']:'',_0x2c2030=join(_0x4e6339,_0xbd8a78+'-'+Date[_0x22f209(0xc9)]()+_0xcc17aa+_0x22f209(0xf3));return await writeFile(_0x2c2030,JSON['stringify'](_0x453e3f,null,0x2)),{'configPath':_0x2c2030,'storageStatePath':_0x22fa7f};}export async function buildPlaywrightCliConfig(_0x5d8da9,_0x364586,_0x3929e1,_0xfea7ae,_0x220d92){const _0x440192=_0x256d84,_0x2c4efe={'aavmx':function(_0x2de0c4,_0x86dada,_0x5723af,_0x37ae8e,_0x1ed1ac,_0x6c05a9,_0x1df7bc){return _0x2de0c4(_0x86dada,_0x5723af,_0x37ae8e,_0x1ed1ac,_0x6c05a9,_0x1df7bc);},'OviWk':function(_0x4e656d,_0x54f529){return _0x4e656d(_0x54f529);}};if(_0x220d92)return _0x2c4efe['aavmx'](buildPlaywrightConfigCore,_0x5d8da9,_0x220d92,_0x364586,_0x3929e1,_0xfea7ae,_0x440192(0x11b));const {storageStatePath:_0x15b8f2,tempAuthPath:_0x5b88f2}=await _0x2c4efe['OviWk'](resolveLocalAuthPath,getEnvDir(_0x364586));try{const _0x56415f=await buildPlaywrightConfigCore(_0x5d8da9,_0x15b8f2,_0x364586,_0x3929e1,_0xfea7ae,_0x440192(0x11b));return{..._0x56415f,'tempAuthPath':_0x5b88f2};}catch(_0x3b295d){_0x5b88f2&&await unlink(_0x5b88f2)['catch'](()=>{});throw _0x3b295d;}}export async function buildRangerwrightCliConfig(_0x5cadbc,_0x1760c9,_0x2edc45,_0x3717bd,_0x1c724a){const _0x3d476b=_0x256d84,_0x2ba135={'uYvYM':function(_0x12377e,_0x805b0c){return _0x12377e===_0x805b0c;},'WeBKS':_0x3d476b(0xd8),'rjhsF':_0x3d476b(0xef),'jFWGW':_0x3d476b(0xb0),'EWGdd':function(_0x126725,_0x4129d1){return _0x126725(_0x4129d1);},'tylCi':function(_0x20d684,_0x349bdc){return _0x20d684(_0x349bdc);},'fSVML':function(_0x1538b8){return _0x1538b8();},'oZBic':'sessions','jxXXh':function(_0x30a61c,_0x5ce6fa){return _0x30a61c===_0x5ce6fa;},'QolXq':'ranger-config','fRalD':function(_0x8abf08,_0xec8e33,_0x2e6123){return _0x8abf08(_0xec8e33,_0x2e6123);},'yMmYg':function(_0x4742b5,_0x7bf8ec,_0x3f371a){return _0x4742b5(_0x7bf8ec,_0x3f371a);}},{storageStatePath:_0x44ccfc,tempAuthPath:_0x820ab6}=_0x1c724a?{'storageStatePath':_0x1c724a,'tempAuthPath':undefined}:await _0x2ba135[_0x3d476b(0x117)](resolveLocalAuthPath,_0x2ba135['tylCi'](getEnvDir,_0x1760c9)),_0x572b68=_0x2edc45||_0x2ba135[_0x3d476b(0xe5)](randomUUID),_0x5a6904=join(getRangerDir(),_0x2ba135[_0x3d476b(0xc1)],_0x572b68),_0x4d8367=Boolean(_0x5cadbc[_0x3d476b(0xaf)]),_0x228726=_0x4d8367?{'browserName':_0x2ba135['rjhsF'],'cdpEndpoint':_0x5cadbc[_0x3d476b(0xaf)]}:((()=>{const _0x42a44d=_0x3d476b,{launchOptions:_0x416f48,contextOptions:_0x511650}=buildBrowserOptionsFromSettings(_0x5cadbc,{'headless':_0x3717bd?![]:_0x5cadbc['headless']??!![],'storageStatePath':_0x44ccfc});if(_0x2ba135['uYvYM'](process['getuid']?.(),0x0)){const _0x1f0c6c=[_0x2ba135[_0x42a44d(0xb1)],_0x42a44d(0xfd)],_0x6a7dfe=_0x416f48['args']??[],_0x3f99e9=_0x1f0c6c['filter'](_0x54c54d=>!_0x6a7dfe[_0x42a44d(0x103)](_0x54c54d));_0x416f48['args']=[..._0x6a7dfe,..._0x3f99e9];}return{'browserName':_0x2ba135['rjhsF'],'launchOptions':_0x416f48,'contextOptions':{..._0x511650,'permissions':[_0x2ba135[_0x42a44d(0x121)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4d8367){const _0x1ec1f6=_0x228726['contextOptions'];if(_0x1ec1f6){if(_0x2ba135[_0x3d476b(0xda)](_0x1ec1f6['userAgent'],undefined))delete _0x1ec1f6['userAgent'];if(_0x1ec1f6['storageState']===undefined)delete _0x1ec1f6[_0x3d476b(0xd4)];}}const _0xc49e11={'browser':_0x228726,'outputDir':_0x5a6904,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x3b8cd9;try{const _0x417a64=join(_0x2ba135['fSVML'](tmpdir),_0x2ba135['QolXq']);!_0x2ba135['tylCi'](existsSync,_0x417a64)&&await mkdir(_0x417a64,{'recursive':!![]}),_0x3b8cd9=_0x2ba135['fRalD'](join,_0x417a64,_0x1760c9+'-'+Date['now']()+'-rangerwright.json'),await _0x2ba135['yMmYg'](writeFile,_0x3b8cd9,JSON[_0x3d476b(0xc8)](_0xc49e11,null,0x2));}catch(_0x340f1c){_0x820ab6&&await _0x2ba135['tylCi'](unlink,_0x820ab6)['catch'](()=>{});throw _0x340f1c;}return{'configPath':_0x3b8cd9,'storageStatePath':_0x44ccfc,'tempAuthPath':_0x820ab6,'outputDir':_0x5a6904};}export async function buildNovaActCliConfig(_0xfad99,_0x4c743c,_0x92827a,_0x57ec16,_0x11a0ed){const _0x594207=_0x256d84,_0x283b27={'fQeIk':function(_0x246fd7,_0x13e753,_0xc46833,_0x3a9f97){return _0x246fd7(_0x13e753,_0xc46833,_0x3a9f97);},'aLlLZ':function(_0x4e05d4,_0x53a48c,_0x849a29){return _0x4e05d4(_0x53a48c,_0x849a29);},'NEsyq':_0x594207(0xd8),'Xinnu':'--disable-setuid-sandbox','qUDVG':function(_0x3bb399,_0x263ecb){return _0x3bb399(_0x263ecb);},'LcMmN':_0x594207(0xdc),'SEkBc':function(_0x3a7c97,_0x50b6c2){return _0x3a7c97(_0x50b6c2);}},{storageStatePath:_0xeecaae,tempAuthPath:_0x46f744}=_0x11a0ed?{'storageStatePath':_0x11a0ed,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x4c743c)),_0x3b4418=_0x92827a||randomUUID(),_0x2ecaaf=_0x283b27[_0x594207(0xb2)](join,getRangerDir(),_0x594207(0xa8),_0x3b4418),_0x2d3715=join(_0x2ecaaf,'nova-user-data'),_0xe54974=_0xeecaae?_0x283b27['aLlLZ'](join,_0x2d3715,_0x594207(0x11f)):undefined,{launchOptions:_0x415b95,contextOptions:_0x45cb28}=buildBrowserOptionsFromSettings(_0xfad99,{'headless':_0x57ec16?![]:_0xfad99[_0x594207(0xf9)]??!![],'storageStatePath':_0xeecaae});if(process[_0x594207(0xe3)]?.()===0x0){const _0x42dbf5=[_0x283b27[_0x594207(0xdb)],_0x283b27[_0x594207(0xd2)]],_0x39af89=_0x415b95['args']??[],_0x3f80b6=_0x42dbf5['filter'](_0x136190=>!_0x39af89['includes'](_0x136190));_0x415b95[_0x594207(0x124)]=[..._0x39af89,..._0x3f80b6];}const _0x52f599=typeof _0x415b95[_0x594207(0xdd)]===_0x594207(0xdc)?_0x415b95['executablePath']:_0xeecaae?chromium['executablePath']():undefined;return{'storageStatePath':_0xeecaae,'tempAuthPath':_0x46f744,'baseUrl':_0xfad99[_0x594207(0xb4)],'headless':_0x283b27['qUDVG'](Boolean,_0x415b95['headless']),'userDataDir':_0x2d3715,'browserProfilePath':_0xe54974,'executablePath':_0x52f599,'launchArgs':Array['isArray'](_0x415b95['args'])?_0x415b95['args']['filter'](_0x5c090c=>typeof _0x5c090c==='string'):[],'userAgent':typeof _0x45cb28['userAgent']===_0x283b27['LcMmN']?_0x45cb28['userAgent']:undefined,'extraHTTPHeaders':_0x45cb28[_0x594207(0x116)],'allowInsecureLocalhost':Boolean(_0xfad99['allowInsecureLocalhost']),'safeMode':_0x283b27[_0x594207(0xae)](Boolean,_0xfad99[_0x594207(0x10a)]),'cdpEndpoint':_0xfad99[_0x594207(0xaf)],'isCdpMode':_0x283b27['SEkBc'](Boolean,_0xfad99[_0x594207(0xaf)])};}export function getNestedValue(_0x4c0476,_0x3a8823){const _0x2c0674=_0x256d84,_0x1402d4={'uyogs':function(_0x3309e1,_0x39daba){return _0x3309e1===_0x39daba;},'QwtGO':function(_0x10d47e,_0xcf68cf){return _0x10d47e!==_0xcf68cf;},'cCnFW':'object'},_0x592b3b=parseKeyPath(_0x3a8823);let _0x4c7512=_0x4c0476;for(const _0x5f30d4 of _0x592b3b){if(_0x1402d4['uyogs'](_0x4c7512,null)||_0x1402d4[_0x2c0674(0xbc)](_0x4c7512,undefined)||_0x1402d4[_0x2c0674(0xb5)](typeof _0x4c7512,_0x1402d4['cCnFW']))return undefined;_0x4c7512=_0x4c7512[_0x5f30d4];}return _0x4c7512;}export function setNestedValue(_0x1b2f89,_0x1fd761,_0x5808aa){const _0x238cc5=_0x256d84,_0x9fdbd={'LwRnL':function(_0x99bad4,_0x248eff){return _0x99bad4-_0x248eff;}},_0x3b8d6b=parseKeyPath(_0x1fd761);let _0x105f94=_0x1b2f89;for(let _0x2cd4c9=0x0;_0x2cd4c9<_0x3b8d6b['length']-0x1;_0x2cd4c9++){const _0x470f5c=_0x3b8d6b[_0x2cd4c9];(!(_0x470f5c in _0x105f94)||typeof _0x105f94[_0x470f5c]!==_0x238cc5(0xd9))&&(_0x105f94[_0x470f5c]={}),_0x105f94=_0x105f94[_0x470f5c];}_0x105f94[_0x3b8d6b[_0x9fdbd['LwRnL'](_0x3b8d6b[_0x238cc5(0x110)],0x1)]]=_0x5808aa;}export function deleteNestedValue(_0x2b4635,_0x53950b){const _0x4feb47=_0x256d84,_0x1a91b9={'sRQKC':function(_0xd07b45,_0x30dfb3){return _0xd07b45(_0x30dfb3);},'OmiBB':function(_0xeaea45,_0x30254e){return _0xeaea45<_0x30254e;},'RTNQm':_0x4feb47(0xd9),'kipuw':function(_0x21c92c,_0x3ce0f6){return _0x21c92c===_0x3ce0f6;},'NKzaA':function(_0x2403ce,_0x3199cb){return _0x2403ce!==_0x3199cb;},'Bjqpb':function(_0x123fac,_0x238723){return _0x123fac-_0x238723;},'uFoac':function(_0x3bfd88,_0x51bd66){return _0x3bfd88 in _0x51bd66;}},_0xf80b83=_0x1a91b9['sRQKC'](parseKeyPath,_0x53950b);let _0x28efde=_0x2b4635;for(let _0x40f30a=0x0;_0x1a91b9['OmiBB'](_0x40f30a,_0xf80b83['length']-0x1);_0x40f30a++){if(_0x28efde===null||_0x28efde===undefined||typeof _0x28efde!==_0x1a91b9['RTNQm'])return![];_0x28efde=_0x28efde[_0xf80b83[_0x40f30a]];}if(_0x28efde===null||_0x1a91b9[_0x4feb47(0x118)](_0x28efde,undefined)||_0x1a91b9['NKzaA'](typeof _0x28efde,_0x1a91b9['RTNQm']))return![];const _0x5a52d3=_0xf80b83[_0x1a91b9[_0x4feb47(0x11d)](_0xf80b83['length'],0x1)];if(_0x1a91b9[_0x4feb47(0xa3)](_0x5a52d3,_0x28efde))return delete _0x28efde[_0x5a52d3],!![];return![];}function parseKeyPath(_0x535e8d){const _0x4da6f8=_0x256d84,_0x3de382={'rpyUP':function(_0x213834,_0x10b5bb){return _0x213834===_0x10b5bb;},'ilmWl':_0x4da6f8(0xd1),'iGwTq':_0x4da6f8(0x11c),'zmLPB':'setupHeader','xNJAZ':'setupHeaders'},_0x2b07d6=_0x535e8d[_0x4da6f8(0xf5)]('.');return _0x3de382[_0x4da6f8(0x9e)](_0x2b07d6[0x0],_0x3de382[_0x4da6f8(0x119)])&&(_0x2b07d6[0x0]=_0x3de382['iGwTq']),_0x2b07d6[0x0]===_0x3de382[_0x4da6f8(0x101)]&&(_0x2b07d6[0x0]=_0x3de382[_0x4da6f8(0xa1)]),_0x2b07d6;}export function formatSettings(_0x462771,_0x3cda87=0x0){const _0x4d13b1=_0x256d84,_0x192259={'HeTjg':function(_0x22ddef,_0x444aa5){return _0x22ddef===_0x444aa5;},'FxoRz':'object','OQXMJ':function(_0x1aa100,_0x1bb305){return _0x1aa100!==_0x1bb305;}},_0x4342a7=[],_0x27bbbb='\x20\x20'[_0x4d13b1(0xb6)](_0x3cda87);for(const [_0x17dcd8,_0x1396a4]of Object['entries'](_0x462771)){if(_0x192259[_0x4d13b1(0x9c)](_0x1396a4,undefined))continue;if(typeof _0x1396a4===_0x192259['FxoRz']&&_0x192259['OQXMJ'](_0x1396a4,null)){_0x4342a7['push'](''+_0x27bbbb+_0x17dcd8+':');for(const [_0x53979f,_0x1918d4]of Object['entries'](_0x1396a4)){_0x4342a7[_0x4d13b1(0x108)](_0x27bbbb+'\x20\x20'+_0x53979f+':\x20'+_0x1918d4);}}else _0x4342a7[_0x4d13b1(0x108)](''+_0x27bbbb+_0x17dcd8+':\x20'+_0x1396a4);}return _0x4342a7['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x12d3(){const _0x229c59=['DfiqZ','780KCpiyu','1000lvqnyu','4fLIRRY','2563173bgOBUo','288xRQxbE','2134701CHjpnM','41115ecfdcm','4320868ZPSSYa','ranger/SKILL.md','225026OylBLt','527230nmGtIt','27419bYAQsM'];_0x12d3=function(){return _0x229c59;};return _0x12d3();}function _0x17f7(_0x322428,_0x38844e){_0x322428=_0x322428-0xbe;const _0x12d324=_0x12d3();let _0x17f787=_0x12d324[_0x322428];return _0x17f787;}(function(_0x58d29d,_0x4691a3){const _0x2ccc14=_0x17f7,_0x2d0e2a=_0x58d29d();while(!![]){try{const _0x4db425=-parseInt(_0x2ccc14(0xc5))/0x1*(parseInt(_0x2ccc14(0xbe))/0x2)+-parseInt(_0x2ccc14(0xc1))/0x3+-parseInt(_0x2ccc14(0xc3))/0x4+parseInt(_0x2ccc14(0xc2))/0x5*(-parseInt(_0x2ccc14(0xc0))/0x6)+-parseInt(_0x2ccc14(0xc7))/0x7*(parseInt(_0x2ccc14(0xca))/0x8)+parseInt(_0x2ccc14(0xbf))/0x9+-parseInt(_0x2ccc14(0xc9))/0xa*(-parseInt(_0x2ccc14(0xc6))/0xb);if(_0x4db425===_0x4691a3)break;else _0x2d0e2a['push'](_0x2d0e2a['shift']());}catch(_0x4c6ad0){_0x2d0e2a['push'](_0x2d0e2a['shift']());}}}(_0x12d3,0xdb094));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(_0x3f9998){const _0x672ba6=_0x17f7,_0x801926={'DfiqZ':function(_0x2d4e73,_0x53db3a,_0x5e1630){return _0x2d4e73(_0x53db3a,_0x5e1630);}},_0x21dcd4=join(__dirname,'..','..','skills'),_0xcca2c6=join(_0x21dcd4,_0x3f9998);try{return _0x801926[_0x672ba6(0xc8)](readFileSync,_0xcca2c6,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x23e431=_0x17f7;return readSkillContent(_0x23e431(0xc4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5d55de=_0x16a8;(function(_0x585965,_0x42e86f){const _0x402a1f=_0x16a8,_0x34eafd=_0x585965();while(!![]){try{const _0x27e526=-parseInt(_0x402a1f(0x1f1))/0x1+parseInt(_0x402a1f(0x1ea))/0x2*(parseInt(_0x402a1f(0x1e2))/0x3)+parseInt(_0x402a1f(0x1e8))/0x4+-parseInt(_0x402a1f(0x1f7))/0x5+parseInt(_0x402a1f(0x1ee))/0x6+-parseInt(_0x402a1f(0x1df))/0x7*(parseInt(_0x402a1f(0x1e9))/0x8)+-parseInt(_0x402a1f(0x1e7))/0x9*(-parseInt(_0x402a1f(0x1ed))/0xa);if(_0x27e526===_0x42e86f)break;else _0x34eafd['push'](_0x34eafd['shift']());}catch(_0x7c2d34){_0x34eafd['push'](_0x34eafd['shift']());}}}(_0x1ad2,0xa5267));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';function _0x16a8(_0x1f550a,_0x2f49a7){_0x1f550a=_0x1f550a-0x1db;const _0x1ad22a=_0x1ad2();let _0x16a84b=_0x1ad22a[_0x1f550a];return _0x16a84b;}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5d55de(0x1f2)];function _0x1ad2(){const _0x30ecfe=['wCUdt','\x20\x20Location:\x20','e2e-test-recommender','4536777YJAMob','nFxeI','\x20\x20Skill\x20not\x20found:\x20','176850XCtWVu','MskyW','oDfOH','feature-tracker','aVqBV','36RAgHlO','2317152lTHPlM','16MdmOIn','14QBSQaJ','DesHB','length','4670630MeUiXg','3320586QDdRyF','wWTzA','join','939796dOvSsT','ranger','log','HnoQn','SKILL.md','egSGD','2505740lhaFJN','utf-8','trim','push','CGuCq','filter','EpDhq','warn','BCIEa','opencode'];_0x1ad2=function(){return _0x30ecfe;};return _0x1ad2();}export const DEPRECATED_SKILLS=[_0x5d55de(0x1de),'bug-bash',_0x5d55de(0x1e5)];export async function installSkill(_0x3f1d98,_0x2fa3d8={}){const _0x311eae=_0x5d55de,_0x4fc6df={'CGuCq':'claude','OYoqi':function(_0x22b9be){return _0x22b9be();},'TVwOB':function(_0x3c14d2,_0x4f0ff1,_0x494b6d){return _0x3c14d2(_0x4f0ff1,_0x494b6d);},'GuKMP':function(_0x24e625,_0x45dd99){return _0x24e625(_0x45dd99);},'kgjFT':function(_0x4ae6e8,_0x25749b){return _0x4ae6e8(_0x25749b);},'oDfOH':function(_0x5fab4b,_0x4dc9db,_0x515030){return _0x5fab4b(_0x4dc9db,_0x515030);},'MskyW':function(_0x3a96f3,_0x4ff699){return _0x3a96f3&&_0x4ff699;},'BCIEa':function(_0x3c4620,_0x5cd23b){return _0x3c4620===_0x5cd23b;},'EpDhq':function(_0x25a7d7,_0x38d833,_0x373eaf){return _0x25a7d7(_0x38d833,_0x373eaf);},'HnoQn':function(_0xe7bc4b,_0x3eb94d,_0x613329){return _0xe7bc4b(_0x3eb94d,_0x613329);},'JqhRA':function(_0x2064cd,_0x2197f1){return _0x2064cd(_0x2197f1);},'PpYEf':function(_0x2a7fc5,_0x44ccc4,_0x315207){return _0x2a7fc5(_0x44ccc4,_0x315207);},'aVqBV':'SKILL.md','wWTzA':_0x311eae(0x1f8),'DesHB':function(_0x1fedae,_0x5461fa,_0x5d4d76){return _0x1fedae(_0x5461fa,_0x5d4d76);},'egSGD':function(_0x28a727,_0x3a2bfe,_0x1f1c3b,_0x2070e9){return _0x28a727(_0x3a2bfe,_0x1f1c3b,_0x2070e9);}},{level:level='project',cliVersion:_0x331d0b,platform:platform=_0x4fc6df[_0x311eae(0x1fb)]}=_0x2fa3d8,_0x4a0c19=_0x4fc6df['OYoqi'](getSourceSkillsDir),_0x4a62c1=join(_0x4a0c19,_0x3f1d98),_0x4b2ebf=_0x4fc6df['TVwOB'](join,_0x4a0c19,_0x3f1d98+'.md'),_0x1f6a9a=_0x4fc6df['GuKMP'](existsSync,_0x4a62c1)&&_0x4fc6df['kgjFT'](statSync,_0x4a62c1)['isDirectory']()&&existsSync(_0x4fc6df['oDfOH'](join,_0x4a62c1,_0x311eae(0x1f5))),_0x2d7a03=existsSync(_0x4b2ebf);if(_0x4fc6df[_0x311eae(0x1e3)](!_0x1f6a9a,!_0x2d7a03))return console[_0x311eae(0x1fe)](_0x311eae(0x1e1)+_0x3f1d98),![];const _0x4cacac=_0x4fc6df[_0x311eae(0x1ff)](platform,_0x311eae(0x1db))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4581cf=_0x4fc6df[_0x311eae(0x1fd)](join,_0x4cacac,_0x3f1d98);await _0x4fc6df[_0x311eae(0x1f4)](mkdir,_0x4581cf,{'recursive':!![]});let _0x530666,_0x176373=[];if(_0x1f6a9a){const _0x488149=await _0x4fc6df['JqhRA'](readdir,_0x4a62c1),_0x3a5212=_0x488149[_0x311eae(0x1fc)](_0x860f4e=>_0x860f4e['endsWith']('.md'));for(const _0x27943 of _0x3a5212){const _0x4b6838=_0x4fc6df['PpYEf'](join,_0x4a62c1,_0x27943),_0x54b987=_0x4fc6df[_0x311eae(0x1e4)](join,_0x4581cf,_0x27943);await copyFile(_0x4b6838,_0x54b987),_0x176373[_0x311eae(0x1fa)](_0x27943);}_0x530666=await readFile(join(_0x4a62c1,_0x4fc6df[_0x311eae(0x1e6)]),_0x4fc6df[_0x311eae(0x1ef)]);}else{_0x530666=await _0x4fc6df[_0x311eae(0x1eb)](readFile,_0x4b2ebf,_0x4fc6df['wWTzA']);const _0x530ec8=join(_0x4581cf,_0x4fc6df[_0x311eae(0x1e6)]);await _0x4fc6df[_0x311eae(0x1f6)](writeFile,_0x530ec8,_0x530666,'utf-8'),_0x176373[_0x311eae(0x1fa)](_0x4fc6df['aVqBV']);}const {name:_0x6dfd49}=parseFrontmatter(_0x530666);return console[_0x311eae(0x1f3)]('\x20\x20Installed\x20skill:\x20'+_0x6dfd49),console[_0x311eae(0x1f3)](_0x311eae(0x1dd)+_0x4581cf),_0x176373[_0x311eae(0x1ec)]>0x1&&console[_0x311eae(0x1f3)]('\x20\x20Files:\x20'+_0x176373[_0x311eae(0x1f0)](',\x20')),_0x4fc6df['egSGD'](logLocalAgentInstallation,_0x3f1d98,{'skillDisplayName':_0x6dfd49,'installLevel':level},_0x331d0b)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x3ef390=_0x5d55de,_0x3bce64={'dfbwE':function(_0x397db9,_0x297239,_0x63cfc,_0x4c29ce,_0x340a53){return _0x397db9(_0x297239,_0x63cfc,_0x4c29ce,_0x340a53);},'wCUdt':'skills','nFxeI':function(_0x144dbd,_0x5ec55c,_0x4682e6,_0x38fab7,_0x4aca5b,_0x4ca27a){return _0x144dbd(_0x5ec55c,_0x4682e6,_0x38fab7,_0x4aca5b,_0x4ca27a);},'BakfT':function(_0x1fcd9d,_0x54a755){return _0x1fcd9d(_0x54a755);}},_0x34ed44=[_0x3bce64['dfbwE'](join,__dirname,'..','..',_0x3bce64[_0x3ef390(0x1dc)]),_0x3bce64[_0x3ef390(0x1e0)](join,__dirname,'..','..','..',_0x3bce64[_0x3ef390(0x1dc)])];for(const _0x22452d of _0x34ed44){if(_0x3bce64['BakfT'](existsSync,_0x22452d))return _0x22452d;}return _0x34ed44[0x0];}function parseFrontmatter(_0x5523c0){const _0x33b1e5=_0x5d55de,_0x1948b0=_0x5523c0['match'](/^---\n([\s\S]+?)\n---/);if(!_0x1948b0)throw new Error('Invalid\x20skill\x20frontmatter');const _0x36ee83=_0x1948b0[0x1],_0x1d1e88=_0x36ee83['match'](/name:\s*(.+)/),_0x413fbf=_0x36ee83['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x1d1e88?.[0x1]['trim']()||'','description':_0x413fbf?.[0x1][_0x33b1e5(0x1f9)]()||''};}export async function removeSkill(_0x16b704,_0x5071d1){const _0x4f18dd={'QNYpf':function(_0x29c567,_0xc7822){return _0x29c567(_0xc7822);}},_0x36cff4=getSkillsDir(_0x5071d1),_0x4f4993=join(_0x36cff4,_0x16b704);if(!_0x4f18dd['QNYpf'](existsSync,_0x4f4993))return![];try{return await rm(_0x4f4993,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x16b704),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x16b704),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x54be51=_0x4be4;(function(_0x124c7a,_0x515e87){const _0x4c9f5c=_0x4be4,_0x14b418=_0x124c7a();while(!![]){try{const _0x209e3f=-parseInt(_0x4c9f5c(0x1c8))/0x1*(parseInt(_0x4c9f5c(0x1b3))/0x2)+-parseInt(_0x4c9f5c(0x1c0))/0x3+-parseInt(_0x4c9f5c(0x1c2))/0x4*(parseInt(_0x4c9f5c(0x1c3))/0x5)+parseInt(_0x4c9f5c(0x1bf))/0x6*(parseInt(_0x4c9f5c(0x19f))/0x7)+parseInt(_0x4c9f5c(0x1be))/0x8+parseInt(_0x4c9f5c(0x198))/0x9+parseInt(_0x4c9f5c(0x1b1))/0xa*(parseInt(_0x4c9f5c(0x1bb))/0xb);if(_0x209e3f===_0x515e87)break;else _0x14b418['push'](_0x14b418['shift']());}catch(_0x20c552){_0x14b418['push'](_0x14b418['shift']());}}}(_0x432d,0x1bc54));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3dbb5d,_0x588bcc){const _0xb60a65=_0x4be4,_0x5bb21e={'Agszb':function(_0x132f2a,_0x34d0df){return _0x132f2a<=_0x34d0df;},'WsczF':function(_0x412550,_0x2f6c6a){return _0x412550>_0x2f6c6a;},'acAeP':function(_0x1896da,_0x3ae4da){return _0x1896da&_0x3ae4da;},'OgDTD':function(_0x2c894c,_0x2bb8c5){return _0x2c894c<_0x2bb8c5;},'Fsmvw':function(_0x427bd7,_0x569e7b){return _0x427bd7+_0x569e7b;},'lNXBk':function(_0x30ba75,_0x1c2e30){return _0x30ba75*_0x1c2e30;},'wiCle':function(_0x52d866,_0x5a20c3){return _0x52d866+_0x5a20c3;}};if(_0x588bcc>=_0x3dbb5d['length'])return[0x0,0x0];const _0x4c012b=_0x3dbb5d[_0x588bcc];let _0x3ca29a=0x1,_0x55d398=0x80;while(_0x5bb21e[_0xb60a65(0x1ae)](_0x3ca29a,0x8)&&!(_0x4c012b&_0x55d398)){_0x3ca29a++,_0x55d398>>=0x1;}if(_0x5bb21e['WsczF'](_0x588bcc+_0x3ca29a,_0x3dbb5d['length']))return[0x0,0x0];let _0x56474f=_0x5bb21e['acAeP'](_0x4c012b,_0x55d398-0x1);for(let _0x11b12d=0x1;_0x5bb21e['OgDTD'](_0x11b12d,_0x3ca29a);_0x11b12d++){_0x56474f=_0x5bb21e['Fsmvw'](_0x5bb21e['lNXBk'](_0x56474f,0x100),_0x3dbb5d[_0x5bb21e[_0xb60a65(0x1b2)](_0x588bcc,_0x11b12d)]);}return[_0x56474f,_0x3ca29a];}function readId(_0x28f130,_0x3ca7da){const _0xc64cd6=_0x4be4,_0xc141e9={'eKYiS':function(_0x1fcb44,_0x4db1ca){return _0x1fcb44>=_0x4db1ca;},'Nhbmy':function(_0x2be916,_0xab1c93){return _0x2be916>=_0xab1c93;},'mAGyI':function(_0x76c77,_0x3a5596){return _0x76c77>=_0x3a5596;},'jwStw':function(_0x1e522c,_0x55ce33){return _0x1e522c>=_0x55ce33;},'bKIlB':function(_0x2b4eb4,_0x4de40f){return _0x2b4eb4<_0x4de40f;}};if(_0xc141e9[_0xc64cd6(0x1ad)](_0x3ca7da,_0x28f130['length']))return[0x0,0x0];const _0x11f9ff=_0x28f130[_0x3ca7da];let _0x18eb4f;if(_0xc141e9[_0xc64cd6(0x192)](_0x11f9ff,0x80))_0x18eb4f=0x1;else{if(_0xc141e9['mAGyI'](_0x11f9ff,0x40))_0x18eb4f=0x2;else{if(_0x11f9ff>=0x20)_0x18eb4f=0x3;else{if(_0xc141e9[_0xc64cd6(0x194)](_0x11f9ff,0x10))_0x18eb4f=0x4;else return[_0x11f9ff,0x1];}}}if(_0x3ca7da+_0x18eb4f>_0x28f130[_0xc64cd6(0x1b0)])return[0x0,0x0];let _0x4e91fa=0x0;for(let _0x44ecff=0x0;_0xc141e9['bKIlB'](_0x44ecff,_0x18eb4f);_0x44ecff++){_0x4e91fa=_0x4e91fa*0x100+_0x28f130[_0x3ca7da+_0x44ecff];}return[_0x4e91fa,_0x18eb4f];}function readUint(_0x2f14c0,_0x5d1e8c,_0x11cac5){const _0x5ef0a6=_0x4be4,_0x4df53c={'uyiJC':function(_0x563bba,_0x14bdd5){return _0x563bba+_0x14bdd5;}};let _0xed84c7=0x0;for(let _0x20ee3d=0x0;_0x20ee3d<_0x11cac5;_0x20ee3d++){_0xed84c7=_0x4df53c[_0x5ef0a6(0x18f)](_0xed84c7*0x100,_0x2f14c0[_0x5d1e8c+_0x20ee3d]);}return _0xed84c7;}function isUnknownSize(_0x3c765b,_0x1220db){const _0x39670b=_0x4be4,_0x5485c5={'gECrV':function(_0x1be764,_0x1a4f02){return _0x1be764===_0x1a4f02;},'WexMe':function(_0x495bd3,_0x10757e){return _0x495bd3-_0x10757e;}};return _0x5485c5[_0x39670b(0x18e)](_0x3c765b,_0x5485c5['WexMe'](Math[_0x39670b(0x191)](0x2,0x7*_0x1220db),0x1));}function writeVint(_0x3b600d,_0x1a9e39){const _0x5bd33c=_0x4be4,_0x59dc59={'oAZXf':function(_0x51e1af,_0x49e68b){return _0x51e1af<_0x49e68b;},'BVyxf':function(_0x2353c2,_0x19c39c){return _0x2353c2*_0x19c39c;},'oFaUT':function(_0x40763b,_0x3ffe96){return _0x40763b>=_0x3ffe96;}};let _0x2f4387=_0x1a9e39||0x1;while(_0x59dc59[_0x5bd33c(0x1a4)](Math[_0x5bd33c(0x191)](0x2,_0x59dc59[_0x5bd33c(0x1cb)](0x7,_0x2f4387))-0x2,_0x3b600d))_0x2f4387++;const _0xd492a6=Buffer[_0x5bd33c(0x1b6)](_0x2f4387);for(let _0x3d74da=_0x2f4387-0x1;_0x59dc59[_0x5bd33c(0x195)](_0x3d74da,0x0);_0x3d74da--){_0xd492a6[_0x3d74da]=_0x3b600d&0xff,_0x3b600d=Math['floor'](_0x3b600d/0x100);}return _0xd492a6[0x0]|=0x1<<0x8-_0x2f4387,_0xd492a6;}function writeUint(_0x1e44e,_0x594b2b){const _0x3866e2=_0x4be4,_0x26dc37={'aKHKB':function(_0xadc44e,_0x43d1d3){return _0xadc44e-_0x43d1d3;},'vIyip':function(_0xba86b9,_0x4bdb70){return _0xba86b9&_0x4bdb70;},'KlHEK':function(_0x1da0c6,_0x3e6558){return _0x1da0c6/_0x3e6558;}},_0x446291=Buffer['alloc'](_0x594b2b);for(let _0x3d991f=_0x26dc37['aKHKB'](_0x594b2b,0x1);_0x3d991f>=0x0;_0x3d991f--){_0x446291[_0x3d991f]=_0x26dc37['vIyip'](_0x1e44e,0xff),_0x1e44e=Math[_0x3866e2(0x19e)](_0x26dc37[_0x3866e2(0x1aa)](_0x1e44e,0x100));}return _0x446291;}function writeUnknownSizeVint(_0xe81225){const _0x5530bc=Buffer['alloc'](_0xe81225,0xff);return _0x5530bc[0x0]=0xff>>_0xe81225-0x1,_0x5530bc;}function uintSize(_0x4652c6){const _0x28cf97=_0x4be4,_0x2da16e={'FGThb':function(_0x4a8b07,_0x5a7dac){return _0x4a8b07>_0x5a7dac;},'XxIgy':function(_0x19077b,_0x15138b){return _0x19077b/_0x15138b;}};if(_0x4652c6===0x0)return 0x1;let _0x4bdccf=0x0,_0x237c6e=_0x4652c6;while(_0x2da16e[_0x28cf97(0x1b7)](_0x237c6e,0x0)){_0x4bdccf++,_0x237c6e=Math[_0x28cf97(0x19e)](_0x2da16e['XxIgy'](_0x237c6e,0x100));}return _0x4bdccf;}function _0x432d(){const _0x54ab2c=['UqWTl','alloc','FGThb','TnbnK','Stitched\x20','TwonF','5203AJgHlC','UkoOd','CSodk','510208JHaNqv','12198gLqIai','114504YSmhDL','BjLRJ','13676NoMRDV','160GxiCjY','FZZUn','slice','jXYIX','Pdcuc','3lSFbHH','lSbvo','Jkygl','BVyxf','log','from','mjIOa','Dfvaf','cGJdv','SzjlF','jdqje','gECrV','uyiJC','kybCO','pow','Nhbmy','has','jwStw','oFaUT','YepqM','readInt16BE','604179YjfzKY','rivFW','svhkk','tBbSK','lbnHB','vouno','floor','392GKhSqZ','stitchWebmFiles.ts','bodyBeforeTimestamp','jIwiG','KnJay','oAZXf','endsWith','concat','timestamp','indexOf','push','KlHEK','min','jymZi','eKYiS','Agszb','ZARXS','length','1140fLuJPY','wiCle','24902qQUGZY','uzTxI'];_0x432d=function(){return _0x54ab2c;};return _0x432d();}function findTimestampScale(_0xe60b67,_0x4da6a9){const _0x14b51b=_0x4be4,_0x5bf6ea={'svhkk':function(_0x48452f,_0x58964f){return _0x48452f+_0x58964f;},'BDnzp':function(_0x5ce5af,_0x4831a8,_0x9879b5){return _0x5ce5af(_0x4831a8,_0x9879b5);},'lbnHB':function(_0x5d3a72,_0x1f1820,_0x36db10){return _0x5d3a72(_0x1f1820,_0x36db10);},'TwonF':function(_0x30f64d,_0x36025a,_0x5450b9){return _0x30f64d(_0x36025a,_0x5450b9);},'xTrjZ':function(_0x42cb41,_0x40642d){return _0x42cb41+_0x40642d;},'VKXKn':function(_0x4f1539,_0x2d55c5){return _0x4f1539+_0x2d55c5;},'WqSnM':function(_0x45f00a,_0x3dc040,_0x4eb871){return _0x45f00a(_0x3dc040,_0x4eb871);},'mjIOa':function(_0x445d27,_0x27b304){return _0x445d27+_0x27b304;}};let _0x3ccc3b=_0x4da6a9;const _0x23cc72=Math[_0x14b51b(0x1ab)](_0xe60b67['length'],_0x5bf6ea['svhkk'](_0x4da6a9,0x2710));while(_0x3ccc3b<_0x23cc72){const [_0x1c9467,_0x3ba764]=_0x5bf6ea['BDnzp'](readId,_0xe60b67,_0x3ccc3b),[_0x2ad789,_0x5dde39]=readVint(_0xe60b67,_0x5bf6ea[_0x14b51b(0x19a)](_0x3ccc3b,_0x3ba764));if(_0x1c9467===ID_INFO){let _0x4fb8f=_0x5bf6ea['svhkk'](_0x3ccc3b,_0x3ba764)+_0x5dde39;const _0x3300d4=_0x4fb8f+_0x2ad789;while(_0x4fb8f<_0x3300d4){const [_0x1b6983,_0xa9d663]=_0x5bf6ea[_0x14b51b(0x19c)](readId,_0xe60b67,_0x4fb8f),[_0x58ea0c,_0x3bba59]=_0x5bf6ea[_0x14b51b(0x1ba)](readVint,_0xe60b67,_0x4fb8f+_0xa9d663);if(_0x1b6983===ID_TIMESTAMP_SCALE)return readUint(_0xe60b67,_0x5bf6ea['svhkk'](_0x4fb8f+_0xa9d663,_0x3bba59),_0x58ea0c);_0x4fb8f+=_0x5bf6ea['xTrjZ'](_0x5bf6ea['VKXKn'](_0xa9d663,_0x3bba59),_0x58ea0c);}break;}if(_0x1c9467===ID_CLUSTER)break;if(_0x5bf6ea['WqSnM'](isUnknownSize,_0x2ad789,_0x5dde39))break;_0x3ccc3b+=_0x5bf6ea[_0x14b51b(0x189)](_0x3ba764+_0x5dde39,_0x2ad789);}return 0xf4240;}function _0x4be4(_0x2974cc,_0x20c99c){_0x2974cc=_0x2974cc-0x187;const _0x432d9c=_0x432d();let _0x4be47a=_0x432d9c[_0x2974cc];return _0x4be47a;}function findFirstClusterOffset(_0x293802,_0x3482fc){const _0x4e3063=_0x4be4,_0x5f4d76={'uzTxI':function(_0x517fdc,_0x9efc5b){return _0x517fdc===_0x9efc5b;},'FZZUn':function(_0xf705f9,_0x5a2187,_0x17915a){return _0xf705f9(_0x5a2187,_0x17915a);},'jfQhX':function(_0x255ac9,_0x198cff){return _0x255ac9+_0x198cff;},'hLvMN':function(_0x3f2c7e,_0x57f46d){return _0x3f2c7e+_0x57f46d;}};let _0x35f703=_0x3482fc;while(_0x35f703<_0x293802['length']){const [_0x5e1564,_0x160fad]=readId(_0x293802,_0x35f703);if(_0x5f4d76[_0x4e3063(0x1b4)](_0x5e1564,ID_CLUSTER))return _0x35f703;const [_0x5de5dc,_0x3e9929]=_0x5f4d76[_0x4e3063(0x1c4)](readVint,_0x293802,_0x5f4d76['jfQhX'](_0x35f703,_0x160fad));if(_0x5f4d76['FZZUn'](isUnknownSize,_0x5de5dc,_0x3e9929))return _0x35f703;_0x35f703+=_0x5f4d76['hLvMN'](_0x160fad+_0x3e9929,_0x5de5dc);}return _0x293802['length'];}function findClusterEnd(_0x42b968,_0x2ad624,_0x36e180,_0x23835f){const _0x468406=_0x4be4,_0x727d52={'CZnUl':function(_0x5cf614,_0x18a77b,_0x20b02c){return _0x5cf614(_0x18a77b,_0x20b02c);},'jIwiG':function(_0x4387ba,_0x4f9ea8){return _0x4387ba<_0x4f9ea8;},'VGuqL':function(_0x295e9f,_0x3b76a9,_0x3fcb42){return _0x295e9f(_0x3b76a9,_0x3fcb42);},'cCMIZ':function(_0x44e5e2,_0x58ef31){return _0x44e5e2+_0x58ef31;}};if(!_0x727d52['CZnUl'](isUnknownSize,_0x36e180,_0x23835f))return _0x2ad624+_0x36e180;const _0x348a12=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x467b0a=_0x2ad624;while(_0x727d52[_0x468406(0x1a2)](_0x467b0a,_0x42b968[_0x468406(0x1b0)]-0x4)){const [_0x48d027,_0x161bc6]=readId(_0x42b968,_0x467b0a);if(_0x348a12[_0x468406(0x193)](_0x48d027))return _0x467b0a;const [_0x452432,_0x15a126]=_0x727d52['VGuqL'](readVint,_0x42b968,_0x467b0a+_0x161bc6);if(isUnknownSize(_0x452432,_0x15a126))return _0x42b968['length'];_0x467b0a+=_0x727d52['cCMIZ'](_0x161bc6+_0x15a126,_0x452432);}return _0x42b968['length'];}function extractClusters(_0x5a9fa3,_0x4596da){const _0x520364=_0x4be4,_0x1bb86c={'ZARXS':function(_0x1d8614,_0x4b777c,_0x5bdac0,_0x21433c,_0x2e5b47){return _0x1d8614(_0x4b777c,_0x5bdac0,_0x21433c,_0x2e5b47);},'Pdcuc':function(_0x34523b,_0x3bcc5f){return _0x34523b<_0x3bcc5f;},'oPgDV':function(_0x208de4,_0x302a31,_0x400719){return _0x208de4(_0x302a31,_0x400719);},'TnbnK':function(_0x5ed398,_0x152fd3,_0x208e65){return _0x5ed398(_0x152fd3,_0x208e65);},'QeOUg':function(_0x73b595,_0x3ba192){return _0x73b595+_0x3ba192;},'Dfvaf':function(_0x1a22ca,_0x49f0c2,_0x25660d,_0x1c26b5){return _0x1a22ca(_0x49f0c2,_0x25660d,_0x1c26b5);},'UkoOd':function(_0x1abbcf,_0x31a32e){return _0x1abbcf+_0x31a32e;},'Jkygl':function(_0x45250c,_0x1a4840){return _0x45250c+_0x1a4840;},'KmoqE':function(_0x4c9eba,_0x341507){return _0x4c9eba+_0x341507;},'sUFlu':function(_0x1e2688,_0x27609d,_0x4b441c){return _0x1e2688(_0x27609d,_0x4b441c);},'ffqdk':function(_0x5235ce,_0x4d2713){return _0x5235ce+_0x4d2713;},'hiUFS':function(_0x2ce1f8,_0x1b6ba1){return _0x2ce1f8+_0x1b6ba1;},'jGWVL':function(_0x322ed8,_0x10bace){return _0x322ed8===_0x10bace;}},_0x24768f=[],_0x452b0b=Buffer[_0x520364(0x188)]([0x1f,0x43,0xb6,0x75]);let _0x1b3ec8=0x0;while(_0x1b3ec8<_0x5a9fa3[_0x520364(0x1b0)]){const _0x3997b9=_0x5a9fa3[_0x520364(0x1a8)](_0x452b0b,_0x1b3ec8);if(_0x3997b9===-0x1)break;const [_0x7fe7a5,_0x337203]=readId(_0x5a9fa3,_0x3997b9);if(_0x7fe7a5!==ID_CLUSTER){_0x1b3ec8=_0x3997b9+0x1;continue;}const [_0x35c8c5,_0x4b675b]=readVint(_0x5a9fa3,_0x3997b9+_0x337203),_0x2e1a52=_0x3997b9+_0x337203+_0x4b675b,_0x124ef4=_0x1bb86c[_0x520364(0x1af)](findClusterEnd,_0x5a9fa3,_0x2e1a52,_0x35c8c5,_0x4b675b);let _0x3a711c=_0x2e1a52,_0x578776=0x0,_0x473cc6=0x2,_0x5c74c1=![],_0x370b02=Buffer[_0x520364(0x1b6)](0x0),_0x2d1fe7=Buffer[_0x520364(0x1b6)](0x0);while(_0x1bb86c[_0x520364(0x1c7)](_0x3a711c,_0x124ef4)){const [_0x242975,_0x5e73c5]=_0x1bb86c['oPgDV'](readId,_0x5a9fa3,_0x3a711c),[_0x532820,_0x55806f]=_0x1bb86c[_0x520364(0x1b8)](readVint,_0x5a9fa3,_0x1bb86c['QeOUg'](_0x3a711c,_0x5e73c5));if(_0x242975===ID_TIMESTAMP){_0x578776=_0x1bb86c[_0x520364(0x18a)](readUint,_0x5a9fa3,_0x1bb86c['QeOUg'](_0x3a711c+_0x5e73c5,_0x55806f),_0x532820),_0x473cc6=_0x532820,_0x5c74c1=!![],_0x370b02=_0x5a9fa3[_0x520364(0x1c5)](_0x2e1a52,_0x3a711c);const _0x45a9d5=_0x1bb86c[_0x520364(0x1bc)](_0x1bb86c[_0x520364(0x1ca)](_0x1bb86c['KmoqE'](_0x3a711c,_0x5e73c5),_0x55806f),_0x532820);_0x2d1fe7=_0x5a9fa3[_0x520364(0x1c5)](_0x45a9d5,_0x124ef4);break;}if(_0x242975===ID_CLUSTER)break;if(_0x1bb86c[_0x520364(0x1b8)](isUnknownSize,_0x532820,_0x55806f))break;_0x3a711c+=_0x5e73c5+_0x55806f+_0x532820;}!_0x5c74c1&&(_0x2d1fe7=_0x5a9fa3['slice'](_0x2e1a52,_0x124ef4));let _0x58596c=_0x578776;_0x3a711c=_0x2e1a52;while(_0x1bb86c['Pdcuc'](_0x3a711c,_0x124ef4)){const [_0x55a6a4,_0x2a4214]=readId(_0x5a9fa3,_0x3a711c),[_0x3f4a25,_0x196cb4]=_0x1bb86c['sUFlu'](readVint,_0x5a9fa3,_0x3a711c+_0x2a4214);if(_0x55a6a4===ID_SIMPLE_BLOCK&&_0x3f4a25>=0x4){const _0x2ad473=_0x3a711c+_0x2a4214+_0x196cb4,[,_0x52c4b3]=readVint(_0x5a9fa3,_0x2ad473),_0x4e505c=_0x5a9fa3[_0x520364(0x197)](_0x1bb86c['ffqdk'](_0x2ad473,_0x52c4b3)),_0x2581b8=_0x1bb86c['hiUFS'](_0x578776,_0x4e505c);if(_0x2581b8>_0x58596c)_0x58596c=_0x2581b8;}if(_0x1bb86c['jGWVL'](_0x55a6a4,ID_CLUSTER))break;if(isUnknownSize(_0x3f4a25,_0x196cb4))break;_0x3a711c+=_0x2a4214+_0x196cb4+_0x3f4a25;}_0x24768f[_0x520364(0x1a9)]({'timestamp':_0x578776,'maxTicks':_0x58596c,'bodyBeforeTimestamp':_0x370b02,'bodyAfterTimestamp':_0x2d1fe7,'timestampElementSize':_0x473cc6}),_0x1b3ec8=_0x124ef4;}return _0x24768f;}function parseWebm(_0x38f70c){const _0xe542de=_0x4be4,_0x11ee5e={'lSbvo':function(_0x34bc9f,_0x37f6c4,_0x55e345){return _0x34bc9f(_0x37f6c4,_0x55e345);},'SzjlF':function(_0x35a91c,_0x8e0739){return _0x35a91c!==_0x8e0739;},'YepqM':function(_0x5ba3b2,_0xe10f4e,_0x448491){return _0x5ba3b2(_0xe10f4e,_0x448491);},'cUkGb':function(_0x3ceb9f,_0xa4e366){return _0x3ceb9f+_0xa4e366;},'MXWvJ':function(_0x586abc,_0x1a2c11,_0x5372db){return _0x586abc(_0x1a2c11,_0x5372db);},'tBbSK':function(_0x401ecc,_0x50dc0b){return _0x401ecc>_0x50dc0b;}};let _0x584c19=0x0;const [,_0x2e1c03]=readId(_0x38f70c,_0x584c19),[_0x305eb8,_0x2e4237]=readVint(_0x38f70c,_0x584c19+_0x2e1c03);_0x584c19+=_0x2e1c03+_0x2e4237+_0x305eb8;const [_0x59cd2e,_0x40403e]=_0x11ee5e[_0xe542de(0x1c9)](readId,_0x38f70c,_0x584c19);if(_0x11ee5e[_0xe542de(0x18c)](_0x59cd2e,ID_SEGMENT))return null;const [,_0x3580f1]=_0x11ee5e[_0xe542de(0x196)](readVint,_0x38f70c,_0x584c19+_0x40403e),_0x150f36=_0x11ee5e['cUkGb'](_0x584c19,_0x40403e)+_0x3580f1,_0xb8cfcb=_0x11ee5e['MXWvJ'](findTimestampScale,_0x38f70c,_0x150f36),_0x923164=findFirstClusterOffset(_0x38f70c,_0x150f36),_0x240c97=_0x38f70c[_0xe542de(0x1c5)](0x0,_0x923164),_0x18be09=extractClusters(_0x38f70c,_0xb8cfcb);let _0x4cf037=0x0;for(const _0x4650b4 of _0x18be09){if(_0x11ee5e[_0xe542de(0x19b)](_0x4650b4['maxTicks'],_0x4cf037))_0x4cf037=_0x4650b4['maxTicks'];}return{'header':_0x240c97,'clusters':_0x18be09,'timestampScale':_0xb8cfcb,'maxTimestampTicks':_0x4cf037};}function buildCluster(_0x3ac606,_0x4bb4dc,_0x406701){const _0x575816=_0x4be4,_0x25017b={'CSodk':function(_0x122cd4,_0x31c71c){return _0x122cd4(_0x31c71c);}},_0x57c486=Buffer[_0x575816(0x188)]([0x1f,0x43,0xb6,0x75]),_0x1b4374=Math['max'](0x4,_0x25017b['CSodk'](uintSize,_0x3ac606)),_0x1ac0da=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x1b4374),writeUint(_0x3ac606,_0x1b4374)]),_0x2f6ae7=Buffer['concat']([_0x4bb4dc,_0x1ac0da,_0x406701]),_0x4669b7=_0x25017b[_0x575816(0x1bd)](writeVint,_0x2f6ae7['length']);return Buffer['concat']([_0x57c486,_0x4669b7,_0x2f6ae7]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2d1484){const _0x5a0057=_0x4be4,_0xd6499f={'jXYIX':function(_0x5762be,_0x27af47,_0x40ce98){return _0x5762be(_0x27af47,_0x40ce98);},'gouHN':function(_0x59e441,_0x46c615){return _0x59e441+_0x46c615;},'UqWTl':function(_0x2f0535,_0x3b1aa3){return _0x2f0535+_0x3b1aa3;},'aTtiP':function(_0x469542,_0x15fad1){return _0x469542(_0x15fad1);},'IqIfL':function(_0x1a3ac9,_0x452df4){return _0x1a3ac9+_0x452df4;},'ZgTvT':function(_0x35cd42,_0x445902){return _0x35cd42<_0x445902;},'cGJdv':function(_0x318eeb,_0x36960a,_0x25f6e7){return _0x318eeb(_0x36960a,_0x25f6e7);},'KnJay':function(_0xd6c3e,_0x25860d){return _0xd6c3e===_0x25860d;},'jymZi':function(_0x186834,_0x11f098){return _0x186834+_0x11f098;},'tqQCh':function(_0x5bed7f,_0x473602){return _0x5bed7f<_0x473602;},'DZPDF':function(_0x4d3b5e,_0x48de5d){return _0x4d3b5e!==_0x48de5d;},'nckdJ':function(_0x608031,_0x7c1822){return _0x608031+_0x7c1822;},'SvyFs':function(_0x7e760d,_0x195f30){return _0x7e760d+_0x195f30;}},_0x2744c8=Buffer['from'](_0x2d1484);let _0x27097a=0x0;const [,_0x366b49]=readId(_0x2744c8,_0x27097a),[_0x136481,_0xbd8669]=_0xd6499f[_0x5a0057(0x1c6)](readVint,_0x2744c8,_0x27097a+_0x366b49),_0x30aea3=_0xd6499f['gouHN'](_0xd6499f['UqWTl'](_0x27097a,_0x366b49),_0xbd8669)+_0x136481,[,_0xfd945]=readId(_0x2744c8,_0x30aea3),[,_0x444220]=readVint(_0x2744c8,_0x30aea3+_0xfd945),_0x118b72=_0xd6499f[_0x5a0057(0x1b5)](_0x30aea3+_0xfd945,_0x444220),_0x4970f3=_0xd6499f['aTtiP'](writeUnknownSizeVint,_0x444220);_0x4970f3['copy'](_0x2744c8,_0x30aea3+_0xfd945);let _0x2e70af=_0x118b72;const _0x4d6cc0=Math[_0x5a0057(0x1ab)](_0x2744c8[_0x5a0057(0x1b0)],_0xd6499f['IqIfL'](_0x118b72,0x2710));while(_0xd6499f['ZgTvT'](_0x2e70af,_0x4d6cc0)){const [_0x48dc35,_0x5a0350]=_0xd6499f[_0x5a0057(0x18b)](readId,_0x2744c8,_0x2e70af),[_0x332b5c,_0x271e61]=_0xd6499f['jXYIX'](readVint,_0x2744c8,_0x2e70af+_0x5a0350);if(_0xd6499f[_0x5a0057(0x1a3)](_0x48dc35,ID_CLUSTER))break;if(_0xd6499f['cGJdv'](isUnknownSize,_0x332b5c,_0x271e61))break;if(_0xd6499f['KnJay'](_0x48dc35,ID_INFO)){const _0xdaaa0a=_0x2e70af+_0x5a0350+_0x271e61,_0x5e1c41=_0xd6499f[_0x5a0057(0x1ac)](_0xdaaa0a,_0x332b5c),_0x510fd0=[];let _0x3f6c47=_0xdaaa0a;while(_0xd6499f['tqQCh'](_0x3f6c47,_0x5e1c41)){const [_0x128ede,_0x438727]=readId(_0x2744c8,_0x3f6c47),[_0x592c8e,_0x31ab66]=readVint(_0x2744c8,_0x3f6c47+_0x438727),_0x2a8769=_0xd6499f[_0x5a0057(0x1ac)](_0x438727+_0x31ab66,_0x592c8e);_0xd6499f['DZPDF'](_0x128ede,ID_DURATION)&&_0x510fd0[_0x5a0057(0x1a9)](_0x2744c8['slice'](_0x3f6c47,_0xd6499f['nckdJ'](_0x3f6c47,_0x2a8769))),_0x3f6c47+=_0x2a8769;}const _0xc1e12f=Buffer['concat'](_0x510fd0),_0x332e54=Buffer['concat']([_0x2744c8['slice'](_0x2e70af,_0xd6499f['SvyFs'](_0x2e70af,_0x5a0350)),_0xd6499f[_0x5a0057(0x1c6)](writeVint,_0xc1e12f[_0x5a0057(0x1b0)],_0x271e61)]);return Buffer['concat']([_0x2744c8[_0x5a0057(0x1c5)](0x0,_0x2e70af),_0x332e54,_0xc1e12f,_0x2744c8['slice'](_0x5e1c41)]);}_0x2e70af+=_0x5a0350+_0x271e61+_0x332b5c;}return _0x2744c8;}export function stitchWebmFiles(_0x3dd853,_0x49c5cf){const _0x3c59ac=_0x4be4,_0x59d8dd={'fZbCA':function(_0x14052d,_0x13a4d8){return _0x14052d<=_0x13a4d8;},'vouno':function(_0x27f9f4,_0x3a8d37){return _0x27f9f4(_0x3a8d37);},'BjLRJ':function(_0x4e6933,_0x362dca){return _0x4e6933===_0x362dca;},'kybCO':function(_0x68743,_0x3fa1){return _0x68743<_0x3fa1;},'rivFW':function(_0x8454b2,_0x1fb5bb){return _0x8454b2+_0x1fb5bb;},'jdqje':function(_0x11da8f,_0x51f7c8,_0x2a84e4){return _0x11da8f(_0x51f7c8,_0x2a84e4);}};if(_0x59d8dd['fZbCA'](_0x3dd853[_0x3c59ac(0x1b0)],0x1))return![];const _0x4fcfef=[];for(const _0x1ca901 of _0x3dd853){const _0x1fc31c=_0x59d8dd[_0x3c59ac(0x19d)](readFileSync,_0x1ca901),_0x3cfc89=parseWebm(_0x1fc31c);if(!_0x3cfc89||_0x59d8dd[_0x3c59ac(0x1c1)](_0x3cfc89['clusters'][_0x3c59ac(0x1b0)],0x0))return![];_0x4fcfef[_0x3c59ac(0x1a9)](_0x3cfc89);}const _0x288ad7=_0x4fcfef[0x0],_0x143adb=rebuildHeaderWithoutDuration(_0x288ad7['header']),_0x2c5c9d=[_0x143adb];let _0x35d60d=0x0;for(let _0x161cf3=0x0;_0x59d8dd[_0x3c59ac(0x190)](_0x161cf3,_0x4fcfef[_0x3c59ac(0x1b0)]);_0x161cf3++){const _0x5b53b3=_0x4fcfef[_0x161cf3];for(const _0x461324 of _0x5b53b3['clusters']){const _0x683a65=_0x461324[_0x3c59ac(0x1a7)]+_0x35d60d;_0x2c5c9d['push'](buildCluster(_0x683a65,_0x461324[_0x3c59ac(0x1a1)],_0x461324['bodyAfterTimestamp']));}const _0x5b147a=0x1e;_0x35d60d+=_0x59d8dd[_0x3c59ac(0x199)](_0x5b53b3['maxTimestampTicks'],_0x5b147a);}return _0x59d8dd[_0x3c59ac(0x18d)](writeFileSync,_0x49c5cf,Buffer[_0x3c59ac(0x1a6)](_0x2c5c9d)),!![];}if(process['argv'][0x1]?.[_0x54be51(0x1a5)](_0x54be51(0x1a0))||process['argv'][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0x54be51(0x1c5)](0x2);args[_0x54be51(0x1b0)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x54be51(0x187)](_0x54be51(0x1b9)+inputs[_0x54be51(0x1b0)]+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|
|
1
|
+
const _0x52e8d8=_0x1270;(function(_0x46325a,_0x1d3ead){const _0x12f229=_0x1270,_0x1aeee5=_0x46325a();while(!![]){try{const _0x321c74=parseInt(_0x12f229(0xf2))/0x1+parseInt(_0x12f229(0xea))/0x2*(parseInt(_0x12f229(0xf8))/0x3)+parseInt(_0x12f229(0xfa))/0x4*(parseInt(_0x12f229(0x113))/0x5)+-parseInt(_0x12f229(0xde))/0x6+parseInt(_0x12f229(0x102))/0x7+parseInt(_0x12f229(0x10b))/0x8*(parseInt(_0x12f229(0x10f))/0x9)+parseInt(_0x12f229(0x100))/0xa*(-parseInt(_0x12f229(0x106))/0xb);if(_0x321c74===_0x1d3ead)break;else _0x1aeee5['push'](_0x1aeee5['shift']());}catch(_0x3d99c2){_0x1aeee5['push'](_0x1aeee5['shift']());}}}(_0x4f30,0x4de46));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x29a2ce,_0x5ec64b){const _0x4eaf11=_0x1270,_0x350b2f={'vYZzQ':function(_0x5e888d,_0x23f5ef){return _0x5e888d<=_0x23f5ef;},'UHvqz':function(_0x728725,_0x473201){return _0x728725&_0x473201;},'YsuHk':function(_0x30b500,_0x561401){return _0x30b500>_0x561401;},'mQxpQ':function(_0x20a571,_0x236f57){return _0x20a571+_0x236f57;},'cBQBK':function(_0x5c9571,_0x23e84c){return _0x5c9571&_0x23e84c;},'HtooG':function(_0x8dd0f2,_0x4e7db0){return _0x8dd0f2*_0x4e7db0;}};if(_0x5ec64b>=_0x29a2ce['length'])return[0x0,0x0];const _0x1896dc=_0x29a2ce[_0x5ec64b];let _0xd8e2dd=0x1,_0x3c7eb5=0x80;while(_0x350b2f['vYZzQ'](_0xd8e2dd,0x8)&&!_0x350b2f['UHvqz'](_0x1896dc,_0x3c7eb5)){_0xd8e2dd++,_0x3c7eb5>>=0x1;}if(_0x350b2f[_0x4eaf11(0xdc)](_0x350b2f[_0x4eaf11(0xf3)](_0x5ec64b,_0xd8e2dd),_0x29a2ce[_0x4eaf11(0x111)]))return[0x0,0x0];let _0x4ddad6=_0x350b2f[_0x4eaf11(0xfd)](_0x1896dc,_0x3c7eb5-0x1);for(let _0x4de75c=0x1;_0x4de75c<_0xd8e2dd;_0x4de75c++){_0x4ddad6=_0x350b2f['HtooG'](_0x4ddad6,0x100)+_0x29a2ce[_0x350b2f[_0x4eaf11(0xf3)](_0x5ec64b,_0x4de75c)];}return[_0x4ddad6,_0xd8e2dd];}function readId(_0x5be3ae,_0x411022){const _0x5b2e0c=_0x1270,_0x166355={'qZJUj':function(_0x363767,_0x37dd28){return _0x363767>=_0x37dd28;},'UwjEc':function(_0x3d40a9,_0x37d696){return _0x3d40a9>_0x37d696;},'vRtiT':function(_0x2142bd,_0x519a56){return _0x2142bd<_0x519a56;},'McKgc':function(_0x5d6bb2,_0x5ebb15){return _0x5d6bb2+_0x5ebb15;}};if(_0x411022>=_0x5be3ae[_0x5b2e0c(0x111)])return[0x0,0x0];const _0x18ae1d=_0x5be3ae[_0x411022];let _0x2de952;if(_0x18ae1d>=0x80)_0x2de952=0x1;else{if(_0x18ae1d>=0x40)_0x2de952=0x2;else{if(_0x166355['qZJUj'](_0x18ae1d,0x20))_0x2de952=0x3;else{if(_0x18ae1d>=0x10)_0x2de952=0x4;else return[_0x18ae1d,0x1];}}}if(_0x166355[_0x5b2e0c(0x10a)](_0x411022+_0x2de952,_0x5be3ae['length']))return[0x0,0x0];let _0x23d999=0x0;for(let _0x2d9be4=0x0;_0x166355['vRtiT'](_0x2d9be4,_0x2de952);_0x2d9be4++){_0x23d999=_0x23d999*0x100+_0x5be3ae[_0x166355['McKgc'](_0x411022,_0x2d9be4)];}return[_0x23d999,_0x2de952];}function readUint(_0x38857e,_0x138018,_0x3d5918){const _0x2ea067=_0x1270,_0x17f06b={'fuOjs':function(_0x1e8539,_0x21c115){return _0x1e8539+_0x21c115;},'ePmHO':function(_0x3fa330,_0x27f64e){return _0x3fa330*_0x27f64e;}};let _0x1d8125=0x0;for(let _0x35ced4=0x0;_0x35ced4<_0x3d5918;_0x35ced4++){_0x1d8125=_0x17f06b['fuOjs'](_0x17f06b[_0x2ea067(0x109)](_0x1d8125,0x100),_0x38857e[_0x138018+_0x35ced4]);}return _0x1d8125;}function _0x4f30(){const _0x40a48b=['rzQMu','WnecC','MfWAY','YsuHk','MOzpr','2088738psXlyg','pow','qlFTN','from','fGuWm','MjFEg','RyAQH','vhKRO','lABUb','Wqqwh','FgLyV','timestamp','17998iDJRrG','BoumI','WppSc','PsKfM','argv','PvBYe','rmYxv','log','409786udGgel','mQxpQ','ZQBEX','JsCkb','lfCFG','error','183YSXQhL','rySAT','4etuyec','oIriY','slice','cBQBK','IIePB','BeGKw','32510geMFIJ','EsVxP','482202yNHnsu','gEOtT','concat','alloc','3322eMnRvH','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','push','ePmHO','UwjEc','1344296bpRmYh','has','FEprI','SCFtd','9ynTAVk','pWESk','length','SGEDy','2266615BmXoyx','endsWith','leWFf','LqxTu','indexOf','header','WWrWF','maxTicks','uJDMh','qfYao'];_0x4f30=function(){return _0x40a48b;};return _0x4f30();}function isUnknownSize(_0x225a4c,_0x20a2cf){return _0x225a4c===Math['pow'](0x2,0x7*_0x20a2cf)-0x1;}function writeVint(_0x45faa7,_0x1a543f){const _0x27ff68=_0x1270,_0x4059a2={'gEOtT':function(_0x2f2001,_0x32f877){return _0x2f2001-_0x32f877;},'Cppqi':function(_0x23953c,_0x589946){return _0x23953c<<_0x589946;}};let _0x5a75a1=_0x1a543f||0x1;while(_0x4059a2[_0x27ff68(0x103)](Math[_0x27ff68(0xdf)](0x2,0x7*_0x5a75a1),0x2)<_0x45faa7)_0x5a75a1++;const _0x1c39be=Buffer['alloc'](_0x5a75a1);for(let _0x1eff71=_0x5a75a1-0x1;_0x1eff71>=0x0;_0x1eff71--){_0x1c39be[_0x1eff71]=_0x45faa7&0xff,_0x45faa7=Math['floor'](_0x45faa7/0x100);}return _0x1c39be[0x0]|=_0x4059a2['Cppqi'](0x1,0x8-_0x5a75a1),_0x1c39be;}function _0x1270(_0x1c270b,_0x400115){_0x1c270b=_0x1c270b-0xd0;const _0x4f30b1=_0x4f30();let _0x127040=_0x4f30b1[_0x1c270b];return _0x127040;}function writeUint(_0x3d1be8,_0x29fb42){const _0x3cff22=_0x1270,_0x41edf9={'KGEhd':function(_0x3d8f6f,_0x3a7a44){return _0x3d8f6f-_0x3a7a44;},'leWFf':function(_0x47300c,_0x4ac17e){return _0x47300c>=_0x4ac17e;},'uJDMh':function(_0xceac29,_0x4fb8c4){return _0xceac29/_0x4fb8c4;}},_0x3311f9=Buffer[_0x3cff22(0x105)](_0x29fb42);for(let _0x489be0=_0x41edf9['KGEhd'](_0x29fb42,0x1);_0x41edf9[_0x3cff22(0xd1)](_0x489be0,0x0);_0x489be0--){_0x3311f9[_0x489be0]=_0x3d1be8&0xff,_0x3d1be8=Math['floor'](_0x41edf9[_0x3cff22(0xd7)](_0x3d1be8,0x100));}return _0x3311f9;}function writeUnknownSizeVint(_0x44c1c0){const _0x16365b=_0x1270,_0x462bcc={'MfWAY':function(_0x48304d,_0x1ab319){return _0x48304d>>_0x1ab319;}},_0x3181b6=Buffer[_0x16365b(0x105)](_0x44c1c0,0xff);return _0x3181b6[0x0]=_0x462bcc[_0x16365b(0xdb)](0xff,_0x44c1c0-0x1),_0x3181b6;}function uintSize(_0x5880b8){const _0x1c7d12=_0x1270,_0x2d3140={'pWESk':function(_0x5603a9,_0x1afb29){return _0x5603a9===_0x1afb29;},'AcECD':function(_0x8ac3e0,_0x1f1c64){return _0x8ac3e0>_0x1f1c64;}};if(_0x2d3140[_0x1c7d12(0x110)](_0x5880b8,0x0))return 0x1;let _0x2b37db=0x0,_0xbe0629=_0x5880b8;while(_0x2d3140['AcECD'](_0xbe0629,0x0)){_0x2b37db++,_0xbe0629=Math['floor'](_0xbe0629/0x100);}return _0x2b37db;}function findTimestampScale(_0x3af4d6,_0x4f74cd){const _0x216f83=_0x1270,_0x426f2a={'fGuWm':function(_0x56a734,_0x898425){return _0x56a734+_0x898425;},'OlUxo':function(_0x504d3b,_0x113432){return _0x504d3b<_0x113432;},'oIriY':function(_0x547e96,_0x248a6e,_0x4229e2){return _0x547e96(_0x248a6e,_0x4229e2);},'ocJeV':function(_0x59353e,_0x5ba994){return _0x59353e===_0x5ba994;},'WWrWF':function(_0x4d2c72,_0x3f8dde,_0x297525,_0x18aad3){return _0x4d2c72(_0x3f8dde,_0x297525,_0x18aad3);},'ZQBEX':function(_0x9a7b13,_0x41106a){return _0x9a7b13+_0x41106a;}};let _0x30698b=_0x4f74cd;const _0xca9c7=Math['min'](_0x3af4d6[_0x216f83(0x111)],_0x426f2a['fGuWm'](_0x4f74cd,0x2710));while(_0x426f2a['OlUxo'](_0x30698b,_0xca9c7)){const [_0x18143b,_0x118b70]=readId(_0x3af4d6,_0x30698b),[_0x25dd47,_0x474e98]=_0x426f2a[_0x216f83(0xfb)](readVint,_0x3af4d6,_0x426f2a['fGuWm'](_0x30698b,_0x118b70));if(_0x18143b===ID_INFO){let _0x128277=_0x30698b+_0x118b70+_0x474e98;const _0x14ea38=_0x128277+_0x25dd47;while(_0x128277<_0x14ea38){const [_0x26225b,_0x429ef0]=readId(_0x3af4d6,_0x128277),[_0x3b359f,_0x47cc42]=_0x426f2a[_0x216f83(0xfb)](readVint,_0x3af4d6,_0x426f2a[_0x216f83(0xe2)](_0x128277,_0x429ef0));if(_0x426f2a['ocJeV'](_0x26225b,ID_TIMESTAMP_SCALE))return _0x426f2a[_0x216f83(0xd5)](readUint,_0x3af4d6,_0x128277+_0x429ef0+_0x47cc42,_0x3b359f);_0x128277+=_0x426f2a['fGuWm'](_0x426f2a['fGuWm'](_0x429ef0,_0x47cc42),_0x3b359f);}break;}if(_0x18143b===ID_CLUSTER)break;if(_0x426f2a[_0x216f83(0xfb)](isUnknownSize,_0x25dd47,_0x474e98))break;_0x30698b+=_0x426f2a[_0x216f83(0xf4)](_0x118b70+_0x474e98,_0x25dd47);}return 0xf4240;}function findFirstClusterOffset(_0x4ceb43,_0x37260d){const _0x1913a6=_0x1270,_0x446cac={'mEzRJ':function(_0x5c45a1,_0x26671a,_0x2ddc5d){return _0x5c45a1(_0x26671a,_0x2ddc5d);},'rmYxv':function(_0x3095d0,_0x4f2b16,_0x4b3b3c){return _0x3095d0(_0x4f2b16,_0x4b3b3c);}};let _0x387a6c=_0x37260d;while(_0x387a6c<_0x4ceb43[_0x1913a6(0x111)]){const [_0x3c0f83,_0x3e8e5c]=readId(_0x4ceb43,_0x387a6c);if(_0x3c0f83===ID_CLUSTER)return _0x387a6c;const [_0x158a5e,_0x52133d]=_0x446cac['mEzRJ'](readVint,_0x4ceb43,_0x387a6c+_0x3e8e5c);if(_0x446cac[_0x1913a6(0xf0)](isUnknownSize,_0x158a5e,_0x52133d))return _0x387a6c;_0x387a6c+=_0x3e8e5c+_0x52133d+_0x158a5e;}return _0x4ceb43['length'];}function findClusterEnd(_0x125394,_0x1e6cef,_0x4c06b8,_0x5df894){const _0x4f2761=_0x1270,_0x1b1742={'Wqqwh':function(_0x61205f,_0x367815){return _0x61205f+_0x367815;},'rzQMu':function(_0x219aef,_0x4cde8f,_0x333f54){return _0x219aef(_0x4cde8f,_0x333f54);}};if(!isUnknownSize(_0x4c06b8,_0x5df894))return _0x1b1742[_0x4f2761(0xe7)](_0x1e6cef,_0x4c06b8);const _0x1468f5=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3aebd2=_0x1e6cef;while(_0x3aebd2<_0x125394[_0x4f2761(0x111)]-0x4){const [_0x5636a1,_0x5d8334]=readId(_0x125394,_0x3aebd2);if(_0x1468f5[_0x4f2761(0x10c)](_0x5636a1))return _0x3aebd2;const [_0x41f870,_0x10cb0d]=_0x1b1742[_0x4f2761(0xd9)](readVint,_0x125394,_0x3aebd2+_0x5d8334);if(isUnknownSize(_0x41f870,_0x10cb0d))return _0x125394['length'];_0x3aebd2+=_0x1b1742['Wqqwh'](_0x1b1742['Wqqwh'](_0x5d8334,_0x10cb0d),_0x41f870);}return _0x125394['length'];}function extractClusters(_0x155c5f,_0x139e12){const _0x23fbd4=_0x1270,_0x5aa877={'WxEoj':function(_0x2f71c7,_0x1c0cf7){return _0x2f71c7<_0x1c0cf7;},'rySAT':function(_0x3d3051,_0x2786fd){return _0x3d3051!==_0x2786fd;},'lABUb':function(_0x1350bc,_0x226e73){return _0x1350bc+_0x226e73;},'EsVxP':function(_0x5bbff3,_0x2bed70){return _0x5bbff3+_0x2bed70;},'MOzpr':function(_0x54a576,_0x5c5cf5){return _0x54a576<_0x5c5cf5;},'BoumI':function(_0x1ca08f,_0x1923b5){return _0x1ca08f+_0x1923b5;},'BeGKw':function(_0x38c81e,_0xa5183b){return _0x38c81e===_0xa5183b;},'FEprI':function(_0x37c1d5,_0x353458){return _0x37c1d5+_0x353458;},'AXvOS':function(_0x153394,_0x3407b4){return _0x153394===_0x3407b4;},'oYTEz':function(_0x5a2c43,_0x3e8ffa){return _0x5a2c43+_0x3e8ffa;},'KoRWP':function(_0x27bf84,_0x5a04a2){return _0x27bf84<_0x5a04a2;},'cFUYb':function(_0x5b251d,_0x1235ca){return _0x5b251d+_0x1235ca;},'FhiBu':function(_0x2076bc,_0x214be4){return _0x2076bc+_0x214be4;},'ukvYT':function(_0x2abcf5,_0x5d5ca2,_0x11666e){return _0x2abcf5(_0x5d5ca2,_0x11666e);},'GpFEM':function(_0x5a27db,_0x382155){return _0x5a27db+_0x382155;},'RyAQH':function(_0x281997,_0x577e75,_0x1a23ab){return _0x281997(_0x577e75,_0x1a23ab);},'ZrdFu':function(_0x4eb9f8,_0x486973){return _0x4eb9f8+_0x486973;}},_0x5a505d=[],_0x1d1045=Buffer[_0x23fbd4(0xe1)]([0x1f,0x43,0xb6,0x75]);let _0x40c4f9=0x0;while(_0x5aa877['WxEoj'](_0x40c4f9,_0x155c5f[_0x23fbd4(0x111)])){const _0x26d8c6=_0x155c5f[_0x23fbd4(0xd3)](_0x1d1045,_0x40c4f9);if(_0x26d8c6===-0x1)break;const [_0x105a5d,_0x2a9ac9]=readId(_0x155c5f,_0x26d8c6);if(_0x5aa877[_0x23fbd4(0xf9)](_0x105a5d,ID_CLUSTER)){_0x40c4f9=_0x5aa877[_0x23fbd4(0xe6)](_0x26d8c6,0x1);continue;}const [_0x24f938,_0x58572c]=readVint(_0x155c5f,_0x26d8c6+_0x2a9ac9),_0x4dfaff=_0x5aa877[_0x23fbd4(0x101)](_0x26d8c6,_0x2a9ac9)+_0x58572c,_0x13f7a7=findClusterEnd(_0x155c5f,_0x4dfaff,_0x24f938,_0x58572c);let _0x435ca3=_0x4dfaff,_0xa0dbad=0x0,_0x5c28b1=0x2,_0x4d821a=![],_0x2c696f=Buffer['alloc'](0x0),_0x4e1138=Buffer[_0x23fbd4(0x105)](0x0);while(_0x5aa877[_0x23fbd4(0xdd)](_0x435ca3,_0x13f7a7)){const [_0x43faa9,_0x1d43dd]=readId(_0x155c5f,_0x435ca3),[_0x4b7d82,_0x155535]=readVint(_0x155c5f,_0x5aa877[_0x23fbd4(0xeb)](_0x435ca3,_0x1d43dd));if(_0x5aa877['BeGKw'](_0x43faa9,ID_TIMESTAMP)){_0xa0dbad=readUint(_0x155c5f,_0x5aa877['BoumI'](_0x435ca3,_0x1d43dd)+_0x155535,_0x4b7d82),_0x5c28b1=_0x4b7d82,_0x4d821a=!![],_0x2c696f=_0x155c5f['slice'](_0x4dfaff,_0x435ca3);const _0x39e3a9=_0x5aa877[_0x23fbd4(0x10d)](_0x435ca3+_0x1d43dd+_0x155535,_0x4b7d82);_0x4e1138=_0x155c5f[_0x23fbd4(0xfc)](_0x39e3a9,_0x13f7a7);break;}if(_0x5aa877['AXvOS'](_0x43faa9,ID_CLUSTER))break;if(isUnknownSize(_0x4b7d82,_0x155535))break;_0x435ca3+=_0x5aa877['BoumI'](_0x5aa877['oYTEz'](_0x1d43dd,_0x155535),_0x4b7d82);}!_0x4d821a&&(_0x4e1138=_0x155c5f[_0x23fbd4(0xfc)](_0x4dfaff,_0x13f7a7));let _0x3caf50=_0xa0dbad;_0x435ca3=_0x4dfaff;while(_0x5aa877['KoRWP'](_0x435ca3,_0x13f7a7)){const [_0x5de77a,_0x413d10]=readId(_0x155c5f,_0x435ca3),[_0x153779,_0x4e9ea6]=readVint(_0x155c5f,_0x5aa877['cFUYb'](_0x435ca3,_0x413d10));if(_0x5aa877[_0x23fbd4(0xff)](_0x5de77a,ID_SIMPLE_BLOCK)&&_0x153779>=0x4){const _0xf893c7=_0x5aa877['BoumI'](_0x5aa877['FhiBu'](_0x435ca3,_0x413d10),_0x4e9ea6),[,_0x147f75]=_0x5aa877['ukvYT'](readVint,_0x155c5f,_0xf893c7),_0x31cb2d=_0x155c5f['readInt16BE'](_0x5aa877['oYTEz'](_0xf893c7,_0x147f75)),_0x40f0f3=_0x5aa877['GpFEM'](_0xa0dbad,_0x31cb2d);if(_0x40f0f3>_0x3caf50)_0x3caf50=_0x40f0f3;}if(_0x5de77a===ID_CLUSTER)break;if(_0x5aa877[_0x23fbd4(0xe4)](isUnknownSize,_0x153779,_0x4e9ea6))break;_0x435ca3+=_0x5aa877['ZrdFu'](_0x413d10+_0x4e9ea6,_0x153779);}_0x5a505d['push']({'timestamp':_0xa0dbad,'maxTicks':_0x3caf50,'bodyBeforeTimestamp':_0x2c696f,'bodyAfterTimestamp':_0x4e1138,'timestampElementSize':_0x5c28b1}),_0x40c4f9=_0x13f7a7;}return _0x5a505d;}function parseWebm(_0x4d1834){const _0x2c0c05=_0x1270,_0x4162fb={'TgpFG':function(_0x1efb36,_0x40ae16,_0x2cf2f2){return _0x1efb36(_0x40ae16,_0x2cf2f2);},'QlcFG':function(_0x437c3d,_0x399989,_0x103844){return _0x437c3d(_0x399989,_0x103844);},'Bzfaj':function(_0xe9503f,_0x414caa){return _0xe9503f+_0x414caa;},'WnecC':function(_0x55d6b0,_0x4048de){return _0x55d6b0+_0x4048de;},'nrCSV':function(_0x470bb5,_0x3ccbef,_0x22777a){return _0x470bb5(_0x3ccbef,_0x22777a);},'SGEDy':function(_0x3cb730,_0x29dd55){return _0x3cb730!==_0x29dd55;},'vhKRO':function(_0x283fb7,_0xc1ee2b){return _0x283fb7+_0xc1ee2b;},'FgLyV':function(_0x2230f9,_0x397795,_0x400fd5){return _0x2230f9(_0x397795,_0x400fd5);}};let _0x4b8de5=0x0;const [,_0x51fe77]=_0x4162fb['TgpFG'](readId,_0x4d1834,_0x4b8de5),[_0x51b955,_0x295567]=_0x4162fb['QlcFG'](readVint,_0x4d1834,_0x4b8de5+_0x51fe77);_0x4b8de5+=_0x4162fb['Bzfaj'](_0x4162fb[_0x2c0c05(0xda)](_0x51fe77,_0x295567),_0x51b955);const [_0x510d3d,_0x390e06]=_0x4162fb['nrCSV'](readId,_0x4d1834,_0x4b8de5);if(_0x4162fb[_0x2c0c05(0x112)](_0x510d3d,ID_SEGMENT))return null;const [,_0x1569b9]=_0x4162fb['nrCSV'](readVint,_0x4d1834,_0x4b8de5+_0x390e06),_0x35f8e2=_0x4162fb[_0x2c0c05(0xe5)](_0x4b8de5,_0x390e06)+_0x1569b9,_0x4a23de=findTimestampScale(_0x4d1834,_0x35f8e2),_0x56eee7=_0x4162fb[_0x2c0c05(0xe8)](findFirstClusterOffset,_0x4d1834,_0x35f8e2),_0x303de4=_0x4d1834[_0x2c0c05(0xfc)](0x0,_0x56eee7),_0x18ddd0=extractClusters(_0x4d1834,_0x4a23de);let _0x346257=0x0;for(const _0x46b9ad of _0x18ddd0){if(_0x46b9ad[_0x2c0c05(0xd6)]>_0x346257)_0x346257=_0x46b9ad[_0x2c0c05(0xd6)];}return{'header':_0x303de4,'clusters':_0x18ddd0,'timestampScale':_0x4a23de,'maxTimestampTicks':_0x346257};}function buildCluster(_0x15f47d,_0x20eea5,_0x431381){const _0x5df3b4=_0x1270,_0x4abed8={'tlTjg':function(_0x6bd26a,_0x15b9f9){return _0x6bd26a(_0x15b9f9);},'BCYgh':function(_0x38ae8f,_0x59c942,_0x3723df){return _0x38ae8f(_0x59c942,_0x3723df);}},_0x46223e=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x26bff3=Math['max'](0x4,_0x4abed8['tlTjg'](uintSize,_0x15f47d)),_0x3470e5=Buffer['concat']([Buffer[_0x5df3b4(0xe1)]([ID_TIMESTAMP]),_0x4abed8['tlTjg'](writeVint,_0x26bff3),_0x4abed8['BCYgh'](writeUint,_0x15f47d,_0x26bff3)]),_0x504fed=Buffer['concat']([_0x20eea5,_0x3470e5,_0x431381]),_0x2178c5=_0x4abed8['tlTjg'](writeVint,_0x504fed['length']);return Buffer['concat']([_0x46223e,_0x2178c5,_0x504fed]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1cf6fe){const _0x4a0aac=_0x1270,_0x166b9d={'SCFtd':function(_0x2ae01f,_0x9c1d93){return _0x2ae01f+_0x9c1d93;},'qfYao':function(_0x1e8c50,_0x315759,_0x582f89){return _0x1e8c50(_0x315759,_0x582f89);},'LqxTu':function(_0x43af74,_0x519510){return _0x43af74+_0x519510;},'rBDRp':function(_0x3901b1,_0x5f18cc){return _0x3901b1+_0x5f18cc;},'PvBYe':function(_0x229a07,_0x519db4){return _0x229a07(_0x519db4);},'rscZU':function(_0x5384fd,_0x2827ef,_0x457785){return _0x5384fd(_0x2827ef,_0x457785);},'qlFTN':function(_0x43c92a,_0xda4569){return _0x43c92a===_0xda4569;},'KWeBa':function(_0x114f50,_0xa9b6f4,_0x5c331f){return _0x114f50(_0xa9b6f4,_0x5c331f);},'ZlvLl':function(_0x185ead,_0x16a59c){return _0x185ead<_0x16a59c;},'JsCkb':function(_0x4763d9,_0x188a6c){return _0x4763d9+_0x188a6c;},'xWDKI':function(_0x3b7d3c,_0x31e88b){return _0x3b7d3c!==_0x31e88b;},'MjFEg':function(_0x25d59a,_0x1489ba){return _0x25d59a+_0x1489ba;}},_0xf71251=Buffer[_0x4a0aac(0xe1)](_0x1cf6fe);let _0x11462b=0x0;const [,_0x4a8329]=readId(_0xf71251,_0x11462b),[_0x54dd76,_0x26f8f0]=readVint(_0xf71251,_0x11462b+_0x4a8329),_0x3a8354=_0x166b9d['SCFtd'](_0x166b9d[_0x4a0aac(0x10e)](_0x11462b,_0x4a8329),_0x26f8f0)+_0x54dd76,[,_0x2d138e]=readId(_0xf71251,_0x3a8354),[,_0x2f70d3]=_0x166b9d['qfYao'](readVint,_0xf71251,_0x3a8354+_0x2d138e),_0x1a15d1=_0x166b9d['LqxTu'](_0x166b9d['rBDRp'](_0x3a8354,_0x2d138e),_0x2f70d3),_0x2137ca=_0x166b9d[_0x4a0aac(0xef)](writeUnknownSizeVint,_0x2f70d3);_0x2137ca['copy'](_0xf71251,_0x166b9d['rBDRp'](_0x3a8354,_0x2d138e));let _0x301cab=_0x1a15d1;const _0x5a637f=Math['min'](_0xf71251['length'],_0x1a15d1+0x2710);while(_0x301cab<_0x5a637f){const [_0xfa11ab,_0x4f4377]=_0x166b9d['rscZU'](readId,_0xf71251,_0x301cab),[_0x5e017c,_0xf51215]=_0x166b9d['rscZU'](readVint,_0xf71251,_0x301cab+_0x4f4377);if(_0x166b9d[_0x4a0aac(0xe0)](_0xfa11ab,ID_CLUSTER))break;if(_0x166b9d['KWeBa'](isUnknownSize,_0x5e017c,_0xf51215))break;if(_0xfa11ab===ID_INFO){const _0xe942f1=_0x301cab+_0x4f4377+_0xf51215,_0xafbc38=_0xe942f1+_0x5e017c,_0x1b360c=[];let _0x18b848=_0xe942f1;while(_0x166b9d['ZlvLl'](_0x18b848,_0xafbc38)){const [_0x72b1eb,_0x111f1b]=readId(_0xf71251,_0x18b848),[_0x27704f,_0x3bad45]=readVint(_0xf71251,_0x166b9d[_0x4a0aac(0xd2)](_0x18b848,_0x111f1b)),_0x5cad21=_0x166b9d[_0x4a0aac(0xf5)](_0x111f1b+_0x3bad45,_0x27704f);_0x166b9d['xWDKI'](_0x72b1eb,ID_DURATION)&&_0x1b360c[_0x4a0aac(0x108)](_0xf71251['slice'](_0x18b848,_0x18b848+_0x5cad21)),_0x18b848+=_0x5cad21;}const _0x34cfc3=Buffer[_0x4a0aac(0x104)](_0x1b360c),_0x3e87c9=Buffer[_0x4a0aac(0x104)]([_0xf71251['slice'](_0x301cab,_0x301cab+_0x4f4377),_0x166b9d[_0x4a0aac(0xd8)](writeVint,_0x34cfc3[_0x4a0aac(0x111)],_0xf51215)]);return Buffer[_0x4a0aac(0x104)]([_0xf71251[_0x4a0aac(0xfc)](0x0,_0x301cab),_0x3e87c9,_0x34cfc3,_0xf71251[_0x4a0aac(0xfc)](_0xafbc38)]);}_0x301cab+=_0x166b9d[_0x4a0aac(0xe3)](_0x4f4377,_0xf51215)+_0x5e017c;}return _0xf71251;}export function stitchWebmFiles(_0x10517e,_0x53ede){const _0x12859a=_0x1270,_0x12af7f={'PsKfM':function(_0x2a2b38,_0x37badc){return _0x2a2b38(_0x37badc);},'IIePB':function(_0x5d48ab,_0x567aa4){return _0x5d48ab+_0x567aa4;},'lfCFG':function(_0xaa2e17,_0x43eda1,_0x57ce23,_0x49965c){return _0xaa2e17(_0x43eda1,_0x57ce23,_0x49965c);},'WppSc':function(_0x592942,_0x5ab7c1,_0x2321a7){return _0x592942(_0x5ab7c1,_0x2321a7);}};if(_0x10517e[_0x12859a(0x111)]<=0x1)return![];const _0x1ca6e1=[];for(const _0x5ad034 of _0x10517e){const _0x30a844=readFileSync(_0x5ad034),_0x274ddb=_0x12af7f[_0x12859a(0xed)](parseWebm,_0x30a844);if(!_0x274ddb||_0x274ddb['clusters']['length']===0x0)return![];_0x1ca6e1[_0x12859a(0x108)](_0x274ddb);}const _0x3f0b77=_0x1ca6e1[0x0],_0x2d2a31=_0x12af7f['PsKfM'](rebuildHeaderWithoutDuration,_0x3f0b77[_0x12859a(0xd4)]),_0x239d58=[_0x2d2a31];let _0x1ba1be=0x0;for(let _0x33a048=0x0;_0x33a048<_0x1ca6e1[_0x12859a(0x111)];_0x33a048++){const _0x53f690=_0x1ca6e1[_0x33a048];for(const _0x567eae of _0x53f690['clusters']){const _0x234110=_0x12af7f[_0x12859a(0xfe)](_0x567eae[_0x12859a(0xe9)],_0x1ba1be);_0x239d58[_0x12859a(0x108)](_0x12af7f[_0x12859a(0xf6)](buildCluster,_0x234110,_0x567eae['bodyBeforeTimestamp'],_0x567eae['bodyAfterTimestamp']));}const _0x2284af=0x1e;_0x1ba1be+=_0x53f690['maxTimestampTicks']+_0x2284af;}return _0x12af7f[_0x12859a(0xec)](writeFileSync,_0x53ede,Buffer['concat'](_0x239d58)),!![];}if(process[_0x52e8d8(0xee)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0x52e8d8(0xee)][0x1]?.[_0x52e8d8(0xd0)]('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x52e8d8(0xf7)](_0x52e8d8(0x107)),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x52e8d8(0xf1)]('Stitched\x20'+inputs[_0x52e8d8(0x111)]+'\x20files\x20->\x20'+output):console[_0x52e8d8(0xf1)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
|