@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.7-alpha.62f152a-54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1cad9f=_0x18dd;(function(_0x52e604,_0x528122){const _0x21097b=_0x18dd,_0x2c9ee1=_0x52e604();while(!![]){try{const _0x4ebae6=-parseInt(_0x21097b(0x225))/0x1+parseInt(_0x21097b(0x21c))/0x2*(-parseInt(_0x21097b(0x21a))/0x3)+parseInt(_0x21097b(0x22d))/0x4+-parseInt(_0x21097b(0x206))/0x5+-parseInt(_0x21097b(0x227))/0x6+-parseInt(_0x21097b(0x22e))/0x7*(-parseInt(_0x21097b(0x1fc))/0x8)+-parseInt(_0x21097b(0x21e))/0x9*(-parseInt(_0x21097b(0x218))/0xa);if(_0x4ebae6===_0x528122)break;else _0x2c9ee1['push'](_0x2c9ee1['shift']());}catch(_0x84013){_0x2c9ee1['push'](_0x2c9ee1['shift']());}}}(_0x4061,0x410c1));function _0x18dd(_0x51db1f,_0x4974a9){_0x51db1f=_0x51db1f-0x1ef;const _0x406143=_0x4061();let _0x18dd8b=_0x406143[_0x51db1f];return _0x18dd8b;}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(_0x3c8773,_0x8babdf){const _0x1fe175=_0x18dd,_0x32cbe5={'uYVYh':function(_0x572322,_0x5b4e3c){return _0x572322>=_0x5b4e3c;},'JcJpa':function(_0x280d00,_0x8d891f){return _0x280d00>_0x8d891f;},'gnDbL':function(_0x5211cb,_0x16102c){return _0x5211cb<_0x16102c;},'UsTKy':function(_0x3afd57,_0xb8e4da){return _0x3afd57*_0xb8e4da;}};if(_0x32cbe5[_0x1fe175(0x234)](_0x8babdf,_0x3c8773['length']))return[0x0,0x0];const _0x4651c0=_0x3c8773[_0x8babdf];let _0xa3752d=0x1,_0x2d359e=0x80;while(_0xa3752d<=0x8&&!(_0x4651c0&_0x2d359e)){_0xa3752d++,_0x2d359e>>=0x1;}if(_0x32cbe5[_0x1fe175(0x238)](_0x8babdf+_0xa3752d,_0x3c8773['length']))return[0x0,0x0];let _0x5e0feb=_0x4651c0&_0x2d359e-0x1;for(let _0x60a474=0x1;_0x32cbe5[_0x1fe175(0x239)](_0x60a474,_0xa3752d);_0x60a474++){_0x5e0feb=_0x32cbe5[_0x1fe175(0x1f8)](_0x5e0feb,0x100)+_0x3c8773[_0x8babdf+_0x60a474];}return[_0x5e0feb,_0xa3752d];}function readId(_0x1ff09a,_0x398567){const _0x2fe6ad=_0x18dd,_0x284497={'tGQqe':function(_0x223e31,_0x13f0dd){return _0x223e31>=_0x13f0dd;},'hYyAY':function(_0x1f780f,_0x5a9d66){return _0x1f780f>=_0x5a9d66;},'dnidq':function(_0x33b4b8,_0x28e0db){return _0x33b4b8>_0x28e0db;},'OeFDh':function(_0x15e289,_0x3573f9){return _0x15e289+_0x3573f9;},'rIpsr':function(_0x179f9f,_0x36728c){return _0x179f9f<_0x36728c;},'iLwfb':function(_0x565de5,_0x2613cf){return _0x565de5+_0x2613cf;}};if(_0x284497['tGQqe'](_0x398567,_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];const _0x16a40a=_0x1ff09a[_0x398567];let _0xd70bd2;if(_0x16a40a>=0x80)_0xd70bd2=0x1;else{if(_0x284497[_0x2fe6ad(0x21f)](_0x16a40a,0x40))_0xd70bd2=0x2;else{if(_0x16a40a>=0x20)_0xd70bd2=0x3;else{if(_0x16a40a>=0x10)_0xd70bd2=0x4;else return[_0x16a40a,0x1];}}}if(_0x284497['dnidq'](_0x284497[_0x2fe6ad(0x228)](_0x398567,_0xd70bd2),_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];let _0x5c0dea=0x0;for(let _0x48e687=0x0;_0x284497['rIpsr'](_0x48e687,_0xd70bd2);_0x48e687++){_0x5c0dea=_0x284497[_0x2fe6ad(0x233)](_0x5c0dea*0x100,_0x1ff09a[_0x398567+_0x48e687]);}return[_0x5c0dea,_0xd70bd2];}function readUint(_0x468cda,_0x5ad5b5,_0x2fdf4e){const _0xb34bef=_0x18dd,_0x5e2315={'WJgsy':function(_0x63a193,_0x395152){return _0x63a193+_0x395152;},'LRCXV':function(_0x553d43,_0x361bfb){return _0x553d43*_0x361bfb;},'QfENO':function(_0x135f9b,_0x2619fe){return _0x135f9b+_0x2619fe;}};let _0x1f7338=0x0;for(let _0x45a887=0x0;_0x45a887<_0x2fdf4e;_0x45a887++){_0x1f7338=_0x5e2315['WJgsy'](_0x5e2315[_0xb34bef(0x207)](_0x1f7338,0x100),_0x468cda[_0x5e2315['QfENO'](_0x5ad5b5,_0x45a887)]);}return _0x1f7338;}function isUnknownSize(_0x95a52,_0x726fa0){const _0x590a18=_0x18dd,_0x3c6392={'DVgIB':function(_0x8d23f0,_0x3a1b6e){return _0x8d23f0-_0x3a1b6e;},'PatoJ':function(_0x3ae555,_0x3d84f8){return _0x3ae555*_0x3d84f8;}};return _0x95a52===_0x3c6392[_0x590a18(0x23a)](Math[_0x590a18(0x1f5)](0x2,_0x3c6392['PatoJ'](0x7,_0x726fa0)),0x1);}function writeId(_0x5d2975){const _0x42f04b=_0x18dd,_0x4e115a={'CZWtH':function(_0x10e187,_0x17fc81){return _0x10e187<=_0x17fc81;},'oywYh':function(_0x2c49b1,_0x2c3cc3){return _0x2c49b1&_0x2c3cc3;},'ilZYs':function(_0x453fc6,_0x5f14c4){return _0x453fc6&_0x5f14c4;},'csJbE':function(_0xd7f8fa,_0x2e4e9c){return _0xd7f8fa&_0x2e4e9c;},'uCCQJ':function(_0x23cf0c,_0x400484){return _0x23cf0c>>_0x400484;},'ibAem':function(_0x26d9e1,_0x130cd0){return _0x26d9e1&_0x130cd0;},'EgaCZ':function(_0x4a05c2,_0x1e4dee){return _0x4a05c2&_0x1e4dee;}};if(_0x5d2975<=0xff)return Buffer['from']([_0x5d2975]);if(_0x4e115a[_0x42f04b(0x23b)](_0x5d2975,0xffff))return Buffer[_0x42f04b(0x23c)]([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x8,0xff),_0x4e115a['ilZYs'](_0x5d2975,0xff)]);if(_0x4e115a['CZWtH'](_0x5d2975,0xffffff))return Buffer['from']([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x10,0xff),_0x5d2975>>0x8&0xff,_0x4e115a['oywYh'](_0x5d2975,0xff)]);return Buffer['from']([_0x4e115a['csJbE'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x18),0xff),_0x5d2975>>0x10&0xff,_0x4e115a['ibAem'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x8),0xff),_0x4e115a['EgaCZ'](_0x5d2975,0xff)]);}function writeVint(_0x40b056,_0xb1a92a){const _0x1390b2=_0x18dd,_0x680c8d={'jHjKV':function(_0x205e35,_0x11b58c){return _0x205e35||_0x11b58c;},'SGcKr':function(_0x1b19f1,_0xfc523a){return _0x1b19f1*_0xfc523a;},'westI':function(_0x2e7ae3,_0x98c18a){return _0x2e7ae3>=_0x98c18a;},'bgHOa':function(_0x55986c,_0x41791b){return _0x55986c&_0x41791b;},'eBVKk':function(_0x34cf2f,_0x572f5a){return _0x34cf2f<<_0x572f5a;}};let _0x23113d=_0x680c8d['jHjKV'](_0xb1a92a,0x1);while(Math['pow'](0x2,_0x680c8d['SGcKr'](0x7,_0x23113d))-0x2<_0x40b056)_0x23113d++;const _0x567a87=Buffer[_0x1390b2(0x20f)](_0x23113d);for(let _0x59ad51=_0x23113d-0x1;_0x680c8d[_0x1390b2(0x22f)](_0x59ad51,0x0);_0x59ad51--){_0x567a87[_0x59ad51]=_0x680c8d['bgHOa'](_0x40b056,0xff),_0x40b056=Math['floor'](_0x40b056/0x100);}return _0x567a87[0x0]|=_0x680c8d[_0x1390b2(0x200)](0x1,0x8-_0x23113d),_0x567a87;}function writeFloat64(_0x3c99da){const _0x4ffd0b=_0x18dd,_0x3ede59=Buffer['alloc'](0x8);return _0x3ede59[_0x4ffd0b(0x1f9)](_0x3c99da,0x0),_0x3ede59;}function writeVoid(_0x1a96fe){const _0x1b5e89=_0x18dd,_0x23e7da={'ynkpM':function(_0x4f8709,_0x4f2062){return _0x4f8709<=_0x4f2062;},'zmzNa':function(_0x88eaf4,_0xf3aa90){return _0x88eaf4-_0xf3aa90;},'UVmbH':function(_0x10acbb,_0x20b5a1){return _0x10acbb>=_0x20b5a1;},'PiyyP':function(_0x2be9d8,_0x300680){return _0x2be9d8*_0x300680;}};for(let _0x5b781d=0x1;_0x23e7da[_0x1b5e89(0x1f2)](_0x5b781d,0x8);_0x5b781d++){const _0x7ec653=_0x23e7da[_0x1b5e89(0x219)](_0x1a96fe-0x1,_0x5b781d);if(_0x23e7da[_0x1b5e89(0x229)](_0x7ec653,0x0)&&_0x7ec653<=Math['pow'](0x2,_0x23e7da['PiyyP'](0x7,_0x5b781d))-0x2)return Buffer[_0x1b5e89(0x213)]([Buffer['from']([ID_VOID]),writeVint(_0x7ec653,_0x5b781d),Buffer['alloc'](_0x7ec653)]);}return Buffer['alloc'](0x0);}function findElement(_0x3e5774,_0xdaf244,_0x4b07c6,_0x1cf0dc){const _0x2bfa7e=_0x18dd,_0x51ae32={'FZUMI':function(_0x257aaf,_0x4c0743,_0x8e378b){return _0x257aaf(_0x4c0743,_0x8e378b);},'rOqrr':function(_0x1def47,_0x27fc5b,_0x12dd27){return _0x1def47(_0x27fc5b,_0x12dd27);},'iBFSn':function(_0x3becac,_0x4d2b81){return _0x3becac===_0x4d2b81;},'wruxO':function(_0x1b58ab,_0x2e0af4,_0x5d18f5){return _0x1b58ab(_0x2e0af4,_0x5d18f5);},'yLkFN':function(_0x2e7302,_0x4dab8d){return _0x2e7302+_0x4dab8d;}};let _0x42c8c3=_0xdaf244;while(_0x42c8c3<_0x4b07c6){const [_0x19415c,_0xcc027e]=_0x51ae32[_0x2bfa7e(0x236)](readId,_0x3e5774,_0x42c8c3),[_0x515495,_0x36fd5e]=_0x51ae32[_0x2bfa7e(0x1fe)](readVint,_0x3e5774,_0x42c8c3+_0xcc027e);if(_0x51ae32[_0x2bfa7e(0x222)](_0x19415c,_0x1cf0dc))return{'offset':_0x42c8c3,'idLen':_0xcc027e,'sizeLen':_0x36fd5e,'dataSize':_0x515495,'dataOffset':_0x42c8c3+_0xcc027e+_0x36fd5e};if(_0x51ae32['wruxO'](isUnknownSize,_0x515495,_0x36fd5e))break;_0x42c8c3+=_0x51ae32['yLkFN'](_0x51ae32[_0x2bfa7e(0x22a)](_0xcc027e,_0x36fd5e),_0x515495);}return null;}function computeDurationMs(_0x49e0c1,_0x16a8d7){const _0x5e2376=_0x18dd,_0x583ecf={'rGnts':function(_0x2fc3e2,_0x5dfafa){return _0x2fc3e2===_0x5dfafa;},'AEQpc':function(_0x323cb4,_0x768e3){return _0x323cb4<_0x768e3;},'aePlv':function(_0x4c0b7f,_0x5f5bd7){return _0x4c0b7f!==_0x5f5bd7;},'oywQb':function(_0x5aa297,_0x466b74){return _0x5aa297+_0x466b74;},'GrwpC':function(_0x2f9110,_0x23c4bf,_0x528083){return _0x2f9110(_0x23c4bf,_0x528083);},'Yabag':function(_0xb62b1a,_0x260393){return _0xb62b1a-_0x260393;},'MoOgG':function(_0x3015eb,_0x54b822){return _0x3015eb+_0x54b822;},'EspjX':function(_0x57e486,_0x418c77){return _0x57e486<_0x418c77;},'jzFVT':function(_0x178df7,_0x552e5d,_0x2cd82a){return _0x178df7(_0x552e5d,_0x2cd82a);},'wahiC':function(_0x4311d6,_0x301480){return _0x4311d6+_0x301480;},'QvNJv':function(_0x16af24,_0x528f27,_0x326288,_0x16a786){return _0x16af24(_0x528f27,_0x326288,_0x16a786);},'lKfhD':function(_0x3f71e9,_0xa9ce0b){return _0x3f71e9*_0xa9ce0b;},'UAzbq':function(_0x5b3041,_0x1bfc70){return _0x5b3041>_0x1bfc70;},'fIeKF':function(_0x535b6a,_0xa5ccea){return _0x535b6a+_0xa5ccea;}};let _0x2cb89d=0x0;const _0x43faf3=Buffer[_0x5e2376(0x23c)]([0x1f,0x43,0xb6,0x75]);let _0x3fc65b=_0x49e0c1[_0x5e2376(0x205)](_0x43faf3);if(_0x583ecf['rGnts'](_0x3fc65b,-0x1))return 0x0;while(_0x583ecf[_0x5e2376(0x22c)](_0x3fc65b,_0x49e0c1['length'])){const [_0x55da7d,_0x165c5e]=readId(_0x49e0c1,_0x3fc65b);if(_0x583ecf[_0x5e2376(0x1f4)](_0x55da7d,ID_CLUSTER))break;const [_0x4f907b,_0x1870f4]=readVint(_0x49e0c1,_0x583ecf['oywQb'](_0x3fc65b,_0x165c5e)),_0xcbc844=_0x3fc65b+_0x165c5e+_0x1870f4,_0x2111e8=_0x583ecf['GrwpC'](isUnknownSize,_0x4f907b,_0x1870f4);let _0x159149;if(_0x2111e8){let _0x4a57d6=_0xcbc844;while(_0x583ecf[_0x5e2376(0x22c)](_0x4a57d6,_0x583ecf[_0x5e2376(0x212)](_0x49e0c1[_0x5e2376(0x1f3)],0x4))){const [_0x2179e1,_0x181ca1]=readId(_0x49e0c1,_0x4a57d6);if(_0x583ecf['rGnts'](_0x2179e1,ID_CLUSTER)){_0x159149=_0x4a57d6;break;}const [_0x5a0d70,_0x5cbdc7]=_0x583ecf[_0x5e2376(0x1ff)](readVint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x4a57d6,_0x181ca1));if(isUnknownSize(_0x5a0d70,_0x5cbdc7)){_0x159149=_0x49e0c1[_0x5e2376(0x1f3)];break;}_0x4a57d6+=_0x583ecf['oywQb'](_0x181ca1+_0x5cbdc7,_0x5a0d70);}_0x159149??=_0x49e0c1[_0x5e2376(0x1f3)];}else _0x159149=_0x583ecf[_0x5e2376(0x217)](_0xcbc844,_0x4f907b);let _0x38cfdd=0x0,_0x1c0dd4=_0xcbc844;while(_0x583ecf[_0x5e2376(0x20c)](_0x1c0dd4,_0x159149)){const [_0x1b5a41,_0x569f55]=_0x583ecf[_0x5e2376(0x22b)](readId,_0x49e0c1,_0x1c0dd4),[_0x39436e,_0x500250]=readVint(_0x49e0c1,_0x583ecf['wahiC'](_0x1c0dd4,_0x569f55));if(_0x1b5a41===ID_TIMESTAMP)_0x38cfdd=_0x583ecf[_0x5e2376(0x221)](readUint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x583ecf['oywQb'](_0x1c0dd4,_0x569f55),_0x500250),_0x39436e);else{if(_0x1b5a41===ID_SIMPLE_BLOCK&&_0x39436e>=0x4){const _0xd0abd5=_0x1c0dd4+_0x569f55+_0x500250,[,_0x392e01]=readVint(_0x49e0c1,_0xd0abd5),_0x88d838=_0x49e0c1['readInt16BE'](_0xd0abd5+_0x392e01),_0x34426b=_0x583ecf['lKfhD'](_0x38cfdd+_0x88d838,_0x16a8d7)/0xf4240;_0x583ecf[_0x5e2376(0x231)](_0x34426b,_0x2cb89d)&&(_0x2cb89d=_0x34426b);}else{if(_0x1b5a41===ID_CLUSTER)break;}}if(isUnknownSize(_0x39436e,_0x500250))break;_0x1c0dd4+=_0x583ecf[_0x5e2376(0x1fd)](_0x569f55+_0x500250,_0x39436e);}_0x3fc65b=_0x159149;}return _0x2cb89d;}function _0x4061(){const _0x35f0be=['QvNJv','iBFSn','TsGmc','Could\x20not\x20find\x20Info\x20element','456512QbZjgm','MCtgv','2395782LYGsXn','OeFDh','UVmbH','yLkFN','jzFVT','AEQpc','901728VMTlao','827428WSWCxf','westI','VjmpG','UAzbq','dataOffset','iLwfb','uYVYh','QoJAf','FZUMI','QBWOC','JcJpa','gnDbL','DVgIB','CZWtH','from','edUgA','oRPhO','min','ynkpM','length','aePlv','pow','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','ClJlF','UsTKy','writeDoubleBE','error','AtQCG','16IgOsEY','fIeKF','rOqrr','GrwpC','eBVKk','uCCQJ','wjZrR','QaICS','oywYh','indexOf','1163460FACOWp','LRCXV','HxhBX','RlpFE','dataSize','LikBE','EspjX','fixWebmDuration.ts','Could\x20not\x20compute\x20duration','alloc','argv','Fixed:\x20','Yabag','concat','UdzHh','offset','uSPUz','MoOgG','100QYiAGj','zmzNa','295149JFnnEU','slice','4xeIRNU','log','980874nzUnRq','hYyAY','endsWith'];_0x4061=function(){return _0x35f0be;};return _0x4061();}export function fixWebmDuration(_0x44e8fc,_0x188381){const _0x383e10=_0x18dd,_0x57e00e={'UdzHh':function(_0x2fc1c3,_0x15f3c5,_0x5340d0){return _0x2fc1c3(_0x15f3c5,_0x5340d0);},'QBWOC':function(_0xb8876b,_0x550c2d){return _0xb8876b+_0x550c2d;},'HxhBX':function(_0x8d9c9c,_0x4d529f){return _0x8d9c9c+_0x4d529f;},'aBFEB':function(_0x3d5554,_0x46daa2,_0xf47b5c){return _0x3d5554(_0x46daa2,_0xf47b5c);},'MCtgv':function(_0x14c8a5,_0x2ef4a5){return _0x14c8a5+_0x2ef4a5;},'TsGmc':function(_0xbb9264,_0xc12f3b){return _0xbb9264<_0xc12f3b;},'BxJuW':function(_0x140211,_0x563f07,_0x2ba8b3){return _0x140211(_0x563f07,_0x2ba8b3);},'AXrhK':function(_0x4fb7e9,_0x1f4d89,_0x4b6132){return _0x4fb7e9(_0x1f4d89,_0x4b6132);},'QoJAf':function(_0x56f5fd,_0x2a2782){return _0x56f5fd===_0x2a2782;},'RlpFE':_0x383e10(0x224),'LikBE':function(_0x36f09f,_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419){return _0x36f09f(_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419);},'AtQCG':function(_0x2c1737,_0x35a9dd){return _0x2c1737+_0x35a9dd;},'wjZrR':function(_0x3eeb94,_0x2bcecc,_0xd31dee,_0x4f8365){return _0x3eeb94(_0x2bcecc,_0xd31dee,_0x4f8365);},'uSPUz':function(_0x1bdf86,_0xe73e97){return _0x1bdf86<=_0xe73e97;},'oRPhO':_0x383e10(0x20e),'BYLJK':function(_0x50bd95,_0x1ea436){return _0x50bd95/_0x1ea436;},'fNumF':function(_0x480d5d,_0x27b5d7){return _0x480d5d(_0x27b5d7);},'ClJlF':function(_0x1b7221,_0x27ded5){return _0x1b7221(_0x27ded5);},'VjmpG':function(_0x256a29,_0x570aac){return _0x256a29(_0x570aac);},'YOUfc':function(_0x150e6d,_0x48f59a){return _0x150e6d<_0x48f59a;},'OICRd':function(_0x4add1e,_0x2b58e2,_0x55fa8e){return _0x4add1e(_0x2b58e2,_0x55fa8e);},'QaICS':function(_0x15e74d,_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe){return _0x15e74d(_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe);}},_0x3d7b2a=readFileSync(_0x44e8fc);let _0x282ded=0x0;const [_0x453f2a,_0x4b9ae2]=readId(_0x3d7b2a,_0x282ded),[_0x998fdb,_0x122aee]=_0x57e00e[_0x383e10(0x214)](readVint,_0x3d7b2a,_0x57e00e[_0x383e10(0x237)](_0x282ded,_0x4b9ae2));_0x282ded+=_0x57e00e['HxhBX'](_0x57e00e['QBWOC'](_0x4b9ae2,_0x122aee),_0x998fdb);const [_0x22aebf,_0x19b348]=_0x57e00e['aBFEB'](readId,_0x3d7b2a,_0x282ded);if(_0x22aebf!==ID_SEGMENT)return console[_0x383e10(0x1fa)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1570d2]=readVint(_0x3d7b2a,_0x282ded+_0x19b348),_0x420769=_0x57e00e['QBWOC'](_0x282ded+_0x19b348,_0x1570d2);let _0x293365=_0x420769;const _0x5a6c07=Math[_0x383e10(0x1f1)](_0x3d7b2a['length'],_0x57e00e[_0x383e10(0x226)](_0x420769,0x2710));let _0x221602=null,_0x8bf177=null;while(_0x57e00e[_0x383e10(0x223)](_0x293365,_0x5a6c07)){const [_0x41e70b,_0x5cd8db]=_0x57e00e['BxJuW'](readId,_0x3d7b2a,_0x293365),[_0x337347,_0x4a7a0c]=_0x57e00e['AXrhK'](readVint,_0x3d7b2a,_0x293365+_0x5cd8db);_0x57e00e['QoJAf'](_0x41e70b,ID_VOID)&&!_0x221602&&(_0x221602={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x293365+_0x5cd8db+_0x4a7a0c});if(_0x41e70b===ID_INFO){_0x8bf177={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x57e00e['HxhBX'](_0x293365,_0x5cd8db)+_0x4a7a0c};break;}if(_0x57e00e[_0x383e10(0x235)](_0x41e70b,ID_CLUSTER))break;if(isUnknownSize(_0x337347,_0x4a7a0c))break;_0x293365+=_0x5cd8db+_0x4a7a0c+_0x337347;}if(!_0x8bf177)return console['error'](_0x57e00e[_0x383e10(0x209)]),![];const _0x58b278=_0x57e00e[_0x383e10(0x20b)](findElement,_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataOffset']+_0x8bf177['dataSize'],ID_DURATION);if(_0x58b278)return![];const _0x59838d=findElement(_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x57e00e[_0x383e10(0x1fb)](_0x8bf177['dataOffset'],_0x8bf177['dataSize']),ID_TIMESTAMP_SCALE);let _0x4a4847=0xf4240;_0x59838d&&(_0x4a4847=_0x57e00e[_0x383e10(0x202)](readUint,_0x3d7b2a,_0x59838d['dataOffset'],_0x59838d[_0x383e10(0x20a)]));const _0x1d4c78=computeDurationMs(_0x3d7b2a,_0x4a4847);if(_0x57e00e[_0x383e10(0x216)](_0x1d4c78,0x0))return console['error'](_0x57e00e[_0x383e10(0x1f0)]),![];const _0xf64683=_0x57e00e['BYLJK'](_0x1d4c78*0xf4240,_0x4a4847),_0x480793=Buffer['concat']([_0x57e00e['fNumF'](writeId,ID_DURATION),_0x57e00e[_0x383e10(0x1f7)](writeVint,0x8),_0x57e00e[_0x383e10(0x230)](writeFloat64,_0xf64683)]),_0x94221d=_0x480793[_0x383e10(0x1f3)];if(!_0x221602||_0x221602[_0x383e10(0x215)]<_0x8bf177['offset']){if(_0x221602){const _0x5507f=_0x57e00e['AtQCG'](_0x221602['idLen'],_0x221602['sizeLen'])+_0x221602['dataSize'],_0x4e41b7=_0x5507f-_0x94221d;if(_0x57e00e['YOUfc'](_0x4e41b7,0x2))return rewriteFile(_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);const _0x278eb1=_0x57e00e['HxhBX'](_0x8bf177[_0x383e10(0x20a)],_0x94221d),_0x382d34=Buffer['concat']([_0x57e00e[_0x383e10(0x1f7)](writeId,ID_INFO),_0x57e00e[_0x383e10(0x214)](writeVint,_0x278eb1,_0x8bf177['sizeLen'])]),_0x5c1376=_0x3d7b2a[_0x383e10(0x21b)](_0x8bf177['dataOffset'],_0x8bf177[_0x383e10(0x232)]+_0x8bf177[_0x383e10(0x20a)]),_0x387d80=_0x57e00e['VjmpG'](writeVoid,_0x4e41b7),_0x535b1e=_0x3d7b2a['slice'](0x0,_0x221602['offset']),_0x359929=_0x3d7b2a['slice'](_0x57e00e[_0x383e10(0x208)](_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataSize']));return _0x57e00e['OICRd'](writeFileSync,_0x188381,Buffer['concat']([_0x535b1e,_0x387d80,_0x382d34,_0x5c1376,_0x480793,_0x359929])),!![];}}return _0x57e00e[_0x383e10(0x203)](rewriteFile,_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);}function rewriteFile(_0x4aabe9,_0x45fbee,_0x1279fd,_0x15b40c,_0x5f58b0,_0x539a34){const _0x5f27fd=_0x18dd,_0x325bf7={'NAKoq':function(_0x43a58d,_0x19532b){return _0x43a58d+_0x19532b;},'edUgA':function(_0x5b4f79,_0x1b477c,_0x240778){return _0x5b4f79(_0x1b477c,_0x240778);}},_0x1cb2b3=_0x45fbee['dataSize']+_0x1279fd['length'],_0x3f710c=Buffer['concat']([writeId(ID_INFO),writeVint(_0x1cb2b3)]),_0x29d186=_0x325bf7['NAKoq'](_0x45fbee['idLen'],_0x45fbee['sizeLen']),_0x4943be=_0x4aabe9[_0x5f27fd(0x21b)](0x0,_0x45fbee[_0x5f27fd(0x215)]),_0x283046=_0x4aabe9['slice'](_0x45fbee['dataOffset'],_0x45fbee[_0x5f27fd(0x232)]+_0x45fbee[_0x5f27fd(0x20a)]),_0x302037=_0x4aabe9['slice'](_0x325bf7['NAKoq'](_0x45fbee[_0x5f27fd(0x215)]+_0x29d186,_0x45fbee[_0x5f27fd(0x20a)]));return _0x325bf7[_0x5f27fd(0x1ef)](writeFileSync,_0x539a34,Buffer[_0x5f27fd(0x213)]([_0x4943be,_0x3f710c,_0x283046,_0x1279fd,_0x302037])),!![];}if(process['argv'][0x1]?.[_0x1cad9f(0x220)](_0x1cad9f(0x20d))||process['argv'][0x1]?.[_0x1cad9f(0x220)]('fixWebmDuration.js')){const input=process[_0x1cad9f(0x210)][0x2],output=process[_0x1cad9f(0x210)][0x3];(!input||!output)&&(console[_0x1cad9f(0x1fa)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1cad9f(0x21d)](_0x1cad9f(0x211)+output):console[_0x1cad9f(0x21d)](_0x1cad9f(0x1f6));}
|
|
1
|
+
const _0x3f7182=_0x4a2e;(function(_0x5cfe74,_0xcae1ac){const _0x308a3b=_0x4a2e,_0x2ab572=_0x5cfe74();while(!![]){try{const _0x5900cf=parseInt(_0x308a3b(0x1b7))/0x1+parseInt(_0x308a3b(0x1b2))/0x2*(parseInt(_0x308a3b(0x197))/0x3)+parseInt(_0x308a3b(0x1a0))/0x4+-parseInt(_0x308a3b(0x1d1))/0x5*(-parseInt(_0x308a3b(0x191))/0x6)+parseInt(_0x308a3b(0x19e))/0x7+parseInt(_0x308a3b(0x1a8))/0x8+-parseInt(_0x308a3b(0x1a4))/0x9;if(_0x5900cf===_0xcae1ac)break;else _0x2ab572['push'](_0x2ab572['shift']());}catch(_0x2e14f6){_0x2ab572['push'](_0x2ab572['shift']());}}}(_0x1a3b,0x19202));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(_0x176e90,_0x18b6d8){const _0x27df0c=_0x4a2e,_0x10e124={'zhLym':function(_0x2086e3,_0x469ad9){return _0x2086e3>=_0x469ad9;},'uVIPI':function(_0x25c845,_0x181134){return _0x25c845<=_0x181134;},'TFOyE':function(_0x56f5f1,_0x6eb63c){return _0x56f5f1+_0x6eb63c;},'Lzpim':function(_0x29c624,_0x25a0de){return _0x29c624&_0x25a0de;},'cPOAH':function(_0x57a9f0,_0x28a508){return _0x57a9f0-_0x28a508;},'TweTr':function(_0x1b9e56,_0xf75fff){return _0x1b9e56<_0xf75fff;},'SxLCx':function(_0x217941,_0x381094){return _0x217941+_0x381094;}};if(_0x10e124[_0x27df0c(0x1b9)](_0x18b6d8,_0x176e90['length']))return[0x0,0x0];const _0x3f5d8d=_0x176e90[_0x18b6d8];let _0x4f01f5=0x1,_0xfe04af=0x80;while(_0x10e124['uVIPI'](_0x4f01f5,0x8)&&!(_0x3f5d8d&_0xfe04af)){_0x4f01f5++,_0xfe04af>>=0x1;}if(_0x10e124['TFOyE'](_0x18b6d8,_0x4f01f5)>_0x176e90[_0x27df0c(0x1be)])return[0x0,0x0];let _0x57b7bc=_0x10e124[_0x27df0c(0x1ab)](_0x3f5d8d,_0x10e124['cPOAH'](_0xfe04af,0x1));for(let _0x592bbe=0x1;_0x10e124[_0x27df0c(0x1ac)](_0x592bbe,_0x4f01f5);_0x592bbe++){_0x57b7bc=_0x10e124[_0x27df0c(0x1ca)](_0x57b7bc*0x100,_0x176e90[_0x18b6d8+_0x592bbe]);}return[_0x57b7bc,_0x4f01f5];}function _0x1a3b(){const _0x1724b5=['BSGpb','CsAeh','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','slice','concat','BzTKW','493486HPYrBE','golhY','273640VUyBkV','alloc','readInt16BE','idLen','5686641fhDLcx','rltkr','CKMRs','Fixed:\x20','1176728NUoHEj','dataSize','xYCRV','Lzpim','TweTr','qsOqS','JccqW','XuLKx','JEgku','from','71642uVjzVR','WfOxh','hdnOR','writeDoubleBE','TvMuu','151352WbroJJ','FYQqV','zhLym','sizeLen','UUGYC','NEMXc','VILcN','length','jxnqM','IASjt','VCNJf','LHBns','hCiLy','endsWith','pow','JyMTw','ygFko','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','fixWebmDuration.ts','SxLCx','argv','SrliZ','WJDsB','jfdFP','error','offset','5iCRLpQ','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','FxlWV','ShuNK','min','1139694soEVvP','fHfUU','jomgy','USGTr','dataOffset','kmJxH','9tQQjQb'];_0x1a3b=function(){return _0x1724b5;};return _0x1a3b();}function readId(_0x3aac99,_0x5a5904){const _0xb04394=_0x4a2e,_0x579ea9={'NEMXc':function(_0x126096,_0x58e3ae){return _0x126096>=_0x58e3ae;},'JTKQf':function(_0x517fe2,_0x304a6a){return _0x517fe2>=_0x304a6a;},'jomgy':function(_0x386903,_0x45c693){return _0x386903+_0x45c693;},'XzVyA':function(_0xccdf73,_0x3836db){return _0xccdf73<_0x3836db;},'golhY':function(_0x2230b9,_0xf472cb){return _0x2230b9*_0xf472cb;}};if(_0x5a5904>=_0x3aac99[_0xb04394(0x1be)])return[0x0,0x0];const _0x61a0a0=_0x3aac99[_0x5a5904];let _0x52632f;if(_0x579ea9[_0xb04394(0x1bc)](_0x61a0a0,0x80))_0x52632f=0x1;else{if(_0x61a0a0>=0x40)_0x52632f=0x2;else{if(_0x579ea9['NEMXc'](_0x61a0a0,0x20))_0x52632f=0x3;else{if(_0x579ea9['JTKQf'](_0x61a0a0,0x10))_0x52632f=0x4;else return[_0x61a0a0,0x1];}}}if(_0x579ea9[_0xb04394(0x193)](_0x5a5904,_0x52632f)>_0x3aac99['length'])return[0x0,0x0];let _0x1c9540=0x0;for(let _0x46c84d=0x0;_0x579ea9['XzVyA'](_0x46c84d,_0x52632f);_0x46c84d++){_0x1c9540=_0x579ea9[_0xb04394(0x193)](_0x579ea9[_0xb04394(0x19f)](_0x1c9540,0x100),_0x3aac99[_0x579ea9['jomgy'](_0x5a5904,_0x46c84d)]);}return[_0x1c9540,_0x52632f];}function readUint(_0x3a980d,_0x2d7d97,_0x2c8116){const _0x58d688=_0x4a2e,_0x10fcd4={'JccqW':function(_0x54c8fd,_0x10d98f){return _0x54c8fd<_0x10d98f;},'WfOxh':function(_0x1f5d88,_0x44c2c4){return _0x1f5d88+_0x44c2c4;}};let _0x359ad4=0x0;for(let _0x84970a=0x0;_0x10fcd4[_0x58d688(0x1ae)](_0x84970a,_0x2c8116);_0x84970a++){_0x359ad4=_0x10fcd4[_0x58d688(0x1b3)](_0x359ad4*0x100,_0x3a980d[_0x2d7d97+_0x84970a]);}return _0x359ad4;}function isUnknownSize(_0x220cfd,_0x5cbebb){const _0x909d4d=_0x4a2e,_0x27df62={'hCiLy':function(_0x3afed6,_0x2388db){return _0x3afed6===_0x2388db;},'FYQqV':function(_0x4530b2,_0x1c796b){return _0x4530b2*_0x1c796b;}};return _0x27df62[_0x909d4d(0x1c3)](_0x220cfd,Math['pow'](0x2,_0x27df62[_0x909d4d(0x1b8)](0x7,_0x5cbebb))-0x1);}function writeId(_0x5ea342){const _0x3b2115=_0x4a2e,_0x5219b8={'mDsEi':function(_0x4dec30,_0x42578e){return _0x4dec30<=_0x42578e;},'VCNJf':function(_0x5c8f4c,_0x4cbafd){return _0x5c8f4c>>_0x4cbafd;},'CsAeh':function(_0x6fd5bc,_0x2bfd40){return _0x6fd5bc&_0x2bfd40;},'hdnOR':function(_0x1eaaf6,_0x11fd4a){return _0x1eaaf6>>_0x11fd4a;},'vsTeH':function(_0x5c8b93,_0x70fa52){return _0x5c8b93>>_0x70fa52;}};if(_0x5ea342<=0xff)return Buffer['from']([_0x5ea342]);if(_0x5219b8['mDsEi'](_0x5ea342,0xffff))return Buffer['from']([_0x5219b8[_0x3b2115(0x1c1)](_0x5ea342,0x8)&0xff,_0x5ea342&0xff]);if(_0x5ea342<=0xffffff)return Buffer[_0x3b2115(0x1b1)]([_0x5ea342>>0x10&0xff,_0x5219b8[_0x3b2115(0x199)](_0x5219b8[_0x3b2115(0x1b4)](_0x5ea342,0x8),0xff),_0x5ea342&0xff]);return Buffer['from']([_0x5219b8[_0x3b2115(0x199)](_0x5219b8['vsTeH'](_0x5ea342,0x18),0xff),_0x5ea342>>0x10&0xff,_0x5219b8['CsAeh'](_0x5ea342>>0x8,0xff),_0x5219b8['CsAeh'](_0x5ea342,0xff)]);}function writeVint(_0x3d81ac,_0x51237a){const _0x3763aa=_0x4a2e,_0x541e0a={'ygFko':function(_0x5403e3,_0x22a309){return _0x5403e3-_0x22a309;},'LHBns':function(_0x4ea9b7,_0x471170){return _0x4ea9b7-_0x471170;},'TAkEp':function(_0x542b46,_0x4035fd){return _0x542b46>=_0x4035fd;}};let _0x1183f0=_0x51237a||0x1;while(_0x541e0a[_0x3763aa(0x1c7)](Math[_0x3763aa(0x1c5)](0x2,0x7*_0x1183f0),0x2)<_0x3d81ac)_0x1183f0++;const _0x529687=Buffer[_0x3763aa(0x1a1)](_0x1183f0);for(let _0x473839=_0x541e0a[_0x3763aa(0x1c2)](_0x1183f0,0x1);_0x541e0a['TAkEp'](_0x473839,0x0);_0x473839--){_0x529687[_0x473839]=_0x3d81ac&0xff,_0x3d81ac=Math['floor'](_0x3d81ac/0x100);}return _0x529687[0x0]|=0x1<<0x8-_0x1183f0,_0x529687;}function writeFloat64(_0xe8450e){const _0x2ceb88=_0x4a2e,_0x3ddd9b=Buffer['alloc'](0x8);return _0x3ddd9b[_0x2ceb88(0x1b5)](_0xe8450e,0x0),_0x3ddd9b;}function writeVoid(_0x33dd28){const _0x56565d=_0x4a2e,_0x21c1cb={'nWPds':function(_0x46f17d,_0x25bc98){return _0x46f17d-_0x25bc98;},'Ufcph':function(_0x1653dc,_0x3b92bc){return _0x1653dc>=_0x3b92bc;},'echaT':function(_0xc796f6,_0x1e36d9){return _0xc796f6<=_0x1e36d9;},'jxnqM':function(_0x4b16f2,_0x3afa7c){return _0x4b16f2-_0x3afa7c;}};for(let _0x41502e=0x1;_0x41502e<=0x8;_0x41502e++){const _0x7cbb63=_0x21c1cb['nWPds'](_0x33dd28,0x1)-_0x41502e;if(_0x21c1cb['Ufcph'](_0x7cbb63,0x0)&&_0x21c1cb['echaT'](_0x7cbb63,_0x21c1cb[_0x56565d(0x1bf)](Math['pow'](0x2,0x7*_0x41502e),0x2)))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x7cbb63,_0x41502e),Buffer[_0x56565d(0x1a1)](_0x7cbb63)]);}return Buffer[_0x56565d(0x1a1)](0x0);}function findElement(_0xfcf201,_0x2aa2b7,_0x439527,_0xe99276){const _0x40583c=_0x4a2e,_0x2b228b={'VILcN':function(_0x1ff882,_0x1d97ce,_0x25badd){return _0x1ff882(_0x1d97ce,_0x25badd);},'omECt':function(_0x504cfe,_0x267f64){return _0x504cfe+_0x267f64;},'USGTr':function(_0x3514b0,_0x40eb3a){return _0x3514b0+_0x40eb3a;},'AxyFE':function(_0x3e997d,_0x2e7857){return _0x3e997d+_0x2e7857;}};let _0x3623dd=_0x2aa2b7;while(_0x3623dd<_0x439527){const [_0x477d9c,_0x11fbe0]=readId(_0xfcf201,_0x3623dd),[_0x2e493b,_0x31f220]=_0x2b228b[_0x40583c(0x1bd)](readVint,_0xfcf201,_0x2b228b['omECt'](_0x3623dd,_0x11fbe0));if(_0x477d9c===_0xe99276)return{'offset':_0x3623dd,'idLen':_0x11fbe0,'sizeLen':_0x31f220,'dataSize':_0x2e493b,'dataOffset':_0x2b228b[_0x40583c(0x194)](_0x3623dd+_0x11fbe0,_0x31f220)};if(_0x2b228b[_0x40583c(0x1bd)](isUnknownSize,_0x2e493b,_0x31f220))break;_0x3623dd+=_0x2b228b['AxyFE'](_0x11fbe0,_0x31f220)+_0x2e493b;}return null;}function computeDurationMs(_0x5b00b5,_0x600c1c){const _0x6b3fec=_0x4a2e,_0x22c466={'XuLKx':function(_0x206570,_0x1fbb7a,_0x4329cb){return _0x206570(_0x1fbb7a,_0x4329cb);},'kEcfl':function(_0x2fca8c,_0x346265){return _0x2fca8c+_0x346265;},'fjeTg':function(_0x5f174e,_0x64c380){return _0x5f174e<_0x64c380;},'TvMuu':function(_0x38446b,_0x592cea,_0x16a804){return _0x38446b(_0x592cea,_0x16a804);},'DxfuK':function(_0x25c863,_0x273c4b){return _0x25c863+_0x273c4b;},'FxlWV':function(_0x509e5c,_0x18a530){return _0x509e5c+_0x18a530;},'BSGpb':function(_0x427e52,_0x2e4c30){return _0x427e52===_0x2e4c30;},'fHfUU':function(_0x5c4ea2,_0xabd62e,_0x36ab27,_0x269303){return _0x5c4ea2(_0xabd62e,_0x36ab27,_0x269303);},'XVZYM':function(_0xba301e,_0x23e29f){return _0xba301e*_0x23e29f;},'BzTKW':function(_0xbc3e32,_0x4713e6){return _0xbc3e32+_0x4713e6;},'SrliZ':function(_0x574c34,_0x4a7b3a){return _0x574c34>_0x4a7b3a;},'WclKw':function(_0x46b9c7,_0x296ef2){return _0x46b9c7===_0x296ef2;},'ahauo':function(_0x26d695,_0x4b7c33,_0x2bd8ab){return _0x26d695(_0x4b7c33,_0x2bd8ab);}};let _0x23712a=0x0;const _0x53aa6a=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xf60641=_0x5b00b5['indexOf'](_0x53aa6a);if(_0xf60641===-0x1)return 0x0;while(_0xf60641<_0x5b00b5['length']){const [_0x14b677,_0x30a97d]=readId(_0x5b00b5,_0xf60641);if(_0x14b677!==ID_CLUSTER)break;const [_0x421669,_0x1fb5cc]=_0x22c466[_0x6b3fec(0x1af)](readVint,_0x5b00b5,_0xf60641+_0x30a97d),_0x5a9431=_0x22c466['kEcfl'](_0xf60641+_0x30a97d,_0x1fb5cc),_0x3e496f=isUnknownSize(_0x421669,_0x1fb5cc);let _0x597e36;if(_0x3e496f){let _0x4a64ff=_0x5a9431;while(_0x22c466['fjeTg'](_0x4a64ff,_0x5b00b5[_0x6b3fec(0x1be)]-0x4)){const [_0x23ad69,_0x462b6a]=_0x22c466[_0x6b3fec(0x1b6)](readId,_0x5b00b5,_0x4a64ff);if(_0x23ad69===ID_CLUSTER){_0x597e36=_0x4a64ff;break;}const [_0x116c1d,_0xd4b136]=readVint(_0x5b00b5,_0x22c466['DxfuK'](_0x4a64ff,_0x462b6a));if(isUnknownSize(_0x116c1d,_0xd4b136)){_0x597e36=_0x5b00b5[_0x6b3fec(0x1be)];break;}_0x4a64ff+=_0x22c466[_0x6b3fec(0x18e)](_0x462b6a,_0xd4b136)+_0x116c1d;}_0x597e36??=_0x5b00b5['length'];}else _0x597e36=_0x5a9431+_0x421669;let _0x3421a6=0x0,_0xbe977c=_0x5a9431;while(_0xbe977c<_0x597e36){const [_0xbd1f7d,_0x5c71bf]=readId(_0x5b00b5,_0xbe977c),[_0x47f42f,_0x1ec753]=readVint(_0x5b00b5,_0xbe977c+_0x5c71bf);if(_0x22c466[_0x6b3fec(0x198)](_0xbd1f7d,ID_TIMESTAMP))_0x3421a6=_0x22c466[_0x6b3fec(0x192)](readUint,_0x5b00b5,_0x22c466['kEcfl'](_0xbe977c+_0x5c71bf,_0x1ec753),_0x47f42f);else{if(_0xbd1f7d===ID_SIMPLE_BLOCK&&_0x47f42f>=0x4){const _0x4b298c=_0x22c466['kEcfl'](_0xbe977c,_0x5c71bf)+_0x1ec753,[,_0x37645c]=_0x22c466['XuLKx'](readVint,_0x5b00b5,_0x4b298c),_0x2b48f4=_0x5b00b5[_0x6b3fec(0x1a2)](_0x4b298c+_0x37645c),_0x3ded20=_0x22c466['XVZYM'](_0x22c466[_0x6b3fec(0x19d)](_0x3421a6,_0x2b48f4),_0x600c1c)/0xf4240;_0x22c466[_0x6b3fec(0x1cc)](_0x3ded20,_0x23712a)&&(_0x23712a=_0x3ded20);}else{if(_0x22c466['WclKw'](_0xbd1f7d,ID_CLUSTER))break;}}if(_0x22c466['ahauo'](isUnknownSize,_0x47f42f,_0x1ec753))break;_0xbe977c+=_0x5c71bf+_0x1ec753+_0x47f42f;}_0xf60641=_0x597e36;}return _0x23712a;}export function fixWebmDuration(_0x4f516b,_0x59189d){const _0x4791ec=_0x4a2e,_0x4820b5={'XjCek':function(_0x2edade,_0x391b56,_0x4f649d){return _0x2edade(_0x391b56,_0x4f649d);},'kmJxH':function(_0x482f44,_0x2b245b){return _0x482f44+_0x2b245b;},'ddJHg':function(_0x16d923,_0x46669e){return _0x16d923+_0x46669e;},'WJDsB':function(_0x3e2772,_0x381178,_0x363b0c){return _0x3e2772(_0x381178,_0x363b0c);},'jfdFP':function(_0x3f869f,_0x1dfa4f){return _0x3f869f<_0x1dfa4f;},'fJofG':function(_0x39341d,_0x330734,_0x54a9e1){return _0x39341d(_0x330734,_0x54a9e1);},'lhRzx':function(_0x43726b,_0x370fd3){return _0x43726b+_0x370fd3;},'orJob':function(_0x3d271f,_0x3ab7e9){return _0x3d271f+_0x3ab7e9;},'JEgku':function(_0x42e47d,_0x46a832){return _0x42e47d===_0x46a832;},'IASjt':function(_0x5364f3,_0x2ba986){return _0x5364f3+_0x2ba986;},'CKMRs':function(_0x244595,_0x5ae255){return _0x244595+_0x5ae255;},'JyMTw':'Could\x20not\x20compute\x20duration','ywrRO':function(_0x5d5394,_0x20f2b0){return _0x5d5394(_0x20f2b0);},'qsOqS':function(_0x794d53,_0x1a4a09){return _0x794d53+_0x1a4a09;},'mYjaY':function(_0x2fdda0,_0x5437a4){return _0x2fdda0-_0x5437a4;},'UUGYC':function(_0x239e77,_0x3fb45c,_0x37cace,_0xaed578,_0x26a771,_0xac117c,_0x2acab5){return _0x239e77(_0x3fb45c,_0x37cace,_0xaed578,_0x26a771,_0xac117c,_0x2acab5);},'ShuNK':function(_0x5b8f44,_0x56aad0){return _0x5b8f44(_0x56aad0);},'DxVSz':function(_0x266cfc,_0x2cd50d,_0x36dd6f){return _0x266cfc(_0x2cd50d,_0x36dd6f);}},_0x4e8008=readFileSync(_0x4f516b);let _0x216473=0x0;const [_0x2f550a,_0x251af8]=readId(_0x4e8008,_0x216473),[_0x27332f,_0x5c63a6]=_0x4820b5['XjCek'](readVint,_0x4e8008,_0x4820b5['kmJxH'](_0x216473,_0x251af8));_0x216473+=_0x4820b5['ddJHg'](_0x251af8,_0x5c63a6)+_0x27332f;const [_0x4ce91b,_0x1e8c16]=_0x4820b5['WJDsB'](readId,_0x4e8008,_0x216473);if(_0x4ce91b!==ID_SEGMENT)return console['error'](_0x4791ec(0x19a)),![];const [,_0x2c84f0]=readVint(_0x4e8008,_0x216473+_0x1e8c16),_0x137ce8=_0x216473+_0x1e8c16+_0x2c84f0;let _0x32fc5a=_0x137ce8;const _0x3d4937=Math[_0x4791ec(0x190)](_0x4e8008[_0x4791ec(0x1be)],_0x137ce8+0x2710);let _0x425136=null,_0x1e2f16=null;while(_0x4820b5['jfdFP'](_0x32fc5a,_0x3d4937)){const [_0xc6cd8a,_0x3b6c5a]=_0x4820b5['fJofG'](readId,_0x4e8008,_0x32fc5a),[_0x848da6,_0x11f7cc]=readVint(_0x4e8008,_0x4820b5['lhRzx'](_0x32fc5a,_0x3b6c5a));_0xc6cd8a===ID_VOID&&!_0x425136&&(_0x425136={'offset':_0x32fc5a,'idLen':_0x3b6c5a,'sizeLen':_0x11f7cc,'dataSize':_0x848da6,'dataOffset':_0x4820b5['orJob'](_0x32fc5a,_0x3b6c5a)+_0x11f7cc});if(_0x4820b5[_0x4791ec(0x1b0)](_0xc6cd8a,ID_INFO)){_0x1e2f16={'offset':_0x32fc5a,'idLen':_0x3b6c5a,'sizeLen':_0x11f7cc,'dataSize':_0x848da6,'dataOffset':_0x4820b5[_0x4791ec(0x1c0)](_0x32fc5a+_0x3b6c5a,_0x11f7cc)};break;}if(_0xc6cd8a===ID_CLUSTER)break;if(_0x4820b5[_0x4791ec(0x1cd)](isUnknownSize,_0x848da6,_0x11f7cc))break;_0x32fc5a+=_0x4820b5['orJob'](_0x3b6c5a+_0x11f7cc,_0x848da6);}if(!_0x1e2f16)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x5132ff=findElement(_0x4e8008,_0x1e2f16['dataOffset'],_0x4820b5[_0x4791ec(0x196)](_0x1e2f16[_0x4791ec(0x195)],_0x1e2f16[_0x4791ec(0x1a9)]),ID_DURATION);if(_0x5132ff)return![];const _0x381a8b=findElement(_0x4e8008,_0x1e2f16[_0x4791ec(0x195)],_0x4820b5[_0x4791ec(0x1a6)](_0x1e2f16['dataOffset'],_0x1e2f16['dataSize']),ID_TIMESTAMP_SCALE);let _0x3fa7a9=0xf4240;_0x381a8b&&(_0x3fa7a9=readUint(_0x4e8008,_0x381a8b['dataOffset'],_0x381a8b['dataSize']));const _0x19d5f7=_0x4820b5[_0x4791ec(0x1cd)](computeDurationMs,_0x4e8008,_0x3fa7a9);if(_0x19d5f7<=0x0)return console[_0x4791ec(0x1cf)](_0x4820b5[_0x4791ec(0x1c6)]),![];const _0x193c45=_0x19d5f7*0xf4240/_0x3fa7a9,_0x173a5c=Buffer['concat']([writeId(ID_DURATION),_0x4820b5['ywrRO'](writeVint,0x8),writeFloat64(_0x193c45)]),_0x2f75fd=_0x173a5c[_0x4791ec(0x1be)];if(!_0x425136||_0x4820b5[_0x4791ec(0x1ce)](_0x425136[_0x4791ec(0x1d0)],_0x1e2f16['offset'])){if(_0x425136){const _0x4fcc0c=_0x4820b5[_0x4791ec(0x1ad)](_0x425136[_0x4791ec(0x1a3)],_0x425136['sizeLen'])+_0x425136[_0x4791ec(0x1a9)],_0x59acf9=_0x4820b5['mYjaY'](_0x4fcc0c,_0x2f75fd);if(_0x59acf9<0x2)return _0x4820b5[_0x4791ec(0x1bb)](rewriteFile,_0x4e8008,_0x1e2f16,_0x173a5c,_0x3fa7a9,_0x19d5f7,_0x59189d);const _0x4d4f53=_0x1e2f16[_0x4791ec(0x1a9)]+_0x2f75fd,_0x5d5e96=Buffer['concat']([writeId(ID_INFO),writeVint(_0x4d4f53,_0x1e2f16[_0x4791ec(0x1ba)])]),_0x40a653=_0x4e8008['slice'](_0x1e2f16[_0x4791ec(0x195)],_0x1e2f16['dataOffset']+_0x1e2f16[_0x4791ec(0x1a9)]),_0x1ef89a=_0x4820b5[_0x4791ec(0x18f)](writeVoid,_0x59acf9),_0x7386c9=_0x4e8008['slice'](0x0,_0x425136[_0x4791ec(0x1d0)]),_0x18472c=_0x4e8008[_0x4791ec(0x19b)](_0x4820b5['CKMRs'](_0x1e2f16['dataOffset'],_0x1e2f16[_0x4791ec(0x1a9)]));return _0x4820b5['DxVSz'](writeFileSync,_0x59189d,Buffer['concat']([_0x7386c9,_0x1ef89a,_0x5d5e96,_0x40a653,_0x173a5c,_0x18472c])),!![];}}return rewriteFile(_0x4e8008,_0x1e2f16,_0x173a5c,_0x3fa7a9,_0x19d5f7,_0x59189d);}function rewriteFile(_0x41a9e7,_0x47b117,_0x3e7b19,_0x5d6f24,_0x3b085f,_0x17231c){const _0x2e2b71=_0x4a2e,_0xe81bf3={'rltkr':function(_0x2eb150,_0x3c2ec3){return _0x2eb150+_0x3c2ec3;},'acDkW':function(_0x5580e8,_0x47632a){return _0x5580e8(_0x47632a);},'mJstc':function(_0x5a787d,_0x5df5ff){return _0x5a787d+_0x5df5ff;},'MIZGx':function(_0x3de412,_0x5e8b39){return _0x3de412+_0x5e8b39;},'xYCRV':function(_0x2e285e,_0xbfed59,_0x5839a8){return _0x2e285e(_0xbfed59,_0x5839a8);}},_0x43899e=_0xe81bf3[_0x2e2b71(0x1a5)](_0x47b117['dataSize'],_0x3e7b19['length']),_0x363b43=Buffer['concat']([_0xe81bf3['acDkW'](writeId,ID_INFO),writeVint(_0x43899e)]),_0x20fae8=_0xe81bf3['rltkr'](_0x47b117[_0x2e2b71(0x1a3)],_0x47b117[_0x2e2b71(0x1ba)]),_0x2b26fb=_0x41a9e7['slice'](0x0,_0x47b117[_0x2e2b71(0x1d0)]),_0x5f2821=_0x41a9e7[_0x2e2b71(0x19b)](_0x47b117[_0x2e2b71(0x195)],_0x47b117[_0x2e2b71(0x195)]+_0x47b117['dataSize']),_0x228bb0=_0x41a9e7['slice'](_0xe81bf3['mJstc'](_0xe81bf3['MIZGx'](_0x47b117['offset'],_0x20fae8),_0x47b117[_0x2e2b71(0x1a9)]));return _0xe81bf3[_0x2e2b71(0x1aa)](writeFileSync,_0x17231c,Buffer[_0x2e2b71(0x19c)]([_0x2b26fb,_0x363b43,_0x5f2821,_0x3e7b19,_0x228bb0])),!![];}function _0x4a2e(_0x5a39f5,_0xabd192){_0x5a39f5=_0x5a39f5-0x18d;const _0x1a3b6c=_0x1a3b();let _0x4a2ead=_0x1a3b6c[_0x5a39f5];return _0x4a2ead;}if(process[_0x3f7182(0x1cb)][0x1]?.[_0x3f7182(0x1c4)](_0x3f7182(0x1c9))||process[_0x3f7182(0x1cb)][0x1]?.[_0x3f7182(0x1c4)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x3f7182(0x1cf)](_0x3f7182(0x18d)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x3f7182(0x1a7)+output):console['log'](_0x3f7182(0x1c8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x313fad,_0x211e81){const _0x29af45=_0x4523,_0x48d3b4=_0x313fad();while(!![]){try{const _0xb51782=-parseInt(_0x29af45(0xd6))/0x1+-parseInt(_0x29af45(0xe0))/0x2+parseInt(_0x29af45(0xd3))/0x3*(-parseInt(_0x29af45(0xdc))/0x4)+parseInt(_0x29af45(0xde))/0x5*(parseInt(_0x29af45(0xdd))/0x6)+parseInt(_0x29af45(0xd7))/0x7*(-parseInt(_0x29af45(0xdf))/0x8)+parseInt(_0x29af45(0xdb))/0x9*(parseInt(_0x29af45(0xd5))/0xa)+parseInt(_0x29af45(0xd9))/0xb;if(_0xb51782===_0x211e81)break;else _0x48d3b4['push'](_0x48d3b4['shift']());}catch(_0xfba1c1){_0x48d3b4['push'](_0x48d3b4['shift']());}}}(_0x5266,0xab262));import{execFile as _0x1f9714}from'child_process';import{promisify}from'util';function _0x4523(_0x131a01,_0x447cb6){_0x131a01=_0x131a01-0xd3;const _0x52668c=_0x5266();let _0x4523f2=_0x52668c[_0x131a01];return _0x4523f2;}const execFile=promisify(_0x1f9714);function _0x5266(){const _0x27f4a4=['git','21103500iUajwh','--error-unmatch','67347gaqOlL','4888568MepnKM','1794054LQMOCE','10NkNpCI','617096NhyTao','1350824ABUJrl','3MZpJxg','ls-files','1790pKmoUF','1180258udmpUp','7NzYscJ'];_0x5266=function(){return _0x27f4a4;};return _0x5266();}export async function isPathGitTracked(_0x34b426){const _0x2585bf=_0x4523,_0x1a9342={'wtbfl':_0x2585bf(0xd4)};try{return await execFile(_0x2585bf(0xd8),[_0x1a9342['wtbfl'],_0x2585bf(0xda),_0x34b426],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e7d77=_0x4cc8;(function(_0x1f83b4,_0x374343){const _0x2a78a6=_0x4cc8,_0x2e70a5=_0x1f83b4();while(!![]){try{const _0x4c5b9a=-parseInt(_0x2a78a6(0x12f))/0x1+parseInt(_0x2a78a6(0x13b))/0x2+-parseInt(_0x2a78a6(0x125))/0x3+-parseInt(_0x2a78a6(0x14b))/0x4+parseInt(_0x2a78a6(0x15e))/0x5*(parseInt(_0x2a78a6(0x12c))/0x6)+parseInt(_0x2a78a6(0x124))/0x7+-parseInt(_0x2a78a6(0x160))/0x8*(-parseInt(_0x2a78a6(0x139))/0x9);if(_0x4c5b9a===_0x374343)break;else _0x2e70a5['push'](_0x2e70a5['shift']());}catch(_0x567e48){_0x2e70a5['push'](_0x2e70a5['shift']());}}}(_0x5b5f,0xbedbb));const _0x42b401=(function(){const _0x35742f={'aBFCx':function(_0x2501bb,_0x33b504){return _0x2501bb!==_0x33b504;}};let _0x3054ae=!![];return function(_0x466ea3,_0x285eb7){const _0xd71a7f={'VaUqu':function(_0x27c8c6,_0x420b1b){const _0x2fcae3=_0x4cc8;return _0x35742f[_0x2fcae3(0x130)](_0x27c8c6,_0x420b1b);},'eOixb':'tGQfX'},_0x308ce7=_0x3054ae?function(){const _0x4b9229=_0x4cc8;if(_0xd71a7f[_0x4b9229(0x151)](_0xd71a7f['eOixb'],_0xd71a7f[_0x4b9229(0x143)]))return!![];else{if(_0x285eb7){const _0x488ad4=_0x285eb7[_0x4b9229(0x131)](_0x466ea3,arguments);return _0x285eb7=null,_0x488ad4;}}}:function(){};return _0x3054ae=![],_0x308ce7;};}()),_0x979b4f=_0x42b401(this,function(){const _0x4493e2=_0x4cc8,_0x4b420a={'AcCLY':_0x4493e2(0x13c)};return _0x979b4f[_0x4493e2(0x133)]()[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)])[_0x4493e2(0x133)]()['constructor'](_0x979b4f)[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)]);});_0x979b4f();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5b5f(){const _0x4d6b20=['nZG0mty2zwvqvgvW','kcGOlISPkYKRksSK','rgLQuxi','r0vu','D3fAtxu','tvbwtey','C21WzLa','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zu9PEgi','vvnpquq','DhjPBq','wMrTy2C','swrJBxi','yNvhsuC','Axvjtuq','lI90B2TLBLjLzNjLC2GUANm','mtKXmJi0oen2q0Lysa','DxrMltG','reDdzgm','r0Lusfvcx0vovG','u3LbBwK','Afv6tMC','vMfvCxu','EMvjthK','C2LNBMfS','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uwrHELy','uxbgqu4','Bg9N','tgLvyMy','qwndtfK','ANjNEM8','wefby1i','lI9LBNzPCM9UBwvUDc5QCW','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','nwLjC2vMrW','s0vsALO','nZuXmMfTz01JAW','ywjVCNq','BeTszxq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BKrSyvy','r1DQA0u','rvvXBeq','uKfor0vsx01duf9ut0TftG','otqWnte2nvPMu0TOCa','ndyWnty2nK5XwvPltG','sKLxEeS','zNfXzeW','AuflsKy','BgntuNm','yuPcCLi','l2fWAs92ms9Ty3aVBwu','nJi1nti3meLsy0HKwq','C2vHCMnO','DMrOqxu','mtuYntK2mvD5uMPHAW','yujgq3G','yxbWBhK','zgjuwfi','Dg9tDhjPBMC','BwvZC2fNzq','rwHzD0q','v3jLz2q','uKfor0vsx0nmsv9ut0TftG','zw52','mtq3odD5vvPizuO','q0z0y2q'];_0x5b5f=function(){return _0x4d6b20;};return _0x5b5f();}const ENV_TOKEN=_0x5e7d77(0x137),ENV_TOKEN_LEGACY=_0x5e7d77(0x123),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x226c4f=_0x5e7d77;return!!process[_0x226c4f(0x138)][_0x226c4f(0x14e)];}async function writeToGitHubEnv(_0x21f0c3,_0x309221){const _0x2e53d1=_0x5e7d77,_0xff45d3={'Idcmr':function(_0x4939f4,_0xc0a4b4,_0x1af37e){return _0x4939f4(_0xc0a4b4,_0x1af37e);}},_0x5335e6=process['env'][_0x2e53d1(0x14e)];_0x5335e6&&await _0xff45d3[_0x2e53d1(0x147)](appendFile,_0x5335e6,_0x21f0c3+'='+_0x309221+'\x0a');}export async function storeToken(_0x4ac9bc){const _0x25d530=_0x5e7d77,_0x4b4448={'EUqlD':function(_0x1f4f47){return _0x1f4f47();},'jrgzo':function(_0x2a138a,_0x165033,_0x273820){return _0x2a138a(_0x165033,_0x273820);},'hUzNg':function(_0x3e259a,_0x465c4b,_0x20568b,_0x4b3292){return _0x3e259a(_0x465c4b,_0x20568b,_0x4b3292);}};_0x4b4448[_0x25d530(0x122)](isGitHubCI)?await _0x4b4448[_0x25d530(0x15a)](writeToGitHubEnv,ENV_TOKEN,_0x4ac9bc):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4b4448[_0x25d530(0x150)](writeFile,TOKEN_PATH,_0x4ac9bc,{'mode':0x180}));}function _0x4cc8(_0x19b138,_0x38ff73){_0x19b138=_0x19b138-0x121;const _0x554f11=_0x5b5f();let _0x979b4f=_0x554f11[_0x19b138];if(_0x4cc8['SyyruJ']===undefined){var _0x42b401=function(_0x20530f){const _0x59504c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x165eba='',_0x47b02a='',_0x4f13e1=_0x165eba+_0x42b401;for(let _0x59120a=0x0,_0x3061ca,_0x33ab94,_0x585c2a=0x0;_0x33ab94=_0x20530f['charAt'](_0x585c2a++);~_0x33ab94&&(_0x3061ca=_0x59120a%0x4?_0x3061ca*0x40+_0x33ab94:_0x33ab94,_0x59120a++%0x4)?_0x165eba+=_0x4f13e1['charCodeAt'](_0x585c2a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3061ca>>(-0x2*_0x59120a&0x6)):_0x59120a:0x0){_0x33ab94=_0x59504c['indexOf'](_0x33ab94);}for(let _0xaea56f=0x0,_0x502ba8=_0x165eba['length'];_0xaea56f<_0x502ba8;_0xaea56f++){_0x47b02a+='%'+('00'+_0x165eba['charCodeAt'](_0xaea56f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b02a);};_0x4cc8['mqrJxp']=_0x42b401,_0x4cc8['UOwdrH']={},_0x4cc8['SyyruJ']=!![];}const _0x5b5feb=_0x554f11[0x0],_0x4cc819=_0x19b138+_0x5b5feb,_0x326e27=_0x4cc8['UOwdrH'][_0x4cc819];if(!_0x326e27){const _0x4a6252=function(_0x1ecea9){this['iJRPLT']=_0x1ecea9,this['XOgjyS']=[0x1,0x0,0x0],this['kgaYmX']=function(){return'newState';},this['kAhDvD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OXZlYS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4a6252['prototype']['zSzyLN']=function(){const _0x32ce99=new RegExp(this['kAhDvD']+this['OXZlYS']),_0x35c7c5=_0x32ce99['test'](this['kgaYmX']['toString']())?--this['XOgjyS'][0x1]:--this['XOgjyS'][0x0];return this['XlVtNk'](_0x35c7c5);},_0x4a6252['prototype']['XlVtNk']=function(_0x1924c4){if(!Boolean(~_0x1924c4))return _0x1924c4;return this['LDyZJq'](this['iJRPLT']);},_0x4a6252['prototype']['LDyZJq']=function(_0x818fa){for(let _0x152d76=0x0,_0x4887a2=this['XOgjyS']['length'];_0x152d76<_0x4887a2;_0x152d76++){this['XOgjyS']['push'](Math['round'](Math['random']())),_0x4887a2=this['XOgjyS']['length'];}return _0x818fa(this['XOgjyS'][0x0]);},new _0x4a6252(_0x4cc8)['zSzyLN'](),_0x979b4f=_0x4cc8['mqrJxp'](_0x979b4f),_0x4cc8['UOwdrH'][_0x4cc819]=_0x979b4f;}else _0x979b4f=_0x326e27;return _0x979b4f;}export async function getToken(){const _0x73bcc7=_0x5e7d77,_0x183802={'zeILy':function(_0x2b148e,_0x4780de){return _0x2b148e!==_0x4780de;},'Zdmcg':_0x73bcc7(0x15f),'hwTck':'fofEO','IwMdQ':function(_0x22d8c2,_0x686e08,_0x2a785c){return _0x22d8c2(_0x686e08,_0x2a785c);},'MPVLF':_0x73bcc7(0x14c),'smpfP':function(_0xc899bc){return _0xc899bc();},'NOxvr':function(_0x2115db,_0x172cdb){return _0x2115db(_0x172cdb);},'DGCdc':'../mcpBootstrap.js','XxvkE':function(_0x1f4d4f,_0x400daf){return _0x1f4d4f===_0x400daf;},'sqmqV':_0x73bcc7(0x155),'fqqdL':_0x73bcc7(0x154),'QmpCp':function(_0x115505){return _0x115505();},'cNXZR':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'};if(process[_0x73bcc7(0x138)][ENV_TOKEN]){if(_0x183802[_0x73bcc7(0x152)](_0x183802[_0x73bcc7(0x146)],_0x183802['hwTck']))return process['env'][ENV_TOKEN];else{if(_0x3c8777){const _0x36b976=_0x3e2de7['apply'](_0x430b1d,arguments);return _0x49f4df=null,_0x36b976;}}}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x73bcc7(0x138)][ENV_TOKEN_LEGACY];let _0x2d2098=null;try{_0x2d2098=(await _0x183802['IwMdQ'](readFile,TOKEN_PATH,_0x183802[_0x73bcc7(0x140)]))[_0x73bcc7(0x145)]()||null;}catch{const _0x5410ec=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);return _0x5410ec;}if(!_0x2d2098)return null;const _0x218463=await checkTokenValid(_0x2d2098);if(_0x218463)return _0x2d2098;const _0x395b0e=await _0x183802['NOxvr'](tryPromoteRefreshToken,_0x2d2098);if(_0x395b0e)return _0x395b0e;const _0x44d15a=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);if(_0x44d15a)return _0x44d15a;const {getMcpAuthOrigin:_0x41c3d3,mcpBootstrap:_0x5b908f}=await import(_0x183802[_0x73bcc7(0x14d)]),_0x1e2691=await _0x183802[_0x73bcc7(0x141)](_0x41c3d3);if(_0x1e2691){if(_0x183802['XxvkE']('QdazV',_0x183802['sqmqV']))try{console[_0x73bcc7(0x157)](_0x183802[_0x73bcc7(0x127)]),await _0x183802['QmpCp'](_0x5b908f);const _0x4b73e6=await tryRefreshToken();if(_0x4b73e6)return _0x4b73e6;}catch(_0x556596){const _0x4e8687=_0x556596 instanceof Error?_0x556596[_0x73bcc7(0x134)]:String(_0x556596);throw new Error('MCP\x20re-authentication\x20failed:\x20'+_0x4e8687+'\x0a'+_0x183802['cNXZR']);}else return!!_0x23abe5[_0x73bcc7(0x138)]['GITHUB_ENV'];}throw new Error(_0x73bcc7(0x15d));}async function checkTokenValid(_0x1ed583){const _0x5df7d3=_0x5e7d77,_0x4aa0b0={'dbTXR':_0x5df7d3(0x13c),'lcSRs':function(_0x46453b,_0x240150){return _0x46453b!==_0x240150;},'iAKJF':_0x5df7d3(0x126),'aJBrR':function(_0xa4e670,_0x61f89f,_0x4c058e){return _0xa4e670(_0x61f89f,_0x4c058e);},'XAAcR':_0x5df7d3(0x13e),'GWjkE':function(_0x377254,_0x56ddf2){return _0x377254(_0x56ddf2);}},_0x422aa5=new AbortController(),_0x5071fb=setTimeout(()=>_0x422aa5[_0x5df7d3(0x161)](),0x1388);try{if(_0x4aa0b0[_0x5df7d3(0x129)](_0x4aa0b0[_0x5df7d3(0x128)],_0x4aa0b0[_0x5df7d3(0x128)]))return _0x1b9d1b[_0x5df7d3(0x133)]()[_0x5df7d3(0x12d)](_0x5df7d3(0x13c))[_0x5df7d3(0x133)]()['constructor'](_0x2489cc)[_0x5df7d3(0x12d)](QeTXIP[_0x5df7d3(0x132)]);else{const {getApiBaseUrl:_0x470735}=await import(_0x5df7d3(0x15c)),_0x36426f=_0x470735(),_0x482011=await _0x4aa0b0[_0x5df7d3(0x12a)](fetch,_0x36426f+_0x5df7d3(0x12b),{'method':_0x4aa0b0[_0x5df7d3(0x15b)],'headers':{'Authorization':'Bearer\x20'+_0x1ed583},'signal':_0x422aa5[_0x5df7d3(0x153)]});return _0x482011['ok'];}}catch{return!![];}finally{_0x4aa0b0[_0x5df7d3(0x121)](clearTimeout,_0x5071fb);}}async function tryRefreshToken(){const _0x6587ac=_0x5e7d77,_0x3e9b9c={'DijQr':_0x6587ac(0x14a),'iuIMD':function(_0x4b434f){return _0x4b434f();}},{refreshCliToken:_0x4cd778}=await import(_0x3e9b9c[_0x6587ac(0x13d)]);return _0x3e9b9c[_0x6587ac(0x149)](_0x4cd778);}async function tryPromoteRefreshToken(_0x552014){const _0x45865f=_0x5e7d77,_0x78254a={'aGFug':'./tokenRefresh.js','LiUbf':function(_0x686521,_0x2ff1b7,_0x29b826){return _0x686521(_0x2ff1b7,_0x29b826);}},{refreshPartnerCliToken:_0x5700a6}=await import(_0x78254a['aGFug']);return _0x78254a[_0x45865f(0x158)](_0x5700a6,_0x552014,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x241448=_0x5e7d77,_0x159f38={'qysCn':function(_0x2c6aa1,_0x3556a1){return _0x2c6aa1(_0x3556a1);},'nDlaV':function(_0x3bd0db,_0x17efd7){return _0x3bd0db!==_0x17efd7;},'wqZMu':_0x241448(0x136)};try{return await _0x159f38['qysCn'](unlink,TOKEN_PATH),!![];}catch{return _0x159f38[_0x241448(0x164)](_0x241448(0x136),_0x159f38[_0x241448(0x13f)])?_0x11757c[_0x241448(0x138)][_0x115cfe]:![];}}export async function storeRefreshToken(_0x5cc118){const _0xdb3381=_0x5e7d77,_0x4f0578={'zGbvc':function(_0x2440a6,_0x3e14a0,_0x17f917){return _0x2440a6(_0x3e14a0,_0x17f917);},'EhYwD':function(_0x796c8a,_0x253f86,_0x414077,_0x2dffac){return _0x796c8a(_0x253f86,_0x414077,_0x2dffac);}};await _0x4f0578['zGbvc'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f0578[_0xdb3381(0x135)](writeFile,REFRESH_TOKEN_PATH,_0x5cc118,{'mode':0x180});}export async function getRefreshToken(){const _0x1eb373=_0x5e7d77,_0x3fe6c8={'buGIG':function(_0x40c46a,_0x4f0fce){return _0x40c46a instanceof _0x4f0fce;},'lKRet':function(_0x2af6de,_0x8b6cf4){return _0x2af6de+_0x8b6cf4;},'vdhAu':_0x1eb373(0x163),'CFtcd':function(_0x5713fd,_0x54e630){return _0x5713fd!==_0x54e630;},'QpFAN':_0x1eb373(0x14f)};try{if(_0x3fe6c8[_0x1eb373(0x13a)]('SyAmi',_0x3fe6c8[_0x1eb373(0x156)])){const _0x131f86=_0x3fe6c8[_0x1eb373(0x148)](_0x526df1,_0x49b417)?_0x3c2dfe['message']:_0x40e3ae(_0x3726ae);throw new _0x8a4eba(_0x3fe6c8[_0x1eb373(0x162)](_0x1eb373(0x142)+_0x131f86+'\x0a',_0x3fe6c8[_0x1eb373(0x12e)]));}else{const _0x38bd8f=await readFile(REFRESH_TOKEN_PATH,_0x1eb373(0x14c));return _0x38bd8f[_0x1eb373(0x145)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xfcff8c=_0x5e7d77,_0x2af9a1={'USOAD':function(_0x332dc2){return _0x332dc2();}};await deleteToken(),await _0x2af9a1[_0xfcff8c(0x144)](deleteRefreshToken);}
|
|
1
|
+
const _0x5a0e0f=_0x5eae;(function(_0x3bad2d,_0x5dedf6){const _0x4df301=_0x5eae,_0x32a6d9=_0x3bad2d();while(!![]){try{const _0x2e356e=parseInt(_0x4df301(0xc2))/0x1*(-parseInt(_0x4df301(0xbc))/0x2)+-parseInt(_0x4df301(0x7f))/0x3+-parseInt(_0x4df301(0xb1))/0x4+parseInt(_0x4df301(0xa5))/0x5*(parseInt(_0x4df301(0x9e))/0x6)+-parseInt(_0x4df301(0xbf))/0x7+-parseInt(_0x4df301(0x81))/0x8*(-parseInt(_0x4df301(0x86))/0x9)+parseInt(_0x4df301(0x87))/0xa;if(_0x2e356e===_0x5dedf6)break;else _0x32a6d9['push'](_0x32a6d9['shift']());}catch(_0x3d9fe6){_0x32a6d9['push'](_0x32a6d9['shift']());}}}(_0x3677,0xeda0c));const _0x14b81e=(function(){const _0xb3f39d=_0x5eae,_0x25240f={'xyblI':_0xb3f39d(0x93),'JPcEX':_0xb3f39d(0xb9),'lZYuw':function(_0x41e564,_0x23e83f){return _0x41e564!==_0x23e83f;},'MRztN':_0xb3f39d(0x95)};let _0x303539=!![];return function(_0x577325,_0x423ac6){const _0x5c2818=_0xb3f39d,_0xcc8183={'XGtKn':_0x25240f['xyblI'],'WkuAh':_0x5c2818(0xc0),'RzDEz':_0x25240f['JPcEX']};if(_0x25240f[_0x5c2818(0x85)](_0x5c2818(0x95),_0x25240f[_0x5c2818(0x7d)]))return _0x1e4762[_0x5c2818(0x98)][_0xb23a88];else{const _0xc8a2fb=_0x303539?function(){const _0x2bfa7f=_0x5c2818;if(_0xcc8183[_0x2bfa7f(0xb7)]!==_0xcc8183['RzDEz']){if(_0x423ac6){const _0x4f9c2f=_0x423ac6[_0x2bfa7f(0xa6)](_0x577325,arguments);return _0x423ac6=null,_0x4f9c2f;}}else return _0x4d8147[_0x2bfa7f(0xc6)]()[_0x2bfa7f(0xaa)](_0xcc8183[_0x2bfa7f(0x9f)])['toString']()[_0x2bfa7f(0x9c)](_0x4bad7d)['search'](_0xcc8183['XGtKn']);}:function(){};return _0x303539=![],_0xc8a2fb;}};}()),_0x1202d6=_0x14b81e(this,function(){const _0x493c47=_0x5eae,_0x537689={'HvnUm':_0x493c47(0x93)};return _0x1202d6[_0x493c47(0xc6)]()[_0x493c47(0xaa)]('(((.+)+)+)+$')[_0x493c47(0xc6)]()['constructor'](_0x1202d6)[_0x493c47(0xaa)](_0x537689[_0x493c47(0xbb)]);});_0x1202d6();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x5a0e0f(0x84),ENV_TOKEN_LEGACY=_0x5a0e0f(0xc9),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x5a0e0f(0xa3));function isGitHubCI(){const _0xf066fa=_0x5a0e0f;return!!process[_0xf066fa(0x98)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x2773ce,_0x29c149){const _0x563b48=_0x5a0e0f,_0x4cb07a={'oBebd':function(_0x2881c3,_0x4ddde4,_0x19a683){return _0x2881c3(_0x4ddde4,_0x19a683);}},_0x3e5e09=process['env'][_0x563b48(0x82)];_0x3e5e09&&await _0x4cb07a[_0x563b48(0x83)](appendFile,_0x3e5e09,_0x2773ce+'='+_0x29c149+'\x0a');}export async function storeToken(_0x1a2f2e){const _0x1a70f4=_0x5a0e0f,_0x3d8ad9={'MXcfn':function(_0x43b8c7){return _0x43b8c7();},'oBiTr':function(_0x7ee9f7,_0x52bff3,_0x467249){return _0x7ee9f7(_0x52bff3,_0x467249);},'Fqblm':function(_0x461144,_0x257655,_0x174bce,_0x2d3b91){return _0x461144(_0x257655,_0x174bce,_0x2d3b91);}};_0x3d8ad9[_0x1a70f4(0xbe)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x1a2f2e):(await _0x3d8ad9[_0x1a70f4(0xb2)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3d8ad9['Fqblm'](writeFile,TOKEN_PATH,_0x1a2f2e,{'mode':0x180}));}export async function getToken(){const _0x5ed4e7=_0x5a0e0f,_0x3e268a={'ANCQP':function(_0x52517e,_0x276b4c){return _0x52517e===_0x276b4c;},'hPmmq':'xIsuD','orTAQ':'utf-8','yrSJs':function(_0x344a70,_0x285263){return _0x344a70===_0x285263;},'whYzh':_0x5ed4e7(0x88),'DhAAx':function(_0x180db9){return _0x180db9();},'Schui':function(_0x2a4b3d,_0x27f5b5){return _0x2a4b3d(_0x27f5b5);},'eQAAV':function(_0x24501d,_0x7eea92){return _0x24501d(_0x7eea92);},'cmmlO':function(_0x18b5fc){return _0x18b5fc();},'hFDRd':function(_0x29f0ab){return _0x29f0ab();},'nARgS':_0x5ed4e7(0x92),'thiLa':function(_0x407c4b){return _0x407c4b();},'WwBpD':function(_0x430a51){return _0x430a51();},'usXVc':function(_0x51775e,_0x42aa2d){return _0x51775e===_0x42aa2d;},'Cycyw':_0x5ed4e7(0xaf),'RFZcu':function(_0x4e83ba,_0x5e2b83){return _0x4e83ba instanceof _0x5e2b83;},'IxObG':_0x5ed4e7(0xae)};if(process[_0x5ed4e7(0x98)][ENV_TOKEN])return process[_0x5ed4e7(0x98)][ENV_TOKEN];if(process[_0x5ed4e7(0x98)][ENV_TOKEN_LEGACY]){if(_0x3e268a[_0x5ed4e7(0xc7)](_0x5ed4e7(0xce),_0x3e268a['hPmmq'])){const _0x1e73f9=_0x574461?function(){const _0x5126ba=_0x5ed4e7;if(_0xfe6ae9){const _0x2e8fc8=_0xaa298b[_0x5126ba(0xa6)](_0x134a57,arguments);return _0x2e7aad=null,_0x2e8fc8;}}:function(){};return _0xf91d26=![],_0x1e73f9;}else return process[_0x5ed4e7(0x98)][ENV_TOKEN_LEGACY];}let _0x23df54=null;try{_0x23df54=(await readFile(TOKEN_PATH,_0x3e268a[_0x5ed4e7(0xb8)]))[_0x5ed4e7(0xcb)]()||null;}catch{if(_0x3e268a[_0x5ed4e7(0x8d)](_0x5ed4e7(0xc1),_0x3e268a[_0x5ed4e7(0x80)])){if(_0x4f1d39){const _0x122636=_0x48a9cb[_0x5ed4e7(0xa6)](_0x53d3c5,arguments);return _0xe840e3=null,_0x122636;}}else{const _0x161304=await _0x3e268a[_0x5ed4e7(0xcc)](tryRefreshToken);return _0x161304;}}if(!_0x23df54)return null;const _0x67a173=await _0x3e268a[_0x5ed4e7(0xb6)](checkTokenValid,_0x23df54);if(_0x67a173)return _0x23df54;const _0x4a3089=await _0x3e268a[_0x5ed4e7(0xa9)](tryPromoteRefreshToken,_0x23df54);if(_0x4a3089)return _0x4a3089;const _0xadfe61=await _0x3e268a[_0x5ed4e7(0xa4)](tryRefreshToken);if(_0xadfe61)return _0xadfe61;const {getMcpAuthOrigin:_0x49d679,mcpBootstrap:_0x37ff10}=await import('../mcpBootstrap.js'),_0x3ea085=await _0x3e268a['hFDRd'](_0x49d679);if(_0x3ea085)try{console[_0x5ed4e7(0xa0)](_0x3e268a[_0x5ed4e7(0xcf)]),await _0x3e268a['thiLa'](_0x37ff10);const _0x526aa1=await _0x3e268a['WwBpD'](tryRefreshToken);if(_0x526aa1)return _0x526aa1;}catch(_0x363df6){if(_0x3e268a[_0x5ed4e7(0x9d)](_0x3e268a[_0x5ed4e7(0xad)],_0x3e268a['Cycyw'])){const _0x6a4682=_0x3e268a['RFZcu'](_0x363df6,Error)?_0x363df6[_0x5ed4e7(0x8c)]:_0x3e268a['eQAAV'](String,_0x363df6);throw new Error(_0x5ed4e7(0xb0)+_0x6a4682+'\x0a'+'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.');}else return null;}throw new Error(_0x3e268a[_0x5ed4e7(0xca)]);}function _0x3677(){const _0x4858ff=['qKvrAxO','Dg9tDhjPBMC','qu5duva','C2LNBMfS','uKfor0vsx01duf9ut0TftG','sxHpyKC','DhjPBq','rgHbqxG','rxzStfm','q3zpteq','BKfsz1m','s25IC2S','tvj6De4','AMjQsgm','mtu0odmWmgndq2PNsW','D2HzEMG','mteWmJC2mgjYwM1gCq','r0Lusfvcx0vovG','B0jLyMq','uKfor0vsx0nmsv9ut0TftG','BfPzDxC','otbozgzjB1O','mtG4mde1me55ELfrAW','tu9kDMm','tgvwEhu','ChjJwfy','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BwvZC2fNzq','ExjtsNm','ywLRq1y','Duzguve','ufHuALy','ywjVCNq','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','kcGOlISPkYKRksSK','sfLQzwO','rM1lv3m','shLtzNK','vhzJDeu','zw52','D2vTrMO','lI9LBNzPCM9UBwvUDc5QCW','CvzSEfi','y29UC3rYDwn0B3i','DxnyvMm','odq4mdyZngTvCMDwAW','weD0s24','Bg9N','r25jzvu','r2XfrgW','CMvMCMvZAc50Ehq','y21TBe8','nxfVs1jIqW','yxbWBhK','qKvrvui','yLzfBM8','zvfbqvy','C2vHCMnO','q2PJs2C','wfDeweC','q3LJExC','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','CxDvBxK','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','mtGYmZC2mefPqLvLuq','B0jPvhi','q29bz2i','DxrMltG','qKPZAfy','u2nODwK','v2T1qwG','B3juqve','qxbfCK8','r0vu','shzUvw0','ndK5nNPLvwXIDG','s3fiBgK','tvHJzM4','nJKYnZaZmLLst29yrq','rLbuv0i','r0fWuM8','mtHkEuPUu1i','ugHvBM0','lI90B2TLBLjLzNjLC2GUANm'];_0x3677=function(){return _0x4858ff;};return _0x3677();}async function checkTokenValid(_0x1f9b87){const _0x1df423=_0x5a0e0f,_0x1bcf53={'sgwkW':function(_0x689d7a,_0x4dbfd5,_0x59e3cd){return _0x689d7a(_0x4dbfd5,_0x59e3cd);},'BEQUB':_0x1df423(0x9a),'qVlxR':function(_0xbf6fd,_0x494df3,_0x59443e){return _0xbf6fd(_0x494df3,_0x59443e);},'aikCV':_0x1df423(0xba),'BJshV':function(_0xbc070a,_0x224025){return _0xbc070a===_0x224025;},'tfWGk':_0x1df423(0xa8),'uLgKb':_0x1df423(0x7c)},_0x306cbf=new AbortController(),_0x1c67e3=_0x1bcf53['sgwkW'](setTimeout,()=>_0x306cbf[_0x1df423(0x91)](),0x1388);try{const {getApiBaseUrl:_0x4b4e33}=await import(_0x1bcf53[_0x1df423(0xa7)]),_0x2748d4=_0x4b4e33(),_0x257cf2=await _0x1bcf53[_0x1df423(0x9b)](fetch,_0x2748d4+'/api/v1/mcp/me',{'method':_0x1bcf53[_0x1df423(0x8e)],'headers':{'Authorization':'Bearer\x20'+_0x1f9b87},'signal':_0x306cbf[_0x1df423(0xc8)]});return _0x257cf2['ok'];}catch{return _0x1bcf53[_0x1df423(0xb5)](_0x1bcf53['tfWGk'],_0x1bcf53['uLgKb'])?!!_0x238b13[_0x1df423(0x98)]['GITHUB_ENV']:!![];}finally{clearTimeout(_0x1c67e3);}}async function tryRefreshToken(){const _0x71a923=_0x5a0e0f,_0x9314a8={'sSnpL':_0x71a923(0xc4),'prcXV':function(_0x56cc56){return _0x56cc56();}},{refreshCliToken:_0x4b7149}=await import(_0x9314a8['sSnpL']);return _0x9314a8[_0x71a923(0x8a)](_0x4b7149);}async function tryPromoteRefreshToken(_0x1b7288){const _0x72d175=_0x5a0e0f,_0xdad2c1={'KqHli':_0x72d175(0xc4),'bZEmF':function(_0x59fc0a,_0x136294,_0x43bfc4){return _0x59fc0a(_0x136294,_0x43bfc4);}},{refreshPartnerCliToken:_0x48da1f}=await import(_0xdad2c1[_0x72d175(0xbd)]);return _0xdad2c1['bZEmF'](_0x48da1f,_0x1b7288,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xbec027=_0x5a0e0f,_0x44ca5e={'jbjHc':function(_0x53dd25,_0x30224f){return _0x53dd25 instanceof _0x30224f;},'PXTjV':function(_0xb5a6e3,_0x31ae1b){return _0xb5a6e3(_0x31ae1b);},'SFWLR':function(_0x52b7cd,_0x3bfa27){return _0x52b7cd+_0x3bfa27;},'GnIeU':function(_0x1b602e,_0x13e719){return _0x1b602e(_0x13e719);},'TvctE':'sStOq','GlEDl':'ItIId'};try{return await _0x44ca5e[_0xbec027(0xa1)](unlink,TOKEN_PATH),!![];}catch{if(_0x44ca5e[_0xbec027(0x97)]!==_0x44ca5e[_0xbec027(0xa2)])return![];else{const _0x38377d=_0x44ca5e[_0xbec027(0x7e)](_0x2331c2,_0x47c54e)?_0x272da6[_0xbec027(0x8c)]:_0x44ca5e[_0xbec027(0x90)](_0x351e3b,_0x36a275);throw new _0x3c6a4e(_0x44ca5e['SFWLR'](_0xbec027(0xb0)+_0x38377d+'\x0a',_0xbec027(0x8b)));}}}export async function storeRefreshToken(_0x3be4fd){const _0x1ba621=_0x5a0e0f,_0x17bd3c={'PhUnm':function(_0xb92e9,_0x1136c7,_0x5d3c87,_0x117336){return _0xb92e9(_0x1136c7,_0x5d3c87,_0x117336);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x17bd3c[_0x1ba621(0xc3)](writeFile,REFRESH_TOKEN_PATH,_0x3be4fd,{'mode':0x180});}export async function getRefreshToken(){const _0x3d84f9=_0x5a0e0f,_0x37ecf1={'EvlLS':_0x3d84f9(0xb4)};try{const _0x8cb108=await readFile(REFRESH_TOKEN_PATH,_0x37ecf1[_0x3d84f9(0xcd)]);return _0x8cb108[_0x3d84f9(0xcb)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x4ffb4f=_0x5a0e0f,_0x7d0f9a={'CoAgb':function(_0x3b22dd,_0x20191c){return _0x3b22dd!==_0x20191c;},'BEQiz':'fVqCn','uFFQQ':_0x4ffb4f(0x89),'XWDXG':function(_0x3a2fe7,_0x46fd30){return _0x3a2fe7(_0x46fd30);},'HySfy':_0x4ffb4f(0x99),'zjjGQ':_0x4ffb4f(0xab)};try{return _0x7d0f9a[_0x4ffb4f(0xb3)](_0x7d0f9a[_0x4ffb4f(0xc5)],_0x7d0f9a[_0x4ffb4f(0x8f)])?(await _0x7d0f9a[_0x4ffb4f(0xac)](unlink,REFRESH_TOKEN_PATH),!![]):!![];}catch{return _0x7d0f9a[_0x4ffb4f(0xb3)](_0x7d0f9a[_0x4ffb4f(0x96)],_0x7d0f9a['zjjGQ'])?![]:_0x4f03f9['env'][_0x55f1f0];}}function _0x5eae(_0x2e2d55,_0x11ca42){_0x2e2d55=_0x2e2d55-0x7c;const _0x17edbd=_0x3677();let _0x1202d6=_0x17edbd[_0x2e2d55];if(_0x5eae['QhFYoI']===undefined){var _0x14b81e=function(_0x4758e9){const _0xfddc29='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22a19b='',_0x25e64a='',_0x41c79f=_0x22a19b+_0x14b81e;for(let _0x38882a=0x0,_0x1b12a6,_0x2ebefb,_0x40353c=0x0;_0x2ebefb=_0x4758e9['charAt'](_0x40353c++);~_0x2ebefb&&(_0x1b12a6=_0x38882a%0x4?_0x1b12a6*0x40+_0x2ebefb:_0x2ebefb,_0x38882a++%0x4)?_0x22a19b+=_0x41c79f['charCodeAt'](_0x40353c+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b12a6>>(-0x2*_0x38882a&0x6)):_0x38882a:0x0){_0x2ebefb=_0xfddc29['indexOf'](_0x2ebefb);}for(let _0x1642cc=0x0,_0x523c91=_0x22a19b['length'];_0x1642cc<_0x523c91;_0x1642cc++){_0x25e64a+='%'+('00'+_0x22a19b['charCodeAt'](_0x1642cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25e64a);};_0x5eae['bRUAHx']=_0x14b81e,_0x5eae['LDZyRm']={},_0x5eae['QhFYoI']=!![];}const _0x367781=_0x17edbd[0x0],_0x5eae41=_0x2e2d55+_0x367781,_0x568f7c=_0x5eae['LDZyRm'][_0x5eae41];if(!_0x568f7c){const _0x574461=function(_0x354447){this['qjhobu']=_0x354447,this['tExIuB']=[0x1,0x0,0x0],this['xiJmlU']=function(){return'newState';},this['DdGYdf']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ugGTTb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x574461['prototype']['AEVNfr']=function(){const _0x551d20=new RegExp(this['DdGYdf']+this['ugGTTb']),_0x562067=_0x551d20['test'](this['xiJmlU']['toString']())?--this['tExIuB'][0x1]:--this['tExIuB'][0x0];return this['XHRDuh'](_0x562067);},_0x574461['prototype']['XHRDuh']=function(_0x40f57f){if(!Boolean(~_0x40f57f))return _0x40f57f;return this['VkhABY'](this['qjhobu']);},_0x574461['prototype']['VkhABY']=function(_0xf91d26){for(let _0xfe6ae9=0x0,_0x31de35=this['tExIuB']['length'];_0xfe6ae9<_0x31de35;_0xfe6ae9++){this['tExIuB']['push'](Math['round'](Math['random']())),_0x31de35=this['tExIuB']['length'];}return _0xf91d26(this['tExIuB'][0x0]);},new _0x574461(_0x5eae)['AEVNfr'](),_0x1202d6=_0x5eae['bRUAHx'](_0x1202d6),_0x5eae['LDZyRm'][_0x5eae41]=_0x1202d6;}else _0x1202d6=_0x568f7c;return _0x1202d6;}export async function deleteAllCredentials(){const _0x3e883d=_0x5a0e0f,_0x45bc58={'HYjej':function(_0x40efa4){return _0x40efa4();}};await _0x45bc58[_0x3e883d(0x94)](deleteToken),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9790a5=_0x205e;(function(_0x4b68e7,_0x1dcd3a){const _0xe71e9e=_0x205e,_0x171153=_0x4b68e7();while(!![]){try{const _0xe2ff36=-parseInt(_0xe71e9e(0x18c))/0x1*(-parseInt(_0xe71e9e(0x177))/0x2)+parseInt(_0xe71e9e(0x184))/0x3+parseInt(_0xe71e9e(0x178))/0x4*(parseInt(_0xe71e9e(0x18b))/0x5)+parseInt(_0xe71e9e(0x17f))/0x6*(-parseInt(_0xe71e9e(0x188))/0x7)+parseInt(_0xe71e9e(0x175))/0x8+-parseInt(_0xe71e9e(0x179))/0x9+parseInt(_0xe71e9e(0x189))/0xa*(-parseInt(_0xe71e9e(0x182))/0xb);if(_0xe2ff36===_0x1dcd3a)break;else _0x171153['push'](_0x171153['shift']());}catch(_0x51e293){_0x171153['push'](_0x171153['shift']());}}}(_0x52fd,0x3c0d2));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x354e8a=_0x205e,_0x34bcc9={'ICzaS':function(_0x55d485){return _0x55d485();},'xMlyG':function(_0x4b4b0f,_0x1f02b7,_0x1c059f){return _0x4b4b0f(_0x1f02b7,_0x1c059f);},'KjuUA':_0x354e8a(0x18d),'FVnUa':'active-profile.txt'},_0x5c9fcc=_0x34bcc9[_0x354e8a(0x180)](getRangerDir),_0x3b3167=getRangerHomeDir();return[join(_0x5c9fcc,_0x354e8a(0x18d)),join(_0x5c9fcc,'ci'),_0x34bcc9['xMlyG'](join,_0x3b3167,_0x34bcc9['KjuUA']),join(_0x5c9fcc,_0x34bcc9['FVnUa'])][_0x354e8a(0x183)](_0x1cc6f5=>existsSync(_0x1cc6f5));}function flagFilePath(){const _0x2be652=_0x205e,_0x2a7cc8=new Date()[_0x2be652(0x187)]()['slice'](0x0,0xa);return join(getRangerHomeDir(),'.legacy-warning-'+_0x2a7cc8);}export function showLegacyDeprecationWarning(){const _0x39c0ea=_0x205e,_0x1bdc9e={'ecKFw':function(_0x54b582){return _0x54b582();},'zlCyj':function(_0x29692c,_0x4c8d48){return _0x29692c(_0x4c8d48);},'hrexX':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','WmnMp':_0x39c0ea(0x17e),'xtzyR':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','FQLSx':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','DuzKn':function(_0x404f82,_0xeffb26,_0x2fda37,_0x36b6f1){return _0x404f82(_0xeffb26,_0x2fda37,_0x36b6f1);}},_0x1d46b9=detectLegacyPaths();if(_0x1d46b9[_0x39c0ea(0x181)]===0x0)return;const _0x1f66b1=_0x1bdc9e[_0x39c0ea(0x186)](flagFilePath);if(_0x1bdc9e[_0x39c0ea(0x174)](existsSync,_0x1f66b1))return;const _0x133a1a=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x1d46b9['map'](_0x2b40f3=>'\x20\x20\x20\x20\x20'+_0x2b40f3),'',_0x1bdc9e[_0x39c0ea(0x18a)],_0x39c0ea(0x17d),'','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','',_0x1bdc9e['WmnMp'],_0x1bdc9e['xtzyR'],'',_0x1bdc9e['FQLSx'],''];process['stderr']['write'](_0x133a1a['join']('\x0a')+'\x0a');try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),_0x1bdc9e[_0x39c0ea(0x17a)](writeFileSync,_0x1f66b1,'',{'mode':0x180});}catch{}}function _0x52fd(){const _0x416ec1=['use','start','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','6LyOhxh','ICzaS','length','1819246NCjGHe','filter','652950QrtapC','has','ecKFw','toISOString','3304322UaFlRq','10bFGJzS','hrexX','5gstjlZ','1385DwoEEW','local','zlCyj','2449440aDfrYb','startsWith','346mbBdaT','1045864ynvnfu','1273491aysleb','DuzKn'];_0x52fd=function(){return _0x416ec1;};return _0x52fd();}function _0x205e(_0x186898,_0x7dc271){_0x186898=_0x186898-0x174;const _0x52fdd6=_0x52fd();let _0x205e4e=_0x52fdd6[_0x186898];return _0x205e4e;}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify','verify-feature','profile','profiles','setup','setup-ci',_0x9790a5(0x17c),_0x9790a5(0x17b)]);export function shouldShowLegacyWarning(_0x309fee){const _0x24c178=_0x9790a5,_0x18d05e=_0x309fee[0x2];if(!_0x18d05e)return![];if(_0x18d05e[_0x24c178(0x176)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x24c178(0x185)](_0x18d05e))return![];for(let _0x54b24a=0x3;_0x54b24a<_0x309fee['length'];_0x54b24a++){if(_0x309fee[_0x54b24a]==='--help'||_0x309fee[_0x54b24a]==='-h')return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1a426d,_0xd875d0){const _0x1f023d=_0x437c,_0x34e0a1=_0x1a426d();while(!![]){try{const _0x18ba37=-parseInt(_0x1f023d(0x18c))/0x1*(parseInt(_0x1f023d(0x195))/0x2)+parseInt(_0x1f023d(0x1a1))/0x3+parseInt(_0x1f023d(0x19d))/0x4*(-parseInt(_0x1f023d(0x1a5))/0x5)+parseInt(_0x1f023d(0x1a3))/0x6*(parseInt(_0x1f023d(0x1a2))/0x7)+-parseInt(_0x1f023d(0x196))/0x8+parseInt(_0x1f023d(0x19b))/0x9+-parseInt(_0x1f023d(0x19c))/0xa*(-parseInt(_0x1f023d(0x199))/0xb);if(_0x18ba37===_0xd875d0)break;else _0x34e0a1['push'](_0x34e0a1['shift']());}catch(_0x4e6ad9){_0x34e0a1['push'](_0x34e0a1['shift']());}}}(_0x5d3d,0x27837));const _0x99e400=(function(){let _0x6d18df=!![];return function(_0x58ea4b,_0x191203){const _0x1737a6=_0x6d18df?function(){const _0x8dcf2a=_0x437c;if(_0x191203){const _0x20a2fb=_0x191203[_0x8dcf2a(0x18b)](_0x58ea4b,arguments);return _0x191203=null,_0x20a2fb;}}:function(){};return _0x6d18df=![],_0x1737a6;};}()),_0x4e7eb1=_0x99e400(this,function(){const _0x20de6b=_0x437c,_0x416646={'FuJiu':_0x20de6b(0x1a0)};return _0x4e7eb1[_0x20de6b(0x197)]()[_0x20de6b(0x19e)](_0x416646[_0x20de6b(0x190)])[_0x20de6b(0x197)]()[_0x20de6b(0x19a)](_0x4e7eb1)[_0x20de6b(0x19e)](_0x20de6b(0x1a0));});_0x4e7eb1();function _0x5d3d(){const _0xd70ebc=['qMvHCMvYia','C3rYAw5NAwz5','mJeYodK2DfDHyMHY','mJa3nte0ngrTzvr5Aa','Dg9tDhjPBMC','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ntvZC09uENi','y29UC3rYDwn0B3i','mtqZnti3nuHwsgz6tG','nJaWmteWwgjTwxjp','mZGWwLbnvuDm','C2vHCMnO','C3fNEvK','kcGOlISPkYKRksSK','mJu1mZK5yu1dCvLe','mZy4owzdu2TUDG','otKWAxfAuwXm','zxjYB3i','ntq3meHoz2jRua','yxbWBgLJyxrPB24VANnVBG','v0PqDMO','yxbWBhK','mxDREvnwrq','y0D1yxe','B1j4ANC','C2LNBMfS','rNvkAxu','Cunht3O','Dgv4Da'];_0x5d3d=function(){return _0xd70ebc;};return _0x5d3d();}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x437c(_0x40fd91,_0xe60213){_0x40fd91=_0x40fd91-0x18b;const _0x3acba9=_0x5d3d();let _0x4e7eb1=_0x3acba9[_0x40fd91];if(_0x437c['UyIAxH']===undefined){var _0x99e400=function(_0x2c65f7){const _0x15cf73='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ab4fc='',_0x26d3dc='',_0x563f4f=_0x3ab4fc+_0x99e400;for(let _0x5de202=0x0,_0x11421f,_0xbb63d8,_0x1cf65b=0x0;_0xbb63d8=_0x2c65f7['charAt'](_0x1cf65b++);~_0xbb63d8&&(_0x11421f=_0x5de202%0x4?_0x11421f*0x40+_0xbb63d8:_0xbb63d8,_0x5de202++%0x4)?_0x3ab4fc+=_0x563f4f['charCodeAt'](_0x1cf65b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x11421f>>(-0x2*_0x5de202&0x6)):_0x5de202:0x0){_0xbb63d8=_0x15cf73['indexOf'](_0xbb63d8);}for(let _0x554e63=0x0,_0x3fd87d=_0x3ab4fc['length'];_0x554e63<_0x3fd87d;_0x554e63++){_0x26d3dc+='%'+('00'+_0x3ab4fc['charCodeAt'](_0x554e63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26d3dc);};_0x437c['Jdnibp']=_0x99e400,_0x437c['fGMolo']={},_0x437c['UyIAxH']=!![];}const _0x5d3d51=_0x3acba9[0x0],_0x437c28=_0x40fd91+_0x5d3d51,_0x57da32=_0x437c['fGMolo'][_0x437c28];if(!_0x57da32){const _0x2c8474=function(_0x17e398){this['ykMkGI']=_0x17e398,this['fooepg']=[0x1,0x0,0x0],this['uXBWcb']=function(){return'newState';},this['FTQgYE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xOwHVn']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2c8474['prototype']['jTFPjL']=function(){const _0x43d1b8=new RegExp(this['FTQgYE']+this['xOwHVn']),_0x3fd793=_0x43d1b8['test'](this['uXBWcb']['toString']())?--this['fooepg'][0x1]:--this['fooepg'][0x0];return this['nIrwhN'](_0x3fd793);},_0x2c8474['prototype']['nIrwhN']=function(_0x4bef1b){if(!Boolean(~_0x4bef1b))return _0x4bef1b;return this['IFYaPD'](this['ykMkGI']);},_0x2c8474['prototype']['IFYaPD']=function(_0x8eed08){for(let _0x4de76b=0x0,_0x3ea43b=this['fooepg']['length'];_0x4de76b<_0x3ea43b;_0x4de76b++){this['fooepg']['push'](Math['round'](Math['random']())),_0x3ea43b=this['fooepg']['length'];}return _0x8eed08(this['fooepg'][0x0]);},new _0x2c8474(_0x437c)['jTFPjL'](),_0x4e7eb1=_0x437c['Jdnibp'](_0x4e7eb1),_0x437c['fGMolo'][_0x437c28]=_0x4e7eb1;}else _0x4e7eb1=_0x57da32;return _0x4e7eb1;}export async function logLocalAgentInstallation(_0x4a35b7,_0x1fc7fe,_0x1c8a55){const _0x37a892=_0x437c,_0x3e9c74={'sqgyY':_0x37a892(0x1a0),'ykzkP':function(_0x5f568f){return _0x5f568f();},'WJPvj':function(_0x4517bd,_0x3b6b08,_0x1a0d13){return _0x4517bd(_0x3b6b08,_0x1a0d13);},'mVCGJ':function(_0x128513,_0x463b2a){return _0x128513===_0x463b2a;},'YYdMB':'mQliq','qCGOz':'lcrIR','yTQcb':function(_0x4f31a4,_0x50bf07,_0x2b1a93){return _0x4f31a4(_0x50bf07,_0x2b1a93);},'eMWZm':'POST','cGuaq':_0x37a892(0x1a6),'oRxjw':function(_0x302b07,_0x5c56c8){return _0x302b07(_0x5c56c8);}},_0x3d54ac=await getToken();if(!_0x3d54ac)return;const _0x5a05fb=_0x3e9c74['ykzkP'](getApiBaseUrl),_0x124b8c=new AbortController(),_0x2006b3=_0x3e9c74[_0x37a892(0x1a7)](setTimeout,()=>_0x124b8c['abort'](),0x1388);let _0x519d1d;try{if(_0x3e9c74['mVCGJ'](_0x3e9c74['YYdMB'],_0x3e9c74[_0x37a892(0x191)]))return _0x26e542[_0x37a892(0x197)]()[_0x37a892(0x19e)](_0x37a892(0x1a0))[_0x37a892(0x197)]()['constructor'](_0x23112d)[_0x37a892(0x19e)](dMXAtX[_0x37a892(0x19f)]);else _0x519d1d=await _0x3e9c74['yTQcb'](fetch,_0x5a05fb+_0x37a892(0x198),{'method':_0x3e9c74['eMWZm'],'headers':{'Authorization':_0x37a892(0x193)+_0x3d54ac,'Content-Type':_0x3e9c74[_0x37a892(0x18d)]},'body':JSON[_0x37a892(0x194)]({'skillName':_0x4a35b7,'cliVersion':_0x1c8a55,'metadata':_0x1fc7fe}),'signal':_0x124b8c[_0x37a892(0x18f)]});}finally{_0x3e9c74[_0x37a892(0x18e)](clearTimeout,_0x2006b3);}if(!_0x519d1d['ok']){const _0x23d713=await _0x519d1d[_0x37a892(0x192)]();console[_0x37a892(0x1a4)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x23d713);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dd3a6,_0x15247b){const _0x2c080a=_0x51a2,_0x2e58bf=_0x2dd3a6();while(!![]){try{const _0x38f78a=parseInt(_0x2c080a(0x12c))/0x1*(-parseInt(_0x2c080a(0x123))/0x2)+parseInt(_0x2c080a(0x128))/0x3+parseInt(_0x2c080a(0x11c))/0x4+-parseInt(_0x2c080a(0x12d))/0x5+-parseInt(_0x2c080a(0x125))/0x6+-parseInt(_0x2c080a(0x11e))/0x7*(parseInt(_0x2c080a(0x119))/0x8)+parseInt(_0x2c080a(0x12a))/0x9*(parseInt(_0x2c080a(0x121))/0xa);if(_0x38f78a===_0x15247b)break;else _0x2e58bf['push'](_0x2e58bf['shift']());}catch(_0x1dc669){_0x2e58bf['push'](_0x2e58bf['shift']());}}}(_0x37af,0x2152b));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x19fabb){const _0x10948e=_0x51a2;try{const _0x6c5c71=new URL(_0x19fabb);return _0x6c5c71[_0x10948e(0x12b)]+'//'+_0x6c5c71[_0x10948e(0x127)];}catch{return undefined;}}function _0x51a2(_0x46a15b,_0x4d3949){_0x46a15b=_0x46a15b-0x116;const _0x37afdb=_0x37af();let _0x51a241=_0x37afdb[_0x46a15b];return _0x51a241;}export function matchAuthEnvironmentExact(_0x483ba0,_0x294d67){const _0x28c2e4=_0x51a2,_0x5542ed={'zFyni':function(_0x538fbd,_0x47463f){return _0x538fbd(_0x47463f);}};if(!_0x294d67||!_0x294d67['environments'])return undefined;const _0x563711=_0x5542ed['zFyni'](originIdentity,_0x483ba0);if(!_0x563711)return undefined;for(const [_0x322193,_0x567fe2]of Object['entries'](_0x294d67[_0x28c2e4(0x118)])){for(const _0x13ff44 of _0x567fe2['domains']??[]){const _0x2475e3=_0x5542ed[_0x28c2e4(0x11a)](originIdentity,_0x13ff44);if(_0x2475e3&&_0x2475e3===_0x563711)return _0x322193;}}return undefined;}export function matchAuthEnvironmentByHost(_0xf7f1aa,_0x22a3a9){const _0x230c03=_0x51a2,_0x365823={'fqiIX':function(_0x5cc929,_0x10e6b6){return _0x5cc929===_0x10e6b6;},'eZcRt':'localhost','shzyk':function(_0x3568be,_0x271336){return _0x3568be===_0x271336;}};if(!_0x22a3a9||!_0x22a3a9[_0x230c03(0x118)])return undefined;let _0x448fd3,_0x253593;try{const _0x2618a7=new URL(_0xf7f1aa);_0x448fd3=_0x2618a7[_0x230c03(0x12b)]+'//'+_0x2618a7[_0x230c03(0x122)],_0x253593=_0x2618a7['hostname'];}catch{return undefined;}if(_0x253593===_0x365823['eZcRt']||_0x253593==='127.0.0.1')return undefined;const _0x14414b=[];for(const [_0x4c8705,_0x4f923c]of Object['entries'](_0x22a3a9['environments'])){const _0x50e6e7=(_0x4f923c['domains']??[])[_0x230c03(0x124)](_0x1ad22b=>{const _0xfce3e3=_0x230c03;try{const _0x8131c0=new URL(_0x1ad22b);return _0x365823[_0xfce3e3(0x11d)](_0x8131c0['protocol']+'//'+_0x8131c0['hostname'],_0x448fd3);}catch{return![];}});if(_0x50e6e7)_0x14414b[_0x230c03(0x129)](_0x4c8705);}if(_0x365823[_0x230c03(0x126)](_0x14414b['length'],0x1))return{'key':_0x14414b[0x0]};if(_0x14414b[_0x230c03(0x120)]>0x1)return{'ambiguous':_0x14414b};return undefined;}function _0x37af(){const _0x16f629=['35TIOvZY','defaultEnvironmentKey','length','1754210ftKsiI','hostname','9914IVlTWA','some','649776aPSTkH','shzyk','host','625578moqzqu','push','9WUNOKe','protocol','54zKINhF','56780iOMmhf','zrXrf','jaJzJ','environments','6200eQtDJb','zFyni','key','574996ATkbvl','fqiIX'];_0x37af=function(){return _0x16f629;};return _0x37af();}export function matchAuthEnvironment(_0x11ba4c,_0x4827f9){const _0x4a3b6c=_0x51a2,_0x3d472f={'zrXrf':function(_0x583110,_0x4b799b,_0x469659){return _0x583110(_0x4b799b,_0x469659);},'qAwRJ':function(_0x2107ac,_0x3213c4){return _0x2107ac in _0x3213c4;},'jaJzJ':'ambiguous'};if(!_0x4827f9||!_0x4827f9['environments'])return undefined;const _0x3527bc=_0x3d472f[_0x4a3b6c(0x116)](matchAuthEnvironmentExact,_0x11ba4c,_0x4827f9);if(_0x3527bc)return _0x3527bc;const _0x305a50=matchAuthEnvironmentByHost(_0x11ba4c,_0x4827f9);if(_0x305a50&&_0x4a3b6c(0x11b)in _0x305a50)return _0x305a50[_0x4a3b6c(0x11b)];if(_0x305a50&&_0x3d472f['qAwRJ'](_0x3d472f[_0x4a3b6c(0x117)],_0x305a50))return undefined;if(needsTunnel(_0x11ba4c))return undefined;if(_0x4827f9['defaultEnvironmentKey']&&_0x4827f9['environments'][_0x4827f9['defaultEnvironmentKey']])return _0x4827f9[_0x4a3b6c(0x11f)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1f9abb,_0x4138a1){const _0x3b29cf=_0x3e87,_0x31b253=_0x1f9abb();while(!![]){try{const _0x2aa8d0=parseInt(_0x3b29cf(0x90))/0x1+parseInt(_0x3b29cf(0x94))/0x2*(parseInt(_0x3b29cf(0x97))/0x3)+parseInt(_0x3b29cf(0x74))/0x4+parseInt(_0x3b29cf(0x7d))/0x5+-parseInt(_0x3b29cf(0xa4))/0x6*(parseInt(_0x3b29cf(0x6f))/0x7)+parseInt(_0x3b29cf(0x7b))/0x8*(parseInt(_0x3b29cf(0x70))/0x9)+-parseInt(_0x3b29cf(0x86))/0xa;if(_0x2aa8d0===_0x4138a1)break;else _0x31b253['push'](_0x31b253['shift']());}catch(_0x8c059b){_0x31b253['push'](_0x31b253['shift']());}}}(_0x2902,0x87edb));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x3e87(_0x201beb,_0x8f2eb2){_0x201beb=_0x201beb-0x6c;const _0x290205=_0x2902();let _0x3e8787=_0x290205[_0x201beb];return _0x3e8787;}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x45a175){const _0x57f233=_0x3e87,_0x3b9c30={'PxXMq':function(_0x50d7fd,_0xbccfa9){return _0x50d7fd===_0xbccfa9;},'gPJBo':function(_0x269d50,_0x32d28c){return _0x269d50!==_0x32d28c;}};return _0x3b9c30['PxXMq'](typeof _0x45a175,_0x57f233(0x9a))&&_0x3b9c30['gPJBo'](_0x45a175,null);}function isImageBlock(_0x210543){const _0x281a7d={'RhwBs':'image'};return isRecord(_0x210543)&&_0x210543['type']===_0x281a7d['RhwBs'];}function isDataUrl(_0x32bd14){const _0x3b89ce=_0x3e87;return _0x32bd14['startsWith'](_0x3b89ce(0x78));}function parseDataUrl(_0x37b075){const _0x1b1f2a=_0x3e87,_0xc3b86={'zgRsl':function(_0xc5b373,_0x17326d){return _0xc5b373(_0x17326d);}},_0x3bc2a1=/^data:([^;]+);base64,(.+)$/['exec'](_0x37b075);if(!_0x3bc2a1)return null;const _0xc4e4cd=_0x3bc2a1[0x1][_0x1b1f2a(0x6d)]();if(!_0xc3b86['zgRsl'](isValidMediaType,_0xc4e4cd))return null;return{'data':_0x3bc2a1[0x2],'mediaType':_0xc4e4cd};}function isValidMediaType(_0x3df6d6){const _0x498fc3=_0x3e87,_0x4aff02={'jbXww':'image/jpeg'};return[_0x4aff02['jbXww'],_0x498fc3(0x9c),_0x498fc3(0x98),_0x498fc3(0x72)][_0x498fc3(0xa2)](_0x3df6d6);}function inferMediaType(_0x1a78e8,_0x2ea5a0){const _0x29facb=_0x3e87,_0x5d6bff={'SSxAm':'jpeg','DKPNP':'image/jpeg','GTWUP':_0x29facb(0x71)};if(_0x1a78e8){const _0x237dd3=_0x1a78e8[_0x29facb(0x6d)]()['split'](';')[0x0][_0x29facb(0x82)]();if(isValidMediaType(_0x237dd3))return _0x237dd3;}const _0x26f5b8=extname(_0x2ea5a0)[_0x29facb(0x6d)]()[_0x29facb(0x96)]('.','');switch(_0x26f5b8){case'jpg':case _0x5d6bff['SSxAm']:return _0x5d6bff[_0x29facb(0xa1)];case _0x29facb(0xaa):return'image/png';case _0x29facb(0x87):return'image/gif';case _0x5d6bff['GTWUP']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x4360de){const _0x54b4ff=_0x3e87,_0x67034d={'hdxvZ':function(_0x28bcc1,_0x417fa7){return _0x28bcc1(_0x417fa7);},'BBlrf':_0x54b4ff(0x77),'JBdrw':_0x54b4ff(0x8d),'bUBxr':function(_0x4092d2,_0x15bdd6){return _0x4092d2(_0x15bdd6);},'vhICg':function(_0x6bc0f6,_0x57b620,_0x26c31b){return _0x6bc0f6(_0x57b620,_0x26c31b);},'fmUWv':_0x54b4ff(0x76),'gdrDe':function(_0x2170a2,_0x3dfdfa){return _0x2170a2>_0x3dfdfa;},'RuJLm':_0x54b4ff(0x7e),'wrMnB':function(_0x41668a,_0x3deca2){return _0x41668a>_0x3deca2;},'QkKCi':'base64'};if(isDataUrl(_0x4360de)){const _0x119581=_0x67034d['hdxvZ'](parseDataUrl,_0x4360de);if(_0x119581)return _0x119581;throw new Error(_0x67034d[_0x54b4ff(0xa3)]);}if(_0x4360de[_0x54b4ff(0x6e)](_0x67034d[_0x54b4ff(0x80)])){const _0x48953b=fileURLToPath(_0x4360de),_0x5f24eb=await stat(_0x48953b);if(_0x5f24eb[_0x54b4ff(0x7c)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x1bc601=await _0x67034d[_0x54b4ff(0xa9)](readFile,_0x48953b);return{'data':_0x1bc601[_0x54b4ff(0x6c)]('base64'),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x48953b)};}if(_0x4360de[_0x54b4ff(0x6e)]('http://')||_0x4360de[_0x54b4ff(0x6e)](_0x54b4ff(0x8e))){const _0x3e39c7=await _0x67034d[_0x54b4ff(0x81)](fetch,_0x4360de,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3e39c7['ok'])throw new Error(_0x54b4ff(0x9b)+_0x3e39c7[_0x54b4ff(0x9e)]);const _0x5a441a=_0x3e39c7[_0x54b4ff(0xa8)][_0x54b4ff(0x93)](_0x67034d['fmUWv']);if(_0x5a441a){const _0x24a9e5=Number(_0x5a441a);if(!Number['isNaN'](_0x24a9e5)&&_0x24a9e5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ef372=await _0x3e39c7['arrayBuffer']();if(_0x67034d['gdrDe'](_0x2ef372[_0x54b4ff(0x79)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));return{'data':Buffer[_0x54b4ff(0x8a)](_0x2ef372)[_0x54b4ff(0x6c)]('base64'),'mediaType':inferMediaType(_0x3e39c7['headers'][_0x54b4ff(0x93)](_0x67034d[_0x54b4ff(0x8f)]),_0x4360de)};}const _0x288940=await stat(_0x4360de);if(_0x67034d[_0x54b4ff(0x8c)](_0x288940['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x247d8c=await _0x67034d[_0x54b4ff(0x83)](readFile,_0x4360de);return{'data':_0x247d8c[_0x54b4ff(0x6c)](_0x67034d[_0x54b4ff(0x84)]),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x4360de)};}async function convertImageBlockToBase64(_0x53749a){const _0x3c4827=_0x3e87,_0x172c97={'xZUao':_0x3c4827(0xa6)};if(_0x53749a['source']?.[_0x3c4827(0x85)]===_0x172c97[_0x3c4827(0x88)])return{'updated':![],'block':_0x53749a};if(_0x53749a['data']&&_0x53749a[_0x3c4827(0xa5)])return{'updated':![],'block':_0x53749a};const _0x33ec04=_0x53749a[_0x3c4827(0x99)]?.['url']??_0x53749a[_0x3c4827(0x9d)];if(!_0x33ec04)return{'updated':![],'block':_0x53749a};const _0x29d7c=await readImageFromUrl(_0x33ec04);return{'updated':!![],'block':{..._0x53749a,'source':{'type':_0x172c97[_0x3c4827(0x88)],'media_type':_0x29d7c['mediaType'],'data':_0x29d7c['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2509db){const _0x3525d9={'tVCjr':function(_0x15b7a4,_0x4e2024){return _0x15b7a4(_0x4e2024);},'mPDtV':function(_0x5c7757,_0x5907dd){return _0x5c7757(_0x5907dd);}};if(!_0x3525d9['mPDtV'](isRecord,_0x2509db))return{'updated':![],'output':_0x2509db};const _0x3fac5b=_0x2509db['content'];if(!Array['isArray'](_0x3fac5b))return{'updated':![],'output':_0x2509db};let _0x2f8fd2=![];const _0x2dabc6=await Promise['all'](_0x3fac5b['map'](async _0x31b32c=>{const _0x4bbf1d=_0x3e87;if(!_0x3525d9[_0x4bbf1d(0xa0)](isImageBlock,_0x31b32c))return _0x31b32c;try{const _0x5645c1=await _0x3525d9[_0x4bbf1d(0x92)](convertImageBlockToBase64,_0x31b32c);if(_0x5645c1['updated'])_0x2f8fd2=!![];return _0x5645c1['block'];}catch{return _0x31b32c;}}));if(!_0x2f8fd2)return{'updated':![],'output':_0x2509db};return{'updated':!![],'output':{..._0x2509db,'content':_0x2dabc6}};}function sanitizeLoneSurrogates(_0x35bc11){const _0x274748=_0x3e87,_0x542618={'NQLQx':function(_0x4f6b96,_0x15a4c5){return _0x4f6b96>=_0x15a4c5;},'RziUA':function(_0x213965,_0x180108){return _0x213965>=_0x180108;},'aztTk':function(_0x4c19f2,_0x2a3e60){return _0x4c19f2<=_0x2a3e60;},'AgiPx':function(_0x5f963f,_0x26c412){return _0x5f963f+_0x26c412;},'GFThH':function(_0x2d1e01,_0x4a17f5){return _0x2d1e01<=_0x4a17f5;}};let _0x1c1e8e=![],_0x31da02='';for(let _0x9461bf=0x0;_0x9461bf<_0x35bc11['length'];_0x9461bf+=0x1){const _0x5ddbc2=_0x35bc11['charCodeAt'](_0x9461bf);if(_0x542618['NQLQx'](_0x5ddbc2,0xd800)&&_0x5ddbc2<=0xdbff){const _0x48b9d0=_0x35bc11['charCodeAt'](_0x9461bf+0x1);if(_0x542618['RziUA'](_0x48b9d0,0xdc00)&&_0x542618['aztTk'](_0x48b9d0,0xdfff)){_0x31da02+=_0x542618[_0x274748(0x7a)](_0x35bc11[_0x9461bf],_0x35bc11[_0x9461bf+0x1]),_0x9461bf+=0x1;continue;}_0x1c1e8e=!![],_0x31da02+='�';continue;}if(_0x5ddbc2>=0xdc00&&_0x542618['GFThH'](_0x5ddbc2,0xdfff)){_0x1c1e8e=!![],_0x31da02+='�';continue;}_0x31da02+=_0x35bc11[_0x9461bf];}return _0x1c1e8e?{'updated':_0x1c1e8e,'value':_0x31da02}:{'updated':_0x1c1e8e,'value':_0x35bc11};}function sanitizeLoneSurrogatesDeep(_0x185bcc){const _0x329079=_0x3e87,_0x410de8={'pYznR':function(_0x287e20,_0x3eac08){return _0x287e20(_0x3eac08);},'WXkDw':'string'};if(typeof _0x185bcc===_0x410de8['WXkDw'])return sanitizeLoneSurrogates(_0x185bcc);if(Array['isArray'](_0x185bcc)){let _0x148042=![];const _0x1c96fa=_0x185bcc['map'](_0x51f9b4=>{const _0x37779c=_0x3e87,_0xc0c6c3=_0x410de8[_0x37779c(0xa7)](sanitizeLoneSurrogatesDeep,_0x51f9b4);return _0xc0c6c3['updated']&&(_0x148042=!![]),_0xc0c6c3['value'];});return _0x148042?{'updated':!![],'value':_0x1c96fa}:{'updated':![],'value':_0x185bcc};}if(!isRecord(_0x185bcc))return{'updated':![],'value':_0x185bcc};let _0x4d0354=![];const _0x17da7c=Object[_0x329079(0x95)](_0x185bcc)[_0x329079(0x75)](([_0xbae591,_0x681d81])=>{const _0x452e4b=_0x329079,_0x562ce2=_0x410de8[_0x452e4b(0xa7)](sanitizeLoneSurrogatesDeep,_0x681d81);return _0x562ce2['updated']&&(_0x4d0354=!![]),[_0xbae591,_0x562ce2[_0x452e4b(0x7f)]];});return _0x4d0354?{'updated':!![],'value':Object[_0x329079(0x9f)](_0x17da7c)}:{'updated':![],'value':_0x185bcc};}export function createMcpImageBase64Hook(){const _0x46779d={'qNJJQ':'PostToolUse','QGIsz':function(_0x28cb26,_0x2b897b){return _0x28cb26(_0x2b897b);}};return async _0x314bd3=>{const _0x59fe2d=_0x3e87;if(_0x314bd3['hook_event_name']!==_0x46779d['qNJJQ'])return{};const _0x1cd945=_0x314bd3,_0x286665=await _0x46779d[_0x59fe2d(0x8b)](convertToolOutputImagesToBase64,_0x1cd945['tool_response']),_0x47ce86=_0x46779d['QGIsz'](sanitizeLoneSurrogatesDeep,_0x286665['output']),_0xba15ae=_0x286665[_0x59fe2d(0x91)]||_0x47ce86['updated'];if(!_0xba15ae)return{};return{'hookSpecificOutput':{'hookEventName':_0x59fe2d(0x73),'updatedMCPToolOutput':_0x47ce86[_0x59fe2d(0x7f)]}};};}function _0x2902(){const _0x17ed8a=['toLowerCase','startsWith','63UNjODH','270NCgDQG','webp','image/webp','PostToolUse','2253524jrvoDM','map','content-length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','data:','byteLength','AgiPx','168096txwhBG','size','88310fepZhc','content-type','value','JBdrw','vhICg','trim','hdxvZ','QkKCi','type','10199490WBTfom','gif','xZUao','Image\x20exceeds\x20size\x20limit\x20(','from','QGIsz','wrMnB','file://','https://','RuJLm','138747sQVKOx','updated','mPDtV','get','92qNCdkY','entries','replace','41163nlskei','image/gif','source','object','Failed\x20to\x20fetch\x20image:\x20','image/png','url','status','fromEntries','tVCjr','DKPNP','includes','BBlrf','269736kCupZq','mimeType','base64','pYznR','headers','bUBxr','png','\x20bytes)','toString'];_0x2902=function(){return _0x17ed8a;};return _0x2902();}
|
|
1
|
+
(function(_0x38d5e3,_0x17c50c){const _0x41f4f0=_0x58fd,_0x5132b9=_0x38d5e3();while(!![]){try{const _0x2201b8=-parseInt(_0x41f4f0(0x1fa))/0x1*(parseInt(_0x41f4f0(0x202))/0x2)+-parseInt(_0x41f4f0(0x1fc))/0x3*(-parseInt(_0x41f4f0(0x1c0))/0x4)+parseInt(_0x41f4f0(0x1d7))/0x5+parseInt(_0x41f4f0(0x1c7))/0x6*(parseInt(_0x41f4f0(0x1cf))/0x7)+parseInt(_0x41f4f0(0x1f1))/0x8+-parseInt(_0x41f4f0(0x1f0))/0x9*(parseInt(_0x41f4f0(0x1db))/0xa)+-parseInt(_0x41f4f0(0x1ec))/0xb*(parseInt(_0x41f4f0(0x1d9))/0xc);if(_0x2201b8===_0x17c50c)break;else _0x5132b9['push'](_0x5132b9['shift']());}catch(_0x545c51){_0x5132b9['push'](_0x5132b9['shift']());}}}(_0x1471,0xbc074));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(_0x3462d8){const _0x3e42fe=_0x58fd,_0x2fd5b1={'twXdL':function(_0x15e8ed,_0x658322){return _0x15e8ed===_0x658322;}};return _0x2fd5b1['twXdL'](typeof _0x3462d8,_0x3e42fe(0x1c4))&&_0x3462d8!==null;}function isImageBlock(_0x919eaf){const _0x58085a=_0x58fd,_0x5a1824={'WoEKz':function(_0x8f5e5f,_0x1bfbf4){return _0x8f5e5f===_0x1bfbf4;},'XYtBM':_0x58085a(0x1e8)};return isRecord(_0x919eaf)&&_0x5a1824['WoEKz'](_0x919eaf['type'],_0x5a1824[_0x58085a(0x1d5)]);}function isDataUrl(_0x3337ea){const _0xd749f4=_0x58fd;return _0x3337ea['startsWith'](_0xd749f4(0x1c6));}function parseDataUrl(_0x48df8d){const _0x377788=_0x58fd,_0x19e574={'atBDJ':function(_0x517653,_0x964ed9){return _0x517653(_0x964ed9);}},_0x57374b=/^data:([^;]+);base64,(.+)$/[_0x377788(0x1da)](_0x48df8d);if(!_0x57374b)return null;const _0x5e6a92=_0x57374b[0x1]['toLowerCase']();if(!_0x19e574[_0x377788(0x1d8)](isValidMediaType,_0x5e6a92))return null;return{'data':_0x57374b[0x2],'mediaType':_0x5e6a92};}function _0x1471(){const _0x3c7727=['block','updated','25468817SCUkvc','url','image/jpeg','startsWith','36sYmhtq','5647032KYQppU','source','string','VSYMm','HgXgu','charCodeAt','base64','NBODZ','jpeg','5MeocMr','content-length','5442YqtxBn','value','map','nxuHo','isArray','headers','98164UmOcJr','length','WJbsV','toLowerCase','2460ATVHUQ','Image\x20exceeds\x20size\x20limit\x20(','data','bDXWP','object','yOJkQ','data:','4308384crpeTv','jpg','arrayBuffer','fBloz','mimeType','byteLength','dKCLi','rJCpG','14UAylcA','image/webp','image/gif','type','STZWm','image/png','XYtBM','WqKUF','7042380GPpGQu','atBDJ','12pOrcCz','exec','3337930PWDboH','pmBiE','trim','RVJFR','tool_response','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','content-type','split','get','yJJVI','status','replace','entries','image','ccBtE'];_0x1471=function(){return _0x3c7727;};return _0x1471();}function isValidMediaType(_0x531ca6){const _0x15f87a=_0x58fd,_0x494546={'TsaHJ':'image/jpeg','KEKnr':_0x15f87a(0x1d4),'nxuHo':_0x15f87a(0x1d1),'IYTjp':'image/webp'};return[_0x494546['TsaHJ'],_0x494546['KEKnr'],_0x494546[_0x15f87a(0x1ff)],_0x494546['IYTjp']]['includes'](_0x531ca6);}function inferMediaType(_0x573f58,_0x109681){const _0x36ee32=_0x58fd,_0x3da1c7={'bDXWP':function(_0x436529,_0x49bf57){return _0x436529(_0x49bf57);},'dbIgL':_0x36ee32(0x1c8),'JTwiJ':_0x36ee32(0x1ee),'wjGuv':_0x36ee32(0x1d4),'NBODZ':'gif','dKCLi':'image/gif'};if(_0x573f58){const _0x28d42d=_0x573f58[_0x36ee32(0x1bf)]()[_0x36ee32(0x1e2)](';')[0x0][_0x36ee32(0x1dd)]();if(isValidMediaType(_0x28d42d))return _0x28d42d;}const _0x4fa012=_0x3da1c7[_0x36ee32(0x1c3)](extname,_0x109681)[_0x36ee32(0x1bf)]()[_0x36ee32(0x1e6)]('.','');switch(_0x4fa012){case _0x3da1c7['dbIgL']:case _0x36ee32(0x1f9):return _0x3da1c7['JTwiJ'];case'png':return _0x3da1c7['wjGuv'];case _0x3da1c7[_0x36ee32(0x1f8)]:return _0x3da1c7[_0x36ee32(0x1cd)];case'webp':return _0x36ee32(0x1d0);default:return _0x3da1c7['wjGuv'];}}async function readImageFromUrl(_0x486f3d){const _0x2a6c22=_0x58fd,_0x551c01={'rJCpG':function(_0x5c6edd,_0x7c7c6a){return _0x5c6edd(_0x7c7c6a);},'WJbsV':function(_0x4f828c,_0x1fc01b){return _0x4f828c(_0x1fc01b);},'CSAHd':_0x2a6c22(0x1e0),'yOJkQ':_0x2a6c22(0x1f7),'sVyTX':function(_0x5cf3a9,_0x451fd9,_0x196411){return _0x5cf3a9(_0x451fd9,_0x196411);},'sBPqQ':'http://','aOwHR':'https://','yJJVI':function(_0x2ef8a1,_0x208392){return _0x2ef8a1>_0x208392;},'pmBiE':function(_0x1bf939,_0x40f0ee){return _0x1bf939(_0x40f0ee);}};if(_0x551c01[_0x2a6c22(0x1ce)](isDataUrl,_0x486f3d)){const _0x2d54ed=_0x551c01[_0x2a6c22(0x1be)](parseDataUrl,_0x486f3d);if(_0x2d54ed)return _0x2d54ed;throw new Error(_0x551c01['CSAHd']);}if(_0x486f3d[_0x2a6c22(0x1ef)]('file://')){const _0x40907c=fileURLToPath(_0x486f3d),_0x29ac85=await stat(_0x40907c);if(_0x29ac85['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x2b8da0=await readFile(_0x40907c);return{'data':_0x2b8da0['toString'](_0x551c01['yOJkQ']),'mediaType':_0x551c01['sVyTX'](inferMediaType,null,_0x40907c)};}if(_0x486f3d['startsWith'](_0x551c01['sBPqQ'])||_0x486f3d[_0x2a6c22(0x1ef)](_0x551c01['aOwHR'])){const _0x4fbbaa=await _0x551c01['sVyTX'](fetch,_0x486f3d,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x4fbbaa['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x4fbbaa[_0x2a6c22(0x1e5)]);const _0x30b403=_0x4fbbaa['headers'][_0x2a6c22(0x1e3)](_0x2a6c22(0x1fb));if(_0x30b403){const _0x3b7630=Number(_0x30b403);if(!Number['isNaN'](_0x3b7630)&&_0x551c01[_0x2a6c22(0x1e4)](_0x3b7630,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2a6c22(0x1c1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0xeb924f=await _0x4fbbaa[_0x2a6c22(0x1c9)]();if(_0xeb924f[_0x2a6c22(0x1cc)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0xeb924f)['toString'](_0x551c01['yOJkQ']),'mediaType':inferMediaType(_0x4fbbaa[_0x2a6c22(0x201)]['get'](_0x2a6c22(0x1e1)),_0x486f3d)};}const _0x20fda1=await _0x551c01[_0x2a6c22(0x1dc)](stat,_0x486f3d);if(_0x551c01['yJJVI'](_0x20fda1['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x47f1c4=await _0x551c01[_0x2a6c22(0x1ce)](readFile,_0x486f3d);return{'data':_0x47f1c4['toString'](_0x551c01[_0x2a6c22(0x1c5)]),'mediaType':inferMediaType(null,_0x486f3d)};}function _0x58fd(_0x3b157d,_0x8ca977){_0x3b157d=_0x3b157d-0x1bd;const _0x14717b=_0x1471();let _0x58fd95=_0x14717b[_0x3b157d];return _0x58fd95;}async function convertImageBlockToBase64(_0xe2e512){const _0x410536=_0x58fd,_0x28ef62={'qwokD':function(_0x7907f6,_0x1cb88d){return _0x7907f6===_0x1cb88d;},'ccBtE':function(_0x1c3da8,_0x1a093c){return _0x1c3da8(_0x1a093c);}};if(_0x28ef62['qwokD'](_0xe2e512['source']?.[_0x410536(0x1d2)],'base64'))return{'updated':![],'block':_0xe2e512};if(_0xe2e512[_0x410536(0x1c2)]&&_0xe2e512[_0x410536(0x1cb)])return{'updated':![],'block':_0xe2e512};const _0x28d59d=_0xe2e512[_0x410536(0x1f2)]?.['url']??_0xe2e512[_0x410536(0x1ed)];if(!_0x28d59d)return{'updated':![],'block':_0xe2e512};const _0x5d36bd=await _0x28ef62[_0x410536(0x1e9)](readImageFromUrl,_0x28d59d);return{'updated':!![],'block':{..._0xe2e512,'source':{'type':_0x410536(0x1f7),'media_type':_0x5d36bd['mediaType'],'data':_0x5d36bd[_0x410536(0x1c2)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x5990fc){const _0x4c9b2c=_0x58fd,_0x4e442d={'RVJFR':function(_0x26b763,_0x4db2b3){return _0x26b763(_0x4db2b3);}};if(!_0x4e442d[_0x4c9b2c(0x1de)](isRecord,_0x5990fc))return{'updated':![],'output':_0x5990fc};const _0x262ae4=_0x5990fc['content'];if(!Array[_0x4c9b2c(0x200)](_0x262ae4))return{'updated':![],'output':_0x5990fc};let _0x449abd=![];const _0xc60492=await Promise['all'](_0x262ae4[_0x4c9b2c(0x1fe)](async _0x37bd4d=>{const _0xfa388f=_0x4c9b2c;if(!isImageBlock(_0x37bd4d))return _0x37bd4d;try{const _0x337b14=await convertImageBlockToBase64(_0x37bd4d);if(_0x337b14[_0xfa388f(0x1eb)])_0x449abd=!![];return _0x337b14[_0xfa388f(0x1ea)];}catch{return _0x37bd4d;}}));if(!_0x449abd)return{'updated':![],'output':_0x5990fc};return{'updated':!![],'output':{..._0x5990fc,'content':_0xc60492}};}function sanitizeLoneSurrogates(_0x1a8e4c){const _0x1ed4b0=_0x58fd,_0x1a9dcb={'fBloz':function(_0xe4ed90,_0x1b7d5c){return _0xe4ed90<_0x1b7d5c;},'STZWm':function(_0x17470b,_0x5c47d0){return _0x17470b>=_0x5c47d0;},'WqKUF':function(_0x432685,_0xe4021a){return _0x432685<=_0xe4021a;}};let _0x46e3ce=![],_0x424a93='';for(let _0x6b3ac5=0x0;_0x1a9dcb[_0x1ed4b0(0x1ca)](_0x6b3ac5,_0x1a8e4c[_0x1ed4b0(0x1bd)]);_0x6b3ac5+=0x1){const _0x3803ff=_0x1a8e4c[_0x1ed4b0(0x1f6)](_0x6b3ac5);if(_0x3803ff>=0xd800&&_0x3803ff<=0xdbff){const _0x2f0b13=_0x1a8e4c[_0x1ed4b0(0x1f6)](_0x6b3ac5+0x1);if(_0x1a9dcb[_0x1ed4b0(0x1d3)](_0x2f0b13,0xdc00)&&_0x1a9dcb[_0x1ed4b0(0x1d6)](_0x2f0b13,0xdfff)){_0x424a93+=_0x1a8e4c[_0x6b3ac5]+_0x1a8e4c[_0x6b3ac5+0x1],_0x6b3ac5+=0x1;continue;}_0x46e3ce=!![],_0x424a93+='�';continue;}if(_0x3803ff>=0xdc00&&_0x3803ff<=0xdfff){_0x46e3ce=!![],_0x424a93+='�';continue;}_0x424a93+=_0x1a8e4c[_0x6b3ac5];}return _0x46e3ce?{'updated':_0x46e3ce,'value':_0x424a93}:{'updated':_0x46e3ce,'value':_0x1a8e4c};}function sanitizeLoneSurrogatesDeep(_0x6238e5){const _0x504b7d=_0x58fd,_0x1acd7e={'FQRUz':function(_0x10aa73,_0x5ced1b){return _0x10aa73(_0x5ced1b);},'CWKDl':function(_0x14f783,_0x5c2454){return _0x14f783===_0x5c2454;},'Wgnul':_0x504b7d(0x1f3),'VSYMm':function(_0x4b1bb5,_0x7c675c){return _0x4b1bb5(_0x7c675c);}};if(_0x1acd7e['CWKDl'](typeof _0x6238e5,_0x1acd7e['Wgnul']))return _0x1acd7e[_0x504b7d(0x1f4)](sanitizeLoneSurrogates,_0x6238e5);if(Array[_0x504b7d(0x200)](_0x6238e5)){let _0x3990b8=![];const _0x3d4c54=_0x6238e5['map'](_0x52f979=>{const _0x442cf0=_0x504b7d,_0x1318b3=sanitizeLoneSurrogatesDeep(_0x52f979);return _0x1318b3[_0x442cf0(0x1eb)]&&(_0x3990b8=!![]),_0x1318b3[_0x442cf0(0x1fd)];});return _0x3990b8?{'updated':!![],'value':_0x3d4c54}:{'updated':![],'value':_0x6238e5};}if(!isRecord(_0x6238e5))return{'updated':![],'value':_0x6238e5};let _0x10db65=![];const _0x1cfdf6=Object[_0x504b7d(0x1e7)](_0x6238e5)['map'](([_0x59f598,_0x2e6b74])=>{const _0x1a4196=_0x1acd7e['FQRUz'](sanitizeLoneSurrogatesDeep,_0x2e6b74);return _0x1a4196['updated']&&(_0x10db65=!![]),[_0x59f598,_0x1a4196['value']];});return _0x10db65?{'updated':!![],'value':Object['fromEntries'](_0x1cfdf6)}:{'updated':![],'value':_0x6238e5};}export function createMcpImageBase64Hook(){const _0x3ec328={'LOjki':function(_0x4b1d84,_0x1099b7){return _0x4b1d84!==_0x1099b7;},'HgXgu':function(_0x3daf06,_0x19a471){return _0x3daf06(_0x19a471);}};return async _0x41b71c=>{const _0x1581da=_0x58fd;if(_0x3ec328['LOjki'](_0x41b71c['hook_event_name'],'PostToolUse'))return{};const _0x3d2663=_0x41b71c,_0x2251c3=await _0x3ec328['HgXgu'](convertToolOutputImagesToBase64,_0x3d2663[_0x1581da(0x1df)]),_0xffcfd3=_0x3ec328[_0x1581da(0x1f5)](sanitizeLoneSurrogatesDeep,_0x2251c3['output']),_0x502f97=_0x2251c3['updated']||_0xffcfd3['updated'];if(!_0x502f97)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0xffcfd3[_0x1581da(0x1fd)]}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5c00(_0xcea35f,_0x5ae748){_0xcea35f=_0xcea35f-0xf9;const _0x1a2492=_0x1a24();let _0x5c001c=_0x1a2492[_0xcea35f];return _0x5c001c;}const _0x446268=_0x5c00;(function(_0x5b6f0c,_0x278c48){const _0x1a94fa=_0x5c00,_0x475778=_0x5b6f0c();while(!![]){try{const _0x4c4be3=parseInt(_0x1a94fa(0xf9))/0x1+parseInt(_0x1a94fa(0xff))/0x2*(parseInt(_0x1a94fa(0x100))/0x3)+parseInt(_0x1a94fa(0xfb))/0x4*(-parseInt(_0x1a94fa(0x104))/0x5)+parseInt(_0x1a94fa(0x103))/0x6+-parseInt(_0x1a94fa(0xfa))/0x7+-parseInt(_0x1a94fa(0x102))/0x8+parseInt(_0x1a94fa(0xfe))/0x9*(parseInt(_0x1a94fa(0xfd))/0xa);if(_0x4c4be3===_0x278c48)break;else _0x475778['push'](_0x475778['shift']());}catch(_0x259ac4){_0x475778['push'](_0x475778['shift']());}}}(_0x1a24,0x830c2));const VERIFY_MODEL_ALIASES={'opus':_0x446268(0xfc),'sonnet':'claude-sonnet-4-6'};function _0x1a24(){const _0x2ddf30=['1738085CkasVH','880566XjleOB','2243556MJCxaJ','8BkieXh','claude-opus-4-6','5134300fqNKQI','9iyCnZr','27662oNyCAY','51zefCYs','trim','4901072uZlqaz','3216138sZxWRi'];_0x1a24=function(){return _0x2ddf30;};return _0x1a24();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x19cb3f){const _0x5a4680=_0x446268;if(!_0x19cb3f)return undefined;const _0x4ebd06=_0x19cb3f[_0x5a4680(0x101)]();if(!_0x4ebd06)return undefined;const _0x4ca42d=VERIFY_MODEL_ALIASES[_0x4ebd06['toLowerCase']()];return _0x4ca42d??_0x4ebd06;}
|