@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.4-alpha.96fdd81-47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -0
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x22bc39=_0x13ce;(function(_0x160ff1,_0x1543d2){const _0x3ddb96=_0x13ce,_0x543504=_0x160ff1();while(!![]){try{const _0x1d75bb=parseInt(_0x3ddb96(0x1e6))/0x1*(-parseInt(_0x3ddb96(0x1d3))/0x2)+-parseInt(_0x3ddb96(0x203))/0x3*(parseInt(_0x3ddb96(0x1c9))/0x4)+parseInt(_0x3ddb96(0x1e8))/0x5+-parseInt(_0x3ddb96(0x1f5))/0x6+-parseInt(_0x3ddb96(0x1ef))/0x7+-parseInt(_0x3ddb96(0x1c5))/0x8*(-parseInt(_0x3ddb96(0x1e4))/0x9)+-parseInt(_0x3ddb96(0x1d4))/0xa*(-parseInt(_0x3ddb96(0x1e2))/0xb);if(_0x1d75bb===_0x1543d2)break;else _0x543504['push'](_0x543504['shift']());}catch(_0xee4621){_0x543504['push'](_0x543504['shift']());}}}(_0x9ba4,0xe9ab1));import{readFileSync,writeFileSync}from'fs';function _0x9ba4(){const _0x5efeb5=['vnEoI','trhIr','writeDoubleBE','PzsMN','mmPBi','7096845SjHKaY','argv','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','sQmzD','WFIPO','UyJya','9181140oekJVJ','TYLxQ','VpXdv','log','slice','BDLlH','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','zDVXR','pow','tOIJD','mPtNg','tOHZj','inQWg','idLen','1809tTyqLk','from','Fixed:\x20','JqRqS','NBLVa','12191024LVtnpK','LMaGl','alloc','Could\x20not\x20compute\x20duration','692dGRyVv','indexOf','jHRjw','qNdPX','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','floor','IyHnu','OVpHA','QBwUx','min','365570jumvMX','6445550IEAZKO','error','offset','zCovM','fuXXD','IBsZV','endsWith','QbAmp','LSVwp','GIfNX','length','uSqAr','concat','tJspJ','33pxvAsC','dnDTM','9VwVIKj','VyGJN','8qTvEfQ','dataOffset','8050930JHVfmm','dataSize'];_0x9ba4=function(){return _0x5efeb5;};return _0x9ba4();}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(_0x222d07,_0x4b4082){const _0x10fca3=_0x13ce,_0x4abef4={'CdUSC':function(_0x27daff,_0x55e8cc){return _0x27daff>=_0x55e8cc;},'JtLaA':function(_0x410544,_0x2286f7){return _0x410544<=_0x2286f7;},'ueWcq':function(_0xe38920,_0x3a3a5d){return _0xe38920>_0x3a3a5d;},'IyHnu':function(_0xaab400,_0x2684eb){return _0xaab400-_0x2684eb;},'xZxTQ':function(_0xf887e1,_0xf6274d){return _0xf887e1+_0xf6274d;},'dgSQp':function(_0x1fbae6,_0x4ecdb5){return _0x1fbae6*_0x4ecdb5;},'UyJya':function(_0x408ce7,_0x2a35eb){return _0x408ce7+_0x2a35eb;}};if(_0x4abef4['CdUSC'](_0x4b4082,_0x222d07['length']))return[0x0,0x0];const _0x35e0a6=_0x222d07[_0x4b4082];let _0x4c7bbe=0x1,_0x1048b2=0x80;while(_0x4abef4['JtLaA'](_0x4c7bbe,0x8)&&!(_0x35e0a6&_0x1048b2)){_0x4c7bbe++,_0x1048b2>>=0x1;}if(_0x4abef4['ueWcq'](_0x4b4082+_0x4c7bbe,_0x222d07['length']))return[0x0,0x0];let _0x194298=_0x35e0a6&_0x4abef4[_0x10fca3(0x1cf)](_0x1048b2,0x1);for(let _0x20b6a9=0x1;_0x20b6a9<_0x4c7bbe;_0x20b6a9++){_0x194298=_0x4abef4['xZxTQ'](_0x4abef4['dgSQp'](_0x194298,0x100),_0x222d07[_0x4abef4[_0x10fca3(0x1f4)](_0x4b4082,_0x20b6a9)]);}return[_0x194298,_0x4c7bbe];}function _0x13ce(_0x5b4a3c,_0x4d3d08){_0x5b4a3c=_0x5b4a3c-0x1c4;const _0x9ba47d=_0x9ba4();let _0x13ce5e=_0x9ba47d[_0x5b4a3c];return _0x13ce5e;}function readId(_0x14c5d9,_0x2717aa){const _0x1e6cd6=_0x13ce,_0x2b77fd={'inQWg':function(_0x168c9d,_0x4171e8){return _0x168c9d>=_0x4171e8;},'COvHE':function(_0x5442a1,_0x27011b){return _0x5442a1>=_0x27011b;},'qyRcn':function(_0x54553e,_0x5eb155){return _0x54553e>_0x5eb155;},'euyQZ':function(_0xad7543,_0x211529){return _0xad7543+_0x211529;}};if(_0x2717aa>=_0x14c5d9['length'])return[0x0,0x0];const _0x1a9071=_0x14c5d9[_0x2717aa];let _0x1f0848;if(_0x2b77fd['inQWg'](_0x1a9071,0x80))_0x1f0848=0x1;else{if(_0x2b77fd[_0x1e6cd6(0x201)](_0x1a9071,0x40))_0x1f0848=0x2;else{if(_0x2b77fd['COvHE'](_0x1a9071,0x20))_0x1f0848=0x3;else{if(_0x1a9071>=0x10)_0x1f0848=0x4;else return[_0x1a9071,0x1];}}}if(_0x2b77fd['qyRcn'](_0x2717aa+_0x1f0848,_0x14c5d9['length']))return[0x0,0x0];let _0x4d5435=0x0;for(let _0x4b55e0=0x0;_0x4b55e0<_0x1f0848;_0x4b55e0++){_0x4d5435=_0x2b77fd['euyQZ'](_0x4d5435*0x100,_0x14c5d9[_0x2717aa+_0x4b55e0]);}return[_0x4d5435,_0x1f0848];}function readUint(_0x48844e,_0x28f175,_0xb5ce88){const _0x4691b0=_0x13ce,_0x13eb19={'IBsZV':function(_0x181011,_0xe43145){return _0x181011<_0xe43145;},'zCovM':function(_0x194d86,_0x486266){return _0x194d86+_0x486266;},'QPYYr':function(_0x27354f,_0xc1dc6a){return _0x27354f*_0xc1dc6a;}};let _0x147b66=0x0;for(let _0x2486cd=0x0;_0x13eb19[_0x4691b0(0x1d9)](_0x2486cd,_0xb5ce88);_0x2486cd++){_0x147b66=_0x13eb19[_0x4691b0(0x1d7)](_0x13eb19['QPYYr'](_0x147b66,0x100),_0x48844e[_0x13eb19[_0x4691b0(0x1d7)](_0x28f175,_0x2486cd)]);}return _0x147b66;}function isUnknownSize(_0x580bc1,_0x5f3446){const _0x1e8edc=_0x13ce,_0x25e62e={'vWjiK':function(_0x5af6e3,_0x45c6fd){return _0x5af6e3-_0x45c6fd;}};return _0x580bc1===_0x25e62e['vWjiK'](Math[_0x1e8edc(0x1fd)](0x2,0x7*_0x5f3446),0x1);}function writeId(_0x2efcbf){const _0x31ac91=_0x13ce,_0x3b7a4e={'qCrnE':function(_0x535c71,_0x44a743){return _0x535c71<=_0x44a743;},'trhIr':function(_0x36cc42,_0x45b97d){return _0x36cc42&_0x45b97d;},'WFIPO':function(_0x5e4adc,_0x278074){return _0x5e4adc>>_0x278074;},'NBLVa':function(_0x3f646e,_0x54b970){return _0x3f646e&_0x54b970;},'RmnKj':function(_0x3b80d7,_0x2c5ca9){return _0x3b80d7<=_0x2c5ca9;},'ncled':function(_0x233d38,_0x47b4a){return _0x233d38&_0x47b4a;},'QBwUx':function(_0xf3d936,_0x58192d){return _0xf3d936>>_0x58192d;}};if(_0x3b7a4e['qCrnE'](_0x2efcbf,0xff))return Buffer['from']([_0x2efcbf]);if(_0x2efcbf<=0xffff)return Buffer['from']([_0x3b7a4e['trhIr'](_0x3b7a4e[_0x31ac91(0x1f3)](_0x2efcbf,0x8),0xff),_0x3b7a4e[_0x31ac91(0x1c4)](_0x2efcbf,0xff)]);if(_0x3b7a4e['RmnKj'](_0x2efcbf,0xffffff))return Buffer[_0x31ac91(0x204)]([_0x3b7a4e[_0x31ac91(0x1c4)](_0x2efcbf>>0x10,0xff),_0x3b7a4e['ncled'](_0x2efcbf>>0x8,0xff),_0x2efcbf&0xff]);return Buffer[_0x31ac91(0x204)]([_0x3b7a4e[_0x31ac91(0x1d1)](_0x2efcbf,0x18)&0xff,_0x3b7a4e[_0x31ac91(0x1eb)](_0x3b7a4e[_0x31ac91(0x1d1)](_0x2efcbf,0x10),0xff),_0x2efcbf>>0x8&0xff,_0x3b7a4e['NBLVa'](_0x2efcbf,0xff)]);}function writeVint(_0x10bac8,_0x39b275){const _0x4e1473=_0x13ce,_0x453cab={'hIVAG':function(_0x33e563,_0x19205d){return _0x33e563<_0x19205d;},'shtSP':function(_0x1cbd46,_0x341f48){return _0x1cbd46*_0x341f48;},'cyZLm':function(_0x5e167a,_0x537143){return _0x5e167a/_0x537143;}};let _0x595f24=_0x39b275||0x1;while(_0x453cab['hIVAG'](Math[_0x4e1473(0x1fd)](0x2,_0x453cab['shtSP'](0x7,_0x595f24))-0x2,_0x10bac8))_0x595f24++;const _0x175fb1=Buffer['alloc'](_0x595f24);for(let _0x2893ec=_0x595f24-0x1;_0x2893ec>=0x0;_0x2893ec--){_0x175fb1[_0x2893ec]=_0x10bac8&0xff,_0x10bac8=Math[_0x4e1473(0x1ce)](_0x453cab['cyZLm'](_0x10bac8,0x100));}return _0x175fb1[0x0]|=0x1<<0x8-_0x595f24,_0x175fb1;}function writeFloat64(_0x3f79be){const _0x4ee774=_0x13ce,_0x222cbe=Buffer[_0x4ee774(0x1c7)](0x8);return _0x222cbe[_0x4ee774(0x1ec)](_0x3f79be,0x0),_0x222cbe;}function writeVoid(_0x11b533){const _0xa2d6a=_0x13ce,_0x570a17={'ENmeI':function(_0x2878a3,_0x377942){return _0x2878a3>=_0x377942;},'adpAf':function(_0x2815ad,_0x463c36,_0x3fbce9){return _0x2815ad(_0x463c36,_0x3fbce9);}};for(let _0x6354f8=0x1;_0x6354f8<=0x8;_0x6354f8++){const _0x59b9f9=_0x11b533-0x1-_0x6354f8;if(_0x570a17['ENmeI'](_0x59b9f9,0x0)&&_0x59b9f9<=Math[_0xa2d6a(0x1fd)](0x2,0x7*_0x6354f8)-0x2)return Buffer[_0xa2d6a(0x1e0)]([Buffer['from']([ID_VOID]),_0x570a17['adpAf'](writeVint,_0x59b9f9,_0x6354f8),Buffer[_0xa2d6a(0x1c7)](_0x59b9f9)]);}return Buffer['alloc'](0x0);}function findElement(_0x2e4b65,_0x47c3c6,_0x3e0893,_0x356549){const _0x214942=_0x13ce,_0x266819={'qNdPX':function(_0x5b1098,_0x547cb7){return _0x5b1098<_0x547cb7;},'sQmzD':function(_0x430a1b,_0x2b21e5,_0x5deb6f){return _0x430a1b(_0x2b21e5,_0x5deb6f);},'ystpk':function(_0x17b886,_0x59847c){return _0x17b886===_0x59847c;},'fuXXD':function(_0x415d49,_0x2b45ce){return _0x415d49+_0x2b45ce;}};let _0x249b7f=_0x47c3c6;while(_0x266819[_0x214942(0x1cc)](_0x249b7f,_0x3e0893)){const [_0x33845d,_0x227ad7]=_0x266819[_0x214942(0x1f2)](readId,_0x2e4b65,_0x249b7f),[_0x54e862,_0x26412a]=readVint(_0x2e4b65,_0x249b7f+_0x227ad7);if(_0x266819['ystpk'](_0x33845d,_0x356549))return{'offset':_0x249b7f,'idLen':_0x227ad7,'sizeLen':_0x26412a,'dataSize':_0x54e862,'dataOffset':_0x266819['fuXXD'](_0x249b7f+_0x227ad7,_0x26412a)};if(isUnknownSize(_0x54e862,_0x26412a))break;_0x249b7f+=_0x266819[_0x214942(0x1d8)](_0x266819[_0x214942(0x1d8)](_0x227ad7,_0x26412a),_0x54e862);}return null;}function computeDurationMs(_0x7ef5c,_0x372343){const _0xfd88d2=_0x13ce,_0x4b77ee={'sHaGo':function(_0x5cc404,_0x3fb1de){return _0x5cc404===_0x3fb1de;},'tJspJ':function(_0x118538,_0x54c95c,_0x1d73ea){return _0x118538(_0x54c95c,_0x1d73ea);},'JqRqS':function(_0x162f55,_0x24c75b){return _0x162f55!==_0x24c75b;},'SJTXI':function(_0x39ca21,_0x1725f0,_0x1df5a0){return _0x39ca21(_0x1725f0,_0x1df5a0);},'mmPBi':function(_0x5758ef,_0x464041){return _0x5758ef+_0x464041;},'jHRjw':function(_0x20e3d3,_0x104089){return _0x20e3d3+_0x104089;},'PzPnj':function(_0x1d6a2a,_0x49b0d2,_0x507dde){return _0x1d6a2a(_0x49b0d2,_0x507dde);},'vnEoI':function(_0x510a46,_0x2ce1cb){return _0x510a46-_0x2ce1cb;},'VyGJN':function(_0x57366f,_0x4f20c6,_0x28c535){return _0x57366f(_0x4f20c6,_0x28c535);},'GIfNX':function(_0x1df056,_0x102392){return _0x1df056<_0x102392;},'PzsMN':function(_0x138c0e,_0x8a4996,_0x7f4f35){return _0x138c0e(_0x8a4996,_0x7f4f35);},'xjYdC':function(_0xa428b6,_0x468117,_0x4d5615,_0x373d49){return _0xa428b6(_0x468117,_0x4d5615,_0x373d49);},'VpXdv':function(_0x44a1db,_0x415d7f){return _0x44a1db===_0x415d7f;},'QbAmp':function(_0x3a4b0b,_0x2b1225){return _0x3a4b0b+_0x2b1225;},'zDVXR':function(_0x3e1c76,_0x2f9840){return _0x3e1c76*_0x2f9840;},'BDLlH':function(_0x5cc192,_0x3ff2a0){return _0x5cc192+_0x3ff2a0;},'gGfbJ':function(_0x113624,_0x556310){return _0x113624>_0x556310;}};let _0x32ef0c=0x0;const _0x5dad2e=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x266cbe=_0x7ef5c[_0xfd88d2(0x1ca)](_0x5dad2e);if(_0x4b77ee['sHaGo'](_0x266cbe,-0x1))return 0x0;while(_0x266cbe<_0x7ef5c[_0xfd88d2(0x1de)]){const [_0x18eff8,_0x1228f4]=_0x4b77ee[_0xfd88d2(0x1e1)](readId,_0x7ef5c,_0x266cbe);if(_0x4b77ee[_0xfd88d2(0x206)](_0x18eff8,ID_CLUSTER))break;const [_0x198365,_0x286ccd]=_0x4b77ee['SJTXI'](readVint,_0x7ef5c,_0x4b77ee[_0xfd88d2(0x1ee)](_0x266cbe,_0x1228f4)),_0x4ae145=_0x4b77ee['jHRjw'](_0x266cbe,_0x1228f4)+_0x286ccd,_0x4d205b=_0x4b77ee['PzPnj'](isUnknownSize,_0x198365,_0x286ccd);let _0x58113b;if(_0x4d205b){let _0xe25237=_0x4ae145;while(_0xe25237<_0x4b77ee[_0xfd88d2(0x1ea)](_0x7ef5c[_0xfd88d2(0x1de)],0x4)){const [_0x513925,_0x21f277]=_0x4b77ee[_0xfd88d2(0x1e5)](readId,_0x7ef5c,_0xe25237);if(_0x513925===ID_CLUSTER){_0x58113b=_0xe25237;break;}const [_0x5d796b,_0x4f402b]=_0x4b77ee['VyGJN'](readVint,_0x7ef5c,_0xe25237+_0x21f277);if(isUnknownSize(_0x5d796b,_0x4f402b)){_0x58113b=_0x7ef5c[_0xfd88d2(0x1de)];break;}_0xe25237+=_0x4b77ee[_0xfd88d2(0x1ee)](_0x21f277,_0x4f402b)+_0x5d796b;}_0x58113b??=_0x7ef5c['length'];}else _0x58113b=_0x4ae145+_0x198365;let _0x5c486c=0x0,_0x4da107=_0x4ae145;while(_0x4b77ee[_0xfd88d2(0x1dd)](_0x4da107,_0x58113b)){const [_0x1a51b6,_0x53ff52]=_0x4b77ee[_0xfd88d2(0x1ed)](readId,_0x7ef5c,_0x4da107),[_0x2412e7,_0xbdd479]=readVint(_0x7ef5c,_0x4da107+_0x53ff52);if(_0x4b77ee['sHaGo'](_0x1a51b6,ID_TIMESTAMP))_0x5c486c=_0x4b77ee['xjYdC'](readUint,_0x7ef5c,_0x4b77ee[_0xfd88d2(0x1ee)](_0x4da107,_0x53ff52)+_0xbdd479,_0x2412e7);else{if(_0x4b77ee[_0xfd88d2(0x1f7)](_0x1a51b6,ID_SIMPLE_BLOCK)&&_0x2412e7>=0x4){const _0x8c91ec=_0x4b77ee[_0xfd88d2(0x1db)](_0x4da107,_0x53ff52)+_0xbdd479,[,_0x59f4c8]=_0x4b77ee['PzPnj'](readVint,_0x7ef5c,_0x8c91ec),_0x2c8fcc=_0x7ef5c['readInt16BE'](_0x8c91ec+_0x59f4c8),_0x9fad98=_0x4b77ee[_0xfd88d2(0x1fc)](_0x4b77ee[_0xfd88d2(0x1fa)](_0x5c486c,_0x2c8fcc),_0x372343)/0xf4240;_0x4b77ee['gGfbJ'](_0x9fad98,_0x32ef0c)&&(_0x32ef0c=_0x9fad98);}else{if(_0x1a51b6===ID_CLUSTER)break;}}if(_0x4b77ee['PzPnj'](isUnknownSize,_0x2412e7,_0xbdd479))break;_0x4da107+=_0x4b77ee[_0xfd88d2(0x1cb)](_0x53ff52,_0xbdd479)+_0x2412e7;}_0x266cbe=_0x58113b;}return _0x32ef0c;}export function fixWebmDuration(_0x4b2d02,_0x5bc208){const _0x2f5e8d=_0x13ce,_0x57bc31={'LSVwp':function(_0x43fecf,_0x1a6d5f,_0x95b1d3){return _0x43fecf(_0x1a6d5f,_0x95b1d3);},'tOIJD':function(_0x2b09a2,_0x21efa5){return _0x2b09a2+_0x21efa5;},'KjoxT':function(_0x3f408f,_0x11360){return _0x3f408f+_0x11360;},'uDmKi':function(_0x5b78f0,_0x3d34c6){return _0x5b78f0+_0x3d34c6;},'uSqAr':function(_0x57de0b,_0x58515c){return _0x57de0b===_0x58515c;},'uTdeI':function(_0x35f583,_0x28f337,_0x128fbf){return _0x35f583(_0x28f337,_0x128fbf);},'LMaGl':'Could\x20not\x20find\x20Info\x20element','otECg':function(_0x5be992,_0x6c9e09,_0x151ae6,_0x41d156,_0x27848e){return _0x5be992(_0x6c9e09,_0x151ae6,_0x41d156,_0x27848e);},'myRYr':function(_0x1cf904,_0x3a8c20){return _0x1cf904<=_0x3a8c20;},'dnDTM':_0x2f5e8d(0x1c8),'tOHZj':function(_0x577833,_0x229d6a){return _0x577833/_0x229d6a;},'BKwiW':function(_0x4f8f9e,_0x5ee0c0){return _0x4f8f9e*_0x5ee0c0;},'mPtNg':function(_0xe93eae,_0x72b91b){return _0xe93eae(_0x72b91b);},'TYLxQ':function(_0xf457d7,_0x4232c7){return _0xf457d7<_0x4232c7;},'OVpHA':function(_0xbccffd,_0x111c75){return _0xbccffd-_0x111c75;},'EDXvT':function(_0x4c49c0,_0x13d991,_0xb8efc2,_0x5a3b78,_0x4e99db,_0x303490,_0x1522e1){return _0x4c49c0(_0x13d991,_0xb8efc2,_0x5a3b78,_0x4e99db,_0x303490,_0x1522e1);}},_0x56e64e=readFileSync(_0x4b2d02);let _0x4cc4c0=0x0;const [_0x3b5efb,_0x3d17d1]=_0x57bc31['LSVwp'](readId,_0x56e64e,_0x4cc4c0),[_0x48b076,_0x6f86e5]=readVint(_0x56e64e,_0x57bc31[_0x2f5e8d(0x1fe)](_0x4cc4c0,_0x3d17d1));_0x4cc4c0+=_0x3d17d1+_0x6f86e5+_0x48b076;const [_0x5235e7,_0x3d0fa9]=readId(_0x56e64e,_0x4cc4c0);if(_0x5235e7!==ID_SEGMENT)return console[_0x2f5e8d(0x1d5)](_0x2f5e8d(0x1f1)),![];const [,_0x486265]=readVint(_0x56e64e,_0x57bc31['tOIJD'](_0x4cc4c0,_0x3d0fa9)),_0x17e5f1=_0x57bc31['KjoxT'](_0x57bc31['uDmKi'](_0x4cc4c0,_0x3d0fa9),_0x486265);let _0x4da7bb=_0x17e5f1;const _0x3ef588=Math[_0x2f5e8d(0x1d2)](_0x56e64e[_0x2f5e8d(0x1de)],_0x17e5f1+0x2710);let _0x50cb31=null,_0x5ee293=null;while(_0x4da7bb<_0x3ef588){const [_0xea69b1,_0x5e6332]=readId(_0x56e64e,_0x4da7bb),[_0x5b6d7a,_0x3f5544]=_0x57bc31[_0x2f5e8d(0x1dc)](readVint,_0x56e64e,_0x4da7bb+_0x5e6332);_0xea69b1===ID_VOID&&!_0x50cb31&&(_0x50cb31={'offset':_0x4da7bb,'idLen':_0x5e6332,'sizeLen':_0x3f5544,'dataSize':_0x5b6d7a,'dataOffset':_0x4da7bb+_0x5e6332+_0x3f5544});if(_0xea69b1===ID_INFO){_0x5ee293={'offset':_0x4da7bb,'idLen':_0x5e6332,'sizeLen':_0x3f5544,'dataSize':_0x5b6d7a,'dataOffset':_0x57bc31[_0x2f5e8d(0x1fe)](_0x4da7bb,_0x5e6332)+_0x3f5544};break;}if(_0x57bc31[_0x2f5e8d(0x1df)](_0xea69b1,ID_CLUSTER))break;if(_0x57bc31['uTdeI'](isUnknownSize,_0x5b6d7a,_0x3f5544))break;_0x4da7bb+=_0x5e6332+_0x3f5544+_0x5b6d7a;}if(!_0x5ee293)return console[_0x2f5e8d(0x1d5)](_0x57bc31[_0x2f5e8d(0x1c6)]),![];const _0x3bbce3=findElement(_0x56e64e,_0x5ee293['dataOffset'],_0x5ee293['dataOffset']+_0x5ee293['dataSize'],ID_DURATION);if(_0x3bbce3)return![];const _0x234594=_0x57bc31['otECg'](findElement,_0x56e64e,_0x5ee293[_0x2f5e8d(0x1e7)],_0x57bc31['tOIJD'](_0x5ee293['dataOffset'],_0x5ee293['dataSize']),ID_TIMESTAMP_SCALE);let _0x5ca8de=0xf4240;_0x234594&&(_0x5ca8de=readUint(_0x56e64e,_0x234594[_0x2f5e8d(0x1e7)],_0x234594['dataSize']));const _0x57fa7f=computeDurationMs(_0x56e64e,_0x5ca8de);if(_0x57bc31['myRYr'](_0x57fa7f,0x0))return console[_0x2f5e8d(0x1d5)](_0x57bc31[_0x2f5e8d(0x1e3)]),![];const _0x23fedc=_0x57bc31[_0x2f5e8d(0x200)](_0x57bc31['BKwiW'](_0x57fa7f,0xf4240),_0x5ca8de),_0x38ad3a=Buffer[_0x2f5e8d(0x1e0)]([_0x57bc31[_0x2f5e8d(0x1ff)](writeId,ID_DURATION),_0x57bc31['mPtNg'](writeVint,0x8),writeFloat64(_0x23fedc)]),_0x292f86=_0x38ad3a['length'];if(!_0x50cb31||_0x57bc31[_0x2f5e8d(0x1f6)](_0x50cb31[_0x2f5e8d(0x1d6)],_0x5ee293[_0x2f5e8d(0x1d6)])){if(_0x50cb31){const _0x1ffa82=_0x57bc31['tOIJD'](_0x50cb31[_0x2f5e8d(0x202)],_0x50cb31['sizeLen'])+_0x50cb31['dataSize'],_0x1076ff=_0x57bc31[_0x2f5e8d(0x1d0)](_0x1ffa82,_0x292f86);if(_0x1076ff<0x2)return _0x57bc31['EDXvT'](rewriteFile,_0x56e64e,_0x5ee293,_0x38ad3a,_0x5ca8de,_0x57fa7f,_0x5bc208);const _0x3fd5bd=_0x5ee293[_0x2f5e8d(0x1e9)]+_0x292f86,_0x144b54=Buffer[_0x2f5e8d(0x1e0)]([writeId(ID_INFO),_0x57bc31[_0x2f5e8d(0x1dc)](writeVint,_0x3fd5bd,_0x5ee293['sizeLen'])]),_0x36160a=_0x56e64e[_0x2f5e8d(0x1f9)](_0x5ee293['dataOffset'],_0x5ee293['dataOffset']+_0x5ee293['dataSize']),_0x11c234=_0x57bc31['mPtNg'](writeVoid,_0x1076ff),_0x3572ec=_0x56e64e[_0x2f5e8d(0x1f9)](0x0,_0x50cb31['offset']),_0x41788b=_0x56e64e[_0x2f5e8d(0x1f9)](_0x57bc31[_0x2f5e8d(0x1fe)](_0x5ee293[_0x2f5e8d(0x1e7)],_0x5ee293['dataSize']));return writeFileSync(_0x5bc208,Buffer['concat']([_0x3572ec,_0x11c234,_0x144b54,_0x36160a,_0x38ad3a,_0x41788b])),!![];}}return rewriteFile(_0x56e64e,_0x5ee293,_0x38ad3a,_0x5ca8de,_0x57fa7f,_0x5bc208);}function rewriteFile(_0x1ff065,_0x26181b,_0x496554,_0x35b655,_0x408472,_0xe91a34){const _0x15b7ef=_0x13ce,_0x431232={'hywNv':function(_0x188fee,_0x28937a){return _0x188fee+_0x28937a;},'CpSoW':function(_0x5c2fc5,_0x5de802){return _0x5c2fc5(_0x5de802);},'eshXa':function(_0x34d62d,_0x1f61bf){return _0x34d62d+_0x1f61bf;},'goprl':function(_0xf561f,_0x3b8617){return _0xf561f+_0x3b8617;},'LeNVi':function(_0x59699f,_0x37624d,_0x9f6bf5){return _0x59699f(_0x37624d,_0x9f6bf5);}},_0x1deab8=_0x431232['hywNv'](_0x26181b['dataSize'],_0x496554['length']),_0x4d8524=Buffer['concat']([writeId(ID_INFO),_0x431232['CpSoW'](writeVint,_0x1deab8)]),_0x2f52bd=_0x26181b['idLen']+_0x26181b['sizeLen'],_0x5889a2=_0x1ff065['slice'](0x0,_0x26181b['offset']),_0x136b0d=_0x1ff065['slice'](_0x26181b['dataOffset'],_0x26181b['dataOffset']+_0x26181b['dataSize']),_0x3f0c9a=_0x1ff065[_0x15b7ef(0x1f9)](_0x431232['eshXa'](_0x431232['goprl'](_0x26181b[_0x15b7ef(0x1d6)],_0x2f52bd),_0x26181b['dataSize']));return _0x431232['LeNVi'](writeFileSync,_0xe91a34,Buffer[_0x15b7ef(0x1e0)]([_0x5889a2,_0x4d8524,_0x136b0d,_0x496554,_0x3f0c9a])),!![];}if(process['argv'][0x1]?.[_0x22bc39(0x1da)]('fixWebmDuration.ts')||process[_0x22bc39(0x1f0)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error'](_0x22bc39(0x1fb)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x22bc39(0x1f8)](_0x22bc39(0x205)+output):console['log'](_0x22bc39(0x1cd));}
|
|
1
|
+
const _0x515df6=_0x3e76;(function(_0x354583,_0x5b463d){const _0x1fe0c2=_0x3e76,_0x2d583f=_0x354583();while(!![]){try{const _0x5b308d=parseInt(_0x1fe0c2(0xbc))/0x1*(parseInt(_0x1fe0c2(0xcd))/0x2)+-parseInt(_0x1fe0c2(0xe3))/0x3+parseInt(_0x1fe0c2(0xf2))/0x4+parseInt(_0x1fe0c2(0xca))/0x5+-parseInt(_0x1fe0c2(0xec))/0x6+parseInt(_0x1fe0c2(0xde))/0x7*(parseInt(_0x1fe0c2(0xe2))/0x8)+-parseInt(_0x1fe0c2(0xbe))/0x9;if(_0x5b308d===_0x5b463d)break;else _0x2d583f['push'](_0x2d583f['shift']());}catch(_0x1cea51){_0x2d583f['push'](_0x2d583f['shift']());}}}(_0x4e1d,0x99557));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(_0x240499,_0x48fdad){const _0x100e43=_0x3e76,_0x117bf4={'iTaAR':function(_0x3e31d6,_0x1d8c49){return _0x3e31d6&_0x1d8c49;},'bttjd':function(_0x1805fb,_0x1a3ef2){return _0x1805fb<_0x1a3ef2;},'MNbdc':function(_0x34e2ea,_0x4f310c){return _0x34e2ea+_0x4f310c;},'wsRtJ':function(_0x40a00a,_0x531de3){return _0x40a00a*_0x531de3;}};if(_0x48fdad>=_0x240499['length'])return[0x0,0x0];const _0x1f7793=_0x240499[_0x48fdad];let _0x13e89d=0x1,_0x59f77b=0x80;while(_0x13e89d<=0x8&&!(_0x1f7793&_0x59f77b)){_0x13e89d++,_0x59f77b>>=0x1;}if(_0x48fdad+_0x13e89d>_0x240499['length'])return[0x0,0x0];let _0x4d17ee=_0x117bf4[_0x100e43(0xb8)](_0x1f7793,_0x59f77b-0x1);for(let _0x3de797=0x1;_0x117bf4['bttjd'](_0x3de797,_0x13e89d);_0x3de797++){_0x4d17ee=_0x117bf4[_0x100e43(0xd4)](_0x117bf4['wsRtJ'](_0x4d17ee,0x100),_0x240499[_0x48fdad+_0x3de797]);}return[_0x4d17ee,_0x13e89d];}function readId(_0x497d76,_0x18c179){const _0xb57b6b=_0x3e76,_0x3c4ea5={'KArBU':function(_0x29bb15,_0x56a4d8){return _0x29bb15>=_0x56a4d8;},'pioys':function(_0x556640,_0x48cac0){return _0x556640>=_0x48cac0;},'VRYuF':function(_0x92fd4f,_0x371bb9){return _0x92fd4f+_0x371bb9;},'xqxos':function(_0x308718,_0x586f03){return _0x308718*_0x586f03;}};if(_0x18c179>=_0x497d76['length'])return[0x0,0x0];const _0x6f3728=_0x497d76[_0x18c179];let _0x1bf76b;if(_0x3c4ea5[_0xb57b6b(0xe0)](_0x6f3728,0x80))_0x1bf76b=0x1;else{if(_0x3c4ea5[_0xb57b6b(0xef)](_0x6f3728,0x40))_0x1bf76b=0x2;else{if(_0x6f3728>=0x20)_0x1bf76b=0x3;else{if(_0x6f3728>=0x10)_0x1bf76b=0x4;else return[_0x6f3728,0x1];}}}if(_0x3c4ea5['VRYuF'](_0x18c179,_0x1bf76b)>_0x497d76[_0xb57b6b(0xdb)])return[0x0,0x0];let _0x364806=0x0;for(let _0x4edd84=0x0;_0x4edd84<_0x1bf76b;_0x4edd84++){_0x364806=_0x3c4ea5['xqxos'](_0x364806,0x100)+_0x497d76[_0x18c179+_0x4edd84];}return[_0x364806,_0x1bf76b];}function readUint(_0x1bd445,_0x42eaee,_0x5ab5bf){const _0x153213=_0x3e76,_0x75cf37={'FdjJn':function(_0x263cec,_0x9b3581){return _0x263cec<_0x9b3581;},'LNNYE':function(_0xb03eac,_0xf5ac56){return _0xb03eac+_0xf5ac56;},'WPswV':function(_0x179855,_0x387898){return _0x179855*_0x387898;},'TmUhj':function(_0x3f2eff,_0x208bc8){return _0x3f2eff+_0x208bc8;}};let _0x394cba=0x0;for(let _0x470fbb=0x0;_0x75cf37[_0x153213(0xd2)](_0x470fbb,_0x5ab5bf);_0x470fbb++){_0x394cba=_0x75cf37['LNNYE'](_0x75cf37[_0x153213(0xcf)](_0x394cba,0x100),_0x1bd445[_0x75cf37['TmUhj'](_0x42eaee,_0x470fbb)]);}return _0x394cba;}function isUnknownSize(_0x32c126,_0x1ec242){const _0x2e5e6b={'DWpfI':function(_0xc2d054,_0x599ce4){return _0xc2d054-_0x599ce4;}};return _0x32c126===_0x2e5e6b['DWpfI'](Math['pow'](0x2,0x7*_0x1ec242),0x1);}function writeId(_0x3f3df3){const _0x33bd8f=_0x3e76,_0x321a9a={'yRQXD':function(_0xca6d6f,_0x1eff96){return _0xca6d6f<=_0x1eff96;},'AIhpk':function(_0x118f61,_0x39a1ef){return _0x118f61&_0x39a1ef;},'abnJe':function(_0x6ab1f8,_0x4b3d0c){return _0x6ab1f8>>_0x4b3d0c;},'fiiYV':function(_0x5b8e58,_0xcee8d9){return _0x5b8e58>>_0xcee8d9;},'oMyLr':function(_0x123d18,_0x59a3c4){return _0x123d18&_0x59a3c4;},'FLfyY':function(_0x5c360e,_0x36f5e9){return _0x5c360e>>_0x36f5e9;},'fMUWW':function(_0x3038e5,_0x55ce60){return _0x3038e5&_0x55ce60;}};if(_0x321a9a['yRQXD'](_0x3f3df3,0xff))return Buffer[_0x33bd8f(0xe6)]([_0x3f3df3]);if(_0x3f3df3<=0xffff)return Buffer['from']([_0x321a9a[_0x33bd8f(0xfa)](_0x321a9a[_0x33bd8f(0xc6)](_0x3f3df3,0x8),0xff),_0x3f3df3&0xff]);if(_0x3f3df3<=0xffffff)return Buffer['from']([_0x321a9a['fiiYV'](_0x3f3df3,0x10)&0xff,_0x321a9a[_0x33bd8f(0xf0)](_0x321a9a[_0x33bd8f(0xe5)](_0x3f3df3,0x8),0xff),_0x321a9a['oMyLr'](_0x3f3df3,0xff)]);return Buffer['from']([_0x3f3df3>>0x18&0xff,_0x3f3df3>>0x10&0xff,_0x321a9a[_0x33bd8f(0xf7)](_0x3f3df3>>0x8,0xff),_0x3f3df3&0xff]);}function writeVint(_0x4783b5,_0x5f4f01){const _0x528367=_0x3e76,_0x5cbaae={'KKcgB':function(_0x50b6d1,_0x3ee548){return _0x50b6d1<_0x3ee548;},'VEAaf':function(_0x33f029,_0x35f05d){return _0x33f029*_0x35f05d;},'TlLTw':function(_0x11ac9c,_0x5cfedf){return _0x11ac9c/_0x5cfedf;},'ZymHu':function(_0x257a0f,_0x4b8023){return _0x257a0f<<_0x4b8023;},'oktiD':function(_0x483979,_0x182c6c){return _0x483979-_0x182c6c;}};let _0x192009=_0x5f4f01||0x1;while(_0x5cbaae[_0x528367(0xd5)](Math[_0x528367(0xc8)](0x2,_0x5cbaae['VEAaf'](0x7,_0x192009))-0x2,_0x4783b5))_0x192009++;const _0x422f69=Buffer['alloc'](_0x192009);for(let _0x38fc88=_0x192009-0x1;_0x38fc88>=0x0;_0x38fc88--){_0x422f69[_0x38fc88]=_0x4783b5&0xff,_0x4783b5=Math['floor'](_0x5cbaae['TlLTw'](_0x4783b5,0x100));}return _0x422f69[0x0]|=_0x5cbaae['ZymHu'](0x1,_0x5cbaae['oktiD'](0x8,_0x192009)),_0x422f69;}function writeFloat64(_0xf5ada2){const _0x985f39=Buffer['alloc'](0x8);return _0x985f39['writeDoubleBE'](_0xf5ada2,0x0),_0x985f39;}function writeVoid(_0x2b8cf3){const _0x3eb9a9=_0x3e76,_0x472ea9={'MLdEv':function(_0x13c36b,_0x267457){return _0x13c36b<=_0x267457;},'kfxpe':function(_0x4980f1,_0x2bb824){return _0x4980f1-_0x2bb824;}};for(let _0x419600=0x1;_0x472ea9['MLdEv'](_0x419600,0x8);_0x419600++){const _0x28a701=_0x472ea9['kfxpe'](_0x2b8cf3-0x1,_0x419600);if(_0x28a701>=0x0&&_0x28a701<=_0x472ea9[_0x3eb9a9(0xf6)](Math['pow'](0x2,0x7*_0x419600),0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x28a701,_0x419600),Buffer['alloc'](_0x28a701)]);}return Buffer['alloc'](0x0);}function findElement(_0x2c3ce0,_0x3aa4cd,_0x5e5494,_0x2e3125){const _0x367d53=_0x3e76,_0x4548ab={'SXNsK':function(_0xd04695,_0x4c263a,_0x5c3f9e){return _0xd04695(_0x4c263a,_0x5c3f9e);},'kjQnp':function(_0x3a441b,_0x2e983a){return _0x3a441b===_0x2e983a;},'CmaWl':function(_0x390f25,_0x400f8a){return _0x390f25+_0x400f8a;},'HgZhW':function(_0x334232,_0x187a1a){return _0x334232+_0x187a1a;}};let _0x49b599=_0x3aa4cd;while(_0x49b599<_0x5e5494){const [_0x5dc1ae,_0x4c7175]=_0x4548ab['SXNsK'](readId,_0x2c3ce0,_0x49b599),[_0x301c3e,_0x44312b]=readVint(_0x2c3ce0,_0x49b599+_0x4c7175);if(_0x4548ab['kjQnp'](_0x5dc1ae,_0x2e3125))return{'offset':_0x49b599,'idLen':_0x4c7175,'sizeLen':_0x44312b,'dataSize':_0x301c3e,'dataOffset':_0x4548ab[_0x367d53(0xee)](_0x49b599,_0x4c7175)+_0x44312b};if(isUnknownSize(_0x301c3e,_0x44312b))break;_0x49b599+=_0x4548ab[_0x367d53(0xf4)](_0x4c7175+_0x44312b,_0x301c3e);}return null;}function _0x4e1d(){const _0x5a17f6=['pioys','oMyLr','dataOffset','2337552TxwGoA','slice','HgZhW','Fixed:\x20','kfxpe','fMUWW','tLPam','EXYLk','AIhpk','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','iTaAR','oXRnq','niBOl','SuUxg','1jqSbBc','fixWebmDuration.js','5658768mLPHgf','ilEMS','offset','zVHoK','cqSDe','QDsZi','log','error','abnJe','lzLgv','pow','BSjJn','2492315CbcWhg','concat','ZjWLQ','141858FrZjDR','dataSize','WPswV','ABSfN','WwVaZ','FdjJn','kIPzi','MNbdc','KKcgB','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','sizeLen','wpVgP','pOrAP','argv','length','ULBjk','sTelb','49TYQtGl','idLen','KArBU','hLGZR','939128kbRllC','1878456KvpWEH','endsWith','FLfyY','from','XEHeQ','FMZCn','OVVWL','fixWebmDuration.ts','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','555348AMmxYE','Could\x20not\x20compute\x20duration','CmaWl'];_0x4e1d=function(){return _0x5a17f6;};return _0x4e1d();}function _0x3e76(_0x3cb12b,_0x293b4b){_0x3cb12b=_0x3cb12b-0xb7;const _0x4e1d2d=_0x4e1d();let _0x3e76f9=_0x4e1d2d[_0x3cb12b];return _0x3e76f9;}function computeDurationMs(_0x500417,_0x32ff5e){const _0x552b59=_0x3e76,_0x4055bc={'EXYLk':function(_0x4e8ff1,_0x3760c2){return _0x4e8ff1===_0x3760c2;},'QDsZi':function(_0x599eee,_0x3ced5f){return _0x599eee<_0x3ced5f;},'sTelb':function(_0xd013d5,_0x595b35,_0x30c773){return _0xd013d5(_0x595b35,_0x30c773);},'cqSDe':function(_0xa887fa,_0x4c7171){return _0xa887fa+_0x4c7171;},'oXRnq':function(_0x24b1df,_0x2ded3c){return _0x24b1df+_0x2ded3c;},'lMGSS':function(_0x428721,_0x3e8b57){return _0x428721-_0x3e8b57;},'OVVWL':function(_0x25d307,_0x324f3b){return _0x25d307===_0x324f3b;},'yYLNg':function(_0x394505,_0x3c6c56,_0x4d9cd8){return _0x394505(_0x3c6c56,_0x4d9cd8);},'niBOl':function(_0xa32b8,_0x354e7e){return _0xa32b8<_0x354e7e;},'ULBjk':function(_0x4a9c22,_0x43a5fc){return _0x4a9c22+_0x43a5fc;},'kYDaQ':function(_0x22a717,_0x2fd0e0){return _0x22a717===_0x2fd0e0;},'tKOeL':function(_0x5fc064,_0x29faa0){return _0x5fc064>=_0x29faa0;},'WwVaZ':function(_0x5e79b3,_0x939114,_0x20d50a){return _0x5e79b3(_0x939114,_0x20d50a);},'XVLaP':function(_0x329de7,_0x367d05){return _0x329de7/_0x367d05;},'ABSfN':function(_0x1a1626,_0x19a7c5){return _0x1a1626*_0x19a7c5;}};let _0x56ceb5=0x0;const _0x2cf55b=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x4c9671=_0x500417['indexOf'](_0x2cf55b);if(_0x4055bc[_0x552b59(0xf9)](_0x4c9671,-0x1))return 0x0;while(_0x4055bc[_0x552b59(0xc3)](_0x4c9671,_0x500417['length'])){const [_0x1e5442,_0x5dc426]=readId(_0x500417,_0x4c9671);if(_0x1e5442!==ID_CLUSTER)break;const [_0x27dde7,_0x20dcc9]=_0x4055bc[_0x552b59(0xdd)](readVint,_0x500417,_0x4055bc[_0x552b59(0xc2)](_0x4c9671,_0x5dc426)),_0x10baa9=_0x4055bc[_0x552b59(0xb9)](_0x4c9671,_0x5dc426)+_0x20dcc9,_0x555c4e=_0x4055bc[_0x552b59(0xdd)](isUnknownSize,_0x27dde7,_0x20dcc9);let _0x115be3;if(_0x555c4e){let _0x57909f=_0x10baa9;while(_0x4055bc[_0x552b59(0xc3)](_0x57909f,_0x4055bc['lMGSS'](_0x500417[_0x552b59(0xdb)],0x4))){const [_0x374444,_0x2efcdf]=readId(_0x500417,_0x57909f);if(_0x4055bc[_0x552b59(0xe9)](_0x374444,ID_CLUSTER)){_0x115be3=_0x57909f;break;}const [_0x40eddb,_0x3eec13]=_0x4055bc['yYLNg'](readVint,_0x500417,_0x4055bc['cqSDe'](_0x57909f,_0x2efcdf));if(isUnknownSize(_0x40eddb,_0x3eec13)){_0x115be3=_0x500417['length'];break;}_0x57909f+=_0x4055bc['cqSDe'](_0x2efcdf+_0x3eec13,_0x40eddb);}_0x115be3??=_0x500417[_0x552b59(0xdb)];}else _0x115be3=_0x10baa9+_0x27dde7;let _0x55b75d=0x0,_0x10c264=_0x10baa9;while(_0x4055bc[_0x552b59(0xba)](_0x10c264,_0x115be3)){const [_0xa3b111,_0x2aeaf4]=readId(_0x500417,_0x10c264),[_0x1c2791,_0x2f392e]=_0x4055bc['sTelb'](readVint,_0x500417,_0x4055bc[_0x552b59(0xdc)](_0x10c264,_0x2aeaf4));if(_0xa3b111===ID_TIMESTAMP)_0x55b75d=readUint(_0x500417,_0x10c264+_0x2aeaf4+_0x2f392e,_0x1c2791);else{if(_0x4055bc['kYDaQ'](_0xa3b111,ID_SIMPLE_BLOCK)&&_0x4055bc['tKOeL'](_0x1c2791,0x4)){const _0x2fcb67=_0x4055bc[_0x552b59(0xc2)](_0x10c264+_0x2aeaf4,_0x2f392e),[,_0x43827b]=_0x4055bc[_0x552b59(0xd1)](readVint,_0x500417,_0x2fcb67),_0xb8edd0=_0x500417['readInt16BE'](_0x4055bc['oXRnq'](_0x2fcb67,_0x43827b)),_0x12f5d5=_0x4055bc['XVLaP'](_0x4055bc[_0x552b59(0xd0)](_0x4055bc['cqSDe'](_0x55b75d,_0xb8edd0),_0x32ff5e),0xf4240);_0x12f5d5>_0x56ceb5&&(_0x56ceb5=_0x12f5d5);}else{if(_0x4055bc[_0x552b59(0xf9)](_0xa3b111,ID_CLUSTER))break;}}if(_0x4055bc[_0x552b59(0xdd)](isUnknownSize,_0x1c2791,_0x2f392e))break;_0x10c264+=_0x4055bc['oXRnq'](_0x4055bc['cqSDe'](_0x2aeaf4,_0x2f392e),_0x1c2791);}_0x4c9671=_0x115be3;}return _0x56ceb5;}export function fixWebmDuration(_0x3aff31,_0x44053d){const _0xfe6fa9=_0x3e76,_0x185351={'hLGZR':function(_0x31d85d,_0x13b760){return _0x31d85d(_0x13b760);},'wpVgP':function(_0x156996,_0x7bb234,_0x2db6bd){return _0x156996(_0x7bb234,_0x2db6bd);},'ilEMS':function(_0x29d274,_0x10cd63){return _0x29d274+_0x10cd63;},'ZjWLQ':_0xfe6fa9(0xb7),'lzLgv':function(_0x3ccff8,_0x4554bd){return _0x3ccff8<_0x4554bd;},'cSVuC':function(_0x33b5fe,_0x5b4e8f){return _0x33b5fe+_0x5b4e8f;},'yvpTv':function(_0x56225c,_0x504e8e){return _0x56225c===_0x504e8e;},'zVHoK':function(_0x554aaf,_0x656fc0){return _0x554aaf+_0x656fc0;},'kIPzi':function(_0x473e28,_0x3fe471){return _0x473e28===_0x3fe471;},'ngWaA':function(_0x1e303a,_0x83cc62){return _0x1e303a+_0x83cc62;},'FMZCn':function(_0x1ac731,_0x4402a1){return _0x1ac731+_0x4402a1;},'NJbsW':function(_0x2d057a,_0xc88d84){return _0x2d057a+_0xc88d84;},'XEHeQ':function(_0x2704ff,_0x3f901e,_0x2d24f2,_0x5491db,_0x15e1b2){return _0x2704ff(_0x3f901e,_0x2d24f2,_0x5491db,_0x15e1b2);},'bydoS':function(_0x187cf1,_0x1e6c77){return _0x187cf1+_0x1e6c77;},'pOrAP':function(_0x1f60bd,_0x46e376,_0x36e996,_0x114299){return _0x1f60bd(_0x46e376,_0x36e996,_0x114299);},'nKsXI':function(_0xb2df93,_0x3c7635){return _0xb2df93<=_0x3c7635;},'eRweM':_0xfe6fa9(0xed),'tLRjY':function(_0x473d9e,_0x2452c2){return _0x473d9e/_0x2452c2;},'prwTi':function(_0x2a7da5,_0x5508e0){return _0x2a7da5(_0x5508e0);},'EgYAh':function(_0x38b383,_0x58d0dd){return _0x38b383-_0x58d0dd;},'zqecB':function(_0x8fdcac,_0x2fa107,_0x227cd1,_0x184f2f,_0x36e818,_0x2355a2,_0x284ac5){return _0x8fdcac(_0x2fa107,_0x227cd1,_0x184f2f,_0x36e818,_0x2355a2,_0x284ac5);},'vVRim':function(_0x4bf05d,_0x5c9261){return _0x4bf05d(_0x5c9261);},'tLPam':function(_0x3ee888,_0x2de90d){return _0x3ee888+_0x2de90d;},'knNSj':function(_0x11f875,_0x5f39ca){return _0x11f875(_0x5f39ca);}},_0x5bf75e=_0x185351[_0xfe6fa9(0xe1)](readFileSync,_0x3aff31);let _0x57347c=0x0;const [_0x263af5,_0x375649]=_0x185351[_0xfe6fa9(0xd8)](readId,_0x5bf75e,_0x57347c),[_0x2ee019,_0x967336]=_0x185351[_0xfe6fa9(0xd8)](readVint,_0x5bf75e,_0x185351['ilEMS'](_0x57347c,_0x375649));_0x57347c+=_0x185351['ilEMS'](_0x185351['ilEMS'](_0x375649,_0x967336),_0x2ee019);const [_0x36f9c4,_0x48e95b]=readId(_0x5bf75e,_0x57347c);if(_0x36f9c4!==ID_SEGMENT)return console['error'](_0x185351[_0xfe6fa9(0xcc)]),![];const [,_0x15335f]=_0x185351['wpVgP'](readVint,_0x5bf75e,_0x185351[_0xfe6fa9(0xbf)](_0x57347c,_0x48e95b)),_0x4c67ff=_0x57347c+_0x48e95b+_0x15335f;let _0x61361=_0x4c67ff;const _0x277675=Math['min'](_0x5bf75e['length'],_0x4c67ff+0x2710);let _0xce9d6d=null,_0x3b244f=null;while(_0x185351[_0xfe6fa9(0xc7)](_0x61361,_0x277675)){const [_0x44b309,_0x4ab9ec]=readId(_0x5bf75e,_0x61361),[_0x7cc611,_0x181ac7]=readVint(_0x5bf75e,_0x185351['cSVuC'](_0x61361,_0x4ab9ec));_0x185351['yvpTv'](_0x44b309,ID_VOID)&&!_0xce9d6d&&(_0xce9d6d={'offset':_0x61361,'idLen':_0x4ab9ec,'sizeLen':_0x181ac7,'dataSize':_0x7cc611,'dataOffset':_0x185351[_0xfe6fa9(0xc1)](_0x61361+_0x4ab9ec,_0x181ac7)});if(_0x185351[_0xfe6fa9(0xd3)](_0x44b309,ID_INFO)){_0x3b244f={'offset':_0x61361,'idLen':_0x4ab9ec,'sizeLen':_0x181ac7,'dataSize':_0x7cc611,'dataOffset':_0x185351['ngWaA'](_0x185351[_0xfe6fa9(0xbf)](_0x61361,_0x4ab9ec),_0x181ac7)};break;}if(_0x44b309===ID_CLUSTER)break;if(isUnknownSize(_0x7cc611,_0x181ac7))break;_0x61361+=_0x185351[_0xfe6fa9(0xe8)](_0x185351['NJbsW'](_0x4ab9ec,_0x181ac7),_0x7cc611);}if(!_0x3b244f)return console[_0xfe6fa9(0xc5)]('Could\x20not\x20find\x20Info\x20element'),![];const _0x546016=_0x185351[_0xfe6fa9(0xe7)](findElement,_0x5bf75e,_0x3b244f[_0xfe6fa9(0xf1)],_0x185351[_0xfe6fa9(0xbf)](_0x3b244f['dataOffset'],_0x3b244f['dataSize']),ID_DURATION);if(_0x546016)return![];const _0x50c06b=findElement(_0x5bf75e,_0x3b244f[_0xfe6fa9(0xf1)],_0x185351['bydoS'](_0x3b244f[_0xfe6fa9(0xf1)],_0x3b244f['dataSize']),ID_TIMESTAMP_SCALE);let _0xb8a733=0xf4240;_0x50c06b&&(_0xb8a733=_0x185351[_0xfe6fa9(0xd9)](readUint,_0x5bf75e,_0x50c06b['dataOffset'],_0x50c06b[_0xfe6fa9(0xce)]));const _0x52f9b6=_0x185351[_0xfe6fa9(0xd8)](computeDurationMs,_0x5bf75e,_0xb8a733);if(_0x185351['nKsXI'](_0x52f9b6,0x0))return console['error'](_0x185351['eRweM']),![];const _0x4129a2=_0x185351['tLRjY'](_0x52f9b6*0xf4240,_0xb8a733),_0x2fe38c=Buffer[_0xfe6fa9(0xcb)]([writeId(ID_DURATION),writeVint(0x8),_0x185351['prwTi'](writeFloat64,_0x4129a2)]),_0x3956ee=_0x2fe38c[_0xfe6fa9(0xdb)];if(!_0xce9d6d||_0xce9d6d['offset']<_0x3b244f[_0xfe6fa9(0xc0)]){if(_0xce9d6d){const _0x4fd19d=_0x185351['NJbsW'](_0xce9d6d['idLen']+_0xce9d6d[_0xfe6fa9(0xd7)],_0xce9d6d[_0xfe6fa9(0xce)]),_0x2b5cbe=_0x185351['EgYAh'](_0x4fd19d,_0x3956ee);if(_0x2b5cbe<0x2)return _0x185351['zqecB'](rewriteFile,_0x5bf75e,_0x3b244f,_0x2fe38c,_0xb8a733,_0x52f9b6,_0x44053d);const _0x55b2e4=_0x3b244f[_0xfe6fa9(0xce)]+_0x3956ee,_0x31186d=Buffer['concat']([_0x185351['vVRim'](writeId,ID_INFO),writeVint(_0x55b2e4,_0x3b244f['sizeLen'])]),_0x586485=_0x5bf75e[_0xfe6fa9(0xf3)](_0x3b244f[_0xfe6fa9(0xf1)],_0x185351[_0xfe6fa9(0xf8)](_0x3b244f[_0xfe6fa9(0xf1)],_0x3b244f['dataSize'])),_0x1dd2be=_0x185351['knNSj'](writeVoid,_0x2b5cbe),_0x438e8d=_0x5bf75e['slice'](0x0,_0xce9d6d['offset']),_0x32291c=_0x5bf75e['slice'](_0x185351['NJbsW'](_0x3b244f['dataOffset'],_0x3b244f[_0xfe6fa9(0xce)]));return writeFileSync(_0x44053d,Buffer['concat']([_0x438e8d,_0x1dd2be,_0x31186d,_0x586485,_0x2fe38c,_0x32291c])),!![];}}return _0x185351['zqecB'](rewriteFile,_0x5bf75e,_0x3b244f,_0x2fe38c,_0xb8a733,_0x52f9b6,_0x44053d);}function rewriteFile(_0x21d05f,_0x1987e4,_0x37132d,_0x442000,_0x3cd868,_0x4d8712){const _0x48f773=_0x3e76,_0x36a348={'ePolb':function(_0x2b969e,_0x1a489c){return _0x2b969e(_0x1a489c);},'BSjJn':function(_0x33bf31,_0x39a22a){return _0x33bf31(_0x39a22a);},'SuUxg':function(_0x449303,_0x3a24f0){return _0x449303+_0x3a24f0;}},_0x38a31a=_0x1987e4[_0x48f773(0xce)]+_0x37132d[_0x48f773(0xdb)],_0x4f2252=Buffer[_0x48f773(0xcb)]([_0x36a348['ePolb'](writeId,ID_INFO),_0x36a348[_0x48f773(0xc9)](writeVint,_0x38a31a)]),_0x17f3b5=_0x1987e4[_0x48f773(0xdf)]+_0x1987e4['sizeLen'],_0x56444e=_0x21d05f[_0x48f773(0xf3)](0x0,_0x1987e4[_0x48f773(0xc0)]),_0x2650b7=_0x21d05f['slice'](_0x1987e4[_0x48f773(0xf1)],_0x36a348[_0x48f773(0xbb)](_0x1987e4['dataOffset'],_0x1987e4[_0x48f773(0xce)])),_0x1931be=_0x21d05f['slice'](_0x36a348['SuUxg'](_0x1987e4[_0x48f773(0xc0)],_0x17f3b5)+_0x1987e4['dataSize']);return writeFileSync(_0x4d8712,Buffer['concat']([_0x56444e,_0x4f2252,_0x2650b7,_0x37132d,_0x1931be])),!![];}if(process[_0x515df6(0xda)][0x1]?.[_0x515df6(0xe4)](_0x515df6(0xea))||process['argv'][0x1]?.[_0x515df6(0xe4)](_0x515df6(0xbd))){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error'](_0x515df6(0xeb)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x515df6(0xc4)](_0x515df6(0xf5)+output):console[_0x515df6(0xc4)](_0x515df6(0xd6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x505d02,_0x378d41){const _0x15b3ec=_0x1405,_0xaedbae=_0x505d02();while(!![]){try{const _0x376725=-parseInt(_0x15b3ec(0x193))/0x1+-parseInt(_0x15b3ec(0x18b))/0x2*(-parseInt(_0x15b3ec(0x18a))/0x3)+-parseInt(_0x15b3ec(0x18f))/0x4+parseInt(_0x15b3ec(0x190))/0x5*(-parseInt(_0x15b3ec(0x18c))/0x6)+-parseInt(_0x15b3ec(0x191))/0x7*(parseInt(_0x15b3ec(0x195))/0x8)+parseInt(_0x15b3ec(0x18e))/0x9+parseInt(_0x15b3ec(0x194))/0xa;if(_0x376725===_0x378d41)break;else _0xaedbae['push'](_0xaedbae['shift']());}catch(_0xa173ca){_0xaedbae['push'](_0xaedbae['shift']());}}}(_0x4b48,0xbe501));import{execFile as _0x167a19}from'child_process';import{promisify}from'util';function _0x1405(_0x139dec,_0x53772f){_0x139dec=_0x139dec-0x18a;const _0x4b484e=_0x4b48();let _0x1405b0=_0x4b484e[_0x139dec];return _0x1405b0;}const execFile=promisify(_0x167a19);function _0x4b48(){const _0x355f84=['13605jTZJPV','430xSMjNC','1632pAKWuO','--error-unmatch','9880767RIGcFJ','725360kXctoU','1685khKhzE','4908029jfqSMd','git','923551ZHsHkA','13054820UZGhBc','16iDObgv','ls-files'];_0x4b48=function(){return _0x355f84;};return _0x4b48();}export async function isPathGitTracked(_0x384356){const _0x47e311=_0x1405,_0x45d93d={'wTypy':_0x47e311(0x18d)};try{return await execFile(_0x47e311(0x192),[_0x47e311(0x196),_0x45d93d['wTypy'],_0x384356],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x72d41a=_0x5d0c;(function(_0x1e8dd2,_0x443562){const _0xa79f8d=_0x5d0c,_0x5bb290=_0x1e8dd2();while(!![]){try{const _0x3749ce=-parseInt(_0xa79f8d(0x1ee))/0x1*(-parseInt(_0xa79f8d(0x1f3))/0x2)+-parseInt(_0xa79f8d(0x208))/0x3+parseInt(_0xa79f8d(0x1fe))/0x4*(parseInt(_0xa79f8d(0x1c7))/0x5)+-parseInt(_0xa79f8d(0x1ba))/0x6*(-parseInt(_0xa79f8d(0x1b7))/0x7)+-parseInt(_0xa79f8d(0x1d2))/0x8*(parseInt(_0xa79f8d(0x201))/0x9)+parseInt(_0xa79f8d(0x1b4))/0xa+-parseInt(_0xa79f8d(0x1e6))/0xb*(parseInt(_0xa79f8d(0x1e8))/0xc);if(_0x3749ce===_0x443562)break;else _0x5bb290['push'](_0x5bb290['shift']());}catch(_0x5987db){_0x5bb290['push'](_0x5bb290['shift']());}}}(_0x451c,0xc5082));function _0x451c(){const _0x3a463a=['mJbbANvIAuC','zvzUr2q','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','mZqXmxLSDNzxDq','zw52','kcGOlISPkYKRksSK','uxDvwvu','CgnRv1e','EvfPwMW','D3DyqK8','mZq2ntu5mwr6wg5nuG','yLz1zui','yuDlDwS','Euz4sge','tMvACKe','yxbWBhK','EuH2yMC','y2XPlNr4Da','y01IA2O','s0PkBuK','mteZodKYmZbpqM55CLu','s21juge','vxPKDhu','mJyWndDjB2rdvfO','svPAtKm','DxrMltG','mtG0mMHxCe5tsW','rxnfv1y','Dg9tDhjPBMC','uKfor0vsx0nmsv9ut0TftG','EeDfzfa','tNzcrMe','vxzWDfe','u1rjEK4','uvDmzK0','C3rStey','Bg9N','l2fWAs92ms9Ty3aVBwu','r0vu','mtuXnJa4nu5wtfnVyG','BwvZC2fNzq','BLbeB0W','tvH1vxy','zNrIwNC','ywjVCNq','r0Lusfvcx0vovG','vKHzqMu','tLfTDwC','DxzVzuy','u0LZEK4','mtaWmdHJvuPAywi','C2LNBMfS','qMvHCMvYia','wvnps3C','rgTvzxC','CK90wKe','v0rTCxu','rLDxDu0','whbMBfG','lI90B2TLBLjLzNjLC2GUANm','t2nArwC','u0vuBMC','vKHKz3K','wNf2wvu','DhjPBq','uKfor0vsx01duf9ut0TftG','rgvsuhK','ENHiqxi','r05XCuy','ENnovvu','mJC3ody1odnIDLbmwLq','zMXKEu0','mtjfA1vlvKG','rNnbzKm','qNzsyNy','lI4VBwnWqM9VDhn0CMfWlMPZ','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','ru5Vq2W','mte2nta2nM5MwLfWtW','zg9Pq2i','Eg53D2S','CwLoyxe','twjfrxi','mMXmsNHYqW','t21Py1C','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','lI9LBNzPCM9UBwvUDc5QCW','sw12Exe','y29UC3rYDwn0B3i','C2vHCMnO','r0reqxe','uLrcr3O','DuDfwxi','DNvtuhK'];_0x451c=function(){return _0x3a463a;};return _0x451c();}const _0x975659=(function(){let _0x3f3f82=!![];return function(_0x1c979c,_0x1bd15e){const _0x1acc74=_0x3f3f82?function(){const _0x2a135a=_0x5d0c;if(_0x1bd15e){const _0x463d2d=_0x1bd15e[_0x2a135a(0x1af)](_0x1c979c,arguments);return _0x1bd15e=null,_0x463d2d;}}:function(){};return _0x3f3f82=![],_0x1acc74;};}()),_0x177ac5=_0x975659(this,function(){const _0x53cfd6=_0x5d0c,_0x5585ee={'bVueB':_0x53cfd6(0x203)};return _0x177ac5[_0x53cfd6(0x1bc)]()[_0x53cfd6(0x1f9)](_0x5585ee['bVueB'])[_0x53cfd6(0x1bc)]()[_0x53cfd6(0x1f8)](_0x177ac5)[_0x53cfd6(0x1f9)](_0x5585ee[_0x53cfd6(0x1ab)]);});_0x177ac5();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x5d0c(_0x3f5092,_0x5f3fbe){_0x3f5092=_0x3f5092-0x1ab;const _0x773894=_0x451c();let _0x177ac5=_0x773894[_0x3f5092];if(_0x5d0c['iAhZyS']===undefined){var _0x975659=function(_0x5b75ac){const _0x28910b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2296ec='',_0x389d22='',_0xe066f1=_0x2296ec+_0x975659;for(let _0x29e3e2=0x0,_0x32ef2e,_0x4544e8,_0x12bc3f=0x0;_0x4544e8=_0x5b75ac['charAt'](_0x12bc3f++);~_0x4544e8&&(_0x32ef2e=_0x29e3e2%0x4?_0x32ef2e*0x40+_0x4544e8:_0x4544e8,_0x29e3e2++%0x4)?_0x2296ec+=_0xe066f1['charCodeAt'](_0x12bc3f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x32ef2e>>(-0x2*_0x29e3e2&0x6)):_0x29e3e2:0x0){_0x4544e8=_0x28910b['indexOf'](_0x4544e8);}for(let _0x3c89ed=0x0,_0x5e9080=_0x2296ec['length'];_0x3c89ed<_0x5e9080;_0x3c89ed++){_0x389d22+='%'+('00'+_0x2296ec['charCodeAt'](_0x3c89ed)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x389d22);};_0x5d0c['NAmdeM']=_0x975659,_0x5d0c['gPOBTQ']={},_0x5d0c['iAhZyS']=!![];}const _0x451cdd=_0x773894[0x0],_0x5d0c1d=_0x3f5092+_0x451cdd,_0x500617=_0x5d0c['gPOBTQ'][_0x5d0c1d];if(!_0x500617){const _0xefb56e=function(_0xab0e81){this['bEdpzn']=_0xab0e81,this['dqnPXn']=[0x1,0x0,0x0],this['PPPEuA']=function(){return'newState';},this['hfRWiq']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['sOCkUD']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xefb56e['prototype']['NgKEog']=function(){const _0x154371=new RegExp(this['hfRWiq']+this['sOCkUD']),_0x58b90d=_0x154371['test'](this['PPPEuA']['toString']())?--this['dqnPXn'][0x1]:--this['dqnPXn'][0x0];return this['TGAjZY'](_0x58b90d);},_0xefb56e['prototype']['TGAjZY']=function(_0x40df91){if(!Boolean(~_0x40df91))return _0x40df91;return this['BTPXMT'](this['bEdpzn']);},_0xefb56e['prototype']['BTPXMT']=function(_0x39cdbc){for(let _0x5819bd=0x0,_0x3ee209=this['dqnPXn']['length'];_0x5819bd<_0x3ee209;_0x5819bd++){this['dqnPXn']['push'](Math['round'](Math['random']())),_0x3ee209=this['dqnPXn']['length'];}return _0x39cdbc(this['dqnPXn'][0x0]);},new _0xefb56e(_0x5d0c)['NgKEog'](),_0x177ac5=_0x5d0c['NAmdeM'](_0x177ac5),_0x5d0c['gPOBTQ'][_0x5d0c1d]=_0x177ac5;}else _0x177ac5=_0x500617;return _0x177ac5;}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x72d41a(0x1bd),ENV_TOKEN_LEGACY=_0x72d41a(0x1e1),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x72d41a(0x1b1)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x2976d6=_0x72d41a;return!!process['env'][_0x2976d6(0x1cd)];}async function writeToGitHubEnv(_0x122284,_0x43940b){const _0x390f2f=_0x72d41a,_0x3bafec={'PFCDQ':function(_0x21fcdf,_0x3b4c90){return _0x21fcdf===_0x3b4c90;},'VHdgy':_0x390f2f(0x1ac),'STIzN':function(_0x5dbe88,_0x5033e8,_0x18f6ff){return _0x5dbe88(_0x5033e8,_0x18f6ff);}},_0x1b9c30=process[_0x390f2f(0x202)][_0x390f2f(0x1cd)];if(_0x1b9c30){if(_0x3bafec['PFCDQ'](_0x3bafec[_0x390f2f(0x1de)],_0x390f2f(0x1ac)))await _0x3bafec[_0x390f2f(0x1c1)](appendFile,_0x1b9c30,_0x122284+'='+_0x43940b+'\x0a');else return!![];}}export async function storeToken(_0x50b9f6){const _0x3b5ad2=_0x72d41a,_0x4ad846={'ENoCl':'(((.+)+)+)+$','MbEEr':function(_0x173124){return _0x173124();},'SIszN':_0x3b5ad2(0x207),'NQmug':function(_0x3afda4,_0x5d7cc1,_0x3960db){return _0x3afda4(_0x5d7cc1,_0x3960db);},'YSOKw':function(_0xa72dd4,_0x4fb037,_0x4e23f8,_0x75ec52){return _0xa72dd4(_0x4fb037,_0x4e23f8,_0x75ec52);}};if(_0x4ad846[_0x3b5ad2(0x1f2)](isGitHubCI)){if(_0x3b5ad2(0x1fa)!==_0x4ad846[_0x3b5ad2(0x1d1)])await _0x4ad846[_0x3b5ad2(0x1cf)](writeToGitHubEnv,ENV_TOKEN,_0x50b9f6);else return _0xcb4516[_0x3b5ad2(0x1bc)]()[_0x3b5ad2(0x1f9)](NvSltP[_0x3b5ad2(0x1ed)])[_0x3b5ad2(0x1bc)]()[_0x3b5ad2(0x1f8)](_0x4fe92d)[_0x3b5ad2(0x1f9)](NvSltP[_0x3b5ad2(0x1ed)]);}else await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4ad846[_0x3b5ad2(0x1d5)](writeFile,TOKEN_PATH,_0x50b9f6,{'mode':0x180});}export async function getToken(){const _0x282543=_0x72d41a,_0x31d8af={'BvRbv':function(_0x41a717,_0x490dd7){return _0x41a717===_0x490dd7;},'FsAfC':_0x282543(0x1df),'yHvbg':function(_0x1b96c1,_0x3f1b55,_0x2c8744){return _0x1b96c1(_0x3f1b55,_0x2c8744);},'stlLF':_0x282543(0x1b9),'eaPzF':function(_0x1432cc){return _0x1432cc();},'RTBGz':_0x282543(0x1eb),'KJJmI':function(_0x47a240,_0x160b73){return _0x47a240!==_0x160b73;},'QWLfM':_0x282543(0x1cb),'SPUna':_0x282543(0x1ad),'XpflX':'YRbnx','pckWQ':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','nPDoL':function(_0x539e3c){return _0x539e3c();},'FWWuM':_0x282543(0x204),'KmIPa':function(_0x1b50be,_0x46cf86){return _0x1b50be instanceof _0x46cf86;},'doiCb':function(_0x1d9ba3,_0xe19fc8){return _0x1d9ba3(_0xe19fc8);},'OmicW':function(_0x2d5490,_0x2e9443){return _0x2d5490+_0x2e9443;},'uvoeF':_0x282543(0x200),'Uzdtu':_0x282543(0x1ec)};if(process[_0x282543(0x202)][ENV_TOKEN]){if(_0x31d8af[_0x282543(0x1ea)](_0x282543(0x1df),_0x31d8af[_0x282543(0x1e9)]))return process[_0x282543(0x202)][ENV_TOKEN];else{if(_0x2b739d){const _0x10ae9d=_0x577821[_0x282543(0x1af)](_0x5d89f1,arguments);return _0x2d2717=null,_0x10ae9d;}}}if(process[_0x282543(0x202)][ENV_TOKEN_LEGACY])return process[_0x282543(0x202)][ENV_TOKEN_LEGACY];let _0x1f51f1=null;try{_0x1f51f1=(await _0x31d8af[_0x282543(0x1b0)](readFile,TOKEN_PATH,_0x31d8af[_0x282543(0x1c3)]))[_0x282543(0x1e0)]()||null;}catch{const _0x5d8b37=await _0x31d8af['eaPzF'](tryRefreshToken);return _0x5d8b37;}if(!_0x1f51f1)return null;const _0x1c029d=await checkTokenValid(_0x1f51f1);if(_0x1c029d)return _0x1f51f1;const _0x1d5a34=await tryPromoteRefreshToken(_0x1f51f1);if(_0x1d5a34)return _0x1d5a34;const _0xab2684=await tryRefreshToken();if(_0xab2684)return _0xab2684;const {getMcpAuthOrigin:_0x5aae8c,mcpBootstrap:_0x106eaf}=await import(_0x31d8af[_0x282543(0x1fb)]),_0x4acd06=await _0x5aae8c();if(_0x4acd06){if(_0x31d8af[_0x282543(0x1b3)](_0x31d8af[_0x282543(0x1c2)],_0x31d8af['SPUna']))try{if(_0x31d8af[_0x282543(0x1b3)](_0x31d8af[_0x282543(0x1da)],'YRbnx')){const _0x249fbf=_0x2f4e29['apply'](_0x3c0ac0,arguments);return _0x4433fc=null,_0x249fbf;}else{console[_0x282543(0x1c4)](_0x31d8af[_0x282543(0x205)]),await _0x31d8af['eaPzF'](_0x106eaf);const _0xa5c197=await _0x31d8af[_0x282543(0x1c9)](tryRefreshToken);if(_0xa5c197)return _0xa5c197;}}catch(_0x37c541){if(_0x282543(0x1d8)!==_0x31d8af[_0x282543(0x1d9)]){const _0x5e23b5=_0x31d8af[_0x282543(0x1b5)](_0x37c541,Error)?_0x37c541[_0x282543(0x1c8)]:_0x31d8af[_0x282543(0x1ef)](String,_0x37c541);throw new Error(_0x31d8af[_0x282543(0x1f4)](_0x282543(0x1f5)+_0x5e23b5+'\x0a',_0x31d8af[_0x282543(0x1d0)]));}else return![];}else return _0x387d71['env'][_0x1f0302];}throw new Error(_0x31d8af[_0x282543(0x1b6)]);}async function checkTokenValid(_0x4accbb){const _0x524920=_0x72d41a,_0x57b466={'EsEWV':function(_0x2fffb6,_0x10eeb2,_0x2ccedc){return _0x2fffb6(_0x10eeb2,_0x2ccedc);},'yQiZl':_0x524920(0x1f6),'GNqqF':function(_0x4c8ccc){return _0x4c8ccc();},'OReij':function(_0x30b98d,_0x39267c,_0x1310de){return _0x30b98d(_0x39267c,_0x1310de);},'IZZNC':_0x524920(0x1c6),'NeZrA':_0x524920(0x1bf),'Imvyq':function(_0x492758,_0x4f6ffa){return _0x492758===_0x4f6ffa;},'fldyM':function(_0x4bbc51,_0x47b931){return _0x4bbc51(_0x47b931);}},_0x24bf59=new AbortController(),_0x127d37=_0x57b466[_0x524920(0x1bb)](setTimeout,()=>_0x24bf59[_0x524920(0x1cc)](),0x1388);try{const {getApiBaseUrl:_0x476ec4}=await import(_0x57b466[_0x524920(0x206)]),_0x4d788f=_0x57b466[_0x524920(0x1e4)](_0x476ec4),_0x534a55=await _0x57b466['OReij'](fetch,_0x4d788f+_0x524920(0x1c5),{'method':_0x57b466[_0x524920(0x1b8)],'headers':{'Authorization':_0x524920(0x1d4)+_0x4accbb},'signal':_0x24bf59[_0x524920(0x1d3)]});return _0x534a55['ok'];}catch{return'fNnwA'!==_0x57b466[_0x524920(0x1ae)]?!![]:null;}finally{if(_0x57b466[_0x524920(0x1f7)](_0x524920(0x1ca),_0x524920(0x1e5)))return _0x44f788[_0x524920(0x202)][_0x63805d];else _0x57b466[_0x524920(0x1e7)](clearTimeout,_0x127d37);}}async function tryRefreshToken(){const _0x1b73af=_0x72d41a,_0x437813={'GWHJV':function(_0x399af5){return _0x399af5();}},{refreshCliToken:_0x4a3caf}=await import(_0x1b73af(0x1db));return _0x437813['GWHJV'](_0x4a3caf);}async function tryPromoteRefreshToken(_0x2a38bf){const _0x40cb1a={'svJye':'./tokenRefresh.js','asJIj':function(_0x129c34,_0x38d418,_0x521815){return _0x129c34(_0x38d418,_0x521815);}},{refreshPartnerCliToken:_0x2bf127}=await import(_0x40cb1a['svJye']);return _0x40cb1a['asJIj'](_0x2bf127,_0x2a38bf,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xb0cd32=_0x72d41a,_0x41ff83={'DeRPy':function(_0x331717,_0x47eb85){return _0x331717(_0x47eb85);},'KfySD':_0xb0cd32(0x1be),'dIgvd':_0xb0cd32(0x1ce)};try{return await _0x41ff83[_0xb0cd32(0x1e2)](unlink,TOKEN_PATH),!![];}catch{return _0x41ff83['KfySD']!==_0x41ff83['dIgvd']?![]:![];}}export async function storeRefreshToken(_0x410041){const _0x798786=_0x72d41a,_0x513c83={'zGFUq':function(_0x3df90e,_0x419faf,_0x4272ad){return _0x3df90e(_0x419faf,_0x4272ad);},'eVnGd':function(_0x2a4a41,_0x5e00cf,_0x3d8591,_0x2e51e2){return _0x2a4a41(_0x5e00cf,_0x3d8591,_0x2e51e2);}};await _0x513c83['zGFUq'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x513c83[_0x798786(0x1ff)](writeFile,REFRESH_TOKEN_PATH,_0x410041,{'mode':0x180});}export async function getRefreshToken(){const _0x44de9f=_0x72d41a,_0x7c037={'xnwwk':_0x44de9f(0x1b9)};try{const _0x557ff2=await readFile(REFRESH_TOKEN_PATH,_0x7c037[_0x44de9f(0x1f0)]);return _0x557ff2[_0x44de9f(0x1e0)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0xccf28e=_0x72d41a,_0x5589ec={'UvptQ':function(_0x4db38f,_0x3d47f1){return _0x4db38f(_0x3d47f1);},'ZRYzT':function(_0x16dd28,_0x2cf217){return _0x16dd28 instanceof _0x2cf217;},'nHhoN':function(_0x599784,_0x4de2c3){return _0x599784(_0x4de2c3);},'uGEYr':function(_0x388f42,_0x12ae41){return _0x388f42===_0x12ae41;},'DkUew':_0xccf28e(0x1fd),'OcZEg':'QPysA','zxHAr':function(_0x53bb84,_0x3fd53f){return _0x53bb84!==_0x3fd53f;},'SETng':_0xccf28e(0x1d7)};try{if(_0x5589ec[_0xccf28e(0x1fc)](_0x5589ec[_0xccf28e(0x1d6)],_0x5589ec[_0xccf28e(0x1dc)]))_0x5589ec[_0xccf28e(0x1c0)](_0x7a9dbe,_0x26e88f);else return await _0x5589ec['UvptQ'](unlink,REFRESH_TOKEN_PATH),!![];}catch{if(_0x5589ec[_0xccf28e(0x1e3)](_0xccf28e(0x1f1),_0x5589ec[_0xccf28e(0x1dd)]))return![];else{const _0x5e4d5a=_0x5589ec['ZRYzT'](_0x4234e3,_0x34515f)?_0x59688a[_0xccf28e(0x1c8)]:_0x5589ec['nHhoN'](_0x77305c,_0x52dec3);throw new _0x4272d2(_0xccf28e(0x1f5)+_0x5e4d5a+'\x0a'+'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.');}}}export async function deleteAllCredentials(){const _0x2b3eee=_0x72d41a,_0x1d4f60={'cMbkj':function(_0x3f1ce9){return _0x3f1ce9();}};await _0x1d4f60[_0x2b3eee(0x1b2)](deleteToken),await deleteRefreshToken();}
|
|
1
|
+
const _0x46fbe7=_0x418a;(function(_0x2ab1a5,_0x2f5741){const _0xe3dfc=_0x418a,_0x1a7548=_0x2ab1a5();while(!![]){try{const _0x2adb32=parseInt(_0xe3dfc(0xeb))/0x1*(-parseInt(_0xe3dfc(0x10c))/0x2)+parseInt(_0xe3dfc(0x107))/0x3+-parseInt(_0xe3dfc(0xf5))/0x4*(parseInt(_0xe3dfc(0x102))/0x5)+parseInt(_0xe3dfc(0x118))/0x6*(-parseInt(_0xe3dfc(0xe0))/0x7)+parseInt(_0xe3dfc(0x114))/0x8+-parseInt(_0xe3dfc(0xe7))/0x9+parseInt(_0xe3dfc(0xff))/0xa;if(_0x2adb32===_0x2f5741)break;else _0x1a7548['push'](_0x1a7548['shift']());}catch(_0x32cbe4){_0x1a7548['push'](_0x1a7548['shift']());}}}(_0x53ad,0x4f43b));const _0x583bf3=(function(){const _0x1fa377=_0x418a,_0x9eb459={'WQQKe':function(_0x3e8f4b,_0x1cead1){return _0x3e8f4b===_0x1cead1;},'tjCMw':_0x1fa377(0x115)};let _0x50edab=!![];return function(_0x115919,_0x2f4ae6){const _0x582650=_0x50edab?function(){const _0x36901a=_0x418a;if(_0x9eb459['WQQKe'](_0x36901a(0x115),_0x9eb459['tjCMw'])){if(_0x2f4ae6){const _0x50ebde=_0x2f4ae6[_0x36901a(0x116)](_0x115919,arguments);return _0x2f4ae6=null,_0x50ebde;}}else return![];}:function(){};return _0x50edab=![],_0x582650;};}()),_0x8e8c7e=_0x583bf3(this,function(){const _0x109b96=_0x418a,_0x3a4029={'rEARr':_0x109b96(0x106)};return _0x8e8c7e[_0x109b96(0xe9)]()[_0x109b96(0x117)](_0x3a4029[_0x109b96(0xe8)])[_0x109b96(0xe9)]()['constructor'](_0x8e8c7e)['search'](_0x3a4029[_0x109b96(0xe8)]);});_0x8e8c7e();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x46fbe7(0x124),ENV_TOKEN_LEGACY=_0x46fbe7(0x123),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x46fbe7(0x101));function _0x53ad(){const _0x5c3417=['BwvZC2fNzq','su1fBey','zw52','BLPNC2C','Au53u1u','AhLjshK','z0LVueG','tNjitei','nhfNyujVwG','C1rxreq','l2fWAs92ms9Ty3aVBwu','vxLzvgW','wMLAyLu','lI9LBNzPCM9UBwvUDc5QCW','DwTMuKK','ALLIANe','CxjkDMe','uwHjvwm','mte4mJi5ndbfzvHNqwG','C2LNBMfS','CMvMCMvZAc50Ehq','mJe5mJG2nvLvserjAa','DKPmt1m','uwTlEva','qNPsExu','kcGOlISPkYKRksSK','mty3mJK5mKvNEKriqG','r0Lusfvcx0vovG','zfLZCNe','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','r0vu','mtu3mte4BgPwy3vk','qwjYq3q','sMTyrvO','wvj3CLK','lI4VBwnWqM9VDhn0CMfWlMPZ','uuHyB3C','zxHPzfi','z2HPEwu','mtyYndGWofj3EgjhzW','zwLKwLK','yxbWBhK','C2vHCMnO','mJm1nZm0BfvQCg13','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','t1HYwKS','Bg9N','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','DwPIDgG','lI90B2TLBLjLzNjLC2GUANm','rujuD3C','zefKC0G','wM5bwKy','DxrMltG','uKfor0vsx01duf9ut0TftG','uKfor0vsx0nmsv9ut0TftG','wKjmtLO','tNvcA2q','u1b0vKq','otfIthvuA2u','DhjPBq','DgPSvM8','EMHevvq','sNPyCMy','AxHUyLq','DhHfwwK','mta3mJm0murhu1f6rG','CKvbuNi','Dg9tDhjPBMC','Cgnjz0C','n2Xlyufnzq','B05Kzha'];_0x53ad=function(){return _0x5c3417;};return _0x53ad();}function isGitHubCI(){const _0x512943=_0x46fbe7;return!!process[_0x512943(0xef)][_0x512943(0x108)];}async function writeToGitHubEnv(_0x19a357,_0x26615d){const _0xbf43a0=_0x46fbe7,_0x340177={'bDPUp':function(_0x1472c1,_0x40d082,_0x1a2bdf){return _0x1472c1(_0x40d082,_0x1a2bdf);}},_0x28ff0c=process[_0xbf43a0(0xef)][_0xbf43a0(0x108)];_0x28ff0c&&await _0x340177['bDPUp'](appendFile,_0x28ff0c,_0x19a357+'='+_0x26615d+'\x0a');}export async function storeToken(_0x2d6008){const _0xaf5267=_0x46fbe7,_0x42c83e={'dAdsH':function(_0x42295d,_0x318f84,_0xe4d3da){return _0x42295d(_0x318f84,_0xe4d3da);},'qrJva':function(_0x5d3e12,_0x135373,_0x1f78e9,_0x4052e0){return _0x5d3e12(_0x135373,_0x1f78e9,_0x4052e0);}};isGitHubCI()?await writeToGitHubEnv(ENV_TOKEN,_0x2d6008):(await _0x42c83e[_0xaf5267(0x120)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x42c83e[_0xaf5267(0xfd)](writeFile,TOKEN_PATH,_0x2d6008,{'mode':0x180}));}export async function getToken(){const _0x401247=_0x46fbe7,_0x489734={'sTWDD':function(_0x696cef,_0x43748e){return _0x696cef(_0x43748e);},'zhDUT':function(_0x16bcd8,_0x4deb62){return _0x16bcd8+_0x4deb62;},'gIoPH':_0x401247(0x10a),'XuuhH':_0x401247(0xf9),'exidR':function(_0x1d9a0f,_0x5dc62a,_0x13061a){return _0x1d9a0f(_0x5dc62a,_0x13061a);},'AbrCt':_0x401247(0x122),'IMElF':function(_0x1f8d38){return _0x1f8d38();},'BzRyu':function(_0x36c77e){return _0x36c77e();},'tjlVo':_0x401247(0x110),'pcIgG':function(_0x3a5ceb){return _0x3a5ceb();},'YwTar':function(_0x7ebc6b,_0x15544a){return _0x7ebc6b!==_0x15544a;},'EBTww':'YRwrY','xSSlm':_0x401247(0x119),'KFtkq':function(_0x7bcb3d){return _0x7bcb3d();},'BzAQp':function(_0x20a5ed,_0x322f8a){return _0x20a5ed!==_0x322f8a;},'ixnbT':_0x401247(0xfc),'ZnAZF':'veECX','aeXtB':function(_0x49f77d,_0x57ba5a){return _0x49f77d(_0x57ba5a);},'nZgsg':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x401247(0xef)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY]){if(_0x489734['XuuhH']!==_0x489734['XuuhH']){const _0x319f12=_0x2bf4aa instanceof _0x252f83?_0x3d1930[_0x401247(0xed)]:_0x489734[_0x401247(0xf6)](_0x3aa5e2,_0x1209d3);throw new _0xab73e2(_0x489734[_0x401247(0xe3)](_0x401247(0x11c)+_0x319f12+'\x0a',_0x489734['gIoPH']));}else return process[_0x401247(0xef)][ENV_TOKEN_LEGACY];}let _0x419389=null;try{_0x419389=(await _0x489734[_0x401247(0x112)](readFile,TOKEN_PATH,_0x489734[_0x401247(0x10d)]))[_0x401247(0xe1)]()||null;}catch{const _0x11dabc=await _0x489734[_0x401247(0xee)](tryRefreshToken);return _0x11dabc;}if(!_0x419389)return null;const _0x2de150=await checkTokenValid(_0x419389);if(_0x2de150)return _0x419389;const _0xe8b737=await _0x489734[_0x401247(0xf6)](tryPromoteRefreshToken,_0x419389);if(_0xe8b737)return _0xe8b737;const _0x517923=await _0x489734[_0x401247(0x105)](tryRefreshToken);if(_0x517923)return _0x517923;const {getMcpAuthOrigin:_0x170906,mcpBootstrap:_0x450102}=await import(_0x489734[_0x401247(0xe2)]),_0x51d437=await _0x489734[_0x401247(0xea)](_0x170906);if(_0x51d437)try{if(_0x489734['YwTar'](_0x489734[_0x401247(0x11f)],_0x401247(0x10f)))return null;else{console[_0x401247(0x11b)](_0x489734['xSSlm']),await _0x489734[_0x401247(0xee)](_0x450102);const _0x358ebc=await _0x489734['KFtkq'](tryRefreshToken);if(_0x358ebc)return _0x358ebc;}}catch(_0x362ec4){if(_0x489734['BzAQp'](_0x489734[_0x401247(0xe5)],_0x489734[_0x401247(0x121)])){const _0x464139=_0x362ec4 instanceof Error?_0x362ec4[_0x401247(0xed)]:_0x489734['aeXtB'](String,_0x362ec4);throw new Error(_0x489734[_0x401247(0xe3)](_0x401247(0x11c)+_0x464139+'\x0a',_0x489734[_0x401247(0xf3)]));}else{const _0x56a46b=_0x22f114?function(){const _0x3a89af=_0x401247;if(_0x193192){const _0x4ba5b5=_0x3c42f2[_0x3a89af(0x116)](_0x26c65f,arguments);return _0xa97145=null,_0x4ba5b5;}}:function(){};return _0x3fb155=![],_0x56a46b;}}throw new Error(_0x489734[_0x401247(0xf0)]);}function _0x418a(_0x3d882b,_0x44b449){_0x3d882b=_0x3d882b-0xdf;const _0x33cda9=_0x53ad();let _0x8e8c7e=_0x33cda9[_0x3d882b];if(_0x418a['DBwMkN']===undefined){var _0x583bf3=function(_0x1ed1c8){const _0x4f7a0e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xd67194='',_0xa49554='',_0xfa2401=_0xd67194+_0x583bf3;for(let _0x1615b7=0x0,_0x55e171,_0x14f690,_0x40f195=0x0;_0x14f690=_0x1ed1c8['charAt'](_0x40f195++);~_0x14f690&&(_0x55e171=_0x1615b7%0x4?_0x55e171*0x40+_0x14f690:_0x14f690,_0x1615b7++%0x4)?_0xd67194+=_0xfa2401['charCodeAt'](_0x40f195+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x55e171>>(-0x2*_0x1615b7&0x6)):_0x1615b7:0x0){_0x14f690=_0x4f7a0e['indexOf'](_0x14f690);}for(let _0xff1294=0x0,_0x521ab3=_0xd67194['length'];_0xff1294<_0x521ab3;_0xff1294++){_0xa49554+='%'+('00'+_0xd67194['charCodeAt'](_0xff1294)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa49554);};_0x418a['AektAf']=_0x583bf3,_0x418a['BnCvsm']={},_0x418a['DBwMkN']=!![];}const _0x53adcb=_0x33cda9[0x0],_0x418a5f=_0x3d882b+_0x53adcb,_0x31bec8=_0x418a['BnCvsm'][_0x418a5f];if(!_0x31bec8){const _0x22f114=function(_0x2d529e){this['RYLutS']=_0x2d529e,this['MAxPmp']=[0x1,0x0,0x0],this['qmDOQB']=function(){return'newState';},this['aNUcPe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['uMWiBL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x22f114['prototype']['mJRTKC']=function(){const _0x42a4e1=new RegExp(this['aNUcPe']+this['uMWiBL']),_0x193189=_0x42a4e1['test'](this['qmDOQB']['toString']())?--this['MAxPmp'][0x1]:--this['MAxPmp'][0x0];return this['vCmuFk'](_0x193189);},_0x22f114['prototype']['vCmuFk']=function(_0x5638be){if(!Boolean(~_0x5638be))return _0x5638be;return this['yAUhSJ'](this['RYLutS']);},_0x22f114['prototype']['yAUhSJ']=function(_0x3fb155){for(let _0x193192=0x0,_0x92a1a4=this['MAxPmp']['length'];_0x193192<_0x92a1a4;_0x193192++){this['MAxPmp']['push'](Math['round'](Math['random']())),_0x92a1a4=this['MAxPmp']['length'];}return _0x3fb155(this['MAxPmp'][0x0]);},new _0x22f114(_0x418a)['mJRTKC'](),_0x8e8c7e=_0x418a['AektAf'](_0x8e8c7e),_0x418a['BnCvsm'][_0x418a5f]=_0x8e8c7e;}else _0x8e8c7e=_0x31bec8;return _0x8e8c7e;}async function checkTokenValid(_0x4e673a){const _0x4156ba=_0x46fbe7,_0x280b4e={'QHXow':function(_0x54ff0e,_0x569492,_0x53089e){return _0x54ff0e(_0x569492,_0x53089e);},'QhIUc':function(_0x4d4d65,_0x565eab){return _0x4d4d65===_0x565eab;},'IJGAI':_0x4156ba(0x126),'dYsrq':function(_0xbab0eb){return _0xbab0eb();},'ukfRI':'RKOaN','oNddp':function(_0x2d5215,_0x4e3481){return _0x2d5215(_0x4e3481);}},_0x51cea1=new AbortController(),_0x1be59b=_0x280b4e[_0x4156ba(0x111)](setTimeout,()=>_0x51cea1['abort'](),0x1388);try{if(_0x280b4e[_0x4156ba(0xfe)](_0x280b4e['IJGAI'],_0x4156ba(0x126))){const {getApiBaseUrl:_0x39c308}=await import(_0x4156ba(0xfa)),_0x403f1e=_0x280b4e[_0x4156ba(0x109)](_0x39c308),_0x5d8f0b=await _0x280b4e['QHXow'](fetch,_0x403f1e+_0x4156ba(0xf7),{'method':_0x4156ba(0x10b),'headers':{'Authorization':'Bearer\x20'+_0x4e673a},'signal':_0x51cea1[_0x4156ba(0x100)]});return _0x5d8f0b['ok'];}else return!![];}catch{if(_0x280b4e[_0x4156ba(0xfb)]!==_0x4156ba(0xe4))return!![];else{const _0x3519bb=_0x213671['apply'](_0x1f6552,arguments);return _0x548dcc=null,_0x3519bb;}}finally{_0x280b4e[_0x4156ba(0xec)](clearTimeout,_0x1be59b);}}async function tryRefreshToken(){const _0x9f1943={'gZrVk':'./tokenRefresh.js'},{refreshCliToken:_0x4dcdab}=await import(_0x9f1943['gZrVk']);return _0x4dcdab();}async function tryPromoteRefreshToken(_0x29d54c){const _0x4d1c1a=_0x46fbe7,_0x3c4935={'dMVhU':_0x4d1c1a(0x11e),'vJLOS':function(_0x971b1a,_0x291b8d,_0x3878bc){return _0x971b1a(_0x291b8d,_0x3878bc);}},{refreshPartnerCliToken:_0x5a308d}=await import(_0x3c4935['dMVhU']);return _0x3c4935[_0x4d1c1a(0x103)](_0x5a308d,_0x29d54c,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2f1bbc=_0x46fbe7,_0x228806={'JkXEZ':function(_0x394534,_0x5b395a){return _0x394534!==_0x5b395a;},'ujbth':_0x2f1bbc(0x104),'AbsGw':_0x2f1bbc(0x11a),'hyIHy':function(_0x1a8577,_0xc9f791){return _0x1a8577(_0xc9f791);},'SPtVD':function(_0x21c80f,_0x54a30e){return _0x21c80f===_0x54a30e;},'kpSOX':_0x2f1bbc(0xf4)};try{if(_0x228806[_0x2f1bbc(0x10e)](_0x228806[_0x2f1bbc(0x11d)],_0x228806['AbsGw']))return await _0x228806[_0x2f1bbc(0xf2)](unlink,TOKEN_PATH),!![];else{if(_0x38d03e){const _0x3fed45=_0x3e131c[_0x2f1bbc(0x116)](_0x271978,arguments);return _0x394844=null,_0x3fed45;}}}catch{return _0x228806[_0x2f1bbc(0xdf)](_0x228806['kpSOX'],_0x2f1bbc(0xf8))?![]:![];}}export async function storeRefreshToken(_0x5f289c){const _0x37a1aa=_0x46fbe7,_0x22758e={'ghiye':function(_0x1c00d8,_0x5c884c,_0x2a8d0e){return _0x1c00d8(_0x5c884c,_0x2a8d0e);},'ZBLNZ':function(_0x68aa87,_0x1a125b,_0xda4219,_0x492daa){return _0x68aa87(_0x1a125b,_0xda4219,_0x492daa);}};await _0x22758e[_0x37a1aa(0x113)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x22758e[_0x37a1aa(0x125)](writeFile,REFRESH_TOKEN_PATH,_0x5f289c,{'mode':0x180});}export async function getRefreshToken(){const _0x374895=_0x46fbe7,_0x2945ee={'txEYi':function(_0x43e810,_0x467365,_0x315bba){return _0x43e810(_0x467365,_0x315bba);}};try{const _0x9b8afd=await _0x2945ee[_0x374895(0xe6)](readFile,REFRESH_TOKEN_PATH,_0x374895(0x122));return _0x9b8afd[_0x374895(0xe1)]()||null;}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x23efb2=_0x46fbe7,_0x50c7dd={'iNwSU':function(_0x43711d){return _0x43711d();}};await _0x50c7dd[_0x23efb2(0xf1)](deleteToken),await _0x50c7dd[_0x23efb2(0xf1)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9846e3=_0x2e2e;(function(_0x347fa4,_0x55a7e0){const _0x5c1ab2=_0x2e2e,_0x49ec0a=_0x347fa4();while(!![]){try{const _0x273a4c=-parseInt(_0x5c1ab2(0x1c2))/0x1+parseInt(_0x5c1ab2(0x1c1))/0x2*(-parseInt(_0x5c1ab2(0x1d3))/0x3)+parseInt(_0x5c1ab2(0x1c8))/0x4*(-parseInt(_0x5c1ab2(0x1b9))/0x5)+-parseInt(_0x5c1ab2(0x1d0))/0x6+parseInt(_0x5c1ab2(0x1c3))/0x7+parseInt(_0x5c1ab2(0x1c0))/0x8+parseInt(_0x5c1ab2(0x1c5))/0x9;if(_0x273a4c===_0x55a7e0)break;else _0x49ec0a['push'](_0x49ec0a['shift']());}catch(_0x1f8780){_0x49ec0a['push'](_0x49ec0a['shift']());}}}(_0x2850,0xa9282));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x2e2e(_0x291b8c,_0x224178){_0x291b8c=_0x291b8c-0x1b7;const _0x2850e7=_0x2850();let _0x2e2e27=_0x2850e7[_0x291b8c];return _0x2e2e27;}function detectLegacyPaths(){const _0x406fb9=_0x2e2e,_0x3b4390={'YffVb':function(_0x3fd95c){return _0x3fd95c();},'aoUsd':function(_0x378e74,_0x234152,_0x4cfac0){return _0x378e74(_0x234152,_0x4cfac0);},'FEVfh':_0x406fb9(0x1d1),'JcuXj':function(_0x36fed9,_0x37b977,_0x4b14d3){return _0x36fed9(_0x37b977,_0x4b14d3);},'bXEuE':function(_0x1f1873,_0x4f7fb1,_0xa3490b){return _0x1f1873(_0x4f7fb1,_0xa3490b);},'PhbsK':_0x406fb9(0x1cb)},_0x330fc0=_0x3b4390['YffVb'](getRangerDir),_0x8602f6=getRangerHomeDir();return[_0x3b4390[_0x406fb9(0x1be)](join,_0x330fc0,_0x3b4390['FEVfh']),_0x3b4390['aoUsd'](join,_0x330fc0,'ci'),_0x3b4390['JcuXj'](join,_0x8602f6,_0x3b4390[_0x406fb9(0x1c4)]),_0x3b4390['bXEuE'](join,_0x330fc0,_0x3b4390['PhbsK'])]['filter'](_0x4b60ab=>existsSync(_0x4b60ab));}function flagFilePath(){const _0x408209=_0x2e2e,_0x5c433b={'rmadZ':function(_0x6d18be){return _0x6d18be();}},_0x5c0a44=new Date()['toISOString']()[_0x408209(0x1cf)](0x0,0xa);return join(_0x5c433b['rmadZ'](getRangerHomeDir),'.legacy-warning-'+_0x5c0a44);}export function showLegacyDeprecationWarning(){const _0x32cadc=_0x2e2e,_0xb6b94={'xzZAr':function(_0x3d6cd0){return _0x3d6cd0();},'UktvG':_0x32cadc(0x1d2),'FXgbO':_0x32cadc(0x1ba),'OZsPy':_0x32cadc(0x1bd),'MQNqx':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','dfDmx':function(_0x450c9e,_0x1fbb80){return _0x450c9e+_0x1fbb80;}},_0x38e08e=_0xb6b94['xzZAr'](detectLegacyPaths);if(_0x38e08e[_0x32cadc(0x1ce)]===0x0)return;const _0x3c5b7c=_0xb6b94[_0x32cadc(0x1cc)](flagFilePath);if(existsSync(_0x3c5b7c))return;const _0x5cf57b=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x38e08e['map'](_0x4d288e=>'\x20\x20\x20\x20\x20'+_0x4d288e),'',_0xb6b94['UktvG'],_0x32cadc(0x1cd),'',_0xb6b94[_0x32cadc(0x1bf)],'','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:',_0xb6b94[_0x32cadc(0x1d4)],'',_0xb6b94['MQNqx'],''];process['stderr'][_0x32cadc(0x1c9)](_0xb6b94[_0x32cadc(0x1c7)](_0x5cf57b['join']('\x0a'),'\x0a'));try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x3c5b7c,'',{'mode':0x180});}catch{}}function _0x2850(){const _0x1a6bc7=['dfDmx','356052EggoVS','write','verify','active-profile.txt','xzZAr','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','length','slice','928752jkVlug','local','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','255LyGBZh','OZsPy','has','start','25EqNZGH','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','--help','startsWith','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','aoUsd','FXgbO','2494384sWVKxz','3560yRFGDy','954707LPJfri','7599515pXFKrt','FEVfh','9011583CaWMps','use'];_0x2850=function(){return _0x1a6bc7;};return _0x2850();}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x9846e3(0x1ca),'verify-feature','profile','profiles','setup','setup-ci',_0x9846e3(0x1b8),_0x9846e3(0x1c6)]);export function shouldShowLegacyWarning(_0x47da47){const _0xa2b934=_0x9846e3,_0x433f91=_0x47da47[0x2];if(!_0x433f91)return![];if(_0x433f91[_0xa2b934(0x1bc)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0xa2b934(0x1b7)](_0x433f91))return![];for(let _0x5e94d9=0x3;_0x5e94d9<_0x47da47['length'];_0x5e94d9++){if(_0x47da47[_0x5e94d9]===_0xa2b934(0x1bb)||_0x47da47[_0x5e94d9]==='-h')return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x8c17c2,_0x12ea83){const _0x1f3852=_0x3583,_0x270c0a=_0x8c17c2();while(!![]){try{const _0xd773bc=-parseInt(_0x1f3852(0x16f))/0x1+-parseInt(_0x1f3852(0x17b))/0x2+-parseInt(_0x1f3852(0x185))/0x3+parseInt(_0x1f3852(0x184))/0x4+parseInt(_0x1f3852(0x17c))/0x5+-parseInt(_0x1f3852(0x177))/0x6*(parseInt(_0x1f3852(0x189))/0x7)+parseInt(_0x1f3852(0x181))/0x8*(parseInt(_0x1f3852(0x174))/0x9);if(_0xd773bc===_0x12ea83)break;else _0x270c0a['push'](_0x270c0a['shift']());}catch(_0x105bd3){_0x270c0a['push'](_0x270c0a['shift']());}}}(_0x37d0,0x8dac2));const _0x5254bf=(function(){const _0x160c7c={'cZnJi':function(_0x584db9,_0x4046d2){return _0x584db9!==_0x4046d2;},'VaZDH':'MsAfu'};let _0x232017=!![];return function(_0xa96b6c,_0x5cb885){const _0x4672e6=_0x3583;if(_0x160c7c[_0x4672e6(0x187)](_0x160c7c[_0x4672e6(0x178)],_0x160c7c[_0x4672e6(0x178)]))return;else{const _0x5217df=_0x232017?function(){const _0x95fa68=_0x4672e6;if(_0x5cb885){const _0x4a0fb6=_0x5cb885[_0x95fa68(0x171)](_0xa96b6c,arguments);return _0x5cb885=null,_0x4a0fb6;}}:function(){};return _0x232017=![],_0x5217df;}};}()),_0x52066b=_0x5254bf(this,function(){const _0x1b9013=_0x3583,_0x193494={'irnlO':'(((.+)+)+)+$'};return _0x52066b[_0x1b9013(0x180)]()[_0x1b9013(0x176)](_0x1b9013(0x188))[_0x1b9013(0x180)]()[_0x1b9013(0x179)](_0x52066b)['search'](_0x193494[_0x1b9013(0x173)]);});function _0x3583(_0x4281c9,_0x497fcb){_0x4281c9=_0x4281c9-0x16f;const _0x124957=_0x37d0();let _0x52066b=_0x124957[_0x4281c9];if(_0x3583['gGLcpy']===undefined){var _0x5254bf=function(_0x57e0f5){const _0x25eec4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4edf20='',_0x3b4ba0='',_0x406a83=_0x4edf20+_0x5254bf;for(let _0xc0b62b=0x0,_0x109026,_0x488137,_0x59247b=0x0;_0x488137=_0x57e0f5['charAt'](_0x59247b++);~_0x488137&&(_0x109026=_0xc0b62b%0x4?_0x109026*0x40+_0x488137:_0x488137,_0xc0b62b++%0x4)?_0x4edf20+=_0x406a83['charCodeAt'](_0x59247b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x109026>>(-0x2*_0xc0b62b&0x6)):_0xc0b62b:0x0){_0x488137=_0x25eec4['indexOf'](_0x488137);}for(let _0x477a15=0x0,_0x1091c4=_0x4edf20['length'];_0x477a15<_0x1091c4;_0x477a15++){_0x3b4ba0+='%'+('00'+_0x4edf20['charCodeAt'](_0x477a15)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b4ba0);};_0x3583['yqYCPa']=_0x5254bf,_0x3583['bglqaO']={},_0x3583['gGLcpy']=!![];}const _0x37d09a=_0x124957[0x0],_0x35837f=_0x4281c9+_0x37d09a,_0x204255=_0x3583['bglqaO'][_0x35837f];if(!_0x204255){const _0x229735=function(_0x2d5da1){this['scTTXb']=_0x2d5da1,this['gOGsrb']=[0x1,0x0,0x0],this['GKJAbi']=function(){return'newState';},this['HeAJug']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xvmoDb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x229735['prototype']['xivDGO']=function(){const _0x139a7c=new RegExp(this['HeAJug']+this['xvmoDb']),_0x520a81=_0x139a7c['test'](this['GKJAbi']['toString']())?--this['gOGsrb'][0x1]:--this['gOGsrb'][0x0];return this['bDxkNu'](_0x520a81);},_0x229735['prototype']['bDxkNu']=function(_0x5b279f){if(!Boolean(~_0x5b279f))return _0x5b279f;return this['EdFeHx'](this['scTTXb']);},_0x229735['prototype']['EdFeHx']=function(_0x18704e){for(let _0x322602=0x0,_0x15a8e1=this['gOGsrb']['length'];_0x322602<_0x15a8e1;_0x322602++){this['gOGsrb']['push'](Math['round'](Math['random']())),_0x15a8e1=this['gOGsrb']['length'];}return _0x18704e(this['gOGsrb'][0x0]);},new _0x229735(_0x3583)['xivDGO'](),_0x52066b=_0x3583['yqYCPa'](_0x52066b),_0x3583['bglqaO'][_0x35837f]=_0x52066b;}else _0x52066b=_0x204255;return _0x52066b;}_0x52066b();function _0x37d0(){const _0x5dbd96=['zKfXwha','y1PUsMK','kcGOlISPkYKRksSK','n1jAA2D3tW','wMP3sK0','AKrPs08','mta5mZeXogXJtezcrq','zxjYB3i','yxbWBhK','yxbWBgLJyxrPB24VANnVBG','AxjUBe8','mte4ntq2mLHOuK5PqW','C3b0Bw0','C2vHCMnO','ntG3ntiXmNvJDhPiAa','vMfAreG','y29UC3rYDwn0B3i','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','mJe4mJq1oejhA2zjqq','nde2nZCZmg9uvunsCG','ueDkr2q','ue9tva','Dgv4Da','Dg9tDhjPBMC','mtm2AvrpDwfn','ywjVCNq','C3rYAw5NAwz5','mJG5nta0mfPMAwndzq','mtu4mde5zwzZuLzy'];_0x37d0=function(){return _0x5dbd96;};return _0x37d0();}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x5d5343,_0xc4234f,_0x176567){const _0x47e45f=_0x3583,_0x42c401={'sptmm':function(_0x334aed){return _0x334aed();},'jDiKO':function(_0x15e537){return _0x15e537();},'ZjwJM':function(_0x1593db,_0x12201a,_0x414069){return _0x1593db(_0x12201a,_0x414069);},'PGJGd':function(_0x38c0d9,_0x5174ad,_0x57959f){return _0x38c0d9(_0x5174ad,_0x57959f);},'zRjpN':_0x47e45f(0x17e),'ggghV':_0x47e45f(0x172),'fAqXp':function(_0x5b56d9,_0x4538a3){return _0x5b56d9(_0x4538a3);}},_0x46447c=await _0x42c401[_0x47e45f(0x175)](getToken);if(!_0x46447c)return;const _0x3ea9be=_0x42c401[_0x47e45f(0x18b)](getApiBaseUrl),_0x325dab=new AbortController(),_0x28cfee=_0x42c401[_0x47e45f(0x18a)](setTimeout,()=>_0x325dab[_0x47e45f(0x182)](),0x1388);let _0x430d84;try{_0x430d84=await _0x42c401[_0x47e45f(0x17d)](fetch,_0x3ea9be+'/api/v1/mcp/local-agent-installations',{'method':_0x42c401['zRjpN'],'headers':{'Authorization':'Bearer\x20'+_0x46447c,'Content-Type':_0x42c401['ggghV']},'body':JSON[_0x47e45f(0x183)]({'skillName':_0x5d5343,'cliVersion':_0x176567,'metadata':_0xc4234f}),'signal':_0x325dab['signal']});}finally{_0x42c401[_0x47e45f(0x186)](clearTimeout,_0x28cfee);}if(!_0x430d84['ok']){const _0xeb0f73=await _0x430d84[_0x47e45f(0x17f)]();console[_0x47e45f(0x170)](_0x47e45f(0x17a)+_0xeb0f73);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e033a,_0x41152d){const _0x3bfd1d=_0x6461,_0x507c41=_0x5e033a();while(!![]){try{const _0x160be=parseInt(_0x3bfd1d(0x1a9))/0x1*(parseInt(_0x3bfd1d(0x1a6))/0x2)+-parseInt(_0x3bfd1d(0x1a4))/0x3+parseInt(_0x3bfd1d(0x19f))/0x4+parseInt(_0x3bfd1d(0x1a5))/0x5*(-parseInt(_0x3bfd1d(0x198))/0x6)+parseInt(_0x3bfd1d(0x1a0))/0x7*(-parseInt(_0x3bfd1d(0x19e))/0x8)+parseInt(_0x3bfd1d(0x199))/0x9+-parseInt(_0x3bfd1d(0x1a1))/0xa;if(_0x160be===_0x41152d)break;else _0x507c41['push'](_0x507c41['shift']());}catch(_0x25edce){_0x507c41['push'](_0x507c41['shift']());}}}(_0x23ab,0x78bc9));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x2d52d1){try{const _0x4d2b55=new URL(_0x2d52d1);return _0x4d2b55['protocol']+'//'+_0x4d2b55['host'];}catch{return undefined;}}function _0x23ab(){const _0x5784cf=['tGSQt','7SHWdod','22158nPTqMn','8874171CJFAtn','defaultEnvironmentKey','domains','some','DgDbk','712TFxgEY','3438700zYLADj','46753DsylSI','2738270MXrAyN','hostname','BrMux','2293218YPdJOH','435DnZcvI','172228jbjQTR','environments'];_0x23ab=function(){return _0x5784cf;};return _0x23ab();}function _0x6461(_0x11e6ba,_0x1542a6){_0x11e6ba=_0x11e6ba-0x198;const _0x23ab2a=_0x23ab();let _0x646185=_0x23ab2a[_0x11e6ba];return _0x646185;}export function matchAuthEnvironmentExact(_0x1f4f49,_0x34d1b7){const _0x2d8bd0={'LCPvY':function(_0x34bdcc,_0x3a9561){return _0x34bdcc(_0x3a9561);},'sqxxw':function(_0x3d3d31,_0x5e9676){return _0x3d3d31===_0x5e9676;}};if(!_0x34d1b7||!_0x34d1b7['environments'])return undefined;const _0xe7f900=originIdentity(_0x1f4f49);if(!_0xe7f900)return undefined;for(const [_0x57c0cb,_0x15ff1a]of Object['entries'](_0x34d1b7['environments'])){for(const _0x218d22 of _0x15ff1a['domains']??[]){const _0x369748=_0x2d8bd0['LCPvY'](originIdentity,_0x218d22);if(_0x369748&&_0x2d8bd0['sqxxw'](_0x369748,_0xe7f900))return _0x57c0cb;}}return undefined;}export function matchAuthEnvironmentByHost(_0x111124,_0x5132bb){const _0x5304d8=_0x6461,_0x4f2985={'VlDJS':function(_0x40a154,_0x17a638){return _0x40a154===_0x17a638;},'DgDbk':'localhost','iGNjv':function(_0x2a41af,_0x56a4e5){return _0x2a41af>_0x56a4e5;}};if(!_0x5132bb||!_0x5132bb['environments'])return undefined;let _0x43b829,_0x42244f;try{const _0x70b3b0=new URL(_0x111124);_0x43b829=_0x70b3b0['protocol']+'//'+_0x70b3b0[_0x5304d8(0x1a2)],_0x42244f=_0x70b3b0[_0x5304d8(0x1a2)];}catch{return undefined;}if(_0x42244f===_0x4f2985[_0x5304d8(0x19d)]||_0x42244f==='127.0.0.1')return undefined;const _0x1c3121=[];for(const [_0x447253,_0x578884]of Object['entries'](_0x5132bb[_0x5304d8(0x1a7)])){const _0x232792=(_0x578884[_0x5304d8(0x19b)]??[])[_0x5304d8(0x19c)](_0x4ad1bf=>{try{const _0x72a8d5=new URL(_0x4ad1bf);return _0x4f2985['VlDJS'](_0x72a8d5['protocol']+'//'+_0x72a8d5['hostname'],_0x43b829);}catch{return![];}});if(_0x232792)_0x1c3121['push'](_0x447253);}if(_0x1c3121['length']===0x1)return{'key':_0x1c3121[0x0]};if(_0x4f2985['iGNjv'](_0x1c3121['length'],0x1))return{'ambiguous':_0x1c3121};return undefined;}export function matchAuthEnvironment(_0xa68b1d,_0x56ccdd){const _0x10dbd5=_0x6461,_0x927efd={'BrMux':function(_0x28854e,_0x3a7ff3,_0x5830ea){return _0x28854e(_0x3a7ff3,_0x5830ea);},'tGSQt':function(_0x25c4c2,_0x547baf,_0xec0e0){return _0x25c4c2(_0x547baf,_0xec0e0);},'oCoid':function(_0x3a9b30,_0x4acebd){return _0x3a9b30 in _0x4acebd;},'vzevN':function(_0x1bd7ac,_0xff7eb6){return _0x1bd7ac(_0xff7eb6);}};if(!_0x56ccdd||!_0x56ccdd['environments'])return undefined;const _0x3d0564=_0x927efd[_0x10dbd5(0x1a3)](matchAuthEnvironmentExact,_0xa68b1d,_0x56ccdd);if(_0x3d0564)return _0x3d0564;const _0x53a10e=_0x927efd[_0x10dbd5(0x1a8)](matchAuthEnvironmentByHost,_0xa68b1d,_0x56ccdd);if(_0x53a10e&&_0x927efd['oCoid']('key',_0x53a10e))return _0x53a10e['key'];if(_0x53a10e&&_0x927efd['oCoid']('ambiguous',_0x53a10e))return undefined;if(_0x927efd['vzevN'](needsTunnel,_0xa68b1d))return undefined;if(_0x56ccdd[_0x10dbd5(0x19a)]&&_0x56ccdd[_0x10dbd5(0x1a7)][_0x56ccdd[_0x10dbd5(0x19a)]])return _0x56ccdd[_0x10dbd5(0x19a)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1baa9e,_0x12dd7c){const _0x42aa8b=_0x57ff,_0x13220b=_0x1baa9e();while(!![]){try{const _0x22057c=parseInt(_0x42aa8b(0x161))/0x1+-parseInt(_0x42aa8b(0x12d))/0x2*(parseInt(_0x42aa8b(0x135))/0x3)+parseInt(_0x42aa8b(0x13a))/0x4+parseInt(_0x42aa8b(0x13d))/0x5*(-parseInt(_0x42aa8b(0x14a))/0x6)+-parseInt(_0x42aa8b(0x130))/0x7*(-parseInt(_0x42aa8b(0x15d))/0x8)+parseInt(_0x42aa8b(0x14b))/0x9+-parseInt(_0x42aa8b(0x136))/0xa;if(_0x22057c===_0x12dd7c)break;else _0x13220b['push'](_0x13220b['shift']());}catch(_0x37d2c6){_0x13220b['push'](_0x13220b['shift']());}}}(_0x4c2e,0x95f61));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(_0x492896){return typeof _0x492896==='object'&&_0x492896!==null;}function isImageBlock(_0x37f12a){const _0x3d68ec=_0x57ff,_0x355b70={'PgBti':function(_0x62f9b6,_0x1e7904){return _0x62f9b6===_0x1e7904;}};return isRecord(_0x37f12a)&&_0x355b70[_0x3d68ec(0x12e)](_0x37f12a[_0x3d68ec(0x15b)],'image');}function isDataUrl(_0x4ed7a7){const _0x5edc66=_0x57ff,_0x39d13a={'uyIIX':_0x5edc66(0x152)};return _0x4ed7a7[_0x5edc66(0x13c)](_0x39d13a[_0x5edc66(0x14d)]);}function parseDataUrl(_0x53b900){const _0x581433=/^data:([^;]+);base64,(.+)$/['exec'](_0x53b900);if(!_0x581433)return null;const _0x17ee5f=_0x581433[0x1]['toLowerCase']();if(!isValidMediaType(_0x17ee5f))return null;return{'data':_0x581433[0x2],'mediaType':_0x17ee5f};}function isValidMediaType(_0x177f58){const _0x453312=_0x57ff,_0x816626={'krljn':_0x453312(0x143),'HoGVW':_0x453312(0x147),'XgQqV':'image/webp'};return[_0x816626['krljn'],_0x453312(0x154),_0x816626['HoGVW'],_0x816626[_0x453312(0x132)]]['includes'](_0x177f58);}function inferMediaType(_0x537f27,_0x101672){const _0x4d9ba2=_0x57ff,_0x5a982d={'wwbJe':function(_0x4616ad,_0x5843a1){return _0x4616ad(_0x5843a1);},'QUfYB':'jpeg','iZCdq':'image/jpeg','beGld':_0x4d9ba2(0x15e),'hIgwo':_0x4d9ba2(0x154),'gJiEi':'gif','eFokA':_0x4d9ba2(0x137),'yNhmU':_0x4d9ba2(0x16a)};if(_0x537f27){const _0x55c3fe=_0x537f27['toLowerCase']()['split'](';')[0x0][_0x4d9ba2(0x165)]();if(isValidMediaType(_0x55c3fe))return _0x55c3fe;}const _0x2d062b=_0x5a982d[_0x4d9ba2(0x162)](extname,_0x101672)[_0x4d9ba2(0x160)]()[_0x4d9ba2(0x167)]('.','');switch(_0x2d062b){case'jpg':case _0x5a982d[_0x4d9ba2(0x148)]:return _0x5a982d[_0x4d9ba2(0x134)];case _0x5a982d['beGld']:return _0x5a982d[_0x4d9ba2(0x157)];case _0x5a982d['gJiEi']:return'image/gif';case _0x5a982d['eFokA']:return _0x5a982d['yNhmU'];default:return _0x4d9ba2(0x154);}}async function readImageFromUrl(_0x3a257b){const _0x1f02e0=_0x57ff,_0x2f4098={'GeCjQ':'file://','jXjMf':function(_0x2abf48,_0xee0b2){return _0x2abf48(_0xee0b2);},'HIJxX':function(_0x338411,_0x49510a){return _0x338411>_0x49510a;},'Ydrra':_0x1f02e0(0x150),'djEtI':_0x1f02e0(0x145),'bRmbr':'https://','AWfMP':function(_0x4a7455,_0x1e2bd9,_0x2bfa29){return _0x4a7455(_0x1e2bd9,_0x2bfa29);},'AgZyg':function(_0x364ceb,_0x3278da){return _0x364ceb(_0x3278da);},'iAeTq':'content-type'};if(isDataUrl(_0x3a257b)){const _0x25a8e1=parseDataUrl(_0x3a257b);if(_0x25a8e1)return _0x25a8e1;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x3a257b['startsWith'](_0x2f4098['GeCjQ'])){const _0x586fcf=_0x2f4098[_0x1f02e0(0x153)](fileURLToPath,_0x3a257b),_0x1eb5be=await stat(_0x586fcf);if(_0x2f4098['HIJxX'](_0x1eb5be[_0x1f02e0(0x141)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x1f02e0(0x156)+MAX_IMAGE_SIZE_BYTES+_0x1f02e0(0x12f));const _0x5c7746=await readFile(_0x586fcf);return{'data':_0x5c7746['toString'](_0x2f4098['Ydrra']),'mediaType':inferMediaType(null,_0x586fcf)};}if(_0x3a257b['startsWith'](_0x2f4098[_0x1f02e0(0x142)])||_0x3a257b['startsWith'](_0x2f4098[_0x1f02e0(0x12c)])){const _0x38215b=await _0x2f4098[_0x1f02e0(0x13e)](fetch,_0x3a257b,{'signal':AbortSignal[_0x1f02e0(0x138)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x38215b['ok'])throw new Error(_0x1f02e0(0x146)+_0x38215b[_0x1f02e0(0x169)]);const _0x58c081=_0x38215b[_0x1f02e0(0x164)]['get']('content-length');if(_0x58c081){const _0x1c2403=_0x2f4098['AgZyg'](Number,_0x58c081);if(!Number[_0x1f02e0(0x139)](_0x1c2403)&&_0x1c2403>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x1f02e0(0x12f));}const _0x1d2bf0=await _0x38215b[_0x1f02e0(0x144)]();if(_0x1d2bf0['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x1f02e0(0x158)](_0x1d2bf0)['toString'](_0x2f4098['Ydrra']),'mediaType':inferMediaType(_0x38215b['headers']['get'](_0x2f4098[_0x1f02e0(0x149)]),_0x3a257b)};}const _0x21bcaa=await stat(_0x3a257b);if(_0x2f4098[_0x1f02e0(0x155)](_0x21bcaa['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x1f02e0(0x156)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xbc280a=await readFile(_0x3a257b);return{'data':_0xbc280a['toString'](_0x1f02e0(0x150)),'mediaType':inferMediaType(null,_0x3a257b)};}function _0x57ff(_0x4b5265,_0xf3db9c){_0x4b5265=_0x4b5265-0x12c;const _0x4c2ec8=_0x4c2e();let _0x57fff4=_0x4c2ec8[_0x4b5265];return _0x57fff4;}async function convertImageBlockToBase64(_0x18772b){const _0xb7061e=_0x57ff,_0x1929d={'WdLju':function(_0xc42833,_0x498bdd){return _0xc42833===_0x498bdd;}};if(_0x1929d['WdLju'](_0x18772b[_0xb7061e(0x133)]?.['type'],_0xb7061e(0x150)))return{'updated':![],'block':_0x18772b};if(_0x18772b[_0xb7061e(0x13b)]&&_0x18772b['mimeType'])return{'updated':![],'block':_0x18772b};const _0x49711b=_0x18772b[_0xb7061e(0x133)]?.['url']??_0x18772b['url'];if(!_0x49711b)return{'updated':![],'block':_0x18772b};const _0x119240=await readImageFromUrl(_0x49711b);return{'updated':!![],'block':{..._0x18772b,'source':{'type':'base64','media_type':_0x119240['mediaType'],'data':_0x119240['data']},'url':undefined}};}function _0x4c2e(){const _0xe6ec98=['content','744DjPjwH','png','kWOiZ','toLowerCase','286044QiXpVw','wwbJe','fromEntries','headers','trim','hook_event_name','replace','tool_response','status','image/webp','map','bRmbr','773408HUTNDC','PgBti','\x20bytes)','45451amlPjP','uRTwY','XgQqV','source','iZCdq','9EpPDMI','2190640gUcVjV','webp','timeout','isNaN','1647168nUBnEB','data','startsWith','1286845keswNT','AWfMP','all','asIBW','size','djEtI','image/jpeg','arrayBuffer','http://','Failed\x20to\x20fetch\x20image:\x20','image/gif','QUfYB','iAeTq','6jwIdGd','8541909McKiGn','updated','uyIIX','tzIbY','value','base64','njdij','data:','jXjMf','image/png','HIJxX','Image\x20exceeds\x20size\x20limit\x20(','hIgwo','from','block','bsgGE','type'];_0x4c2e=function(){return _0xe6ec98;};return _0x4c2e();}async function convertToolOutputImagesToBase64(_0x301ad5){const _0x4e9fb4=_0x57ff,_0x1da6f9={'tzIbY':function(_0x46446a,_0xcfdc67){return _0x46446a(_0xcfdc67);}};if(!_0x1da6f9['tzIbY'](isRecord,_0x301ad5))return{'updated':![],'output':_0x301ad5};const _0x5f5b89=_0x301ad5[_0x4e9fb4(0x15c)];if(!Array['isArray'](_0x5f5b89))return{'updated':![],'output':_0x301ad5};let _0x20ebab=![];const _0x590f05=await Promise[_0x4e9fb4(0x13f)](_0x5f5b89['map'](async _0xa2c7ea=>{const _0x241530=_0x4e9fb4;if(!_0x1da6f9[_0x241530(0x14e)](isImageBlock,_0xa2c7ea))return _0xa2c7ea;try{const _0x3580a1=await convertImageBlockToBase64(_0xa2c7ea);if(_0x3580a1[_0x241530(0x14c)])_0x20ebab=!![];return _0x3580a1[_0x241530(0x159)];}catch{return _0xa2c7ea;}}));if(!_0x20ebab)return{'updated':![],'output':_0x301ad5};return{'updated':!![],'output':{..._0x301ad5,'content':_0x590f05}};}function sanitizeLoneSurrogates(_0x246df5){const _0x53cde7=_0x57ff,_0x3ea0ca={'uRTwY':function(_0x397664,_0x137804){return _0x397664>=_0x137804;},'njdij':function(_0x45755b,_0x4cd4b9){return _0x45755b<=_0x4cd4b9;}};let _0xb1957e=![],_0x5487f9='';for(let _0x2b7649=0x0;_0x2b7649<_0x246df5['length'];_0x2b7649+=0x1){const _0x159d95=_0x246df5['charCodeAt'](_0x2b7649);if(_0x3ea0ca[_0x53cde7(0x131)](_0x159d95,0xd800)&&_0x159d95<=0xdbff){const _0x1a0704=_0x246df5['charCodeAt'](_0x2b7649+0x1);if(_0x1a0704>=0xdc00&&_0x1a0704<=0xdfff){_0x5487f9+=_0x246df5[_0x2b7649]+_0x246df5[_0x2b7649+0x1],_0x2b7649+=0x1;continue;}_0xb1957e=!![],_0x5487f9+='�';continue;}if(_0x159d95>=0xdc00&&_0x3ea0ca[_0x53cde7(0x151)](_0x159d95,0xdfff)){_0xb1957e=!![],_0x5487f9+='�';continue;}_0x5487f9+=_0x246df5[_0x2b7649];}return _0xb1957e?{'updated':_0xb1957e,'value':_0x5487f9}:{'updated':_0xb1957e,'value':_0x246df5};}function sanitizeLoneSurrogatesDeep(_0x3abc7c){const _0x5ecf7c=_0x57ff,_0x31cbef={'YuybA':function(_0x201138,_0x9a6550){return _0x201138(_0x9a6550);},'kWOiZ':'string'};if(typeof _0x3abc7c===_0x31cbef[_0x5ecf7c(0x15f)])return sanitizeLoneSurrogates(_0x3abc7c);if(Array['isArray'](_0x3abc7c)){let _0x14dc32=![];const _0x3932f5=_0x3abc7c['map'](_0x373ea9=>{const _0x51f818=sanitizeLoneSurrogatesDeep(_0x373ea9);return _0x51f818['updated']&&(_0x14dc32=!![]),_0x51f818['value'];});return _0x14dc32?{'updated':!![],'value':_0x3932f5}:{'updated':![],'value':_0x3abc7c};}if(!isRecord(_0x3abc7c))return{'updated':![],'value':_0x3abc7c};let _0x91ec87=![];const _0x48c83a=Object['entries'](_0x3abc7c)[_0x5ecf7c(0x16b)](([_0xf9f7c8,_0x5b0bc7])=>{const _0x1c09a0=_0x31cbef['YuybA'](sanitizeLoneSurrogatesDeep,_0x5b0bc7);return _0x1c09a0['updated']&&(_0x91ec87=!![]),[_0xf9f7c8,_0x1c09a0['value']];});return _0x91ec87?{'updated':!![],'value':Object[_0x5ecf7c(0x163)](_0x48c83a)}:{'updated':![],'value':_0x3abc7c};}export function createMcpImageBase64Hook(){const _0x41b0d8={'asIBW':function(_0xb6f42c,_0x252444){return _0xb6f42c!==_0x252444;},'bsgGE':function(_0x422731,_0x438e77){return _0x422731(_0x438e77);}};return async _0x5f447b=>{const _0x1d09e9=_0x57ff;if(_0x41b0d8[_0x1d09e9(0x140)](_0x5f447b[_0x1d09e9(0x166)],'PostToolUse'))return{};const _0x56f32c=_0x5f447b,_0x106e2a=await convertToolOutputImagesToBase64(_0x56f32c[_0x1d09e9(0x168)]),_0x4957b9=_0x41b0d8[_0x1d09e9(0x15a)](sanitizeLoneSurrogatesDeep,_0x106e2a['output']),_0x123f5b=_0x106e2a[_0x1d09e9(0x14c)]||_0x4957b9['updated'];if(!_0x123f5b)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x4957b9[_0x1d09e9(0x14f)]}};};}
|
|
1
|
+
(function(_0x5ec089,_0xdc8426){const _0x18329c=_0x2042,_0x25cdd9=_0x5ec089();while(!![]){try{const _0x4a21c5=-parseInt(_0x18329c(0x11e))/0x1*(-parseInt(_0x18329c(0x144))/0x2)+-parseInt(_0x18329c(0x13a))/0x3+-parseInt(_0x18329c(0x109))/0x4*(-parseInt(_0x18329c(0x131))/0x5)+-parseInt(_0x18329c(0x116))/0x6*(parseInt(_0x18329c(0x115))/0x7)+-parseInt(_0x18329c(0x14a))/0x8*(-parseInt(_0x18329c(0x119))/0x9)+-parseInt(_0x18329c(0x127))/0xa*(-parseInt(_0x18329c(0x13b))/0xb)+-parseInt(_0x18329c(0x148))/0xc;if(_0x4a21c5===_0xdc8426)break;else _0x25cdd9['push'](_0x25cdd9['shift']());}catch(_0x1eee60){_0x25cdd9['push'](_0x25cdd9['shift']());}}}(_0x21ce,0x7d06a));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(_0xa36d15){const _0x4dffdc=_0x2042,_0x4155f7={'mtDbV':function(_0x19b1c9,_0x3772f6){return _0x19b1c9===_0x3772f6;},'ToQkw':function(_0x1976a3,_0x15c38a){return _0x1976a3!==_0x15c38a;}};return _0x4155f7[_0x4dffdc(0x111)](typeof _0xa36d15,_0x4dffdc(0x10f))&&_0x4155f7[_0x4dffdc(0x132)](_0xa36d15,null);}function isImageBlock(_0x3772fa){const _0x4675fc=_0x2042,_0x402052={'CUXrd':function(_0x42be7b,_0x69a2f){return _0x42be7b(_0x69a2f);},'anEyB':'image'};return _0x402052[_0x4675fc(0x122)](isRecord,_0x3772fa)&&_0x3772fa[_0x4675fc(0x112)]===_0x402052[_0x4675fc(0x11c)];}function isDataUrl(_0xdaf8f9){const _0x1ccf4d=_0x2042;return _0xdaf8f9[_0x1ccf4d(0x138)](_0x1ccf4d(0x12c));}function parseDataUrl(_0x2e9543){const _0x489aec=/^data:([^;]+);base64,(.+)$/['exec'](_0x2e9543);if(!_0x489aec)return null;const _0x43c167=_0x489aec[0x1]['toLowerCase']();if(!isValidMediaType(_0x43c167))return null;return{'data':_0x489aec[0x2],'mediaType':_0x43c167};}function isValidMediaType(_0x358b73){const _0x25d82d=_0x2042,_0x434f0f={'CedBU':'image/webp'};return['image/jpeg','image/png','image/gif',_0x434f0f[_0x25d82d(0x11d)]]['includes'](_0x358b73);}function inferMediaType(_0x441409,_0x1f789b){const _0x331c88=_0x2042,_0x37ffe1={'zbRoz':function(_0x1b9053,_0xb741eb){return _0x1b9053(_0xb741eb);},'tcMrJ':_0x331c88(0x12e),'DuwEN':_0x331c88(0x149),'MjhxP':'webp','FqvON':'image/webp'};if(_0x441409){const _0x8e5b38=_0x441409[_0x331c88(0x108)]()['split'](';')[0x0][_0x331c88(0x141)]();if(_0x37ffe1[_0x331c88(0x130)](isValidMediaType,_0x8e5b38))return _0x8e5b38;}const _0x2f6fe0=_0x37ffe1[_0x331c88(0x130)](extname,_0x1f789b)[_0x331c88(0x108)]()['replace']('.','');switch(_0x2f6fe0){case'jpg':case _0x331c88(0x125):return _0x37ffe1[_0x331c88(0x12f)];case _0x331c88(0x14e):return _0x331c88(0x123);case'gif':return _0x37ffe1['DuwEN'];case _0x37ffe1[_0x331c88(0x13c)]:return _0x37ffe1[_0x331c88(0x11a)];default:return'image/png';}}function _0x2042(_0x4e9d50,_0xb631a8){_0x4e9d50=_0x4e9d50-0x108;const _0x21ce7e=_0x21ce();let _0x2042ab=_0x21ce7e[_0x4e9d50];return _0x2042ab;}async function readImageFromUrl(_0x519b44){const _0x5b647b=_0x2042,_0x42fe82={'bonUC':_0x5b647b(0x14b),'vdlWy':function(_0x549eaf,_0x426c40){return _0x549eaf(_0x426c40);},'Hxsxw':'base64','FPfag':function(_0xe218c9,_0x3d4494,_0x1236a8){return _0xe218c9(_0x3d4494,_0x1236a8);},'OhilA':_0x5b647b(0x126),'FUiKr':_0x5b647b(0x13e),'IwCDY':function(_0x89802f,_0x2c55ba,_0x546cff){return _0x89802f(_0x2c55ba,_0x546cff);},'jTLpq':function(_0x18c844,_0x354723){return _0x18c844>_0x354723;},'zsXqD':_0x5b647b(0x13d),'ImvMr':function(_0x3d4e2e,_0x59b838){return _0x3d4e2e(_0x59b838);},'VhYUA':function(_0x7a2293,_0x4765a8){return _0x7a2293(_0x4765a8);}};if(isDataUrl(_0x519b44)){const _0x20b359=parseDataUrl(_0x519b44);if(_0x20b359)return _0x20b359;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x519b44[_0x5b647b(0x138)](_0x42fe82['bonUC'])){const _0x45a434=fileURLToPath(_0x519b44),_0x3e420e=await _0x42fe82[_0x5b647b(0x145)](stat,_0x45a434);if(_0x3e420e[_0x5b647b(0x12d)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x37df9c=await _0x42fe82[_0x5b647b(0x145)](readFile,_0x45a434);return{'data':_0x37df9c['toString'](_0x42fe82['Hxsxw']),'mediaType':_0x42fe82['FPfag'](inferMediaType,null,_0x45a434)};}if(_0x519b44[_0x5b647b(0x138)](_0x42fe82[_0x5b647b(0x113)])||_0x519b44['startsWith'](_0x42fe82[_0x5b647b(0x118)])){const _0x59cc7e=await _0x42fe82['IwCDY'](fetch,_0x519b44,{'signal':AbortSignal[_0x5b647b(0x128)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x59cc7e['ok'])throw new Error(_0x5b647b(0x124)+_0x59cc7e['status']);const _0x198fa5=_0x59cc7e['headers']['get']('content-length');if(_0x198fa5){const _0xf5f151=Number(_0x198fa5);if(!Number[_0x5b647b(0x133)](_0xf5f151)&&_0xf5f151>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5b647b(0x10d)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x797d48=await _0x59cc7e['arrayBuffer']();if(_0x42fe82['jTLpq'](_0x797d48[_0x5b647b(0x10b)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0x5b647b(0x11b)](_0x797d48)[_0x5b647b(0x143)](_0x42fe82['Hxsxw']),'mediaType':_0x42fe82['FPfag'](inferMediaType,_0x59cc7e['headers'][_0x5b647b(0x129)](_0x42fe82[_0x5b647b(0x12a)]),_0x519b44)};}const _0x14d1de=await _0x42fe82[_0x5b647b(0x147)](stat,_0x519b44);if(_0x14d1de[_0x5b647b(0x12d)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5b647b(0x10d)+MAX_IMAGE_SIZE_BYTES+_0x5b647b(0x121));const _0x3f7874=await _0x42fe82[_0x5b647b(0x136)](readFile,_0x519b44);return{'data':_0x3f7874[_0x5b647b(0x143)](_0x42fe82['Hxsxw']),'mediaType':inferMediaType(null,_0x519b44)};}async function convertImageBlockToBase64(_0x527d75){const _0x4b3755=_0x2042,_0x5a95d2={'SSrYx':_0x4b3755(0x11f)};if(_0x527d75[_0x4b3755(0x110)]?.['type']===_0x5a95d2[_0x4b3755(0x14f)])return{'updated':![],'block':_0x527d75};if(_0x527d75[_0x4b3755(0x14d)]&&_0x527d75[_0x4b3755(0x10a)])return{'updated':![],'block':_0x527d75};const _0x376758=_0x527d75[_0x4b3755(0x110)]?.['url']??_0x527d75['url'];if(!_0x376758)return{'updated':![],'block':_0x527d75};const _0x4dc79b=await readImageFromUrl(_0x376758);return{'updated':!![],'block':{..._0x527d75,'source':{'type':_0x5a95d2[_0x4b3755(0x14f)],'media_type':_0x4dc79b[_0x4b3755(0x135)],'data':_0x4dc79b[_0x4b3755(0x14d)]},'url':undefined}};}function _0x21ce(){const _0x3f29f6=['JWZDk','toString','36070lhBIgy','vdlWy','content','ImvMr','1955868CyCyMx','image/gif','6140576ZWMSrO','file://','Vqvvm','data','png','SSrYx','toLowerCase','3086872IcjQjV','mimeType','byteLength','output','Image\x20exceeds\x20size\x20limit\x20(','voSVi','object','source','mtDbV','type','OhilA','PostToolUse','7sAqgdt','5202012yIfPFP','charCodeAt','FUiKr','9QDRfjw','FqvON','from','anEyB','CedBU','23NOypJe','base64','yNEJG','\x20bytes)','CUXrd','image/png','Failed\x20to\x20fetch\x20image:\x20','jpeg','http://','10swMcjr','timeout','get','zsXqD','isArray','data:','size','image/jpeg','tcMrJ','zbRoz','5yNgeKW','ToQkw','isNaN','value','mediaType','VhYUA','qozYG','startsWith','map','2147427YMRiJT','3341921cdFixi','MjhxP','content-type','https://','abSVY','updated','trim'];_0x21ce=function(){return _0x3f29f6;};return _0x21ce();}async function convertToolOutputImagesToBase64(_0x26c274){const _0x3e0060=_0x2042,_0x4c8295={'JWZDk':function(_0x63369c,_0xe61010){return _0x63369c(_0xe61010);},'qozYG':function(_0x1559f4,_0x5e84b2){return _0x1559f4(_0x5e84b2);}};if(!_0x4c8295[_0x3e0060(0x137)](isRecord,_0x26c274))return{'updated':![],'output':_0x26c274};const _0x1b3903=_0x26c274[_0x3e0060(0x146)];if(!Array[_0x3e0060(0x12b)](_0x1b3903))return{'updated':![],'output':_0x26c274};let _0x58c953=![];const _0x57302d=await Promise['all'](_0x1b3903[_0x3e0060(0x139)](async _0x3b1a42=>{const _0x26edd8=_0x3e0060;if(!_0x4c8295[_0x26edd8(0x142)](isImageBlock,_0x3b1a42))return _0x3b1a42;try{const _0x3466d3=await _0x4c8295['JWZDk'](convertImageBlockToBase64,_0x3b1a42);if(_0x3466d3['updated'])_0x58c953=!![];return _0x3466d3['block'];}catch{return _0x3b1a42;}}));if(!_0x58c953)return{'updated':![],'output':_0x26c274};return{'updated':!![],'output':{..._0x26c274,'content':_0x57302d}};}function sanitizeLoneSurrogates(_0xfa2b1e){const _0x2bed1d=_0x2042,_0x168334={'abSVY':function(_0x38a795,_0xeec953){return _0x38a795<=_0xeec953;},'voSVi':function(_0x5c9d8c,_0x32ae31){return _0x5c9d8c+_0x32ae31;},'yVFQj':function(_0x305117,_0x115d37){return _0x305117>=_0x115d37;}};let _0x3b6d74=![],_0x15155e='';for(let _0x1c34d4=0x0;_0x1c34d4<_0xfa2b1e['length'];_0x1c34d4+=0x1){const _0x5d388e=_0xfa2b1e[_0x2bed1d(0x117)](_0x1c34d4);if(_0x5d388e>=0xd800&&_0x168334['abSVY'](_0x5d388e,0xdbff)){const _0x3c3121=_0xfa2b1e[_0x2bed1d(0x117)](_0x168334['voSVi'](_0x1c34d4,0x1));if(_0x3c3121>=0xdc00&&_0x168334[_0x2bed1d(0x13f)](_0x3c3121,0xdfff)){_0x15155e+=_0x168334[_0x2bed1d(0x10e)](_0xfa2b1e[_0x1c34d4],_0xfa2b1e[_0x168334['voSVi'](_0x1c34d4,0x1)]),_0x1c34d4+=0x1;continue;}_0x3b6d74=!![],_0x15155e+='�';continue;}if(_0x168334['yVFQj'](_0x5d388e,0xdc00)&&_0x168334[_0x2bed1d(0x13f)](_0x5d388e,0xdfff)){_0x3b6d74=!![],_0x15155e+='�';continue;}_0x15155e+=_0xfa2b1e[_0x1c34d4];}return _0x3b6d74?{'updated':_0x3b6d74,'value':_0x15155e}:{'updated':_0x3b6d74,'value':_0xfa2b1e};}function sanitizeLoneSurrogatesDeep(_0x2cb1b0){const _0x4dcc6b=_0x2042,_0x343483={'Vqvvm':function(_0x43b540,_0x39948){return _0x43b540(_0x39948);},'yNEJG':function(_0xeaaccb,_0x337208){return _0xeaaccb(_0x337208);}};if(typeof _0x2cb1b0==='string')return sanitizeLoneSurrogates(_0x2cb1b0);if(Array['isArray'](_0x2cb1b0)){let _0x341cae=![];const _0x563f3a=_0x2cb1b0[_0x4dcc6b(0x139)](_0x52d6c1=>{const _0x11e105=_0x4dcc6b,_0x1d2afc=_0x343483[_0x11e105(0x14c)](sanitizeLoneSurrogatesDeep,_0x52d6c1);return _0x1d2afc[_0x11e105(0x140)]&&(_0x341cae=!![]),_0x1d2afc[_0x11e105(0x134)];});return _0x341cae?{'updated':!![],'value':_0x563f3a}:{'updated':![],'value':_0x2cb1b0};}if(!_0x343483[_0x4dcc6b(0x120)](isRecord,_0x2cb1b0))return{'updated':![],'value':_0x2cb1b0};let _0x58df6d=![];const _0x31462b=Object['entries'](_0x2cb1b0)['map'](([_0x3b4d46,_0x1c71b7])=>{const _0x500dc3=_0x4dcc6b,_0x2ed7a6=_0x343483[_0x500dc3(0x14c)](sanitizeLoneSurrogatesDeep,_0x1c71b7);return _0x2ed7a6['updated']&&(_0x58df6d=!![]),[_0x3b4d46,_0x2ed7a6['value']];});return _0x58df6d?{'updated':!![],'value':Object['fromEntries'](_0x31462b)}:{'updated':![],'value':_0x2cb1b0};}export function createMcpImageBase64Hook(){const _0x623aaf={'qzFca':function(_0x29383c,_0x4e3db4){return _0x29383c(_0x4e3db4);}};return async _0x4b51bb=>{const _0x3eb3fb=_0x2042;if(_0x4b51bb['hook_event_name']!==_0x3eb3fb(0x114))return{};const _0x16a112=_0x4b51bb,_0x44de3c=await convertToolOutputImagesToBase64(_0x16a112['tool_response']),_0xc09d80=_0x623aaf['qzFca'](sanitizeLoneSurrogatesDeep,_0x44de3c[_0x3eb3fb(0x10c)]),_0x486f79=_0x44de3c[_0x3eb3fb(0x140)]||_0xc09d80[_0x3eb3fb(0x140)];if(!_0x486f79)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0xc09d80['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4adc35=_0x87f0;(function(_0x5dee89,_0x2ae996){const _0xf3cf42=_0x87f0,_0xa2749a=_0x5dee89();while(!![]){try{const _0x1eece3=parseInt(_0xf3cf42(0x104))/0x1*(parseInt(_0xf3cf42(0x10b))/0x2)+parseInt(_0xf3cf42(0x109))/0x3+-parseInt(_0xf3cf42(0x107))/0x4+parseInt(_0xf3cf42(0x106))/0x5+parseInt(_0xf3cf42(0x102))/0x6+parseInt(_0xf3cf42(0x10a))/0x7+-parseInt(_0xf3cf42(0x100))/0x8;if(_0x1eece3===_0x2ae996)break;else _0xa2749a['push'](_0xa2749a['shift']());}catch(_0x8a9e98){_0xa2749a['push'](_0xa2749a['shift']());}}}(_0x28b2,0xbb291));function _0x87f0(_0x49a38c,_0x3a234a){_0x49a38c=_0x49a38c-0x100;const _0x28b238=_0x28b2();let _0x87f002=_0x28b238[_0x49a38c];return _0x87f002;}const VERIFY_MODEL_ALIASES={'opus':_0x4adc35(0x105),'sonnet':_0x4adc35(0x101)};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0xf5c3bc){const _0x8f0488=_0x4adc35;if(!_0xf5c3bc)return undefined;const _0x3a8351=_0xf5c3bc[_0x8f0488(0x103)]();if(!_0x3a8351)return undefined;const _0x9ceaa3=VERIFY_MODEL_ALIASES[_0x3a8351[_0x8f0488(0x108)]()];return _0x9ceaa3??_0x3a8351;}function _0x28b2(){const _0x1405ee=['trim','892401eREtNI','claude-opus-4-6','2470985VsAAnI','1460500ATlKoG','toLowerCase','339825QIEImm','8409779BEZjcW','2ohFSxz','22092920ChaIdY','claude-sonnet-4-6','7152474EyQKWo'];_0x28b2=function(){return _0x1405ee;};return _0x28b2();}
|