@ranger-testing/ranger-cli 3.1.7-alpha.be2850d-64 → 3.1.7-alpha.d64f22a-65
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/actors.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/scenarioOriginCheck.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 +14 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f7768=_0x262f;function _0x262f(_0x57e941,_0x3670a0){_0x57e941=_0x57e941-0x1bd;const _0x41ce67=_0x41ce();let _0x262ff1=_0x41ce67[_0x57e941];return _0x262ff1;}(function(_0xe0379,_0x132242){const _0x281190=_0x262f,_0x4cbccc=_0xe0379();while(!![]){try{const _0x142bf5=parseInt(_0x281190(0x1fb))/0x1+-parseInt(_0x281190(0x1e1))/0x2*(parseInt(_0x281190(0x1df))/0x3)+parseInt(_0x281190(0x1bf))/0x4*(parseInt(_0x281190(0x1fc))/0x5)+-parseInt(_0x281190(0x1e7))/0x6*(parseInt(_0x281190(0x207))/0x7)+parseInt(_0x281190(0x201))/0x8*(-parseInt(_0x281190(0x1fd))/0x9)+-parseInt(_0x281190(0x1f3))/0xa*(-parseInt(_0x281190(0x1da))/0xb)+parseInt(_0x281190(0x1f5))/0xc;if(_0x142bf5===_0x132242)break;else _0x4cbccc['push'](_0x4cbccc['shift']());}catch(_0xac649f){_0x4cbccc['push'](_0x4cbccc['shift']());}}}(_0x41ce,0x948f7));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x1701f7,_0x290778){const _0x2bfefe=_0x262f,_0x1b60c3={'ZNXZo':function(_0x93127b,_0xc0b419){return _0x93127b>=_0xc0b419;},'ePFQj':function(_0x23764e,_0x4e2dc7){return _0x23764e<=_0x4e2dc7;},'AtWdn':function(_0x1affe2,_0x1af25d){return _0x1affe2&_0x1af25d;},'TsPQK':function(_0x529642,_0x195bd5){return _0x529642+_0x195bd5;},'mKMPr':function(_0x84e723,_0x56e0d9){return _0x84e723<_0x56e0d9;}};if(_0x1b60c3[_0x2bfefe(0x1e6)](_0x290778,_0x1701f7['length']))return[0x0,0x0];const _0x10c99f=_0x1701f7[_0x290778];let _0x35484f=0x1,_0x3e1dc3=0x80;while(_0x1b60c3[_0x2bfefe(0x1f2)](_0x35484f,0x8)&&!_0x1b60c3[_0x2bfefe(0x200)](_0x10c99f,_0x3e1dc3)){_0x35484f++,_0x3e1dc3>>=0x1;}if(_0x1b60c3['TsPQK'](_0x290778,_0x35484f)>_0x1701f7[_0x2bfefe(0x1dc)])return[0x0,0x0];let _0x1836fa=_0x1b60c3[_0x2bfefe(0x200)](_0x10c99f,_0x3e1dc3-0x1);for(let _0x4f5aa7=0x1;_0x1b60c3['mKMPr'](_0x4f5aa7,_0x35484f);_0x4f5aa7++){_0x1836fa=_0x1b60c3['TsPQK'](_0x1836fa*0x100,_0x1701f7[_0x1b60c3['TsPQK'](_0x290778,_0x4f5aa7)]);}return[_0x1836fa,_0x35484f];}function readId(_0x5d1620,_0x416d88){const _0x5c7af1=_0x262f,_0x4f887a={'uQHPh':function(_0xb8b826,_0x29fe6e){return _0xb8b826>=_0x29fe6e;},'LaAko':function(_0x21e13f,_0x38cbd3){return _0x21e13f>=_0x38cbd3;},'CANxw':function(_0x234212,_0x4ef2c2){return _0x234212<_0x4ef2c2;},'MnpaH':function(_0x7f6535,_0x2f5f8c){return _0x7f6535+_0x2f5f8c;}};if(_0x416d88>=_0x5d1620[_0x5c7af1(0x1dc)])return[0x0,0x0];const _0x4b9582=_0x5d1620[_0x416d88];let _0x1332fd;if(_0x4f887a[_0x5c7af1(0x209)](_0x4b9582,0x80))_0x1332fd=0x1;else{if(_0x4f887a[_0x5c7af1(0x209)](_0x4b9582,0x40))_0x1332fd=0x2;else{if(_0x4f887a[_0x5c7af1(0x1ce)](_0x4b9582,0x20))_0x1332fd=0x3;else{if(_0x4b9582>=0x10)_0x1332fd=0x4;else return[_0x4b9582,0x1];}}}if(_0x416d88+_0x1332fd>_0x5d1620[_0x5c7af1(0x1dc)])return[0x0,0x0];let _0x22fbf0=0x0;for(let _0x50cb6d=0x0;_0x4f887a[_0x5c7af1(0x1e2)](_0x50cb6d,_0x1332fd);_0x50cb6d++){_0x22fbf0=_0x22fbf0*0x100+_0x5d1620[_0x4f887a['MnpaH'](_0x416d88,_0x50cb6d)];}return[_0x22fbf0,_0x1332fd];}function _0x41ce(){const _0x58ee35=['XuLRG','sycMf','21PdobCl','from','uQHPh','ZzVei','fixWebmDuration.ts','2008atLNNT','GQJuC','idLen','oaVNi','alloc','argv','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','NpMaI','Could\x20not\x20find\x20Info\x20element','eSIgf','zRECx','lQQrI','exit','RHgwW','mnTGo','LaAko','concat','rnRan','glAuM','hQGZy','aQEvH','XcDkI','sojoa','offset','endsWith','vBlhE','slice','44mvuPAF','sizeLen','length','meRgL','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','147927AxAJop','Hyimn','44vAwdyK','CANxw','WGCqa','hyUev','pow','ZNXZo','1536042icTHBP','dChPD','indexOf','rQGXf','min','NLMmq','LbkVk','readInt16BE','DGZgs','hPLLw','rJLQs','ePFQj','1348180ExlDLE','byQhu','12944328PVBatS','XcdtK','DoclA','GiFpQ','VtSYE','dataOffset','848964gJeCSK','11355gBUrzV','10310850WqhZVP','error','dataSize','AtWdn','8Rbbnyf','aExJo','jYLPb','WvUPr'];_0x41ce=function(){return _0x58ee35;};return _0x41ce();}function readUint(_0x1b5392,_0xbb1bd,_0x42a97f){const _0x1ecc3b=_0x262f,_0x50d838={'hPLLw':function(_0x10d6a8,_0x1cdc93){return _0x10d6a8<_0x1cdc93;},'RHgwW':function(_0x1a6dfe,_0x3f8717){return _0x1a6dfe+_0x3f8717;},'Hyimn':function(_0x545f52,_0x4cb336){return _0x545f52*_0x4cb336;}};let _0x2d8dd0=0x0;for(let _0x1b062c=0x0;_0x50d838[_0x1ecc3b(0x1f0)](_0x1b062c,_0x42a97f);_0x1b062c++){_0x2d8dd0=_0x50d838[_0x1ecc3b(0x1cc)](_0x50d838[_0x1ecc3b(0x1e0)](_0x2d8dd0,0x100),_0x1b5392[_0xbb1bd+_0x1b062c]);}return _0x2d8dd0;}function isUnknownSize(_0x97c8e2,_0x2368c2){const _0x1df125=_0x262f,_0x43cb08={'lQQrI':function(_0x38e78e,_0x2d0158){return _0x38e78e===_0x2d0158;},'ZzVei':function(_0x4b073f,_0x59cbfa){return _0x4b073f*_0x59cbfa;}};return _0x43cb08[_0x1df125(0x1ca)](_0x97c8e2,Math[_0x1df125(0x1e5)](0x2,_0x43cb08[_0x1df125(0x1bd)](0x7,_0x2368c2))-0x1);}function writeId(_0xa4b0c7){const _0x37f1b3=_0x262f,_0x4309a0={'TEtzn':function(_0x2c04b1,_0x7b56af){return _0x2c04b1<=_0x7b56af;},'vvRfE':function(_0x313467,_0x145c2e){return _0x313467<=_0x145c2e;},'VtSYE':function(_0x2ecc7a,_0x38585d){return _0x2ecc7a&_0x38585d;},'QFltq':function(_0x902b93,_0x4a4aac){return _0x902b93>>_0x4a4aac;},'rJLQs':function(_0x305180,_0xf669bb){return _0x305180&_0xf669bb;}};if(_0xa4b0c7<=0xff)return Buffer['from']([_0xa4b0c7]);if(_0x4309a0['TEtzn'](_0xa4b0c7,0xffff))return Buffer[_0x37f1b3(0x208)]([_0xa4b0c7>>0x8&0xff,_0xa4b0c7&0xff]);if(_0x4309a0['vvRfE'](_0xa4b0c7,0xffffff))return Buffer['from']([_0xa4b0c7>>0x10&0xff,_0x4309a0['VtSYE'](_0xa4b0c7>>0x8,0xff),_0xa4b0c7&0xff]);return Buffer[_0x37f1b3(0x208)]([_0x4309a0['QFltq'](_0xa4b0c7,0x18)&0xff,_0xa4b0c7>>0x10&0xff,_0x4309a0[_0x37f1b3(0x1f9)](_0x4309a0['QFltq'](_0xa4b0c7,0x8),0xff),_0x4309a0[_0x37f1b3(0x1f1)](_0xa4b0c7,0xff)]);}function writeVint(_0x389cdc,_0x5384bc){const _0x303dcc=_0x262f,_0x270b3d={'Dqabw':function(_0xa08cf5,_0x3e1b44){return _0xa08cf5-_0x3e1b44;},'vBlhE':function(_0x6ad222,_0x288c58){return _0x6ad222&_0x288c58;}};let _0x300fcd=_0x5384bc||0x1;while(_0x270b3d['Dqabw'](Math['pow'](0x2,0x7*_0x300fcd),0x2)<_0x389cdc)_0x300fcd++;const _0x5d413d=Buffer['alloc'](_0x300fcd);for(let _0x55a19d=_0x270b3d['Dqabw'](_0x300fcd,0x1);_0x55a19d>=0x0;_0x55a19d--){_0x5d413d[_0x55a19d]=_0x270b3d[_0x303dcc(0x1d8)](_0x389cdc,0xff),_0x389cdc=Math['floor'](_0x389cdc/0x100);}return _0x5d413d[0x0]|=0x1<<0x8-_0x300fcd,_0x5d413d;}function writeFloat64(_0x2924ec){const _0x16293d=_0x262f,_0x3775fe=Buffer[_0x16293d(0x1c3)](0x8);return _0x3775fe['writeDoubleBE'](_0x2924ec,0x0),_0x3775fe;}function writeVoid(_0x2f6852){const _0x48843a=_0x262f,_0x526bcd={'WsvBz':function(_0x789abd,_0x53683f){return _0x789abd<=_0x53683f;},'NHOkL':function(_0x3c9c30,_0x3178f6){return _0x3c9c30>=_0x3178f6;},'aExJo':function(_0x119a8d,_0x4d715a){return _0x119a8d-_0x4d715a;},'xFZbQ':function(_0x16e459,_0x240ec8){return _0x16e459*_0x240ec8;}};for(let _0x2f219a=0x1;_0x526bcd['WsvBz'](_0x2f219a,0x8);_0x2f219a++){const _0x2f0320=_0x2f6852-0x1-_0x2f219a;if(_0x526bcd['NHOkL'](_0x2f0320,0x0)&&_0x526bcd['WsvBz'](_0x2f0320,_0x526bcd[_0x48843a(0x202)](Math[_0x48843a(0x1e5)](0x2,_0x526bcd['xFZbQ'](0x7,_0x2f219a)),0x2)))return Buffer['concat']([Buffer[_0x48843a(0x208)]([ID_VOID]),writeVint(_0x2f0320,_0x2f219a),Buffer[_0x48843a(0x1c3)](_0x2f0320)]);}return Buffer[_0x48843a(0x1c3)](0x0);}function findElement(_0x4f3f05,_0x4084d4,_0x398486,_0x4903e0){const _0x382850=_0x262f,_0x10ce98={'XuLRG':function(_0x47e38c,_0x1cc538,_0x822034){return _0x47e38c(_0x1cc538,_0x822034);},'byQhu':function(_0x5eb5c6,_0x2e38bc){return _0x5eb5c6+_0x2e38bc;},'XcdtK':function(_0x4153d2,_0x823362){return _0x4153d2===_0x823362;},'fJZFc':function(_0x558b7a,_0x18107e){return _0x558b7a+_0x18107e;}};let _0x4547ba=_0x4084d4;while(_0x4547ba<_0x398486){const [_0x1c424e,_0x1b6b3d]=_0x10ce98['XuLRG'](readId,_0x4f3f05,_0x4547ba),[_0xc545fe,_0x41f97f]=_0x10ce98[_0x382850(0x205)](readVint,_0x4f3f05,_0x10ce98[_0x382850(0x1f4)](_0x4547ba,_0x1b6b3d));if(_0x10ce98[_0x382850(0x1f6)](_0x1c424e,_0x4903e0))return{'offset':_0x4547ba,'idLen':_0x1b6b3d,'sizeLen':_0x41f97f,'dataSize':_0xc545fe,'dataOffset':_0x10ce98['fJZFc'](_0x10ce98['fJZFc'](_0x4547ba,_0x1b6b3d),_0x41f97f)};if(_0x10ce98['XuLRG'](isUnknownSize,_0xc545fe,_0x41f97f))break;_0x4547ba+=_0x10ce98['fJZFc'](_0x1b6b3d,_0x41f97f)+_0xc545fe;}return null;}function computeDurationMs(_0x40b869,_0x250406){const _0x3e458d=_0x262f,_0xcf599e={'hyUev':function(_0x26b869,_0x6ccf95,_0x5ae884){return _0x26b869(_0x6ccf95,_0x5ae884);},'DGZgs':function(_0x22050d,_0xa6719d){return _0x22050d+_0xa6719d;},'aQEvH':function(_0x543894,_0x9b3e5b){return _0x543894-_0x9b3e5b;},'glAuM':function(_0x4b27e5,_0x500472,_0x5ac2b5){return _0x4b27e5(_0x500472,_0x5ac2b5);},'CYQUy':function(_0xd919c5,_0x34b29f){return _0xd919c5+_0x34b29f;},'hcWEk':function(_0x719cb,_0x69dc94,_0x234184){return _0x719cb(_0x69dc94,_0x234184);},'NLMmq':function(_0x7285da,_0x3f3618,_0x512688){return _0x7285da(_0x3f3618,_0x512688);},'jOxcS':function(_0x30c30b,_0x355ce7){return _0x30c30b+_0x355ce7;},'iKvWK':function(_0x3684f8,_0xbde8ac){return _0x3684f8===_0xbde8ac;},'meRgL':function(_0x5d3e17,_0x4bb495){return _0x5d3e17+_0x4bb495;},'sojoa':function(_0x295c44,_0x430f44,_0x338a71){return _0x295c44(_0x430f44,_0x338a71);},'gpFfI':function(_0x34d22b,_0xb2f147){return _0x34d22b+_0xb2f147;}};let _0x436e22=0x0;const _0xa693d1=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2245fa=_0x40b869[_0x3e458d(0x1e9)](_0xa693d1);if(_0x2245fa===-0x1)return 0x0;while(_0x2245fa<_0x40b869[_0x3e458d(0x1dc)]){const [_0x42ee07,_0x40ae56]=_0xcf599e[_0x3e458d(0x1e4)](readId,_0x40b869,_0x2245fa);if(_0x42ee07!==ID_CLUSTER)break;const [_0x5c3cf2,_0x1e8e1c]=_0xcf599e[_0x3e458d(0x1e4)](readVint,_0x40b869,_0x2245fa+_0x40ae56),_0x24bd98=_0xcf599e['DGZgs'](_0x2245fa+_0x40ae56,_0x1e8e1c),_0x4d2635=_0xcf599e['hyUev'](isUnknownSize,_0x5c3cf2,_0x1e8e1c);let _0x3b37a4;if(_0x4d2635){let _0x339dda=_0x24bd98;while(_0x339dda<_0xcf599e[_0x3e458d(0x1d3)](_0x40b869[_0x3e458d(0x1dc)],0x4)){const [_0x234f8d,_0x4f1369]=_0xcf599e[_0x3e458d(0x1d1)](readId,_0x40b869,_0x339dda);if(_0x234f8d===ID_CLUSTER){_0x3b37a4=_0x339dda;break;}const [_0x2253d1,_0x849622]=readVint(_0x40b869,_0xcf599e[_0x3e458d(0x1ef)](_0x339dda,_0x4f1369));if(isUnknownSize(_0x2253d1,_0x849622)){_0x3b37a4=_0x40b869[_0x3e458d(0x1dc)];break;}_0x339dda+=_0xcf599e[_0x3e458d(0x1ef)](_0xcf599e['CYQUy'](_0x4f1369,_0x849622),_0x2253d1);}_0x3b37a4??=_0x40b869[_0x3e458d(0x1dc)];}else _0x3b37a4=_0x24bd98+_0x5c3cf2;let _0x5a05b8=0x0,_0x354005=_0x24bd98;while(_0x354005<_0x3b37a4){const [_0x31ca18,_0x3e850e]=_0xcf599e['hcWEk'](readId,_0x40b869,_0x354005),[_0x1a2a17,_0x110579]=_0xcf599e[_0x3e458d(0x1ec)](readVint,_0x40b869,_0xcf599e['jOxcS'](_0x354005,_0x3e850e));if(_0xcf599e['iKvWK'](_0x31ca18,ID_TIMESTAMP))_0x5a05b8=readUint(_0x40b869,_0xcf599e[_0x3e458d(0x1dd)](_0x354005+_0x3e850e,_0x110579),_0x1a2a17);else{if(_0x31ca18===ID_SIMPLE_BLOCK&&_0x1a2a17>=0x4){const _0x3a732a=_0x354005+_0x3e850e+_0x110579,[,_0x11fa44]=_0xcf599e[_0x3e458d(0x1e4)](readVint,_0x40b869,_0x3a732a),_0x23de80=_0x40b869[_0x3e458d(0x1ee)](_0x3a732a+_0x11fa44),_0x30df72=_0xcf599e['CYQUy'](_0x5a05b8,_0x23de80)*_0x250406/0xf4240;_0x30df72>_0x436e22&&(_0x436e22=_0x30df72);}else{if(_0x31ca18===ID_CLUSTER)break;}}if(_0xcf599e[_0x3e458d(0x1d5)](isUnknownSize,_0x1a2a17,_0x110579))break;_0x354005+=_0xcf599e['gpFfI'](_0x3e850e+_0x110579,_0x1a2a17);}_0x2245fa=_0x3b37a4;}return _0x436e22;}export function fixWebmDuration(_0x2e3007,_0x5713d5){const _0x9d3ced=_0x262f,_0x5b8b97={'OVxUC':function(_0x29f88d,_0x1a7132){return _0x29f88d(_0x1a7132);},'rQGXf':function(_0x269bfa,_0x3fce0b){return _0x269bfa+_0x3fce0b;},'zRECx':function(_0x5d22e7,_0x4c1f57){return _0x5d22e7+_0x4c1f57;},'XcDkI':function(_0x4b6130,_0x4916e7){return _0x4b6130+_0x4916e7;},'zBwzu':function(_0x1786f7,_0x3f6e3a,_0x486d26){return _0x1786f7(_0x3f6e3a,_0x486d26);},'oaVNi':function(_0x3994a5,_0x286074){return _0x3994a5!==_0x286074;},'cmcPN':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','mnTGo':function(_0x14eecd,_0x5692aa){return _0x14eecd+_0x5692aa;},'hQGZy':function(_0x267baf,_0x40fa19){return _0x267baf+_0x40fa19;},'sycMf':function(_0x5f478b,_0x3c3451,_0xddc539){return _0x5f478b(_0x3c3451,_0xddc539);},'eSIgf':function(_0x12c21e,_0x5a44cd){return _0x12c21e+_0x5a44cd;},'OABHQ':function(_0x19c4b6,_0x4f6e62){return _0x19c4b6+_0x4f6e62;},'Vmuik':function(_0x359093,_0x4054c8){return _0x359093===_0x4054c8;},'aLHws':_0x9d3ced(0x1c7),'NpMaI':function(_0x4b85d9,_0x87a466,_0x2b5c8e,_0x590159,_0x2f2a93){return _0x4b85d9(_0x87a466,_0x2b5c8e,_0x590159,_0x2f2a93);},'dChPD':function(_0x14edda,_0x42411f){return _0x14edda+_0x42411f;},'ZVQrq':function(_0xe50eb7,_0x535d54){return _0xe50eb7+_0x535d54;},'jYLPb':function(_0x2400f1,_0x1a10d8,_0x18b961,_0x3da289){return _0x2400f1(_0x1a10d8,_0x18b961,_0x3da289);},'azOMv':function(_0x2c2547,_0x22cb1d,_0x1d3652){return _0x2c2547(_0x22cb1d,_0x1d3652);},'MEmWJ':function(_0x386322,_0x5265a8){return _0x386322/_0x5265a8;},'pSukL':function(_0x1af708,_0x4ce749){return _0x1af708*_0x4ce749;},'rnRan':function(_0x27846c,_0x3042a6){return _0x27846c<_0x3042a6;},'GiFpQ':function(_0x82f8ea,_0x416535){return _0x82f8ea+_0x416535;},'WvUPr':function(_0x4904a0,_0x3a3791,_0xcd743,_0xca44e2,_0x3d6b7a,_0x1ed7d9,_0x236d1a){return _0x4904a0(_0x3a3791,_0xcd743,_0xca44e2,_0x3d6b7a,_0x1ed7d9,_0x236d1a);},'DoclA':function(_0xefeb6,_0x3f3a57){return _0xefeb6(_0x3f3a57);}},_0x46508d=_0x5b8b97['OVxUC'](readFileSync,_0x2e3007);let _0x48fe53=0x0;const [_0x19c1b2,_0x4058b2]=readId(_0x46508d,_0x48fe53),[_0x4034aa,_0x4c7d12]=readVint(_0x46508d,_0x5b8b97[_0x9d3ced(0x1ea)](_0x48fe53,_0x4058b2));_0x48fe53+=_0x5b8b97[_0x9d3ced(0x1c9)](_0x5b8b97[_0x9d3ced(0x1d4)](_0x4058b2,_0x4c7d12),_0x4034aa);const [_0x1fb66e,_0x2fe6b3]=_0x5b8b97['zBwzu'](readId,_0x46508d,_0x48fe53);if(_0x5b8b97[_0x9d3ced(0x1c2)](_0x1fb66e,ID_SEGMENT))return console[_0x9d3ced(0x1fe)](_0x5b8b97['cmcPN']),![];const [,_0x305871]=readVint(_0x46508d,_0x5b8b97[_0x9d3ced(0x1cd)](_0x48fe53,_0x2fe6b3)),_0xfa9667=_0x5b8b97[_0x9d3ced(0x1d2)](_0x5b8b97['rQGXf'](_0x48fe53,_0x2fe6b3),_0x305871);let _0x36f3eb=_0xfa9667;const _0x55a601=Math[_0x9d3ced(0x1eb)](_0x46508d[_0x9d3ced(0x1dc)],_0xfa9667+0x2710);let _0x161d2c=null,_0x5750fa=null;while(_0x36f3eb<_0x55a601){const [_0x38b823,_0xd53c05]=readId(_0x46508d,_0x36f3eb),[_0x104640,_0x318a4e]=_0x5b8b97[_0x9d3ced(0x206)](readVint,_0x46508d,_0x5b8b97['eSIgf'](_0x36f3eb,_0xd53c05));_0x38b823===ID_VOID&&!_0x161d2c&&(_0x161d2c={'offset':_0x36f3eb,'idLen':_0xd53c05,'sizeLen':_0x318a4e,'dataSize':_0x104640,'dataOffset':_0x5b8b97['OABHQ'](_0x36f3eb,_0xd53c05)+_0x318a4e});if(_0x38b823===ID_INFO){_0x5750fa={'offset':_0x36f3eb,'idLen':_0xd53c05,'sizeLen':_0x318a4e,'dataSize':_0x104640,'dataOffset':_0x36f3eb+_0xd53c05+_0x318a4e};break;}if(_0x5b8b97['Vmuik'](_0x38b823,ID_CLUSTER))break;if(_0x5b8b97['sycMf'](isUnknownSize,_0x104640,_0x318a4e))break;_0x36f3eb+=_0x5b8b97[_0x9d3ced(0x1c8)](_0xd53c05+_0x318a4e,_0x104640);}if(!_0x5750fa)return console[_0x9d3ced(0x1fe)](_0x5b8b97['aLHws']),![];const _0x208ca4=_0x5b8b97[_0x9d3ced(0x1c6)](findElement,_0x46508d,_0x5750fa['dataOffset'],_0x5b8b97['dChPD'](_0x5750fa[_0x9d3ced(0x1fa)],_0x5750fa[_0x9d3ced(0x1ff)]),ID_DURATION);if(_0x208ca4)return![];const _0x224916=_0x5b8b97['NpMaI'](findElement,_0x46508d,_0x5750fa[_0x9d3ced(0x1fa)],_0x5b8b97['ZVQrq'](_0x5750fa['dataOffset'],_0x5750fa[_0x9d3ced(0x1ff)]),ID_TIMESTAMP_SCALE);let _0x15a036=0xf4240;_0x224916&&(_0x15a036=_0x5b8b97[_0x9d3ced(0x203)](readUint,_0x46508d,_0x224916[_0x9d3ced(0x1fa)],_0x224916['dataSize']));const _0x356564=_0x5b8b97['azOMv'](computeDurationMs,_0x46508d,_0x15a036);if(_0x356564<=0x0)return console[_0x9d3ced(0x1fe)]('Could\x20not\x20compute\x20duration'),![];const _0x46a2c1=_0x5b8b97['MEmWJ'](_0x5b8b97['pSukL'](_0x356564,0xf4240),_0x15a036),_0x22b866=Buffer[_0x9d3ced(0x1cf)]([writeId(ID_DURATION),writeVint(0x8),writeFloat64(_0x46a2c1)]),_0x1e8ffc=_0x22b866[_0x9d3ced(0x1dc)];if(!_0x161d2c||_0x5b8b97[_0x9d3ced(0x1d0)](_0x161d2c[_0x9d3ced(0x1d6)],_0x5750fa[_0x9d3ced(0x1d6)])){if(_0x161d2c){const _0x42b794=_0x5b8b97[_0x9d3ced(0x1f8)](_0x161d2c['idLen']+_0x161d2c[_0x9d3ced(0x1db)],_0x161d2c[_0x9d3ced(0x1ff)]),_0x17cc95=_0x42b794-_0x1e8ffc;if(_0x17cc95<0x2)return _0x5b8b97[_0x9d3ced(0x204)](rewriteFile,_0x46508d,_0x5750fa,_0x22b866,_0x15a036,_0x356564,_0x5713d5);const _0x1a9564=_0x5750fa['dataSize']+_0x1e8ffc,_0x37e2e1=Buffer['concat']([writeId(ID_INFO),writeVint(_0x1a9564,_0x5750fa['sizeLen'])]),_0x2bad05=_0x46508d['slice'](_0x5750fa['dataOffset'],_0x5750fa['dataOffset']+_0x5750fa['dataSize']),_0x357691=_0x5b8b97[_0x9d3ced(0x1f7)](writeVoid,_0x17cc95),_0x54c7d9=_0x46508d[_0x9d3ced(0x1d9)](0x0,_0x161d2c['offset']),_0x49b805=_0x46508d['slice'](_0x5b8b97[_0x9d3ced(0x1e8)](_0x5750fa['dataOffset'],_0x5750fa[_0x9d3ced(0x1ff)]));return writeFileSync(_0x5713d5,Buffer[_0x9d3ced(0x1cf)]([_0x54c7d9,_0x357691,_0x37e2e1,_0x2bad05,_0x22b866,_0x49b805])),!![];}}return rewriteFile(_0x46508d,_0x5750fa,_0x22b866,_0x15a036,_0x356564,_0x5713d5);}function rewriteFile(_0x326a6c,_0x373748,_0x4d757f,_0x15b895,_0x183c9e,_0x368bab){const _0x4e3669=_0x262f,_0x33032d={'WGCqa':function(_0x403e7e,_0x59e4e3){return _0x403e7e+_0x59e4e3;},'GQJuC':function(_0x499cce,_0x2e9eea){return _0x499cce(_0x2e9eea);},'LbkVk':function(_0x3b11b7,_0x623b3c){return _0x3b11b7+_0x623b3c;}},_0x3d4db1=_0x33032d[_0x4e3669(0x1e3)](_0x373748['dataSize'],_0x4d757f['length']),_0x17bb3e=Buffer[_0x4e3669(0x1cf)]([writeId(ID_INFO),_0x33032d[_0x4e3669(0x1c0)](writeVint,_0x3d4db1)]),_0x1d4463=_0x373748[_0x4e3669(0x1c1)]+_0x373748['sizeLen'],_0x31ff03=_0x326a6c['slice'](0x0,_0x373748['offset']),_0x5b09c6=_0x326a6c[_0x4e3669(0x1d9)](_0x373748['dataOffset'],_0x373748[_0x4e3669(0x1fa)]+_0x373748['dataSize']),_0x3cba75=_0x326a6c['slice'](_0x33032d[_0x4e3669(0x1ed)](_0x373748['offset']+_0x1d4463,_0x373748['dataSize']));return writeFileSync(_0x368bab,Buffer[_0x4e3669(0x1cf)]([_0x31ff03,_0x17bb3e,_0x5b09c6,_0x4d757f,_0x3cba75])),!![];}if(process[_0x1f7768(0x1c4)][0x1]?.[_0x1f7768(0x1d7)](_0x1f7768(0x1be))||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x1f7768(0x1c4)][0x3];(!input||!output)&&(console[_0x1f7768(0x1fe)](_0x1f7768(0x1de)),process[_0x1f7768(0x1cb)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log'](_0x1f7768(0x1c5));}
|
|
1
|
+
const _0x33dcce=_0x3f24;(function(_0x1ee5ae,_0xe000d7){const _0xefb125=_0x3f24,_0x1b8f3b=_0x1ee5ae();while(!![]){try{const _0x2b5ab9=-parseInt(_0xefb125(0x1e5))/0x1+-parseInt(_0xefb125(0x1fb))/0x2+parseInt(_0xefb125(0x1cb))/0x3+parseInt(_0xefb125(0x1ff))/0x4*(-parseInt(_0xefb125(0x1c9))/0x5)+-parseInt(_0xefb125(0x1d9))/0x6*(parseInt(_0xefb125(0x1ed))/0x7)+-parseInt(_0xefb125(0x1c8))/0x8+parseInt(_0xefb125(0x1fd))/0x9*(parseInt(_0xefb125(0x1c4))/0xa);if(_0x2b5ab9===_0xe000d7)break;else _0x1b8f3b['push'](_0x1b8f3b['shift']());}catch(_0x24f3c1){_0x1b8f3b['push'](_0x1b8f3b['shift']());}}}(_0x580e,0x689fa));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function _0x580e(){const _0x111ca5=['10DfDjqY','rjiKA','654507EmnUaa','dataOffset','log','PexfW','JKwwm','hmDyF','PWUJf','ACGKo','slice','hkHYI','GrqZF','FRNim','idLen','YYhMN','6924XfjpYv','qczkt','brdzT','QVkln','pow','COwTJ','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','TZZRX','iwvnD','jqENT','alloc','gfZCL','474414Yvyxkn','yldKZ','indexOf','puiBw','VOQTn','msFqf','Bwgfq','concat','2422MnOpeE','fLuZN','endsWith','bgzdt','offset','XPSLD','GVpSL','ELglN','lNSrP','ihgiH','lhsSL','from','length','dataSize','216988DBfnei','ASWdO','9pvuYKb','rjaMQ','633476FGwech','qWVtM','hABCc','BQRQU','wyOhC','PZapM','FlYyd','fixWebmDuration.ts','sizeLen','19409480zmiQuR','ENSfA','error','exit','3453192DZLdQp'];_0x580e=function(){return _0x111ca5;};return _0x580e();}function readVint(_0x22ca8b,_0x28c76e){const _0x1c729d=_0x3f24,_0x262e8f={'bgzdt':function(_0x4f9b7a,_0x48787e){return _0x4f9b7a<=_0x48787e;},'PWUJf':function(_0x2815fc,_0x3a97d5){return _0x2815fc>_0x3a97d5;},'YYhMN':function(_0x53c1b1,_0x1387c2){return _0x53c1b1<_0x1387c2;},'ELglN':function(_0x295d39,_0x203baa){return _0x295d39+_0x203baa;}};if(_0x28c76e>=_0x22ca8b[_0x1c729d(0x1f9)])return[0x0,0x0];const _0x529e42=_0x22ca8b[_0x28c76e];let _0x20ab1c=0x1,_0x7caa2a=0x80;while(_0x262e8f[_0x1c729d(0x1f0)](_0x20ab1c,0x8)&&!(_0x529e42&_0x7caa2a)){_0x20ab1c++,_0x7caa2a>>=0x1;}if(_0x262e8f[_0x1c729d(0x1d1)](_0x28c76e+_0x20ab1c,_0x22ca8b[_0x1c729d(0x1f9)]))return[0x0,0x0];let _0x359c9e=_0x529e42&_0x7caa2a-0x1;for(let _0x58633b=0x1;_0x262e8f[_0x1c729d(0x1d8)](_0x58633b,_0x20ab1c);_0x58633b++){_0x359c9e=_0x262e8f[_0x1c729d(0x1f4)](_0x359c9e*0x100,_0x22ca8b[_0x28c76e+_0x58633b]);}return[_0x359c9e,_0x20ab1c];}function readId(_0x3a06e7,_0x28ce6a){const _0x39d8c1=_0x3f24,_0x1962e5={'gfZCL':function(_0x459036,_0x350575){return _0x459036>=_0x350575;},'PZapM':function(_0x22faf2,_0x2e3122){return _0x22faf2+_0x2e3122;},'DXhRd':function(_0x23270e,_0xc5d96c){return _0x23270e<_0xc5d96c;},'xmLVD':function(_0x7ed110,_0x112d86){return _0x7ed110*_0x112d86;}};if(_0x28ce6a>=_0x3a06e7[_0x39d8c1(0x1f9)])return[0x0,0x0];const _0x40077a=_0x3a06e7[_0x28ce6a];let _0x4d361f;if(_0x1962e5[_0x39d8c1(0x1e4)](_0x40077a,0x80))_0x4d361f=0x1;else{if(_0x1962e5['gfZCL'](_0x40077a,0x40))_0x4d361f=0x2;else{if(_0x40077a>=0x20)_0x4d361f=0x3;else{if(_0x40077a>=0x10)_0x4d361f=0x4;else return[_0x40077a,0x1];}}}if(_0x1962e5[_0x39d8c1(0x204)](_0x28ce6a,_0x4d361f)>_0x3a06e7[_0x39d8c1(0x1f9)])return[0x0,0x0];let _0x30bbc7=0x0;for(let _0x206900=0x0;_0x1962e5['DXhRd'](_0x206900,_0x4d361f);_0x206900++){_0x30bbc7=_0x1962e5['xmLVD'](_0x30bbc7,0x100)+_0x3a06e7[_0x1962e5['PZapM'](_0x28ce6a,_0x206900)];}return[_0x30bbc7,_0x4d361f];}function readUint(_0x9b8f81,_0x5dd1ac,_0x56bb48){const _0x5b5e4f={'nIonT':function(_0x2b9139,_0x43c6eb){return _0x2b9139<_0x43c6eb;}};let _0x49f322=0x0;for(let _0x36ccda=0x0;_0x5b5e4f['nIonT'](_0x36ccda,_0x56bb48);_0x36ccda++){_0x49f322=_0x49f322*0x100+_0x9b8f81[_0x5dd1ac+_0x36ccda];}return _0x49f322;}function isUnknownSize(_0x41660f,_0x3f8cd3){const _0x2eb13c=_0x3f24,_0x40eb47={'lhsSL':function(_0x47ce5c,_0x14bafb){return _0x47ce5c===_0x14bafb;},'hkHYI':function(_0x127a2b,_0x502e62){return _0x127a2b-_0x502e62;}};return _0x40eb47[_0x2eb13c(0x1f7)](_0x41660f,_0x40eb47[_0x2eb13c(0x1d4)](Math[_0x2eb13c(0x1dd)](0x2,0x7*_0x3f8cd3),0x1));}function writeId(_0x279ded){const _0x2f497=_0x3f24,_0x54803a={'qczkt':function(_0x5c5488,_0x443d6f){return _0x5c5488<=_0x443d6f;},'bdamc':function(_0xdcbd7,_0x1db3cc){return _0xdcbd7<=_0x1db3cc;},'YKiRL':function(_0x18d428,_0x4f0225){return _0x18d428&_0x4f0225;},'hABCc':function(_0x1a7466,_0x532962){return _0x1a7466&_0x532962;},'LwpjD':function(_0x2a6a08,_0x48d926){return _0x2a6a08>>_0x48d926;},'nlGVP':function(_0x4accaf,_0x408177){return _0x4accaf&_0x408177;},'oacqZ':function(_0x253fc2,_0x170933){return _0x253fc2>>_0x170933;}};if(_0x279ded<=0xff)return Buffer['from']([_0x279ded]);if(_0x54803a[_0x2f497(0x1da)](_0x279ded,0xffff))return Buffer[_0x2f497(0x1f8)]([_0x279ded>>0x8&0xff,_0x279ded&0xff]);if(_0x54803a['bdamc'](_0x279ded,0xffffff))return Buffer['from']([_0x54803a['YKiRL'](_0x279ded>>0x10,0xff),_0x54803a['hABCc'](_0x54803a['LwpjD'](_0x279ded,0x8),0xff),_0x54803a[_0x2f497(0x201)](_0x279ded,0xff)]);return Buffer['from']([_0x279ded>>0x18&0xff,_0x54803a[_0x2f497(0x201)](_0x279ded>>0x10,0xff),_0x54803a['nlGVP'](_0x54803a['oacqZ'](_0x279ded,0x8),0xff),_0x279ded&0xff]);}function writeVint(_0x4affcd,_0x308378){const _0x2c4bd4=_0x3f24,_0x72186d={'REVti':function(_0x2864fe,_0x45d677){return _0x2864fe||_0x45d677;},'GTcZe':function(_0xd335cd,_0x499e08){return _0xd335cd*_0x499e08;},'rjiKA':function(_0x455af0,_0x37c4a0){return _0x455af0<<_0x37c4a0;}};let _0x1fd09f=_0x72186d['REVti'](_0x308378,0x1);while(Math['pow'](0x2,_0x72186d['GTcZe'](0x7,_0x1fd09f))-0x2<_0x4affcd)_0x1fd09f++;const _0x36586e=Buffer['alloc'](_0x1fd09f);for(let _0xecdc19=_0x1fd09f-0x1;_0xecdc19>=0x0;_0xecdc19--){_0x36586e[_0xecdc19]=_0x4affcd&0xff,_0x4affcd=Math['floor'](_0x4affcd/0x100);}return _0x36586e[0x0]|=_0x72186d[_0x2c4bd4(0x1ca)](0x1,0x8-_0x1fd09f),_0x36586e;}function _0x3f24(_0x1da646,_0x4d9596){_0x1da646=_0x1da646-0x1c3;const _0x580e72=_0x580e();let _0x3f24d8=_0x580e72[_0x1da646];return _0x3f24d8;}function writeFloat64(_0x3a4913){const _0x2fce73=Buffer['alloc'](0x8);return _0x2fce73['writeDoubleBE'](_0x3a4913,0x0),_0x2fce73;}function writeVoid(_0x33edcc){const _0x225963=_0x3f24,_0x3356cf={'hmDyF':function(_0x235b28,_0x2d81dc){return _0x235b28<=_0x2d81dc;},'msFqf':function(_0x1cd287,_0x3071da){return _0x1cd287*_0x3071da;},'ASWdO':function(_0x412ca0,_0x25d0b9,_0x309551){return _0x412ca0(_0x25d0b9,_0x309551);}};for(let _0x176248=0x1;_0x3356cf[_0x225963(0x1d0)](_0x176248,0x8);_0x176248++){const _0x340814=_0x33edcc-0x1-_0x176248;if(_0x340814>=0x0&&_0x3356cf['hmDyF'](_0x340814,Math['pow'](0x2,_0x3356cf[_0x225963(0x1ea)](0x7,_0x176248))-0x2))return Buffer[_0x225963(0x1ec)]([Buffer['from']([ID_VOID]),_0x3356cf[_0x225963(0x1fc)](writeVint,_0x340814,_0x176248),Buffer[_0x225963(0x1e3)](_0x340814)]);}return Buffer[_0x225963(0x1e3)](0x0);}function findElement(_0x1cf63e,_0x3ca4c3,_0x39b13b,_0x51cdbb){const _0x4beedc=_0x3f24,_0x47d984={'puiBw':function(_0x25acbf,_0x59bb3a,_0x3d62c7){return _0x25acbf(_0x59bb3a,_0x3d62c7);},'ACGKo':function(_0x3b18d1,_0x296728){return _0x3b18d1+_0x296728;},'ihgiH':function(_0x37d874,_0xd02cee){return _0x37d874===_0xd02cee;}};let _0x5a1535=_0x3ca4c3;while(_0x5a1535<_0x39b13b){const [_0x20f31a,_0x43f67e]=_0x47d984[_0x4beedc(0x1e8)](readId,_0x1cf63e,_0x5a1535),[_0x17c4c3,_0x3604fb]=_0x47d984[_0x4beedc(0x1e8)](readVint,_0x1cf63e,_0x47d984[_0x4beedc(0x1d2)](_0x5a1535,_0x43f67e));if(_0x47d984[_0x4beedc(0x1f6)](_0x20f31a,_0x51cdbb))return{'offset':_0x5a1535,'idLen':_0x43f67e,'sizeLen':_0x3604fb,'dataSize':_0x17c4c3,'dataOffset':_0x47d984['ACGKo'](_0x5a1535+_0x43f67e,_0x3604fb)};if(isUnknownSize(_0x17c4c3,_0x3604fb))break;_0x5a1535+=_0x47d984['ACGKo'](_0x43f67e+_0x3604fb,_0x17c4c3);}return null;}function computeDurationMs(_0x581d90,_0x5e9d86){const _0x2199ec=_0x3f24,_0x42c74c={'yldKZ':function(_0x9adef9,_0x1018ab){return _0x9adef9!==_0x1018ab;},'ENSfA':function(_0x39ab04,_0x205f61){return _0x39ab04+_0x205f61;},'rjaMQ':function(_0x549183,_0x1a03e9,_0x3eebea){return _0x549183(_0x1a03e9,_0x3eebea);},'pmWrI':function(_0x2e8455,_0x17a0d8){return _0x2e8455<_0x17a0d8;},'brdzT':function(_0xa56cc6,_0x216295){return _0xa56cc6-_0x216295;},'MbLjh':function(_0x5f1993,_0x17a809){return _0x5f1993+_0x17a809;},'wyOhC':function(_0x45a43a,_0x342f6d,_0x39330b){return _0x45a43a(_0x342f6d,_0x39330b);},'cfBEn':function(_0x269e6f,_0x2aed8f,_0x302bd7,_0x5ecd44){return _0x269e6f(_0x2aed8f,_0x302bd7,_0x5ecd44);},'GVpSL':function(_0x4fbdd2,_0x4fcf9c){return _0x4fbdd2===_0x4fcf9c;},'PexfW':function(_0x5625b7,_0xfe850b){return _0x5625b7+_0xfe850b;},'FlYyd':function(_0x522832,_0x4155ee){return _0x522832+_0x4155ee;},'XPSLD':function(_0x1bafa6,_0x1fae16){return _0x1bafa6*_0x1fae16;},'SfrqH':function(_0x562a94,_0x7bf0f3){return _0x562a94+_0x7bf0f3;},'QVkln':function(_0x5038d2,_0x1a51da){return _0x5038d2>_0x1a51da;},'bWgDf':function(_0x434404,_0x461c03){return _0x434404+_0x461c03;}};let _0x9a118=0x0;const _0x40db7d=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x38554f=_0x581d90[_0x2199ec(0x1e7)](_0x40db7d);if(_0x38554f===-0x1)return 0x0;while(_0x38554f<_0x581d90['length']){const [_0x4accef,_0x4d0ec9]=readId(_0x581d90,_0x38554f);if(_0x42c74c[_0x2199ec(0x1e6)](_0x4accef,ID_CLUSTER))break;const [_0x37be03,_0x171b60]=readVint(_0x581d90,_0x42c74c['ENSfA'](_0x38554f,_0x4d0ec9)),_0x2af0f9=_0x42c74c[_0x2199ec(0x1c5)](_0x38554f,_0x4d0ec9)+_0x171b60,_0x2a18c6=_0x42c74c[_0x2199ec(0x1fe)](isUnknownSize,_0x37be03,_0x171b60);let _0x1ec2c5;if(_0x2a18c6){let _0x6e919f=_0x2af0f9;while(_0x42c74c['pmWrI'](_0x6e919f,_0x42c74c[_0x2199ec(0x1db)](_0x581d90['length'],0x4))){const [_0x50d016,_0x11f918]=readId(_0x581d90,_0x6e919f);if(_0x50d016===ID_CLUSTER){_0x1ec2c5=_0x6e919f;break;}const [_0x5d0256,_0xebfb08]=readVint(_0x581d90,_0x42c74c['MbLjh'](_0x6e919f,_0x11f918));if(_0x42c74c[_0x2199ec(0x1fe)](isUnknownSize,_0x5d0256,_0xebfb08)){_0x1ec2c5=_0x581d90[_0x2199ec(0x1f9)];break;}_0x6e919f+=_0x11f918+_0xebfb08+_0x5d0256;}_0x1ec2c5??=_0x581d90[_0x2199ec(0x1f9)];}else _0x1ec2c5=_0x2af0f9+_0x37be03;let _0x54f1de=0x0,_0x55bf8d=_0x2af0f9;while(_0x55bf8d<_0x1ec2c5){const [_0x539737,_0x349e89]=_0x42c74c[_0x2199ec(0x203)](readId,_0x581d90,_0x55bf8d),[_0x5be0b8,_0x38ffed]=_0x42c74c[_0x2199ec(0x1fe)](readVint,_0x581d90,_0x42c74c['ENSfA'](_0x55bf8d,_0x349e89));if(_0x539737===ID_TIMESTAMP)_0x54f1de=_0x42c74c['cfBEn'](readUint,_0x581d90,_0x55bf8d+_0x349e89+_0x38ffed,_0x5be0b8);else{if(_0x42c74c[_0x2199ec(0x1f3)](_0x539737,ID_SIMPLE_BLOCK)&&_0x5be0b8>=0x4){const _0x519b15=_0x42c74c[_0x2199ec(0x1ce)](_0x42c74c[_0x2199ec(0x205)](_0x55bf8d,_0x349e89),_0x38ffed),[,_0x2c345e]=_0x42c74c['wyOhC'](readVint,_0x581d90,_0x519b15),_0x55e7dd=_0x581d90['readInt16BE'](_0x519b15+_0x2c345e),_0x52c0d9=_0x42c74c[_0x2199ec(0x1f2)](_0x42c74c['SfrqH'](_0x54f1de,_0x55e7dd),_0x5e9d86)/0xf4240;_0x42c74c[_0x2199ec(0x1dc)](_0x52c0d9,_0x9a118)&&(_0x9a118=_0x52c0d9);}else{if(_0x42c74c['GVpSL'](_0x539737,ID_CLUSTER))break;}}if(_0x42c74c[_0x2199ec(0x203)](isUnknownSize,_0x5be0b8,_0x38ffed))break;_0x55bf8d+=_0x42c74c['bWgDf'](_0x349e89,_0x38ffed)+_0x5be0b8;}_0x38554f=_0x1ec2c5;}return _0x9a118;}export function fixWebmDuration(_0x5dcee2,_0x37ce35){const _0x43beef=_0x3f24,_0x3a28e8={'JKwwm':function(_0x56f381,_0x395805,_0x57b40){return _0x56f381(_0x395805,_0x57b40);},'COwTJ':function(_0x400854,_0x25a302,_0x59e27a){return _0x400854(_0x25a302,_0x59e27a);},'RfQZl':function(_0x21e35b,_0x4fc1e5,_0x37b33e){return _0x21e35b(_0x4fc1e5,_0x37b33e);},'jqENT':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','BQRQU':function(_0x3e71ff,_0x26245a){return _0x3e71ff+_0x26245a;},'fLuZN':function(_0x3e32aa,_0x496644){return _0x3e32aa+_0x496644;},'VOQTn':function(_0x22807d,_0x1f1611){return _0x22807d<_0x1f1611;},'XSTNu':function(_0x2295f5,_0x3d8f39,_0x3b11d6){return _0x2295f5(_0x3d8f39,_0x3b11d6);},'UkVdd':function(_0x1c79fe,_0x584918){return _0x1c79fe===_0x584918;},'TZZRX':function(_0x1eb9a7,_0x4b6a15){return _0x1eb9a7+_0x4b6a15;},'ZCiKq':function(_0x4f4723,_0x31eb85){return _0x4f4723===_0x31eb85;},'FRNim':function(_0x55349a,_0x10b6d4,_0x46d50e){return _0x55349a(_0x10b6d4,_0x46d50e);},'GrqZF':function(_0x163c85,_0x2e5c8c){return _0x163c85+_0x2e5c8c;},'BPxah':function(_0x3f2d52,_0x1bbceb,_0xed2e71,_0x2558c4){return _0x3f2d52(_0x1bbceb,_0xed2e71,_0x2558c4);},'NRIYK':function(_0x1b002c,_0x10bbba){return _0x1b002c*_0x10bbba;},'Bwgfq':function(_0x4fb21f,_0x34dead){return _0x4fb21f(_0x34dead);},'EVAAB':function(_0x2160cc,_0xab0572){return _0x2160cc<_0xab0572;},'lNSrP':function(_0x100577,_0x229099){return _0x100577-_0x229099;},'qWVtM':function(_0x21e529,_0x310edf){return _0x21e529<_0x310edf;},'iwvnD':function(_0x1f789b,_0x33d59c){return _0x1f789b(_0x33d59c);}},_0x474eab=readFileSync(_0x5dcee2);let _0x31606d=0x0;const [_0xf70a0e,_0x284dff]=_0x3a28e8['JKwwm'](readId,_0x474eab,_0x31606d),[_0x106de3,_0x31a111]=_0x3a28e8[_0x43beef(0x1de)](readVint,_0x474eab,_0x31606d+_0x284dff);_0x31606d+=_0x284dff+_0x31a111+_0x106de3;const [_0xbe7a5c,_0x20d292]=_0x3a28e8['RfQZl'](readId,_0x474eab,_0x31606d);if(_0xbe7a5c!==ID_SEGMENT)return console['error'](_0x3a28e8[_0x43beef(0x1e2)]),![];const [,_0x1f1f53]=readVint(_0x474eab,_0x3a28e8[_0x43beef(0x202)](_0x31606d,_0x20d292)),_0x6d5127=_0x3a28e8[_0x43beef(0x202)](_0x31606d+_0x20d292,_0x1f1f53);let _0xcb7b57=_0x6d5127;const _0x1fbbc7=Math['min'](_0x474eab['length'],_0x3a28e8['fLuZN'](_0x6d5127,0x2710));let _0x3800e5=null,_0x268bd8=null;while(_0x3a28e8[_0x43beef(0x1e9)](_0xcb7b57,_0x1fbbc7)){const [_0x5c00c8,_0x31118c]=_0x3a28e8['XSTNu'](readId,_0x474eab,_0xcb7b57),[_0xc224c0,_0x494691]=_0x3a28e8[_0x43beef(0x1cf)](readVint,_0x474eab,_0x3a28e8[_0x43beef(0x1ee)](_0xcb7b57,_0x31118c));_0x3a28e8['UkVdd'](_0x5c00c8,ID_VOID)&&!_0x3800e5&&(_0x3800e5={'offset':_0xcb7b57,'idLen':_0x31118c,'sizeLen':_0x494691,'dataSize':_0xc224c0,'dataOffset':_0x3a28e8[_0x43beef(0x1e0)](_0xcb7b57,_0x31118c)+_0x494691});if(_0x3a28e8['ZCiKq'](_0x5c00c8,ID_INFO)){_0x268bd8={'offset':_0xcb7b57,'idLen':_0x31118c,'sizeLen':_0x494691,'dataSize':_0xc224c0,'dataOffset':_0x3a28e8['BQRQU'](_0xcb7b57+_0x31118c,_0x494691)};break;}if(_0x5c00c8===ID_CLUSTER)break;if(_0x3a28e8[_0x43beef(0x1d6)](isUnknownSize,_0xc224c0,_0x494691))break;_0xcb7b57+=_0x3a28e8[_0x43beef(0x1d5)](_0x31118c,_0x494691)+_0xc224c0;}if(!_0x268bd8)return console[_0x43beef(0x1c6)]('Could\x20not\x20find\x20Info\x20element'),![];const _0x1836ef=findElement(_0x474eab,_0x268bd8[_0x43beef(0x1cc)],_0x268bd8[_0x43beef(0x1cc)]+_0x268bd8[_0x43beef(0x1fa)],ID_DURATION);if(_0x1836ef)return![];const _0xe6cf03=findElement(_0x474eab,_0x268bd8['dataOffset'],_0x268bd8['dataOffset']+_0x268bd8['dataSize'],ID_TIMESTAMP_SCALE);let _0x449eb2=0xf4240;_0xe6cf03&&(_0x449eb2=_0x3a28e8['BPxah'](readUint,_0x474eab,_0xe6cf03['dataOffset'],_0xe6cf03['dataSize']));const _0x57de34=_0x3a28e8[_0x43beef(0x1d6)](computeDurationMs,_0x474eab,_0x449eb2);if(_0x57de34<=0x0)return console[_0x43beef(0x1c6)]('Could\x20not\x20compute\x20duration'),![];const _0x59a1cb=_0x3a28e8['NRIYK'](_0x57de34,0xf4240)/_0x449eb2,_0x477268=Buffer[_0x43beef(0x1ec)]([writeId(ID_DURATION),writeVint(0x8),_0x3a28e8[_0x43beef(0x1eb)](writeFloat64,_0x59a1cb)]),_0x2b7c7c=_0x477268[_0x43beef(0x1f9)];if(!_0x3800e5||_0x3a28e8['EVAAB'](_0x3800e5['offset'],_0x268bd8[_0x43beef(0x1f1)])){if(_0x3800e5){const _0x3a7d54=_0x3a28e8['TZZRX'](_0x3800e5[_0x43beef(0x1d7)]+_0x3800e5['sizeLen'],_0x3800e5['dataSize']),_0xb6fc9=_0x3a28e8[_0x43beef(0x1f5)](_0x3a7d54,_0x2b7c7c);if(_0x3a28e8[_0x43beef(0x200)](_0xb6fc9,0x2))return rewriteFile(_0x474eab,_0x268bd8,_0x477268,_0x449eb2,_0x57de34,_0x37ce35);const _0x43a4e2=_0x3a28e8[_0x43beef(0x202)](_0x268bd8['dataSize'],_0x2b7c7c),_0x2ab66c=Buffer[_0x43beef(0x1ec)]([_0x3a28e8[_0x43beef(0x1eb)](writeId,ID_INFO),writeVint(_0x43a4e2,_0x268bd8['sizeLen'])]),_0x5c4dd6=_0x474eab['slice'](_0x268bd8['dataOffset'],_0x3a28e8[_0x43beef(0x1ee)](_0x268bd8[_0x43beef(0x1cc)],_0x268bd8[_0x43beef(0x1fa)])),_0x1e9087=_0x3a28e8[_0x43beef(0x1e1)](writeVoid,_0xb6fc9),_0x55ca11=_0x474eab[_0x43beef(0x1d3)](0x0,_0x3800e5['offset']),_0x5aa074=_0x474eab[_0x43beef(0x1d3)](_0x3a28e8['BQRQU'](_0x268bd8[_0x43beef(0x1cc)],_0x268bd8['dataSize']));return _0x3a28e8[_0x43beef(0x1d6)](writeFileSync,_0x37ce35,Buffer['concat']([_0x55ca11,_0x1e9087,_0x2ab66c,_0x5c4dd6,_0x477268,_0x5aa074])),!![];}}return rewriteFile(_0x474eab,_0x268bd8,_0x477268,_0x449eb2,_0x57de34,_0x37ce35);}function rewriteFile(_0x27320e,_0x1be8fa,_0x326515,_0x494c40,_0x1c05a4,_0x341620){const _0x28322f=_0x3f24,_0x3d29f5={'bcagO':function(_0x522870,_0x55e977){return _0x522870(_0x55e977);},'ZvcuV':function(_0xf94e8b,_0x5570ef){return _0xf94e8b+_0x5570ef;},'hzlDx':function(_0x183077,_0x1e8c90,_0x1e4891){return _0x183077(_0x1e8c90,_0x1e4891);}},_0x3eec9d=_0x1be8fa['dataSize']+_0x326515['length'],_0x364628=Buffer[_0x28322f(0x1ec)]([writeId(ID_INFO),_0x3d29f5['bcagO'](writeVint,_0x3eec9d)]),_0x425d6e=_0x3d29f5['ZvcuV'](_0x1be8fa['idLen'],_0x1be8fa[_0x28322f(0x1c3)]),_0xc69dea=_0x27320e['slice'](0x0,_0x1be8fa[_0x28322f(0x1f1)]),_0x45d15b=_0x27320e[_0x28322f(0x1d3)](_0x1be8fa[_0x28322f(0x1cc)],_0x1be8fa['dataOffset']+_0x1be8fa['dataSize']),_0x4655c2=_0x27320e[_0x28322f(0x1d3)](_0x1be8fa['offset']+_0x425d6e+_0x1be8fa['dataSize']);return _0x3d29f5['hzlDx'](writeFileSync,_0x341620,Buffer[_0x28322f(0x1ec)]([_0xc69dea,_0x364628,_0x45d15b,_0x326515,_0x4655c2])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x33dcce(0x206))||process['argv'][0x1]?.[_0x33dcce(0x1ef)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error'](_0x33dcce(0x1df)),process[_0x33dcce(0x1c7)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x33dcce(0x1cd)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x96bd1,_0x2f09aa){const _0x38cada=_0xa5a8,_0x29a47e=_0x96bd1();while(!![]){try{const _0x46fcca=-parseInt(_0x38cada(0x121))/0x1*(parseInt(_0x38cada(0x122))/0x2)+parseInt(_0x38cada(0x126))/0x3+parseInt(_0x38cada(0x11b))/0x4*(parseInt(_0x38cada(0x11c))/0x5)+parseInt(_0x38cada(0x123))/0x6*(parseInt(_0x38cada(0x11f))/0x7)+-parseInt(_0x38cada(0x11e))/0x8*(parseInt(_0x38cada(0x124))/0x9)+-parseInt(_0x38cada(0x125))/0xa+-parseInt(_0x38cada(0x11a))/0xb*(-parseInt(_0x38cada(0x127))/0xc);if(_0x46fcca===_0x2f09aa)break;else _0x29a47e['push'](_0x29a47e['shift']());}catch(_0x2c6843){_0x29a47e['push'](_0x29a47e['shift']());}}}(_0x30c2,0xc834f));import{execFile as _0x181432}from'child_process';import{promisify}from'util';function _0xa5a8(_0x493b61,_0x22389a){_0x493b61=_0x493b61-0x119;const _0x30c22e=_0x30c2();let _0xa5a850=_0x30c22e[_0x493b61];return _0xa5a850;}function _0x30c2(){const _0x4f8968=['ls-files','11819144nYBWGn','63JRrCkM','--error-unmatch','11317LkMIXg','230WeAXsa','514542uBzacI','9UxBpPz','7237580HavCgT','3533685zAlVuM','1329168xjpnim','git','iPbWy','154kSoLLC','1096332XVnQJZ','15DgvxXD'];_0x30c2=function(){return _0x4f8968;};return _0x30c2();}const execFile=promisify(_0x181432);export async function isPathGitTracked(_0x54f1d9){const _0xb1a4a2=_0xa5a8,_0x6826a={'nnKbk':function(_0x34e3c7,_0x203083,_0x31d3fd,_0x56e407){return _0x34e3c7(_0x203083,_0x31d3fd,_0x56e407);},'iPbWy':_0xb1a4a2(0x11d),'tSplZ':_0xb1a4a2(0x120)};try{return await _0x6826a['nnKbk'](execFile,_0xb1a4a2(0x128),[_0x6826a[_0xb1a4a2(0x119)],_0x6826a['tSplZ'],_0x54f1d9],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x550bef=_0xb5f4;(function(_0x1399e2,_0x350b7f){const _0x3ce621=_0xb5f4,_0x23c35c=_0x1399e2();while(!![]){try{const _0x435478=-parseInt(_0x3ce621(0x11f))/0x1*(parseInt(_0x3ce621(0x114))/0x2)+-parseInt(_0x3ce621(0xf7))/0x3+parseInt(_0x3ce621(0xdd))/0x4*(-parseInt(_0x3ce621(0xe3))/0x5)+parseInt(_0x3ce621(0xe6))/0x6*(-parseInt(_0x3ce621(0xf8))/0x7)+-parseInt(_0x3ce621(0x118))/0x8+parseInt(_0x3ce621(0xe5))/0x9+parseInt(_0x3ce621(0xe0))/0xa;if(_0x435478===_0x350b7f)break;else _0x23c35c['push'](_0x23c35c['shift']());}catch(_0x4634b4){_0x23c35c['push'](_0x23c35c['shift']());}}}(_0x507e,0x6353d));const _0x659b3b=(function(){const _0x28fdc4=_0xb5f4,_0x45e4f6={'XgjHL':_0x28fdc4(0xe4)};let _0x23253f=!![];return function(_0x14493a,_0x24d4d0){const _0x3945e3=_0x28fdc4;if('MxXoN'===_0x45e4f6['XgjHL']){const _0x181900=_0x23253f?function(){const _0x58d1b3=_0xb5f4;if(_0x24d4d0){const _0x2e3e2d=_0x24d4d0[_0x58d1b3(0xf9)](_0x14493a,arguments);return _0x24d4d0=null,_0x2e3e2d;}}:function(){};return _0x23253f=![],_0x181900;}else{const _0xb2fd19=_0xa4b48a[_0x3945e3(0xf9)](_0x470bab,arguments);return _0x26a5eb=null,_0xb2fd19;}};}()),_0x2061e5=_0x659b3b(this,function(){const _0x2dac35=_0xb5f4,_0x370434={'OCgAA':'(((.+)+)+)+$'};return _0x2061e5[_0x2dac35(0x102)]()[_0x2dac35(0xdf)](_0x2dac35(0xea))[_0x2dac35(0x102)]()[_0x2dac35(0xfd)](_0x2061e5)[_0x2dac35(0xdf)](_0x370434[_0x2dac35(0x106)]);});_0x2061e5();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x550bef(0xe9),ENV_TOKEN_LEGACY=_0x550bef(0x11d),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x550bef(0xee)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x550bef(0x109));function isGitHubCI(){const _0x37f48f=_0x550bef;return!!process[_0x37f48f(0x112)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x2040b4,_0x1a897f){const _0x2581e7=_0x550bef,_0x5b53d0={'YYCMh':function(_0xa00ff6,_0x4a9656,_0x2f77c8){return _0xa00ff6(_0x4a9656,_0x2f77c8);}},_0x20dd5d=process[_0x2581e7(0x112)]['GITHUB_ENV'];_0x20dd5d&&await _0x5b53d0[_0x2581e7(0x11a)](appendFile,_0x20dd5d,_0x2040b4+'='+_0x1a897f+'\x0a');}export async function storeToken(_0x41145a){const _0x462773=_0x550bef,_0x2a2d78={'nwXmM':function(_0x4cc8e1){return _0x4cc8e1();},'VuAmm':function(_0x17cf3f,_0x407653){return _0x17cf3f===_0x407653;},'qszYK':_0x462773(0xf3),'PnFHy':function(_0xda7ee9,_0x3f1416,_0x1eedf6){return _0xda7ee9(_0x3f1416,_0x1eedf6);}};if(_0x2a2d78['nwXmM'](isGitHubCI))await writeToGitHubEnv(ENV_TOKEN,_0x41145a);else{if(_0x2a2d78[_0x462773(0x105)](_0x2a2d78[_0x462773(0xde)],_0x2a2d78[_0x462773(0xde)]))await _0x2a2d78[_0x462773(0xfc)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x41145a,{'mode':0x180});else return!!_0x5146c5[_0x462773(0x112)][_0x462773(0xfa)];}}export async function getToken(){const _0x530f3f=_0x550bef,_0x1aef8e={'ThgPt':function(_0x1706bb,_0x417f33,_0x1224c3){return _0x1706bb(_0x417f33,_0x1224c3);},'vUwIS':'utf-8','UTgVF':function(_0x52e9e3){return _0x52e9e3();},'jwXif':function(_0x40a6c5){return _0x40a6c5();},'LCUHm':_0x530f3f(0x116),'iomQq':function(_0x2d5cde,_0x3c5a7e){return _0x2d5cde!==_0x3c5a7e;},'XIwvd':'jCfrg','nSuhi':_0x530f3f(0x107),'AhHvQ':function(_0x45adb0){return _0x45adb0();},'lEilN':function(_0x5c9186,_0x709bb4){return _0x5c9186!==_0x709bb4;},'mineI':_0x530f3f(0xef),'sstnr':function(_0x5dee86,_0x26c441){return _0x5dee86 instanceof _0x26c441;},'qxbhR':function(_0x3077a3,_0x1fecbe){return _0x3077a3(_0x1fecbe);},'TdWyb':function(_0x3bfbd9,_0x2b8996){return _0x3bfbd9+_0x2b8996;},'IcDeN':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','DndlS':_0x530f3f(0x115)};if(process['env'][ENV_TOKEN])return process[_0x530f3f(0x112)][ENV_TOKEN];if(process[_0x530f3f(0x112)][ENV_TOKEN_LEGACY])return process[_0x530f3f(0x112)][ENV_TOKEN_LEGACY];let _0x94e7fa=null;try{_0x94e7fa=(await _0x1aef8e['ThgPt'](readFile,TOKEN_PATH,_0x1aef8e[_0x530f3f(0xf0)]))['trim']()||null;}catch{const _0x3fd662=await _0x1aef8e[_0x530f3f(0x10e)](tryRefreshToken);return _0x3fd662;}if(!_0x94e7fa)return null;const _0x444646=await checkTokenValid(_0x94e7fa);if(_0x444646)return _0x94e7fa;const _0x1b8340=await tryPromoteRefreshToken(_0x94e7fa);if(_0x1b8340)return _0x1b8340;const _0x4d8aaa=await _0x1aef8e[_0x530f3f(0x104)](tryRefreshToken);if(_0x4d8aaa)return _0x4d8aaa;const {getMcpAuthOrigin:_0x2a9284,mcpBootstrap:_0x48fd9b}=await import(_0x1aef8e[_0x530f3f(0x11b)]),_0x46e1c7=await _0x1aef8e[_0x530f3f(0x10e)](_0x2a9284);if(_0x46e1c7)try{if(_0x1aef8e[_0x530f3f(0x108)](_0x1aef8e[_0x530f3f(0x10a)],_0x1aef8e[_0x530f3f(0x10a)]))return _0x1b71b5[_0x530f3f(0x112)][_0x252bfb];else{console[_0x530f3f(0xf1)](_0x1aef8e[_0x530f3f(0xec)]),await _0x1aef8e[_0x530f3f(0x103)](_0x48fd9b);const _0x2385ad=await _0x1aef8e[_0x530f3f(0x104)](tryRefreshToken);if(_0x2385ad)return _0x2385ad;}}catch(_0x138cc1){if(_0x1aef8e[_0x530f3f(0x120)]('MBKBZ',_0x1aef8e[_0x530f3f(0xff)]))return![];else{const _0x41a988=_0x1aef8e['sstnr'](_0x138cc1,Error)?_0x138cc1['message']:_0x1aef8e[_0x530f3f(0xdc)](String,_0x138cc1);throw new Error(_0x1aef8e[_0x530f3f(0xe7)](_0x530f3f(0x113)+_0x41a988+'\x0a',_0x1aef8e['IcDeN']));}}throw new Error(_0x1aef8e['DndlS']);}async function checkTokenValid(_0x382715){const _0x3db138=_0x550bef,_0x34ec51={'JbQsF':function(_0x4afad3,_0x1fc8c4){return _0x4afad3===_0x1fc8c4;},'pdbLe':'wLVhJ','upRZE':_0x3db138(0x119),'KndWG':function(_0x24dabc,_0xd1ef9d,_0x582063){return _0x24dabc(_0xd1ef9d,_0x582063);},'jJdZc':_0x3db138(0x10d),'qyZTR':function(_0x2007c9,_0x2261a1){return _0x2007c9!==_0x2261a1;},'kBBYu':function(_0x24b47a,_0x57efc0){return _0x24b47a(_0x57efc0);}},_0xd3ca38=new AbortController(),_0x2d2c23=setTimeout(()=>_0xd3ca38['abort'](),0x1388);try{if(_0x34ec51['JbQsF'](_0x3db138(0x124),_0x34ec51['pdbLe']))return _0x2dd0c0['env'][_0x52c2de];else{const {getApiBaseUrl:_0x2e57d8}=await import(_0x34ec51[_0x3db138(0xeb)]),_0x19cb97=_0x2e57d8(),_0x35ee7b=await _0x34ec51[_0x3db138(0x10b)](fetch,_0x19cb97+_0x3db138(0x123),{'method':_0x34ec51[_0x3db138(0xf2)],'headers':{'Authorization':_0x3db138(0x111)+_0x382715},'signal':_0xd3ca38[_0x3db138(0xfb)]});return _0x35ee7b['ok'];}}catch{return!![];}finally{if(_0x34ec51[_0x3db138(0xf4)](_0x3db138(0xe2),'ImoIW'))_0x34ec51[_0x3db138(0x100)](clearTimeout,_0x2d2c23);else{const _0x244195=_0x537aa2?function(){const _0x52df68=_0x3db138;if(_0x5ca3d6){const _0x3eb6af=_0x56e865[_0x52df68(0xf9)](_0x2097da,arguments);return _0x334f47=null,_0x3eb6af;}}:function(){};return _0x38c5d8=![],_0x244195;}}}async function tryRefreshToken(){const _0x5a8f73=_0x550bef,_0x336c5c={'LjSxY':function(_0xe2e8e6){return _0xe2e8e6();}},{refreshCliToken:_0x3ca23c}=await import(_0x5a8f73(0xf6));return _0x336c5c[_0x5a8f73(0x10c)](_0x3ca23c);}async function tryPromoteRefreshToken(_0x3e3f72){const _0x5cdc82=_0x550bef,_0xdc17da={'EfLCs':_0x5cdc82(0xf6),'vfhlP':function(_0x23b343,_0x4c06ad,_0x126e32){return _0x23b343(_0x4c06ad,_0x126e32);}},{refreshPartnerCliToken:_0x33780a}=await import(_0xdc17da[_0x5cdc82(0x101)]);return _0xdc17da['vfhlP'](_0x33780a,_0x3e3f72,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x5c4bfb=_0x550bef,_0x3009c3={'JZCMG':function(_0x58c3af,_0x42bb02){return _0x58c3af!==_0x42bb02;},'NNbcR':_0x5c4bfb(0xda),'zIOTu':_0x5c4bfb(0xe1),'UHoct':function(_0xd132ef,_0x2e2032){return _0xd132ef(_0x2e2032);}};try{return _0x3009c3[_0x5c4bfb(0xfe)](_0x3009c3['NNbcR'],_0x3009c3[_0x5c4bfb(0x122)])?(await _0x3009c3[_0x5c4bfb(0xf5)](unlink,TOKEN_PATH),!![]):!![];}catch{return![];}}function _0xb5f4(_0x4d9479,_0xee0e74){_0x4d9479=_0x4d9479-0xda;const _0x2a02ec=_0x507e();let _0x2061e5=_0x2a02ec[_0x4d9479];if(_0xb5f4['kmJVxJ']===undefined){var _0x659b3b=function(_0x3f5b75){const _0x3e1ef6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57a75f='',_0x15cf29='',_0x480db4=_0x57a75f+_0x659b3b;for(let _0x7beba0=0x0,_0x12c1c7,_0x2b661d,_0x3e0872=0x0;_0x2b661d=_0x3f5b75['charAt'](_0x3e0872++);~_0x2b661d&&(_0x12c1c7=_0x7beba0%0x4?_0x12c1c7*0x40+_0x2b661d:_0x2b661d,_0x7beba0++%0x4)?_0x57a75f+=_0x480db4['charCodeAt'](_0x3e0872+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x12c1c7>>(-0x2*_0x7beba0&0x6)):_0x7beba0:0x0){_0x2b661d=_0x3e1ef6['indexOf'](_0x2b661d);}for(let _0x52bbf4=0x0,_0x7bfd5c=_0x57a75f['length'];_0x52bbf4<_0x7bfd5c;_0x52bbf4++){_0x15cf29+='%'+('00'+_0x57a75f['charCodeAt'](_0x52bbf4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15cf29);};_0xb5f4['gsCIvk']=_0x659b3b,_0xb5f4['qZlRiy']={},_0xb5f4['kmJVxJ']=!![];}const _0x507ece=_0x2a02ec[0x0],_0xb5f414=_0x4d9479+_0x507ece,_0x2189c0=_0xb5f4['qZlRiy'][_0xb5f414];if(!_0x2189c0){const _0x537aa2=function(_0x2b18c7){this['MQjDhU']=_0x2b18c7,this['zfEVzg']=[0x1,0x0,0x0],this['pDVcDW']=function(){return'newState';},this['RfNziS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KoeBOj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x537aa2['prototype']['sBCyUo']=function(){const _0x570009=new RegExp(this['RfNziS']+this['KoeBOj']),_0x4bf682=_0x570009['test'](this['pDVcDW']['toString']())?--this['zfEVzg'][0x1]:--this['zfEVzg'][0x0];return this['AnJBID'](_0x4bf682);},_0x537aa2['prototype']['AnJBID']=function(_0x125469){if(!Boolean(~_0x125469))return _0x125469;return this['aZxAPZ'](this['MQjDhU']);},_0x537aa2['prototype']['aZxAPZ']=function(_0x38c5d8){for(let _0x5ca3d6=0x0,_0x51ad84=this['zfEVzg']['length'];_0x5ca3d6<_0x51ad84;_0x5ca3d6++){this['zfEVzg']['push'](Math['round'](Math['random']())),_0x51ad84=this['zfEVzg']['length'];}return _0x38c5d8(this['zfEVzg'][0x0]);},new _0x537aa2(_0xb5f4)['sBCyUo'](),_0x2061e5=_0xb5f4['gsCIvk'](_0x2061e5),_0xb5f4['qZlRiy'][_0xb5f414]=_0x2061e5;}else _0x2061e5=_0x2189c0;return _0x2061e5;}function _0x507e(){const _0x403021=['BLn1AgK','zeruvui','y2XPlNr4Da','tujlqLO','DLv3svm','Bg9N','AKPKwMm','wxfoBfG','CxLAvfi','vuHVy3q','lI90B2TLBLjLzNjLC2GUANm','mtKYodm2nfHvALvStG','n21HEwXSzG','yxbWBhK','r0Lusfvcx0vovG','C2LNBMfS','ug5gshK','y29UC3rYDwn0B3i','sLPdtuC','BwLUzuK','A0jcwxu','rwzmq3m','Dg9tDhjPBMC','qwHiDLe','ANDyAwy','vNvbBw0','t0nNque','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','Aw9Tuxe','CMvMCMvZAc50Ehq','weL3DMq','s25Kv0C','tgPtEfK','r0vu','vvrNvKy','DxrMltG','t0req1i','qMvHCMvYia','zw52','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','nteWmtjVDhfjs3m','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','lI4VBwnWqM9VDhn0CMfWlMPZ','qLbxrfO','nJmZntq1nKPez1r0BG','lI9LBNzPCM9UBwvUDc5QCW','wvLdtwG','tenvsg0','zKzwv0C','uKfor0vsx01duf9ut0TftG','C0zlBhC','mNndvgfbqG','BevPBe4','EuvVyMi','EKLpvhu','l2fWAs92ms9Ty3aVBwu','z29rvLq','rfvIBMC','r2P1tLq','CxHIAfi','mZK1mLD4tgrWBq','Cxn6wuS','C2vHCMnO','mtK1otqYntbwvu55B0C','r3vQCKe','EK5qqwW','mZm4nxz3yuLJsG','txHyB04','nJi1nZe4n2Xgr2fWrG','ntu5mJKWDNHlqwPe','vgrxEwi','DhjPBq','uKfor0vsx0nmsv9ut0TftG','kcGOlISPkYKRksSK','DxbswKu'];_0x507e=function(){return _0x403021;};return _0x507e();}export async function storeRefreshToken(_0x145d3f){const _0x287037=_0x550bef,_0x422435={'GjuNT':function(_0x19dab3,_0x680e1f,_0x5bc4ef){return _0x19dab3(_0x680e1f,_0x5bc4ef);}};await _0x422435[_0x287037(0xdb)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x145d3f,{'mode':0x180});}export async function getRefreshToken(){const _0x12640c=_0x550bef,_0x507d0c={'sFKlw':function(_0x324f6f,_0x4e7c5c,_0x377d0c){return _0x324f6f(_0x4e7c5c,_0x377d0c);},'dDTUB':_0x12640c(0x10f)};try{const _0x38cb3a=await _0x507d0c[_0x12640c(0x11e)](readFile,REFRESH_TOKEN_PATH,_0x507d0c[_0x12640c(0xed)]);return _0x38cb3a[_0x12640c(0xe8)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x57c5e7=_0x550bef,_0x349342={'BPWDZ':function(_0x87f49d,_0x8ba8b2){return _0x87f49d===_0x8ba8b2;}};try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return _0x349342[_0x57c5e7(0x117)](_0x57c5e7(0x110),_0x57c5e7(0x121))?![]:![];}}export async function deleteAllCredentials(){const _0x2ed187=_0x550bef,_0x252eab={'fFVWG':function(_0x2dbc70){return _0x2dbc70();}};await deleteToken(),await _0x252eab[_0x2ed187(0x11c)](deleteRefreshToken);}
|
|
1
|
+
function _0x33cc(_0x1ac0cb,_0x5eac52){_0x1ac0cb=_0x1ac0cb-0x107;const _0x532af5=_0x5fbc();let _0x2bd6ed=_0x532af5[_0x1ac0cb];if(_0x33cc['DSPvQF']===undefined){var _0x11a6e3=function(_0xf2193e){const _0x19c567='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3262d1='',_0x50cac6='',_0x385c75=_0x3262d1+_0x11a6e3;for(let _0x543bb2=0x0,_0x129bbb,_0x1451e6,_0x1c5333=0x0;_0x1451e6=_0xf2193e['charAt'](_0x1c5333++);~_0x1451e6&&(_0x129bbb=_0x543bb2%0x4?_0x129bbb*0x40+_0x1451e6:_0x1451e6,_0x543bb2++%0x4)?_0x3262d1+=_0x385c75['charCodeAt'](_0x1c5333+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x129bbb>>(-0x2*_0x543bb2&0x6)):_0x543bb2:0x0){_0x1451e6=_0x19c567['indexOf'](_0x1451e6);}for(let _0x416d8a=0x0,_0x2646b6=_0x3262d1['length'];_0x416d8a<_0x2646b6;_0x416d8a++){_0x50cac6+='%'+('00'+_0x3262d1['charCodeAt'](_0x416d8a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50cac6);};_0x33cc['VzEhzi']=_0x11a6e3,_0x33cc['XHpcQK']={},_0x33cc['DSPvQF']=!![];}const _0x5fbc29=_0x532af5[0x0],_0x33ccd6=_0x1ac0cb+_0x5fbc29,_0x170f9b=_0x33cc['XHpcQK'][_0x33ccd6];if(!_0x170f9b){const _0x3d3f42=function(_0x7537c3){this['kRVXzM']=_0x7537c3,this['vjSWIf']=[0x1,0x0,0x0],this['dTNvRt']=function(){return'newState';},this['staIHw']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['JUUWBA']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3d3f42['prototype']['aUvRKn']=function(){const _0x18a1ed=new RegExp(this['staIHw']+this['JUUWBA']),_0x76e9ff=_0x18a1ed['test'](this['dTNvRt']['toString']())?--this['vjSWIf'][0x1]:--this['vjSWIf'][0x0];return this['NjxwfX'](_0x76e9ff);},_0x3d3f42['prototype']['NjxwfX']=function(_0x482a2e){if(!Boolean(~_0x482a2e))return _0x482a2e;return this['qbEkSd'](this['kRVXzM']);},_0x3d3f42['prototype']['qbEkSd']=function(_0x45a919){for(let _0x59fc16=0x0,_0x128be6=this['vjSWIf']['length'];_0x59fc16<_0x128be6;_0x59fc16++){this['vjSWIf']['push'](Math['round'](Math['random']())),_0x128be6=this['vjSWIf']['length'];}return _0x45a919(this['vjSWIf'][0x0]);},new _0x3d3f42(_0x33cc)['aUvRKn'](),_0x2bd6ed=_0x33cc['VzEhzi'](_0x2bd6ed),_0x33cc['XHpcQK'][_0x33ccd6]=_0x2bd6ed;}else _0x2bd6ed=_0x170f9b;return _0x2bd6ed;}const _0x511fe8=_0x33cc;(function(_0x478c00,_0x52b266){const _0x441391=_0x33cc,_0x39bde1=_0x478c00();while(!![]){try{const _0x46ec35=parseInt(_0x441391(0x131))/0x1+parseInt(_0x441391(0x123))/0x2+parseInt(_0x441391(0x115))/0x3*(-parseInt(_0x441391(0x155))/0x4)+parseInt(_0x441391(0x15c))/0x5+parseInt(_0x441391(0x126))/0x6+parseInt(_0x441391(0x108))/0x7+-parseInt(_0x441391(0x143))/0x8*(parseInt(_0x441391(0x11d))/0x9);if(_0x46ec35===_0x52b266)break;else _0x39bde1['push'](_0x39bde1['shift']());}catch(_0x5be793){_0x39bde1['push'](_0x39bde1['shift']());}}}(_0x5fbc,0xc31df));const _0x11a6e3=(function(){const _0x67f1c8={'UHSif':function(_0x174e39,_0x2e3b02){return _0x174e39===_0x2e3b02;}};let _0x505bed=!![];return function(_0x503e17,_0x58dc89){const _0x548ce2=_0x33cc,_0x333779={'oMqnW':function(_0x1b70fb,_0x10bf45){return _0x1b70fb!==_0x10bf45;},'kubLY':_0x548ce2(0x120)};if(_0x67f1c8[_0x548ce2(0x156)]('iKfJD',_0x548ce2(0x11c))){const _0x14e48d=_0x505bed?function(){const _0x2023d9=_0x548ce2;if(_0x333779[_0x2023d9(0x125)](_0x333779[_0x2023d9(0x128)],_0x2023d9(0x120)))return![];else{if(_0x58dc89){const _0xf5537c=_0x58dc89[_0x2023d9(0x154)](_0x503e17,arguments);return _0x58dc89=null,_0xf5537c;}}}:function(){};return _0x505bed=![],_0x14e48d;}else{const _0x402b29=_0x3d3f42?function(){const _0x3a2f8d=_0x548ce2;if(_0x59fc16){const _0x18edb1=_0xaa9fdf[_0x3a2f8d(0x154)](_0x445008,arguments);return _0x3caf13=null,_0x18edb1;}}:function(){};return _0x45a919=![],_0x402b29;}};}()),_0x2bd6ed=_0x11a6e3(this,function(){const _0x268f43=_0x33cc,_0x1faebe={'zKgoi':_0x268f43(0x14a)};return _0x2bd6ed[_0x268f43(0x13d)]()[_0x268f43(0x10e)](_0x1faebe[_0x268f43(0x149)])[_0x268f43(0x13d)]()[_0x268f43(0x14b)](_0x2bd6ed)[_0x268f43(0x10e)](_0x268f43(0x14a));});_0x2bd6ed();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x511fe8(0x142),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x511fe8(0x10d)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x511fe8(0x15a));function isGitHubCI(){const _0x33ff15=_0x511fe8;return!!process[_0x33ff15(0x14f)][_0x33ff15(0x121)];}async function writeToGitHubEnv(_0xdc4659,_0x53f8b6){const _0x27adf5=_0x511fe8,_0x46870c={'GBQBs':'(((.+)+)+)+$','nmbKr':function(_0x2a6f63,_0x2ad868){return _0x2a6f63===_0x2ad868;},'KhZNo':_0x27adf5(0x13c),'eyDID':_0x27adf5(0x109),'OvzFm':function(_0x33b361,_0x4ac4a7,_0x43ece3){return _0x33b361(_0x4ac4a7,_0x43ece3);}},_0x48ff15=process[_0x27adf5(0x14f)]['GITHUB_ENV'];if(_0x48ff15){if(_0x46870c[_0x27adf5(0x148)](_0x46870c['KhZNo'],_0x46870c['eyDID']))return _0x2c2adc[_0x27adf5(0x13d)]()[_0x27adf5(0x10e)](gxvjHp[_0x27adf5(0x134)])[_0x27adf5(0x13d)]()[_0x27adf5(0x14b)](_0x100034)['search'](gxvjHp[_0x27adf5(0x134)]);else await _0x46870c[_0x27adf5(0x13e)](appendFile,_0x48ff15,_0xdc4659+'='+_0x53f8b6+'\x0a');}}export async function storeToken(_0x562d03){const _0x481b23=_0x511fe8,_0x5b17ac={'QAZGU':function(_0x1eec66,_0x130a97){return _0x1eec66!==_0x130a97;},'EvMpz':_0x481b23(0x138),'pfVJc':function(_0x3daaad,_0x56d080,_0x5bc917){return _0x3daaad(_0x56d080,_0x5bc917);},'oZblE':function(_0x531b68,_0x499c06,_0x130f7a,_0x14d8dd){return _0x531b68(_0x499c06,_0x130f7a,_0x14d8dd);}};if(isGitHubCI()){if(_0x5b17ac[_0x481b23(0x118)](_0x481b23(0x138),_0x5b17ac[_0x481b23(0x133)]))return _0x4e0d48[_0x481b23(0x14f)][_0x14c99f];else await writeToGitHubEnv(ENV_TOKEN,_0x562d03);}else await _0x5b17ac[_0x481b23(0x136)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x5b17ac['oZblE'](writeFile,TOKEN_PATH,_0x562d03,{'mode':0x180});}export async function getToken(){const _0x43e3c3=_0x511fe8,_0x4639b8={'LOSCH':function(_0xa85344,_0x5549fe){return _0xa85344 instanceof _0x5549fe;},'kZZdR':function(_0x37db5d,_0x3f61ad){return _0x37db5d(_0x3f61ad);},'CuqHS':function(_0x58b50f,_0x1ab3a3){return _0x58b50f===_0x1ab3a3;},'LSDcf':'UyLba','wxtxW':'utf-8','SXfAf':function(_0x2df183){return _0x2df183();},'diXOW':_0x43e3c3(0x146),'XpxOQ':function(_0x2abd5c,_0x264971){return _0x2abd5c!==_0x264971;},'bqyzc':'wBsEM','bPfFX':_0x43e3c3(0x112),'fCUjT':_0x43e3c3(0x13a),'UobMI':function(_0x3a4428,_0x1d4fb0){return _0x3a4428 instanceof _0x1d4fb0;},'PjZRW':function(_0x5cf42d,_0x3bec11){return _0x5cf42d(_0x3bec11);},'lXyEl':function(_0x547ec5,_0x71ba27){return _0x547ec5+_0x71ba27;},'VOXAt':_0x43e3c3(0x11a)};if(process[_0x43e3c3(0x14f)][ENV_TOKEN])return process[_0x43e3c3(0x14f)][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY]){if(_0x4639b8['CuqHS'](_0x4639b8[_0x43e3c3(0x130)],_0x4639b8[_0x43e3c3(0x130)]))return process[_0x43e3c3(0x14f)][ENV_TOKEN_LEGACY];else{const _0x244b27=_0x4639b8[_0x43e3c3(0x12d)](_0x162826,_0x130801)?_0x234ac8[_0x43e3c3(0x12b)]:_0x4639b8[_0x43e3c3(0x113)](_0x534212,_0x119da7);throw new _0x16561a(_0x43e3c3(0x13b)+_0x244b27+'\x0a'+_0x43e3c3(0x11a));}}let _0x144f6b=null;try{_0x144f6b=(await readFile(TOKEN_PATH,_0x4639b8[_0x43e3c3(0x13f)]))[_0x43e3c3(0x129)]()||null;}catch{const _0xdbaca6=await tryRefreshToken();return _0xdbaca6;}if(!_0x144f6b)return null;const _0x7d2144=await checkTokenValid(_0x144f6b);if(_0x7d2144)return _0x144f6b;const _0x589a4d=await _0x4639b8[_0x43e3c3(0x113)](tryPromoteRefreshToken,_0x144f6b);if(_0x589a4d)return _0x589a4d;const _0x4152d4=await _0x4639b8[_0x43e3c3(0x151)](tryRefreshToken);if(_0x4152d4)return _0x4152d4;const {getMcpAuthOrigin:_0x199127,mcpBootstrap:_0x356c66}=await import(_0x4639b8[_0x43e3c3(0x135)]),_0x53fd36=await _0x4639b8[_0x43e3c3(0x151)](_0x199127);if(_0x53fd36){if(_0x4639b8[_0x43e3c3(0x145)](_0x4639b8[_0x43e3c3(0x139)],_0x4639b8['bPfFX']))try{console[_0x43e3c3(0x114)](_0x4639b8[_0x43e3c3(0x116)]),await _0x4639b8['SXfAf'](_0x356c66);const _0x361c0a=await _0x4639b8[_0x43e3c3(0x151)](tryRefreshToken);if(_0x361c0a)return _0x361c0a;}catch(_0x161447){const _0x43d036=_0x4639b8[_0x43e3c3(0x122)](_0x161447,Error)?_0x161447[_0x43e3c3(0x12b)]:_0x4639b8[_0x43e3c3(0x117)](String,_0x161447);throw new Error(_0x4639b8[_0x43e3c3(0x150)](_0x43e3c3(0x13b)+_0x43d036+'\x0a',_0x4639b8['VOXAt']));}else _0xe0d2c9(_0x333131);}throw new Error(_0x43e3c3(0x10f));}async function checkTokenValid(_0x1df19a){const _0x242232=_0x511fe8,_0x4f38ed={'gYLdo':function(_0x3403b9,_0x18eb9f,_0x1bc7aa){return _0x3403b9(_0x18eb9f,_0x1bc7aa);},'VjeOk':function(_0x25900b){return _0x25900b();},'TCxtr':_0x242232(0x15b),'aopzo':function(_0x2e865e,_0x22d92a){return _0x2e865e!==_0x22d92a;},'MBTay':_0x242232(0x110),'dOrnd':_0x242232(0x144),'kmZqv':function(_0x2ca971,_0x396d38){return _0x2ca971(_0x396d38);}},_0x1ca216=new AbortController(),_0x4de4dd=_0x4f38ed[_0x242232(0x158)](setTimeout,()=>_0x1ca216[_0x242232(0x119)](),0x1388);try{const {getApiBaseUrl:_0x317fde}=await import(_0x242232(0x124)),_0x734037=_0x4f38ed[_0x242232(0x14e)](_0x317fde),_0x5a7fe1=await _0x4f38ed[_0x242232(0x158)](fetch,_0x734037+'/api/v1/mcp/me',{'method':_0x4f38ed[_0x242232(0x141)],'headers':{'Authorization':'Bearer\x20'+_0x1df19a},'signal':_0x1ca216[_0x242232(0x152)]});return _0x5a7fe1['ok'];}catch{return!![];}finally{if(_0x4f38ed[_0x242232(0x11e)](_0x4f38ed[_0x242232(0x10b)],_0x4f38ed[_0x242232(0x107)]))_0x4f38ed[_0x242232(0x137)](clearTimeout,_0x4de4dd);else return!!_0x5e21b8[_0x242232(0x14f)][_0x242232(0x121)];}}function _0x5fbc(){const _0x511066=['u0DLDNi','ALnQrM8','A1PAzfi','Bg9N','mZiXndiZA2TKqKjL','zKnvALq','ugPAuLC','uufAr1u','ywjVCNq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','AM1gwva','AuTMsKq','otK5weXuy3DT','yw9WEM8','AM5xv0i','BwD4veG','r0Lusfvcx0vovG','vw9ItuK','mtu5nZC2Bfv1q09n','lI9LBNzPCM9UBwvUDc5QCW','B01XBLC','ndGXmdG0ofznA2XgyG','lI90B2TLBLjLzNjLC2GUANm','A3vItfK','DhjPBq','CvLqD1i','BwvZC2fNzq','DxrMltG','te9tq0G','AMvOAKm','BwXIz2m','tfney2y','nJGYmJC0t3fJtMDJ','svDpEKW','rxznChO','r0jrqNm','zgLyt1C','CgzwsMm','A21ACxy','sgjVCLe','yNf5EMm','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','wun6BuC','Dg9tDhjPBMC','t3z6rM0','D3H0EfC','tvbzzey','ven4Dhi','uKfor0vsx01duf9ut0TftG','mJiYndi0twzQBMrA','D0rQAxK','whb4t1e','lI4VBwnWqM9VDhn0CMfWlMPZ','s0jtthq','BM1Is3i','EKTNB2K','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','EvLTELG','rMLurLu','vMPLt2S','zw52','BfH5rwW','u1HMqwy','C2LNBMfS','Buj5ELC','yxbWBhK','mtzHDurgsMu','vuHtAwy','EevfChC','z1Lmzg8','B1nADLO','CMvMCMvZAc50Ehq','r0vu','nJG4odKYnxzrwNfNzq','ze9YBMq','otyWndK4n1zeCxjSuG','rMLkr3O','Dujbyu4','tujuyxK','r2T4ALC','y2XPlNr4Da','C2vHCMnO','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','EwvQAeu'];_0x5fbc=function(){return _0x511066;};return _0x5fbc();}async function tryRefreshToken(){const _0x396c4f=_0x511fe8,_0x55662d={'wmHlY':_0x396c4f(0x127),'qYPwR':function(_0x6a25e0){return _0x6a25e0();}},{refreshCliToken:_0x2183e3}=await import(_0x55662d['wmHlY']);return _0x55662d[_0x396c4f(0x12a)](_0x2183e3);}async function tryPromoteRefreshToken(_0x595e4b){const _0x8dff9d=_0x511fe8,_0x3e0288={'FiTFU':function(_0x2705b0,_0x323834,_0x2015e9){return _0x2705b0(_0x323834,_0x2015e9);}},{refreshPartnerCliToken:_0xdf4ac0}=await import(_0x8dff9d(0x127));return _0x3e0288[_0x8dff9d(0x14d)](_0xdf4ac0,_0x595e4b,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x28127a={'rRSCb':function(_0x37ccdc,_0x599ddc){return _0x37ccdc(_0x599ddc);}};try{return await _0x28127a['rRSCb'](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x31dc95){const _0x3b050e=_0x511fe8,_0x33f75c={'jmFYP':function(_0x1bf4c5,_0x279c95,_0x1befe7){return _0x1bf4c5(_0x279c95,_0x1befe7);},'xEEpw':function(_0x36e237,_0x1aef7b,_0x1fa39a,_0x10a38b){return _0x36e237(_0x1aef7b,_0x1fa39a,_0x10a38b);}};await _0x33f75c[_0x3b050e(0x11b)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x33f75c[_0x3b050e(0x157)](writeFile,REFRESH_TOKEN_PATH,_0x31dc95,{'mode':0x180});}export async function getRefreshToken(){const _0x8a9ce6=_0x511fe8,_0x138aac={'GkxjW':_0x8a9ce6(0x12c),'mlbgc':function(_0x5ac333,_0x2d593c){return _0x5ac333===_0x2d593c;},'jehjC':_0x8a9ce6(0x111)};try{const _0x53ea94=await readFile(REFRESH_TOKEN_PATH,_0x138aac[_0x8a9ce6(0x10c)]);return _0x53ea94['trim']()||null;}catch{if(_0x138aac[_0x8a9ce6(0x12f)](_0x138aac[_0x8a9ce6(0x12e)],_0x138aac[_0x8a9ce6(0x12e)]))return null;else{if(_0x202152){const _0x119a01=_0xf10c4b[_0x8a9ce6(0x154)](_0x304272,arguments);return _0x462195=null,_0x119a01;}}}}export async function deleteRefreshToken(){const _0x4e034f=_0x511fe8,_0x38153f={'uBAaN':_0x4e034f(0x132),'KBSLt':_0x4e034f(0x153),'MPYdF':function(_0x150c81,_0x44e53e){return _0x150c81===_0x44e53e;},'BhZJp':_0x4e034f(0x14c)};try{return _0x38153f[_0x4e034f(0x10a)]!==_0x38153f[_0x4e034f(0x147)]?(await unlink(REFRESH_TOKEN_PATH),!![]):null;}catch{return _0x38153f[_0x4e034f(0x140)]('BiJBy',_0x38153f['BhZJp'])?_0xc95e1[_0x4e034f(0x14f)][_0x1f8233]:![];}}export async function deleteAllCredentials(){const _0x57a825=_0x511fe8,_0x21b32c={'oSZvZ':function(_0x525c03){return _0x525c03();},'jnWWB':function(_0x422cfd){return _0x422cfd();}};await _0x21b32c[_0x57a825(0x159)](deleteToken),await _0x21b32c[_0x57a825(0x11f)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x172fb1=_0x4006;(function(_0x231822,_0xfbbede){const _0x872fc8=_0x4006,_0x131f3e=_0x231822();while(!![]){try{const _0x56d992=parseInt(_0x872fc8(0x105))/0x1*(-parseInt(_0x872fc8(0x10e))/0x2)+-parseInt(_0x872fc8(0x114))/0x3+parseInt(_0x872fc8(0x10d))/0x4+parseInt(_0x872fc8(0x11a))/0x5+parseInt(_0x872fc8(0x11c))/0x6*(parseInt(_0x872fc8(0x11d))/0x7)+-parseInt(_0x872fc8(0x111))/0x8*(-parseInt(_0x872fc8(0x107))/0x9)+parseInt(_0x872fc8(0x102))/0xa*(-parseInt(_0x872fc8(0x10b))/0xb);if(_0x56d992===_0xfbbede)break;else _0x131f3e['push'](_0x131f3e['shift']());}catch(_0x3ef635){_0x131f3e['push'](_0x131f3e['shift']());}}}(_0x24e2,0xeb26d));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x4006(_0xff3ed3,_0x2c4fa9){_0xff3ed3=_0xff3ed3-0x100;const _0x24e216=_0x24e2();let _0x40068f=_0x24e216[_0xff3ed3];return _0x40068f;}function detectLegacyPaths(){const _0x423325=_0x4006,_0x266ffb={'kYWok':function(_0x1d4f86){return _0x1d4f86();},'AlYjK':function(_0x1e0a05,_0x38ea85,_0x2fe96f){return _0x1e0a05(_0x38ea85,_0x2fe96f);},'dUyME':function(_0x362ffc,_0x3709e4,_0x344ac0){return _0x362ffc(_0x3709e4,_0x344ac0);}},_0x5488d4=_0x266ffb[_0x423325(0x113)](getRangerDir),_0x4e8504=getRangerHomeDir();return[_0x266ffb['AlYjK'](join,_0x5488d4,_0x423325(0x11e)),_0x266ffb[_0x423325(0x10a)](join,_0x5488d4,'ci'),join(_0x4e8504,'local'),join(_0x5488d4,_0x423325(0x103))][_0x423325(0x119)](_0x13cfdf=>existsSync(_0x13cfdf));}function flagFilePath(){const _0x1bee39=_0x4006,_0x1a47ee={'ZAiCi':function(_0x137adc,_0x24c9ee,_0x3251ae){return _0x137adc(_0x24c9ee,_0x3251ae);},'gEizM':function(_0x29b85d){return _0x29b85d();}},_0x2919d7=new Date()['toISOString']()['slice'](0x0,0xa);return _0x1a47ee['ZAiCi'](join,_0x1a47ee['gEizM'](getRangerHomeDir),_0x1bee39(0x110)+_0x2919d7);}export function showLegacyDeprecationWarning(){const _0x29689a=_0x4006,_0x3897d9={'fXvHL':function(_0x35b712,_0x5922dd){return _0x35b712===_0x5922dd;},'PLYaG':function(_0x33b8ef){return _0x33b8ef();},'fsNsa':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','bgfbo':'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','eDMHN':_0x29689a(0x108),'FArtJ':_0x29689a(0x106),'YNSfW':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.'},_0x24795d=detectLegacyPaths();if(_0x3897d9[_0x29689a(0x10c)](_0x24795d[_0x29689a(0x117)],0x0))return;const _0x36e780=_0x3897d9['PLYaG'](flagFilePath);if(existsSync(_0x36e780))return;const _0x28d48a=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x24795d['map'](_0x45523e=>_0x29689a(0x116)+_0x45523e),'',_0x3897d9['fsNsa'],_0x3897d9['bgfbo'],'','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','',_0x3897d9['eDMHN'],_0x3897d9[_0x29689a(0x101)],'',_0x3897d9[_0x29689a(0x115)],''];process['stderr'][_0x29689a(0x104)](_0x28d48a[_0x29689a(0x112)]('\x0a')+'\x0a');try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x36e780,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x172fb1(0x118),'verify-feature',_0x172fb1(0x11b),_0x172fb1(0x109),_0x172fb1(0x10f),'setup-ci','start','use']);export function shouldShowLegacyWarning(_0x2ec781){const _0x4643dc=_0x172fb1,_0x3050fb={'uBJAY':function(_0x2b21cc,_0x3a7bd1){return _0x2b21cc<_0x3a7bd1;},'hexqS':'--help'},_0x51956e=_0x2ec781[0x2];if(!_0x51956e)return![];if(_0x51956e['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x51956e))return![];for(let _0x319fb1=0x3;_0x3050fb[_0x4643dc(0x100)](_0x319fb1,_0x2ec781[_0x4643dc(0x117)]);_0x319fb1++){if(_0x2ec781[_0x319fb1]===_0x3050fb['hexqS']||_0x2ec781[_0x319fb1]==='-h')return![];}return!![];}function _0x24e2(){const _0x5b238e=['profiles','dUyME','426272OKCrPx','fXvHL','3295268JvUrPL','229142BqAhAM','setup','.legacy-warning-','88koQqSn','join','kYWok','802536edGxCS','YNSfW','\x20\x20\x20\x20\x20','length','verify','filter','766930Oapqzr','profile','6ITEnlQ','11316284HYdIou','local','uBJAY','FArtJ','370nUSJQw','active-profile.txt','write','1AXuSmG','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','151587ksOIDr','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:'];_0x24e2=function(){return _0x5b238e;};return _0x24e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4d75(){const _0x4a34dc=['ue9tva','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','CxfHDgu','qMvHCMvYia','y29UC3rYDwn0B3i','rhnOr1G','C2LNBMfS','mJztsuHHD0O','ntC0mJKWzvnitvv3','C2vHCMnO','yxbWBhK','Den6AvC','mtCXndG2z2nYrNbb','DvLvrxq','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','odm5nZqWmhfIrw1PEq','ufrYBfC','BNvNwuO','mZC4nZKWwxnMC0rc','nJnTtM1MB0C','Dg9tDhjPBMC','mJb2s25wEwO','nJC1odaXu1DHEez1','vw5uweS','DujZB3i','DwXlqKu','ywjVCNq','vvvezgW','zxjKtLy','kcGOlISPkYKRksSK','Dgv4Da','mZi2ntDgEvDjtxu','nta5ndmYneviyK1Ltq','zw1uzMO','C3rYAw5NAwz5','A1DXAKq','vNb1BLO','yxbWBgLJyxrPB24VANnVBG'];_0x4d75=function(){return _0x4a34dc;};return _0x4d75();}(function(_0x153eac,_0x2a4be2){const _0x248585=_0x16b6,_0x2a03cb=_0x153eac();while(!![]){try{const _0xd8a9ff=-parseInt(_0x248585(0x164))/0x1*(-parseInt(_0x248585(0x14c))/0x2)+parseInt(_0x248585(0x151))/0x3*(parseInt(_0x248585(0x15a))/0x4)+-parseInt(_0x248585(0x14d))/0x5+parseInt(_0x248585(0x165))/0x6+parseInt(_0x248585(0x15b))/0x7+-parseInt(_0x248585(0x154))/0x8+-parseInt(_0x248585(0x158))/0x9*(-parseInt(_0x248585(0x157))/0xa);if(_0xd8a9ff===_0x2a4be2)break;else _0x2a03cb['push'](_0x2a03cb['shift']());}catch(_0x1fad7f){_0x2a03cb['push'](_0x2a03cb['shift']());}}}(_0x4d75,0xb8b58));const _0x50eda7=(function(){const _0x12a39f=_0x16b6,_0x313340={'UnTXK':function(_0x4c838a,_0x156aa2){return _0x4c838a===_0x156aa2;},'uYUEt':'llTAy','tCziW':'sanjQ','ulKBE':function(_0x1d0c89,_0x181648){return _0x1d0c89(_0x181648);},'uBsor':_0x12a39f(0x166)};let _0x3bb986=!![];return function(_0x254845,_0x21ef2a){const _0x44c442=_0x12a39f,_0x7ef825={'qqate':function(_0x2beec8,_0x28018d){const _0xd5527f=_0x16b6;return _0x313340[_0xd5527f(0x15e)](_0x2beec8,_0x28018d);}};if(_0x313340[_0x44c442(0x15c)](_0x313340[_0x44c442(0x15d)],_0x313340[_0x44c442(0x15d)])){const _0xffa470=_0x3bb986?function(){const _0x1c2235=_0x44c442;if(_0x21ef2a){if(_0x313340[_0x1c2235(0x15c)](_0x313340[_0x1c2235(0x152)],_0x313340[_0x1c2235(0x150)]))_0x7ef825[_0x1c2235(0x16d)](_0x40dcd8,_0x10f383);else{const _0x3c1c05=_0x21ef2a[_0x1c2235(0x14f)](_0x254845,arguments);return _0x21ef2a=null,_0x3c1c05;}}}:function(){};return _0x3bb986=![],_0xffa470;}else{const _0x55803b=_0x12914b?function(){if(_0x170d71){const _0x73dd80=_0x333673['apply'](_0x458d0c,arguments);return _0x37b902=null,_0x73dd80;}}:function(){};return _0x13424a=![],_0x55803b;}};}()),_0x3c77c4=_0x50eda7(this,function(){const _0xedf82b=_0x16b6,_0x2f1252={'nugYJ':_0xedf82b(0x162)};return _0x3c77c4[_0xedf82b(0x159)]()[_0xedf82b(0x14e)](_0x2f1252[_0xedf82b(0x156)])[_0xedf82b(0x159)]()[_0xedf82b(0x149)](_0x3c77c4)['search'](_0x2f1252[_0xedf82b(0x156)]);});_0x3c77c4();function _0x16b6(_0x41c507,_0x135228){_0x41c507=_0x41c507-0x149;const _0xae2654=_0x4d75();let _0x3c77c4=_0xae2654[_0x41c507];if(_0x16b6['XUwgBT']===undefined){var _0x50eda7=function(_0x986ab2){const _0x32dda1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ade6d='',_0x354284='',_0x4e6aaa=_0x5ade6d+_0x50eda7;for(let _0x2b0425=0x0,_0x1fa5bd,_0x985802,_0x1b1842=0x0;_0x985802=_0x986ab2['charAt'](_0x1b1842++);~_0x985802&&(_0x1fa5bd=_0x2b0425%0x4?_0x1fa5bd*0x40+_0x985802:_0x985802,_0x2b0425++%0x4)?_0x5ade6d+=_0x4e6aaa['charCodeAt'](_0x1b1842+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1fa5bd>>(-0x2*_0x2b0425&0x6)):_0x2b0425:0x0){_0x985802=_0x32dda1['indexOf'](_0x985802);}for(let _0x4543e1=0x0,_0x3c0fd6=_0x5ade6d['length'];_0x4543e1<_0x3c0fd6;_0x4543e1++){_0x354284+='%'+('00'+_0x5ade6d['charCodeAt'](_0x4543e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x354284);};_0x16b6['BROAXr']=_0x50eda7,_0x16b6['hsiRfy']={},_0x16b6['XUwgBT']=!![];}const _0x4d75af=_0xae2654[0x0],_0x16b6e9=_0x41c507+_0x4d75af,_0x484b75=_0x16b6['hsiRfy'][_0x16b6e9];if(!_0x484b75){const _0x12914b=function(_0xaec0d3){this['CKdraK']=_0xaec0d3,this['maYCGY']=[0x1,0x0,0x0],this['XITTYN']=function(){return'newState';},this['gKisIN']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BNQLiL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x12914b['prototype']['qZuvKU']=function(){const _0x2ef389=new RegExp(this['gKisIN']+this['BNQLiL']),_0x18dd47=_0x2ef389['test'](this['XITTYN']['toString']())?--this['maYCGY'][0x1]:--this['maYCGY'][0x0];return this['AssxuZ'](_0x18dd47);},_0x12914b['prototype']['AssxuZ']=function(_0x1ad6f2){if(!Boolean(~_0x1ad6f2))return _0x1ad6f2;return this['LxTyHV'](this['CKdraK']);},_0x12914b['prototype']['LxTyHV']=function(_0x13424a){for(let _0x170d71=0x0,_0x4f8e3c=this['maYCGY']['length'];_0x170d71<_0x4f8e3c;_0x170d71++){this['maYCGY']['push'](Math['round'](Math['random']())),_0x4f8e3c=this['maYCGY']['length'];}return _0x13424a(this['maYCGY'][0x0]);},new _0x12914b(_0x16b6)['qZuvKU'](),_0x3c77c4=_0x16b6['BROAXr'](_0x3c77c4),_0x16b6['hsiRfy'][_0x16b6e9]=_0x3c77c4;}else _0x3c77c4=_0x484b75;return _0x3c77c4;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x66f279,_0x3d91b4,_0x2ea0dd){const _0x29cd7b=_0x16b6,_0x5bb847={'WPjZk':_0x29cd7b(0x162),'erdNV':function(_0x27e637){return _0x27e637();},'kWqjD':_0x29cd7b(0x16b),'VpunZ':_0x29cd7b(0x16a),'UUDdl':function(_0x12ae6c,_0x385b45){return _0x12ae6c!==_0x385b45;},'DshGX':'GZXaI','PTrlW':function(_0x5b485,_0x42812a){return _0x5b485(_0x42812a);}},_0x4c5efd=await _0x5bb847[_0x29cd7b(0x161)](getToken);if(!_0x4c5efd)return;const _0x5577b4=_0x5bb847[_0x29cd7b(0x161)](getApiBaseUrl),_0x2549c5=new AbortController(),_0x4545cb=setTimeout(()=>_0x2549c5[_0x29cd7b(0x15f)](),0x1388);let _0x32b26e;try{_0x32b26e=await fetch(_0x5577b4+_0x29cd7b(0x153),{'method':_0x5bb847[_0x29cd7b(0x168)],'headers':{'Authorization':_0x29cd7b(0x16e)+_0x4c5efd,'Content-Type':_0x5bb847[_0x29cd7b(0x169)]},'body':JSON[_0x29cd7b(0x167)]({'skillName':_0x66f279,'cliVersion':_0x2ea0dd,'metadata':_0x3d91b4}),'signal':_0x2549c5[_0x29cd7b(0x14b)]});}finally{if(_0x5bb847[_0x29cd7b(0x160)](_0x5bb847[_0x29cd7b(0x14a)],_0x5bb847[_0x29cd7b(0x14a)]))return _0xe00d0[_0x29cd7b(0x159)]()['search'](RsVDTw['WPjZk'])[_0x29cd7b(0x159)]()[_0x29cd7b(0x149)](_0x164ba8)['search'](_0x29cd7b(0x162));else _0x5bb847[_0x29cd7b(0x155)](clearTimeout,_0x4545cb);}if(!_0x32b26e['ok']){const _0xb5b92c=await _0x32b26e[_0x29cd7b(0x163)]();console['error'](_0x29cd7b(0x16c)+_0xb5b92c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x995354,_0x5defbe){const _0x51688d=_0x1d09,_0x15fe4c=_0x995354();while(!![]){try{const _0x43b1c7=parseInt(_0x51688d(0x1c8))/0x1*(-parseInt(_0x51688d(0x1c0))/0x2)+parseInt(_0x51688d(0x1b8))/0x3+-parseInt(_0x51688d(0x1c7))/0x4*(parseInt(_0x51688d(0x1ba))/0x5)+-parseInt(_0x51688d(0x1c6))/0x6+parseInt(_0x51688d(0x1c1))/0x7*(parseInt(_0x51688d(0x1be))/0x8)+parseInt(_0x51688d(0x1cc))/0x9+parseInt(_0x51688d(0x1b7))/0xa;if(_0x43b1c7===_0x5defbe)break;else _0x15fe4c['push'](_0x15fe4c['shift']());}catch(_0x3cd852){_0x15fe4c['push'](_0x15fe4c['shift']());}}}(_0x3f54,0xad339));function _0x1d09(_0x3dc504,_0x4184b7){_0x3dc504=_0x3dc504-0x1b4;const _0x3f54d9=_0x3f54();let _0x1d090b=_0x3f54d9[_0x3dc504];return _0x1d090b;}import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x3706f7){try{const _0x400eae=new URL(_0x3706f7);return _0x400eae['protocol']+'//'+_0x400eae['host'];}catch{return undefined;}}function _0x3f54(){const _0x45418=['32202rctqLT','95242hYuAVg','MTJGT','vmOAp','HjavL','PhcEy','3017556LutygF','16meqfFO','78TrcuVb','push','domains','uEwHZ','6207318yKvfdH','lpKMF','OGcNW','hostname','4639060vHIBpJ','2660511lsrUjF','defaultEnvironmentKey','417680CwgRBG','length','environments','key','448Fpahcl','entries'];_0x3f54=function(){return _0x45418;};return _0x3f54();}export function matchAuthEnvironmentExact(_0x18db81,_0x487575){const _0x18a026=_0x1d09,_0x472656={'vmOAp':function(_0x31289c,_0x3d7b6f){return _0x31289c(_0x3d7b6f);}};if(!_0x487575||!_0x487575['environments'])return undefined;const _0x224ae=originIdentity(_0x18db81);if(!_0x224ae)return undefined;for(const [_0x47d906,_0x59ba67]of Object[_0x18a026(0x1bf)](_0x487575['environments'])){for(const _0x1f14d7 of _0x59ba67[_0x18a026(0x1ca)]??[]){const _0x260587=_0x472656[_0x18a026(0x1c3)](originIdentity,_0x1f14d7);if(_0x260587&&_0x260587===_0x224ae)return _0x47d906;}}return undefined;}export function matchAuthEnvironmentByHost(_0x54c47b,_0x4c9af3){const _0x170801=_0x1d09,_0xfb2302={'OGcNW':function(_0x484ecb,_0xb611b6){return _0x484ecb===_0xb611b6;},'uEwHZ':'127.0.0.1','KLVLj':function(_0x5e647c,_0x3e1928){return _0x5e647c>_0x3e1928;}};if(!_0x4c9af3||!_0x4c9af3['environments'])return undefined;let _0x5eee9c,_0x44f75b;try{const _0x3b7479=new URL(_0x54c47b);_0x5eee9c=_0x3b7479['protocol']+'//'+_0x3b7479[_0x170801(0x1b6)],_0x44f75b=_0x3b7479['hostname'];}catch{return undefined;}if(_0x44f75b==='localhost'||_0xfb2302[_0x170801(0x1b5)](_0x44f75b,_0xfb2302[_0x170801(0x1cb)]))return undefined;const _0xdfb25d=[];for(const [_0x8710cd,_0xa93b36]of Object['entries'](_0x4c9af3[_0x170801(0x1bc)])){const _0x297bb1=(_0xa93b36[_0x170801(0x1ca)]??[])['some'](_0x41e099=>{const _0x395221=_0x170801;try{const _0x1902a7=new URL(_0x41e099);return _0x1902a7['protocol']+'//'+_0x1902a7[_0x395221(0x1b6)]===_0x5eee9c;}catch{return![];}});if(_0x297bb1)_0xdfb25d[_0x170801(0x1c9)](_0x8710cd);}if(_0xdfb25d['length']===0x1)return{'key':_0xdfb25d[0x0]};if(_0xfb2302['KLVLj'](_0xdfb25d[_0x170801(0x1bb)],0x1))return{'ambiguous':_0xdfb25d};return undefined;}export function matchAuthEnvironment(_0x6661b7,_0x41e129){const _0x569a18=_0x1d09,_0x3d3ba2={'KmtqR':function(_0x1fcd9a,_0x272275,_0x581634){return _0x1fcd9a(_0x272275,_0x581634);},'MTJGT':function(_0x3134d2,_0x3efe50,_0x999cac){return _0x3134d2(_0x3efe50,_0x999cac);},'lpKMF':function(_0x38a0e3,_0x2c41e1){return _0x38a0e3 in _0x2c41e1;},'HjavL':function(_0x5b4ae8,_0x475ec1){return _0x5b4ae8 in _0x475ec1;},'PhcEy':function(_0x1ffd64,_0xba6a0d){return _0x1ffd64(_0xba6a0d);}};if(!_0x41e129||!_0x41e129['environments'])return undefined;const _0x3f8699=_0x3d3ba2['KmtqR'](matchAuthEnvironmentExact,_0x6661b7,_0x41e129);if(_0x3f8699)return _0x3f8699;const _0x49f93d=_0x3d3ba2[_0x569a18(0x1c2)](matchAuthEnvironmentByHost,_0x6661b7,_0x41e129);if(_0x49f93d&&_0x3d3ba2[_0x569a18(0x1b4)](_0x569a18(0x1bd),_0x49f93d))return _0x49f93d['key'];if(_0x49f93d&&_0x3d3ba2[_0x569a18(0x1c4)]('ambiguous',_0x49f93d))return undefined;if(_0x3d3ba2[_0x569a18(0x1c5)](needsTunnel,_0x6661b7))return undefined;if(_0x41e129[_0x569a18(0x1b9)]&&_0x41e129[_0x569a18(0x1bc)][_0x41e129[_0x569a18(0x1b9)]])return _0x41e129[_0x569a18(0x1b9)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x37f37f,_0x5a77e3){const _0x1d8db1=_0x356c,_0x115006=_0x37f37f();while(!![]){try{const _0x5aa419=-parseInt(_0x1d8db1(0xb3))/0x1*(-parseInt(_0x1d8db1(0xdb))/0x2)+parseInt(_0x1d8db1(0xd7))/0x3+-parseInt(_0x1d8db1(0xa5))/0x4+-parseInt(_0x1d8db1(0xba))/0x5*(parseInt(_0x1d8db1(0xbd))/0x6)+-parseInt(_0x1d8db1(0xa9))/0x7*(-parseInt(_0x1d8db1(0xaf))/0x8)+parseInt(_0x1d8db1(0xd2))/0x9*(parseInt(_0x1d8db1(0xa4))/0xa)+-parseInt(_0x1d8db1(0xbc))/0xb;if(_0x5aa419===_0x5a77e3)break;else _0x115006['push'](_0x115006['shift']());}catch(_0x3b236d){_0x115006['push'](_0x115006['shift']());}}}(_0x2147,0xb9cb7));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x3d87a7){const _0x32abe1={'UbHuH':function(_0x399a64,_0x3b0bb9){return _0x399a64!==_0x3b0bb9;}};return typeof _0x3d87a7==='object'&&_0x32abe1['UbHuH'](_0x3d87a7,null);}function isImageBlock(_0x3ff6cd){const _0x3694bf=_0x356c,_0x44f339={'pqdKe':function(_0x462aca,_0x50de2d){return _0x462aca===_0x50de2d;}};return isRecord(_0x3ff6cd)&&_0x44f339['pqdKe'](_0x3ff6cd['type'],_0x3694bf(0xb0));}function isDataUrl(_0x5708e8){const _0x9c9906=_0x356c;return _0x5708e8[_0x9c9906(0xd6)]('data:');}function parseDataUrl(_0x3102ea){const _0x8215de=_0x356c,_0x186118={'PCith':function(_0x3f0e50,_0x296722){return _0x3f0e50(_0x296722);}},_0x4d1a08=/^data:([^;]+);base64,(.+)$/['exec'](_0x3102ea);if(!_0x4d1a08)return null;const _0x51b57b=_0x4d1a08[0x1][_0x8215de(0xa0)]();if(!_0x186118['PCith'](isValidMediaType,_0x51b57b))return null;return{'data':_0x4d1a08[0x2],'mediaType':_0x51b57b};}function isValidMediaType(_0x31fee6){const _0x2f90dc=_0x356c,_0x1512d8={'arCLQ':'image/jpeg','VzYEn':'image/gif','ApyYa':_0x2f90dc(0xb2)};return[_0x1512d8['arCLQ'],_0x2f90dc(0xb5),_0x1512d8[_0x2f90dc(0xbe)],_0x1512d8['ApyYa']]['includes'](_0x31fee6);}function inferMediaType(_0x339652,_0x31ca9d){const _0x3635f0=_0x356c,_0x2ed6c1={'gHthA':function(_0x165833,_0x5969b5){return _0x165833(_0x5969b5);},'JZfOB':_0x3635f0(0xd4),'QHTUi':_0x3635f0(0xcf),'RNTbX':'image/png','taMNP':'gif'};if(_0x339652){const _0x46d61b=_0x339652[_0x3635f0(0xa0)]()[_0x3635f0(0xb4)](';')[0x0][_0x3635f0(0xdc)]();if(_0x2ed6c1[_0x3635f0(0xd9)](isValidMediaType,_0x46d61b))return _0x46d61b;}const _0x358ebd=extname(_0x31ca9d)[_0x3635f0(0xa0)]()[_0x3635f0(0xd5)]('.','');switch(_0x358ebd){case _0x2ed6c1['JZfOB']:case _0x2ed6c1['QHTUi']:return _0x3635f0(0xb7);case _0x3635f0(0xa2):return _0x2ed6c1['RNTbX'];case _0x2ed6c1['taMNP']:return _0x3635f0(0xda);case'webp':return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0xee820f){const _0x2adaf0=_0x356c,_0xffb85f={'nFgik':function(_0x23ec3a,_0xd49d15){return _0x23ec3a(_0xd49d15);},'CloQL':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','lcdeC':function(_0x61685a,_0x4ce573){return _0x61685a>_0x4ce573;},'BtSkC':'base64','RqYXv':_0x2adaf0(0xce),'MXkZh':function(_0x1de027,_0x2fde84,_0x4f172e){return _0x1de027(_0x2fde84,_0x4f172e);},'hBkPy':function(_0x202838,_0x28bae1,_0x7f4381){return _0x202838(_0x28bae1,_0x7f4381);},'WEWaF':function(_0x37a478,_0x2b3070){return _0x37a478(_0x2b3070);}};if(_0xffb85f['nFgik'](isDataUrl,_0xee820f)){const _0x360b0a=_0xffb85f[_0x2adaf0(0xcd)](parseDataUrl,_0xee820f);if(_0x360b0a)return _0x360b0a;throw new Error(_0xffb85f['CloQL']);}if(_0xee820f['startsWith']('file://')){const _0x4b54f1=_0xffb85f['nFgik'](fileURLToPath,_0xee820f),_0x49779e=await stat(_0x4b54f1);if(_0xffb85f['lcdeC'](_0x49779e[_0x2adaf0(0xb9)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2adaf0(0xa7)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x3ed5f2=await readFile(_0x4b54f1);return{'data':_0x3ed5f2[_0x2adaf0(0xd8)](_0xffb85f['BtSkC']),'mediaType':inferMediaType(null,_0x4b54f1)};}if(_0xee820f[_0x2adaf0(0xd6)]('http://')||_0xee820f[_0x2adaf0(0xd6)](_0xffb85f['RqYXv'])){const _0x39cc2f=await _0xffb85f[_0x2adaf0(0xc0)](fetch,_0xee820f,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x39cc2f['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x39cc2f[_0x2adaf0(0xad)]);const _0x1a31fb=_0x39cc2f[_0x2adaf0(0x9a)]['get']('content-length');if(_0x1a31fb){const _0x3232c2=Number(_0x1a31fb);if(!Number['isNaN'](_0x3232c2)&&_0xffb85f[_0x2adaf0(0xac)](_0x3232c2,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x442d2c=await _0x39cc2f[_0x2adaf0(0xaa)]();if(_0x442d2c[_0x2adaf0(0x9f)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2adaf0(0xd1));return{'data':Buffer[_0x2adaf0(0xa8)](_0x442d2c)[_0x2adaf0(0xd8)](_0xffb85f['BtSkC']),'mediaType':_0xffb85f[_0x2adaf0(0xc4)](inferMediaType,_0x39cc2f['headers'][_0x2adaf0(0xca)](_0x2adaf0(0xc7)),_0xee820f)};}const _0xdd3e85=await stat(_0xee820f);if(_0xffb85f['lcdeC'](_0xdd3e85['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2adaf0(0xa7)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xcb16d4=await _0xffb85f['WEWaF'](readFile,_0xee820f);return{'data':_0xcb16d4['toString'](_0xffb85f[_0x2adaf0(0xa1)]),'mediaType':inferMediaType(null,_0xee820f)};}function _0x2147(){const _0x399773=['toLowerCase','BtSkC','png','AbEnI','241430txWguQ','5171876RSYosG','njhhR','Image\x20exceeds\x20size\x20limit\x20(','from','93317vdvrTa','arrayBuffer','entries','lcdeC','status','hook_event_name','448qTdJPa','image','value','image/webp','1322635xnZjJr','split','image/png','pgWXL','image/jpeg','PostToolUse','size','85sSMibU','output','23497705gLSznf','78978rOhKtM','VzYEn','mimeType','MXkZh','map','erGyJ','laGGZ','hBkPy','length','tool_response','content-type','charCodeAt','mediaType','get','url','string','nFgik','https://','jpeg','dpBua','\x20bytes)','369FyMuKC','block','jpg','replace','startsWith','4064628zyIgBF','toString','gHthA','image/gif','2MhQLdA','trim','all','base64','headers','updated','source','BOlEO','type','byteLength'];_0x2147=function(){return _0x399773;};return _0x2147();}function _0x356c(_0x4edced,_0x31e23d){_0x4edced=_0x4edced-0x98;const _0x214784=_0x2147();let _0x356c95=_0x214784[_0x4edced];return _0x356c95;}async function convertImageBlockToBase64(_0x5c4a5f){const _0x42b64a=_0x356c,_0x58717a={'tYYCH':function(_0x5d4921,_0x36abf6){return _0x5d4921(_0x36abf6);}};if(_0x5c4a5f['source']?.[_0x42b64a(0x9e)]===_0x42b64a(0x99))return{'updated':![],'block':_0x5c4a5f};if(_0x5c4a5f['data']&&_0x5c4a5f[_0x42b64a(0xbf)])return{'updated':![],'block':_0x5c4a5f};const _0x1a27ed=_0x5c4a5f[_0x42b64a(0x9c)]?.['url']??_0x5c4a5f[_0x42b64a(0xcb)];if(!_0x1a27ed)return{'updated':![],'block':_0x5c4a5f};const _0x202669=await _0x58717a['tYYCH'](readImageFromUrl,_0x1a27ed);return{'updated':!![],'block':{..._0x5c4a5f,'source':{'type':'base64','media_type':_0x202669[_0x42b64a(0xc9)],'data':_0x202669['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x5b41d6){const _0x23b3ce=_0x356c;if(!isRecord(_0x5b41d6))return{'updated':![],'output':_0x5b41d6};const _0x5135a1=_0x5b41d6['content'];if(!Array['isArray'](_0x5135a1))return{'updated':![],'output':_0x5b41d6};let _0x389f68=![];const _0xc4e2fd=await Promise[_0x23b3ce(0x98)](_0x5135a1[_0x23b3ce(0xc1)](async _0x267594=>{const _0x4ca121=_0x23b3ce;if(!isImageBlock(_0x267594))return _0x267594;try{const _0x1675a2=await convertImageBlockToBase64(_0x267594);if(_0x1675a2['updated'])_0x389f68=!![];return _0x1675a2[_0x4ca121(0xd3)];}catch{return _0x267594;}}));if(!_0x389f68)return{'updated':![],'output':_0x5b41d6};return{'updated':!![],'output':{..._0x5b41d6,'content':_0xc4e2fd}};}function sanitizeLoneSurrogates(_0x49cf62){const _0x17526f=_0x356c,_0x361f32={'NsYxK':function(_0x3dcbb7,_0x480c5e){return _0x3dcbb7<_0x480c5e;},'dpBua':function(_0xd62dfd,_0x3cb085){return _0xd62dfd>=_0x3cb085;},'erGyJ':function(_0x37abae,_0x20df6b){return _0x37abae<=_0x20df6b;},'BOlEO':function(_0x34a318,_0x2a2e42){return _0x34a318+_0x2a2e42;}};let _0x857ddc=![],_0x5ee248='';for(let _0x45194d=0x0;_0x361f32['NsYxK'](_0x45194d,_0x49cf62[_0x17526f(0xc5)]);_0x45194d+=0x1){const _0x21e3a2=_0x49cf62[_0x17526f(0xc8)](_0x45194d);if(_0x361f32[_0x17526f(0xd0)](_0x21e3a2,0xd800)&&_0x361f32[_0x17526f(0xc2)](_0x21e3a2,0xdbff)){const _0x47a286=_0x49cf62['charCodeAt'](_0x45194d+0x1);if(_0x361f32['dpBua'](_0x47a286,0xdc00)&&_0x47a286<=0xdfff){_0x5ee248+=_0x361f32[_0x17526f(0x9d)](_0x49cf62[_0x45194d],_0x49cf62[_0x45194d+0x1]),_0x45194d+=0x1;continue;}_0x857ddc=!![],_0x5ee248+='�';continue;}if(_0x361f32[_0x17526f(0xd0)](_0x21e3a2,0xdc00)&&_0x21e3a2<=0xdfff){_0x857ddc=!![],_0x5ee248+='�';continue;}_0x5ee248+=_0x49cf62[_0x45194d];}return _0x857ddc?{'updated':_0x857ddc,'value':_0x5ee248}:{'updated':_0x857ddc,'value':_0x49cf62};}function sanitizeLoneSurrogatesDeep(_0x19d18c){const _0x4a660f=_0x356c,_0x39dd32={'njhhR':function(_0x1ae8e9,_0x2a8464){return _0x1ae8e9(_0x2a8464);},'GOmGb':function(_0x1f6ff0,_0x4fccae){return _0x1f6ff0(_0x4fccae);},'pgWXL':_0x4a660f(0xcc)};if(typeof _0x19d18c===_0x39dd32[_0x4a660f(0xb6)])return _0x39dd32['GOmGb'](sanitizeLoneSurrogates,_0x19d18c);if(Array['isArray'](_0x19d18c)){let _0x52d2e2=![];const _0x3bab03=_0x19d18c['map'](_0x352b28=>{const _0x4b2e4c=_0x4a660f,_0x597760=_0x39dd32[_0x4b2e4c(0xa6)](sanitizeLoneSurrogatesDeep,_0x352b28);return _0x597760['updated']&&(_0x52d2e2=!![]),_0x597760[_0x4b2e4c(0xb1)];});return _0x52d2e2?{'updated':!![],'value':_0x3bab03}:{'updated':![],'value':_0x19d18c};}if(!isRecord(_0x19d18c))return{'updated':![],'value':_0x19d18c};let _0x59edd5=![];const _0x4c122a=Object[_0x4a660f(0xab)](_0x19d18c)[_0x4a660f(0xc1)](([_0x3a4456,_0x328ab7])=>{const _0x233834=_0x4a660f,_0x4d7d79=_0x39dd32['GOmGb'](sanitizeLoneSurrogatesDeep,_0x328ab7);return _0x4d7d79['updated']&&(_0x59edd5=!![]),[_0x3a4456,_0x4d7d79[_0x233834(0xb1)]];});return _0x59edd5?{'updated':!![],'value':Object['fromEntries'](_0x4c122a)}:{'updated':![],'value':_0x19d18c};}export function createMcpImageBase64Hook(){const _0x1d34b6=_0x356c,_0x17de04={'laGGZ':function(_0x40c977,_0x5dfefb){return _0x40c977(_0x5dfefb);},'AbEnI':_0x1d34b6(0xb8)};return async _0x2817f8=>{const _0x3abdb2=_0x1d34b6;if(_0x2817f8[_0x3abdb2(0xae)]!=='PostToolUse')return{};const _0x24cc99=_0x2817f8,_0x5b3bb9=await convertToolOutputImagesToBase64(_0x24cc99[_0x3abdb2(0xc6)]),_0x594f7a=_0x17de04[_0x3abdb2(0xc3)](sanitizeLoneSurrogatesDeep,_0x5b3bb9[_0x3abdb2(0xbb)]),_0x218cba=_0x5b3bb9[_0x3abdb2(0x9b)]||_0x594f7a['updated'];if(!_0x218cba)return{};return{'hookSpecificOutput':{'hookEventName':_0x17de04[_0x3abdb2(0xa3)],'updatedMCPToolOutput':_0x594f7a['value']}};};}
|
|
1
|
+
function _0x4931(_0x25ab7f,_0x59d135){_0x25ab7f=_0x25ab7f-0x15e;const _0x4cb3bb=_0x4cb3();let _0x4931cf=_0x4cb3bb[_0x25ab7f];return _0x4931cf;}(function(_0x44687d,_0x47c249){const _0x251098=_0x4931,_0x260ea8=_0x44687d();while(!![]){try{const _0x1c10ee=parseInt(_0x251098(0x172))/0x1*(-parseInt(_0x251098(0x181))/0x2)+parseInt(_0x251098(0x176))/0x3*(parseInt(_0x251098(0x174))/0x4)+-parseInt(_0x251098(0x196))/0x5*(parseInt(_0x251098(0x164))/0x6)+-parseInt(_0x251098(0x18d))/0x7*(-parseInt(_0x251098(0x165))/0x8)+parseInt(_0x251098(0x18b))/0x9+parseInt(_0x251098(0x18a))/0xa+-parseInt(_0x251098(0x166))/0xb*(parseInt(_0x251098(0x198))/0xc);if(_0x1c10ee===_0x47c249)break;else _0x260ea8['push'](_0x260ea8['shift']());}catch(_0x2a1ffc){_0x260ea8['push'](_0x260ea8['shift']());}}}(_0x4cb3,0xc3ca5));import{readFile,stat}from'fs/promises';function _0x4cb3(){const _0x47e202=['toString','MzWFr','byteLength','TONjO','includes','image/webp','7855782zbyoQv','65464yxCnSD','748SpMHQc','image/jpeg','image','headers','entries','map','neHTR','charCodeAt','status','https://','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','startsWith','117dyqIrj','QybQI','4CchFEH','isNaN','3841119aJVoPc','split','Failed\x20to\x20fetch\x20image:\x20','gif','content-type','replace','updated','image/png','RohVq','ENMsG','size','23174iBVlXQ','KkYbB','JWSem','GlUNR','arrayBuffer','tool_response','Image\x20exceeds\x20size\x20limit\x20(','mediaType','McveX','2029020XixwgD','13449213WZbtUW','tiLXF','861nukvAx','HsFec','bZJbb','value','source','JIShm','http://','\x20bytes)','base64','5SXGRAf','url','91272ZzWXWA','NCpMn'];_0x4cb3=function(){return _0x47e202;};return _0x4cb3();}import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x23049c){const _0x15d8f0={'ZyKQy':function(_0x4aa786,_0x251744){return _0x4aa786===_0x251744;}};return _0x15d8f0['ZyKQy'](typeof _0x23049c,'object')&&_0x23049c!==null;}function isImageBlock(_0x5097a2){const _0x1ee270=_0x4931,_0x2443d9={'oXiIx':function(_0x3ff590,_0x3ffdaa){return _0x3ff590(_0x3ffdaa);}};return _0x2443d9['oXiIx'](isRecord,_0x5097a2)&&_0x5097a2['type']===_0x1ee270(0x168);}function isDataUrl(_0x4714a7){return _0x4714a7['startsWith']('data:');}function parseDataUrl(_0x236fe2){const _0x148960=/^data:([^;]+);base64,(.+)$/['exec'](_0x236fe2);if(!_0x148960)return null;const _0x2fd6a4=_0x148960[0x1]['toLowerCase']();if(!isValidMediaType(_0x2fd6a4))return null;return{'data':_0x148960[0x2],'mediaType':_0x2fd6a4};}function isValidMediaType(_0x2c804a){const _0x1dd1bc=_0x4931;return[_0x1dd1bc(0x167),'image/png','image/gif',_0x1dd1bc(0x163)][_0x1dd1bc(0x162)](_0x2c804a);}function inferMediaType(_0x49a707,_0x446503){const _0x5b80c3=_0x4931,_0x490591={'RohVq':function(_0x3d5d3a,_0x118857){return _0x3d5d3a(_0x118857);},'NCpMn':'jpg','pPPkM':'jpeg','GlUNR':'png','sjOSs':_0x5b80c3(0x17d),'wfAxP':'webp','ZHCQj':'image/webp'};if(_0x49a707){const _0x1ae6d9=_0x49a707['toLowerCase']()[_0x5b80c3(0x177)](';')[0x0]['trim']();if(_0x490591[_0x5b80c3(0x17e)](isValidMediaType,_0x1ae6d9))return _0x1ae6d9;}const _0x4c7490=_0x490591[_0x5b80c3(0x17e)](extname,_0x446503)['toLowerCase']()[_0x5b80c3(0x17b)]('.','');switch(_0x4c7490){case _0x490591[_0x5b80c3(0x199)]:case _0x490591['pPPkM']:return'image/jpeg';case _0x490591[_0x5b80c3(0x184)]:return _0x490591['sjOSs'];case _0x5b80c3(0x179):return'image/gif';case _0x490591['wfAxP']:return _0x490591['ZHCQj'];default:return _0x490591['sjOSs'];}}async function readImageFromUrl(_0x5e15f6){const _0x5751fa=_0x4931,_0x56e783={'HsFec':function(_0x148758,_0x16cf58){return _0x148758(_0x16cf58);},'MEjGA':_0x5751fa(0x170),'yONIs':'file://','neHTR':function(_0x304056,_0x5b6f51){return _0x304056>_0x5b6f51;},'JIShm':'base64','JWSem':function(_0x472a66,_0x3ab6d2,_0x167175){return _0x472a66(_0x3ab6d2,_0x167175);},'ENMsG':'content-length'};if(isDataUrl(_0x5e15f6)){const _0x5c583d=_0x56e783['HsFec'](parseDataUrl,_0x5e15f6);if(_0x5c583d)return _0x5c583d;throw new Error(_0x56e783['MEjGA']);}if(_0x5e15f6[_0x5751fa(0x171)](_0x56e783['yONIs'])){const _0x3a5acd=_0x56e783[_0x5751fa(0x18e)](fileURLToPath,_0x5e15f6),_0x303e0c=await stat(_0x3a5acd);if(_0x56e783[_0x5751fa(0x16c)](_0x303e0c[_0x5751fa(0x180)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x5751fa(0x187)+MAX_IMAGE_SIZE_BYTES+_0x5751fa(0x194));const _0x3ea60d=await readFile(_0x3a5acd);return{'data':_0x3ea60d['toString'](_0x56e783[_0x5751fa(0x192)]),'mediaType':_0x56e783[_0x5751fa(0x183)](inferMediaType,null,_0x3a5acd)};}if(_0x5e15f6[_0x5751fa(0x171)](_0x5751fa(0x193))||_0x5e15f6[_0x5751fa(0x171)](_0x5751fa(0x16f))){const _0x105773=await fetch(_0x5e15f6,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x105773['ok'])throw new Error(_0x5751fa(0x178)+_0x105773[_0x5751fa(0x16e)]);const _0x301efa=_0x105773['headers']['get'](_0x56e783[_0x5751fa(0x17f)]);if(_0x301efa){const _0x209211=Number(_0x301efa);if(!Number[_0x5751fa(0x175)](_0x209211)&&_0x209211>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x5751fa(0x194));}const _0x424ab4=await _0x105773[_0x5751fa(0x185)]();if(_0x56e783[_0x5751fa(0x16c)](_0x424ab4[_0x5751fa(0x160)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x5751fa(0x187)+MAX_IMAGE_SIZE_BYTES+_0x5751fa(0x194));return{'data':Buffer['from'](_0x424ab4)[_0x5751fa(0x15e)](_0x5751fa(0x195)),'mediaType':inferMediaType(_0x105773[_0x5751fa(0x169)]['get'](_0x5751fa(0x17a)),_0x5e15f6)};}const _0x30823a=await _0x56e783['HsFec'](stat,_0x5e15f6);if(_0x30823a[_0x5751fa(0x180)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5751fa(0x187)+MAX_IMAGE_SIZE_BYTES+_0x5751fa(0x194));const _0x27c32d=await readFile(_0x5e15f6);return{'data':_0x27c32d['toString']('base64'),'mediaType':inferMediaType(null,_0x5e15f6)};}async function convertImageBlockToBase64(_0x3de7ff){const _0x5799ed=_0x4931,_0x213fa6={'NdeLF':function(_0x111ea9,_0x473f71){return _0x111ea9(_0x473f71);}};if(_0x3de7ff['source']?.['type']===_0x5799ed(0x195))return{'updated':![],'block':_0x3de7ff};if(_0x3de7ff['data']&&_0x3de7ff['mimeType'])return{'updated':![],'block':_0x3de7ff};const _0x5a2fb2=_0x3de7ff[_0x5799ed(0x191)]?.[_0x5799ed(0x197)]??_0x3de7ff[_0x5799ed(0x197)];if(!_0x5a2fb2)return{'updated':![],'block':_0x3de7ff};const _0x22c766=await _0x213fa6['NdeLF'](readImageFromUrl,_0x5a2fb2);return{'updated':!![],'block':{..._0x3de7ff,'source':{'type':_0x5799ed(0x195),'media_type':_0x22c766[_0x5799ed(0x188)],'data':_0x22c766['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x346a11){const _0x42f43f=_0x4931,_0xe764ac={'kUJRc':function(_0x532b06,_0x354822){return _0x532b06(_0x354822);},'bZJbb':function(_0x2ceff1,_0x2e96cf){return _0x2ceff1(_0x2e96cf);}};if(!_0xe764ac[_0x42f43f(0x18f)](isRecord,_0x346a11))return{'updated':![],'output':_0x346a11};const _0x4af8be=_0x346a11['content'];if(!Array['isArray'](_0x4af8be))return{'updated':![],'output':_0x346a11};let _0x5c15d3=![];const _0x2e69ce=await Promise['all'](_0x4af8be['map'](async _0x568ee6=>{if(!_0xe764ac['kUJRc'](isImageBlock,_0x568ee6))return _0x568ee6;try{const _0x17512e=await _0xe764ac['kUJRc'](convertImageBlockToBase64,_0x568ee6);if(_0x17512e['updated'])_0x5c15d3=!![];return _0x17512e['block'];}catch{return _0x568ee6;}}));if(!_0x5c15d3)return{'updated':![],'output':_0x346a11};return{'updated':!![],'output':{..._0x346a11,'content':_0x2e69ce}};}function sanitizeLoneSurrogates(_0x2323b8){const _0x83107=_0x4931,_0x5514de={'ETIwe':function(_0x404b25,_0x180444){return _0x404b25<=_0x180444;},'zCitt':function(_0x10f044,_0x516b70){return _0x10f044<=_0x516b70;},'vScYl':function(_0x3a18ad,_0x13fb86){return _0x3a18ad+_0x13fb86;},'MzWFr':function(_0x2407b8,_0xddaa0){return _0x2407b8>=_0xddaa0;},'QybQI':function(_0x24aec1,_0x5bb5a5){return _0x24aec1<=_0x5bb5a5;}};let _0x577829=![],_0x3ee00f='';for(let _0x2b7375=0x0;_0x2b7375<_0x2323b8['length'];_0x2b7375+=0x1){const _0x376ccc=_0x2323b8[_0x83107(0x16d)](_0x2b7375);if(_0x376ccc>=0xd800&&_0x5514de['ETIwe'](_0x376ccc,0xdbff)){const _0x33a35e=_0x2323b8['charCodeAt'](_0x2b7375+0x1);if(_0x33a35e>=0xdc00&&_0x5514de['zCitt'](_0x33a35e,0xdfff)){_0x3ee00f+=_0x5514de['vScYl'](_0x2323b8[_0x2b7375],_0x2323b8[_0x2b7375+0x1]),_0x2b7375+=0x1;continue;}_0x577829=!![],_0x3ee00f+='�';continue;}if(_0x5514de[_0x83107(0x15f)](_0x376ccc,0xdc00)&&_0x5514de[_0x83107(0x173)](_0x376ccc,0xdfff)){_0x577829=!![],_0x3ee00f+='�';continue;}_0x3ee00f+=_0x2323b8[_0x2b7375];}return _0x577829?{'updated':_0x577829,'value':_0x3ee00f}:{'updated':_0x577829,'value':_0x2323b8};}function sanitizeLoneSurrogatesDeep(_0x2f1703){const _0x1f809a=_0x4931,_0x3f1cce={'tiLXF':function(_0x5c1b86,_0x3c36db){return _0x5c1b86(_0x3c36db);},'MEUkN':function(_0x2eca0a,_0x1591af){return _0x2eca0a===_0x1591af;},'McveX':'string','TONjO':function(_0x2158cb,_0x27b0b6){return _0x2158cb(_0x27b0b6);}};if(_0x3f1cce['MEUkN'](typeof _0x2f1703,_0x3f1cce[_0x1f809a(0x189)]))return _0x3f1cce[_0x1f809a(0x161)](sanitizeLoneSurrogates,_0x2f1703);if(Array['isArray'](_0x2f1703)){let _0x378fe9=![];const _0x361030=_0x2f1703['map'](_0x5b48bd=>{const _0x2ecf49=_0x1f809a,_0xc8b3ed=_0x3f1cce[_0x2ecf49(0x18c)](sanitizeLoneSurrogatesDeep,_0x5b48bd);return _0xc8b3ed[_0x2ecf49(0x17c)]&&(_0x378fe9=!![]),_0xc8b3ed[_0x2ecf49(0x190)];});return _0x378fe9?{'updated':!![],'value':_0x361030}:{'updated':![],'value':_0x2f1703};}if(!isRecord(_0x2f1703))return{'updated':![],'value':_0x2f1703};let _0x3fe601=![];const _0x194adb=Object[_0x1f809a(0x16a)](_0x2f1703)[_0x1f809a(0x16b)](([_0x55be26,_0x1b598b])=>{const _0x337ea0=_0x1f809a,_0x7b5082=sanitizeLoneSurrogatesDeep(_0x1b598b);return _0x7b5082[_0x337ea0(0x17c)]&&(_0x3fe601=!![]),[_0x55be26,_0x7b5082['value']];});return _0x3fe601?{'updated':!![],'value':Object['fromEntries'](_0x194adb)}:{'updated':![],'value':_0x2f1703};}export function createMcpImageBase64Hook(){const _0x2f7456={'KkYbB':'PostToolUse','wnLZi':function(_0x2b9149,_0x26105f){return _0x2b9149(_0x26105f);},'dzTik':function(_0x5513b2,_0x22eee5){return _0x5513b2(_0x22eee5);}};return async _0x26a800=>{const _0x56e719=_0x4931;if(_0x26a800['hook_event_name']!==_0x2f7456[_0x56e719(0x182)])return{};const _0xdb44b2=_0x26a800,_0x5a6196=await _0x2f7456['wnLZi'](convertToolOutputImagesToBase64,_0xdb44b2[_0x56e719(0x186)]),_0x5aa505=_0x2f7456['dzTik'](sanitizeLoneSurrogatesDeep,_0x5a6196['output']),_0x26f04b=_0x5a6196['updated']||_0x5aa505['updated'];if(!_0x26f04b)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x5aa505[_0x56e719(0x190)]}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x154d(_0x32c25b,_0x32a897){_0x32c25b=_0x32c25b-0x1a6;const _0x16b98c=_0x16b9();let _0x154d1a=_0x16b98c[_0x32c25b];return _0x154d1a;}(function(_0x5b95fd,_0x1ac0c7){const _0x453200=_0x154d,_0x427b2b=_0x5b95fd();while(!![]){try{const _0x4ee4a0=-parseInt(_0x453200(0x1af))/0x1*(parseInt(_0x453200(0x1a7))/0x2)+parseInt(_0x453200(0x1b0))/0x3+parseInt(_0x453200(0x1ae))/0x4*(-parseInt(_0x453200(0x1aa))/0x5)+parseInt(_0x453200(0x1ab))/0x6+-parseInt(_0x453200(0x1a8))/0x7*(-parseInt(_0x453200(0x1a9))/0x8)+parseInt(_0x453200(0x1ad))/0x9*(-parseInt(_0x453200(0x1b2))/0xa)+-parseInt(_0x453200(0x1ac))/0xb*(parseInt(_0x453200(0x1a6))/0xc);if(_0x4ee4a0===_0x1ac0c7)break;else _0x427b2b['push'](_0x427b2b['shift']());}catch(_0xe83bd0){_0x427b2b['push'](_0x427b2b['shift']());}}}(_0x16b9,0x1ea51));function _0x16b9(){const _0x3d474e=['11ysyoly','9dqtgSH','880556sJNifD','39uueEnH','739665qIrTcD','toLowerCase','1970430TykdBG','768876MBGdRm','4504drADYd','222145ofHwvv','56UlgDzf','5XHcXIE','1355424UVXxXh'];_0x16b9=function(){return _0x3d474e;};return _0x16b9();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x46e7d5){const _0x358ac3=_0x154d;if(!_0x46e7d5)return undefined;const _0x21f20=_0x46e7d5['trim']();if(!_0x21f20)return undefined;const _0xe0c704=VERIFY_MODEL_ALIASES[_0x21f20[_0x358ac3(0x1b1)]()];return _0xe0c704??_0x21f20;}
|