@ranger-testing/ranger-cli 3.1.7-alpha.387730d-58 → 3.1.7-alpha.44736ee-66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/actors.js +1 -0
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/build/skills/ranger/SKILL.md +8 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1e6d20=_0x4e7f;(function(_0x2a9232,_0x352d9b){const _0x524955=_0x4e7f,_0x124783=_0x2a9232();while(!![]){try{const _0x2b48d7=-parseInt(_0x524955(0x1ee))/0x1*(-parseInt(_0x524955(0x201))/0x2)+parseInt(_0x524955(0x204))/0x3+-parseInt(_0x524955(0x1fd))/0x4*(-parseInt(_0x524955(0x209))/0x5)+-parseInt(_0x524955(0x21e))/0x6*(-parseInt(_0x524955(0x20c))/0x7)+-parseInt(_0x524955(0x21b))/0x8+parseInt(_0x524955(0x1e6))/0x9+-parseInt(_0x524955(0x1f9))/0xa;if(_0x2b48d7===_0x352d9b)break;else _0x124783['push'](_0x124783['shift']());}catch(_0x46d106){_0x124783['push'](_0x124783['shift']());}}}(_0x1e6d,0x2db94));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(_0x5cdd54,_0x49f4de){const _0x3b6047=_0x4e7f,_0x3b3ca0={'cqWWU':function(_0x1a0f34,_0x477ad8){return _0x1a0f34&_0x477ad8;},'jOpuk':function(_0x1b4df8,_0x1ef759){return _0x1b4df8>_0x1ef759;},'OzXkt':function(_0x225ecb,_0xe6e791){return _0x225ecb+_0xe6e791;},'XqBII':function(_0x28e239,_0x445527){return _0x28e239<_0x445527;}};if(_0x49f4de>=_0x5cdd54[_0x3b6047(0x211)])return[0x0,0x0];const _0x3de868=_0x5cdd54[_0x49f4de];let _0x142a94=0x1,_0x16184f=0x80;while(_0x142a94<=0x8&&!_0x3b3ca0['cqWWU'](_0x3de868,_0x16184f)){_0x142a94++,_0x16184f>>=0x1;}if(_0x3b3ca0[_0x3b6047(0x208)](_0x3b3ca0['OzXkt'](_0x49f4de,_0x142a94),_0x5cdd54['length']))return[0x0,0x0];let _0x314094=_0x3de868&_0x16184f-0x1;for(let _0x27722d=0x1;_0x3b3ca0['XqBII'](_0x27722d,_0x142a94);_0x27722d++){_0x314094=_0x3b3ca0['OzXkt'](_0x314094*0x100,_0x5cdd54[_0x49f4de+_0x27722d]);}return[_0x314094,_0x142a94];}function readId(_0xb1adf1,_0x54ca41){const _0x13433c=_0x4e7f,_0x23b48f={'dQxFI':function(_0x9d9321,_0x9e8fd){return _0x9d9321>=_0x9e8fd;},'vudnQ':function(_0x1f68af,_0x1fea9c){return _0x1f68af>=_0x1fea9c;},'JLoFJ':function(_0x411f30,_0x300ffa){return _0x411f30+_0x300ffa;},'vRHoQ':function(_0x54345f,_0x4868a8){return _0x54345f<_0x4868a8;}};if(_0x23b48f['dQxFI'](_0x54ca41,_0xb1adf1[_0x13433c(0x211)]))return[0x0,0x0];const _0x2852b4=_0xb1adf1[_0x54ca41];let _0x5a30cc;if(_0x23b48f['dQxFI'](_0x2852b4,0x80))_0x5a30cc=0x1;else{if(_0x23b48f['dQxFI'](_0x2852b4,0x40))_0x5a30cc=0x2;else{if(_0x2852b4>=0x20)_0x5a30cc=0x3;else{if(_0x23b48f['vudnQ'](_0x2852b4,0x10))_0x5a30cc=0x4;else return[_0x2852b4,0x1];}}}if(_0x23b48f[_0x13433c(0x1e2)](_0x54ca41,_0x5a30cc)>_0xb1adf1[_0x13433c(0x211)])return[0x0,0x0];let _0x3f912e=0x0;for(let _0x3e966c=0x0;_0x23b48f[_0x13433c(0x1e1)](_0x3e966c,_0x5a30cc);_0x3e966c++){_0x3f912e=_0x3f912e*0x100+_0xb1adf1[_0x54ca41+_0x3e966c];}return[_0x3f912e,_0x5a30cc];}function readUint(_0x3b2d2c,_0x39472b,_0x39b68c){const _0x37a5d1={'ubjeb':function(_0x1d3407,_0x27401d){return _0x1d3407+_0x27401d;},'qLshm':function(_0x22626a,_0x552d68){return _0x22626a+_0x552d68;}};let _0x30c755=0x0;for(let _0x22b64b=0x0;_0x22b64b<_0x39b68c;_0x22b64b++){_0x30c755=_0x37a5d1['ubjeb'](_0x30c755*0x100,_0x3b2d2c[_0x37a5d1['qLshm'](_0x39472b,_0x22b64b)]);}return _0x30c755;}function isUnknownSize(_0x466a2a,_0xc02313){const _0x4d818b=_0x4e7f,_0xbaa1eb={'QkEWM':function(_0x33e8e,_0x5a700b){return _0x33e8e===_0x5a700b;},'YiIIl':function(_0x1a8c4c,_0x1b7d00){return _0x1a8c4c-_0x1b7d00;},'duiQH':function(_0x5838c,_0x1a2619){return _0x5838c*_0x1a2619;}};return _0xbaa1eb['QkEWM'](_0x466a2a,_0xbaa1eb['YiIIl'](Math['pow'](0x2,_0xbaa1eb[_0x4d818b(0x215)](0x7,_0xc02313)),0x1));}function _0x4e7f(_0x4da12b,_0xfe175d){_0x4da12b=_0x4da12b-0x1dd;const _0x1e6d43=_0x1e6d();let _0x4e7fad=_0x1e6d43[_0x4da12b];return _0x4e7fad;}function writeId(_0x3b6b55){const _0x408c23=_0x4e7f,_0x4f039b={'eQFxc':function(_0x360992,_0xd1523){return _0x360992<=_0xd1523;},'meDpm':function(_0x4d87fb,_0x27ad2d){return _0x4d87fb<=_0x27ad2d;},'gLcMh':function(_0x2eae11,_0x27015b){return _0x2eae11&_0x27015b;},'KtLvX':function(_0x5cc01a,_0x23da93){return _0x5cc01a>>_0x23da93;},'ylDUW':function(_0x2381e0,_0x22cba6){return _0x2381e0&_0x22cba6;},'aKDOZ':function(_0x326230,_0x2ba3ed){return _0x326230>>_0x2ba3ed;},'AaNMj':function(_0x38663e,_0x44c3ba){return _0x38663e&_0x44c3ba;}};if(_0x4f039b[_0x408c23(0x1f5)](_0x3b6b55,0xff))return Buffer[_0x408c23(0x1e0)]([_0x3b6b55]);if(_0x4f039b['meDpm'](_0x3b6b55,0xffff))return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x1f0)](_0x4f039b['KtLvX'](_0x3b6b55,0x8),0xff),_0x3b6b55&0xff]);if(_0x4f039b['meDpm'](_0x3b6b55,0xffffff))return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x202)](_0x3b6b55>>0x10,0xff),_0x4f039b[_0x408c23(0x21a)](_0x3b6b55,0x8)&0xff,_0x3b6b55&0xff]);return Buffer[_0x408c23(0x1e0)]([_0x4f039b[_0x408c23(0x202)](_0x4f039b[_0x408c23(0x21a)](_0x3b6b55,0x18),0xff),_0x3b6b55>>0x10&0xff,_0x4f039b[_0x408c23(0x210)](_0x3b6b55>>0x8,0xff),_0x4f039b[_0x408c23(0x202)](_0x3b6b55,0xff)]);}function writeVint(_0x2b6a39,_0x5f3501){const _0x532184=_0x4e7f,_0x105ae3={'MoaLt':function(_0x103d9e,_0x6c5122){return _0x103d9e||_0x6c5122;},'bLWYT':function(_0xbae152,_0x27a481){return _0xbae152<_0x27a481;},'uNNBY':function(_0x45939e,_0x492757){return _0x45939e-_0x492757;},'JTOTk':function(_0x15200f,_0x1a3754){return _0x15200f*_0x1a3754;},'jtKLx':function(_0x1b75d2,_0x36c621){return _0x1b75d2>=_0x36c621;},'CSXTd':function(_0x1c1c1c,_0x2b029f){return _0x1c1c1c<<_0x2b029f;}};let _0x51e528=_0x105ae3[_0x532184(0x1f4)](_0x5f3501,0x1);while(_0x105ae3['bLWYT'](_0x105ae3[_0x532184(0x1ea)](Math[_0x532184(0x20f)](0x2,_0x105ae3['JTOTk'](0x7,_0x51e528)),0x2),_0x2b6a39))_0x51e528++;const _0x32dde4=Buffer['alloc'](_0x51e528);for(let _0xed880=_0x51e528-0x1;_0x105ae3[_0x532184(0x207)](_0xed880,0x0);_0xed880--){_0x32dde4[_0xed880]=_0x2b6a39&0xff,_0x2b6a39=Math['floor'](_0x2b6a39/0x100);}return _0x32dde4[0x0]|=_0x105ae3['CSXTd'](0x1,0x8-_0x51e528),_0x32dde4;}function writeFloat64(_0x961eea){const _0x3748c0=Buffer['alloc'](0x8);return _0x3748c0['writeDoubleBE'](_0x961eea,0x0),_0x3748c0;}function writeVoid(_0x52f08c){const _0x281a89=_0x4e7f,_0x3bdd7f={'EeEiU':function(_0x515f10,_0x47814c){return _0x515f10<=_0x47814c;},'BxoHn':function(_0xf67e01,_0x1bf45a){return _0xf67e01-_0x1bf45a;},'JxyXo':function(_0x1e38de,_0xa9a1c2){return _0x1e38de-_0xa9a1c2;},'EyCJj':function(_0x4d4d22,_0x3021f1){return _0x4d4d22>=_0x3021f1;}};for(let _0x559618=0x1;_0x3bdd7f[_0x281a89(0x1f8)](_0x559618,0x8);_0x559618++){const _0x373f15=_0x3bdd7f['BxoHn'](_0x3bdd7f[_0x281a89(0x1f2)](_0x52f08c,0x1),_0x559618);if(_0x3bdd7f[_0x281a89(0x20e)](_0x373f15,0x0)&&_0x3bdd7f[_0x281a89(0x1f8)](_0x373f15,Math['pow'](0x2,0x7*_0x559618)-0x2))return Buffer[_0x281a89(0x1e7)]([Buffer[_0x281a89(0x1e0)]([ID_VOID]),writeVint(_0x373f15,_0x559618),Buffer[_0x281a89(0x1e4)](_0x373f15)]);}return Buffer[_0x281a89(0x1e4)](0x0);}function findElement(_0x2ecaa1,_0x16d84a,_0x31e1c2,_0x4148e3){const _0x15b8f6=_0x4e7f,_0x5b05bb={'uhtfA':function(_0x481ec7,_0x19df9f){return _0x481ec7<_0x19df9f;},'wCtrW':function(_0x40c835,_0x2174e2){return _0x40c835===_0x2174e2;},'jMFiR':function(_0x4f3575,_0xc070a7){return _0x4f3575+_0xc070a7;}};let _0x145c95=_0x16d84a;while(_0x5b05bb[_0x15b8f6(0x21d)](_0x145c95,_0x31e1c2)){const [_0x3826e5,_0xd2b08f]=readId(_0x2ecaa1,_0x145c95),[_0x1b1f0b,_0x2784c0]=readVint(_0x2ecaa1,_0x145c95+_0xd2b08f);if(_0x5b05bb['wCtrW'](_0x3826e5,_0x4148e3))return{'offset':_0x145c95,'idLen':_0xd2b08f,'sizeLen':_0x2784c0,'dataSize':_0x1b1f0b,'dataOffset':_0x145c95+_0xd2b08f+_0x2784c0};if(isUnknownSize(_0x1b1f0b,_0x2784c0))break;_0x145c95+=_0x5b05bb['jMFiR'](_0xd2b08f+_0x2784c0,_0x1b1f0b);}return null;}function computeDurationMs(_0x15bf7e,_0x287fa7){const _0x7fa2a4=_0x4e7f,_0xc4e37f={'bFbPs':function(_0x34513d,_0x1e58d5){return _0x34513d===_0x1e58d5;},'gGczi':function(_0x582f9a,_0x566481){return _0x582f9a<_0x566481;},'koyqG':function(_0x16fddc,_0x5121ee,_0x394440){return _0x16fddc(_0x5121ee,_0x394440);},'NhAbD':function(_0x325b68,_0x18e7e9,_0x3d9f46){return _0x325b68(_0x18e7e9,_0x3d9f46);},'BUzFu':function(_0x1c4e8c,_0x3174f0){return _0x1c4e8c+_0x3174f0;},'lKTPC':function(_0x4a2da3,_0x472138){return _0x4a2da3+_0x472138;},'kcWFj':function(_0x40da5e,_0x772bf6){return _0x40da5e===_0x772bf6;},'uzSaX':function(_0x25bb8a,_0x891937,_0x2d7b27){return _0x25bb8a(_0x891937,_0x2d7b27);},'cTsds':function(_0x3a0c04,_0x26216b){return _0x3a0c04<_0x26216b;},'GONIA':function(_0x26198f,_0x3e57f2,_0x2efd99){return _0x26198f(_0x3e57f2,_0x2efd99);},'EfojM':function(_0x4c666c,_0x4167e4){return _0x4c666c===_0x4167e4;},'ZlfJr':function(_0x4c253c,_0x5ea1c5){return _0x4c253c/_0x5ea1c5;},'lgNkJ':function(_0x58399c,_0x12fa33){return _0x58399c*_0x12fa33;}};let _0x5df8ec=0x0;const _0xd189ec=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x58c1e3=_0x15bf7e['indexOf'](_0xd189ec);if(_0xc4e37f['bFbPs'](_0x58c1e3,-0x1))return 0x0;while(_0xc4e37f['gGczi'](_0x58c1e3,_0x15bf7e['length'])){const [_0x38afa5,_0x22e97d]=_0xc4e37f[_0x7fa2a4(0x205)](readId,_0x15bf7e,_0x58c1e3);if(_0x38afa5!==ID_CLUSTER)break;const [_0x53efe9,_0x3a80b5]=_0xc4e37f[_0x7fa2a4(0x1ef)](readVint,_0x15bf7e,_0xc4e37f[_0x7fa2a4(0x1dd)](_0x58c1e3,_0x22e97d)),_0x2df49d=_0xc4e37f['BUzFu'](_0xc4e37f[_0x7fa2a4(0x1fc)](_0x58c1e3,_0x22e97d),_0x3a80b5),_0x1cbf13=isUnknownSize(_0x53efe9,_0x3a80b5);let _0x18061f;if(_0x1cbf13){let _0x3a66be=_0x2df49d;while(_0x3a66be<_0x15bf7e['length']-0x4){const [_0x1f1893,_0x2fa552]=readId(_0x15bf7e,_0x3a66be);if(_0xc4e37f['kcWFj'](_0x1f1893,ID_CLUSTER)){_0x18061f=_0x3a66be;break;}const [_0x2b6030,_0x17517e]=_0xc4e37f['uzSaX'](readVint,_0x15bf7e,_0xc4e37f['lKTPC'](_0x3a66be,_0x2fa552));if(isUnknownSize(_0x2b6030,_0x17517e)){_0x18061f=_0x15bf7e[_0x7fa2a4(0x211)];break;}_0x3a66be+=_0xc4e37f[_0x7fa2a4(0x1dd)](_0x2fa552+_0x17517e,_0x2b6030);}_0x18061f??=_0x15bf7e[_0x7fa2a4(0x211)];}else _0x18061f=_0x2df49d+_0x53efe9;let _0x1ea6d0=0x0,_0x3d3122=_0x2df49d;while(_0xc4e37f[_0x7fa2a4(0x1f3)](_0x3d3122,_0x18061f)){const [_0x40b663,_0x1f3b8e]=_0xc4e37f['NhAbD'](readId,_0x15bf7e,_0x3d3122),[_0x20cadd,_0x3e5375]=_0xc4e37f['GONIA'](readVint,_0x15bf7e,_0x3d3122+_0x1f3b8e);if(_0xc4e37f['EfojM'](_0x40b663,ID_TIMESTAMP))_0x1ea6d0=readUint(_0x15bf7e,_0xc4e37f[_0x7fa2a4(0x1dd)](_0x3d3122,_0x1f3b8e)+_0x3e5375,_0x20cadd);else{if(_0x40b663===ID_SIMPLE_BLOCK&&_0x20cadd>=0x4){const _0x42d1e2=_0xc4e37f[_0x7fa2a4(0x1fc)](_0x3d3122,_0x1f3b8e)+_0x3e5375,[,_0x16a3ca]=readVint(_0x15bf7e,_0x42d1e2),_0x19dd4c=_0x15bf7e['readInt16BE'](_0xc4e37f['BUzFu'](_0x42d1e2,_0x16a3ca)),_0xfaad75=_0xc4e37f['ZlfJr'](_0xc4e37f['lgNkJ'](_0xc4e37f['BUzFu'](_0x1ea6d0,_0x19dd4c),_0x287fa7),0xf4240);_0xfaad75>_0x5df8ec&&(_0x5df8ec=_0xfaad75);}else{if(_0x40b663===ID_CLUSTER)break;}}if(_0xc4e37f['GONIA'](isUnknownSize,_0x20cadd,_0x3e5375))break;_0x3d3122+=_0xc4e37f['BUzFu'](_0x1f3b8e,_0x3e5375)+_0x20cadd;}_0x58c1e3=_0x18061f;}return _0x5df8ec;}export function fixWebmDuration(_0x3a1c84,_0x501477){const _0x23ec46=_0x4e7f,_0x4f9c84={'uKkre':function(_0x5e87a6,_0x2859d8,_0x2bce40){return _0x5e87a6(_0x2859d8,_0x2bce40);},'BBFgq':function(_0x1fd8d6,_0x18ad34,_0x323460){return _0x1fd8d6(_0x18ad34,_0x323460);},'BfqlW':function(_0x2a8e41,_0x10635c){return _0x2a8e41!==_0x10635c;},'NDicq':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','tMmQq':function(_0x38597f,_0x1b94ac,_0xd8ca19){return _0x38597f(_0x1b94ac,_0xd8ca19);},'mpOvp':function(_0x2aa098,_0x5a28f8){return _0x2aa098+_0x5a28f8;},'KrCnS':function(_0x2a1ad2,_0x4b2c4b){return _0x2a1ad2+_0x4b2c4b;},'JqUcN':function(_0x4b973b,_0x2e8c38){return _0x4b973b+_0x2e8c38;},'ghafc':function(_0x228f5f,_0x10f37a){return _0x228f5f===_0x10f37a;},'MUgGa':function(_0x1d489a,_0x46e0ad){return _0x1d489a+_0x46e0ad;},'tLTym':function(_0x510c26,_0x554907,_0x56d88d,_0x22e34e,_0x16d9eb){return _0x510c26(_0x554907,_0x56d88d,_0x22e34e,_0x16d9eb);},'cwCXS':function(_0x252e0b,_0x187e4c,_0x5d771c,_0x39fd5b,_0x868eab){return _0x252e0b(_0x187e4c,_0x5d771c,_0x39fd5b,_0x868eab);},'ubrsB':function(_0x37fcca,_0x4a3488){return _0x37fcca+_0x4a3488;},'PICfE':function(_0x56450d,_0x328341){return _0x56450d<=_0x328341;},'SvqjN':'Could\x20not\x20compute\x20duration','qSvkG':function(_0x25b5d7,_0x11667f){return _0x25b5d7*_0x11667f;},'SLzmC':function(_0x591140,_0x5743f1){return _0x591140(_0x5743f1);},'CJOro':function(_0x429491,_0xc3c7ac){return _0x429491(_0xc3c7ac);},'pMnFR':function(_0x2f8f2d,_0x2242c2){return _0x2f8f2d(_0x2242c2);},'gAGgI':function(_0x50a5ec,_0x390f60){return _0x50a5ec<_0x390f60;},'Fenay':function(_0x59ed44,_0x42d927){return _0x59ed44+_0x42d927;},'alOJX':function(_0x477922,_0x408fe4){return _0x477922-_0x408fe4;},'muISg':function(_0x375dd3,_0x392dfd,_0x4321e3){return _0x375dd3(_0x392dfd,_0x4321e3);},'WVrwo':function(_0x10e102,_0x3c53f4,_0x3743f1,_0x1d046b,_0x14017e,_0x274f24,_0x473b4f){return _0x10e102(_0x3c53f4,_0x3743f1,_0x1d046b,_0x14017e,_0x274f24,_0x473b4f);}},_0x18119b=readFileSync(_0x3a1c84);let _0x16822c=0x0;const [_0xde8d61,_0x24ad19]=_0x4f9c84[_0x23ec46(0x213)](readId,_0x18119b,_0x16822c),[_0x3a631a,_0x5ed55b]=_0x4f9c84['uKkre'](readVint,_0x18119b,_0x16822c+_0x24ad19);_0x16822c+=_0x24ad19+_0x5ed55b+_0x3a631a;const [_0x2db22f,_0x593b1e]=_0x4f9c84['BBFgq'](readId,_0x18119b,_0x16822c);if(_0x4f9c84[_0x23ec46(0x214)](_0x2db22f,ID_SEGMENT))return console[_0x23ec46(0x21c)](_0x4f9c84['NDicq']),![];const [,_0x40b480]=_0x4f9c84[_0x23ec46(0x1eb)](readVint,_0x18119b,_0x4f9c84[_0x23ec46(0x1f7)](_0x16822c,_0x593b1e)),_0x294f8c=_0x4f9c84[_0x23ec46(0x1df)](_0x16822c+_0x593b1e,_0x40b480);let _0x2b39eb=_0x294f8c;const _0x2cf527=Math['min'](_0x18119b['length'],_0x294f8c+0x2710);let _0x39010b=null,_0x2fe691=null;while(_0x2b39eb<_0x2cf527){const [_0x1fd77e,_0x431c70]=_0x4f9c84['uKkre'](readId,_0x18119b,_0x2b39eb),[_0x5f4cbd,_0x31db5a]=readVint(_0x18119b,_0x4f9c84[_0x23ec46(0x216)](_0x2b39eb,_0x431c70));_0x4f9c84[_0x23ec46(0x1f6)](_0x1fd77e,ID_VOID)&&!_0x39010b&&(_0x39010b={'offset':_0x2b39eb,'idLen':_0x431c70,'sizeLen':_0x31db5a,'dataSize':_0x5f4cbd,'dataOffset':_0x2b39eb+_0x431c70+_0x31db5a});if(_0x1fd77e===ID_INFO){_0x2fe691={'offset':_0x2b39eb,'idLen':_0x431c70,'sizeLen':_0x31db5a,'dataSize':_0x5f4cbd,'dataOffset':_0x4f9c84[_0x23ec46(0x1df)](_0x2b39eb,_0x431c70)+_0x31db5a};break;}if(_0x1fd77e===ID_CLUSTER)break;if(_0x4f9c84['tMmQq'](isUnknownSize,_0x5f4cbd,_0x31db5a))break;_0x2b39eb+=_0x4f9c84['MUgGa'](_0x431c70,_0x31db5a)+_0x5f4cbd;}if(!_0x2fe691)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x455f85=_0x4f9c84[_0x23ec46(0x1ec)](findElement,_0x18119b,_0x2fe691[_0x23ec46(0x1e3)],_0x4f9c84[_0x23ec46(0x1e9)](_0x2fe691['dataOffset'],_0x2fe691['dataSize']),ID_DURATION);if(_0x455f85)return![];const _0x3833c5=_0x4f9c84['cwCXS'](findElement,_0x18119b,_0x2fe691[_0x23ec46(0x1e3)],_0x4f9c84['ubrsB'](_0x2fe691['dataOffset'],_0x2fe691['dataSize']),ID_TIMESTAMP_SCALE);let _0x576603=0xf4240;_0x3833c5&&(_0x576603=readUint(_0x18119b,_0x3833c5[_0x23ec46(0x1e3)],_0x3833c5[_0x23ec46(0x20b)]));const _0x131bea=computeDurationMs(_0x18119b,_0x576603);if(_0x4f9c84[_0x23ec46(0x1ed)](_0x131bea,0x0))return console[_0x23ec46(0x21c)](_0x4f9c84['SvqjN']),![];const _0x62869b=_0x4f9c84[_0x23ec46(0x1fb)](_0x131bea,0xf4240)/_0x576603,_0x251f84=Buffer[_0x23ec46(0x1e7)]([_0x4f9c84['SLzmC'](writeId,ID_DURATION),_0x4f9c84['CJOro'](writeVint,0x8),_0x4f9c84[_0x23ec46(0x1fa)](writeFloat64,_0x62869b)]),_0x2fc800=_0x251f84[_0x23ec46(0x211)];if(!_0x39010b||_0x4f9c84[_0x23ec46(0x219)](_0x39010b['offset'],_0x2fe691[_0x23ec46(0x203)])){if(_0x39010b){const _0x44a518=_0x4f9c84[_0x23ec46(0x20d)](_0x39010b[_0x23ec46(0x217)],_0x39010b[_0x23ec46(0x218)])+_0x39010b['dataSize'],_0xa746a3=_0x4f9c84['alOJX'](_0x44a518,_0x2fc800);if(_0x4f9c84[_0x23ec46(0x219)](_0xa746a3,0x2))return rewriteFile(_0x18119b,_0x2fe691,_0x251f84,_0x576603,_0x131bea,_0x501477);const _0x3579be=_0x2fe691[_0x23ec46(0x20b)]+_0x2fc800,_0x106833=Buffer[_0x23ec46(0x1e7)]([writeId(ID_INFO),_0x4f9c84[_0x23ec46(0x20a)](writeVint,_0x3579be,_0x2fe691['sizeLen'])]),_0x539a14=_0x18119b['slice'](_0x2fe691[_0x23ec46(0x1e3)],_0x2fe691['dataOffset']+_0x2fe691[_0x23ec46(0x20b)]),_0x51458d=_0x4f9c84['pMnFR'](writeVoid,_0xa746a3),_0x530dce=_0x18119b[_0x23ec46(0x1de)](0x0,_0x39010b['offset']),_0x91ea2b=_0x18119b['slice'](_0x2fe691['dataOffset']+_0x2fe691[_0x23ec46(0x20b)]);return _0x4f9c84[_0x23ec46(0x213)](writeFileSync,_0x501477,Buffer['concat']([_0x530dce,_0x51458d,_0x106833,_0x539a14,_0x251f84,_0x91ea2b])),!![];}}return _0x4f9c84[_0x23ec46(0x21f)](rewriteFile,_0x18119b,_0x2fe691,_0x251f84,_0x576603,_0x131bea,_0x501477);}function rewriteFile(_0x150d7d,_0x8a72b7,_0x37a28d,_0x409b7a,_0x59656f,_0x3faca1){const _0x218589=_0x4e7f,_0x1b3f77={'wrlgL':function(_0x226836,_0x2d6f57){return _0x226836+_0x2d6f57;},'glJwj':function(_0x21e145,_0x14a364){return _0x21e145(_0x14a364);},'bVykA':function(_0x5e3967,_0x33d0b3){return _0x5e3967+_0x33d0b3;},'SdUaF':function(_0x27aa51,_0x25ce51){return _0x27aa51+_0x25ce51;}},_0x2874ab=_0x1b3f77[_0x218589(0x200)](_0x8a72b7[_0x218589(0x20b)],_0x37a28d['length']),_0x36b4ac=Buffer['concat']([writeId(ID_INFO),_0x1b3f77[_0x218589(0x206)](writeVint,_0x2874ab)]),_0x982690=_0x8a72b7['idLen']+_0x8a72b7[_0x218589(0x218)],_0x181e83=_0x150d7d['slice'](0x0,_0x8a72b7[_0x218589(0x203)]),_0x19c87c=_0x150d7d[_0x218589(0x1de)](_0x8a72b7[_0x218589(0x1e3)],_0x1b3f77[_0x218589(0x200)](_0x8a72b7['dataOffset'],_0x8a72b7['dataSize'])),_0x3703cc=_0x150d7d[_0x218589(0x1de)](_0x1b3f77[_0x218589(0x1e8)](_0x1b3f77[_0x218589(0x1ff)](_0x8a72b7[_0x218589(0x203)],_0x982690),_0x8a72b7[_0x218589(0x20b)]));return writeFileSync(_0x3faca1,Buffer[_0x218589(0x1e7)]([_0x181e83,_0x36b4ac,_0x19c87c,_0x37a28d,_0x3703cc])),!![];}function _0x1e6d(){const _0x7fa280=['2487443eNsycU','Fenay','EyCJj','pow','AaNMj','length','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','uKkre','BfqlW','duiQH','JqUcN','idLen','sizeLen','gAGgI','aKDOZ','1427600fXUczQ','error','uhtfA','6pNoOis','WVrwo','BUzFu','slice','KrCnS','from','vRHoQ','JLoFJ','dataOffset','alloc','argv','1964421vtNaYI','concat','bVykA','MUgGa','uNNBY','tMmQq','tLTym','PICfE','16wCmFCi','NhAbD','gLcMh','endsWith','JxyXo','cTsds','MoaLt','eQFxc','ghafc','mpOvp','EeEiU','9602490LoyWtG','pMnFR','qSvkG','lKTPC','248LkUQtJ','log','SdUaF','wrlgL','15994EjjVSH','ylDUW','offset','788673ePPsdC','koyqG','glJwj','jtKLx','jOpuk','29155ujgPNM','muISg','dataSize'];_0x1e6d=function(){return _0x7fa280;};return _0x1e6d();}if(process['argv'][0x1]?.[_0x1e6d20(0x1f1)]('fixWebmDuration.ts')||process[_0x1e6d20(0x1e5)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x1e6d20(0x1e5)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1e6d20(0x1fe)]('Fixed:\x20'+output):console['log'](_0x1e6d20(0x212));}
|
|
1
|
+
const _0x58858c=_0x1c08;(function(_0x1f53bf,_0x5ad8e4){const _0x25069d=_0x1c08,_0x34251a=_0x1f53bf();while(!![]){try{const _0x190ef3=-parseInt(_0x25069d(0x1bb))/0x1*(-parseInt(_0x25069d(0x1c4))/0x2)+parseInt(_0x25069d(0x1dd))/0x3*(parseInt(_0x25069d(0x1d0))/0x4)+parseInt(_0x25069d(0x1d6))/0x5+parseInt(_0x25069d(0x1d3))/0x6*(-parseInt(_0x25069d(0x1b8))/0x7)+-parseInt(_0x25069d(0x1aa))/0x8*(parseInt(_0x25069d(0x1cd))/0x9)+-parseInt(_0x25069d(0x1dc))/0xa*(-parseInt(_0x25069d(0x1a7))/0xb)+-parseInt(_0x25069d(0x1cb))/0xc;if(_0x190ef3===_0x5ad8e4)break;else _0x34251a['push'](_0x34251a['shift']());}catch(_0x3702c6){_0x34251a['push'](_0x34251a['shift']());}}}(_0x4598,0xf2f14));function _0x4598(){const _0x4572fe=['concat','20439gWGzwm','oEFHf','MnEJP','780644sAFWQu','offset','oGoGj','121098PHFBvJ','HkxXZ','SMLgJ','9870835vBjiAk','NWWlb','pSQdQ','argv','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','wKKZL','352420iNEpXB','21HxjnrC','Yfjcw','tLPyb','lkcfU','DBoae','floor','jHSKR','dataOffset','tkUUl','HNvbH','readInt16BE','Yjgdh','143ZVmKPL','Could\x20not\x20find\x20Info\x20element','endsWith','5296HPoCeV','AHhDc','hOdsm','from','jUKLm','qlIMb','rezKN','KYTbW','alloc','Fixed:\x20','kiiJt','log','slice','oKRGP','154cVFfSn','cjZAU','pow','225958TUNooN','aGCxS','error','sizeLen','tqLvh','UfWqL','dzMYN','MYwrq','JsntI','8YSQFGF','ThybB','sdAwj','hiixC','LLaGd','length','dataSize','21117024XwcwNR'];_0x4598=function(){return _0x4572fe;};return _0x4598();}function _0x1c08(_0x54b30d,_0x26615f){_0x54b30d=_0x54b30d-0x19f;const _0x45980c=_0x4598();let _0x1c082a=_0x45980c[_0x54b30d];return _0x1c082a;}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(_0x5a1a32,_0x2d4d29){const _0x250e3d=_0x1c08,_0x178190={'MnEJP':function(_0x456d12,_0x51b86e){return _0x456d12<=_0x51b86e;},'pAeKV':function(_0x59ddae,_0x33f780){return _0x59ddae>_0x33f780;},'AaTNe':function(_0x58c3de,_0x50d0c4){return _0x58c3de+_0x50d0c4;},'tqLvh':function(_0x4638da,_0x152d03){return _0x4638da&_0x152d03;},'sdAwj':function(_0x456a9b,_0x14ffcd){return _0x456a9b*_0x14ffcd;}};if(_0x2d4d29>=_0x5a1a32[_0x250e3d(0x1c9)])return[0x0,0x0];const _0x4c447c=_0x5a1a32[_0x2d4d29];let _0x262529=0x1,_0x4bbbbd=0x80;while(_0x178190[_0x250e3d(0x1cf)](_0x262529,0x8)&&!(_0x4c447c&_0x4bbbbd)){_0x262529++,_0x4bbbbd>>=0x1;}if(_0x178190['pAeKV'](_0x178190['AaTNe'](_0x2d4d29,_0x262529),_0x5a1a32[_0x250e3d(0x1c9)]))return[0x0,0x0];let _0x39207b=_0x178190[_0x250e3d(0x1bf)](_0x4c447c,_0x4bbbbd-0x1);for(let _0x3746bc=0x1;_0x3746bc<_0x262529;_0x3746bc++){_0x39207b=_0x178190[_0x250e3d(0x1c6)](_0x39207b,0x100)+_0x5a1a32[_0x2d4d29+_0x3746bc];}return[_0x39207b,_0x262529];}function readId(_0xd9f597,_0x3ee987){const _0x56257e=_0x1c08,_0x47c153={'oEFHf':function(_0x63d82c,_0x2d2117){return _0x63d82c>=_0x2d2117;},'exXfz':function(_0x7250ec,_0x407616){return _0x7250ec<_0x407616;},'JsntI':function(_0x39f773,_0x59bbf2){return _0x39f773+_0x59bbf2;}};if(_0x47c153[_0x56257e(0x1ce)](_0x3ee987,_0xd9f597[_0x56257e(0x1c9)]))return[0x0,0x0];const _0x1d9708=_0xd9f597[_0x3ee987];let _0x3150cd;if(_0x1d9708>=0x80)_0x3150cd=0x1;else{if(_0x1d9708>=0x40)_0x3150cd=0x2;else{if(_0x1d9708>=0x20)_0x3150cd=0x3;else{if(_0x1d9708>=0x10)_0x3150cd=0x4;else return[_0x1d9708,0x1];}}}if(_0x3ee987+_0x3150cd>_0xd9f597['length'])return[0x0,0x0];let _0x3abe78=0x0;for(let _0x1448af=0x0;_0x47c153['exXfz'](_0x1448af,_0x3150cd);_0x1448af++){_0x3abe78=_0x47c153[_0x56257e(0x1c3)](_0x3abe78*0x100,_0xd9f597[_0x3ee987+_0x1448af]);}return[_0x3abe78,_0x3150cd];}function readUint(_0x42fe03,_0x2c4250,_0x44ead0){const _0x5d468d=_0x1c08,_0x41a5c6={'hOdsm':function(_0x2ed93a,_0x38ff42){return _0x2ed93a<_0x38ff42;},'xJOpK':function(_0x1f1686,_0x4e9c44){return _0x1f1686*_0x4e9c44;}};let _0x12d011=0x0;for(let _0x248612=0x0;_0x41a5c6[_0x5d468d(0x1ac)](_0x248612,_0x44ead0);_0x248612++){_0x12d011=_0x41a5c6['xJOpK'](_0x12d011,0x100)+_0x42fe03[_0x2c4250+_0x248612];}return _0x12d011;}function isUnknownSize(_0x5ac50d,_0x1b665e){return _0x5ac50d===Math['pow'](0x2,0x7*_0x1b665e)-0x1;}function writeId(_0x57c05f){const _0x1efd64=_0x1c08,_0x2b9471={'jHSKR':function(_0x34ed05,_0x4c10d7){return _0x34ed05<=_0x4c10d7;},'SdoVD':function(_0x13b78f,_0x33d640){return _0x13b78f&_0x33d640;},'yBosF':function(_0x5bef4b,_0x205c25){return _0x5bef4b>>_0x205c25;},'LLaGd':function(_0x4aaadc,_0x2f9c00){return _0x4aaadc<=_0x2f9c00;},'Hucmd':function(_0xfd90d5,_0x1f2d81){return _0xfd90d5&_0x1f2d81;},'totrb':function(_0x1ed70c,_0x56ae73){return _0x1ed70c>>_0x56ae73;},'BQjVZ':function(_0xf221a8,_0x560500){return _0xf221a8&_0x560500;},'xtIjA':function(_0x2d627b,_0x72fd0){return _0x2d627b&_0x72fd0;}};if(_0x2b9471[_0x1efd64(0x1a1)](_0x57c05f,0xff))return Buffer[_0x1efd64(0x1ad)]([_0x57c05f]);if(_0x2b9471[_0x1efd64(0x1a1)](_0x57c05f,0xffff))return Buffer['from']([_0x2b9471['SdoVD'](_0x2b9471['yBosF'](_0x57c05f,0x8),0xff),_0x2b9471['SdoVD'](_0x57c05f,0xff)]);if(_0x2b9471[_0x1efd64(0x1c8)](_0x57c05f,0xffffff))return Buffer['from']([_0x2b9471['Hucmd'](_0x57c05f>>0x10,0xff),_0x2b9471['totrb'](_0x57c05f,0x8)&0xff,_0x57c05f&0xff]);return Buffer[_0x1efd64(0x1ad)]([_0x57c05f>>0x18&0xff,_0x2b9471['BQjVZ'](_0x57c05f>>0x10,0xff),_0x2b9471['xtIjA'](_0x2b9471['totrb'](_0x57c05f,0x8),0xff),_0x57c05f&0xff]);}function writeVint(_0x5bf5cf,_0x4b822c){const _0x5f4695=_0x1c08,_0xbb9d88={'UfWqL':function(_0x5dc197,_0x14cd13){return _0x5dc197||_0x14cd13;},'rezKN':function(_0x28d022,_0x406cdf){return _0x28d022-_0x406cdf;},'ljUdw':function(_0x174979,_0x59204b){return _0x174979*_0x59204b;},'USuAv':function(_0xdd3ff8,_0x234592){return _0xdd3ff8&_0x234592;},'ZwWBk':function(_0x26efd5,_0x58f45f){return _0x26efd5/_0x58f45f;}};let _0x481ed4=_0xbb9d88[_0x5f4695(0x1c0)](_0x4b822c,0x1);while(_0xbb9d88[_0x5f4695(0x1b0)](Math['pow'](0x2,_0xbb9d88['ljUdw'](0x7,_0x481ed4)),0x2)<_0x5bf5cf)_0x481ed4++;const _0x5ded3e=Buffer[_0x5f4695(0x1b2)](_0x481ed4);for(let _0x262e1e=_0xbb9d88[_0x5f4695(0x1b0)](_0x481ed4,0x1);_0x262e1e>=0x0;_0x262e1e--){_0x5ded3e[_0x262e1e]=_0xbb9d88['USuAv'](_0x5bf5cf,0xff),_0x5bf5cf=Math[_0x5f4695(0x1a0)](_0xbb9d88['ZwWBk'](_0x5bf5cf,0x100));}return _0x5ded3e[0x0]|=0x1<<_0xbb9d88[_0x5f4695(0x1b0)](0x8,_0x481ed4),_0x5ded3e;}function writeFloat64(_0x2f4046){const _0x5cbdc1=Buffer['alloc'](0x8);return _0x5cbdc1['writeDoubleBE'](_0x2f4046,0x0),_0x5cbdc1;}function writeVoid(_0x1f8a35){const _0x2c5be2=_0x1c08,_0x3e23d8={'wKKZL':function(_0x5509f7,_0x1a9756){return _0x5509f7>=_0x1a9756;},'tBpGq':function(_0x513236,_0x2c00c2){return _0x513236-_0x2c00c2;},'qlIMb':function(_0x4c2b87,_0x6204ab){return _0x4c2b87*_0x6204ab;},'AHhDc':function(_0x3ea2b6,_0x2a2456,_0x43409a){return _0x3ea2b6(_0x2a2456,_0x43409a);}};for(let _0x1dbb80=0x1;_0x1dbb80<=0x8;_0x1dbb80++){const _0x180642=_0x1f8a35-0x1-_0x1dbb80;if(_0x3e23d8[_0x2c5be2(0x1db)](_0x180642,0x0)&&_0x180642<=_0x3e23d8['tBpGq'](Math[_0x2c5be2(0x1ba)](0x2,_0x3e23d8[_0x2c5be2(0x1af)](0x7,_0x1dbb80)),0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),_0x3e23d8[_0x2c5be2(0x1ab)](writeVint,_0x180642,_0x1dbb80),Buffer['alloc'](_0x180642)]);}return Buffer[_0x2c5be2(0x1b2)](0x0);}function findElement(_0x12a392,_0x3e7f4b,_0x158816,_0x12be31){const _0x2f321a={'ZcUbr':function(_0x56779d,_0x5c08ce){return _0x56779d+_0x5c08ce;}};let _0x214d3e=_0x3e7f4b;while(_0x214d3e<_0x158816){const [_0x14d26b,_0x3eed49]=readId(_0x12a392,_0x214d3e),[_0x46b91a,_0xf488ed]=readVint(_0x12a392,_0x214d3e+_0x3eed49);if(_0x14d26b===_0x12be31)return{'offset':_0x214d3e,'idLen':_0x3eed49,'sizeLen':_0xf488ed,'dataSize':_0x46b91a,'dataOffset':_0x2f321a['ZcUbr'](_0x2f321a['ZcUbr'](_0x214d3e,_0x3eed49),_0xf488ed)};if(isUnknownSize(_0x46b91a,_0xf488ed))break;_0x214d3e+=_0x3eed49+_0xf488ed+_0x46b91a;}return null;}function computeDurationMs(_0x115810,_0x3289ea){const _0x355125=_0x1c08,_0x5bb803={'vHafA':function(_0x4c8a68,_0x3b7154){return _0x4c8a68===_0x3b7154;},'Yfjcw':function(_0x306534,_0x2b4334,_0xe69b52){return _0x306534(_0x2b4334,_0xe69b52);},'CQUuA':function(_0x54e079,_0x301c8d){return _0x54e079!==_0x301c8d;},'NWWlb':function(_0x4508fc,_0x41311c){return _0x4508fc+_0x41311c;},'jUKLm':function(_0x3fd757,_0x104eb1){return _0x3fd757===_0x104eb1;},'tkUUl':function(_0x1ba7fe,_0x4c8649,_0x3ce9e3){return _0x1ba7fe(_0x4c8649,_0x3ce9e3);},'MYwrq':function(_0x62ea06,_0x58e73d){return _0x62ea06+_0x58e73d;},'xYYOc':function(_0x1fb7a2,_0x450832){return _0x1fb7a2+_0x450832;},'oKRGP':function(_0x57d1ef,_0x441317){return _0x57d1ef===_0x441317;},'DBoae':function(_0x4c0839,_0x5eda58){return _0x4c0839+_0x5eda58;},'KYTbW':function(_0xace2ca,_0x2118ff){return _0xace2ca+_0x2118ff;},'hiixC':function(_0x5974ca,_0x26d2ab){return _0x5974ca+_0x26d2ab;},'VmzdD':function(_0x36e21,_0x319353){return _0x36e21/_0x319353;},'TJrsm':function(_0x101f31,_0x3998b2){return _0x101f31>_0x3998b2;}};let _0x2929c2=0x0;const _0x1cd1e8=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x267beb=_0x115810['indexOf'](_0x1cd1e8);if(_0x5bb803['vHafA'](_0x267beb,-0x1))return 0x0;while(_0x267beb<_0x115810['length']){const [_0x34464e,_0x28b410]=_0x5bb803['Yfjcw'](readId,_0x115810,_0x267beb);if(_0x5bb803['CQUuA'](_0x34464e,ID_CLUSTER))break;const [_0x2e63d9,_0x59781d]=readVint(_0x115810,_0x5bb803[_0x355125(0x1d7)](_0x267beb,_0x28b410)),_0x141793=_0x267beb+_0x28b410+_0x59781d,_0x353720=isUnknownSize(_0x2e63d9,_0x59781d);let _0x57ef72;if(_0x353720){let _0x50f7a6=_0x141793;while(_0x50f7a6<_0x115810['length']-0x4){const [_0x52fedf,_0x3cc7af]=readId(_0x115810,_0x50f7a6);if(_0x5bb803[_0x355125(0x1ae)](_0x52fedf,ID_CLUSTER)){_0x57ef72=_0x50f7a6;break;}const [_0x3e0cb6,_0x390368]=_0x5bb803[_0x355125(0x1de)](readVint,_0x115810,_0x50f7a6+_0x3cc7af);if(_0x5bb803['tkUUl'](isUnknownSize,_0x3e0cb6,_0x390368)){_0x57ef72=_0x115810['length'];break;}_0x50f7a6+=_0x3cc7af+_0x390368+_0x3e0cb6;}_0x57ef72??=_0x115810['length'];}else _0x57ef72=_0x5bb803[_0x355125(0x1c2)](_0x141793,_0x2e63d9);let _0x1800a0=0x0,_0x55e1a0=_0x141793;while(_0x55e1a0<_0x57ef72){const [_0x3f05ae,_0x227fda]=readId(_0x115810,_0x55e1a0),[_0x1b9cb0,_0x3d8678]=readVint(_0x115810,_0x5bb803['xYYOc'](_0x55e1a0,_0x227fda));if(_0x5bb803[_0x355125(0x1b7)](_0x3f05ae,ID_TIMESTAMP))_0x1800a0=readUint(_0x115810,_0x5bb803[_0x355125(0x19f)](_0x5bb803['MYwrq'](_0x55e1a0,_0x227fda),_0x3d8678),_0x1b9cb0);else{if(_0x3f05ae===ID_SIMPLE_BLOCK&&_0x1b9cb0>=0x4){const _0x2e4938=_0x5bb803[_0x355125(0x1b1)](_0x5bb803[_0x355125(0x1c7)](_0x55e1a0,_0x227fda),_0x3d8678),[,_0x192c6b]=_0x5bb803[_0x355125(0x1a3)](readVint,_0x115810,_0x2e4938),_0x8a48b1=_0x115810[_0x355125(0x1a5)](_0x2e4938+_0x192c6b),_0x591e23=_0x5bb803['VmzdD']((_0x1800a0+_0x8a48b1)*_0x3289ea,0xf4240);_0x5bb803['TJrsm'](_0x591e23,_0x2929c2)&&(_0x2929c2=_0x591e23);}else{if(_0x5bb803[_0x355125(0x1ae)](_0x3f05ae,ID_CLUSTER))break;}}if(isUnknownSize(_0x1b9cb0,_0x3d8678))break;_0x55e1a0+=_0x227fda+_0x3d8678+_0x1b9cb0;}_0x267beb=_0x57ef72;}return _0x2929c2;}export function fixWebmDuration(_0x5618b6,_0x42a70f){const _0x48b945=_0x1c08,_0x3b45cc={'mTltZ':function(_0x5c159c,_0x132ea7){return _0x5c159c(_0x132ea7);},'Yjgdh':function(_0x4ef48e,_0x6c53bf){return _0x4ef48e+_0x6c53bf;},'aGCxS':function(_0x5536b8,_0x5c62ac){return _0x5536b8<_0x5c62ac;},'lkcfU':function(_0x556ea7,_0x484c2a,_0x202fa4){return _0x556ea7(_0x484c2a,_0x202fa4);},'ThybB':function(_0x22a795,_0x4ca5aa){return _0x22a795+_0x4ca5aa;},'gQpZC':function(_0x56cc76,_0x1122a2){return _0x56cc76+_0x1122a2;},'dzMYN':function(_0x8c462b,_0x4c47ac){return _0x8c462b===_0x4c47ac;},'SMLgJ':_0x48b945(0x1a8),'eXOfp':function(_0x3d3729,_0x4c6fed){return _0x3d3729+_0x4c6fed;},'HuEEm':function(_0x4bf448,_0x50377e,_0x58df4c,_0x41f400,_0x4793d0){return _0x4bf448(_0x50377e,_0x58df4c,_0x41f400,_0x4793d0);},'HNvbH':'Could\x20not\x20compute\x20duration','KkIGW':function(_0x561ce1,_0x4eab2f){return _0x561ce1<_0x4eab2f;},'oGoGj':function(_0x4c2f8b,_0x25b64f){return _0x4c2f8b(_0x25b64f);},'kiiJt':function(_0x13a5e7,_0x5e4bd1){return _0x13a5e7+_0x5e4bd1;},'cjZAU':function(_0x51c80d,_0xb751e7){return _0x51c80d(_0xb751e7);},'oBOso':function(_0x46899f,_0xbc3379,_0x179ec6){return _0x46899f(_0xbc3379,_0x179ec6);},'WIWeS':function(_0x370d7a,_0x5b4709,_0x4a875a,_0x1e2376,_0x3f8edb,_0x1ccd13,_0x549347){return _0x370d7a(_0x5b4709,_0x4a875a,_0x1e2376,_0x3f8edb,_0x1ccd13,_0x549347);}},_0x45159c=_0x3b45cc['mTltZ'](readFileSync,_0x5618b6);let _0x133f2d=0x0;const [_0x15f3bf,_0x305ab3]=readId(_0x45159c,_0x133f2d),[_0x1d3a13,_0x1d23f3]=readVint(_0x45159c,_0x133f2d+_0x305ab3);_0x133f2d+=_0x3b45cc['Yjgdh'](_0x305ab3,_0x1d23f3)+_0x1d3a13;const [_0x13cbfa,_0x8aa3dd]=readId(_0x45159c,_0x133f2d);if(_0x13cbfa!==ID_SEGMENT)return console[_0x48b945(0x1bd)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x55258b]=readVint(_0x45159c,_0x133f2d+_0x8aa3dd),_0x166308=_0x3b45cc['Yjgdh'](_0x133f2d+_0x8aa3dd,_0x55258b);let _0x5f1307=_0x166308;const _0x1ba28e=Math['min'](_0x45159c[_0x48b945(0x1c9)],_0x3b45cc[_0x48b945(0x1a6)](_0x166308,0x2710));let _0x4a4c2c=null,_0xe0e280=null;while(_0x3b45cc[_0x48b945(0x1bc)](_0x5f1307,_0x1ba28e)){const [_0x57d99d,_0xe19b02]=_0x3b45cc[_0x48b945(0x1e0)](readId,_0x45159c,_0x5f1307),[_0x52cacc,_0x4516f0]=readVint(_0x45159c,_0x3b45cc['ThybB'](_0x5f1307,_0xe19b02));_0x57d99d===ID_VOID&&!_0x4a4c2c&&(_0x4a4c2c={'offset':_0x5f1307,'idLen':_0xe19b02,'sizeLen':_0x4516f0,'dataSize':_0x52cacc,'dataOffset':_0x3b45cc[_0x48b945(0x1c5)](_0x3b45cc['gQpZC'](_0x5f1307,_0xe19b02),_0x4516f0)});if(_0x57d99d===ID_INFO){_0xe0e280={'offset':_0x5f1307,'idLen':_0xe19b02,'sizeLen':_0x4516f0,'dataSize':_0x52cacc,'dataOffset':_0x3b45cc['ThybB'](_0x5f1307+_0xe19b02,_0x4516f0)};break;}if(_0x3b45cc[_0x48b945(0x1c1)](_0x57d99d,ID_CLUSTER))break;if(_0x3b45cc['lkcfU'](isUnknownSize,_0x52cacc,_0x4516f0))break;_0x5f1307+=_0x3b45cc[_0x48b945(0x1c5)](_0x3b45cc[_0x48b945(0x1a6)](_0xe19b02,_0x4516f0),_0x52cacc);}if(!_0xe0e280)return console['error'](_0x3b45cc[_0x48b945(0x1d5)]),![];const _0x5af361=findElement(_0x45159c,_0xe0e280['dataOffset'],_0x3b45cc['eXOfp'](_0xe0e280['dataOffset'],_0xe0e280[_0x48b945(0x1ca)]),ID_DURATION);if(_0x5af361)return![];const _0x53bd0a=_0x3b45cc['HuEEm'](findElement,_0x45159c,_0xe0e280[_0x48b945(0x1a2)],_0xe0e280['dataOffset']+_0xe0e280[_0x48b945(0x1ca)],ID_TIMESTAMP_SCALE);let _0x76d526=0xf4240;_0x53bd0a&&(_0x76d526=readUint(_0x45159c,_0x53bd0a[_0x48b945(0x1a2)],_0x53bd0a['dataSize']));const _0x5794ef=computeDurationMs(_0x45159c,_0x76d526);if(_0x5794ef<=0x0)return console['error'](_0x3b45cc[_0x48b945(0x1a4)]),![];const _0x215cb0=_0x5794ef*0xf4240/_0x76d526,_0x490f4d=Buffer[_0x48b945(0x1cc)]([_0x3b45cc['mTltZ'](writeId,ID_DURATION),writeVint(0x8),writeFloat64(_0x215cb0)]),_0x31451c=_0x490f4d[_0x48b945(0x1c9)];if(!_0x4a4c2c||_0x4a4c2c['offset']<_0xe0e280[_0x48b945(0x1d1)]){if(_0x4a4c2c){const _0x4a7476=_0x3b45cc['ThybB'](_0x4a4c2c['idLen'],_0x4a4c2c['sizeLen'])+_0x4a4c2c[_0x48b945(0x1ca)],_0xe9a9=_0x4a7476-_0x31451c;if(_0x3b45cc['KkIGW'](_0xe9a9,0x2))return rewriteFile(_0x45159c,_0xe0e280,_0x490f4d,_0x76d526,_0x5794ef,_0x42a70f);const _0x48225a=_0xe0e280[_0x48b945(0x1ca)]+_0x31451c,_0x11b2b0=Buffer[_0x48b945(0x1cc)]([_0x3b45cc[_0x48b945(0x1d2)](writeId,ID_INFO),writeVint(_0x48225a,_0xe0e280['sizeLen'])]),_0x34acd3=_0x45159c['slice'](_0xe0e280['dataOffset'],_0x3b45cc[_0x48b945(0x1b4)](_0xe0e280['dataOffset'],_0xe0e280['dataSize'])),_0xe4c846=_0x3b45cc[_0x48b945(0x1b9)](writeVoid,_0xe9a9),_0x33167e=_0x45159c['slice'](0x0,_0x4a4c2c['offset']),_0x309c27=_0x45159c[_0x48b945(0x1b6)](_0xe0e280['dataOffset']+_0xe0e280['dataSize']);return _0x3b45cc['oBOso'](writeFileSync,_0x42a70f,Buffer['concat']([_0x33167e,_0xe4c846,_0x11b2b0,_0x34acd3,_0x490f4d,_0x309c27])),!![];}}return _0x3b45cc['WIWeS'](rewriteFile,_0x45159c,_0xe0e280,_0x490f4d,_0x76d526,_0x5794ef,_0x42a70f);}function rewriteFile(_0x1e6e65,_0x5cc840,_0x100a9f,_0x40a007,_0x4d5beb,_0x571599){const _0xd219ce=_0x1c08,_0x2940bf={'pSQdQ':function(_0x3f49b6,_0xac27e3){return _0x3f49b6+_0xac27e3;},'HkxXZ':function(_0x44323a,_0x34b693){return _0x44323a(_0x34b693);},'tLPyb':function(_0x179d32,_0x5f34c1,_0x3b3fc6){return _0x179d32(_0x5f34c1,_0x3b3fc6);}},_0x9ff184=_0x2940bf['pSQdQ'](_0x5cc840[_0xd219ce(0x1ca)],_0x100a9f[_0xd219ce(0x1c9)]),_0x26981a=Buffer[_0xd219ce(0x1cc)]([writeId(ID_INFO),_0x2940bf[_0xd219ce(0x1d4)](writeVint,_0x9ff184)]),_0x11e2fd=_0x2940bf[_0xd219ce(0x1d8)](_0x5cc840['idLen'],_0x5cc840[_0xd219ce(0x1be)]),_0x3ff14f=_0x1e6e65[_0xd219ce(0x1b6)](0x0,_0x5cc840['offset']),_0x207267=_0x1e6e65[_0xd219ce(0x1b6)](_0x5cc840['dataOffset'],_0x5cc840['dataOffset']+_0x5cc840[_0xd219ce(0x1ca)]),_0xc2d92c=_0x1e6e65[_0xd219ce(0x1b6)](_0x2940bf['pSQdQ'](_0x5cc840['offset']+_0x11e2fd,_0x5cc840['dataSize']));return _0x2940bf[_0xd219ce(0x1df)](writeFileSync,_0x571599,Buffer['concat']([_0x3ff14f,_0x26981a,_0x207267,_0x100a9f,_0xc2d92c])),!![];}if(process['argv'][0x1]?.[_0x58858c(0x1a9)]('fixWebmDuration.ts')||process['argv'][0x1]?.[_0x58858c(0x1a9)]('fixWebmDuration.js')){const input=process[_0x58858c(0x1d9)][0x2],output=process[_0x58858c(0x1d9)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x58858c(0x1b5)](_0x58858c(0x1b3)+output):console[_0x58858c(0x1b5)](_0x58858c(0x1da));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e4d39,_0x172ffc){const _0x4f54c4=_0x122f,_0x1d6468=_0x1e4d39();while(!![]){try{const _0x3be21d=-parseInt(_0x4f54c4(0x10f))/0x1*(-parseInt(_0x4f54c4(0x10b))/0x2)+parseInt(_0x4f54c4(0x105))/0x3*(-parseInt(_0x4f54c4(0x107))/0x4)+-parseInt(_0x4f54c4(0x106))/0x5+parseInt(_0x4f54c4(0x10a))/0x6+parseInt(_0x4f54c4(0x102))/0x7*(-parseInt(_0x4f54c4(0x10c))/0x8)+-parseInt(_0x4f54c4(0x10e))/0x9*(-parseInt(_0x4f54c4(0x10d))/0xa)+-parseInt(_0x4f54c4(0x111))/0xb*(-parseInt(_0x4f54c4(0x108))/0xc);if(_0x3be21d===_0x172ffc)break;else _0x1d6468['push'](_0x1d6468['shift']());}catch(_0x175c31){_0x1d6468['push'](_0x1d6468['shift']());}}}(_0x573f,0x81b61));function _0x573f(){const _0x2611df=['4231145puDwPT','195524ajnxjN','84xuNMCJ','--error-unmatch','2193606DdYXKQ','1020fcACto','3424MArRoY','1163830Waxooq','9KPAxjR','1389slcOSA','LvCge','1919841TXqANS','cwd','16121ebSrwZ','ls-files','git','3zosZFu'];_0x573f=function(){return _0x2611df;};return _0x573f();}import{execFile as _0xff7352}from'child_process';function _0x122f(_0x570995,_0x5a2f00){_0x570995=_0x570995-0x101;const _0x573f14=_0x573f();let _0x122f95=_0x573f14[_0x570995];return _0x122f95;}import{promisify}from'util';const execFile=promisify(_0xff7352);export async function isPathGitTracked(_0xb8742e){const _0x11efa2=_0x122f,_0x38e8cb={'AWuUk':function(_0x4376f8,_0x528055,_0x391ca6,_0x50d0a3){return _0x4376f8(_0x528055,_0x391ca6,_0x50d0a3);},'LvCge':_0x11efa2(0x109)};try{return await _0x38e8cb['AWuUk'](execFile,_0x11efa2(0x104),[_0x11efa2(0x103),_0x38e8cb[_0x11efa2(0x110)],_0xb8742e],{'cwd':process[_0x11efa2(0x101)]()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x56e93f=_0x1179;(function(_0x2bd83c,_0x398450){const _0x447ac9=_0x1179,_0xefade=_0x2bd83c();while(!![]){try{const _0x3b8157=parseInt(_0x447ac9(0x217))/0x1+-parseInt(_0x447ac9(0x1dc))/0x2*(-parseInt(_0x447ac9(0x1f7))/0x3)+parseInt(_0x447ac9(0x1ee))/0x4*(parseInt(_0x447ac9(0x1da))/0x5)+-parseInt(_0x447ac9(0x1ef))/0x6+parseInt(_0x447ac9(0x1f8))/0x7+parseInt(_0x447ac9(0x1f0))/0x8*(parseInt(_0x447ac9(0x22d))/0x9)+parseInt(_0x447ac9(0x229))/0xa*(-parseInt(_0x447ac9(0x21b))/0xb);if(_0x3b8157===_0x398450)break;else _0xefade['push'](_0xefade['shift']());}catch(_0x1ea33b){_0xefade['push'](_0xefade['shift']());}}}(_0x5b4d,0x84187));const _0x28bc99=(function(){const _0x2cdb14=_0x1179,_0x5d6002={'HiFYR':function(_0x53a1ae,_0x2a3be0){return _0x53a1ae===_0x2a3be0;},'uASkp':_0x2cdb14(0x200),'ZBGNz':function(_0x373b43,_0x1ce1f7){return _0x373b43!==_0x1ce1f7;},'JrodR':_0x2cdb14(0x20a),'FWogG':_0x2cdb14(0x1e0)};let _0x20c74a=!![];return function(_0x426659,_0x5d8865){const _0x369900=_0x2cdb14,_0x113793={'LlVJE':function(_0x2a3219,_0x40a4c8){const _0x26b2c4=_0x1179;return _0x5d6002[_0x26b2c4(0x212)](_0x2a3219,_0x40a4c8);},'nmXkT':_0x5d6002[_0x369900(0x224)]};if(_0x5d6002[_0x369900(0x207)](_0x5d6002[_0x369900(0x228)],_0x5d6002[_0x369900(0x1f6)])){const _0x34c3d4=_0x20c74a?function(){const _0x4b4d54=_0x369900;if(_0x5d8865){if(_0x113793['LlVJE'](_0x113793[_0x4b4d54(0x1e5)],_0x4b4d54(0x200))){const _0x13fe31=_0x5d8865[_0x4b4d54(0x1d9)](_0x426659,arguments);return _0x5d8865=null,_0x13fe31;}else{const _0x65afad=_0x24b767?function(){const _0x2cd8e9=_0x4b4d54;if(_0x37ce4a){const _0x377f3b=_0x1fb2a1[_0x2cd8e9(0x1d9)](_0x30f2a6,arguments);return _0x1888e8=null,_0x377f3b;}}:function(){};return _0x5f75b7=![],_0x65afad;}}}:function(){};return _0x20c74a=![],_0x34c3d4;}else return!!_0x38f26d[_0x369900(0x1fe)][_0x369900(0x222)];};}()),_0x3858da=_0x28bc99(this,function(){const _0x386a4a=_0x1179,_0x3436cb={'iKHfm':'(((.+)+)+)+$'};return _0x3858da[_0x386a4a(0x214)]()[_0x386a4a(0x21f)](_0x3436cb[_0x386a4a(0x1e8)])[_0x386a4a(0x214)]()[_0x386a4a(0x1fa)](_0x3858da)[_0x386a4a(0x21f)](_0x3436cb[_0x386a4a(0x1e8)]);});_0x3858da();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x56e93f(0x21a),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x56e93f(0x223));function isGitHubCI(){const _0x55a36c=_0x56e93f;return!!process[_0x55a36c(0x1fe)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x40ae52,_0x3e2a71){const _0x70b78f=_0x56e93f,_0x5b8845={'QGnxz':_0x70b78f(0x1e2),'tGbTw':function(_0x52abed,_0x1db2e7,_0x37c594){return _0x52abed(_0x1db2e7,_0x37c594);}},_0x469d44=process[_0x70b78f(0x1fe)][_0x70b78f(0x222)];if(_0x469d44){if(_0x5b8845[_0x70b78f(0x1df)]!==_0x5b8845[_0x70b78f(0x1df)])return![];else await _0x5b8845[_0x70b78f(0x210)](appendFile,_0x469d44,_0x40ae52+'='+_0x3e2a71+'\x0a');}}export async function storeToken(_0x11491a){const _0x1e0cfb=_0x56e93f,_0x34dd6e={'Lqhuf':function(_0x5c1613){return _0x5c1613();},'BKbEB':function(_0x42a576,_0x3f6441,_0x103f08){return _0x42a576(_0x3f6441,_0x103f08);},'IDgow':function(_0x3db110,_0x40c887,_0x299389){return _0x3db110(_0x40c887,_0x299389);}};_0x34dd6e[_0x1e0cfb(0x1f3)](isGitHubCI)?await _0x34dd6e[_0x1e0cfb(0x225)](writeToGitHubEnv,ENV_TOKEN,_0x11491a):(await _0x34dd6e['IDgow'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x11491a,{'mode':0x180}));}export async function getToken(){const _0x3b309a=_0x56e93f,_0x51ab47={'vEcwc':function(_0x199775,_0x525563){return _0x199775 instanceof _0x525563;},'jYVpo':function(_0x1fdff9,_0x16585a){return _0x1fdff9(_0x16585a);},'YJzDx':function(_0x4282f9,_0x4e5c10){return _0x4282f9+_0x4e5c10;},'MLeQv':_0x3b309a(0x21e),'mALFk':'(((.+)+)+)+$','DlsQG':function(_0x496108,_0x568f7f){return _0x496108!==_0x568f7f;},'dJems':_0x3b309a(0x1e3),'TnsPQ':function(_0x52fd51,_0x21eb16){return _0x52fd51!==_0x21eb16;},'eOWIB':'QXmqZ','BrzFv':'irrsz','sOfJp':'utf-8','pKkIV':function(_0x5a5b0d,_0x34f9b3){return _0x5a5b0d!==_0x34f9b3;},'sNfRw':'Aiuxw','wSITb':function(_0x2b6f9d){return _0x2b6f9d();},'HdjNW':function(_0x3d6250,_0x5e35d9){return _0x3d6250(_0x5e35d9);},'gQdSb':function(_0x447069,_0x16c1e6){return _0x447069(_0x16c1e6);},'cScfa':'../mcpBootstrap.js','gYXjI':function(_0x285bce){return _0x285bce();},'DTnUz':function(_0x2e6bef){return _0x2e6bef();},'ZlPZW':function(_0x1f7d9e,_0x36b7c4){return _0x1f7d9e===_0x36b7c4;},'pKcjI':'kJgyj','IYheI':function(_0x513556,_0x430ed3){return _0x513556(_0x430ed3);},'fvKfp':_0x3b309a(0x227)};if(process[_0x3b309a(0x1fe)][ENV_TOKEN])return process[_0x3b309a(0x1fe)][ENV_TOKEN];if(process[_0x3b309a(0x1fe)][ENV_TOKEN_LEGACY])return _0x51ab47[_0x3b309a(0x201)](_0x51ab47[_0x3b309a(0x1e1)],_0x3b309a(0x1e3))?![]:process[_0x3b309a(0x1fe)][ENV_TOKEN_LEGACY];let _0x3135b8=null;try{if(_0x51ab47[_0x3b309a(0x1f1)](_0x51ab47[_0x3b309a(0x21c)],_0x51ab47[_0x3b309a(0x1db)]))_0x3135b8=(await readFile(TOKEN_PATH,_0x51ab47[_0x3b309a(0x211)]))[_0x3b309a(0x22a)]()||null;else return null;}catch{if(_0x51ab47[_0x3b309a(0x1f4)](_0x51ab47[_0x3b309a(0x1ff)],_0x3b309a(0x1e6))){const _0x19a147=await _0x51ab47['wSITb'](tryRefreshToken);return _0x19a147;}else{const _0x413c2b=_0x51ab47[_0x3b309a(0x209)](_0x524a3b,_0x4e1e51)?_0x306fec[_0x3b309a(0x20d)]:_0x51ab47[_0x3b309a(0x218)](_0x2d1392,_0x4f5936);throw new _0x15ce43(_0x51ab47[_0x3b309a(0x1d8)](_0x3b309a(0x1dd)+_0x413c2b+'\x0a',_0x51ab47[_0x3b309a(0x20b)]));}}if(!_0x3135b8)return null;const _0x4ec786=await _0x51ab47[_0x3b309a(0x1e4)](checkTokenValid,_0x3135b8);if(_0x4ec786)return _0x3135b8;const _0x1b98d3=await _0x51ab47[_0x3b309a(0x1e9)](tryPromoteRefreshToken,_0x3135b8);if(_0x1b98d3)return _0x1b98d3;const _0xd8b588=await _0x51ab47[_0x3b309a(0x1ea)](tryRefreshToken);if(_0xd8b588)return _0xd8b588;const {getMcpAuthOrigin:_0x58793a,mcpBootstrap:_0x18998a}=await import(_0x51ab47[_0x3b309a(0x213)]),_0x5aaa56=await _0x51ab47[_0x3b309a(0x1ed)](_0x58793a);if(_0x5aaa56)try{console[_0x3b309a(0x1eb)](_0x3b309a(0x20e)),await _0x18998a();const _0x2a4dbe=await _0x51ab47[_0x3b309a(0x220)](tryRefreshToken);if(_0x2a4dbe)return _0x2a4dbe;}catch(_0x5e8eb2){if(_0x51ab47[_0x3b309a(0x1fb)](_0x51ab47['pKcjI'],_0x51ab47['pKcjI'])){const _0x2ee8cb=_0x51ab47[_0x3b309a(0x209)](_0x5e8eb2,Error)?_0x5e8eb2[_0x3b309a(0x20d)]:_0x51ab47['IYheI'](String,_0x5e8eb2);throw new Error(_0x51ab47[_0x3b309a(0x1d8)](_0x3b309a(0x1dd)+_0x2ee8cb+'\x0a',_0x3b309a(0x21e)));}else return _0x1fa9be[_0x3b309a(0x214)]()[_0x3b309a(0x21f)](_0x3b309a(0x20c))[_0x3b309a(0x214)]()[_0x3b309a(0x1fa)](_0x377df6)[_0x3b309a(0x21f)](ScviXI[_0x3b309a(0x22f)]);}throw new Error(_0x51ab47[_0x3b309a(0x226)]);}async function checkTokenValid(_0x4f6739){const _0x261d3d=_0x56e93f,_0x3b21e5={'GDozE':function(_0x29b6a7,_0x4d2a75,_0x46b024){return _0x29b6a7(_0x4d2a75,_0x46b024);},'mWRPi':function(_0x5a229a){return _0x5a229a();},'ACiKZ':function(_0x3b856f,_0x40fe95){return _0x3b856f===_0x40fe95;},'BMDmf':_0x261d3d(0x1ec),'jKMdk':'TqYkY','pioPk':function(_0x41bf43,_0x33a667){return _0x41bf43(_0x33a667);}},_0x41bee5=new AbortController(),_0x365503=_0x3b21e5[_0x261d3d(0x1fc)](setTimeout,()=>_0x41bee5[_0x261d3d(0x1de)](),0x1388);try{const {getApiBaseUrl:_0x52d73c}=await import('./environment.js'),_0x4abf0e=_0x3b21e5[_0x261d3d(0x203)](_0x52d73c),_0x50132f=await _0x3b21e5[_0x261d3d(0x1fc)](fetch,_0x4abf0e+_0x261d3d(0x221),{'method':_0x261d3d(0x1fd),'headers':{'Authorization':_0x261d3d(0x20f)+_0x4f6739},'signal':_0x41bee5['signal']});return _0x50132f['ok'];}catch{return!![];}finally{if(_0x3b21e5['ACiKZ'](_0x3b21e5[_0x261d3d(0x204)],_0x3b21e5[_0x261d3d(0x219)])){if(_0x4ecafb){const _0x2d072f=_0x2e7d98[_0x261d3d(0x1d9)](_0x62d6c8,arguments);return _0xf19871=null,_0x2d072f;}}else _0x3b21e5[_0x261d3d(0x216)](clearTimeout,_0x365503);}}function _0x1179(_0x390ba1,_0x549df5){_0x390ba1=_0x390ba1-0x1d7;const _0x1d7cfe=_0x5b4d();let _0x3858da=_0x1d7cfe[_0x390ba1];if(_0x1179['sMtivu']===undefined){var _0x28bc99=function(_0x5e4d69){const _0x17b072='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe3f70f='',_0x10d5ff='',_0x27082b=_0xe3f70f+_0x28bc99;for(let _0x53291a=0x0,_0x71a4e4,_0x52e0be,_0x57c751=0x0;_0x52e0be=_0x5e4d69['charAt'](_0x57c751++);~_0x52e0be&&(_0x71a4e4=_0x53291a%0x4?_0x71a4e4*0x40+_0x52e0be:_0x52e0be,_0x53291a++%0x4)?_0xe3f70f+=_0x27082b['charCodeAt'](_0x57c751+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x71a4e4>>(-0x2*_0x53291a&0x6)):_0x53291a:0x0){_0x52e0be=_0x17b072['indexOf'](_0x52e0be);}for(let _0x4ecc79=0x0,_0x5bdc4a=_0xe3f70f['length'];_0x4ecc79<_0x5bdc4a;_0x4ecc79++){_0x10d5ff+='%'+('00'+_0xe3f70f['charCodeAt'](_0x4ecc79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10d5ff);};_0x1179['UivYsb']=_0x28bc99,_0x1179['ZlpErp']={},_0x1179['sMtivu']=!![];}const _0x5b4db9=_0x1d7cfe[0x0],_0x11791c=_0x390ba1+_0x5b4db9,_0x1b8ff0=_0x1179['ZlpErp'][_0x11791c];if(!_0x1b8ff0){const _0x24b767=function(_0x53fa20){this['UKeMgH']=_0x53fa20,this['nsLpNH']=[0x1,0x0,0x0],this['HGhTui']=function(){return'newState';},this['GfLTHe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['VdbIQw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x24b767['prototype']['SFOmlG']=function(){const _0x59ceaa=new RegExp(this['GfLTHe']+this['VdbIQw']),_0x39ba35=_0x59ceaa['test'](this['HGhTui']['toString']())?--this['nsLpNH'][0x1]:--this['nsLpNH'][0x0];return this['gTprtS'](_0x39ba35);},_0x24b767['prototype']['gTprtS']=function(_0x4818d2){if(!Boolean(~_0x4818d2))return _0x4818d2;return this['YDXrpc'](this['UKeMgH']);},_0x24b767['prototype']['YDXrpc']=function(_0x5f75b7){for(let _0x37ce4a=0x0,_0x190e15=this['nsLpNH']['length'];_0x37ce4a<_0x190e15;_0x37ce4a++){this['nsLpNH']['push'](Math['round'](Math['random']())),_0x190e15=this['nsLpNH']['length'];}return _0x5f75b7(this['nsLpNH'][0x0]);},new _0x24b767(_0x1179)['SFOmlG'](),_0x3858da=_0x1179['UivYsb'](_0x3858da),_0x1179['ZlpErp'][_0x11791c]=_0x3858da;}else _0x3858da=_0x1b8ff0;return _0x3858da;}async function tryRefreshToken(){const _0x16a532=_0x56e93f,_0x2bc964={'CzuYP':_0x16a532(0x215),'YGYHy':function(_0x38ed8f){return _0x38ed8f();}},{refreshCliToken:_0x2d7b3e}=await import(_0x2bc964['CzuYP']);return _0x2bc964[_0x16a532(0x1f9)](_0x2d7b3e);}async function tryPromoteRefreshToken(_0x31b4f4){const _0x2ee0e5=_0x56e93f,_0x28ade5={'sSiUX':function(_0x15ae21,_0xfe1eb3,_0x37304b){return _0x15ae21(_0xfe1eb3,_0x37304b);}},{refreshPartnerCliToken:_0xe912cf}=await import(_0x2ee0e5(0x215));return _0x28ade5[_0x2ee0e5(0x22e)](_0xe912cf,_0x31b4f4,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xb546=_0x56e93f,_0x2492e5={'mFAte':_0xb546(0x1f2),'GmFGw':function(_0x2aec50,_0x5d695e){return _0x2aec50(_0x5d695e);}};try{return _0x2492e5[_0xb546(0x206)]!==_0x2492e5[_0xb546(0x206)]?_0x59f453[_0xb546(0x1fe)][_0x490722]:(await _0x2492e5[_0xb546(0x1f5)](unlink,TOKEN_PATH),!![]);}catch{return![];}}export async function storeRefreshToken(_0x3cdbdf){const _0x5553cb=_0x56e93f,_0x193941={'zKAIC':function(_0xc7e597,_0x306bb0,_0x3e94ca){return _0xc7e597(_0x306bb0,_0x3e94ca);},'ZhYTO':function(_0xffdd83,_0x4676a2,_0x5f3f90,_0x587824){return _0xffdd83(_0x4676a2,_0x5f3f90,_0x587824);}};await _0x193941['zKAIC'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x193941[_0x5553cb(0x202)](writeFile,REFRESH_TOKEN_PATH,_0x3cdbdf,{'mode':0x180});}function _0x5b4d(){const _0x2c4eb7=['swrcwLK','zePLBxm','DuHIwfi','s2j0r2i','sgrQtLC','BM1yA1q','t0DXteG','uMHZEwm','AuTizM0','z1fKu2i','D1njvgi','Bg9N','CMTLvNC','z1LyAKK','nez4whHirW','mJG5nJaZofjNBhPqva','ntC4mdi3mLP2v05AAa','vg5Zufe','u3vxtK4','thfODwy','CeTRsvy','r21gr3C','rLDVz0C','nJqYm0HTBhvoyW','nJq4oty2nwnnuwDXtq','wuDzshK','y29UC3rYDwn0B3i','wMXqwLC','r0rVEKu','r0vu','zw52','C05MuNC','AuTytNy','rgXZuuC','wMHzve8','BvDsugK','qK1eBwy','DxrMltG','BuzbDgu','wKjhtNO','wK1RELu','DKvJD2m','s1bTEe8','tuXLuxy','kcGOlISPkYKRksSK','BwvZC2fNzq','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','qMvHCMvYia','DeDIvhC','C09MsNa','sgLgwvi','y1nJzMe','Dg9tDhjPBMC','lI90B2TLBLjLzNjLC2GUANm','CgLVugS','nJKXmtK1t2XnrMP0','ALLwCg8','AKTnzgS','uKfor0vsx0nmsv9ut0TftG','mtqWoersuM1kua','zu9xsui','vMDlC2G','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','C2vHCMnO','rfrUvxO','l2fWAs92ms9Ty3aVBwu','r0Lusfvcx0vovG','CMvMCMvZAc50Ehq','DuftA3a','qKTIrui','zNzlzNa','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','sNjVzfi','mJu5mZiWt3LhEfL6','DhjPBq','EePQzuq','ENDUvem','ouTtqufKsa','C1nPvvG','BufmrMS','Dg9Wq2C','ugvZAvu','wuP6rhG','yxbWBhK','ndK2odK4nw5buNfXsW','qNj6rNy','otqYCMDxy3r0','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ywjVCNq','uuDUEhO'];_0x5b4d=function(){return _0x2c4eb7;};return _0x5b4d();}export async function getRefreshToken(){const _0x138e75=_0x56e93f,_0x1f7192={'ZMkzU':function(_0x2f174c,_0x4f804b){return _0x2f174c===_0x4f804b;},'hcAoQ':_0x138e75(0x230),'zwnTC':_0x138e75(0x205)};try{if(_0x1f7192[_0x138e75(0x208)](_0x1f7192['hcAoQ'],_0x1f7192['hcAoQ'])){const _0x41425e=await readFile(REFRESH_TOKEN_PATH,_0x1f7192[_0x138e75(0x22c)]);return _0x41425e[_0x138e75(0x22a)]()||null;}else _0x176137(_0x2ded44);}catch{return null;}}export async function deleteRefreshToken(){const _0x596c4a=_0x56e93f,_0x2b1e62={'VgKsh':function(_0x102694,_0x2d7ca1){return _0x102694(_0x2d7ca1);},'PesiU':_0x596c4a(0x1e7),'zLFRn':_0x596c4a(0x22b)};try{return await _0x2b1e62[_0x596c4a(0x21d)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x2b1e62[_0x596c4a(0x1d7)]===_0x2b1e62['zLFRn']?!![]:![];}}export async function deleteAllCredentials(){const _0x4a89c8={'CRksT':function(_0x5ef8a1){return _0x5ef8a1();}};await _0x4a89c8['CRksT'](deleteToken),await deleteRefreshToken();}
|
|
1
|
+
const _0x2a7ba9=_0xd590;(function(_0x323e68,_0x4b5518){const _0x2688cc=_0xd590,_0x12b79d=_0x323e68();while(!![]){try{const _0x551a55=-parseInt(_0x2688cc(0xaf))/0x1+parseInt(_0x2688cc(0xb3))/0x2*(parseInt(_0x2688cc(0xb7))/0x3)+-parseInt(_0x2688cc(0x97))/0x4*(parseInt(_0x2688cc(0xa5))/0x5)+parseInt(_0x2688cc(0xb6))/0x6+parseInt(_0x2688cc(0xbe))/0x7+parseInt(_0x2688cc(0xb0))/0x8+-parseInt(_0x2688cc(0xc6))/0x9*(parseInt(_0x2688cc(0xc1))/0xa);if(_0x551a55===_0x4b5518)break;else _0x12b79d['push'](_0x12b79d['shift']());}catch(_0x4460fa){_0x12b79d['push'](_0x12b79d['shift']());}}}(_0x29b5,0x29c86));const _0x3bf8f3=(function(){const _0x352033=_0xd590,_0x39c576={'BfzmV':'EqvzL','tcPIh':function(_0x168083,_0x4d969b){return _0x168083!==_0x4d969b;},'BmxtH':_0x352033(0xbd)};let _0x4bc695=!![];return function(_0x5c6420,_0x255cf0){const _0x88fc90=_0x352033,_0x52d4b0={'xJoFc':function(_0x20e636,_0xab7b3b){return _0x20e636!==_0xab7b3b;},'LUDMD':_0x88fc90(0xc5),'etUkX':_0x39c576[_0x88fc90(0xd7)]};if(_0x39c576[_0x88fc90(0xc8)](_0x39c576[_0x88fc90(0x94)],_0x39c576['BmxtH']))return!!_0x5c73b1[_0x88fc90(0xa9)][_0x88fc90(0x91)];else{const _0x3d28f7=_0x4bc695?function(){const _0x3a9d0a=_0x88fc90;if(_0x52d4b0[_0x3a9d0a(0xc3)](_0x52d4b0[_0x3a9d0a(0x8a)],_0x52d4b0[_0x3a9d0a(0xa0)])){if(_0x255cf0){const _0x40af47=_0x255cf0[_0x3a9d0a(0xc0)](_0x5c6420,arguments);return _0x255cf0=null,_0x40af47;}}else return _0x24b575['env'][_0x51ba45];}:function(){};return _0x4bc695=![],_0x3d28f7;}};}()),_0x598fb9=_0x3bf8f3(this,function(){const _0x238559=_0xd590,_0x9ec7d2={'XikKg':_0x238559(0x96)};return _0x598fb9[_0x238559(0xb2)]()['search'](_0x9ec7d2[_0x238559(0xce)])[_0x238559(0xb2)]()[_0x238559(0x8c)](_0x598fb9)['search']('(((.+)+)+)+$');});function _0x29b5(){const _0x288b44=['ruDzv1C','qMTZBMi','DhjPBq','uNfmy1C','AhvutfG','AwDzEKO','zxrvA1G','DNDMsg0','wLnxr0C','BLLRvhm','qKTXD1K','mtb3DLfmBgG','B2rvEwO','wuv2y3q','zKPmEKG','zw52','DgvQrfm','AKz0u2W','yNrcu1O','lI90B2TLBLjLzNjLC2GUANm','zLrfu3K','mJq0nJC3tujOseX6','nZeXmtuYD2rSsxzm','C2PpAMy','Dg9tDhjPBMC','mtqZneXeAuPuyG','ENrxCeq','y0jwzw8','mJa5nZeYqNLStwf5','nJK5sMr6z3D0','Bg9N','s2nXCLa','l2fWAs92ms9Ty3aVBwu','shDvz3a','uM1iveG','s0vhs2O','mtGYodKZmM9bC0nNrq','rfPezgC','yxbWBhK','nJbMzeXpv3m','DKL5uvu','EePVrMm','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','ChvKwwi','mta4mtGWsgjdvvDT','EuHzyvu','DgnqswG','re1IzLu','lI9LBNzPCM9UBwvUDc5QCW','Aw9Yr04','AgHjBuC','r0vu','wgLRs2C','r3Pzwxm','CuDXCgq','rLLssvG','DxrMltG','tM5HyMW','ue5MCuO','y2XPlNr4Da','qvv3tNK','qMz6Bvy','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uKfor0vsx01duf9ut0TftG','qMvHCMvYia','ywjVCNq','uKfor0vsx0nmsv9ut0TftG','C2LNBMfS','BvLluhi','CMvMCMvZAc50Ehq','tfvetuq','tLLmDNO','y29UC3rYDwn0B3i','lI4VBwnWqM9VDhn0CMfWlMPZ','y2Tmv0O','sxzoAgO','z3r4zei','r0Lusfvcx0vovG','uMTSDeq','CMPOCM0','qM14DeG','sxztyKi','kcGOlISPkYKRksSK','mti4ndG4rMj4qurl','CLfHz0u','AKHgvKS'];_0x29b5=function(){return _0x288b44;};return _0x29b5();}_0x598fb9();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x2a7ba9(0xdc),ENV_TOKEN_LEGACY=_0x2a7ba9(0xd9),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x2a7ba9(0xd5)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x2a7ba9(0x89));function isGitHubCI(){const _0x49b23d=_0x2a7ba9;return!!process[_0x49b23d(0xa9)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x323561,_0x19daa0){const _0x1089d5=_0x2a7ba9,_0x4759a9={'fCuTr':function(_0x1c53fc,_0xaa8899){return _0x1c53fc+_0xaa8899;},'ckLWJ':_0x1089d5(0xc4),'IvSbB':function(_0x5e00a6,_0x4f6e3a){return _0x5e00a6!==_0x4f6e3a;},'ZSWGG':'NEFEr','UEoDF':_0x1089d5(0xcb)},_0x4cb260=process['env'][_0x1089d5(0x91)];if(_0x4cb260){if(_0x4759a9[_0x1089d5(0x95)](_0x4759a9[_0x1089d5(0xa2)],_0x4759a9['UEoDF']))await appendFile(_0x4cb260,_0x323561+'='+_0x19daa0+'\x0a');else{const _0x16dd3a=_0x2c8901 instanceof _0x40457f?_0x19add3['message']:_0x42c956(_0x27c95a);throw new _0x320cdf(_0x4759a9['fCuTr']('MCP\x20re-authentication\x20failed:\x20'+_0x16dd3a+'\x0a',_0x4759a9[_0x1089d5(0x8e)]));}}}export async function storeToken(_0x3a67ab){const _0xb786de=_0x2a7ba9,_0x37707b={'ztWpD':function(_0x9ec9ad){return _0x9ec9ad();},'qGqpd':function(_0x383aee,_0xd12366,_0x4f5428){return _0x383aee(_0xd12366,_0x4f5428);},'GzYYs':function(_0x2094cd,_0x3385ac,_0x3c6c3a,_0x4d8080){return _0x2094cd(_0x3385ac,_0x3c6c3a,_0x4d8080);}};_0x37707b[_0xb786de(0xb4)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x3a67ab):(await _0x37707b[_0xb786de(0xd0)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x37707b[_0xb786de(0xcf)](writeFile,TOKEN_PATH,_0x3a67ab,{'mode':0x180}));}export async function getToken(){const _0x2c39ab=_0x2a7ba9,_0x18bbce={'DZDdg':function(_0x1698ca,_0x490760){return _0x1698ca(_0x490760);},'rQagE':_0x2c39ab(0x96),'yHYaU':function(_0x22b889,_0x3f02ac){return _0x22b889===_0x3f02ac;},'EGYWW':_0x2c39ab(0xaa),'FYNwu':_0x2c39ab(0xa8),'jFtSl':_0x2c39ab(0xa3),'igYzJ':_0x2c39ab(0x90),'sjOjf':function(_0x4e1b01,_0x1c1e30,_0x4f08b9){return _0x4e1b01(_0x1c1e30,_0x4f08b9);},'GDyYq':function(_0x739563,_0x389d6e){return _0x739563===_0x389d6e;},'fTESy':_0x2c39ab(0x92),'FYRIX':function(_0x286c0b){return _0x286c0b();},'veDad':function(_0x495560,_0x1fc865){return _0x495560(_0x1fc865);},'YEvct':_0x2c39ab(0x8d),'jHFVK':function(_0x27a6a4){return _0x27a6a4();},'NYLvz':_0x2c39ab(0xd8),'odUyj':function(_0x373521){return _0x373521();},'RqLcW':function(_0x4582a9){return _0x4582a9();},'Nnabl':function(_0x7d5b52,_0x22fc60){return _0x7d5b52 instanceof _0x22fc60;},'BKqwY':function(_0x49ecff,_0x4a0a39){return _0x49ecff(_0x4a0a39);},'vIyQU':function(_0x358987,_0x4706fd){return _0x358987+_0x4706fd;},'Xpcva':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x2c39ab(0xa9)][ENV_TOKEN]){if(_0x18bbce[_0x2c39ab(0xc7)](_0x18bbce[_0x2c39ab(0x9a)],_0x2c39ab(0xaa)))return process[_0x2c39ab(0xa9)][ENV_TOKEN];else{const _0x306c10=_0x2ad420[_0x2c39ab(0xc0)](_0x2190d8,arguments);return _0xbf3396=null,_0x306c10;}}if(process[_0x2c39ab(0xa9)][ENV_TOKEN_LEGACY]){if(_0x18bbce[_0x2c39ab(0xc7)]('fJLzH',_0x18bbce['FYNwu']))return process[_0x2c39ab(0xa9)][ENV_TOKEN_LEGACY];else _0x18bbce[_0x2c39ab(0xbf)](_0x347c59,_0x25be10);}let _0x184dca=null;try{if(_0x18bbce[_0x2c39ab(0xc7)](_0x18bbce[_0x2c39ab(0xab)],_0x18bbce[_0x2c39ab(0x9f)]))return![];else _0x184dca=(await _0x18bbce[_0x2c39ab(0xb1)](readFile,TOKEN_PATH,_0x2c39ab(0xd2)))[_0x2c39ab(0x9c)]()||null;}catch{if(_0x18bbce['GDyYq'](_0x18bbce['fTESy'],_0x18bbce[_0x2c39ab(0xae)])){const _0x4c1cdc=await _0x18bbce[_0x2c39ab(0xd1)](tryRefreshToken);return _0x4c1cdc;}else return _0x58cbf2[_0x2c39ab(0xb2)]()['search'](ankwGA[_0x2c39ab(0x98)])['toString']()[_0x2c39ab(0x8c)](_0x57a98e)['search'](ankwGA[_0x2c39ab(0x98)]);}if(!_0x184dca)return null;const _0x297f36=await _0x18bbce['DZDdg'](checkTokenValid,_0x184dca);if(_0x297f36)return _0x184dca;const _0x2aeb9e=await _0x18bbce['veDad'](tryPromoteRefreshToken,_0x184dca);if(_0x2aeb9e)return _0x2aeb9e;const _0x384e49=await tryRefreshToken();if(_0x384e49)return _0x384e49;const {getMcpAuthOrigin:_0x38c80c,mcpBootstrap:_0x4108e8}=await import(_0x18bbce[_0x2c39ab(0xa7)]),_0x4fea10=await _0x18bbce[_0x2c39ab(0x99)](_0x38c80c);if(_0x4fea10)try{console[_0x2c39ab(0xb8)](_0x18bbce[_0x2c39ab(0x8b)]),await _0x18bbce[_0x2c39ab(0xa6)](_0x4108e8);const _0x1eb763=await _0x18bbce[_0x2c39ab(0x9d)](tryRefreshToken);if(_0x1eb763)return _0x1eb763;}catch(_0x35145d){const _0x37258a=_0x18bbce[_0x2c39ab(0xd3)](_0x35145d,Error)?_0x35145d['message']:_0x18bbce[_0x2c39ab(0xa4)](String,_0x35145d);throw new Error(_0x18bbce[_0x2c39ab(0xc2)]('MCP\x20re-authentication\x20failed:\x20'+_0x37258a+'\x0a',_0x2c39ab(0xc4)));}throw new Error(_0x18bbce['Xpcva']);}async function checkTokenValid(_0x57622d){const _0x86e6bf=_0x2a7ba9,_0x491f4a={'HwUgp':function(_0x413a5d,_0x2c4122,_0x2e895a){return _0x413a5d(_0x2c4122,_0x2e895a);},'mYKPr':function(_0x59632a){return _0x59632a();},'huTLX':_0x86e6bf(0xcd),'RmHTH':function(_0x46f829,_0x39c2e2){return _0x46f829!==_0x39c2e2;},'DMbfU':_0x86e6bf(0xd4),'cimBU':function(_0x164bee,_0x2a288e){return _0x164bee(_0x2a288e);}},_0x1b999b=new AbortController(),_0x364a21=_0x491f4a['HwUgp'](setTimeout,()=>_0x1b999b[_0x86e6bf(0xdb)](),0x1388);try{const {getApiBaseUrl:_0x59edb7}=await import(_0x86e6bf(0xca)),_0x258b60=_0x491f4a[_0x86e6bf(0xde)](_0x59edb7),_0x5a5627=await _0x491f4a[_0x86e6bf(0xbb)](fetch,_0x258b60+_0x86e6bf(0xba),{'method':_0x491f4a[_0x86e6bf(0x9e)],'headers':{'Authorization':_0x86e6bf(0xda)+_0x57622d},'signal':_0x1b999b[_0x86e6bf(0xdd)]});return _0x5a5627['ok'];}catch{return _0x491f4a[_0x86e6bf(0xbc)](_0x491f4a[_0x86e6bf(0xc9)],'PNfqJ')?![]:!![];}finally{_0x491f4a['cimBU'](clearTimeout,_0x364a21);}}async function tryRefreshToken(){const _0x370587=_0x2a7ba9,_0x235906={'IvNhj':_0x370587(0xad)},{refreshCliToken:_0x20f52c}=await import(_0x235906[_0x370587(0x8f)]);return _0x20f52c();}async function tryPromoteRefreshToken(_0x31c8b4){const _0x5a8dd8=_0x2a7ba9,_0x4b4b0a={'vwfHm':_0x5a8dd8(0xad),'Bksnb':function(_0x5f1ad6,_0x3ab5c5,_0x23cf82){return _0x5f1ad6(_0x3ab5c5,_0x23cf82);}},{refreshPartnerCliToken:_0x21a0ce}=await import(_0x4b4b0a[_0x5a8dd8(0xa1)]);return _0x4b4b0a[_0x5a8dd8(0x9b)](_0x21a0ce,_0x31c8b4,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x3c3583=_0x2a7ba9,_0x526feb={'cBVeo':_0x3c3583(0xcc),'CUopP':function(_0xc06240,_0x491416){return _0xc06240(_0x491416);}};try{return'uxTDj'!==_0x526feb[_0x3c3583(0xb5)]?(await _0x526feb['CUopP'](unlink,TOKEN_PATH),!![]):null;}catch{return![];}}export async function storeRefreshToken(_0x19907a){const _0x21061a=_0x2a7ba9,_0x5dae4b={'rjhrm':function(_0x10702c,_0x1fc75d,_0x233df4,_0x4e04b7){return _0x10702c(_0x1fc75d,_0x233df4,_0x4e04b7);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x5dae4b[_0x21061a(0x93)](writeFile,REFRESH_TOKEN_PATH,_0x19907a,{'mode':0x180});}export async function getRefreshToken(){const _0x14a8f1=_0x2a7ba9,_0x474489={'KcqrP':'utf-8'};try{const _0x3e2b9a=await readFile(REFRESH_TOKEN_PATH,_0x474489[_0x14a8f1(0xb9)]);return _0x3e2b9a[_0x14a8f1(0x9c)]()||null;}catch{return null;}}function _0xd590(_0x4455e0,_0x2a125f){_0x4455e0=_0x4455e0-0x89;const _0x2bca64=_0x29b5();let _0x598fb9=_0x2bca64[_0x4455e0];if(_0xd590['Evebnl']===undefined){var _0x3bf8f3=function(_0x4738d5){const _0x45720a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c5fae='',_0x4c33e5='',_0x533f33=_0x2c5fae+_0x3bf8f3;for(let _0x32b7b9=0x0,_0x1a4ddc,_0x59cbf7,_0x1c57bd=0x0;_0x59cbf7=_0x4738d5['charAt'](_0x1c57bd++);~_0x59cbf7&&(_0x1a4ddc=_0x32b7b9%0x4?_0x1a4ddc*0x40+_0x59cbf7:_0x59cbf7,_0x32b7b9++%0x4)?_0x2c5fae+=_0x533f33['charCodeAt'](_0x1c57bd+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1a4ddc>>(-0x2*_0x32b7b9&0x6)):_0x32b7b9:0x0){_0x59cbf7=_0x45720a['indexOf'](_0x59cbf7);}for(let _0x43c95a=0x0,_0x4ac004=_0x2c5fae['length'];_0x43c95a<_0x4ac004;_0x43c95a++){_0x4c33e5+='%'+('00'+_0x2c5fae['charCodeAt'](_0x43c95a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c33e5);};_0xd590['SJLABN']=_0x3bf8f3,_0xd590['DAiFVB']={},_0xd590['Evebnl']=!![];}const _0x29b5db=_0x2bca64[0x0],_0xd59076=_0x4455e0+_0x29b5db,_0x2b40ee=_0xd590['DAiFVB'][_0xd59076];if(!_0x2b40ee){const _0x8ad7f7=function(_0x2229ec){this['gJWbWJ']=_0x2229ec,this['UHbaiK']=[0x1,0x0,0x0],this['PLLkBW']=function(){return'newState';},this['heWMSh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KmedUS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x8ad7f7['prototype']['PecxHW']=function(){const _0x41dd3a=new RegExp(this['heWMSh']+this['KmedUS']),_0x1ce5ae=_0x41dd3a['test'](this['PLLkBW']['toString']())?--this['UHbaiK'][0x1]:--this['UHbaiK'][0x0];return this['QQmFML'](_0x1ce5ae);},_0x8ad7f7['prototype']['QQmFML']=function(_0x445639){if(!Boolean(~_0x445639))return _0x445639;return this['OMYXVt'](this['gJWbWJ']);},_0x8ad7f7['prototype']['OMYXVt']=function(_0x5abe81){for(let _0x25e0a1=0x0,_0xaaa0f=this['UHbaiK']['length'];_0x25e0a1<_0xaaa0f;_0x25e0a1++){this['UHbaiK']['push'](Math['round'](Math['random']())),_0xaaa0f=this['UHbaiK']['length'];}return _0x5abe81(this['UHbaiK'][0x0]);},new _0x8ad7f7(_0xd590)['PecxHW'](),_0x598fb9=_0xd590['SJLABN'](_0x598fb9),_0xd590['DAiFVB'][_0xd59076]=_0x598fb9;}else _0x598fb9=_0x2b40ee;return _0x598fb9;}export async function deleteRefreshToken(){const _0x304557=_0x2a7ba9,_0x163309={'btBSZ':function(_0x4ec16e,_0x272a7d){return _0x4ec16e(_0x272a7d);}};try{return await _0x163309[_0x304557(0xac)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x1d7dce=_0x2a7ba9,_0x31888c={'AUwNy':function(_0x4396dc){return _0x4396dc();}};await _0x31888c[_0x1d7dce(0xd6)](deleteToken),await _0x31888c[_0x1d7dce(0xd6)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x553510=_0x4c2e;(function(_0x5ee562,_0xc9c185){const _0x4e2137=_0x4c2e,_0x4e49fc=_0x5ee562();while(!![]){try{const _0x4e0cb6=-parseInt(_0x4e2137(0x12a))/0x1*(parseInt(_0x4e2137(0x126))/0x2)+parseInt(_0x4e2137(0x110))/0x3+-parseInt(_0x4e2137(0x127))/0x4+-parseInt(_0x4e2137(0x121))/0x5*(-parseInt(_0x4e2137(0x12c))/0x6)+parseInt(_0x4e2137(0x112))/0x7*(parseInt(_0x4e2137(0x120))/0x8)+-parseInt(_0x4e2137(0x12b))/0x9*(parseInt(_0x4e2137(0x113))/0xa)+parseInt(_0x4e2137(0x124))/0xb;if(_0x4e0cb6===_0xc9c185)break;else _0x4e49fc['push'](_0x4e49fc['shift']());}catch(_0x5f589e){_0x4e49fc['push'](_0x4e49fc['shift']());}}}(_0x2c3c,0x9ada4));function _0x4c2e(_0x695b55,_0x50b6e5){_0x695b55=_0x695b55-0x10d;const _0x2c3cc4=_0x2c3c();let _0x4c2eba=_0x2c3cc4[_0x695b55];return _0x4c2eba;}import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x2c3c(){const _0x20774d=['setup','7792939qPHXdv','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','126050qhhwRF','2738648LLaNFC','verify','HKdod','5wiTEmA','18WwsOMw','588eAJnFm','local','slice','map','200160LkRFcw','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','1561294aJqTrr','1814270KukiFg','stderr','start','zLGgK','has','JPNWn','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','setup-ci','write','verify-feature','chdLO','Aweay','\x20\x20\x20\x20\x20','24CThZSU','28195kWGeXA','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work'];_0x2c3c=function(){return _0x20774d;};return _0x2c3c();}function detectLegacyPaths(){const _0x40cb6f=_0x4c2e,_0x3eeca8={'fOLWl':'local','HKdod':function(_0xf843f4,_0x202501,_0x39d86b){return _0xf843f4(_0x202501,_0x39d86b);}},_0x103eeb=getRangerDir(),_0x187cf0=getRangerHomeDir();return[join(_0x103eeb,_0x3eeca8['fOLWl']),_0x3eeca8['HKdod'](join,_0x103eeb,'ci'),join(_0x187cf0,_0x40cb6f(0x10d)),_0x3eeca8[_0x40cb6f(0x129)](join,_0x103eeb,'active-profile.txt')]['filter'](_0x605b9e=>existsSync(_0x605b9e));}function flagFilePath(){const _0x3c46e2=_0x4c2e,_0x5e1da3=new Date()['toISOString']()[_0x3c46e2(0x10e)](0x0,0xa);return join(getRangerHomeDir(),'.legacy-warning-'+_0x5e1da3);}export function showLegacyDeprecationWarning(){const _0x522a86=_0x4c2e,_0x319ebe={'IsKDs':function(_0x168cf7){return _0x168cf7();},'aloQd':function(_0x153f5,_0x46779f){return _0x153f5===_0x46779f;},'JPNWn':_0x522a86(0x122),'zLGgK':'\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','kHSoA':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','uTdVQ':_0x522a86(0x119),'wOqBL':function(_0x4cd206,_0x7fadff){return _0x4cd206+_0x7fadff;},'chdLO':function(_0x945025,_0x4f3d7b,_0x2a915b){return _0x945025(_0x4f3d7b,_0x2a915b);},'uusuG':function(_0x4cf3f9){return _0x4cf3f9();}},_0x11d035=_0x319ebe['IsKDs'](detectLegacyPaths);if(_0x319ebe['aloQd'](_0x11d035['length'],0x0))return;const _0x29e99f=_0x319ebe['IsKDs'](flagFilePath);if(existsSync(_0x29e99f))return;const _0x35aa76=['',_0x522a86(0x111),..._0x11d035[_0x522a86(0x10f)](_0x139ef4=>_0x522a86(0x11f)+_0x139ef4),'',_0x319ebe[_0x522a86(0x118)],'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x319ebe[_0x522a86(0x116)],'',_0x319ebe['kHSoA'],_0x522a86(0x125),'',_0x319ebe['uTdVQ'],''];process[_0x522a86(0x114)][_0x522a86(0x11b)](_0x319ebe['wOqBL'](_0x35aa76['join']('\x0a'),'\x0a'));try{_0x319ebe[_0x522a86(0x11d)](mkdirSync,_0x319ebe['uusuG'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x29e99f,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x553510(0x128),_0x553510(0x11c),'profile','profiles',_0x553510(0x123),_0x553510(0x11a),_0x553510(0x115),'use']);export function shouldShowLegacyWarning(_0x5352e0){const _0x2a335a=_0x553510,_0x350cc6={'Aweay':function(_0x17038f,_0x4fb659){return _0x17038f===_0x4fb659;}},_0x5f4295=_0x5352e0[0x2];if(!_0x5f4295)return![];if(_0x5f4295['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x2a335a(0x117)](_0x5f4295))return![];for(let _0x3e7a65=0x3;_0x3e7a65<_0x5352e0['length'];_0x3e7a65++){if(_0x350cc6[_0x2a335a(0x11e)](_0x5352e0[_0x3e7a65],'--help')||_0x5352e0[_0x3e7a65]==='-h')return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6bd8f4,_0x52c06b){const _0x3d5bbf=_0x3724,_0x1d86bf=_0x6bd8f4();while(!![]){try{const _0x11c104=parseInt(_0x3d5bbf(0x6b))/0x1*(-parseInt(_0x3d5bbf(0x6a))/0x2)+parseInt(_0x3d5bbf(0x85))/0x3*(-parseInt(_0x3d5bbf(0x6c))/0x4)+-parseInt(_0x3d5bbf(0x83))/0x5+-parseInt(_0x3d5bbf(0x6e))/0x6+-parseInt(_0x3d5bbf(0x7d))/0x7+-parseInt(_0x3d5bbf(0x73))/0x8*(-parseInt(_0x3d5bbf(0x6f))/0x9)+parseInt(_0x3d5bbf(0x7b))/0xa*(parseInt(_0x3d5bbf(0x7f))/0xb);if(_0x11c104===_0x52c06b)break;else _0x1d86bf['push'](_0x1d86bf['shift']());}catch(_0x38b197){_0x1d86bf['push'](_0x1d86bf['shift']());}}}(_0x96cc,0x1bdc2));const _0x506ea5=(function(){const _0x434b9a=_0x3724,_0x468451={'VJdrh':_0x434b9a(0x68),'mqdei':function(_0x4f19b4,_0x34b16b){return _0x4f19b4===_0x34b16b;},'SsVAY':'XuKDa','fOxLd':_0x434b9a(0x67),'IwLxd':'hgEdU'};let _0x426eee=!![];return function(_0x27e5fb,_0x85c809){const _0x29ded1=_0x434b9a,_0x26a35d={'sWyvr':_0x468451['VJdrh'],'kzQpD':function(_0x2873d2,_0x1f288a){const _0x34b2f4=_0x3724;return _0x468451[_0x34b2f4(0x75)](_0x2873d2,_0x1f288a);},'xJXVV':_0x468451[_0x29ded1(0x7a)],'gBHQW':'PwDIp'};if(_0x468451['mqdei'](_0x468451[_0x29ded1(0x71)],_0x468451[_0x29ded1(0x88)])){const _0x37abf0=_0x2d7534[_0x29ded1(0x7c)](_0x4841ba,arguments);return _0x1bf867=null,_0x37abf0;}else{const _0x2d84f1=_0x426eee?function(){const _0x361c01=_0x29ded1;if(_0x85c809){if(_0x26a35d[_0x361c01(0x74)](_0x26a35d['xJXVV'],_0x26a35d[_0x361c01(0x72)]))return _0x433eda['toString']()[_0x361c01(0x76)](_0x26a35d[_0x361c01(0x78)])[_0x361c01(0x66)]()['constructor'](_0x1e48ac)['search'](_0x26a35d[_0x361c01(0x78)]);else{const _0x223f58=_0x85c809[_0x361c01(0x7c)](_0x27e5fb,arguments);return _0x85c809=null,_0x223f58;}}}:function(){};return _0x426eee=![],_0x2d84f1;}};}()),_0x30c29b=_0x506ea5(this,function(){const _0x522942=_0x3724,_0x2dbee0={'mpqlA':_0x522942(0x68)};return _0x30c29b[_0x522942(0x66)]()[_0x522942(0x76)](_0x2dbee0[_0x522942(0x86)])[_0x522942(0x66)]()['constructor'](_0x30c29b)[_0x522942(0x76)](_0x2dbee0[_0x522942(0x86)]);});function _0x96cc(){const _0x1a5dd7=['zK94tgq','z0jiuvC','ntzAqwPYs2G','A3PrCeq','BxfKzwK','C2vHCMnO','t3ztq3C','C1D5DNi','ywjVCNq','u3nwqvK','mtKWD0P5BNDU','yxbWBhK','nde5nde5svvmBxze','rNL6ree','mJa5mtmYAgnuAKfb','yxbWBgLJyxrPB24VANnVBG','C3rYAw5NAwz5','qMvHCMvYia','nJeWnZKWD1HMD2DY','C2LNBMfS','mte4ogrXr21nCW','BxbXBee','zK9JsgO','sxDmEgq','zxjYB3i','Dg9tDhjPBMC','DMLmu2u','kcGOlISPkYKRksSK','B1v6DKC','nZG3ntrUAerWtuy','murTzfLWuW','mZG4B2zusgru','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtqYmZiWBvLrwM1y','ndy4otbwug5Uwem','Dgv4Da'];_0x96cc=function(){return _0x1a5dd7;};return _0x96cc();}function _0x3724(_0x2acacf,_0x420b73){_0x2acacf=_0x2acacf-0x66;const _0x45c6e8=_0x96cc();let _0x30c29b=_0x45c6e8[_0x2acacf];if(_0x3724['hSjISp']===undefined){var _0x506ea5=function(_0x208a5f){const _0x221566='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36f798='',_0x338f57='',_0x13074f=_0x36f798+_0x506ea5;for(let _0x1994c6=0x0,_0x1cdcb3,_0x1ead9e,_0xb241f7=0x0;_0x1ead9e=_0x208a5f['charAt'](_0xb241f7++);~_0x1ead9e&&(_0x1cdcb3=_0x1994c6%0x4?_0x1cdcb3*0x40+_0x1ead9e:_0x1ead9e,_0x1994c6++%0x4)?_0x36f798+=_0x13074f['charCodeAt'](_0xb241f7+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1cdcb3>>(-0x2*_0x1994c6&0x6)):_0x1994c6:0x0){_0x1ead9e=_0x221566['indexOf'](_0x1ead9e);}for(let _0x2c4570=0x0,_0x411597=_0x36f798['length'];_0x2c4570<_0x411597;_0x2c4570++){_0x338f57+='%'+('00'+_0x36f798['charCodeAt'](_0x2c4570)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x338f57);};_0x3724['TOrySY']=_0x506ea5,_0x3724['zgWTes']={},_0x3724['hSjISp']=!![];}const _0x96cc3b=_0x45c6e8[0x0],_0x37248f=_0x2acacf+_0x96cc3b,_0x33b904=_0x3724['zgWTes'][_0x37248f];if(!_0x33b904){const _0x5e5c18=function(_0x5f3935){this['gXcTTu']=_0x5f3935,this['uJBwwz']=[0x1,0x0,0x0],this['iAYmdV']=function(){return'newState';},this['uFeXJa']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qQFSjN']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5e5c18['prototype']['pcRVnA']=function(){const _0x4f7d51=new RegExp(this['uFeXJa']+this['qQFSjN']),_0x1e3b4c=_0x4f7d51['test'](this['iAYmdV']['toString']())?--this['uJBwwz'][0x1]:--this['uJBwwz'][0x0];return this['PIJbLd'](_0x1e3b4c);},_0x5e5c18['prototype']['PIJbLd']=function(_0x2a7dda){if(!Boolean(~_0x2a7dda))return _0x2a7dda;return this['VpzHjr'](this['gXcTTu']);},_0x5e5c18['prototype']['VpzHjr']=function(_0xb47fb7){for(let _0x1d6242=0x0,_0x4bb5a8=this['uJBwwz']['length'];_0x1d6242<_0x4bb5a8;_0x1d6242++){this['uJBwwz']['push'](Math['round'](Math['random']())),_0x4bb5a8=this['uJBwwz']['length'];}return _0xb47fb7(this['uJBwwz'][0x0]);},new _0x5e5c18(_0x3724)['pcRVnA'](),_0x30c29b=_0x3724['TOrySY'](_0x30c29b),_0x3724['zgWTes'][_0x37248f]=_0x30c29b;}else _0x30c29b=_0x33b904;return _0x30c29b;}_0x30c29b();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x222291,_0x340a33,_0x3fe4c1){const _0x2857d4=_0x3724,_0x1c9815={'OvSCw':function(_0x2ab4f8){return _0x2ab4f8();},'oUzvG':function(_0xa2faf0,_0x1ebb48,_0x2010c3){return _0xa2faf0(_0x1ebb48,_0x2010c3);},'FyzDA':'POST','fOcHj':_0x2857d4(0x80)},_0x11cc14=await getToken();if(!_0x11cc14)return;const _0x2b5ef2=_0x1c9815[_0x2857d4(0x77)](getApiBaseUrl),_0x571b7b=new AbortController(),_0x2b8340=_0x1c9815[_0x2857d4(0x69)](setTimeout,()=>_0x571b7b[_0x2857d4(0x79)](),0x1388);let _0x2c874c;try{_0x2c874c=await _0x1c9815[_0x2857d4(0x69)](fetch,_0x2b5ef2+_0x2857d4(0x6d),{'method':_0x1c9815[_0x2857d4(0x7e)],'headers':{'Authorization':_0x2857d4(0x82)+_0x11cc14,'Content-Type':_0x1c9815[_0x2857d4(0x87)]},'body':JSON[_0x2857d4(0x81)]({'skillName':_0x222291,'cliVersion':_0x3fe4c1,'metadata':_0x340a33}),'signal':_0x571b7b[_0x2857d4(0x84)]});}finally{clearTimeout(_0x2b8340);}if(!_0x2c874c['ok']){const _0x193090=await _0x2c874c[_0x2857d4(0x70)]();console[_0x2857d4(0x89)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x193090);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1145(_0x3b8cfd,_0x6d7f36){_0x3b8cfd=_0x3b8cfd-0x16d;const _0x55c337=_0x55c3();let _0x1145f3=_0x55c337[_0x3b8cfd];return _0x1145f3;}(function(_0x5f3ad4,_0x22706a){const _0x33fa56=_0x1145,_0x48b608=_0x5f3ad4();while(!![]){try{const _0x8afc79=parseInt(_0x33fa56(0x178))/0x1+-parseInt(_0x33fa56(0x174))/0x2+parseInt(_0x33fa56(0x177))/0x3+parseInt(_0x33fa56(0x16f))/0x4*(parseInt(_0x33fa56(0x179))/0x5)+-parseInt(_0x33fa56(0x183))/0x6+parseInt(_0x33fa56(0x186))/0x7*(parseInt(_0x33fa56(0x17a))/0x8)+-parseInt(_0x33fa56(0x180))/0x9;if(_0x8afc79===_0x22706a)break;else _0x48b608['push'](_0x48b608['shift']());}catch(_0x4857bd){_0x48b608['push'](_0x48b608['shift']());}}}(_0x55c3,0xe2250));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x1f9cf4){const _0x28a1b4=_0x1145;try{const _0x81fc0b=new URL(_0x1f9cf4);return _0x81fc0b[_0x28a1b4(0x172)]+'//'+_0x81fc0b['host'];}catch{return undefined;}}function hostnameMatchesPattern(_0x42237b,_0xc96513){const _0x23c01f=_0x1145,_0x216a31={'ttFNI':function(_0x517443,_0x4c6e9f){return _0x517443===_0x4c6e9f;}};if(!_0xc96513[_0x23c01f(0x173)]('*'))return _0x216a31['ttFNI'](_0x42237b,_0xc96513);if(!_0xc96513['startsWith']('*.'))return![];if(_0xc96513['slice'](0x2)['includes']('*'))return![];const _0x45b255=_0xc96513[_0x23c01f(0x176)](0x2);if(!_0x42237b[_0x23c01f(0x17d)]('.'+_0x45b255))return![];const _0x402964=_0x42237b[_0x23c01f(0x176)](0x0,-(_0x45b255['length']+0x1));return _0x402964[_0x23c01f(0x17e)]>0x0&&!_0x402964['includes']('.');}function domainPatternMatches(_0x13f23a,_0x53d0cb,_0x372cef={}){const _0x54b647=_0x1145,_0x1a90b1={'GIdsk':function(_0x467eff,_0xebc3e4,_0x5b7061){return _0x467eff(_0xebc3e4,_0x5b7061);},'TppZR':function(_0x3e7dd9,_0x37f3a4){return _0x3e7dd9===_0x37f3a4;}};try{const _0x3e26e5=new URL(_0x13f23a),_0x1688c3=new URL(_0x53d0cb);return _0x3e26e5[_0x54b647(0x172)]===_0x1688c3[_0x54b647(0x172)]&&_0x1a90b1[_0x54b647(0x16e)](hostnameMatchesPattern,_0x3e26e5['hostname'],_0x1688c3['hostname'])&&(_0x372cef[_0x54b647(0x17f)]||_0x1a90b1['TppZR'](_0x3e26e5[_0x54b647(0x187)],_0x1688c3['port']));}catch{return![];}}export function matchAuthEnvironmentExact(_0x25345a,_0x4a2179){const _0x4e0f30=_0x1145,_0x4951bc={'ZPXFH':function(_0x212956,_0x3e83bd,_0x3fd907){return _0x212956(_0x3e83bd,_0x3fd907);}};if(!_0x4a2179||!_0x4a2179[_0x4e0f30(0x175)])return undefined;if(!originIdentity(_0x25345a))return undefined;for(const [_0x54530f,_0x4835b9]of Object['entries'](_0x4a2179[_0x4e0f30(0x175)])){for(const _0xd9f64 of _0x4835b9['domains']??[]){if(_0x4951bc[_0x4e0f30(0x17c)](domainPatternMatches,_0x25345a,_0xd9f64))return _0x54530f;}}return undefined;}export function matchAuthEnvironmentByHost(_0x347c61,_0x1aefda){const _0x26709e=_0x1145,_0x5e5b82={'irkxe':'localhost','Vmmun':function(_0x3353e5,_0x1d188f){return _0x3353e5===_0x1d188f;},'RTeoZ':function(_0xac14dd,_0x525524){return _0xac14dd===_0x525524;}};if(!_0x1aefda||!_0x1aefda['environments'])return undefined;let _0x3d4f13;try{const _0x1a0efd=new URL(_0x347c61);_0x3d4f13=_0x1a0efd[_0x26709e(0x16d)];}catch{return undefined;}if(_0x3d4f13===_0x5e5b82[_0x26709e(0x17b)]||_0x5e5b82['Vmmun'](_0x3d4f13,_0x26709e(0x170)))return undefined;const _0x1c7f33=[];for(const [_0x39f4c5,_0x197a6e]of Object['entries'](_0x1aefda['environments'])){const _0x111504=(_0x197a6e['domains']??[])['some'](_0x29ea5d=>{const _0x3f77f9=_0x26709e;let _0xf10fc9=![];try{_0xf10fc9=new URL(_0x29ea5d)['hostname'][_0x3f77f9(0x173)]('*');}catch{return![];}return domainPatternMatches(_0x347c61,_0x29ea5d,{'ignorePort':!_0xf10fc9});});if(_0x111504)_0x1c7f33[_0x26709e(0x181)](_0x39f4c5);}if(_0x5e5b82[_0x26709e(0x184)](_0x1c7f33[_0x26709e(0x17e)],0x1))return{'key':_0x1c7f33[0x0]};if(_0x1c7f33[_0x26709e(0x17e)]>0x1)return{'ambiguous':_0x1c7f33};return undefined;}export function matchAuthEnvironment(_0x3bc0f4,_0x2c33a6){const _0x416829=_0x1145,_0x4d676f={'lqYNU':function(_0xc580d5,_0x59a9ed){return _0xc580d5 in _0x59a9ed;},'ubigq':'key','AiQIH':function(_0x45fba6,_0x11c2e6){return _0x45fba6 in _0x11c2e6;},'BOfgr':function(_0x2a7e49,_0x552bb0){return _0x2a7e49(_0x552bb0);}};if(!_0x2c33a6||!_0x2c33a6[_0x416829(0x175)])return undefined;const _0x1abea6=matchAuthEnvironmentExact(_0x3bc0f4,_0x2c33a6);if(_0x1abea6)return _0x1abea6;const _0x23dc7b=matchAuthEnvironmentByHost(_0x3bc0f4,_0x2c33a6);if(_0x23dc7b&&_0x4d676f['lqYNU'](_0x4d676f[_0x416829(0x171)],_0x23dc7b))return _0x23dc7b['key'];if(_0x23dc7b&&_0x4d676f['AiQIH'](_0x416829(0x182),_0x23dc7b))return undefined;if(_0x4d676f[_0x416829(0x185)](needsTunnel,_0x3bc0f4))return undefined;if(_0x2c33a6['defaultEnvironmentKey']&&_0x2c33a6[_0x416829(0x175)][_0x2c33a6['defaultEnvironmentKey']])return _0x2c33a6['defaultEnvironmentKey'];return undefined;}function _0x55c3(){const _0x52c475=['GIdsk','4QhKyVV','127.0.0.1','ubigq','protocol','includes','2371476FvhVLh','environments','slice','4042134TJfutC','1793858rSpuia','7766510uUEqTV','231944NDgNsi','irkxe','ZPXFH','endsWith','length','ignorePort','28480950MRBcYz','push','ambiguous','2596302GGvviB','RTeoZ','BOfgr','245BcJdPu','port','hostname'];_0x55c3=function(){return _0x52c475;};return _0x55c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5508a8,_0x517aa0){const _0x5ce852=_0x9532,_0x3e3128=_0x5508a8();while(!![]){try{const _0x2b8c98=-parseInt(_0x5ce852(0xd8))/0x1+parseInt(_0x5ce852(0xd2))/0x2+-parseInt(_0x5ce852(0xc0))/0x3+parseInt(_0x5ce852(0xb7))/0x4*(parseInt(_0x5ce852(0xe1))/0x5)+-parseInt(_0x5ce852(0xda))/0x6*(parseInt(_0x5ce852(0xd3))/0x7)+parseInt(_0x5ce852(0xc3))/0x8+-parseInt(_0x5ce852(0xab))/0x9*(parseInt(_0x5ce852(0xca))/0xa);if(_0x2b8c98===_0x517aa0)break;else _0x3e3128['push'](_0x3e3128['shift']());}catch(_0x5cb62a){_0x3e3128['push'](_0x3e3128['shift']());}}}(_0x3ce9,0x77069));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(_0x383151){const _0x19ad16={'RGQZq':function(_0x280fc7,_0x3f6960){return _0x280fc7!==_0x3f6960;}};return typeof _0x383151==='object'&&_0x19ad16['RGQZq'](_0x383151,null);}function isImageBlock(_0x12c855){const _0x198799=_0x9532,_0x5987bf={'Qgbto':function(_0x2f922a,_0x879467){return _0x2f922a===_0x879467;},'ZQSrt':_0x198799(0xc6)};return isRecord(_0x12c855)&&_0x5987bf[_0x198799(0xd1)](_0x12c855[_0x198799(0xd7)],_0x5987bf[_0x198799(0xc2)]);}function isDataUrl(_0x242c8b){const _0x38751e=_0x9532;return _0x242c8b[_0x38751e(0xdc)](_0x38751e(0xc4));}function _0x3ce9(){const _0x15cabe=['image','source','data','VUCVO','19510euVtIu','toString','isArray','gif','TJksC','AoyFA','string','Qgbto','1757810GmYdHX','7EzmzZm','image/png','KWuYt','content-type','type','430518EGdIWy','HOppf','724488GIRuFj','image/webp','startsWith','rWjhI','value','hIXhu','map','4423065dISZSn','updated','rurJk','PostToolUse','content','tool_response','hbXZJ','url','png','2277YgbWKp','headers','lJmhV','JSoZE','block','mimeType','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','jpeg','KPkFx','trim','all','dYvYU','4pNeMBL','Failed\x20to\x20fetch\x20image:\x20','xokAT','UCYvQ','http://','\x20bytes)','content-length','includes','PWiij','1333797HfGIvW','lseVI','ZQSrt','1707832uGmomL','data:','toLowerCase'];_0x3ce9=function(){return _0x15cabe;};return _0x3ce9();}function parseDataUrl(_0x5bcbc2){const _0x2b646c=_0x9532,_0x185014={'sxnFf':function(_0x56bd3e,_0x40dc1b){return _0x56bd3e(_0x40dc1b);}},_0x43bc67=/^data:([^;]+);base64,(.+)$/['exec'](_0x5bcbc2);if(!_0x43bc67)return null;const _0x2ebe74=_0x43bc67[0x1][_0x2b646c(0xc5)]();if(!_0x185014['sxnFf'](isValidMediaType,_0x2ebe74))return null;return{'data':_0x43bc67[0x2],'mediaType':_0x2ebe74};}function _0x9532(_0x135f11,_0x1cc559){_0x135f11=_0x135f11-0xa9;const _0x3ce9df=_0x3ce9();let _0x953263=_0x3ce9df[_0x135f11];return _0x953263;}function isValidMediaType(_0x83558f){const _0x5c23a8=_0x9532,_0x1f0bb4={'lJmhV':'image/png','UCYvQ':_0x5c23a8(0xdb)};return['image/jpeg',_0x1f0bb4[_0x5c23a8(0xad)],'image/gif',_0x1f0bb4[_0x5c23a8(0xba)]][_0x5c23a8(0xbe)](_0x83558f);}function inferMediaType(_0x5ac38d,_0x1906f4){const _0x22dc3b=_0x9532,_0x4ea6a3={'hbXZJ':'image/jpeg','cylzq':_0x22dc3b(0xaa),'xokAT':_0x22dc3b(0xd4),'CkMgv':_0x22dc3b(0xcd),'TeAIj':'image/gif'};if(_0x5ac38d){const _0x5164e2=_0x5ac38d['toLowerCase']()['split'](';')[0x0][_0x22dc3b(0xb4)]();if(isValidMediaType(_0x5164e2))return _0x5164e2;}const _0xf46298=extname(_0x1906f4)['toLowerCase']()['replace']('.','');switch(_0xf46298){case'jpg':case _0x22dc3b(0xb2):return _0x4ea6a3[_0x22dc3b(0xe7)];case _0x4ea6a3['cylzq']:return _0x4ea6a3[_0x22dc3b(0xb9)];case _0x4ea6a3['CkMgv']:return _0x4ea6a3['TeAIj'];case'webp':return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x40b0dd){const _0x15e8b9=_0x9532,_0x1188f6={'TJksC':function(_0x521003,_0xdd9f51){return _0x521003(_0xdd9f51);},'dYvYU':_0x15e8b9(0xb1),'lseVI':'file://','JSoZE':function(_0x9a6b61,_0x10dae4){return _0x9a6b61(_0x10dae4);},'rWjhI':'base64','tZVKe':function(_0x550427,_0x5c8c39){return _0x550427>_0x5c8c39;},'KWuYt':function(_0x398c44,_0x40a8f3,_0x248b3e){return _0x398c44(_0x40a8f3,_0x248b3e);},'IhjOz':function(_0x544220,_0xe06876){return _0x544220(_0xe06876);}};if(_0x1188f6[_0x15e8b9(0xce)](isDataUrl,_0x40b0dd)){const _0xa65824=parseDataUrl(_0x40b0dd);if(_0xa65824)return _0xa65824;throw new Error(_0x1188f6[_0x15e8b9(0xb6)]);}if(_0x40b0dd[_0x15e8b9(0xdc)](_0x1188f6[_0x15e8b9(0xc1)])){const _0x388e1d=fileURLToPath(_0x40b0dd),_0x4c22c9=await _0x1188f6[_0x15e8b9(0xae)](stat,_0x388e1d);if(_0x4c22c9['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));const _0x1e5761=await _0x1188f6[_0x15e8b9(0xae)](readFile,_0x388e1d);return{'data':_0x1e5761['toString'](_0x1188f6[_0x15e8b9(0xdd)]),'mediaType':inferMediaType(null,_0x388e1d)};}if(_0x40b0dd['startsWith'](_0x15e8b9(0xbb))||_0x40b0dd[_0x15e8b9(0xdc)]('https://')){const _0x677d86=await fetch(_0x40b0dd,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x677d86['ok'])throw new Error(_0x15e8b9(0xb8)+_0x677d86['status']);const _0xa65485=_0x677d86[_0x15e8b9(0xac)]['get'](_0x15e8b9(0xbd));if(_0xa65485){const _0x28fb83=Number(_0xa65485);if(!Number['isNaN'](_0x28fb83)&&_0x28fb83>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));}const _0x22f99a=await _0x677d86['arrayBuffer']();if(_0x1188f6['tZVKe'](_0x22f99a['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));return{'data':Buffer['from'](_0x22f99a)[_0x15e8b9(0xcb)](_0x1188f6[_0x15e8b9(0xdd)]),'mediaType':_0x1188f6[_0x15e8b9(0xd5)](inferMediaType,_0x677d86[_0x15e8b9(0xac)]['get'](_0x15e8b9(0xd6)),_0x40b0dd)};}const _0x5d82cd=await _0x1188f6['IhjOz'](stat,_0x40b0dd);if(_0x5d82cd['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x15e8b9(0xbc));const _0x30e598=await readFile(_0x40b0dd);return{'data':_0x30e598[_0x15e8b9(0xcb)]('base64'),'mediaType':inferMediaType(null,_0x40b0dd)};}async function convertImageBlockToBase64(_0x216424){const _0x22fa42=_0x9532,_0x50b71b={'HOppf':'base64','PWiij':function(_0x2d6c10,_0x3ff848){return _0x2d6c10(_0x3ff848);}};if(_0x216424['source']?.[_0x22fa42(0xd7)]===_0x50b71b['HOppf'])return{'updated':![],'block':_0x216424};if(_0x216424['data']&&_0x216424[_0x22fa42(0xb0)])return{'updated':![],'block':_0x216424};const _0x5e3753=_0x216424[_0x22fa42(0xc7)]?.[_0x22fa42(0xa9)]??_0x216424['url'];if(!_0x5e3753)return{'updated':![],'block':_0x216424};const _0x5133ae=await _0x50b71b[_0x22fa42(0xbf)](readImageFromUrl,_0x5e3753);return{'updated':!![],'block':{..._0x216424,'source':{'type':_0x50b71b[_0x22fa42(0xd9)],'media_type':_0x5133ae['mediaType'],'data':_0x5133ae[_0x22fa42(0xc8)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0xb56050){const _0x2742b8=_0x9532,_0x372500={'KPkFx':function(_0x1bd5fe,_0x392c35){return _0x1bd5fe(_0x392c35);}};if(!_0x372500['KPkFx'](isRecord,_0xb56050))return{'updated':![],'output':_0xb56050};const _0x4bfca2=_0xb56050[_0x2742b8(0xe5)];if(!Array['isArray'](_0x4bfca2))return{'updated':![],'output':_0xb56050};let _0x3ff86b=![];const _0x10a26e=await Promise[_0x2742b8(0xb5)](_0x4bfca2[_0x2742b8(0xe0)](async _0x41beff=>{const _0x40d239=_0x2742b8;if(!_0x372500[_0x40d239(0xb3)](isImageBlock,_0x41beff))return _0x41beff;try{const _0x3edbb6=await convertImageBlockToBase64(_0x41beff);if(_0x3edbb6[_0x40d239(0xe2)])_0x3ff86b=!![];return _0x3edbb6[_0x40d239(0xaf)];}catch{return _0x41beff;}}));if(!_0x3ff86b)return{'updated':![],'output':_0xb56050};return{'updated':!![],'output':{..._0xb56050,'content':_0x10a26e}};}function sanitizeLoneSurrogates(_0x12f6d7){const _0x5b7c59=_0x9532,_0x5b59b6={'hIXhu':function(_0xe6d469,_0x45580d){return _0xe6d469>=_0x45580d;},'POOqv':function(_0x3df3a3,_0x3d835d){return _0x3df3a3+_0x3d835d;},'VUCVO':function(_0x5ed61e,_0x17f8d4){return _0x5ed61e+_0x17f8d4;},'AoyFA':function(_0x22a927,_0x5a7069){return _0x22a927+_0x5a7069;},'IgoBo':function(_0x1251ff,_0x5a473d){return _0x1251ff>=_0x5a473d;}};let _0x3d36dd=![],_0x3d6d37='';for(let _0x4c04d7=0x0;_0x4c04d7<_0x12f6d7['length'];_0x4c04d7+=0x1){const _0x2c88e4=_0x12f6d7['charCodeAt'](_0x4c04d7);if(_0x5b59b6['hIXhu'](_0x2c88e4,0xd800)&&_0x2c88e4<=0xdbff){const _0x54680e=_0x12f6d7['charCodeAt'](_0x5b59b6['POOqv'](_0x4c04d7,0x1));if(_0x5b59b6[_0x5b7c59(0xdf)](_0x54680e,0xdc00)&&_0x54680e<=0xdfff){_0x3d6d37+=_0x5b59b6[_0x5b7c59(0xc9)](_0x12f6d7[_0x4c04d7],_0x12f6d7[_0x5b59b6[_0x5b7c59(0xcf)](_0x4c04d7,0x1)]),_0x4c04d7+=0x1;continue;}_0x3d36dd=!![],_0x3d6d37+='�';continue;}if(_0x5b59b6['IgoBo'](_0x2c88e4,0xdc00)&&_0x2c88e4<=0xdfff){_0x3d36dd=!![],_0x3d6d37+='�';continue;}_0x3d6d37+=_0x12f6d7[_0x4c04d7];}return _0x3d36dd?{'updated':_0x3d36dd,'value':_0x3d6d37}:{'updated':_0x3d36dd,'value':_0x12f6d7};}function sanitizeLoneSurrogatesDeep(_0x1b7a0a){const _0x2a4d5d=_0x9532,_0x4778f1={'aFRMC':_0x2a4d5d(0xd0),'CjdPE':function(_0x172391,_0x3a1de9){return _0x172391(_0x3a1de9);}};if(typeof _0x1b7a0a===_0x4778f1['aFRMC'])return sanitizeLoneSurrogates(_0x1b7a0a);if(Array[_0x2a4d5d(0xcc)](_0x1b7a0a)){let _0x3525ac=![];const _0x54d8fd=_0x1b7a0a['map'](_0x1d34da=>{const _0x4de37e=_0x2a4d5d,_0x6db7d8=sanitizeLoneSurrogatesDeep(_0x1d34da);return _0x6db7d8[_0x4de37e(0xe2)]&&(_0x3525ac=!![]),_0x6db7d8[_0x4de37e(0xde)];});return _0x3525ac?{'updated':!![],'value':_0x54d8fd}:{'updated':![],'value':_0x1b7a0a};}if(!_0x4778f1['CjdPE'](isRecord,_0x1b7a0a))return{'updated':![],'value':_0x1b7a0a};let _0x2d5813=![];const _0x282dbf=Object['entries'](_0x1b7a0a)[_0x2a4d5d(0xe0)](([_0x5e8282,_0x24bf49])=>{const _0x54dd32=_0x2a4d5d,_0x2ab1c=sanitizeLoneSurrogatesDeep(_0x24bf49);return _0x2ab1c['updated']&&(_0x2d5813=!![]),[_0x5e8282,_0x2ab1c[_0x54dd32(0xde)]];});return _0x2d5813?{'updated':!![],'value':Object['fromEntries'](_0x282dbf)}:{'updated':![],'value':_0x1b7a0a};}export function createMcpImageBase64Hook(){const _0x227d34=_0x9532,_0x418a9d={'DOWXo':function(_0x578b76,_0xe9a4ec){return _0x578b76!==_0xe9a4ec;},'rurJk':function(_0xf19319,_0x314ed4){return _0xf19319(_0x314ed4);},'OqXbc':function(_0x5d50c1,_0x31036e){return _0x5d50c1(_0x31036e);},'VkgAV':_0x227d34(0xe4)};return async _0x2e213d=>{const _0x29a710=_0x227d34;if(_0x418a9d['DOWXo'](_0x2e213d['hook_event_name'],_0x29a710(0xe4)))return{};const _0x3ecd49=_0x2e213d,_0x4506e5=await _0x418a9d[_0x29a710(0xe3)](convertToolOutputImagesToBase64,_0x3ecd49[_0x29a710(0xe6)]),_0x282d96=_0x418a9d['OqXbc'](sanitizeLoneSurrogatesDeep,_0x4506e5['output']),_0x8d1b60=_0x4506e5['updated']||_0x282d96[_0x29a710(0xe2)];if(!_0x8d1b60)return{};return{'hookSpecificOutput':{'hookEventName':_0x418a9d['VkgAV'],'updatedMCPToolOutput':_0x282d96['value']}};};}
|
|
1
|
+
(function(_0xe594d0,_0x1326bd){const _0x5b1c46=_0xfb56,_0x17da10=_0xe594d0();while(!![]){try{const _0x5b96c8=parseInt(_0x5b1c46(0x125))/0x1*(parseInt(_0x5b1c46(0x12e))/0x2)+parseInt(_0x5b1c46(0x106))/0x3*(-parseInt(_0x5b1c46(0x121))/0x4)+parseInt(_0x5b1c46(0x122))/0x5+-parseInt(_0x5b1c46(0x100))/0x6*(parseInt(_0x5b1c46(0xf5))/0x7)+-parseInt(_0x5b1c46(0xf4))/0x8+-parseInt(_0x5b1c46(0xe5))/0x9+-parseInt(_0x5b1c46(0xeb))/0xa*(-parseInt(_0x5b1c46(0xf8))/0xb);if(_0x5b96c8===_0x1326bd)break;else _0x17da10['push'](_0x17da10['shift']());}catch(_0x19504c){_0x17da10['push'](_0x17da10['shift']());}}}(_0x3c56,0x3640c));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(_0x52d84d){const _0xdb67d7=_0xfb56,_0x6f2484={'pkcEr':function(_0x21102d,_0x2cabac){return _0x21102d===_0x2cabac;},'PiPIA':_0xdb67d7(0x11e),'DqcDK':function(_0x212f02,_0x3970a3){return _0x212f02!==_0x3970a3;}};return _0x6f2484[_0xdb67d7(0x12c)](typeof _0x52d84d,_0x6f2484[_0xdb67d7(0x113)])&&_0x6f2484['DqcDK'](_0x52d84d,null);}function isImageBlock(_0x393887){const _0x5522ed=_0xfb56,_0x1b3dcd={'qWkZR':function(_0x2cba20,_0x16f201){return _0x2cba20===_0x16f201;},'FZecE':'image'};return isRecord(_0x393887)&&_0x1b3dcd[_0x5522ed(0xe1)](_0x393887['type'],_0x1b3dcd[_0x5522ed(0xf2)]);}function isDataUrl(_0x1b2ffd){const _0x57796b=_0xfb56,_0x5ac3d2={'VJYwe':_0x57796b(0x10d)};return _0x1b2ffd['startsWith'](_0x5ac3d2[_0x57796b(0xf3)]);}function parseDataUrl(_0x5b50d9){const _0x30b126=_0xfb56,_0x37ccdc={'TKRiv':function(_0x40f663,_0x214c67){return _0x40f663(_0x214c67);}},_0x15b55d=/^data:([^;]+);base64,(.+)$/['exec'](_0x5b50d9);if(!_0x15b55d)return null;const _0x41f2cd=_0x15b55d[0x1][_0x30b126(0xed)]();if(!_0x37ccdc[_0x30b126(0xf9)](isValidMediaType,_0x41f2cd))return null;return{'data':_0x15b55d[0x2],'mediaType':_0x41f2cd};}function _0xfb56(_0x2c12a6,_0x1fbe13){_0x2c12a6=_0x2c12a6-0xe1;const _0x3c5664=_0x3c56();let _0xfb56cf=_0x3c5664[_0x2c12a6];return _0xfb56cf;}function isValidMediaType(_0x3b14bb){const _0x5c1001=_0xfb56,_0x27ad8e={'hlIHX':'image/jpeg','DtZQB':'image/png','KzChb':'image/webp'};return[_0x27ad8e[_0x5c1001(0x116)],_0x27ad8e['DtZQB'],_0x5c1001(0x129),_0x27ad8e['KzChb']]['includes'](_0x3b14bb);}function inferMediaType(_0xf425e6,_0x3c94d6){const _0x5e1cae=_0xfb56,_0x32ec11={'fCXEf':function(_0x1c4463,_0x86c4ae){return _0x1c4463(_0x86c4ae);},'BKdaQ':'jpg','pGdtI':'image/jpeg','WOuqt':'png','BiMpd':_0x5e1cae(0x10a),'gVALp':_0x5e1cae(0x129),'MWjSZ':_0x5e1cae(0xff)};if(_0xf425e6){const _0x536a60=_0xf425e6['toLowerCase']()['split'](';')[0x0]['trim']();if(_0x32ec11['fCXEf'](isValidMediaType,_0x536a60))return _0x536a60;}const _0x107d0c=extname(_0x3c94d6)['toLowerCase']()[_0x5e1cae(0xfb)]('.','');switch(_0x107d0c){case _0x32ec11[_0x5e1cae(0x114)]:case _0x5e1cae(0xe7):return _0x32ec11['pGdtI'];case _0x32ec11[_0x5e1cae(0x117)]:return _0x32ec11['BiMpd'];case _0x5e1cae(0x105):return _0x32ec11[_0x5e1cae(0xe4)];case _0x5e1cae(0xf6):return _0x32ec11[_0x5e1cae(0x11c)];default:return _0x32ec11['BiMpd'];}}async function readImageFromUrl(_0x343c82){const _0x494b56=_0xfb56,_0x15ff8b={'AMrzk':function(_0x2cf72b,_0x42da07){return _0x2cf72b(_0x42da07);},'XqWSL':_0x494b56(0x115),'FmQjX':'file://','wWYPn':function(_0x42be1a,_0x590d1){return _0x42be1a(_0x590d1);},'pTAMc':function(_0x374502,_0x400f1a){return _0x374502(_0x400f1a);},'fcuMN':function(_0xea15a5,_0x2ab761){return _0xea15a5(_0x2ab761);},'vyIYa':function(_0x723021,_0x40d093,_0x4ec3d3){return _0x723021(_0x40d093,_0x4ec3d3);},'zPoXR':'http://','izStu':_0x494b56(0x123),'gdWjG':'content-length','RDxQK':function(_0x4dd29d,_0x5c2d7e){return _0x4dd29d>_0x5c2d7e;},'mgBTh':function(_0x4e2f51,_0x41106a){return _0x4e2f51>_0x41106a;},'oCEWO':'base64','aRHba':function(_0x51d313,_0x59748a,_0x3eb9e5){return _0x51d313(_0x59748a,_0x3eb9e5);}};if(_0x15ff8b[_0x494b56(0x11f)](isDataUrl,_0x343c82)){const _0xdd8699=parseDataUrl(_0x343c82);if(_0xdd8699)return _0xdd8699;throw new Error(_0x15ff8b[_0x494b56(0x11d)]);}if(_0x343c82[_0x494b56(0x124)](_0x15ff8b['FmQjX'])){const _0x1f4cb7=_0x15ff8b[_0x494b56(0x11a)](fileURLToPath,_0x343c82),_0x57efce=await _0x15ff8b[_0x494b56(0xf7)](stat,_0x1f4cb7);if(_0x57efce['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x106a8b=await _0x15ff8b[_0x494b56(0x112)](readFile,_0x1f4cb7);return{'data':_0x106a8b[_0x494b56(0x12d)]('base64'),'mediaType':_0x15ff8b[_0x494b56(0xfc)](inferMediaType,null,_0x1f4cb7)};}if(_0x343c82['startsWith'](_0x15ff8b[_0x494b56(0x12b)])||_0x343c82[_0x494b56(0x124)](_0x15ff8b[_0x494b56(0x104)])){const _0x2e2a88=await fetch(_0x343c82,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2e2a88['ok'])throw new Error(_0x494b56(0xe8)+_0x2e2a88[_0x494b56(0x107)]);const _0x17a5dc=_0x2e2a88['headers']['get'](_0x15ff8b[_0x494b56(0x11b)]);if(_0x17a5dc){const _0x579cfc=_0x15ff8b[_0x494b56(0x112)](Number,_0x17a5dc);if(!Number['isNaN'](_0x579cfc)&&_0x15ff8b['RDxQK'](_0x579cfc,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x494b56(0xe6)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0xc3bf81=await _0x2e2a88['arrayBuffer']();if(_0x15ff8b['RDxQK'](_0xc3bf81[_0x494b56(0x110)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x494b56(0x102));return{'data':Buffer['from'](_0xc3bf81)[_0x494b56(0x12d)](_0x494b56(0xfe)),'mediaType':inferMediaType(_0x2e2a88[_0x494b56(0x111)]['get']('content-type'),_0x343c82)};}const _0x395eba=await _0x15ff8b['pTAMc'](stat,_0x343c82);if(_0x15ff8b['mgBTh'](_0x395eba['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x494b56(0x102));const _0x218406=await _0x15ff8b['fcuMN'](readFile,_0x343c82);return{'data':_0x218406[_0x494b56(0x12d)](_0x15ff8b[_0x494b56(0xe3)]),'mediaType':_0x15ff8b[_0x494b56(0xf0)](inferMediaType,null,_0x343c82)};}async function convertImageBlockToBase64(_0x4470ce){const _0x4c5143=_0xfb56,_0x4653f3={'ojiRq':_0x4c5143(0xfe),'UINbv':function(_0x4d02b8,_0x49ad27){return _0x4d02b8(_0x49ad27);}};if(_0x4470ce[_0x4c5143(0xf1)]?.[_0x4c5143(0x101)]===_0x4653f3[_0x4c5143(0x118)])return{'updated':![],'block':_0x4470ce};if(_0x4470ce[_0x4c5143(0x128)]&&_0x4470ce[_0x4c5143(0x120)])return{'updated':![],'block':_0x4470ce};const _0x825d6b=_0x4470ce[_0x4c5143(0xf1)]?.['url']??_0x4470ce[_0x4c5143(0x127)];if(!_0x825d6b)return{'updated':![],'block':_0x4470ce};const _0x1c1dd8=await _0x4653f3[_0x4c5143(0x103)](readImageFromUrl,_0x825d6b);return{'updated':!![],'block':{..._0x4470ce,'source':{'type':_0x4653f3['ojiRq'],'media_type':_0x1c1dd8['mediaType'],'data':_0x1c1dd8['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x4bd9dc){const _0xb94c71=_0xfb56;if(!isRecord(_0x4bd9dc))return{'updated':![],'output':_0x4bd9dc};const _0x55d2f7=_0x4bd9dc['content'];if(!Array['isArray'](_0x55d2f7))return{'updated':![],'output':_0x4bd9dc};let _0x281b99=![];const _0x51f8b5=await Promise['all'](_0x55d2f7[_0xb94c71(0x126)](async _0x4fcea7=>{const _0x108da2=_0xb94c71;if(!isImageBlock(_0x4fcea7))return _0x4fcea7;try{const _0x4c54f6=await convertImageBlockToBase64(_0x4fcea7);if(_0x4c54f6[_0x108da2(0xea)])_0x281b99=!![];return _0x4c54f6['block'];}catch{return _0x4fcea7;}}));if(!_0x281b99)return{'updated':![],'output':_0x4bd9dc};return{'updated':!![],'output':{..._0x4bd9dc,'content':_0x51f8b5}};}function sanitizeLoneSurrogates(_0x5f4151){const _0x2cbb58=_0xfb56,_0x3e4893={'HderO':function(_0x411aec,_0x2a7122){return _0x411aec>=_0x2a7122;},'rFfZB':function(_0x9cc8e5,_0x10a9b7){return _0x9cc8e5<=_0x10a9b7;},'eDCAr':function(_0x3255e0,_0x35b51f){return _0x3255e0+_0x35b51f;},'zFxjJ':function(_0x411b71,_0x572b06){return _0x411b71>=_0x572b06;}};let _0x2c37a5=![],_0x50058d='';for(let _0xc79190=0x0;_0xc79190<_0x5f4151[_0x2cbb58(0xe9)];_0xc79190+=0x1){const _0x35247f=_0x5f4151['charCodeAt'](_0xc79190);if(_0x3e4893[_0x2cbb58(0x10e)](_0x35247f,0xd800)&&_0x3e4893[_0x2cbb58(0xec)](_0x35247f,0xdbff)){const _0x4ccd10=_0x5f4151['charCodeAt'](_0xc79190+0x1);if(_0x4ccd10>=0xdc00&&_0x4ccd10<=0xdfff){_0x50058d+=_0x5f4151[_0xc79190]+_0x5f4151[_0x3e4893['eDCAr'](_0xc79190,0x1)],_0xc79190+=0x1;continue;}_0x2c37a5=!![],_0x50058d+='�';continue;}if(_0x3e4893[_0x2cbb58(0xfd)](_0x35247f,0xdc00)&&_0x35247f<=0xdfff){_0x2c37a5=!![],_0x50058d+='�';continue;}_0x50058d+=_0x5f4151[_0xc79190];}return _0x2c37a5?{'updated':_0x2c37a5,'value':_0x50058d}:{'updated':_0x2c37a5,'value':_0x5f4151};}function sanitizeLoneSurrogatesDeep(_0x32c5c8){const _0x5f5dda=_0xfb56,_0x22073f={'qQJYc':function(_0x34b265,_0x429b80){return _0x34b265===_0x429b80;},'XKooJ':_0x5f5dda(0x109)};if(_0x22073f['qQJYc'](typeof _0x32c5c8,_0x22073f[_0x5f5dda(0x10b)]))return sanitizeLoneSurrogates(_0x32c5c8);if(Array['isArray'](_0x32c5c8)){let _0x13681f=![];const _0x15b597=_0x32c5c8['map'](_0x36ef85=>{const _0x3fa37d=_0x5f5dda,_0x57bbf4=sanitizeLoneSurrogatesDeep(_0x36ef85);return _0x57bbf4['updated']&&(_0x13681f=!![]),_0x57bbf4[_0x3fa37d(0xfa)];});return _0x13681f?{'updated':!![],'value':_0x15b597}:{'updated':![],'value':_0x32c5c8};}if(!isRecord(_0x32c5c8))return{'updated':![],'value':_0x32c5c8};let _0x333cda=![];const _0x32af65=Object[_0x5f5dda(0xee)](_0x32c5c8)[_0x5f5dda(0x126)](([_0x3b25f1,_0x1038bb])=>{const _0x50ba9b=sanitizeLoneSurrogatesDeep(_0x1038bb);return _0x50ba9b['updated']&&(_0x333cda=!![]),[_0x3b25f1,_0x50ba9b['value']];});return _0x333cda?{'updated':!![],'value':Object[_0x5f5dda(0x12a)](_0x32af65)}:{'updated':![],'value':_0x32c5c8};}export function createMcpImageBase64Hook(){const _0x174d0c={'eUfuN':function(_0x3eca13,_0x5f39bd){return _0x3eca13!==_0x5f39bd;},'EHEwE':'PostToolUse','YrmoZ':function(_0x131da3,_0x1c993e){return _0x131da3(_0x1c993e);}};return async _0xc5a5ba=>{const _0x19b7aa=_0xfb56;if(_0x174d0c[_0x19b7aa(0x10f)](_0xc5a5ba[_0x19b7aa(0xe2)],_0x174d0c[_0x19b7aa(0xef)]))return{};const _0x11d679=_0xc5a5ba,_0x3e7f5d=await _0x174d0c[_0x19b7aa(0x108)](convertToolOutputImagesToBase64,_0x11d679[_0x19b7aa(0x119)]),_0x2f523d=sanitizeLoneSurrogatesDeep(_0x3e7f5d['output']),_0x509d8d=_0x3e7f5d[_0x19b7aa(0xea)]||_0x2f523d['updated'];if(!_0x509d8d)return{};return{'hookSpecificOutput':{'hookEventName':_0x19b7aa(0x10c),'updatedMCPToolOutput':_0x2f523d[_0x19b7aa(0xfa)]}};};}function _0x3c56(){const _0x14083b=['tool_response','wWYPn','gdWjG','MWjSZ','XqWSL','object','AMrzk','mimeType','8jRmEPG','1676350cFmEYB','https://','startsWith','123005HCxhHm','map','url','data','image/gif','fromEntries','zPoXR','pkcEr','toString','4BMujDW','qWkZR','hook_event_name','oCEWO','gVALp','3814443XRZQKA','Image\x20exceeds\x20size\x20limit\x20(','jpeg','Failed\x20to\x20fetch\x20image:\x20','length','updated','180OhsPWQ','rFfZB','toLowerCase','entries','EHEwE','aRHba','source','FZecE','VJYwe','1279240mBsHqZ','161KHlkCy','webp','pTAMc','368192EcSfPn','TKRiv','value','replace','vyIYa','zFxjJ','base64','image/webp','8196OppZBz','type','\x20bytes)','UINbv','izStu','gif','519609JAOwex','status','YrmoZ','string','image/png','XKooJ','PostToolUse','data:','HderO','eUfuN','byteLength','headers','fcuMN','PiPIA','BKdaQ','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','hlIHX','WOuqt','ojiRq'];_0x3c56=function(){return _0x14083b;};return _0x3c56();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x428a7d=_0x7b24;(function(_0x49dfeb,_0x5a754d){const _0x1cf1a3=_0x7b24,_0x2a2e48=_0x49dfeb();while(!![]){try{const _0x40e155=parseInt(_0x1cf1a3(0x1b7))/0x1+-parseInt(_0x1cf1a3(0x1b8))/0x2*(parseInt(_0x1cf1a3(0x1b9))/0x3)+-parseInt(_0x1cf1a3(0x1be))/0x4*(-parseInt(_0x1cf1a3(0x1b5))/0x5)+parseInt(_0x1cf1a3(0x1bc))/0x6*(-parseInt(_0x1cf1a3(0x1bd))/0x7)+-parseInt(_0x1cf1a3(0x1bb))/0x8+parseInt(_0x1cf1a3(0x1ba))/0x9*(-parseInt(_0x1cf1a3(0x1b6))/0xa)+parseInt(_0x1cf1a3(0x1b3))/0xb;if(_0x40e155===_0x5a754d)break;else _0x2a2e48['push'](_0x2a2e48['shift']());}catch(_0x21b187){_0x2a2e48['push'](_0x2a2e48['shift']());}}}(_0x55f4,0x848cf));function _0x7b24(_0x1dfd2f,_0x1fe1c1){_0x1dfd2f=_0x1dfd2f-0x1b3;const _0x55f45b=_0x55f4();let _0x7b24cf=_0x55f45b[_0x1dfd2f];return _0x7b24cf;}function _0x55f4(){const _0x2cc4c4=['42TgZhDP','6181XIehMX','174852HYySXL','4930002syBkHq','claude-sonnet-4-6','85TQxQZt','90YmMnni','562557wtNntf','2BdtsBU','847131vVtaJa','354114DcuXbv','4546088GXtCMi'];_0x55f4=function(){return _0x2cc4c4;};return _0x55f4();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x428a7d(0x1b4)};export const DEFAULT_VERIFY_MODEL=_0x428a7d(0x1b4);export function resolveVerifyModel(_0x2eb52a){const _0xd4e408={'bZvVU':function(_0x2b073d,_0x1e1748){return _0x2b073d??_0x1e1748;}};if(!_0x2eb52a)return undefined;const _0x440dd4=_0x2eb52a['trim']();if(!_0x440dd4)return undefined;const _0x42a2cf=VERIFY_MODEL_ALIASES[_0x440dd4['toLowerCase']()];return _0xd4e408['bZvVU'](_0x42a2cf,_0x440dd4);}
|