@ranger-testing/ranger-cli 3.0.1-alpha.ffffb5b-28 → 3.1.1-alpha.08fb70e-39
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 -0
- 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 -0
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -0
- 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 -0
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5a16(_0x12de3e,_0x3e2f99){_0x12de3e=_0x12de3e-0x65;const _0x82b25=_0x82b2();let _0x5a165e=_0x82b25[_0x12de3e];return _0x5a165e;}const _0x7f3170=_0x5a16;(function(_0x5a96d4,_0x3bfb78){const _0x2758f=_0x5a16,_0x4159c4=_0x5a96d4();while(!![]){try{const _0x1c5c35=parseInt(_0x2758f(0x93))/0x1*(-parseInt(_0x2758f(0x8e))/0x2)+-parseInt(_0x2758f(0x9a))/0x3+-parseInt(_0x2758f(0x7c))/0x4+-parseInt(_0x2758f(0x6b))/0x5+-parseInt(_0x2758f(0x76))/0x6+-parseInt(_0x2758f(0x7a))/0x7+parseInt(_0x2758f(0x81))/0x8*(parseInt(_0x2758f(0x7d))/0x9);if(_0x1c5c35===_0x3bfb78)break;else _0x4159c4['push'](_0x4159c4['shift']());}catch(_0x53fe89){_0x4159c4['push'](_0x4159c4['shift']());}}}(_0x82b2,0x749bf));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(_0x26d9aa,_0x5bbf65){const _0x5f199b=_0x5a16,_0x56ec24={'ZpYRh':function(_0x5566cd,_0x6db2d1){return _0x5566cd>=_0x6db2d1;},'IpWLA':function(_0x2afb8f,_0x4b3903){return _0x2afb8f&_0x4b3903;},'RowAk':function(_0x3be7cb,_0x3a9d24){return _0x3be7cb-_0x3a9d24;},'FTcis':function(_0x37c03f,_0x1330da){return _0x37c03f<_0x1330da;},'jNdKx':function(_0x29a3e4,_0x5e3764){return _0x29a3e4+_0x5e3764;},'ttzEQ':function(_0x530351,_0x3840d2){return _0x530351+_0x3840d2;}};if(_0x56ec24['ZpYRh'](_0x5bbf65,_0x26d9aa['length']))return[0x0,0x0];const _0x512476=_0x26d9aa[_0x5bbf65];let _0x5e3603=0x1,_0xd936dc=0x80;while(_0x5e3603<=0x8&&!(_0x512476&_0xd936dc)){_0x5e3603++,_0xd936dc>>=0x1;}if(_0x5bbf65+_0x5e3603>_0x26d9aa['length'])return[0x0,0x0];let _0x1ef0ae=_0x56ec24['IpWLA'](_0x512476,_0x56ec24[_0x5f199b(0x66)](_0xd936dc,0x1));for(let _0x266e9e=0x1;_0x56ec24['FTcis'](_0x266e9e,_0x5e3603);_0x266e9e++){_0x1ef0ae=_0x56ec24['jNdKx'](_0x1ef0ae*0x100,_0x26d9aa[_0x56ec24[_0x5f199b(0x65)](_0x5bbf65,_0x266e9e)]);}return[_0x1ef0ae,_0x5e3603];}function readId(_0x3671b6,_0x3cb3a5){const _0x1c5445=_0x5a16,_0xf235bd={'nwtMr':function(_0x368bf5,_0x173716){return _0x368bf5>=_0x173716;},'PKHlP':function(_0x26acfc,_0x39a362){return _0x26acfc+_0x39a362;},'sUykQ':function(_0x5076ac,_0x298d9e){return _0x5076ac*_0x298d9e;}};if(_0x3cb3a5>=_0x3671b6[_0x1c5445(0xab)])return[0x0,0x0];const _0x52acc2=_0x3671b6[_0x3cb3a5];let _0x41d9e5;if(_0xf235bd[_0x1c5445(0x94)](_0x52acc2,0x80))_0x41d9e5=0x1;else{if(_0xf235bd['nwtMr'](_0x52acc2,0x40))_0x41d9e5=0x2;else{if(_0x52acc2>=0x20)_0x41d9e5=0x3;else{if(_0x52acc2>=0x10)_0x41d9e5=0x4;else return[_0x52acc2,0x1];}}}if(_0x3cb3a5+_0x41d9e5>_0x3671b6[_0x1c5445(0xab)])return[0x0,0x0];let _0x4badf5=0x0;for(let _0x23c557=0x0;_0x23c557<_0x41d9e5;_0x23c557++){_0x4badf5=_0xf235bd['PKHlP'](_0xf235bd[_0x1c5445(0x79)](_0x4badf5,0x100),_0x3671b6[_0x3cb3a5+_0x23c557]);}return[_0x4badf5,_0x41d9e5];}function readUint(_0x163ad8,_0x9ada75,_0x9d766f){const _0x4cee66={'idJOq':function(_0x37fe1d,_0x22ae91){return _0x37fe1d<_0x22ae91;}};let _0x1b16ec=0x0;for(let _0x120b9a=0x0;_0x4cee66['idJOq'](_0x120b9a,_0x9d766f);_0x120b9a++){_0x1b16ec=_0x1b16ec*0x100+_0x163ad8[_0x9ada75+_0x120b9a];}return _0x1b16ec;}function isUnknownSize(_0x164422,_0x35081a){const _0x51fc79=_0x5a16,_0x5e3b57={'dzrzQ':function(_0x4a5e33,_0x4bf932){return _0x4a5e33===_0x4bf932;}};return _0x5e3b57[_0x51fc79(0x89)](_0x164422,Math[_0x51fc79(0x88)](0x2,0x7*_0x35081a)-0x1);}function writeId(_0x420bc5){const _0x5b212c=_0x5a16,_0x59ce93={'TAoSg':function(_0x2aae38,_0x561264){return _0x2aae38<=_0x561264;},'cWvbF':function(_0x46cb76,_0x476a81){return _0x46cb76&_0x476a81;},'Pknrn':function(_0x545c50,_0xffa607){return _0x545c50>>_0xffa607;},'pjcin':function(_0x4a3065,_0x3629e9){return _0x4a3065&_0x3629e9;},'yDLXo':function(_0xb47430,_0x4d756c){return _0xb47430&_0x4d756c;},'WRSFi':function(_0x8fce19,_0x30e858){return _0x8fce19>>_0x30e858;}};if(_0x59ce93['TAoSg'](_0x420bc5,0xff))return Buffer[_0x5b212c(0x92)]([_0x420bc5]);if(_0x420bc5<=0xffff)return Buffer['from']([_0x59ce93['cWvbF'](_0x420bc5>>0x8,0xff),_0x420bc5&0xff]);if(_0x420bc5<=0xffffff)return Buffer['from']([_0x59ce93['cWvbF'](_0x420bc5>>0x10,0xff),_0x59ce93[_0x5b212c(0xa6)](_0x59ce93[_0x5b212c(0x86)](_0x420bc5,0x8),0xff),_0x59ce93[_0x5b212c(0x9f)](_0x420bc5,0xff)]);return Buffer['from']([_0x59ce93['yDLXo'](_0x59ce93['Pknrn'](_0x420bc5,0x18),0xff),_0x59ce93['Pknrn'](_0x420bc5,0x10)&0xff,_0x59ce93['cWvbF'](_0x59ce93['WRSFi'](_0x420bc5,0x8),0xff),_0x420bc5&0xff]);}function writeVint(_0x187bb4,_0x3fc523){const _0xc0c90f=_0x5a16,_0x4845b5={'MYbOK':function(_0x511514,_0x9c2ba){return _0x511514||_0x9c2ba;},'HnWyD':function(_0x4e9722,_0x42e2a6){return _0x4e9722<_0x42e2a6;},'VpdoS':function(_0x31c95c,_0x25d4c7){return _0x31c95c-_0x25d4c7;},'WLCko':function(_0x5a44d2,_0x24a5c2){return _0x5a44d2-_0x24a5c2;},'lcnTY':function(_0x2af771,_0x48b314){return _0x2af771>=_0x48b314;},'YOpFJ':function(_0x532551,_0x309b78){return _0x532551<<_0x309b78;}};let _0x257597=_0x4845b5[_0xc0c90f(0xa5)](_0x3fc523,0x1);while(_0x4845b5[_0xc0c90f(0x99)](_0x4845b5[_0xc0c90f(0xa4)](Math['pow'](0x2,0x7*_0x257597),0x2),_0x187bb4))_0x257597++;const _0x2dd26e=Buffer[_0xc0c90f(0xa3)](_0x257597);for(let _0x23e0ef=_0x4845b5[_0xc0c90f(0x7b)](_0x257597,0x1);_0x4845b5[_0xc0c90f(0x87)](_0x23e0ef,0x0);_0x23e0ef--){_0x2dd26e[_0x23e0ef]=_0x187bb4&0xff,_0x187bb4=Math[_0xc0c90f(0xa8)](_0x187bb4/0x100);}return _0x2dd26e[0x0]|=_0x4845b5[_0xc0c90f(0xa7)](0x1,_0x4845b5['VpdoS'](0x8,_0x257597)),_0x2dd26e;}function writeFloat64(_0x548772){const _0x35a090=Buffer['alloc'](0x8);return _0x35a090['writeDoubleBE'](_0x548772,0x0),_0x35a090;}function writeVoid(_0x2a8778){const _0x25946e=_0x5a16,_0x3f10c7={'ZJjPD':function(_0x3a4cd5,_0x170711){return _0x3a4cd5<=_0x170711;},'bdWWA':function(_0xfcb3ab,_0x1b9f4f){return _0xfcb3ab-_0x1b9f4f;},'CVDZV':function(_0x22669f,_0x410240){return _0x22669f*_0x410240;}};for(let _0x48d717=0x1;_0x3f10c7[_0x25946e(0xaa)](_0x48d717,0x8);_0x48d717++){const _0xc68129=_0x3f10c7['bdWWA'](_0x2a8778-0x1,_0x48d717);if(_0xc68129>=0x0&&_0xc68129<=_0x3f10c7['bdWWA'](Math['pow'](0x2,_0x3f10c7[_0x25946e(0x82)](0x7,_0x48d717)),0x2))return Buffer[_0x25946e(0x67)]([Buffer['from']([ID_VOID]),writeVint(_0xc68129,_0x48d717),Buffer['alloc'](_0xc68129)]);}return Buffer['alloc'](0x0);}function findElement(_0x85ece5,_0x5c3294,_0x29e236,_0xb4c066){const _0x34ff51=_0x5a16,_0x2d3afe={'WdKVB':function(_0x2bd58b,_0x256baf){return _0x2bd58b<_0x256baf;},'UYJBn':function(_0x413bb7,_0x123ecd,_0x1827ed){return _0x413bb7(_0x123ecd,_0x1827ed);},'keqqQ':function(_0x49d62e,_0x1f4b56){return _0x49d62e+_0x1f4b56;},'niynv':function(_0x2d0064,_0x42314c){return _0x2d0064+_0x42314c;}};let _0x296456=_0x5c3294;while(_0x2d3afe[_0x34ff51(0xa1)](_0x296456,_0x29e236)){const [_0x51a987,_0x160f50]=_0x2d3afe[_0x34ff51(0x96)](readId,_0x85ece5,_0x296456),[_0x323c51,_0x5c544c]=readVint(_0x85ece5,_0x296456+_0x160f50);if(_0x51a987===_0xb4c066)return{'offset':_0x296456,'idLen':_0x160f50,'sizeLen':_0x5c544c,'dataSize':_0x323c51,'dataOffset':_0x2d3afe[_0x34ff51(0x6a)](_0x296456,_0x160f50)+_0x5c544c};if(isUnknownSize(_0x323c51,_0x5c544c))break;_0x296456+=_0x2d3afe['niynv'](_0x160f50+_0x5c544c,_0x323c51);}return null;}function computeDurationMs(_0x81113e,_0x559fce){const _0x3d2e7d=_0x5a16,_0x4ecd14={'FJWPB':function(_0x56deae,_0x190056){return _0x56deae<_0x190056;},'pBcmp':function(_0x5a37ae,_0x59b92c,_0x177e54){return _0x5a37ae(_0x59b92c,_0x177e54);},'QBTIO':function(_0x169942,_0x513e8a){return _0x169942+_0x513e8a;},'DdnJd':function(_0x596432,_0x5b42f0){return _0x596432+_0x5b42f0;},'jDUiZ':function(_0x4206bd,_0x2b955b,_0x20009d){return _0x4206bd(_0x2b955b,_0x20009d);},'kUNOA':function(_0x31f09e,_0x413019){return _0x31f09e+_0x413019;},'JvUjg':function(_0x13c849,_0x354c28){return _0x13c849+_0x354c28;},'bCAbX':function(_0x28d02a,_0x4a254e,_0x4acb63){return _0x28d02a(_0x4a254e,_0x4acb63);},'RFodR':function(_0xaa328a,_0xf9d694){return _0xaa328a+_0xf9d694;},'TzvfE':function(_0x1d4b5d,_0x5703f7){return _0x1d4b5d===_0x5703f7;},'pknVp':function(_0x109a6c,_0x11e449){return _0x109a6c>=_0x11e449;},'VpNDQ':function(_0x5949ba,_0x499640){return _0x5949ba+_0x499640;},'ebNUG':function(_0x5d3b82,_0xbfa46b,_0x2d5759){return _0x5d3b82(_0xbfa46b,_0x2d5759);},'uqLmU':function(_0x18355d,_0x4c9a0c){return _0x18355d+_0x4c9a0c;},'CqtkG':function(_0x29ddcf,_0x4ccb48){return _0x29ddcf+_0x4ccb48;}};let _0x3aa528=0x0;const _0xcfd9e9=Buffer[_0x3d2e7d(0x92)]([0x1f,0x43,0xb6,0x75]);let _0x13830e=_0x81113e[_0x3d2e7d(0x90)](_0xcfd9e9);if(_0x13830e===-0x1)return 0x0;while(_0x4ecd14['FJWPB'](_0x13830e,_0x81113e[_0x3d2e7d(0xab)])){const [_0x2dfd2f,_0x450507]=readId(_0x81113e,_0x13830e);if(_0x2dfd2f!==ID_CLUSTER)break;const [_0x137191,_0x5c05d3]=_0x4ecd14['pBcmp'](readVint,_0x81113e,_0x4ecd14[_0x3d2e7d(0x75)](_0x13830e,_0x450507)),_0x4d0bac=_0x4ecd14[_0x3d2e7d(0x7e)](_0x13830e+_0x450507,_0x5c05d3),_0x5ad747=isUnknownSize(_0x137191,_0x5c05d3);let _0x3cda60;if(_0x5ad747){let _0x2450bd=_0x4d0bac;while(_0x2450bd<_0x81113e[_0x3d2e7d(0xab)]-0x4){const [_0x40b1eb,_0x41feff]=readId(_0x81113e,_0x2450bd);if(_0x40b1eb===ID_CLUSTER){_0x3cda60=_0x2450bd;break;}const [_0x566cc8,_0x4137fd]=readVint(_0x81113e,_0x2450bd+_0x41feff);if(_0x4ecd14[_0x3d2e7d(0x8f)](isUnknownSize,_0x566cc8,_0x4137fd)){_0x3cda60=_0x81113e['length'];break;}_0x2450bd+=_0x4ecd14['kUNOA'](_0x41feff,_0x4137fd)+_0x566cc8;}_0x3cda60??=_0x81113e[_0x3d2e7d(0xab)];}else _0x3cda60=_0x4ecd14['JvUjg'](_0x4d0bac,_0x137191);let _0x755ee=0x0,_0x44d580=_0x4d0bac;while(_0x44d580<_0x3cda60){const [_0x4434f3,_0x15c300]=_0x4ecd14['bCAbX'](readId,_0x81113e,_0x44d580),[_0x4bb077,_0x1e553c]=_0x4ecd14[_0x3d2e7d(0x95)](readVint,_0x81113e,_0x44d580+_0x15c300);if(_0x4434f3===ID_TIMESTAMP)_0x755ee=readUint(_0x81113e,_0x4ecd14['RFodR'](_0x44d580+_0x15c300,_0x1e553c),_0x4bb077);else{if(_0x4ecd14['TzvfE'](_0x4434f3,ID_SIMPLE_BLOCK)&&_0x4ecd14['pknVp'](_0x4bb077,0x4)){const _0x409f3b=_0x4ecd14[_0x3d2e7d(0x6c)](_0x44d580+_0x15c300,_0x1e553c),[,_0x229e21]=_0x4ecd14['ebNUG'](readVint,_0x81113e,_0x409f3b),_0x32f515=_0x81113e['readInt16BE'](_0x4ecd14[_0x3d2e7d(0x7e)](_0x409f3b,_0x229e21)),_0x3ec902=(_0x755ee+_0x32f515)*_0x559fce/0xf4240;_0x3ec902>_0x3aa528&&(_0x3aa528=_0x3ec902);}else{if(_0x4434f3===ID_CLUSTER)break;}}if(isUnknownSize(_0x4bb077,_0x1e553c))break;_0x44d580+=_0x4ecd14[_0x3d2e7d(0x71)](_0x4ecd14[_0x3d2e7d(0xac)](_0x15c300,_0x1e553c),_0x4bb077);}_0x13830e=_0x3cda60;}return _0x3aa528;}export function fixWebmDuration(_0x5e89c1,_0x37acf8){const _0x4fc547=_0x5a16,_0x3f43a5={'qnMzD':function(_0x4cb403,_0xc15090,_0x2e2106){return _0x4cb403(_0xc15090,_0x2e2106);},'Irwfu':function(_0x2bad47,_0x54584d){return _0x2bad47+_0x54584d;},'qUcRZ':function(_0x283007,_0x3436d8){return _0x283007+_0x3436d8;},'dresK':function(_0x243c4e,_0x2d1c24){return _0x243c4e+_0x2d1c24;},'CCUrS':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','qwKaI':function(_0xbb424d,_0x5908d6){return _0xbb424d+_0x5908d6;},'vxEdS':function(_0x255338,_0x208338){return _0x255338+_0x208338;},'NnwmE':function(_0x398e75,_0xcc782f){return _0x398e75+_0xcc782f;},'ErtGD':function(_0x137d7c,_0x24a265){return _0x137d7c+_0x24a265;},'esIRP':function(_0x519b53,_0x5874e7){return _0x519b53===_0x5874e7;},'VnCBC':_0x4fc547(0x97),'CNWWI':function(_0x271868,_0x1dd9b8){return _0x271868(_0x1dd9b8);},'ZlTMV':function(_0x8196d5,_0x1fd053){return _0x8196d5(_0x1fd053);},'DYQRc':function(_0xc038cd,_0x38bdfe){return _0xc038cd<_0x38bdfe;},'fcmBk':function(_0x264cdc,_0x265501,_0x154572,_0xd733fc,_0x2a967c,_0x2c87b7,_0x144c5d){return _0x264cdc(_0x265501,_0x154572,_0xd733fc,_0x2a967c,_0x2c87b7,_0x144c5d);},'XwpWC':function(_0x5b1b0e,_0x4cd3aa){return _0x5b1b0e(_0x4cd3aa);}},_0x143b49=readFileSync(_0x5e89c1);let _0x59f233=0x0;const [_0x2b3807,_0x215b21]=_0x3f43a5[_0x4fc547(0x6f)](readId,_0x143b49,_0x59f233),[_0x5a1961,_0x1855cc]=readVint(_0x143b49,_0x3f43a5[_0x4fc547(0x6d)](_0x59f233,_0x215b21));_0x59f233+=_0x3f43a5[_0x4fc547(0x8a)](_0x3f43a5['dresK'](_0x215b21,_0x1855cc),_0x5a1961);const [_0x1151f6,_0x274d4e]=readId(_0x143b49,_0x59f233);if(_0x1151f6!==ID_SEGMENT)return console[_0x4fc547(0xa2)](_0x3f43a5[_0x4fc547(0x77)]),![];const [,_0x33a638]=_0x3f43a5[_0x4fc547(0x6f)](readVint,_0x143b49,_0x3f43a5[_0x4fc547(0x7f)](_0x59f233,_0x274d4e)),_0x7a9196=_0x3f43a5['qUcRZ'](_0x3f43a5['vxEdS'](_0x59f233,_0x274d4e),_0x33a638);let _0x2d78b0=_0x7a9196;const _0x1c793a=Math['min'](_0x143b49[_0x4fc547(0xab)],_0x3f43a5['dresK'](_0x7a9196,0x2710));let _0xc45cf2=null,_0x3aea2b=null;while(_0x2d78b0<_0x1c793a){const [_0x62df36,_0x52a380]=readId(_0x143b49,_0x2d78b0),[_0x23d4a0,_0x2b04d2]=readVint(_0x143b49,_0x3f43a5[_0x4fc547(0x9d)](_0x2d78b0,_0x52a380));_0x62df36===ID_VOID&&!_0xc45cf2&&(_0xc45cf2={'offset':_0x2d78b0,'idLen':_0x52a380,'sizeLen':_0x2b04d2,'dataSize':_0x23d4a0,'dataOffset':_0x3f43a5['Irwfu'](_0x2d78b0+_0x52a380,_0x2b04d2)});if(_0x62df36===ID_INFO){_0x3aea2b={'offset':_0x2d78b0,'idLen':_0x52a380,'sizeLen':_0x2b04d2,'dataSize':_0x23d4a0,'dataOffset':_0x3f43a5[_0x4fc547(0xa9)](_0x3f43a5['qwKaI'](_0x2d78b0,_0x52a380),_0x2b04d2)};break;}if(_0x3f43a5['esIRP'](_0x62df36,ID_CLUSTER))break;if(isUnknownSize(_0x23d4a0,_0x2b04d2))break;_0x2d78b0+=_0x52a380+_0x2b04d2+_0x23d4a0;}if(!_0x3aea2b)return console[_0x4fc547(0xa2)](_0x3f43a5['VnCBC']),![];const _0x4bf0f7=findElement(_0x143b49,_0x3aea2b['dataOffset'],_0x3aea2b['dataOffset']+_0x3aea2b[_0x4fc547(0x6e)],ID_DURATION);if(_0x4bf0f7)return![];const _0x5ab219=findElement(_0x143b49,_0x3aea2b['dataOffset'],_0x3aea2b['dataOffset']+_0x3aea2b['dataSize'],ID_TIMESTAMP_SCALE);let _0x32c37f=0xf4240;_0x5ab219&&(_0x32c37f=readUint(_0x143b49,_0x5ab219['dataOffset'],_0x5ab219['dataSize']));const _0x38b145=_0x3f43a5['qnMzD'](computeDurationMs,_0x143b49,_0x32c37f);if(_0x38b145<=0x0)return console[_0x4fc547(0xa2)](_0x4fc547(0x68)),![];const _0x1debd4=_0x38b145*0xf4240/_0x32c37f,_0x1e6bc7=Buffer[_0x4fc547(0x67)]([_0x3f43a5[_0x4fc547(0x8b)](writeId,ID_DURATION),_0x3f43a5['CNWWI'](writeVint,0x8),_0x3f43a5[_0x4fc547(0x70)](writeFloat64,_0x1debd4)]),_0x302727=_0x1e6bc7[_0x4fc547(0xab)];if(!_0xc45cf2||_0xc45cf2['offset']<_0x3aea2b['offset']){if(_0xc45cf2){const _0xaa477=_0xc45cf2['idLen']+_0xc45cf2[_0x4fc547(0x83)]+_0xc45cf2['dataSize'],_0x34a683=_0xaa477-_0x302727;if(_0x3f43a5[_0x4fc547(0x9b)](_0x34a683,0x2))return _0x3f43a5['fcmBk'](rewriteFile,_0x143b49,_0x3aea2b,_0x1e6bc7,_0x32c37f,_0x38b145,_0x37acf8);const _0x4d322c=_0x3aea2b['dataSize']+_0x302727,_0x11d517=Buffer['concat']([_0x3f43a5['XwpWC'](writeId,ID_INFO),writeVint(_0x4d322c,_0x3aea2b['sizeLen'])]),_0x5edc84=_0x143b49[_0x4fc547(0x91)](_0x3aea2b['dataOffset'],_0x3aea2b['dataOffset']+_0x3aea2b['dataSize']),_0x12220c=writeVoid(_0x34a683),_0x4151d2=_0x143b49['slice'](0x0,_0xc45cf2[_0x4fc547(0x78)]),_0x4851a6=_0x143b49[_0x4fc547(0x91)](_0x3aea2b['dataOffset']+_0x3aea2b['dataSize']);return writeFileSync(_0x37acf8,Buffer[_0x4fc547(0x67)]([_0x4151d2,_0x12220c,_0x11d517,_0x5edc84,_0x1e6bc7,_0x4851a6])),!![];}}return rewriteFile(_0x143b49,_0x3aea2b,_0x1e6bc7,_0x32c37f,_0x38b145,_0x37acf8);}function _0x82b2(){const _0xe6ec11=['OQoZK','Fixed:\x20','QBTIO','852492fAdVqL','CCUrS','offset','sUykQ','6530069MFgtCl','WLCko','1911920rwnbky','144TlPHES','DdnJd','qwKaI','fixWebmDuration.js','1274032QmMCCp','CVDZV','sizeLen','log','idLen','Pknrn','lcnTY','pow','dzrzQ','qUcRZ','CNWWI','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','EgLoX','8984zSeWCI','jDUiZ','indexOf','slice','from','27gQtXUk','nwtMr','pBcmp','UYJBn','Could\x20not\x20find\x20Info\x20element','AQssI','HnWyD','494292MTyvQx','DYQRc','exit','NnwmE','endsWith','pjcin','argv','WdKVB','error','alloc','VpdoS','MYbOK','cWvbF','YOpFJ','floor','ErtGD','ZJjPD','length','CqtkG','ttzEQ','RowAk','concat','Could\x20not\x20compute\x20duration','dataOffset','keqqQ','1157280stztuq','VpNDQ','Irwfu','dataSize','qnMzD','ZlTMV','uqLmU','fixWebmDuration.ts'];_0x82b2=function(){return _0xe6ec11;};return _0x82b2();}function rewriteFile(_0x3f645d,_0x2963b2,_0x40dfbe,_0x5f44ee,_0x446f19,_0x383c58){const _0x296e61=_0x5a16,_0x26ccf7={'OQoZK':function(_0x1e5489,_0x6aeefa){return _0x1e5489(_0x6aeefa);},'EgLoX':function(_0x2ed4e9,_0x36c016){return _0x2ed4e9+_0x36c016;},'AQssI':function(_0x159c6e,_0x11f592,_0x13d469){return _0x159c6e(_0x11f592,_0x13d469);}},_0xfff7ed=_0x2963b2[_0x296e61(0x6e)]+_0x40dfbe[_0x296e61(0xab)],_0x354cbc=Buffer['concat']([writeId(ID_INFO),_0x26ccf7[_0x296e61(0x73)](writeVint,_0xfff7ed)]),_0xc01503=_0x26ccf7['EgLoX'](_0x2963b2[_0x296e61(0x85)],_0x2963b2[_0x296e61(0x83)]),_0x223982=_0x3f645d['slice'](0x0,_0x2963b2['offset']),_0x5d49b4=_0x3f645d['slice'](_0x2963b2['dataOffset'],_0x2963b2[_0x296e61(0x69)]+_0x2963b2['dataSize']),_0x1e9759=_0x3f645d[_0x296e61(0x91)](_0x26ccf7[_0x296e61(0x8d)](_0x26ccf7['EgLoX'](_0x2963b2[_0x296e61(0x78)],_0xc01503),_0x2963b2[_0x296e61(0x6e)]));return _0x26ccf7[_0x296e61(0x98)](writeFileSync,_0x383c58,Buffer[_0x296e61(0x67)]([_0x223982,_0x354cbc,_0x5d49b4,_0x40dfbe,_0x1e9759])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x7f3170(0x72))||process[_0x7f3170(0xa0)][0x1]?.[_0x7f3170(0x9e)](_0x7f3170(0x80))){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x7f3170(0xa2)](_0x7f3170(0x8c)),process[_0x7f3170(0x9c)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x7f3170(0x84)](_0x7f3170(0x74)+output):console[_0x7f3170(0x84)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x95cc67=_0x851c;(function(_0x2d3bdd,_0x4f2ad0){const _0x174da7=_0x851c,_0x4b5b4e=_0x2d3bdd();while(!![]){try{const _0x3e5294=parseInt(_0x174da7(0x236))/0x1+parseInt(_0x174da7(0x1ff))/0x2*(-parseInt(_0x174da7(0x202))/0x3)+parseInt(_0x174da7(0x224))/0x4*(-parseInt(_0x174da7(0x1f2))/0x5)+-parseInt(_0x174da7(0x20f))/0x6*(parseInt(_0x174da7(0x218))/0x7)+parseInt(_0x174da7(0x22c))/0x8*(-parseInt(_0x174da7(0x233))/0x9)+-parseInt(_0x174da7(0x231))/0xa*(-parseInt(_0x174da7(0x21c))/0xb)+parseInt(_0x174da7(0x207))/0xc;if(_0x3e5294===_0x4f2ad0)break;else _0x4b5b4e['push'](_0x4b5b4e['shift']());}catch(_0x3e2fa9){_0x4b5b4e['push'](_0x4b5b4e['shift']());}}}(_0x1a8f,0x1c910));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(_0x58f8d7,_0x162a75){const _0x85fe36=_0x851c,_0x57fd2c={'iSqjc':function(_0xb6141e,_0x36a84d){return _0xb6141e>=_0x36a84d;},'yiqGL':function(_0x3f1e19,_0x53459f){return _0x3f1e19<_0x53459f;},'Pslmb':function(_0xda1c63,_0x4d7ce2){return _0xda1c63*_0x4d7ce2;}};if(_0x57fd2c['iSqjc'](_0x162a75,_0x58f8d7['length']))return[0x0,0x0];const _0x188f8c=_0x58f8d7[_0x162a75];let _0x1422aa=0x1,_0x3c3d88=0x80;while(_0x1422aa<=0x8&&!(_0x188f8c&_0x3c3d88)){_0x1422aa++,_0x3c3d88>>=0x1;}if(_0x162a75+_0x1422aa>_0x58f8d7['length'])return[0x0,0x0];let _0x1715ef=_0x188f8c&_0x3c3d88-0x1;for(let _0x55a653=0x1;_0x57fd2c['yiqGL'](_0x55a653,_0x1422aa);_0x55a653++){_0x1715ef=_0x57fd2c[_0x85fe36(0x219)](_0x1715ef,0x100)+_0x58f8d7[_0x162a75+_0x55a653];}return[_0x1715ef,_0x1422aa];}function readId(_0x57f181,_0x2aeefb){const _0x48d8f9=_0x851c,_0x39a2c9={'OKnsY':function(_0x4f070b,_0x4e21de){return _0x4f070b>=_0x4e21de;},'oBtOC':function(_0x1b442c,_0x164d11){return _0x1b442c>_0x164d11;},'aGhJo':function(_0x3450ec,_0x3e4af5){return _0x3450ec<_0x3e4af5;},'WpXoq':function(_0x2ad357,_0x18efae){return _0x2ad357+_0x18efae;},'egsHI':function(_0x1b9f39,_0x2f159d){return _0x1b9f39*_0x2f159d;}};if(_0x2aeefb>=_0x57f181[_0x48d8f9(0x232)])return[0x0,0x0];const _0x4d51e1=_0x57f181[_0x2aeefb];let _0x4da133;if(_0x4d51e1>=0x80)_0x4da133=0x1;else{if(_0x39a2c9['OKnsY'](_0x4d51e1,0x40))_0x4da133=0x2;else{if(_0x39a2c9['OKnsY'](_0x4d51e1,0x20))_0x4da133=0x3;else{if(_0x39a2c9[_0x48d8f9(0x204)](_0x4d51e1,0x10))_0x4da133=0x4;else return[_0x4d51e1,0x1];}}}if(_0x39a2c9[_0x48d8f9(0x216)](_0x2aeefb+_0x4da133,_0x57f181[_0x48d8f9(0x232)]))return[0x0,0x0];let _0x3d44d0=0x0;for(let _0x315ed5=0x0;_0x39a2c9['aGhJo'](_0x315ed5,_0x4da133);_0x315ed5++){_0x3d44d0=_0x39a2c9[_0x48d8f9(0x223)](_0x39a2c9[_0x48d8f9(0x225)](_0x3d44d0,0x100),_0x57f181[_0x39a2c9[_0x48d8f9(0x223)](_0x2aeefb,_0x315ed5)]);}return[_0x3d44d0,_0x4da133];}function readUint(_0x23e282,_0x4a9def,_0x2b76b1){const _0x12479b={'JRpkU':function(_0x3b5995,_0x1e0b6a){return _0x3b5995<_0x1e0b6a;},'cfMfz':function(_0x22f483,_0x34390a){return _0x22f483+_0x34390a;}};let _0x464836=0x0;for(let _0xd0d9cf=0x0;_0x12479b['JRpkU'](_0xd0d9cf,_0x2b76b1);_0xd0d9cf++){_0x464836=_0x464836*0x100+_0x23e282[_0x12479b['cfMfz'](_0x4a9def,_0xd0d9cf)];}return _0x464836;}function isUnknownSize(_0x206191,_0x469a76){const _0x4f4404=_0x851c;return _0x206191===Math[_0x4f4404(0x239)](0x2,0x7*_0x469a76)-0x1;}function writeId(_0x3f9aa3){const _0x435260=_0x851c,_0x32cc74={'PYVKo':function(_0x5bc869,_0x2f441e){return _0x5bc869<=_0x2f441e;},'pWZVa':function(_0x7f3ec1,_0x4fa435){return _0x7f3ec1&_0x4fa435;},'EPoCj':function(_0x2cd1de,_0x5679b9){return _0x2cd1de>>_0x5679b9;},'bPTaL':function(_0x4db81f,_0x551ba8){return _0x4db81f&_0x551ba8;},'ITUSQ':function(_0x16c658,_0x2a3d6e){return _0x16c658>>_0x2a3d6e;},'zqLPb':function(_0x40a755,_0x3b1d82){return _0x40a755&_0x3b1d82;},'lDPpS':function(_0x21cfe7,_0x3f8c99){return _0x21cfe7&_0x3f8c99;}};if(_0x32cc74['PYVKo'](_0x3f9aa3,0xff))return Buffer[_0x435260(0x203)]([_0x3f9aa3]);if(_0x3f9aa3<=0xffff)return Buffer[_0x435260(0x203)]([_0x32cc74['pWZVa'](_0x3f9aa3>>0x8,0xff),_0x32cc74['pWZVa'](_0x3f9aa3,0xff)]);if(_0x32cc74['PYVKo'](_0x3f9aa3,0xffffff))return Buffer[_0x435260(0x203)]([_0x32cc74[_0x435260(0x23b)](_0x32cc74[_0x435260(0x201)](_0x3f9aa3,0x10),0xff),_0x32cc74[_0x435260(0x1f9)](_0x32cc74['ITUSQ'](_0x3f9aa3,0x8),0xff),_0x32cc74[_0x435260(0x226)](_0x3f9aa3,0xff)]);return Buffer['from']([_0x32cc74[_0x435260(0x1fe)](_0x3f9aa3,0x18)&0xff,_0x32cc74['EPoCj'](_0x3f9aa3,0x10)&0xff,_0x32cc74[_0x435260(0x21e)](_0x32cc74['ITUSQ'](_0x3f9aa3,0x8),0xff),_0x3f9aa3&0xff]);}function _0x1a8f(){const _0xd56fab=['vehwr','kLxdD','TDxnM','eKdbt','YSaMC','UbJob','WzokU','222oUrLbq','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','slice','offset','LiPMR','PuaTF','PeeQF','oBtOC','oiYct','16282pcIlcD','Pslmb','EWzoJ','FrOPa','11BZbrXo','endsWith','lDPpS','rezPb','Fixed:\x20','dataOffset','ywEzB','WpXoq','4ErPwpa','egsHI','zqLPb','indexOf','sNZgT','writeDoubleBE','BtUAG','YXHPi','8600lTNCog','IDJOK','min','VRPzO','Mgpvp','1164290epMZgb','length','882hnRfAt','cNuPO','vwlsS','204210zGZJvb','CZWPR','log','pow','IxnaE','pWZVa','error','alloc','pdHcF','139820oiuQWX','dataSize','ffLQc','PMZhN','fixWebmDuration.js','aNyDl','JYbgr','bPTaL','GOqFR','argv','cpBJw','MBxrK','ITUSQ','103492NoqyZo','xexFs','EPoCj','9TDZWpz','from','OKnsY','concat','BziEP','2051796LcqSsC'];_0x1a8f=function(){return _0xd56fab;};return _0x1a8f();}function writeVint(_0xbd772f,_0x41352e){const _0x45d994=_0x851c,_0x3bbcb9={'ffLQc':function(_0x4b52cc,_0x371999){return _0x4b52cc||_0x371999;},'WzokU':function(_0xa8d32,_0x43af23){return _0xa8d32-_0x43af23;},'YSaMC':function(_0x25dc13,_0x2fe321){return _0x25dc13>=_0x2fe321;},'JYbgr':function(_0x4d3b24,_0x5c3969){return _0x4d3b24&_0x5c3969;},'cNuPO':function(_0x266fa2,_0x2aada6){return _0x266fa2/_0x2aada6;}};let _0x5962ac=_0x3bbcb9[_0x45d994(0x1f4)](_0x41352e,0x1);while(_0x3bbcb9[_0x45d994(0x20e)](Math['pow'](0x2,0x7*_0x5962ac),0x2)<_0xbd772f)_0x5962ac++;const _0x5f392e=Buffer[_0x45d994(0x23d)](_0x5962ac);for(let _0x5c605e=_0x5962ac-0x1;_0x3bbcb9[_0x45d994(0x20c)](_0x5c605e,0x0);_0x5c605e--){_0x5f392e[_0x5c605e]=_0x3bbcb9[_0x45d994(0x1f8)](_0xbd772f,0xff),_0xbd772f=Math['floor'](_0x3bbcb9[_0x45d994(0x234)](_0xbd772f,0x100));}return _0x5f392e[0x0]|=0x1<<0x8-_0x5962ac,_0x5f392e;}function writeFloat64(_0x318d0f){const _0x3f9907=_0x851c,_0x16a1f0=Buffer[_0x3f9907(0x23d)](0x8);return _0x16a1f0[_0x3f9907(0x229)](_0x318d0f,0x0),_0x16a1f0;}function _0x851c(_0x51e188,_0x55a039){_0x51e188=_0x51e188-0x1f2;const _0x1a8f76=_0x1a8f();let _0x851c19=_0x1a8f76[_0x51e188];return _0x851c19;}function writeVoid(_0x2b6b46){const _0x336cb0=_0x851c,_0x58441f={'FGIxI':function(_0x17010a,_0x32e61f){return _0x17010a<=_0x32e61f;},'KWEKF':function(_0x5d3a59,_0x1148df){return _0x5d3a59-_0x1148df;},'eIgMx':function(_0x494dcf,_0x3cb7e9){return _0x494dcf>=_0x3cb7e9;},'PeeQF':function(_0x10c6fe,_0x56fd68){return _0x10c6fe<=_0x56fd68;},'kLxdD':function(_0x495c67,_0x3157a8){return _0x495c67*_0x3157a8;},'VRPzO':function(_0x2d54fd,_0x105347,_0x6e4da1){return _0x2d54fd(_0x105347,_0x6e4da1);}};for(let _0x729406=0x1;_0x58441f['FGIxI'](_0x729406,0x8);_0x729406++){const _0x42c3b2=_0x58441f['KWEKF'](_0x2b6b46-0x1,_0x729406);if(_0x58441f['eIgMx'](_0x42c3b2,0x0)&&_0x58441f[_0x336cb0(0x215)](_0x42c3b2,Math[_0x336cb0(0x239)](0x2,_0x58441f[_0x336cb0(0x209)](0x7,_0x729406))-0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),_0x58441f[_0x336cb0(0x22f)](writeVint,_0x42c3b2,_0x729406),Buffer['alloc'](_0x42c3b2)]);}return Buffer[_0x336cb0(0x23d)](0x0);}function findElement(_0x34c2aa,_0x11f6e5,_0x18e937,_0x1be56e){const _0x509a11=_0x851c,_0x33f76a={'FrOPa':function(_0x2c00d1,_0x2ee67b,_0x371c7e){return _0x2c00d1(_0x2ee67b,_0x371c7e);},'YZmci':function(_0xdd6d56,_0xcee9e9){return _0xdd6d56+_0xcee9e9;}};let _0x484453=_0x11f6e5;while(_0x484453<_0x18e937){const [_0x1c8888,_0x4cd664]=readId(_0x34c2aa,_0x484453),[_0x12707f,_0xfb752e]=_0x33f76a['FrOPa'](readVint,_0x34c2aa,_0x484453+_0x4cd664);if(_0x1c8888===_0x1be56e)return{'offset':_0x484453,'idLen':_0x4cd664,'sizeLen':_0xfb752e,'dataSize':_0x12707f,'dataOffset':_0x33f76a['YZmci'](_0x484453,_0x4cd664)+_0xfb752e};if(_0x33f76a[_0x509a11(0x21b)](isUnknownSize,_0x12707f,_0xfb752e))break;_0x484453+=_0x4cd664+_0xfb752e+_0x12707f;}return null;}function computeDurationMs(_0x43ff26,_0x6aeccb){const _0x382924=_0x851c,_0x560da5={'jjifE':function(_0x2c02ff,_0x14cee9){return _0x2c02ff<_0x14cee9;},'vehwr':function(_0x3f0143,_0x4684e6,_0x822587){return _0x3f0143(_0x4684e6,_0x822587);},'SVUqz':function(_0x4d87a1,_0x5d1d2e){return _0x4d87a1!==_0x5d1d2e;},'IxnaE':function(_0x536c1e,_0x2dbbe7){return _0x536c1e+_0x2dbbe7;},'oiYct':function(_0x1c7445,_0x97dc0e){return _0x1c7445+_0x97dc0e;},'PMZhN':function(_0x9e4e00,_0x39c1a1,_0x4fdfcd){return _0x9e4e00(_0x39c1a1,_0x4fdfcd);},'RbLIv':function(_0x22ce64,_0xa35687){return _0x22ce64+_0xa35687;},'TDxnM':function(_0x5131a2,_0x10cd56){return _0x5131a2+_0x10cd56;},'CAihL':function(_0x28057f,_0x29b95f,_0x15a6f7){return _0x28057f(_0x29b95f,_0x15a6f7);},'rezPb':function(_0x147246,_0x5dac3d,_0x19b2bf,_0x428c9c){return _0x147246(_0x5dac3d,_0x19b2bf,_0x428c9c);},'DTukF':function(_0x52913a,_0x1fd194){return _0x52913a+_0x1fd194;},'PzLqO':function(_0x17e765,_0x41560d){return _0x17e765+_0x41560d;},'PuaTF':function(_0x364de3,_0x1530e4){return _0x364de3===_0x1530e4;},'EWzoJ':function(_0x4a74db,_0x210b8d){return _0x4a74db>=_0x210b8d;},'ywEzB':function(_0x11d934,_0x46c889){return _0x11d934+_0x46c889;},'TRHbx':function(_0x50e9ab,_0x4dc352){return _0x50e9ab>_0x4dc352;},'xexFs':function(_0x3cf91c,_0x363de1){return _0x3cf91c+_0x363de1;}};let _0x3ac332=0x0;const _0x37d754=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x4460e5=_0x43ff26[_0x382924(0x227)](_0x37d754);if(_0x4460e5===-0x1)return 0x0;while(_0x560da5['jjifE'](_0x4460e5,_0x43ff26[_0x382924(0x232)])){const [_0x425b8e,_0x3f9c68]=_0x560da5[_0x382924(0x208)](readId,_0x43ff26,_0x4460e5);if(_0x560da5['SVUqz'](_0x425b8e,ID_CLUSTER))break;const [_0x261ee8,_0x4d0e31]=readVint(_0x43ff26,_0x4460e5+_0x3f9c68),_0x267bd7=_0x560da5[_0x382924(0x23a)](_0x4460e5,_0x3f9c68)+_0x4d0e31,_0xd059c5=isUnknownSize(_0x261ee8,_0x4d0e31);let _0x2ecf23;if(_0xd059c5){let _0x4bb6cd=_0x267bd7;while(_0x4bb6cd<_0x43ff26[_0x382924(0x232)]-0x4){const [_0xfc4663,_0x4b348c]=readId(_0x43ff26,_0x4bb6cd);if(_0xfc4663===ID_CLUSTER){_0x2ecf23=_0x4bb6cd;break;}const [_0x3c275d,_0x54f4be]=readVint(_0x43ff26,_0x560da5[_0x382924(0x217)](_0x4bb6cd,_0x4b348c));if(_0x560da5['PMZhN'](isUnknownSize,_0x3c275d,_0x54f4be)){_0x2ecf23=_0x43ff26[_0x382924(0x232)];break;}_0x4bb6cd+=_0x560da5['RbLIv'](_0x4b348c,_0x54f4be)+_0x3c275d;}_0x2ecf23??=_0x43ff26[_0x382924(0x232)];}else _0x2ecf23=_0x560da5[_0x382924(0x20a)](_0x267bd7,_0x261ee8);let _0x5920b0=0x0,_0x345f8e=_0x267bd7;while(_0x345f8e<_0x2ecf23){const [_0x179f84,_0x1bbb6a]=_0x560da5[_0x382924(0x1f5)](readId,_0x43ff26,_0x345f8e),[_0x40a5a5,_0x83e3f2]=_0x560da5['CAihL'](readVint,_0x43ff26,_0x345f8e+_0x1bbb6a);if(_0x179f84===ID_TIMESTAMP)_0x5920b0=_0x560da5[_0x382924(0x21f)](readUint,_0x43ff26,_0x560da5['DTukF'](_0x560da5['PzLqO'](_0x345f8e,_0x1bbb6a),_0x83e3f2),_0x40a5a5);else{if(_0x560da5['PuaTF'](_0x179f84,ID_SIMPLE_BLOCK)&&_0x560da5[_0x382924(0x21a)](_0x40a5a5,0x4)){const _0x4ed249=_0x345f8e+_0x1bbb6a+_0x83e3f2,[,_0x5949b0]=readVint(_0x43ff26,_0x4ed249),_0x9c9d7a=_0x43ff26['readInt16BE'](_0x560da5[_0x382924(0x222)](_0x4ed249,_0x5949b0)),_0x1d0450=(_0x5920b0+_0x9c9d7a)*_0x6aeccb/0xf4240;_0x560da5['TRHbx'](_0x1d0450,_0x3ac332)&&(_0x3ac332=_0x1d0450);}else{if(_0x560da5[_0x382924(0x214)](_0x179f84,ID_CLUSTER))break;}}if(_0x560da5['vehwr'](isUnknownSize,_0x40a5a5,_0x83e3f2))break;_0x345f8e+=_0x560da5[_0x382924(0x200)](_0x1bbb6a,_0x83e3f2)+_0x40a5a5;}_0x4460e5=_0x2ecf23;}return _0x3ac332;}export function fixWebmDuration(_0x46dc7c,_0x3e92ba){const _0x2e0486=_0x851c,_0x42786c={'pdHcF':function(_0x3b816e,_0x4d4bfa){return _0x3b816e(_0x4d4bfa);},'BziEP':function(_0x2b7db1,_0x354b59,_0x3b4af9){return _0x2b7db1(_0x354b59,_0x3b4af9);},'LITtT':function(_0x36cd57,_0x3ec698){return _0x36cd57!==_0x3ec698;},'LiPMR':function(_0x50699b,_0x1694b8){return _0x50699b+_0x1694b8;},'Mgpvp':function(_0x3d5bb7,_0x1d00d4){return _0x3d5bb7+_0x1d00d4;},'vwlsS':function(_0x3d1686,_0x3786b3){return _0x3d1686<_0x3786b3;},'wcSqh':function(_0x179fb3,_0x4704ba,_0x30794e){return _0x179fb3(_0x4704ba,_0x30794e);},'rRwqs':function(_0x1d3cc2,_0x277c95){return _0x1d3cc2===_0x277c95;},'IDJOK':function(_0x23c0a2,_0x335b0c){return _0x23c0a2===_0x335b0c;},'MBxrK':function(_0x51587f,_0x518e9f){return _0x51587f+_0x518e9f;},'CZWPR':function(_0x344609,_0x1701c0,_0x1e4eae,_0x3db043,_0x24cc83){return _0x344609(_0x1701c0,_0x1e4eae,_0x3db043,_0x24cc83);},'YXHPi':function(_0x5bc215,_0x462614){return _0x5bc215<=_0x462614;},'UbJob':function(_0x3c036c,_0x2d4144){return _0x3c036c/_0x2d4144;},'eKdbt':function(_0x8a5f02,_0x288d92){return _0x8a5f02(_0x288d92);},'GOqFR':function(_0x11a4e5,_0x5a94bf){return _0x11a4e5-_0x5a94bf;},'BtUAG':function(_0x335b7a,_0x3c98c1,_0x2e25b9,_0x5e925a,_0x44f59d,_0x24bb19,_0x1fe43c){return _0x335b7a(_0x3c98c1,_0x2e25b9,_0x5e925a,_0x44f59d,_0x24bb19,_0x1fe43c);},'yqjZp':function(_0xc56402,_0x3c1b29){return _0xc56402+_0x3c1b29;},'LUKXA':function(_0x404071,_0x25b3f5,_0x5a5194){return _0x404071(_0x25b3f5,_0x5a5194);},'cpBJw':function(_0x45f850,_0x4e734c,_0x44e3a4,_0x554ce9,_0x156d59,_0x1b6584,_0x2b32cd){return _0x45f850(_0x4e734c,_0x44e3a4,_0x554ce9,_0x156d59,_0x1b6584,_0x2b32cd);}},_0x3fb097=_0x42786c[_0x2e0486(0x23e)](readFileSync,_0x46dc7c);let _0x1d6819=0x0;const [_0x1135c4,_0x472da6]=readId(_0x3fb097,_0x1d6819),[_0x178dd3,_0x551afc]=readVint(_0x3fb097,_0x1d6819+_0x472da6);_0x1d6819+=_0x472da6+_0x551afc+_0x178dd3;const [_0x157237,_0x3aaac2]=_0x42786c['BziEP'](readId,_0x3fb097,_0x1d6819);if(_0x42786c['LITtT'](_0x157237,ID_SEGMENT))return console[_0x2e0486(0x23c)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1fb44a]=_0x42786c[_0x2e0486(0x206)](readVint,_0x3fb097,_0x1d6819+_0x3aaac2),_0xbbda28=_0x42786c['LiPMR'](_0x42786c[_0x2e0486(0x213)](_0x1d6819,_0x3aaac2),_0x1fb44a);let _0x4efae9=_0xbbda28;const _0x14452c=Math[_0x2e0486(0x22e)](_0x3fb097[_0x2e0486(0x232)],_0x42786c[_0x2e0486(0x230)](_0xbbda28,0x2710));let _0x175403=null,_0x33afa2=null;while(_0x42786c[_0x2e0486(0x235)](_0x4efae9,_0x14452c)){const [_0x2a156f,_0x328545]=_0x42786c['wcSqh'](readId,_0x3fb097,_0x4efae9),[_0x26fd96,_0x56ec01]=readVint(_0x3fb097,_0x4efae9+_0x328545);_0x42786c['rRwqs'](_0x2a156f,ID_VOID)&&!_0x175403&&(_0x175403={'offset':_0x4efae9,'idLen':_0x328545,'sizeLen':_0x56ec01,'dataSize':_0x26fd96,'dataOffset':_0x42786c[_0x2e0486(0x213)](_0x42786c[_0x2e0486(0x213)](_0x4efae9,_0x328545),_0x56ec01)});if(_0x42786c[_0x2e0486(0x22d)](_0x2a156f,ID_INFO)){_0x33afa2={'offset':_0x4efae9,'idLen':_0x328545,'sizeLen':_0x56ec01,'dataSize':_0x26fd96,'dataOffset':_0x42786c[_0x2e0486(0x230)](_0x4efae9,_0x328545)+_0x56ec01};break;}if(_0x2a156f===ID_CLUSTER)break;if(isUnknownSize(_0x26fd96,_0x56ec01))break;_0x4efae9+=_0x42786c['MBxrK'](_0x42786c[_0x2e0486(0x1fd)](_0x328545,_0x56ec01),_0x26fd96);}if(!_0x33afa2)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x587a5d=findElement(_0x3fb097,_0x33afa2['dataOffset'],_0x42786c['LiPMR'](_0x33afa2[_0x2e0486(0x221)],_0x33afa2[_0x2e0486(0x1f3)]),ID_DURATION);if(_0x587a5d)return![];const _0x5ba78d=_0x42786c[_0x2e0486(0x237)](findElement,_0x3fb097,_0x33afa2['dataOffset'],_0x33afa2[_0x2e0486(0x221)]+_0x33afa2['dataSize'],ID_TIMESTAMP_SCALE);let _0x28740a=0xf4240;_0x5ba78d&&(_0x28740a=readUint(_0x3fb097,_0x5ba78d['dataOffset'],_0x5ba78d['dataSize']));const _0x58f170=computeDurationMs(_0x3fb097,_0x28740a);if(_0x42786c[_0x2e0486(0x22b)](_0x58f170,0x0))return console[_0x2e0486(0x23c)]('Could\x20not\x20compute\x20duration'),![];const _0x382146=_0x42786c[_0x2e0486(0x20d)](_0x58f170*0xf4240,_0x28740a),_0x5d761e=Buffer[_0x2e0486(0x205)]([writeId(ID_DURATION),_0x42786c['eKdbt'](writeVint,0x8),_0x42786c[_0x2e0486(0x20b)](writeFloat64,_0x382146)]),_0x8cc47a=_0x5d761e[_0x2e0486(0x232)];if(!_0x175403||_0x42786c[_0x2e0486(0x235)](_0x175403['offset'],_0x33afa2[_0x2e0486(0x212)])){if(_0x175403){const _0x2ce1ff=_0x175403['idLen']+_0x175403['sizeLen']+_0x175403['dataSize'],_0x51fd5e=_0x42786c[_0x2e0486(0x1fa)](_0x2ce1ff,_0x8cc47a);if(_0x51fd5e<0x2)return _0x42786c[_0x2e0486(0x22a)](rewriteFile,_0x3fb097,_0x33afa2,_0x5d761e,_0x28740a,_0x58f170,_0x3e92ba);const _0x5b73cb=_0x33afa2[_0x2e0486(0x1f3)]+_0x8cc47a,_0x5a5949=Buffer[_0x2e0486(0x205)]([writeId(ID_INFO),writeVint(_0x5b73cb,_0x33afa2['sizeLen'])]),_0x27b67f=_0x3fb097[_0x2e0486(0x211)](_0x33afa2[_0x2e0486(0x221)],_0x33afa2['dataOffset']+_0x33afa2['dataSize']),_0x1d3596=writeVoid(_0x51fd5e),_0x339448=_0x3fb097['slice'](0x0,_0x175403[_0x2e0486(0x212)]),_0x3a170d=_0x3fb097['slice'](_0x42786c['yqjZp'](_0x33afa2['dataOffset'],_0x33afa2['dataSize']));return _0x42786c['LUKXA'](writeFileSync,_0x3e92ba,Buffer[_0x2e0486(0x205)]([_0x339448,_0x1d3596,_0x5a5949,_0x27b67f,_0x5d761e,_0x3a170d])),!![];}}return _0x42786c[_0x2e0486(0x1fc)](rewriteFile,_0x3fb097,_0x33afa2,_0x5d761e,_0x28740a,_0x58f170,_0x3e92ba);}function rewriteFile(_0x1bf77d,_0x56e848,_0x1d7bc7,_0x5ae9d3,_0x18620b,_0x1a0b89){const _0x2bc4f4=_0x851c,_0x25f12a={'sNZgT':function(_0x1927ac,_0x55a63d){return _0x1927ac+_0x55a63d;},'Rsbru':function(_0x1b789b,_0x41c4be){return _0x1b789b(_0x41c4be);},'aNyDl':function(_0x28d531,_0x4afe5f){return _0x28d531+_0x4afe5f;},'nHIbU':function(_0x349ae8,_0x4da77b,_0x421fc2){return _0x349ae8(_0x4da77b,_0x421fc2);}},_0x3ec4ec=_0x25f12a[_0x2bc4f4(0x228)](_0x56e848['dataSize'],_0x1d7bc7['length']),_0x41c8c4=Buffer[_0x2bc4f4(0x205)]([writeId(ID_INFO),_0x25f12a['Rsbru'](writeVint,_0x3ec4ec)]),_0x2133f4=_0x25f12a[_0x2bc4f4(0x1f7)](_0x56e848['idLen'],_0x56e848['sizeLen']),_0xdde2f5=_0x1bf77d[_0x2bc4f4(0x211)](0x0,_0x56e848[_0x2bc4f4(0x212)]),_0x497edc=_0x1bf77d[_0x2bc4f4(0x211)](_0x56e848['dataOffset'],_0x56e848[_0x2bc4f4(0x221)]+_0x56e848['dataSize']),_0x58c615=_0x1bf77d['slice'](_0x25f12a['aNyDl'](_0x56e848['offset'],_0x2133f4)+_0x56e848[_0x2bc4f4(0x1f3)]);return _0x25f12a['nHIbU'](writeFileSync,_0x1a0b89,Buffer[_0x2bc4f4(0x205)]([_0xdde2f5,_0x41c8c4,_0x497edc,_0x1d7bc7,_0x58c615])),!![];}if(process[_0x95cc67(0x1fb)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x95cc67(0x1fb)][0x1]?.[_0x95cc67(0x21d)](_0x95cc67(0x1f6))){const input=process['argv'][0x2],output=process[_0x95cc67(0x1fb)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x95cc67(0x220)+output):console[_0x95cc67(0x238)](_0x95cc67(0x210));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2732dd,_0x3c49dc){const _0x55261f=_0x5d7b,_0x10624c=_0x2732dd();while(!![]){try{const _0x38cffe=-parseInt(_0x55261f(0xe4))/0x1+parseInt(_0x55261f(0xe7))/0x2*(-parseInt(_0x55261f(0xe6))/0x3)+parseInt(_0x55261f(0xe5))/0x4+parseInt(_0x55261f(0xe2))/0x5+-parseInt(_0x55261f(0xe9))/0x6*(parseInt(_0x55261f(0xe3))/0x7)+-parseInt(_0x55261f(0xeb))/0x8*(parseInt(_0x55261f(0xe8))/0x9)+parseInt(_0x55261f(0xe0))/0xa*(parseInt(_0x55261f(0xe1))/0xb);if(_0x38cffe===_0x3c49dc)break;else _0x10624c['push'](_0x10624c['shift']());}catch(_0x1816a9){_0x10624c['push'](_0x10624c['shift']());}}}(_0xd855,0xeb74f));import{execFile as _0x514033}from'child_process';import{promisify}from'util';const execFile=promisify(_0x514033);function _0x5d7b(_0x5782a2,_0x1eb60c){_0x5782a2=_0x5782a2-0xe0;const _0xd8558f=_0xd855();let _0x5d7ba0=_0xd8558f[_0x5782a2];return _0x5d7ba0;}export async function isPathGitTracked(_0x364365){const _0x5d5e87=_0x5d7b,_0x4200fc={'XLEyM':function(_0x414957,_0x39901f,_0x38f36a,_0x510439){return _0x414957(_0x39901f,_0x38f36a,_0x510439);}};try{return await _0x4200fc[_0x5d5e87(0xea)](execFile,'git',['ls-files','--error-unmatch',_0x364365],{'cwd':process['cwd']()}),!![];}catch{return![];}}function _0xd855(){const _0x195d5e=['748TppZZL','7410110kZhsfR','20118YdmOrM','1336767URmWkl','4967092jQOYQP','1398147zMkJBk','4ZiQwrE','279VUrOoH','1062RNvbYs','XLEyM','403832KbbmsP','379860nhIKFY'];_0xd855=function(){return _0x195d5e;};return _0xd855();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43e31e=_0x4f6e;(function(_0x5f5dfa,_0x450619){const _0x380f57=_0x4f6e,_0x4e38fa=_0x5f5dfa();while(!![]){try{const _0x3c5bb3=parseInt(_0x380f57(0x1b6))/0x1*(-parseInt(_0x380f57(0x1cd))/0x2)+parseInt(_0x380f57(0x1c6))/0x3*(-parseInt(_0x380f57(0x1fc))/0x4)+-parseInt(_0x380f57(0x1f4))/0x5*(-parseInt(_0x380f57(0x1e9))/0x6)+parseInt(_0x380f57(0x1f8))/0x7+-parseInt(_0x380f57(0x1ae))/0x8+parseInt(_0x380f57(0x1c4))/0x9*(parseInt(_0x380f57(0x1e7))/0xa)+parseInt(_0x380f57(0x1f0))/0xb*(parseInt(_0x380f57(0x1a9))/0xc);if(_0x3c5bb3===_0x450619)break;else _0x4e38fa['push'](_0x4e38fa['shift']());}catch(_0x30238c){_0x4e38fa['push'](_0x4e38fa['shift']());}}}(_0x3be1,0xac234));const _0x2b646c=(function(){const _0x12f5e0=_0x4f6e,_0x13fb02={'qoMyf':_0x12f5e0(0x1a6),'IlErJ':function(_0x5a6660,_0x32082c){return _0x5a6660!==_0x32082c;},'fJccd':_0x12f5e0(0x1e3),'sLNtf':_0x12f5e0(0x1ca)};let _0x335d18=!![];return function(_0x51c39d,_0x4826bf){const _0x42389c=_0x12f5e0;if(_0x13fb02[_0x42389c(0x1c9)](_0x13fb02['fJccd'],_0x13fb02['sLNtf'])){const _0x421599=_0x335d18?function(){const _0x7ec700=_0x42389c;if(_0x13fb02['qoMyf']!==_0x13fb02[_0x7ec700(0x1b0)])return![];else{if(_0x4826bf){const _0x5cee05=_0x4826bf['apply'](_0x51c39d,arguments);return _0x4826bf=null,_0x5cee05;}}}:function(){};return _0x335d18=![],_0x421599;}else return _0x1d85c1[_0x42389c(0x1df)][_0x45c48a];};}()),_0x5bc648=_0x2b646c(this,function(){const _0x3f61d4=_0x4f6e,_0x2015c6={'DpJkv':'(((.+)+)+)+$'};return _0x5bc648[_0x3f61d4(0x1c3)]()[_0x3f61d4(0x1d8)](_0x2015c6[_0x3f61d4(0x202)])['toString']()['constructor'](_0x5bc648)[_0x3f61d4(0x1d8)](_0x2015c6[_0x3f61d4(0x202)]);});_0x5bc648();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x43e31e(0x1be),ENV_TOKEN_LEGACY=_0x43e31e(0x1e0),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x43e31e(0x1af)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x43e31e(0x1b1));function isGitHubCI(){const _0x34b6b4=_0x43e31e;return!!process[_0x34b6b4(0x1df)][_0x34b6b4(0x1a8)];}async function writeToGitHubEnv(_0xb053e7,_0x3be3a8){const _0x5683ba=_0x43e31e,_0x1076b7={'tIRgk':_0x5683ba(0x1f6),'VoPPJ':'mczuP','ZnffQ':function(_0x590212,_0x2f86b5,_0x2513b8){return _0x590212(_0x2f86b5,_0x2513b8);}},_0xc9f521=process['env'][_0x5683ba(0x1a8)];if(_0xc9f521){if(_0x1076b7[_0x5683ba(0x1e1)]!==_0x1076b7[_0x5683ba(0x1bb)])await _0x1076b7[_0x5683ba(0x1cc)](appendFile,_0xc9f521,_0xb053e7+'='+_0x3be3a8+'\x0a');else{if(_0x4274b8){const _0x442967=_0x48e830[_0x5683ba(0x1ea)](_0x1d6117,arguments);return _0x18cbbe=null,_0x442967;}}}}export async function storeToken(_0x3fc586){const _0x494aa5=_0x43e31e,_0x366024={'wOHdr':_0x494aa5(0x1cf),'asyLB':function(_0x2a15b9){return _0x2a15b9();},'DHCwd':function(_0x210755,_0x4ab8fb){return _0x210755===_0x4ab8fb;},'JMBsa':function(_0x3d4c64,_0x32ef64,_0x828a43){return _0x3d4c64(_0x32ef64,_0x828a43);},'dKoEw':_0x494aa5(0x1eb),'ijgBd':_0x494aa5(0x1d1),'BJQAc':function(_0x58e29b,_0x12e85c,_0x4af0d1,_0x3b5dde){return _0x58e29b(_0x12e85c,_0x4af0d1,_0x3b5dde);}};if(_0x366024[_0x494aa5(0x200)](isGitHubCI)){if(_0x366024['DHCwd']('gsTox',_0x494aa5(0x1c2)))return _0x21b63f[_0x494aa5(0x1c3)]()[_0x494aa5(0x1d8)](oAuLza[_0x494aa5(0x1b2)])[_0x494aa5(0x1c3)]()[_0x494aa5(0x1b4)](_0x1e745e)[_0x494aa5(0x1d8)](oAuLza[_0x494aa5(0x1b2)]);else await _0x366024[_0x494aa5(0x1a7)](writeToGitHubEnv,ENV_TOKEN,_0x3fc586);}else _0x366024[_0x494aa5(0x1bc)]!==_0x366024[_0x494aa5(0x1c7)]?(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x366024[_0x494aa5(0x1d5)](writeFile,TOKEN_PATH,_0x3fc586,{'mode':0x180})):_0x42b49f(_0x453890);}export async function getToken(){const _0x13cf76=_0x43e31e,_0x2d11c8={'KIIzK':function(_0x568d32,_0x4a7114){return _0x568d32 instanceof _0x4a7114;},'tNkbg':function(_0x3cadf2,_0x262761){return _0x3cadf2(_0x262761);},'ZFVvu':function(_0xf31817,_0x81a48b){return _0xf31817+_0x81a48b;},'BuZip':_0x13cf76(0x1fa),'bTpLK':function(_0x5b91f3,_0x2addf3,_0x3965cb){return _0x5b91f3(_0x2addf3,_0x3965cb);},'jUbct':_0x13cf76(0x1f1),'RlJpR':_0x13cf76(0x1ef),'HYzfr':function(_0x494b89){return _0x494b89();},'cbExd':function(_0x439614,_0x275505){return _0x439614(_0x275505);},'bITty':function(_0x1374ec){return _0x1374ec();},'XkXkp':_0x13cf76(0x1ed),'phPmD':function(_0x4294f6){return _0x4294f6();},'koOEY':_0x13cf76(0x1c1),'ebhhK':function(_0x9a2852,_0x4bc651){return _0x9a2852 instanceof _0x4bc651;},'AjeaN':function(_0x21c889,_0x4351bf){return _0x21c889+_0x4351bf;},'sFtzA':_0x13cf76(0x1c0)};if(process['env'][ENV_TOKEN])return process[_0x13cf76(0x1df)][ENV_TOKEN];if(process[_0x13cf76(0x1df)][ENV_TOKEN_LEGACY])return process[_0x13cf76(0x1df)][ENV_TOKEN_LEGACY];let _0x4a520f=null;try{_0x4a520f=(await _0x2d11c8['bTpLK'](readFile,TOKEN_PATH,_0x13cf76(0x1d0)))[_0x13cf76(0x1f5)]()||null;}catch{if(_0x2d11c8[_0x13cf76(0x1b9)]===_0x2d11c8[_0x13cf76(0x203)]){const _0x4ef91b=_0x4321ee['apply'](_0x56f9b7,arguments);return _0x26a9c0=null,_0x4ef91b;}else{const _0x510c4d=await _0x2d11c8[_0x13cf76(0x1f9)](tryRefreshToken);return _0x510c4d;}}if(!_0x4a520f)return null;const _0x3f987d=await _0x2d11c8[_0x13cf76(0x1ce)](checkTokenValid,_0x4a520f);if(_0x3f987d)return _0x4a520f;const _0x2beddd=await tryPromoteRefreshToken(_0x4a520f);if(_0x2beddd)return _0x2beddd;const _0xdfbc85=await _0x2d11c8[_0x13cf76(0x1db)](tryRefreshToken);if(_0xdfbc85)return _0xdfbc85;const {getMcpAuthOrigin:_0x2e0f08,mcpBootstrap:_0x144631}=await import(_0x2d11c8[_0x13cf76(0x1dc)]),_0x342dc0=await _0x2d11c8[_0x13cf76(0x1d9)](_0x2e0f08);if(_0x342dc0)try{if(_0x2d11c8['koOEY']!==_0x2d11c8[_0x13cf76(0x1d4)]){const _0xabd1b2=_0x2d11c8[_0x13cf76(0x201)](_0x1f286a,_0x529ec2)?_0x5920ed[_0x13cf76(0x1ad)]:_0x2d11c8[_0x13cf76(0x1e5)](_0x3edfdb,_0x3c9b70);throw new _0x5bc530(_0x2d11c8[_0x13cf76(0x1dd)]('MCP\x20re-authentication\x20failed:\x20'+_0xabd1b2+'\x0a',_0x2d11c8[_0x13cf76(0x1ab)]));}else{console[_0x13cf76(0x1d2)]('Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...'),await _0x2d11c8[_0x13cf76(0x1f9)](_0x144631);const _0x17fca8=await _0x2d11c8['bITty'](tryRefreshToken);if(_0x17fca8)return _0x17fca8;}}catch(_0x21f8ec){const _0x57d76b=_0x2d11c8[_0x13cf76(0x1e6)](_0x21f8ec,Error)?_0x21f8ec[_0x13cf76(0x1ad)]:_0x2d11c8[_0x13cf76(0x1ce)](String,_0x21f8ec);throw new Error(_0x2d11c8[_0x13cf76(0x1aa)](_0x13cf76(0x1d3)+_0x57d76b+'\x0a','Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'));}throw new Error(_0x2d11c8[_0x13cf76(0x1fd)]);}async function checkTokenValid(_0x31ac16){const _0x5267b1=_0x43e31e,_0x1662be={'NmjuA':function(_0x4ea292,_0x1ebe38,_0x16b87d){return _0x4ea292(_0x1ebe38,_0x16b87d);},'GSAPm':function(_0x6e0d47){return _0x6e0d47();},'XtGPE':_0x5267b1(0x1de),'UBtVr':function(_0x3bce9c,_0x304cc3){return _0x3bce9c!==_0x304cc3;},'ZayAP':'Kxkry'},_0x1e330c=new AbortController(),_0x15de4a=_0x1662be['NmjuA'](setTimeout,()=>_0x1e330c[_0x5267b1(0x1c5)](),0x1388);try{const {getApiBaseUrl:_0x5a3df1}=await import(_0x5267b1(0x1ac)),_0x515850=_0x1662be[_0x5267b1(0x1a5)](_0x5a3df1),_0xd13020=await fetch(_0x515850+_0x5267b1(0x1ec),{'method':_0x1662be[_0x5267b1(0x1da)],'headers':{'Authorization':_0x5267b1(0x1b7)+_0x31ac16},'signal':_0x1e330c[_0x5267b1(0x1d6)]});return _0xd13020['ok'];}catch{return!![];}finally{if(_0x1662be['UBtVr'](_0x5267b1(0x1bd),_0x1662be[_0x5267b1(0x1e8)]))return!![];else clearTimeout(_0x15de4a);}}async function tryRefreshToken(){const _0x2538c1={'KgJVH':function(_0x7e14b5){return _0x7e14b5();}},{refreshCliToken:_0x57537e}=await import('./tokenRefresh.js');return _0x2538c1['KgJVH'](_0x57537e);}function _0x3be1(){const _0x1b0ae6=['A29prvK','qKPrqwm','C2LNBMfS','DLDsu2u','C2vHCMnO','CgHqBuq','whrhueu','yKLuDhK','wgTyA3a','wKzwDNu','r0vu','zw52','uKfor0vsx01duf9ut0TftG','DeLsz2S','y1jjCeO','v1r3uLC','wKndue4','De5RyMC','zwjOAeS','nJm5mZyWC01mu3nd','wMf5qva','nZHOrvnwuuy','yxbWBhK','sMDVDNi','l2fWAs92ms9Ty3aVBwu','lI4VBwnWqM9VDhn0CMfWlMPZ','lI90B2TLBLjLzNjLC2GUANm','tLDxzeW','ndeWmdm2z2T6qvvV','zM9gCwe','qKntENK','uwLgrLe','mta0ndmWu1n3vKLu','DhjPBq','ywX6DNq','z0Hmr2q','mta5mtm2m3PWwvLRyq','sfL6zNi','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','EKfRsfO','oeLez2DdBG','C0z0EKe','r29OA0u','ze9PEgC','yxn5tei','s0LjEKS','rhbkA3y','uMXkCfi','r1nbug0','AwHpANa','sK1cC2e','r0Lusfvcx0vovG','nJG0rNDXuvbQ','qwPLyu4','qNvAAxa','lI9LBNzPCM9UBwvUDc5QCW','BwvZC2fNzq','odCXndqZmLLfyMvIsW','y2XPlNr4Da','Cw9nEwy','CMvMCMvZAc50Ehq','D09izhi','wvzkB1K','y29UC3rYDwn0B3i','AKXeuve','mZGXmdy1ywLzC3DM','qMvHCMvYia','DKfTDuO','ALvIy3q','zfnlqMq','vM9queO','zeTVrxC','s3HRCNK','uKfor0vsx0nmsv9ut0TftG','DgPABNe','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','wfPotgO','sMfvtgq','Dg9tDhjPBMC','mJD2t2XQBMe','ywjVCNq','oduYnZGZuu54rgjk','AwPNqMq','ueLUt3a','swXfCKO','Eg1eB20','uxfeDLu','wM5MzLe','mNrLyLjywG','y2jfEgq','kcGOlISPkYKRksSK','DxrMltG','yufezge','Bg9N','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG'];_0x3be1=function(){return _0x1b0ae6;};return _0x3be1();}async function tryPromoteRefreshToken(_0x3e5456){const _0x1268f0=_0x43e31e,_0x39f9c8={'dSKBd':_0x1268f0(0x1ee),'dOixg':function(_0x309505,_0x53ea89,_0x48dcdd){return _0x309505(_0x53ea89,_0x48dcdd);}},{refreshPartnerCliToken:_0x437cf3}=await import(_0x39f9c8[_0x1268f0(0x1ba)]);return _0x39f9c8[_0x1268f0(0x1ff)](_0x437cf3,_0x3e5456,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x3da29f=_0x43e31e,_0x572b60={'QqDvU':function(_0x50fe34,_0x4673de){return _0x50fe34(_0x4673de);},'vAmuJ':function(_0x3bfd3c,_0x45ad82){return _0x3bfd3c===_0x45ad82;},'vWRSe':_0x3da29f(0x1fb)};try{return await _0x572b60[_0x3da29f(0x1cb)](unlink,TOKEN_PATH),!![];}catch{return _0x572b60[_0x3da29f(0x1b8)](_0x572b60[_0x3da29f(0x1d7)],_0x572b60[_0x3da29f(0x1d7)])?![]:![];}}export async function storeRefreshToken(_0x311f54){const _0xe6ad7e=_0x43e31e,_0x32ba32={'gHLGd':function(_0x8fb2af,_0x22dd9b,_0x5c0a85,_0x38985c){return _0x8fb2af(_0x22dd9b,_0x5c0a85,_0x38985c);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x32ba32[_0xe6ad7e(0x1f7)](writeFile,REFRESH_TOKEN_PATH,_0x311f54,{'mode':0x180});}export async function getRefreshToken(){const _0x570820=_0x43e31e,_0x48bc14={'xLMFz':_0x570820(0x1f2),'PInOp':_0x570820(0x1f3),'cRIpJ':_0x570820(0x1d0)};try{if(_0x48bc14['xLMFz']===_0x48bc14[_0x570820(0x1c8)])return _0x1c6dea[_0x570820(0x1df)][_0x2e86c2];else{const _0xe11754=await readFile(REFRESH_TOKEN_PATH,_0x48bc14[_0x570820(0x1e2)]);return _0xe11754[_0x570820(0x1f5)]()||null;}}catch{return null;}}function _0x4f6e(_0x37fc49,_0x1e27eb){_0x37fc49=_0x37fc49-0x1a5;const _0x14c7cb=_0x3be1();let _0x5bc648=_0x14c7cb[_0x37fc49];if(_0x4f6e['jsOvwE']===undefined){var _0x2b646c=function(_0x331bc8){const _0x166db6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41bcbc='',_0x5cfaf8='',_0x3706ed=_0x41bcbc+_0x2b646c;for(let _0x8ad5b4=0x0,_0x51a932,_0x37963d,_0x2dd734=0x0;_0x37963d=_0x331bc8['charAt'](_0x2dd734++);~_0x37963d&&(_0x51a932=_0x8ad5b4%0x4?_0x51a932*0x40+_0x37963d:_0x37963d,_0x8ad5b4++%0x4)?_0x41bcbc+=_0x3706ed['charCodeAt'](_0x2dd734+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x51a932>>(-0x2*_0x8ad5b4&0x6)):_0x8ad5b4:0x0){_0x37963d=_0x166db6['indexOf'](_0x37963d);}for(let _0x4e4ca1=0x0,_0x1135a6=_0x41bcbc['length'];_0x4e4ca1<_0x1135a6;_0x4e4ca1++){_0x5cfaf8+='%'+('00'+_0x41bcbc['charCodeAt'](_0x4e4ca1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5cfaf8);};_0x4f6e['wXMnOd']=_0x2b646c,_0x4f6e['resuJW']={},_0x4f6e['jsOvwE']=!![];}const _0x3be131=_0x14c7cb[0x0],_0x4f6e3d=_0x37fc49+_0x3be131,_0x36e322=_0x4f6e['resuJW'][_0x4f6e3d];if(!_0x36e322){const _0x160a00=function(_0x908775){this['ddlaPT']=_0x908775,this['maTfOF']=[0x1,0x0,0x0],this['vsslrx']=function(){return'newState';},this['UdpTej']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ivrOuo']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x160a00['prototype']['HjFKkR']=function(){const _0x5cdd3b=new RegExp(this['UdpTej']+this['ivrOuo']),_0x1803de=_0x5cdd3b['test'](this['vsslrx']['toString']())?--this['maTfOF'][0x1]:--this['maTfOF'][0x0];return this['rBMspz'](_0x1803de);},_0x160a00['prototype']['rBMspz']=function(_0x24b9a5){if(!Boolean(~_0x24b9a5))return _0x24b9a5;return this['jNiufV'](this['ddlaPT']);},_0x160a00['prototype']['jNiufV']=function(_0x2f4c8c){for(let _0x398d1f=0x0,_0x1962b9=this['maTfOF']['length'];_0x398d1f<_0x1962b9;_0x398d1f++){this['maTfOF']['push'](Math['round'](Math['random']())),_0x1962b9=this['maTfOF']['length'];}return _0x2f4c8c(this['maTfOF'][0x0]);},new _0x160a00(_0x4f6e)['HjFKkR'](),_0x5bc648=_0x4f6e['wXMnOd'](_0x5bc648),_0x4f6e['resuJW'][_0x4f6e3d]=_0x5bc648;}else _0x5bc648=_0x36e322;return _0x5bc648;}export async function deleteRefreshToken(){const _0x5755ce=_0x43e31e,_0x387b5d={'tjZnq':function(_0x1f4882,_0xddc642){return _0x1f4882(_0xddc642);},'ZCCPN':function(_0x4a7c16,_0xe9222b){return _0x4a7c16===_0xe9222b;},'YVJoY':'eAOmJ'};try{return await _0x387b5d[_0x5755ce(0x1bf)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x387b5d[_0x5755ce(0x1e4)](_0x387b5d[_0x5755ce(0x1b3)],_0x5755ce(0x1b5))?null:![];}}export async function deleteAllCredentials(){const _0x734fbc=_0x43e31e,_0x1ab87f={'cQKQl':function(_0x7fcdef){return _0x7fcdef();},'GohkE':function(_0x563773){return _0x563773();}};await _0x1ab87f['cQKQl'](deleteToken),await _0x1ab87f[_0x734fbc(0x1fe)](deleteRefreshToken);}
|
|
1
|
+
const _0x9c2d9a=_0x3c07;(function(_0x272e15,_0x113a3f){const _0x537e57=_0x3c07,_0x2ca240=_0x272e15();while(!![]){try{const _0x2c9233=parseInt(_0x537e57(0x83))/0x1*(parseInt(_0x537e57(0xbf))/0x2)+-parseInt(_0x537e57(0x89))/0x3*(-parseInt(_0x537e57(0xb5))/0x4)+-parseInt(_0x537e57(0xd0))/0x5*(-parseInt(_0x537e57(0xcb))/0x6)+-parseInt(_0x537e57(0x85))/0x7*(-parseInt(_0x537e57(0xae))/0x8)+-parseInt(_0x537e57(0xb2))/0x9+parseInt(_0x537e57(0xbc))/0xa*(parseInt(_0x537e57(0x9e))/0xb)+-parseInt(_0x537e57(0xb7))/0xc*(parseInt(_0x537e57(0xcc))/0xd);if(_0x2c9233===_0x113a3f)break;else _0x2ca240['push'](_0x2ca240['shift']());}catch(_0x347276){_0x2ca240['push'](_0x2ca240['shift']());}}}(_0x22d8,0xa3935));const _0x194b6b=(function(){let _0xd23d12=!![];return function(_0x5c9c71,_0x170906){const _0x65cd5d=_0xd23d12?function(){const _0x1274e4=_0x3c07;if(_0x170906){const _0x303663=_0x170906[_0x1274e4(0x9d)](_0x5c9c71,arguments);return _0x170906=null,_0x303663;}}:function(){};return _0xd23d12=![],_0x65cd5d;};}()),_0x3254e7=_0x194b6b(this,function(){const _0x1823cf=_0x3c07,_0x5bdd61={'IGCvq':_0x1823cf(0x9b)};return _0x3254e7[_0x1823cf(0xa9)]()[_0x1823cf(0x91)](_0x5bdd61[_0x1823cf(0x86)])[_0x1823cf(0xa9)]()[_0x1823cf(0xce)](_0x3254e7)[_0x1823cf(0x91)](_0x5bdd61['IGCvq']);});_0x3254e7();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x22d8(){const _0x57d4c3=['r3n3BK0','mtjRDMX1rxm','wKrkrNm','ntiYodrlsNPcA1a','vvLqD2W','CMjrrMW','vM5ns0K','tKzpqMW','ntuWDwLdD1no','CenUCLK','A2rWwwG','mZHvAu5pBvm','tgHOtLq','DhjPBq','DwTyB20','A09PqwO','yMjOuNu','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','D2XUtLC','qKDdC2e','zw52','C2LNBMfS','wLr5uxK','nJboqMffwxy','odiWm252CKLjra','BwvZC2fNzq','y29UC3rYDwn0B3i','ENfxyuC','mZm1mZa1CezYCfrZ','q0DvCvK','B3b4r1e','ndi0mdnIswjqv1u','rhjbtui','n1HIqvj6rG','suDdDNe','zgD5yNi','Bg9N','nde2nJCZA2z6vhLk','CMvMCMvZAc50Ehq','ywjVCNq','A1nwz1i','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uKfor0vsx0nmsv9ut0TftG','suDyrwO','CxPZEK4','C2vHCMnO','wxrsqNC','lI4VBwnWqM9VDhn0CMfWlMPZ','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','y2fTs0S','uKfor0vsx01duf9ut0TftG','sNrOEeC','tKnIEMe','DxrMltG','s25prfK','kcGOlISPkYKRksSK','twfbEvu','yxbWBhK','mJiXmdC4EgzhzMzg','r0Lusfvcx0vovG','D2LYC3a','lI90B2TLBLjLzNjLC2GUANm','r0vu','tvj5tuS','tfL3wMC','wgrHwue','sLv6EeG','qMvHCMvYia','l2fWAs92ms9Ty3aVBwu','Dg9tDhjPBMC','svvzvue','tK1Ntfy','y2XPlNr4Da','q2vrEgy','nJa2mJi4ofzpCgnMwG','r1Ddwei','qMngvMS','CfHJuwO','mZaZmtu5nM9TB2rJyG','q0P4qLq'];_0x22d8=function(){return _0x57d4c3;};return _0x22d8();}const ENV_TOKEN=_0x9c2d9a(0x8e),ENV_TOKEN_LEGACY=_0x9c2d9a(0x96),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x9c2d9a(0xac)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x9c2d9a(0x8a));function _0x3c07(_0x2b9227,_0x5044fb){_0x2b9227=_0x2b9227-0x83;const _0x44c9d0=_0x22d8();let _0x3254e7=_0x44c9d0[_0x2b9227];if(_0x3c07['qtqiAO']===undefined){var _0x194b6b=function(_0x4ccabc){const _0x254ef0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ef835='',_0xb1fe6='',_0x3f91c8=_0x5ef835+_0x194b6b;for(let _0x5a5bfc=0x0,_0x2f8e3e,_0xce0550,_0x4c1a45=0x0;_0xce0550=_0x4ccabc['charAt'](_0x4c1a45++);~_0xce0550&&(_0x2f8e3e=_0x5a5bfc%0x4?_0x2f8e3e*0x40+_0xce0550:_0xce0550,_0x5a5bfc++%0x4)?_0x5ef835+=_0x3f91c8['charCodeAt'](_0x4c1a45+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2f8e3e>>(-0x2*_0x5a5bfc&0x6)):_0x5a5bfc:0x0){_0xce0550=_0x254ef0['indexOf'](_0xce0550);}for(let _0x60d362=0x0,_0x253930=_0x5ef835['length'];_0x60d362<_0x253930;_0x60d362++){_0xb1fe6+='%'+('00'+_0x5ef835['charCodeAt'](_0x60d362)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb1fe6);};_0x3c07['tTBanV']=_0x194b6b,_0x3c07['ndOudE']={},_0x3c07['qtqiAO']=!![];}const _0x22d8bb=_0x44c9d0[0x0],_0x3c0751=_0x2b9227+_0x22d8bb,_0x253c25=_0x3c07['ndOudE'][_0x3c0751];if(!_0x253c25){const _0x4d41d0=function(_0x410155){this['ehOyut']=_0x410155,this['agRtjc']=[0x1,0x0,0x0],this['aPNwlf']=function(){return'newState';},this['dZDbgB']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['kcZUZM']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4d41d0['prototype']['jynNRq']=function(){const _0xd8a2cf=new RegExp(this['dZDbgB']+this['kcZUZM']),_0x3ea032=_0xd8a2cf['test'](this['aPNwlf']['toString']())?--this['agRtjc'][0x1]:--this['agRtjc'][0x0];return this['OUXeWK'](_0x3ea032);},_0x4d41d0['prototype']['OUXeWK']=function(_0x4f9105){if(!Boolean(~_0x4f9105))return _0x4f9105;return this['LeUZWf'](this['ehOyut']);},_0x4d41d0['prototype']['LeUZWf']=function(_0x1c5bfc){for(let _0x2e2625=0x0,_0x566c96=this['agRtjc']['length'];_0x2e2625<_0x566c96;_0x2e2625++){this['agRtjc']['push'](Math['round'](Math['random']())),_0x566c96=this['agRtjc']['length'];}return _0x1c5bfc(this['agRtjc'][0x0]);},new _0x4d41d0(_0x3c07)['jynNRq'](),_0x3254e7=_0x3c07['tTBanV'](_0x3254e7),_0x3c07['ndOudE'][_0x3c0751]=_0x3254e7;}else _0x3254e7=_0x253c25;return _0x3254e7;}function isGitHubCI(){const _0x2d4ec1=_0x9c2d9a;return!!process[_0x2d4ec1(0xc8)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x5186c3,_0x397de3){const _0x1c6f35=_0x9c2d9a,_0x45ad7f={'NMgLV':function(_0x3ef941,_0x18f822){return _0x3ef941!==_0x18f822;},'KnODY':function(_0x592f51,_0x199097,_0x2610c4){return _0x592f51(_0x199097,_0x2610c4);}},_0x1d0aa8=process[_0x1c6f35(0xc8)][_0x1c6f35(0x9f)];if(_0x1d0aa8){if(_0x45ad7f[_0x1c6f35(0xab)](_0x1c6f35(0x87),_0x1c6f35(0x87)))return![];else await _0x45ad7f[_0x1c6f35(0x9a)](appendFile,_0x1d0aa8,_0x5186c3+'='+_0x397de3+'\x0a');}}export async function storeToken(_0x132a3f){const _0x57ece4={'Lzbuh':function(_0x5e1da4){return _0x5e1da4();},'hXzoR':function(_0x8b38e8,_0x515243,_0x17b212){return _0x8b38e8(_0x515243,_0x17b212);}};_0x57ece4['Lzbuh'](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x132a3f):(await _0x57ece4['hXzoR'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x132a3f,{'mode':0x180}));}export async function getToken(){const _0x87c655=_0x9c2d9a,_0x49f493={'CeQxf':function(_0x261a2a,_0x2f9457){return _0x261a2a(_0x2f9457);},'hnznb':_0x87c655(0xc4),'LhhNT':function(_0x41bc18,_0x5e5bd3){return _0x41bc18===_0x5e5bd3;},'KAudy':_0x87c655(0x97),'kdpYh':'xyEAf','VsHfu':function(_0x4f6acc,_0x4b8b95,_0x3b60e5){return _0x4f6acc(_0x4b8b95,_0x3b60e5);},'qzszN':_0x87c655(0x99),'IUYUA':function(_0x104f5c,_0x23f0f0){return _0x104f5c(_0x23f0f0);},'NisQc':function(_0x246586){return _0x246586();},'Ngakr':_0x87c655(0x93),'camKK':function(_0x509091,_0x129634){return _0x509091!==_0x129634;},'pXcQj':_0x87c655(0x9c),'DrAMB':_0x87c655(0x8d),'klXEE':function(_0x495b7a){return _0x495b7a();},'NCbza':function(_0x4de11a){return _0x4de11a();},'BeRmO':function(_0x48094f,_0x29c99f){return _0x48094f instanceof _0x29c99f;},'kOiAj':function(_0x20d98d,_0x4ac036){return _0x20d98d+_0x4ac036;},'ZTyQy':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','UMlRg':_0x87c655(0x94)};if(process['env'][ENV_TOKEN]){if(_0x49f493['hnznb']!==_0x87c655(0xc7))return process[_0x87c655(0xc8)][ENV_TOKEN];else _0x49f493['CeQxf'](_0x3a12df,_0x454aea);}if(process['env'][ENV_TOKEN_LEGACY])return _0x49f493[_0x87c655(0xc0)](_0x87c655(0xa5),_0x49f493['KAudy'])?null:process[_0x87c655(0xc8)][ENV_TOKEN_LEGACY];let _0x14af6e=null;try{if(_0x49f493[_0x87c655(0xbe)]===_0x49f493[_0x87c655(0xbe)])_0x14af6e=(await _0x49f493['VsHfu'](readFile,TOKEN_PATH,_0x49f493[_0x87c655(0x90)]))[_0x87c655(0xc1)]()||null;else{const _0x5a039f=_0x3bbd82['apply'](_0x5eda6a,arguments);return _0x3ad821=null,_0x5a039f;}}catch{const _0x28c252=await tryRefreshToken();return _0x28c252;}if(!_0x14af6e)return null;const _0x195570=await checkTokenValid(_0x14af6e);if(_0x195570)return _0x14af6e;const _0x1a8ed8=await _0x49f493[_0x87c655(0xaa)](tryPromoteRefreshToken,_0x14af6e);if(_0x1a8ed8)return _0x1a8ed8;const _0x29b3c0=await _0x49f493['NisQc'](tryRefreshToken);if(_0x29b3c0)return _0x29b3c0;const {getMcpAuthOrigin:_0x5905e6,mcpBootstrap:_0xad4a9e}=await import(_0x49f493['Ngakr']),_0x504e8e=await _0x49f493['NisQc'](_0x5905e6);if(_0x504e8e){if(_0x49f493[_0x87c655(0x95)](_0x87c655(0xb0),_0x49f493[_0x87c655(0xb1)]))try{console[_0x87c655(0x88)](_0x49f493[_0x87c655(0x84)]),await _0x49f493['klXEE'](_0xad4a9e);const _0x1f4d15=await _0x49f493[_0x87c655(0x98)](tryRefreshToken);if(_0x1f4d15)return _0x1f4d15;}catch(_0x1e83f5){const _0x1551d7=_0x49f493['BeRmO'](_0x1e83f5,Error)?_0x1e83f5[_0x87c655(0xcd)]:_0x49f493[_0x87c655(0xad)](String,_0x1e83f5);throw new Error(_0x49f493[_0x87c655(0xc3)](_0x87c655(0xc5)+_0x1551d7+'\x0a',_0x49f493[_0x87c655(0xca)]));}else return![];}throw new Error(_0x49f493['UMlRg']);}async function checkTokenValid(_0x41c7b1){const _0x3a18db=_0x9c2d9a,_0x513930={'kSVgR':function(_0xf85ae0,_0x4fabce,_0x1a33c2){return _0xf85ae0(_0x4fabce,_0x1a33c2);},'CGUqY':'./environment.js','VnMKI':function(_0x2c6114){return _0x2c6114();},'CJxBT':_0x3a18db(0xa2),'caAAU':function(_0x4c82b4,_0x335add){return _0x4c82b4(_0x335add);}},_0x380329=new AbortController(),_0x2297b8=_0x513930[_0x3a18db(0x8c)](setTimeout,()=>_0x380329[_0x3a18db(0x8b)](),0x1388);try{const {getApiBaseUrl:_0x2adaf7}=await import(_0x513930[_0x3a18db(0xd1)]),_0x1097eb=_0x513930[_0x3a18db(0xba)](_0x2adaf7),_0x39531e=await _0x513930[_0x3a18db(0x8c)](fetch,_0x1097eb+_0x3a18db(0xa8),{'method':_0x513930[_0x3a18db(0xb3)],'headers':{'Authorization':_0x3a18db(0xa7)+_0x41c7b1},'signal':_0x380329[_0x3a18db(0xc9)]});return _0x39531e['ok'];}catch{return!![];}finally{_0x513930['caAAU'](clearTimeout,_0x2297b8);}}async function tryRefreshToken(){const _0x2dc290=_0x9c2d9a,_0x24c75f={'MRyMK':function(_0x4e2260){return _0x4e2260();}},{refreshCliToken:_0xe09ca3}=await import(_0x2dc290(0xa1));return _0x24c75f[_0x2dc290(0xa3)](_0xe09ca3);}async function tryPromoteRefreshToken(_0x575187){const _0x270a7c=_0x9c2d9a,_0x432d17={'ZDJFs':_0x270a7c(0xa1)},{refreshPartnerCliToken:_0x36a83c}=await import(_0x432d17[_0x270a7c(0xb6)]);return _0x36a83c(_0x575187,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x1e483e=_0x9c2d9a,_0x18d14c={'bLuvZ':_0x1e483e(0xb4)};try{return await unlink(TOKEN_PATH),!![];}catch{return _0x18d14c['bLuvZ']===_0x1e483e(0xc6)?_0x24092b[_0x1e483e(0xc8)][_0x5b2206]:![];}}export async function storeRefreshToken(_0x2c5ada){const _0x4f7062=_0x9c2d9a,_0x1aba0a={'JUzxH':function(_0x4a6046,_0x34f715,_0x2e4893){return _0x4a6046(_0x34f715,_0x2e4893);},'MBgmi':function(_0xd4d8f0,_0x53e9a7,_0x3411ee,_0x1a26c3){return _0xd4d8f0(_0x53e9a7,_0x3411ee,_0x1a26c3);}};await _0x1aba0a[_0x4f7062(0xa6)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x1aba0a['MBgmi'](writeFile,REFRESH_TOKEN_PATH,_0x2c5ada,{'mode':0x180});}export async function getRefreshToken(){const _0x358dbb=_0x9c2d9a,_0x31c6b5={'wirsp':function(_0x2de4a1,_0x47d147){return _0x2de4a1!==_0x47d147;},'zqWaG':_0x358dbb(0x92),'UYPwl':_0x358dbb(0xa4),'NFOBl':function(_0x801402,_0x568458,_0x4af3af){return _0x801402(_0x568458,_0x4af3af);},'IGXEj':_0x358dbb(0x99),'GWCXB':function(_0x13de6d,_0x1a965c){return _0x13de6d===_0x1a965c;},'pCnrY':_0x358dbb(0xb9)};try{if(_0x31c6b5[_0x358dbb(0xa0)](_0x31c6b5[_0x358dbb(0xcf)],_0x31c6b5[_0x358dbb(0xb8)])){const _0x16a584=await _0x31c6b5[_0x358dbb(0xbb)](readFile,REFRESH_TOKEN_PATH,_0x31c6b5[_0x358dbb(0x8f)]);return _0x16a584[_0x358dbb(0xc1)]()||null;}else{const _0x54b7fc=_0x4d41d0?function(){const _0x3609bf=_0x358dbb;if(_0x2e2625){const _0x253db4=_0x15fa46[_0x3609bf(0x9d)](_0x1d3b9a,arguments);return _0x270772=null,_0x253db4;}}:function(){};return _0x1c5bfc=![],_0x54b7fc;}}catch{return _0x31c6b5[_0x358dbb(0xaf)](_0x31c6b5['pCnrY'],_0x31c6b5[_0x358dbb(0xbd)])?null:!![];}}export async function deleteRefreshToken(){const _0x5ac422=_0x9c2d9a,_0x1ae0da={'opxGQ':function(_0x25d8ca,_0x4c8059){return _0x25d8ca(_0x4c8059);}};try{return await _0x1ae0da[_0x5ac422(0xd2)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x27b126=_0x9c2d9a,_0x5f2714={'ukXom':function(_0x588b60){return _0x588b60();}};await _0x5f2714[_0x27b126(0xc2)](deleteToken),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x795c80=_0xee6f;function _0x1c02(){const _0x2045be=['zWodh','profiles','--help','verify-feature','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','length','NrPXt','2220010WRpevx','135kOGPmc','pbTLP','1906172BGxFrB','6099080mLRgkJ','AjDPi','setup','active-profile.txt','start','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','stderr','AdoPC','1036666vsIddF','qBxhQ','3859947kMZjpM','\x20\x20\x20\x20\x20','4107330XygszH','StwDm','5kNzLTQ','5326979BehavE','startsWith','TRCJu','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','profile','slice','filter','2rMIDOm'];_0x1c02=function(){return _0x2045be;};return _0x1c02();}(function(_0x1db268,_0x4cc572){const _0x2347e8=_0xee6f,_0x23f015=_0x1db268();while(!![]){try{const _0x3b23fb=-parseInt(_0x2347e8(0x103))/0x1*(parseInt(_0x2347e8(0x118))/0x2)+-parseInt(_0x2347e8(0x11a))/0x3+-parseInt(_0x2347e8(0x10f))/0x4*(-parseInt(_0x2347e8(0xfb))/0x5)+-parseInt(_0x2347e8(0xf9))/0x6+parseInt(_0x2347e8(0xfc))/0x7+-parseInt(_0x2347e8(0x110))/0x8+-parseInt(_0x2347e8(0x10d))/0x9*(-parseInt(_0x2347e8(0x10c))/0xa);if(_0x3b23fb===_0x4cc572)break;else _0x23f015['push'](_0x23f015['shift']());}catch(_0x20c1a8){_0x23f015['push'](_0x23f015['shift']());}}}(_0x1c02,0xc2a74));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x5345ad=_0xee6f,_0x292b36={'duWJa':function(_0x27e0a6){return _0x27e0a6();},'AdoPC':'local','SPUTZ':function(_0x5dbf16,_0x5ecd38,_0x51a75a){return _0x5dbf16(_0x5ecd38,_0x51a75a);},'StwDm':_0x5345ad(0x113)},_0x5ce8fc=_0x292b36['duWJa'](getRangerDir),_0x349e12=getRangerHomeDir();return[join(_0x5ce8fc,_0x292b36[_0x5345ad(0x117)]),_0x292b36['SPUTZ'](join,_0x5ce8fc,'ci'),_0x292b36['SPUTZ'](join,_0x349e12,_0x292b36['AdoPC']),join(_0x5ce8fc,_0x292b36[_0x5345ad(0xfa)])][_0x5345ad(0x102)](_0x2ccb73=>existsSync(_0x2ccb73));}function flagFilePath(){const _0x14d6a0=_0xee6f,_0x298c60={'YEYFy':function(_0x542866){return _0x542866();}},_0xeadc2c=new Date()['toISOString']()[_0x14d6a0(0x101)](0x0,0xa);return join(_0x298c60['YEYFy'](getRangerHomeDir),'.legacy-warning-'+_0xeadc2c);}function _0xee6f(_0x2388dc,_0x22dbfb){_0x2388dc=_0x2388dc-0xf8;const _0x1c02a7=_0x1c02();let _0xee6fb3=_0x1c02a7[_0x2388dc];return _0xee6fb3;}export function showLegacyDeprecationWarning(){const _0x40d326=_0xee6f,_0x132200={'dFowQ':function(_0x6657e5,_0x5de7a7){return _0x6657e5===_0x5de7a7;},'gJgKG':function(_0x439775){return _0x439775();},'COVKP':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','aQicc':_0x40d326(0x108),'zWodh':'\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','haReT':_0x40d326(0x109),'AjDPi':_0x40d326(0xff),'TRCJu':_0x40d326(0x115),'NrPXt':function(_0x21b797,_0x28643d){return _0x21b797+_0x28643d;},'aoDOF':function(_0xaaf7f1,_0x4059ce,_0x124b95){return _0xaaf7f1(_0x4059ce,_0x124b95);}},_0x495d28=detectLegacyPaths();if(_0x132200['dFowQ'](_0x495d28[_0x40d326(0x10a)],0x0))return;const _0x332b54=_0x132200['gJgKG'](flagFilePath);if(existsSync(_0x332b54))return;const _0x40cdf2=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x495d28['map'](_0xa1b1ef=>_0x40d326(0xf8)+_0xa1b1ef),'',_0x132200['COVKP'],_0x132200['aQicc'],'',_0x132200[_0x40d326(0x104)],'',_0x132200['haReT'],_0x132200[_0x40d326(0x111)],'',_0x132200[_0x40d326(0xfe)],''];process[_0x40d326(0x116)]['write'](_0x132200[_0x40d326(0x10b)](_0x40cdf2['join']('\x0a'),'\x0a'));try{_0x132200['aoDOF'](mkdirSync,getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x332b54,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x795c80(0x107),_0x795c80(0x100),_0x795c80(0x105),_0x795c80(0x112),'setup-ci',_0x795c80(0x114),'use']);export function shouldShowLegacyWarning(_0x371509){const _0x3cfa92=_0x795c80,_0x2af1bf={'pbTLP':function(_0x22022e,_0x369f6a){return _0x22022e<_0x369f6a;},'yvOUu':_0x3cfa92(0x106),'qBxhQ':function(_0x3955eb,_0x2643f7){return _0x3955eb===_0x2643f7;}},_0x1d3d2b=_0x371509[0x2];if(!_0x1d3d2b)return![];if(_0x1d3d2b[_0x3cfa92(0xfd)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x1d3d2b))return![];for(let _0x57a259=0x3;_0x2af1bf[_0x3cfa92(0x10e)](_0x57a259,_0x371509['length']);_0x57a259++){if(_0x371509[_0x57a259]===_0x2af1bf['yvOUu']||_0x2af1bf[_0x3cfa92(0x119)](_0x371509[_0x57a259],'-h'))return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5b21(_0x43c5d4,_0x54992c){_0x43c5d4=_0x43c5d4-0x81;const _0x2e9a08=_0x27e4();let _0x265514=_0x2e9a08[_0x43c5d4];if(_0x5b21['SzQscg']===undefined){var _0x587a9a=function(_0x5017d3){const _0x16cdf0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x376ac1='',_0x379658='',_0x13bcbf=_0x376ac1+_0x587a9a;for(let _0x1d1ae8=0x0,_0x46bcdf,_0x3bcec2,_0x31a576=0x0;_0x3bcec2=_0x5017d3['charAt'](_0x31a576++);~_0x3bcec2&&(_0x46bcdf=_0x1d1ae8%0x4?_0x46bcdf*0x40+_0x3bcec2:_0x3bcec2,_0x1d1ae8++%0x4)?_0x376ac1+=_0x13bcbf['charCodeAt'](_0x31a576+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x46bcdf>>(-0x2*_0x1d1ae8&0x6)):_0x1d1ae8:0x0){_0x3bcec2=_0x16cdf0['indexOf'](_0x3bcec2);}for(let _0xacf903=0x0,_0x205240=_0x376ac1['length'];_0xacf903<_0x205240;_0xacf903++){_0x379658+='%'+('00'+_0x376ac1['charCodeAt'](_0xacf903)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x379658);};_0x5b21['HvBoFc']=_0x587a9a,_0x5b21['iRJWTV']={},_0x5b21['SzQscg']=!![];}const _0x27e466=_0x2e9a08[0x0],_0x5b21ab=_0x43c5d4+_0x27e466,_0xd68780=_0x5b21['iRJWTV'][_0x5b21ab];if(!_0xd68780){const _0x2deebb=function(_0x1e3b88){this['VJAZGj']=_0x1e3b88,this['wmlyTz']=[0x1,0x0,0x0],this['BBZKqL']=function(){return'newState';},this['iSZxKQ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SqnmLx']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2deebb['prototype']['opbzMx']=function(){const _0x27287a=new RegExp(this['iSZxKQ']+this['SqnmLx']),_0x431718=_0x27287a['test'](this['BBZKqL']['toString']())?--this['wmlyTz'][0x1]:--this['wmlyTz'][0x0];return this['dxVuAJ'](_0x431718);},_0x2deebb['prototype']['dxVuAJ']=function(_0x58a636){if(!Boolean(~_0x58a636))return _0x58a636;return this['qyHMyE'](this['VJAZGj']);},_0x2deebb['prototype']['qyHMyE']=function(_0x1b5d2){for(let _0x12df4e=0x0,_0x344b71=this['wmlyTz']['length'];_0x12df4e<_0x344b71;_0x12df4e++){this['wmlyTz']['push'](Math['round'](Math['random']())),_0x344b71=this['wmlyTz']['length'];}return _0x1b5d2(this['wmlyTz'][0x0]);},new _0x2deebb(_0x5b21)['opbzMx'](),_0x265514=_0x5b21['HvBoFc'](_0x265514),_0x5b21['iRJWTV'][_0x5b21ab]=_0x265514;}else _0x265514=_0xd68780;return _0x265514;}(function(_0x2d1671,_0x2256e2){const _0x22c09b=_0x5b21,_0x3ec29c=_0x2d1671();while(!![]){try{const _0x5afbbd=-parseInt(_0x22c09b(0x99))/0x1*(-parseInt(_0x22c09b(0x95))/0x2)+parseInt(_0x22c09b(0x98))/0x3+parseInt(_0x22c09b(0x8a))/0x4+parseInt(_0x22c09b(0x86))/0x5*(-parseInt(_0x22c09b(0x8e))/0x6)+-parseInt(_0x22c09b(0x8c))/0x7+-parseInt(_0x22c09b(0x9c))/0x8*(parseInt(_0x22c09b(0x82))/0x9)+parseInt(_0x22c09b(0x85))/0xa*(parseInt(_0x22c09b(0x84))/0xb);if(_0x5afbbd===_0x2256e2)break;else _0x3ec29c['push'](_0x3ec29c['shift']());}catch(_0x6917f2){_0x3ec29c['push'](_0x3ec29c['shift']());}}}(_0x27e4,0x893fa));const _0x587a9a=(function(){const _0x56e760=_0x5b21,_0x19646a={'sGNev':_0x56e760(0x8b),'PbEVt':_0x56e760(0x9d)};let _0x198423=!![];return function(_0x4a6cb7,_0x33d495){const _0x3a2b75=_0x56e760,_0x1cca93={'rHwTU':_0x19646a[_0x3a2b75(0x90)]},_0x904bd6=_0x198423?function(){const _0x1646fa=_0x3a2b75;if(_0x19646a[_0x1646fa(0x83)]!==_0x19646a['sGNev'])return _0x365dac['toString']()[_0x1646fa(0x8d)](_0x1cca93[_0x1646fa(0x94)])[_0x1646fa(0xa1)]()['constructor'](_0x5c0d04)[_0x1646fa(0x8d)](_0x1cca93['rHwTU']);else{if(_0x33d495){const _0x5df987=_0x33d495[_0x1646fa(0x97)](_0x4a6cb7,arguments);return _0x33d495=null,_0x5df987;}}}:function(){};return _0x198423=![],_0x904bd6;};}()),_0x265514=_0x587a9a(this,function(){const _0xdd233=_0x5b21,_0x2c5860={'HDiTg':_0xdd233(0x9d)};return _0x265514[_0xdd233(0xa1)]()['search'](_0x2c5860[_0xdd233(0x9b)])[_0xdd233(0xa1)]()[_0xdd233(0x9e)](_0x265514)[_0xdd233(0x8d)](_0x2c5860[_0xdd233(0x9b)]);});_0x265514();function _0x27e4(){const _0x1ef03b=['ndq1BurHzg1M','CeXzyxG','vuvfA2O','Dgv4Da','mZG0otm3mMXPALLICa','Dvvgrxy','ndGYmtC1nejgtuvAuW','C2vHCMnO','mti1mtb2EhbnvwO','ue9tva','ugjfvNq','A3f1s1m','qMvHCMvYia','zhLdvLi','CKH3vfu','mte4nJaWnKfcAurODG','qKnRt3e','yxbWBhK','mJi0ntC5nertB3zlBG','mxnMCvzKqq','C2LNBMfS','serPvgC','nZmYndq3mLPks0v6Ea','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','C3rYAw5NAwz5','BhvvwKu','Dg9tDhjPBMC','yxbWBgLJyxrPB24VANnVBG','ouLxEvDisW','C0Dozxy','mJjNz3PLqKi','mJqWodyWAhbRCfjh'];_0x27e4=function(){return _0x1ef03b;};return _0x27e4();}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x2e2d8c,_0x11046a,_0x1b5fa0){const _0x311e0c=_0x5b21,_0x155574={'luUZE':function(_0x3f32dc){return _0x3f32dc();},'dyCVR':_0x311e0c(0x8f),'pLYax':_0x311e0c(0x81),'UEEkj':_0x311e0c(0x91),'BCkOq':function(_0x102daf,_0x593e97){return _0x102daf(_0x593e97);}},_0x2cb789=await getToken();if(!_0x2cb789)return;const _0x309e2e=_0x155574[_0x311e0c(0xa0)](getApiBaseUrl),_0x5cfcd1=new AbortController(),_0x59d85e=setTimeout(()=>_0x5cfcd1['abort'](),0x1388);let _0x54fe5e;try{_0x54fe5e=await fetch(_0x309e2e+'/api/v1/mcp/local-agent-installations',{'method':_0x155574[_0x311e0c(0x93)],'headers':{'Authorization':_0x311e0c(0x92)+_0x2cb789,'Content-Type':_0x155574[_0x311e0c(0x87)]},'body':JSON[_0x311e0c(0x9f)]({'skillName':_0x2e2d8c,'cliVersion':_0x1b5fa0,'metadata':_0x11046a}),'signal':_0x5cfcd1[_0x311e0c(0x9a)]});}finally{if(_0x155574[_0x311e0c(0x88)]===_0x155574[_0x311e0c(0x88)])_0x155574[_0x311e0c(0x96)](clearTimeout,_0x59d85e);else return;}if(!_0x54fe5e['ok']){const _0x2eec4a=await _0x54fe5e[_0x311e0c(0x89)]();console['error']('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x2eec4a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3216(_0xf8e8d3,_0x575132){_0xf8e8d3=_0xf8e8d3-0x184;const _0xe78e15=_0xe78e();let _0x32161a=_0xe78e15[_0xf8e8d3];return _0x32161a;}function _0xe78e(){const _0xa880b2=['936970MCmYjy','2898240mdZjRH','environments','defaultEnvironmentKey','28103ORZbIl','132556hDGlWU','6228768TSDuDM','entries','protocol','875320ohRTKv','494268zmwgYq'];_0xe78e=function(){return _0xa880b2;};return _0xe78e();}(function(_0x327ab2,_0x15dd71){const _0x54b433=_0x3216,_0x5f3752=_0x327ab2();while(!![]){try{const _0x341bec=parseInt(_0x54b433(0x18d))/0x1+parseInt(_0x54b433(0x18e))/0x2+parseInt(_0x54b433(0x188))/0x3+parseInt(_0x54b433(0x187))/0x4+parseInt(_0x54b433(0x189))/0x5+parseInt(_0x54b433(0x18a))/0x6+-parseInt(_0x54b433(0x184))/0x7;if(_0x341bec===_0x15dd71)break;else _0x5f3752['push'](_0x5f3752['shift']());}catch(_0x43d60f){_0x5f3752['push'](_0x5f3752['shift']());}}}(_0xe78e,0x3f211));function originIdentity(_0x18246d){const _0x43136d=_0x3216;try{const _0x344747=new URL(_0x18246d);return _0x344747[_0x43136d(0x186)]+'//'+_0x344747['host'];}catch{return undefined;}}export function matchAuthEnvironment(_0x14dd2f,_0x5b808e){const _0x405456=_0x3216,_0x5b37c0={'CPjay':function(_0x337441,_0x3943e7){return _0x337441(_0x3943e7);}};if(!_0x5b808e||!_0x5b808e[_0x405456(0x18b)])return undefined;const _0x9490d1=originIdentity(_0x14dd2f);if(!_0x9490d1){if(_0x5b808e['defaultEnvironmentKey']&&_0x5b808e[_0x405456(0x18b)][_0x5b808e[_0x405456(0x18c)]])return _0x5b808e['defaultEnvironmentKey'];return undefined;}for(const [_0x55e15a,_0xcce984]of Object[_0x405456(0x185)](_0x5b808e[_0x405456(0x18b)])){for(const _0x30c14d of _0xcce984['domains']??[]){const _0x17914b=_0x5b37c0['CPjay'](originIdentity,_0x30c14d);if(_0x17914b&&_0x17914b===_0x9490d1)return _0x55e15a;}}if(_0x5b808e['defaultEnvironmentKey']&&_0x5b808e[_0x405456(0x18b)][_0x5b808e[_0x405456(0x18c)]])return _0x5b808e['defaultEnvironmentKey'];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2573(){const _0x1c672a=['HuFwA','all','image/png','4742496CJGNiY','output','updated','1404CvmbUn','webp','source','ppTDl','\x20bytes)','toString','912204NmBnse','145331WaUoCo','charCodeAt','150NHHWIB','jqMQz','base64','map','url','qEKpT','string','xUJQM','ApYOz','123660RPQGeY','vgcui','content-type','jpg','value','ZyAJz','gBaHy','sGszd','image/jpeg','3248538WUTndZ','image/webp','image/gif','replace','qARpR','lBiTf','https://','size','tool_response','hook_event_name','AhSBQ','file://','XQpIC','isArray','ZMOOQ','KDmLy','timeout','data','DrEyE','toLowerCase','421106sskksD','gif','type','startsWith','ZgWev','trim','arrayBuffer','668045usJgbI','Image\x20exceeds\x20size\x20limit\x20(','hPlTa','block','Dtcep','48UBeojF','entries','PostToolUse','from','aOQjU','http://'];_0x2573=function(){return _0x1c672a;};return _0x2573();}(function(_0x374703,_0x516530){const _0x3f0a1e=_0xbb7c,_0x5f1e9d=_0x374703();while(!![]){try{const _0x366433=parseInt(_0x3f0a1e(0x192))/0x1+parseInt(_0x3f0a1e(0x1a6))/0x2+parseInt(_0x3f0a1e(0x191))/0x3+parseInt(_0x3f0a1e(0x1c6))/0x4*(parseInt(_0x3f0a1e(0x1c1))/0x5)+-parseInt(_0x3f0a1e(0x194))/0x6*(parseInt(_0x3f0a1e(0x1ba))/0x7)+parseInt(_0x3f0a1e(0x188))/0x8+-parseInt(_0x3f0a1e(0x18b))/0x9*(parseInt(_0x3f0a1e(0x19d))/0xa);if(_0x366433===_0x516530)break;else _0x5f1e9d['push'](_0x5f1e9d['shift']());}catch(_0x5dd1f8){_0x5f1e9d['push'](_0x5f1e9d['shift']());}}}(_0x2573,0xcc486));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(_0x1700cd){return typeof _0x1700cd==='object'&&_0x1700cd!==null;}function isImageBlock(_0x6b5618){const _0x1725ca=_0xbb7c,_0x1d92bc={'mHWPF':'image'};return isRecord(_0x6b5618)&&_0x6b5618[_0x1725ca(0x1bc)]===_0x1d92bc['mHWPF'];}function _0xbb7c(_0x1533bf,_0x4f3676){_0x1533bf=_0x1533bf-0x182;const _0x257306=_0x2573();let _0xbb7c40=_0x257306[_0x1533bf];return _0xbb7c40;}function isDataUrl(_0x3d1a2a){const _0x4600e=_0xbb7c,_0x9557ff={'DrEyE':'data:'};return _0x3d1a2a['startsWith'](_0x9557ff[_0x4600e(0x1b8)]);}function parseDataUrl(_0x3f22c4){const _0x5e4c56=/^data:([^;]+);base64,(.+)$/['exec'](_0x3f22c4);if(!_0x5e4c56)return null;const _0x40be14=_0x5e4c56[0x1]['toLowerCase']();if(!isValidMediaType(_0x40be14))return null;return{'data':_0x5e4c56[0x2],'mediaType':_0x40be14};}function isValidMediaType(_0x13a46f){const _0x3f951a=_0xbb7c,_0x1569da={'sGszd':_0x3f951a(0x1a5),'rguTi':'image/png','AhSBQ':_0x3f951a(0x1a7)};return[_0x1569da[_0x3f951a(0x1a4)],_0x1569da['rguTi'],_0x3f951a(0x1a8),_0x1569da[_0x3f951a(0x1b0)]]['includes'](_0x13a46f);}function inferMediaType(_0xf3c8ee,_0x5c0bbe){const _0x37ab9b=_0xbb7c,_0x17cf2f={'AEorM':function(_0x4d04b8,_0x5352b5){return _0x4d04b8(_0x5352b5);},'xUJQM':_0x37ab9b(0x1a0),'ZMOOQ':'jpeg','XQpIC':'png','NvlUf':_0x37ab9b(0x1a8),'qEKpT':_0x37ab9b(0x1a7),'ZgWev':_0x37ab9b(0x187)};if(_0xf3c8ee){const _0x3ccd70=_0xf3c8ee[_0x37ab9b(0x1b9)]()['split'](';')[0x0][_0x37ab9b(0x1bf)]();if(isValidMediaType(_0x3ccd70))return _0x3ccd70;}const _0x10b02b=_0x17cf2f['AEorM'](extname,_0x5c0bbe)[_0x37ab9b(0x1b9)]()[_0x37ab9b(0x1a9)]('.','');switch(_0x10b02b){case _0x17cf2f[_0x37ab9b(0x19b)]:case _0x17cf2f[_0x37ab9b(0x1b4)]:return'image/jpeg';case _0x17cf2f[_0x37ab9b(0x1b2)]:return _0x37ab9b(0x187);case _0x37ab9b(0x1bb):return _0x17cf2f['NvlUf'];case _0x37ab9b(0x18c):return _0x17cf2f[_0x37ab9b(0x199)];default:return _0x17cf2f[_0x37ab9b(0x1be)];}}async function readImageFromUrl(_0x4cb131){const _0x49e0bc=_0xbb7c,_0x522e85={'ppTDl':function(_0x5327b4,_0x23da21){return _0x5327b4(_0x23da21);},'ZyAJz':function(_0x32431a,_0xc1dcd2){return _0x32431a(_0xc1dcd2);},'ZIkMa':function(_0x376fe3,_0x50c9a8){return _0x376fe3>_0x50c9a8;},'TawGl':'base64','vgcui':_0x49e0bc(0x184),'qARpR':_0x49e0bc(0x1ac),'gBaHy':function(_0x52bf58,_0x5cd2fa,_0x40e00d){return _0x52bf58(_0x5cd2fa,_0x40e00d);},'oigLI':function(_0x2e0ac2,_0x5758b7){return _0x2e0ac2>_0x5758b7;}};if(_0x522e85['ppTDl'](isDataUrl,_0x4cb131)){const _0x1af4a4=_0x522e85[_0x49e0bc(0x1a2)](parseDataUrl,_0x4cb131);if(_0x1af4a4)return _0x1af4a4;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x4cb131[_0x49e0bc(0x1bd)](_0x49e0bc(0x1b1))){const _0x47c529=_0x522e85['ZyAJz'](fileURLToPath,_0x4cb131),_0x2869aa=await stat(_0x47c529);if(_0x522e85['ZIkMa'](_0x2869aa['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x49e0bc(0x18f));const _0x405b3d=await readFile(_0x47c529);return{'data':_0x405b3d[_0x49e0bc(0x190)](_0x522e85['TawGl']),'mediaType':inferMediaType(null,_0x47c529)};}if(_0x4cb131[_0x49e0bc(0x1bd)](_0x522e85[_0x49e0bc(0x19e)])||_0x4cb131[_0x49e0bc(0x1bd)](_0x522e85[_0x49e0bc(0x1aa)])){const _0x52282b=await _0x522e85['gBaHy'](fetch,_0x4cb131,{'signal':AbortSignal[_0x49e0bc(0x1b6)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x52282b['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x52282b['status']);const _0x1bd0c5=_0x52282b['headers']['get']('content-length');if(_0x1bd0c5){const _0x794534=_0x522e85[_0x49e0bc(0x18e)](Number,_0x1bd0c5);if(!Number['isNaN'](_0x794534)&&_0x522e85['oigLI'](_0x794534,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x49e0bc(0x1c2)+MAX_IMAGE_SIZE_BYTES+_0x49e0bc(0x18f));}const _0x4cc00d=await _0x52282b[_0x49e0bc(0x1c0)]();if(_0x522e85['oigLI'](_0x4cc00d['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x49e0bc(0x182)](_0x4cc00d)[_0x49e0bc(0x190)]('base64'),'mediaType':inferMediaType(_0x52282b['headers']['get'](_0x49e0bc(0x19f)),_0x4cb131)};}const _0x28cb9b=await _0x522e85['ZyAJz'](stat,_0x4cb131);if(_0x28cb9b[_0x49e0bc(0x1ad)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5ef92c=await readFile(_0x4cb131);return{'data':_0x5ef92c['toString'](_0x49e0bc(0x196)),'mediaType':_0x522e85[_0x49e0bc(0x1a3)](inferMediaType,null,_0x4cb131)};}async function convertImageBlockToBase64(_0x1a893b){const _0x503181=_0xbb7c,_0x4fb753={'HuFwA':'base64','ApYOz':function(_0x22f538,_0x160680){return _0x22f538(_0x160680);}};if(_0x1a893b[_0x503181(0x18d)]?.[_0x503181(0x1bc)]===_0x4fb753[_0x503181(0x185)])return{'updated':![],'block':_0x1a893b};if(_0x1a893b[_0x503181(0x1b7)]&&_0x1a893b['mimeType'])return{'updated':![],'block':_0x1a893b};const _0x462f31=_0x1a893b[_0x503181(0x18d)]?.[_0x503181(0x198)]??_0x1a893b[_0x503181(0x198)];if(!_0x462f31)return{'updated':![],'block':_0x1a893b};const _0xa23b37=await _0x4fb753[_0x503181(0x19c)](readImageFromUrl,_0x462f31);return{'updated':!![],'block':{..._0x1a893b,'source':{'type':_0x503181(0x196),'media_type':_0xa23b37['mediaType'],'data':_0xa23b37[_0x503181(0x1b7)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3f7678){const _0x1a4840=_0xbb7c;if(!isRecord(_0x3f7678))return{'updated':![],'output':_0x3f7678};const _0x52f789=_0x3f7678['content'];if(!Array[_0x1a4840(0x1b3)](_0x52f789))return{'updated':![],'output':_0x3f7678};let _0x1985b3=![];const _0x3ce366=await Promise[_0x1a4840(0x186)](_0x52f789[_0x1a4840(0x197)](async _0x29eb1f=>{const _0x22a466=_0x1a4840;if(!isImageBlock(_0x29eb1f))return _0x29eb1f;try{const _0x1c7322=await convertImageBlockToBase64(_0x29eb1f);if(_0x1c7322['updated'])_0x1985b3=!![];return _0x1c7322[_0x22a466(0x1c4)];}catch{return _0x29eb1f;}}));if(!_0x1985b3)return{'updated':![],'output':_0x3f7678};return{'updated':!![],'output':{..._0x3f7678,'content':_0x3ce366}};}function sanitizeLoneSurrogates(_0x2c2d6e){const _0x52714a=_0xbb7c,_0x1e415d={'zrZJt':function(_0x1cdd9e,_0x455a55){return _0x1cdd9e>=_0x455a55;},'jqMQz':function(_0x167151,_0x22fc50){return _0x167151<=_0x22fc50;},'Dtcep':function(_0x5d358f,_0x2ea316){return _0x5d358f+_0x2ea316;},'tbSkc':function(_0x1d8086,_0x1a2490){return _0x1d8086+_0x1a2490;},'lBiTf':function(_0x4aeee9,_0x3a5f1a){return _0x4aeee9>=_0x3a5f1a;}};let _0x47d57e=![],_0x54e8c5='';for(let _0x19ed47=0x0;_0x19ed47<_0x2c2d6e['length'];_0x19ed47+=0x1){const _0x26c800=_0x2c2d6e['charCodeAt'](_0x19ed47);if(_0x1e415d['zrZJt'](_0x26c800,0xd800)&&_0x1e415d[_0x52714a(0x195)](_0x26c800,0xdbff)){const _0x1aca1b=_0x2c2d6e[_0x52714a(0x193)](_0x1e415d['Dtcep'](_0x19ed47,0x1));if(_0x1aca1b>=0xdc00&&_0x1aca1b<=0xdfff){_0x54e8c5+=_0x1e415d['tbSkc'](_0x2c2d6e[_0x19ed47],_0x2c2d6e[_0x1e415d[_0x52714a(0x1c5)](_0x19ed47,0x1)]),_0x19ed47+=0x1;continue;}_0x47d57e=!![],_0x54e8c5+='�';continue;}if(_0x1e415d[_0x52714a(0x1ab)](_0x26c800,0xdc00)&&_0x1e415d['jqMQz'](_0x26c800,0xdfff)){_0x47d57e=!![],_0x54e8c5+='�';continue;}_0x54e8c5+=_0x2c2d6e[_0x19ed47];}return _0x47d57e?{'updated':_0x47d57e,'value':_0x54e8c5}:{'updated':_0x47d57e,'value':_0x2c2d6e};}function sanitizeLoneSurrogatesDeep(_0x2796cd){const _0x3220ba=_0xbb7c,_0x10c01b={'hPlTa':function(_0xa6cb01,_0x4286a7){return _0xa6cb01(_0x4286a7);},'aOQjU':function(_0x501472,_0x5adc1f){return _0x501472===_0x5adc1f;}};if(_0x10c01b[_0x3220ba(0x183)](typeof _0x2796cd,_0x3220ba(0x19a)))return sanitizeLoneSurrogates(_0x2796cd);if(Array[_0x3220ba(0x1b3)](_0x2796cd)){let _0x3d09c1=![];const _0x292d1=_0x2796cd['map'](_0x49a6e5=>{const _0x3b9c8c=_0x3220ba,_0x5e1150=_0x10c01b[_0x3b9c8c(0x1c3)](sanitizeLoneSurrogatesDeep,_0x49a6e5);return _0x5e1150[_0x3b9c8c(0x18a)]&&(_0x3d09c1=!![]),_0x5e1150[_0x3b9c8c(0x1a1)];});return _0x3d09c1?{'updated':!![],'value':_0x292d1}:{'updated':![],'value':_0x2796cd};}if(!isRecord(_0x2796cd))return{'updated':![],'value':_0x2796cd};let _0xf98c0d=![];const _0x4d3c7e=Object[_0x3220ba(0x1c7)](_0x2796cd)['map'](([_0x22bce8,_0x5a59a6])=>{const _0x1be3d4=_0x3220ba,_0x43b09a=sanitizeLoneSurrogatesDeep(_0x5a59a6);return _0x43b09a[_0x1be3d4(0x18a)]&&(_0xf98c0d=!![]),[_0x22bce8,_0x43b09a['value']];});return _0xf98c0d?{'updated':!![],'value':Object['fromEntries'](_0x4d3c7e)}:{'updated':![],'value':_0x2796cd};}export function createMcpImageBase64Hook(){const _0x4df0a5=_0xbb7c,_0x4febc8={'CwCNB':_0x4df0a5(0x1c8),'KDmLy':function(_0x2cf27f,_0x33be54){return _0x2cf27f(_0x33be54);}};return async _0xd62a35=>{const _0x7abd05=_0x4df0a5;if(_0xd62a35[_0x7abd05(0x1af)]!==_0x4febc8['CwCNB'])return{};const _0x20f686=_0xd62a35,_0x339286=await convertToolOutputImagesToBase64(_0x20f686[_0x7abd05(0x1ae)]),_0x3ac38b=_0x4febc8[_0x7abd05(0x1b5)](sanitizeLoneSurrogatesDeep,_0x339286[_0x7abd05(0x189)]),_0x4c4bdc=_0x339286[_0x7abd05(0x18a)]||_0x3ac38b[_0x7abd05(0x18a)];if(!_0x4c4bdc)return{};return{'hookSpecificOutput':{'hookEventName':_0x4febc8['CwCNB'],'updatedMCPToolOutput':_0x3ac38b['value']}};};}
|
|
1
|
+
(function(_0x24e5ee,_0x101dba){const _0x475b7e=_0xc2a0,_0x43f78a=_0x24e5ee();while(!![]){try{const _0x4b65ab=parseInt(_0x475b7e(0x17c))/0x1+-parseInt(_0x475b7e(0x17b))/0x2+parseInt(_0x475b7e(0x199))/0x3*(parseInt(_0x475b7e(0x169))/0x4)+parseInt(_0x475b7e(0x16c))/0x5*(parseInt(_0x475b7e(0x19e))/0x6)+-parseInt(_0x475b7e(0x172))/0x7*(parseInt(_0x475b7e(0x180))/0x8)+parseInt(_0x475b7e(0x16f))/0x9+-parseInt(_0x475b7e(0x197))/0xa*(-parseInt(_0x475b7e(0x185))/0xb);if(_0x4b65ab===_0x101dba)break;else _0x43f78a['push'](_0x43f78a['shift']());}catch(_0x356dc9){_0x43f78a['push'](_0x43f78a['shift']());}}}(_0x30da,0xeac30));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(_0x3ed98a){const _0x4e9ac0=_0xc2a0,_0x52a794={'DIKJw':'object'};return typeof _0x3ed98a===_0x52a794[_0x4e9ac0(0x1a6)]&&_0x3ed98a!==null;}function isImageBlock(_0xd5f77d){const _0x5348f4=_0xc2a0,_0x512e1c={'FJRsj':function(_0x4688f7,_0x22c096){return _0x4688f7(_0x22c096);},'XhDam':'image'};return _0x512e1c[_0x5348f4(0x176)](isRecord,_0xd5f77d)&&_0xd5f77d['type']===_0x512e1c[_0x5348f4(0x1a2)];}function isDataUrl(_0x419060){const _0x22cc13=_0xc2a0;return _0x419060['startsWith'](_0x22cc13(0x17f));}function parseDataUrl(_0x2aea6c){const _0x5eb589=_0xc2a0,_0x46b77b={'tqmIA':function(_0x16d5df,_0x8404d1){return _0x16d5df(_0x8404d1);}},_0x29400a=/^data:([^;]+);base64,(.+)$/[_0x5eb589(0x174)](_0x2aea6c);if(!_0x29400a)return null;const _0x1bbe47=_0x29400a[0x1]['toLowerCase']();if(!_0x46b77b[_0x5eb589(0x1a4)](isValidMediaType,_0x1bbe47))return null;return{'data':_0x29400a[0x2],'mediaType':_0x1bbe47};}function isValidMediaType(_0x4975ce){const _0x529b61=_0xc2a0,_0x186925={'aGbkk':_0x529b61(0x177),'UrIEN':_0x529b61(0x17a)};return[_0x186925['aGbkk'],_0x529b61(0x182),'image/gif',_0x186925[_0x529b61(0x186)]][_0x529b61(0x16d)](_0x4975ce);}function inferMediaType(_0x1226e0,_0x171127){const _0x11490e=_0xc2a0,_0x231be4={'OPXnf':function(_0x3bfb4e,_0x3ac6e1){return _0x3bfb4e(_0x3ac6e1);},'dvGIF':'jpg','rwLAh':_0x11490e(0x193),'rFhho':'image/jpeg','oUPtp':_0x11490e(0x17a),'VTaJK':_0x11490e(0x182)};if(_0x1226e0){const _0x37cffa=_0x1226e0['toLowerCase']()['split'](';')[0x0][_0x11490e(0x19c)]();if(_0x231be4['OPXnf'](isValidMediaType,_0x37cffa))return _0x37cffa;}const _0x2a8f3d=extname(_0x171127)['toLowerCase']()[_0x11490e(0x183)]('.','');switch(_0x2a8f3d){case _0x231be4[_0x11490e(0x192)]:case _0x231be4['rwLAh']:return _0x231be4['rFhho'];case _0x11490e(0x17e):return'image/png';case _0x11490e(0x18a):return'image/gif';case _0x11490e(0x18e):return _0x231be4['oUPtp'];default:return _0x231be4[_0x11490e(0x19b)];}}async function readImageFromUrl(_0x5fca10){const _0x48587e=_0xc2a0,_0x567779={'QmHsH':_0x48587e(0x16e),'HjQck':function(_0x3c3eeb,_0x5d7a54){return _0x3c3eeb(_0x5d7a54);},'pkFwE':function(_0x5a3bc2,_0x5db221){return _0x5a3bc2(_0x5db221);},'xdLfL':function(_0x38decb,_0x48eabf,_0x5a7614){return _0x38decb(_0x48eabf,_0x5a7614);},'uiqoV':'https://','fLsZp':function(_0x495cf8,_0x3cf7ce,_0x13a481){return _0x495cf8(_0x3cf7ce,_0x13a481);},'sEdVx':function(_0x3a6fb4,_0x925e7){return _0x3a6fb4>_0x925e7;},'pmhUX':'base64','pdGaL':function(_0x105743,_0x1fa20b,_0xa7cc0c){return _0x105743(_0x1fa20b,_0xa7cc0c);}};if(isDataUrl(_0x5fca10)){const _0xcc8616=parseDataUrl(_0x5fca10);if(_0xcc8616)return _0xcc8616;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x5fca10[_0x48587e(0x1a7)](_0x567779['QmHsH'])){const _0x159dcd=fileURLToPath(_0x5fca10),_0x3535af=await _0x567779['HjQck'](stat,_0x159dcd);if(_0x3535af['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x48587e(0x190)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x57616d=await _0x567779[_0x48587e(0x171)](readFile,_0x159dcd);return{'data':_0x57616d[_0x48587e(0x1a3)]('base64'),'mediaType':_0x567779['xdLfL'](inferMediaType,null,_0x159dcd)};}if(_0x5fca10['startsWith'](_0x48587e(0x184))||_0x5fca10['startsWith'](_0x567779['uiqoV'])){const _0x23bd25=await _0x567779[_0x48587e(0x18d)](fetch,_0x5fca10,{'signal':AbortSignal[_0x48587e(0x170)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x23bd25['ok'])throw new Error(_0x48587e(0x19a)+_0x23bd25['status']);const _0xe87bfc=_0x23bd25['headers'][_0x48587e(0x16b)](_0x48587e(0x18f));if(_0xe87bfc){const _0x5f15a2=_0x567779['pkFwE'](Number,_0xe87bfc);if(!Number['isNaN'](_0x5f15a2)&&_0x567779['sEdVx'](_0x5f15a2,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x124266=await _0x23bd25[_0x48587e(0x18b)]();if(_0x567779[_0x48587e(0x198)](_0x124266[_0x48587e(0x188)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x48587e(0x175));return{'data':Buffer[_0x48587e(0x19f)](_0x124266)[_0x48587e(0x1a3)]('base64'),'mediaType':inferMediaType(_0x23bd25['headers'][_0x48587e(0x16b)]('content-type'),_0x5fca10)};}const _0x488be0=await stat(_0x5fca10);if(_0x567779[_0x48587e(0x198)](_0x488be0[_0x48587e(0x187)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x48587e(0x190)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x36942c=await _0x567779[_0x48587e(0x171)](readFile,_0x5fca10);return{'data':_0x36942c[_0x48587e(0x1a3)](_0x567779['pmhUX']),'mediaType':_0x567779[_0x48587e(0x1a5)](inferMediaType,null,_0x5fca10)};}async function convertImageBlockToBase64(_0x33b983){const _0x3e1a6d=_0xc2a0;if(_0x33b983['source']?.['type']==='base64')return{'updated':![],'block':_0x33b983};if(_0x33b983[_0x3e1a6d(0x178)]&&_0x33b983['mimeType'])return{'updated':![],'block':_0x33b983};const _0x3f181c=_0x33b983[_0x3e1a6d(0x195)]?.['url']??_0x33b983['url'];if(!_0x3f181c)return{'updated':![],'block':_0x33b983};const _0x3206d7=await readImageFromUrl(_0x3f181c);return{'updated':!![],'block':{..._0x33b983,'source':{'type':_0x3e1a6d(0x18c),'media_type':_0x3206d7['mediaType'],'data':_0x3206d7[_0x3e1a6d(0x178)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x25c6ef){const _0x2cfd73=_0xc2a0,_0x5065bb={'KfpOI':function(_0x6db53b,_0xe3d127){return _0x6db53b(_0xe3d127);},'WwKli':function(_0x37860c,_0x989cca){return _0x37860c(_0x989cca);}};if(!isRecord(_0x25c6ef))return{'updated':![],'output':_0x25c6ef};const _0x175b80=_0x25c6ef['content'];if(!Array[_0x2cfd73(0x1a1)](_0x175b80))return{'updated':![],'output':_0x25c6ef};let _0x430653=![];const _0x8d9df8=await Promise[_0x2cfd73(0x179)](_0x175b80[_0x2cfd73(0x196)](async _0xf3deb1=>{const _0x24b692=_0x2cfd73;if(!_0x5065bb['KfpOI'](isImageBlock,_0xf3deb1))return _0xf3deb1;try{const _0xbbf4d3=await _0x5065bb[_0x24b692(0x189)](convertImageBlockToBase64,_0xf3deb1);if(_0xbbf4d3['updated'])_0x430653=!![];return _0xbbf4d3['block'];}catch{return _0xf3deb1;}}));if(!_0x430653)return{'updated':![],'output':_0x25c6ef};return{'updated':!![],'output':{..._0x25c6ef,'content':_0x8d9df8}};}function sanitizeLoneSurrogates(_0x1f517e){const _0x471c6f=_0xc2a0,_0x24c02e={'yOWxq':function(_0x4fdc3b,_0x17dd48){return _0x4fdc3b>=_0x17dd48;},'RJBQr':function(_0x4e69dd,_0x24d378){return _0x4e69dd+_0x24d378;},'GdQTi':function(_0x136e71,_0x1e6648){return _0x136e71+_0x1e6648;},'ndICE':function(_0x3997cf,_0x4a18bb){return _0x3997cf>=_0x4a18bb;},'QCDdo':function(_0x53f43b,_0x4f5f0a){return _0x53f43b<=_0x4f5f0a;}};let _0x5e0bb1=![],_0xc5c312='';for(let _0x324eeb=0x0;_0x324eeb<_0x1f517e[_0x471c6f(0x19d)];_0x324eeb+=0x1){const _0x3fa159=_0x1f517e['charCodeAt'](_0x324eeb);if(_0x24c02e['yOWxq'](_0x3fa159,0xd800)&&_0x3fa159<=0xdbff){const _0x11ac7d=_0x1f517e['charCodeAt'](_0x24c02e['RJBQr'](_0x324eeb,0x1));if(_0x11ac7d>=0xdc00&&_0x11ac7d<=0xdfff){_0xc5c312+=_0x1f517e[_0x324eeb]+_0x1f517e[_0x24c02e['GdQTi'](_0x324eeb,0x1)],_0x324eeb+=0x1;continue;}_0x5e0bb1=!![],_0xc5c312+='�';continue;}if(_0x24c02e[_0x471c6f(0x1a9)](_0x3fa159,0xdc00)&&_0x24c02e['QCDdo'](_0x3fa159,0xdfff)){_0x5e0bb1=!![],_0xc5c312+='�';continue;}_0xc5c312+=_0x1f517e[_0x324eeb];}return _0x5e0bb1?{'updated':_0x5e0bb1,'value':_0xc5c312}:{'updated':_0x5e0bb1,'value':_0x1f517e};}function sanitizeLoneSurrogatesDeep(_0x32727c){const _0x3a50f5=_0xc2a0,_0x3d5dfa={'CXaMT':function(_0x55736e,_0x48d01f){return _0x55736e(_0x48d01f);},'zouJx':function(_0x45a92c,_0x169e65){return _0x45a92c(_0x169e65);},'qvtKV':function(_0xcbb7f0,_0xc1c8f5){return _0xcbb7f0(_0xc1c8f5);}};if(typeof _0x32727c==='string')return _0x3d5dfa[_0x3a50f5(0x17d)](sanitizeLoneSurrogates,_0x32727c);if(Array[_0x3a50f5(0x1a1)](_0x32727c)){let _0x5bcd57=![];const _0x908059=_0x32727c['map'](_0x3696a5=>{const _0x34c885=_0x3a50f5,_0xdadc6d=_0x3d5dfa[_0x34c885(0x194)](sanitizeLoneSurrogatesDeep,_0x3696a5);return _0xdadc6d['updated']&&(_0x5bcd57=!![]),_0xdadc6d[_0x34c885(0x181)];});return _0x5bcd57?{'updated':!![],'value':_0x908059}:{'updated':![],'value':_0x32727c};}if(!isRecord(_0x32727c))return{'updated':![],'value':_0x32727c};let _0x265a2a=![];const _0x5d743b=Object['entries'](_0x32727c)[_0x3a50f5(0x196)](([_0x3cd2e7,_0x58f072])=>{const _0x5b49db=_0x3a50f5,_0x51e0cd=_0x3d5dfa['zouJx'](sanitizeLoneSurrogatesDeep,_0x58f072);return _0x51e0cd['updated']&&(_0x265a2a=!![]),[_0x3cd2e7,_0x51e0cd[_0x5b49db(0x181)]];});return _0x265a2a?{'updated':!![],'value':Object['fromEntries'](_0x5d743b)}:{'updated':![],'value':_0x32727c};}function _0xc2a0(_0x237bfc,_0x3601eb){_0x237bfc=_0x237bfc-0x169;const _0x30da9d=_0x30da();let _0xc2a05=_0x30da9d[_0x237bfc];return _0xc2a05;}export function createMcpImageBase64Hook(){const _0x22666b=_0xc2a0,_0x59f076={'eGELY':_0x22666b(0x1a8)};return async _0x466aad=>{const _0x12cb34=_0x22666b;if(_0x466aad[_0x12cb34(0x191)]!==_0x59f076[_0x12cb34(0x173)])return{};const _0x5ee8ab=_0x466aad,_0x419b0e=await convertToolOutputImagesToBase64(_0x5ee8ab[_0x12cb34(0x1a0)]),_0x475cd5=sanitizeLoneSurrogatesDeep(_0x419b0e['output']),_0x5293db=_0x419b0e[_0x12cb34(0x16a)]||_0x475cd5['updated'];if(!_0x5293db)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x475cd5[_0x12cb34(0x181)]}};};}function _0x30da(){const _0x40a76c=['451UCmBvZ','UrIEN','size','byteLength','WwKli','gif','arrayBuffer','base64','fLsZp','webp','content-length','Image\x20exceeds\x20size\x20limit\x20(','hook_event_name','dvGIF','jpeg','CXaMT','source','map','294610jnztnP','sEdVx','81EJhLAr','Failed\x20to\x20fetch\x20image:\x20','VTaJK','trim','length','37236hNXVuL','from','tool_response','isArray','XhDam','toString','tqmIA','pdGaL','DIKJw','startsWith','PostToolUse','ndICE','107668GAHeGx','updated','get','15pyaMmT','includes','file://','570924FHHSFh','timeout','pkFwE','4873008iVoDqa','eGELY','exec','\x20bytes)','FJRsj','image/jpeg','data','all','image/webp','1679464beJGqI','480746sRlees','qvtKV','png','data:','8RCONFQ','value','image/png','replace','http://'];_0x30da=function(){return _0x40a76c;};return _0x30da();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a218b=_0x1f4e;function _0x54e1(){const _0x280398=['claude-sonnet-4-6','4473009zFgSEf','230flXuWS','2084iAbOfk','422289xzBRUh','501GrLZQY','1760682aEeQhv','55348IBaRWl','1377400JMyIiW','36488tHSBRh','679vSDBEE','trim'];_0x54e1=function(){return _0x280398;};return _0x54e1();}(function(_0x5e80c9,_0x5ba2a6){const _0x4179a9=_0x1f4e,_0x277ea5=_0x5e80c9();while(!![]){try{const _0x4d5668=parseInt(_0x4179a9(0x1d4))/0x1+-parseInt(_0x4179a9(0x1d3))/0x2*(parseInt(_0x4179a9(0x1d5))/0x3)+-parseInt(_0x4179a9(0x1d7))/0x4*(-parseInt(_0x4179a9(0x1d2))/0x5)+parseInt(_0x4179a9(0x1d6))/0x6+parseInt(_0x4179a9(0x1da))/0x7*(-parseInt(_0x4179a9(0x1d9))/0x8)+-parseInt(_0x4179a9(0x1dd))/0x9+parseInt(_0x4179a9(0x1d8))/0xa;if(_0x4d5668===_0x5ba2a6)break;else _0x277ea5['push'](_0x277ea5['shift']());}catch(_0x2139e7){_0x277ea5['push'](_0x277ea5['shift']());}}}(_0x54e1,0x5bee2));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x4a218b(0x1dc)};function _0x1f4e(_0x58c464,_0x13ccfb){_0x58c464=_0x58c464-0x1d2;const _0x54e1db=_0x54e1();let _0x1f4e3b=_0x54e1db[_0x58c464];return _0x1f4e3b;}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x500fef){const _0x2defc5=_0x4a218b,_0x98d877={'RZMbX':function(_0xcfa7c3,_0x3c899a){return _0xcfa7c3??_0x3c899a;}};if(!_0x500fef)return undefined;const _0x23f7fb=_0x500fef[_0x2defc5(0x1db)]();if(!_0x23f7fb)return undefined;const _0x537362=VERIFY_MODEL_ALIASES[_0x23f7fb['toLowerCase']()];return _0x98d877['RZMbX'](_0x537362,_0x23f7fb);}
|