@ranger-testing/ranger-cli 3.1.3 → 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.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -0
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +2 -1
@@ -1 +1 @@
1
- function _0x5dc2(){const _0x5e3cb5=['yYCLV','yNVkI','concat','fixWebmDuration.ts','DPVPf','lwlME','LlxCN','imYpk','kKBGm','Fixed:\x20','offset','14220552ZEBMYg','Hkxyr','xvbSP','qjkJY','igsmE','3523335nhNyDN','alloc','zhrKX','vMhXJ','5622438iDMfRC','KXgaf','argv','pow','hYswX','oCTGF','sizeLen','cPTxY','hdYCs','slice','eIzFW','xVwwa','rYmyO','ovGhM','612075XDnUOX','IYlbx','dDSHZ','eIxWi','from','844818rkxSWQ','dataOffset','rajcB','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','length','3054760CVsLbw','UfsLq','error','TwXaq','idLen','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','hVknM','NCHfa','GJCCD','writeDoubleBE','dKmNE','2070156ZJujyV','dataSize','log','zQqJf','wIlSn','lXtjE','readInt16BE','indexOf','xmhCR','endsWith','min','7LQuCdg','vvcco','JplGN'];_0x5dc2=function(){return _0x5e3cb5;};return _0x5dc2();}const _0x193478=_0x44bc;(function(_0x537cc4,_0x43b276){const _0x49eef7=_0x44bc,_0x5eb07d=_0x537cc4();while(!![]){try{const _0x4f6143=-parseInt(_0x49eef7(0x128))/0x1+-parseInt(_0x49eef7(0x12d))/0x2+parseInt(_0x49eef7(0x111))/0x3+-parseInt(_0x49eef7(0x138))/0x4+-parseInt(_0x49eef7(0x123))/0x5+parseInt(_0x49eef7(0x115))/0x6*(parseInt(_0x49eef7(0xfe))/0x7)+parseInt(_0x49eef7(0x10c))/0x8;if(_0x4f6143===_0x43b276)break;else _0x5eb07d['push'](_0x5eb07d['shift']());}catch(_0x28c995){_0x5eb07d['push'](_0x5eb07d['shift']());}}}(_0x5dc2,0xd6187));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 _0x44bc(_0x126fa3,_0x456fe7){_0x126fa3=_0x126fa3-0xf6;const _0x5dc212=_0x5dc2();let _0x44bc84=_0x5dc212[_0x126fa3];return _0x44bc84;}function readVint(_0x189c4b,_0x3d60ac){const _0x50120a=_0x44bc,_0xd9ab88={'NilJF':function(_0x549795,_0x5f0010){return _0x549795>=_0x5f0010;},'vvcco':function(_0x4e5d3a,_0x2e320a){return _0x4e5d3a>_0x2e320a;},'hYswX':function(_0x499143,_0x1fb687){return _0x499143+_0x1fb687;},'vFvgn':function(_0x58e6ac,_0x9e1dc){return _0x58e6ac&_0x9e1dc;}};if(_0xd9ab88['NilJF'](_0x3d60ac,_0x189c4b['length']))return[0x0,0x0];const _0x561ba6=_0x189c4b[_0x3d60ac];let _0x2d4541=0x1,_0x19aacf=0x80;while(_0x2d4541<=0x8&&!(_0x561ba6&_0x19aacf)){_0x2d4541++,_0x19aacf>>=0x1;}if(_0xd9ab88[_0x50120a(0xff)](_0xd9ab88['hYswX'](_0x3d60ac,_0x2d4541),_0x189c4b[_0x50120a(0x12c)]))return[0x0,0x0];let _0x10cad5=_0xd9ab88['vFvgn'](_0x561ba6,_0x19aacf-0x1);for(let _0x51d2c4=0x1;_0x51d2c4<_0x2d4541;_0x51d2c4++){_0x10cad5=_0xd9ab88['hYswX'](_0x10cad5*0x100,_0x189c4b[_0xd9ab88[_0x50120a(0x119)](_0x3d60ac,_0x51d2c4)]);}return[_0x10cad5,_0x2d4541];}function readId(_0x21a36f,_0xa7f150){const _0x11c84d=_0x44bc,_0x278c48={'YphBD':function(_0x16af42,_0x3979a7){return _0x16af42>=_0x3979a7;},'hVknM':function(_0x54c99b,_0x2bca37){return _0x54c99b>=_0x2bca37;},'YJJpG':function(_0x8502e1,_0x4b333a){return _0x8502e1>=_0x4b333a;},'JplGN':function(_0x5efe34,_0x22384b){return _0x5efe34+_0x22384b;}};if(_0x278c48['YphBD'](_0xa7f150,_0x21a36f[_0x11c84d(0x12c)]))return[0x0,0x0];const _0xb116ed=_0x21a36f[_0xa7f150];let _0x11f1da;if(_0x278c48[_0x11c84d(0x133)](_0xb116ed,0x80))_0x11f1da=0x1;else{if(_0x278c48[_0x11c84d(0x133)](_0xb116ed,0x40))_0x11f1da=0x2;else{if(_0x278c48['YJJpG'](_0xb116ed,0x20))_0x11f1da=0x3;else{if(_0xb116ed>=0x10)_0x11f1da=0x4;else return[_0xb116ed,0x1];}}}if(_0xa7f150+_0x11f1da>_0x21a36f[_0x11c84d(0x12c)])return[0x0,0x0];let _0x497869=0x0;for(let _0xc3e4d3=0x0;_0xc3e4d3<_0x11f1da;_0xc3e4d3++){_0x497869=_0x497869*0x100+_0x21a36f[_0x278c48[_0x11c84d(0x100)](_0xa7f150,_0xc3e4d3)];}return[_0x497869,_0x11f1da];}function readUint(_0x31ad59,_0x19a004,_0x44efce){let _0x1b6515=0x0;for(let _0x7f417a=0x0;_0x7f417a<_0x44efce;_0x7f417a++){_0x1b6515=_0x1b6515*0x100+_0x31ad59[_0x19a004+_0x7f417a];}return _0x1b6515;}function isUnknownSize(_0x48d393,_0x2b7fc4){const _0x5def44=_0x44bc,_0x223c21={'xmhCR':function(_0x437881,_0xf01d07){return _0x437881*_0xf01d07;}};return _0x48d393===Math[_0x5def44(0x118)](0x2,_0x223c21[_0x5def44(0xfb)](0x7,_0x2b7fc4))-0x1;}function writeId(_0x466a9c){const _0x1243d6=_0x44bc,_0x14ac98={'kPJQv':function(_0x302c1b,_0x21565b){return _0x302c1b<=_0x21565b;},'IoFOY':function(_0x29e3e4,_0x1b5ca5){return _0x29e3e4&_0x1b5ca5;},'aVHHk':function(_0x495328,_0x1b8d96){return _0x495328>>_0x1b8d96;},'rYmyO':function(_0x5b2c24,_0x1ec5f8){return _0x5b2c24&_0x1ec5f8;}};if(_0x466a9c<=0xff)return Buffer[_0x1243d6(0x127)]([_0x466a9c]);if(_0x14ac98['kPJQv'](_0x466a9c,0xffff))return Buffer[_0x1243d6(0x127)]([_0x14ac98['IoFOY'](_0x14ac98['aVHHk'](_0x466a9c,0x8),0xff),_0x466a9c&0xff]);if(_0x466a9c<=0xffffff)return Buffer[_0x1243d6(0x127)]([_0x14ac98['aVHHk'](_0x466a9c,0x10)&0xff,_0x14ac98['IoFOY'](_0x466a9c>>0x8,0xff),_0x14ac98['IoFOY'](_0x466a9c,0xff)]);return Buffer['from']([_0x466a9c>>0x18&0xff,_0x466a9c>>0x10&0xff,_0x14ac98['rYmyO'](_0x466a9c>>0x8,0xff),_0x14ac98[_0x1243d6(0x121)](_0x466a9c,0xff)]);}function writeVint(_0x31351c,_0x2c0f3e){const _0x484a99=_0x44bc,_0xf23908={'hdYCs':function(_0x259e86,_0x1249f5){return _0x259e86*_0x1249f5;},'yNVkI':function(_0xa64c3e,_0x2ba63f){return _0xa64c3e>=_0x2ba63f;},'ulpVW':function(_0x1b47cb,_0x5bda99){return _0x1b47cb&_0x5bda99;},'aLgOF':function(_0x54920f,_0x4122da){return _0x54920f/_0x4122da;},'XOrBj':function(_0x1e407c,_0x542127){return _0x1e407c<<_0x542127;}};let _0x216c23=_0x2c0f3e||0x1;while(Math[_0x484a99(0x118)](0x2,_0xf23908[_0x484a99(0x11d)](0x7,_0x216c23))-0x2<_0x31351c)_0x216c23++;const _0x20edc0=Buffer['alloc'](_0x216c23);for(let _0x3b3b37=_0x216c23-0x1;_0xf23908[_0x484a99(0x102)](_0x3b3b37,0x0);_0x3b3b37--){_0x20edc0[_0x3b3b37]=_0xf23908['ulpVW'](_0x31351c,0xff),_0x31351c=Math['floor'](_0xf23908['aLgOF'](_0x31351c,0x100));}return _0x20edc0[0x0]|=_0xf23908['XOrBj'](0x1,0x8-_0x216c23),_0x20edc0;}function writeFloat64(_0x572a6a){const _0x499cea=_0x44bc,_0x469043=Buffer[_0x499cea(0x112)](0x8);return _0x469043[_0x499cea(0x136)](_0x572a6a,0x0),_0x469043;}function writeVoid(_0x4e438d){const _0x330d2d=_0x44bc,_0x3d7df4={'fkYYA':function(_0x47b82f,_0x5539af){return _0x47b82f-_0x5539af;},'xvbSP':function(_0x407c4c,_0x5acafb){return _0x407c4c*_0x5acafb;}};for(let _0x2a5a14=0x1;_0x2a5a14<=0x8;_0x2a5a14++){const _0x213ea8=_0x4e438d-0x1-_0x2a5a14;if(_0x213ea8>=0x0&&_0x213ea8<=_0x3d7df4['fkYYA'](Math['pow'](0x2,_0x3d7df4[_0x330d2d(0x10e)](0x7,_0x2a5a14)),0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x213ea8,_0x2a5a14),Buffer[_0x330d2d(0x112)](_0x213ea8)]);}return Buffer[_0x330d2d(0x112)](0x0);}function findElement(_0x19cdfd,_0x291fac,_0x1418af,_0x3d16b3){const _0x4d8857=_0x44bc,_0x5aa62c={'rdGLB':function(_0x38a8a1,_0x7de1dd,_0x3fb1b5){return _0x38a8a1(_0x7de1dd,_0x3fb1b5);},'rajcB':function(_0x2263fa,_0xfbc1d2){return _0x2263fa+_0xfbc1d2;},'igsmE':function(_0x3252ed,_0x2ccfa6){return _0x3252ed===_0x2ccfa6;},'dKmNE':function(_0x551520,_0x42735c){return _0x551520+_0x42735c;},'eIzFW':function(_0x53b287,_0x26a9fa,_0x3f5e73){return _0x53b287(_0x26a9fa,_0x3f5e73);}};let _0x14a09e=_0x291fac;while(_0x14a09e<_0x1418af){const [_0x4c46c7,_0x212314]=_0x5aa62c['rdGLB'](readId,_0x19cdfd,_0x14a09e),[_0x3fa8e5,_0x4a1384]=readVint(_0x19cdfd,_0x5aa62c[_0x4d8857(0x12a)](_0x14a09e,_0x212314));if(_0x5aa62c[_0x4d8857(0x110)](_0x4c46c7,_0x3d16b3))return{'offset':_0x14a09e,'idLen':_0x212314,'sizeLen':_0x4a1384,'dataSize':_0x3fa8e5,'dataOffset':_0x5aa62c[_0x4d8857(0x137)](_0x14a09e,_0x212314)+_0x4a1384};if(_0x5aa62c[_0x4d8857(0x11f)](isUnknownSize,_0x3fa8e5,_0x4a1384))break;_0x14a09e+=_0x212314+_0x4a1384+_0x3fa8e5;}return null;}function computeDurationMs(_0x526a9a,_0xb36d98){const _0x4276d0=_0x44bc,_0x531a41={'xVwwa':function(_0x3482b6,_0x5e22ee){return _0x3482b6===_0x5e22ee;},'Pooyd':function(_0x5242b2,_0x856f73,_0x49d258){return _0x5242b2(_0x856f73,_0x49d258);},'NCHfa':function(_0x2d755f,_0x474586){return _0x2d755f+_0x474586;},'Hkxyr':function(_0x34d474,_0x3ae64f){return _0x34d474+_0x3ae64f;},'zhrKX':function(_0x780a09,_0x9a7046){return _0x780a09-_0x9a7046;},'imYpk':function(_0x174e93,_0x5e94c4){return _0x174e93===_0x5e94c4;},'ImUvq':function(_0x280a62,_0x5f47a7,_0x3c6169){return _0x280a62(_0x5f47a7,_0x3c6169);},'dDSHZ':function(_0x10144f,_0x3e5ca6){return _0x10144f===_0x3e5ca6;},'zaUrx':function(_0x2b130d,_0x41f44b){return _0x2b130d+_0x41f44b;},'NbQhT':function(_0x563d12,_0x2e9bf5){return _0x563d12===_0x2e9bf5;},'kKBGm':function(_0x5e4b01,_0x53ff49){return _0x5e4b01>=_0x53ff49;},'cPTxY':function(_0xe51ef3,_0x5cb075,_0x511401){return _0xe51ef3(_0x5cb075,_0x511401);},'NomXC':function(_0x241b56,_0xb97f8a){return _0x241b56*_0xb97f8a;},'yYCLV':function(_0x132c64,_0x50b8be){return _0x132c64>_0x50b8be;},'UCFYj':function(_0x2ea822,_0x1d79fb){return _0x2ea822===_0x1d79fb;},'vMhXJ':function(_0x4d8b12,_0x2a1cc6,_0x51526b){return _0x4d8b12(_0x2a1cc6,_0x51526b);},'ovGhM':function(_0x4bfa7d,_0x5cc67c){return _0x4bfa7d+_0x5cc67c;}};let _0x35a54f=0x0;const _0x38b0e3=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x580d44=_0x526a9a[_0x4276d0(0xfa)](_0x38b0e3);if(_0x531a41[_0x4276d0(0x120)](_0x580d44,-0x1))return 0x0;while(_0x580d44<_0x526a9a[_0x4276d0(0x12c)]){const [_0x5dab94,_0x595c1e]=_0x531a41['Pooyd'](readId,_0x526a9a,_0x580d44);if(_0x5dab94!==ID_CLUSTER)break;const [_0x2d4231,_0x2b96cf]=readVint(_0x526a9a,_0x531a41[_0x4276d0(0x134)](_0x580d44,_0x595c1e)),_0x5670d4=_0x531a41[_0x4276d0(0x10d)](_0x580d44+_0x595c1e,_0x2b96cf),_0x21b3da=isUnknownSize(_0x2d4231,_0x2b96cf);let _0x15928f;if(_0x21b3da){let _0x5ab0bf=_0x5670d4;while(_0x5ab0bf<_0x531a41[_0x4276d0(0x113)](_0x526a9a[_0x4276d0(0x12c)],0x4)){const [_0x4c611b,_0x1e2538]=_0x531a41['Pooyd'](readId,_0x526a9a,_0x5ab0bf);if(_0x531a41[_0x4276d0(0x108)](_0x4c611b,ID_CLUSTER)){_0x15928f=_0x5ab0bf;break;}const [_0x10c803,_0x2ef338]=_0x531a41['Pooyd'](readVint,_0x526a9a,_0x5ab0bf+_0x1e2538);if(_0x531a41['ImUvq'](isUnknownSize,_0x10c803,_0x2ef338)){_0x15928f=_0x526a9a['length'];break;}_0x5ab0bf+=_0x1e2538+_0x2ef338+_0x10c803;}_0x15928f??=_0x526a9a['length'];}else _0x15928f=_0x5670d4+_0x2d4231;let _0xbfd8f=0x0,_0x26ca01=_0x5670d4;while(_0x26ca01<_0x15928f){const [_0x525960,_0x39ba26]=readId(_0x526a9a,_0x26ca01),[_0x4310df,_0x22980a]=readVint(_0x526a9a,_0x26ca01+_0x39ba26);if(_0x531a41[_0x4276d0(0x125)](_0x525960,ID_TIMESTAMP))_0xbfd8f=readUint(_0x526a9a,_0x531a41['zaUrx'](_0x26ca01,_0x39ba26)+_0x22980a,_0x4310df);else{if(_0x531a41['NbQhT'](_0x525960,ID_SIMPLE_BLOCK)&&_0x531a41[_0x4276d0(0x109)](_0x4310df,0x4)){const _0x51d1df=_0x26ca01+_0x39ba26+_0x22980a,[,_0x9094f1]=_0x531a41[_0x4276d0(0x11c)](readVint,_0x526a9a,_0x51d1df),_0x33f8e6=_0x526a9a[_0x4276d0(0xf9)](_0x51d1df+_0x9094f1),_0x265c33=_0x531a41['NomXC'](_0xbfd8f+_0x33f8e6,_0xb36d98)/0xf4240;_0x531a41[_0x4276d0(0x101)](_0x265c33,_0x35a54f)&&(_0x35a54f=_0x265c33);}else{if(_0x531a41['UCFYj'](_0x525960,ID_CLUSTER))break;}}if(_0x531a41[_0x4276d0(0x114)](isUnknownSize,_0x4310df,_0x22980a))break;_0x26ca01+=_0x531a41[_0x4276d0(0x122)](_0x39ba26,_0x22980a)+_0x4310df;}_0x580d44=_0x15928f;}return _0x35a54f;}export function fixWebmDuration(_0xa69247,_0x130623){const _0x5854e9=_0x44bc,_0x40a9d4={'wIlSn':function(_0x1784b,_0x5c43ec){return _0x1784b(_0x5c43ec);},'eIxWi':function(_0x20e893,_0x21fe49){return _0x20e893+_0x21fe49;},'qjkJY':function(_0x11965d,_0x3693ee,_0x79b874){return _0x11965d(_0x3693ee,_0x79b874);},'KXgaf':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','DLmNF':function(_0x5d7d97,_0x56790b){return _0x5d7d97+_0x56790b;},'LlxCN':function(_0x306ecd,_0x455fb8){return _0x306ecd+_0x455fb8;},'IYlbx':function(_0x42808f,_0x3d0c5e,_0x455c4b){return _0x42808f(_0x3d0c5e,_0x455c4b);},'DPVPf':function(_0x44069f,_0x14305e,_0x39bb67){return _0x44069f(_0x14305e,_0x39bb67);},'ugQIU':function(_0x356491,_0x2bfe0d){return _0x356491===_0x2bfe0d;},'zQqJf':function(_0x3694fc,_0x320c37){return _0x3694fc<=_0x320c37;},'dsGiF':function(_0x4073d0,_0xc3cd6a){return _0x4073d0(_0xc3cd6a);},'UfsLq':function(_0xf9433f,_0x45913c){return _0xf9433f(_0x45913c);},'oSSXd':function(_0x456ae2,_0x330951){return _0x456ae2-_0x330951;},'GJCCD':function(_0x29403c,_0x5db532,_0x1d6ec6,_0x335542,_0x512224,_0x4cbb44,_0x181c25){return _0x29403c(_0x5db532,_0x1d6ec6,_0x335542,_0x512224,_0x4cbb44,_0x181c25);},'oCTGF':function(_0x230c33,_0x46be55,_0xed522e){return _0x230c33(_0x46be55,_0xed522e);}},_0x103f31=_0x40a9d4[_0x5854e9(0xf7)](readFileSync,_0xa69247);let _0x3dc8be=0x0;const [_0x12e304,_0xf4c031]=readId(_0x103f31,_0x3dc8be),[_0x18e7d3,_0x1ffa05]=readVint(_0x103f31,_0x3dc8be+_0xf4c031);_0x3dc8be+=_0x40a9d4[_0x5854e9(0x126)](_0xf4c031+_0x1ffa05,_0x18e7d3);const [_0x8c4799,_0x14fa16]=_0x40a9d4['qjkJY'](readId,_0x103f31,_0x3dc8be);if(_0x8c4799!==ID_SEGMENT)return console['error'](_0x40a9d4[_0x5854e9(0x116)]),![];const [,_0x12fb21]=readVint(_0x103f31,_0x40a9d4[_0x5854e9(0x126)](_0x3dc8be,_0x14fa16)),_0x5d8ad8=_0x40a9d4['DLmNF'](_0x3dc8be,_0x14fa16)+_0x12fb21;let _0x596099=_0x5d8ad8;const _0x3ab084=Math[_0x5854e9(0xfd)](_0x103f31[_0x5854e9(0x12c)],_0x40a9d4[_0x5854e9(0x107)](_0x5d8ad8,0x2710));let _0x54bcf9=null,_0x51f234=null;while(_0x596099<_0x3ab084){const [_0x490e44,_0x56facb]=_0x40a9d4['IYlbx'](readId,_0x103f31,_0x596099),[_0x5de179,_0x10d62c]=_0x40a9d4[_0x5854e9(0x105)](readVint,_0x103f31,_0x596099+_0x56facb);_0x40a9d4['ugQIU'](_0x490e44,ID_VOID)&&!_0x54bcf9&&(_0x54bcf9={'offset':_0x596099,'idLen':_0x56facb,'sizeLen':_0x10d62c,'dataSize':_0x5de179,'dataOffset':_0x596099+_0x56facb+_0x10d62c});if(_0x40a9d4['ugQIU'](_0x490e44,ID_INFO)){_0x51f234={'offset':_0x596099,'idLen':_0x56facb,'sizeLen':_0x10d62c,'dataSize':_0x5de179,'dataOffset':_0x596099+_0x56facb+_0x10d62c};break;}if(_0x490e44===ID_CLUSTER)break;if(_0x40a9d4[_0x5854e9(0x124)](isUnknownSize,_0x5de179,_0x10d62c))break;_0x596099+=_0x56facb+_0x10d62c+_0x5de179;}if(!_0x51f234)return console[_0x5854e9(0x12f)]('Could\x20not\x20find\x20Info\x20element'),![];const _0x5cc310=findElement(_0x103f31,_0x51f234['dataOffset'],_0x51f234[_0x5854e9(0x129)]+_0x51f234[_0x5854e9(0x139)],ID_DURATION);if(_0x5cc310)return![];const _0x1cd5db=findElement(_0x103f31,_0x51f234['dataOffset'],_0x40a9d4['DLmNF'](_0x51f234['dataOffset'],_0x51f234['dataSize']),ID_TIMESTAMP_SCALE);let _0x148d62=0xf4240;_0x1cd5db&&(_0x148d62=readUint(_0x103f31,_0x1cd5db[_0x5854e9(0x129)],_0x1cd5db[_0x5854e9(0x139)]));const _0x48f0ac=_0x40a9d4['IYlbx'](computeDurationMs,_0x103f31,_0x148d62);if(_0x40a9d4[_0x5854e9(0xf6)](_0x48f0ac,0x0))return console[_0x5854e9(0x12f)]('Could\x20not\x20compute\x20duration'),![];const _0x3190c6=_0x48f0ac*0xf4240/_0x148d62,_0x21bf8d=Buffer['concat']([_0x40a9d4['dsGiF'](writeId,ID_DURATION),writeVint(0x8),_0x40a9d4[_0x5854e9(0x12e)](writeFloat64,_0x3190c6)]),_0x331023=_0x21bf8d[_0x5854e9(0x12c)];if(!_0x54bcf9||_0x54bcf9[_0x5854e9(0x10b)]<_0x51f234['offset']){if(_0x54bcf9){const _0x2d2cba=_0x54bcf9[_0x5854e9(0x131)]+_0x54bcf9[_0x5854e9(0x11b)]+_0x54bcf9[_0x5854e9(0x139)],_0x4206ae=_0x40a9d4['oSSXd'](_0x2d2cba,_0x331023);if(_0x4206ae<0x2)return _0x40a9d4[_0x5854e9(0x135)](rewriteFile,_0x103f31,_0x51f234,_0x21bf8d,_0x148d62,_0x48f0ac,_0x130623);const _0x12e80f=_0x40a9d4[_0x5854e9(0x107)](_0x51f234[_0x5854e9(0x139)],_0x331023),_0x170f69=Buffer[_0x5854e9(0x103)]([writeId(ID_INFO),_0x40a9d4[_0x5854e9(0x10f)](writeVint,_0x12e80f,_0x51f234['sizeLen'])]),_0x50155a=_0x103f31[_0x5854e9(0x11e)](_0x51f234['dataOffset'],_0x51f234[_0x5854e9(0x129)]+_0x51f234[_0x5854e9(0x139)]),_0x469b8d=_0x40a9d4['dsGiF'](writeVoid,_0x4206ae),_0x3e475e=_0x103f31[_0x5854e9(0x11e)](0x0,_0x54bcf9[_0x5854e9(0x10b)]),_0x236b85=_0x103f31['slice'](_0x40a9d4[_0x5854e9(0x107)](_0x51f234['dataOffset'],_0x51f234['dataSize']));return _0x40a9d4[_0x5854e9(0x11a)](writeFileSync,_0x130623,Buffer['concat']([_0x3e475e,_0x469b8d,_0x170f69,_0x50155a,_0x21bf8d,_0x236b85])),!![];}}return _0x40a9d4['GJCCD'](rewriteFile,_0x103f31,_0x51f234,_0x21bf8d,_0x148d62,_0x48f0ac,_0x130623);}function rewriteFile(_0x76c0f2,_0x37833d,_0x5ad84b,_0x294258,_0x2cb9cb,_0x506893){const _0x1e5208=_0x44bc,_0x28668c={'lXtjE':function(_0x520083,_0x2ac15d){return _0x520083+_0x2ac15d;},'lwlME':function(_0x185d28,_0x310e00){return _0x185d28(_0x310e00);},'ohIhJ':function(_0x56daf7,_0x128533){return _0x56daf7+_0x128533;},'TwXaq':function(_0x439432,_0x662416,_0x283ddb){return _0x439432(_0x662416,_0x283ddb);}},_0x56302e=_0x28668c[_0x1e5208(0xf8)](_0x37833d[_0x1e5208(0x139)],_0x5ad84b['length']),_0x3309b3=Buffer['concat']([_0x28668c[_0x1e5208(0x106)](writeId,ID_INFO),writeVint(_0x56302e)]),_0x3bba66=_0x28668c['ohIhJ'](_0x37833d[_0x1e5208(0x131)],_0x37833d['sizeLen']),_0x2c378d=_0x76c0f2['slice'](0x0,_0x37833d[_0x1e5208(0x10b)]),_0x39594f=_0x76c0f2[_0x1e5208(0x11e)](_0x37833d['dataOffset'],_0x37833d['dataOffset']+_0x37833d[_0x1e5208(0x139)]),_0x5e4c45=_0x76c0f2['slice'](_0x37833d[_0x1e5208(0x10b)]+_0x3bba66+_0x37833d['dataSize']);return _0x28668c[_0x1e5208(0x130)](writeFileSync,_0x506893,Buffer[_0x1e5208(0x103)]([_0x2c378d,_0x3309b3,_0x39594f,_0x5ad84b,_0x5e4c45])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x193478(0x104))||process['argv'][0x1]?.[_0x193478(0xfc)]('fixWebmDuration.js')){const input=process[_0x193478(0x117)][0x2],output=process[_0x193478(0x117)][0x3];(!input||!output)&&(console[_0x193478(0x12f)](_0x193478(0x132)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x193478(0x13a)](_0x193478(0x10a)+output):console[_0x193478(0x13a)](_0x193478(0x12b));}
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(_0x16c357,_0x3c5a31){const _0x8ef3b3=_0x1a06,_0x1d6a03=_0x16c357();while(!![]){try{const _0x46ab61=-parseInt(_0x8ef3b3(0x9a))/0x1*(-parseInt(_0x8ef3b3(0x9c))/0x2)+-parseInt(_0x8ef3b3(0xa0))/0x3*(-parseInt(_0x8ef3b3(0x98))/0x4)+-parseInt(_0x8ef3b3(0xa1))/0x5+-parseInt(_0x8ef3b3(0x9b))/0x6+-parseInt(_0x8ef3b3(0x9d))/0x7*(parseInt(_0x8ef3b3(0x9f))/0x8)+parseInt(_0x8ef3b3(0x96))/0x9+-parseInt(_0x8ef3b3(0x95))/0xa*(-parseInt(_0x8ef3b3(0x9e))/0xb);if(_0x46ab61===_0x3c5a31)break;else _0x1d6a03['push'](_0x1d6a03['shift']());}catch(_0x3c5a50){_0x1d6a03['push'](_0x1d6a03['shift']());}}}(_0x41af,0x1d332));function _0x41af(){const _0x3db461=['TkJwE','3gbRkGY','941178zmpELH','69040bnYQBT','115227euIznD','66UOdVmH','64XbaEmG','95421rNOoto','302475fmiZih','git','421510XesNIQ','723375hDbazh','ls-files','4wpYHhm'];_0x41af=function(){return _0x3db461;};return _0x41af();}import{execFile as _0x19ffbc}from'child_process';import{promisify}from'util';function _0x1a06(_0x290193,_0x2fe843){_0x290193=_0x290193-0x95;const _0x41af91=_0x41af();let _0x1a06dd=_0x41af91[_0x290193];return _0x1a06dd;}const execFile=promisify(_0x19ffbc);export async function isPathGitTracked(_0x378317){const _0x58c37e=_0x1a06,_0x50e9dc={'VpubS':function(_0x13158c,_0x40f213,_0x51c210,_0x370132){return _0x13158c(_0x40f213,_0x51c210,_0x370132);},'TkJwE':_0x58c37e(0xa2),'SfWnH':_0x58c37e(0x97)};try{return await _0x50e9dc['VpubS'](execFile,_0x50e9dc[_0x58c37e(0x99)],[_0x50e9dc['SfWnH'],'--error-unmatch',_0x378317],{'cwd':process['cwd']()}),!![];}catch{return![];}}
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 _0x1db7cf=_0x281d;(function(_0x12bf98,_0x2922ed){const _0x532838=_0x281d,_0x35fe85=_0x12bf98();while(!![]){try{const _0x55d4fb=-parseInt(_0x532838(0x147))/0x1+-parseInt(_0x532838(0x129))/0x2+parseInt(_0x532838(0x146))/0x3*(-parseInt(_0x532838(0x113))/0x4)+-parseInt(_0x532838(0x141))/0x5*(parseInt(_0x532838(0x11f))/0x6)+parseInt(_0x532838(0x11d))/0x7+parseInt(_0x532838(0x13f))/0x8*(parseInt(_0x532838(0x136))/0x9)+parseInt(_0x532838(0x111))/0xa;if(_0x55d4fb===_0x2922ed)break;else _0x35fe85['push'](_0x35fe85['shift']());}catch(_0x296842){_0x35fe85['push'](_0x35fe85['shift']());}}}(_0x4eae,0x5f7ac));const _0x24c6c3=(function(){let _0x56ad22=!![];return function(_0x2515fd,_0xc0e16f){const _0x16821c=_0x56ad22?function(){const _0x19e695=_0x281d;if(_0xc0e16f){const _0xa5ae7b=_0xc0e16f[_0x19e695(0x143)](_0x2515fd,arguments);return _0xc0e16f=null,_0xa5ae7b;}}:function(){};return _0x56ad22=![],_0x16821c;};}()),_0x1eefc6=_0x24c6c3(this,function(){const _0x58c7b4=_0x281d,_0x538b57={'fTFZk':_0x58c7b4(0x110)};return _0x1eefc6[_0x58c7b4(0x149)]()[_0x58c7b4(0x14a)](_0x538b57[_0x58c7b4(0x114)])[_0x58c7b4(0x149)]()['constructor'](_0x1eefc6)[_0x58c7b4(0x14a)](_0x538b57[_0x58c7b4(0x114)]);});_0x1eefc6();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x4eae(){const _0x5deabb=['l2fWAs92ms9Ty3aVBwu','uKfor0vsx01duf9ut0TftG','CxjzC2O','zuHhyNO','kcGOlISPkYKRksSK','mJiYntK2nJbet01fsgy','DeXdBxK','odG4ohbmqKTwDG','zLrgwMS','ueXHsfO','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','DhjPBq','uwnsELO','uKfor0vsx0nmsv9ut0TftG','uwL3Ag0','qNLXALm','uMrIvLu','oti1oti1y2HJuxzY','t2vJzLe','mtuWrfbkq3rt','rxHzCfG','sffLu3K','C2LNBMfS','Awfgsvu','BePNBxm','u1HdyMC','yvDkD28','DxrMltG','y29UC3rYDwn0B3i','mtaWmJe4nNbZBwnUwa','lI90B2TLBLjLzNjLC2GUANm','r0vu','AuzhCue','D3fcD1G','C3bIuMy','uLbzwvi','D1roA3i','u2fosM4','whnrr24','uuzZALu','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','zvbAA3m','mtHsD096Aeu','u29ICg8','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','Ewvvvg0','AfH1shi','Bg9N','zw52','D1vSu3a','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','mJe0nJm3nLnNA3H0wa','ywjVCNq','mti2mJK1zK5rrwr4','vwPLquO','yxbWBhK','CMvMCMvZAc50Ehq','EgXSyNq','odCZCwnvvePR','nZi0ntGXEKjwtfHV','yLrjywG','Dg9tDhjPBMC','C2vHCMnO','B0DcCKm','AhLwt3K','A2TMuw0','EK9JDMS','vK5XBxO'];_0x4eae=function(){return _0x5deabb;};return _0x4eae();}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x1db7cf(0x119),ENV_TOKEN_LEGACY=_0x1db7cf(0x10d),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x1db7cf(0x144));function isGitHubCI(){const _0x282893=_0x1db7cf;return!!process[_0x282893(0x13c)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x2a1114,_0x442728){const _0x3f8121=_0x1db7cf,_0x548d5b={'KkdrJ':_0x3f8121(0x110),'XsiNQ':function(_0x1bfbf4,_0x5f460d){return _0x1bfbf4!==_0x5f460d;},'XsQGn':_0x3f8121(0x11c)},_0x30d625=process['env']['GITHUB_ENV'];if(_0x30d625){if(_0x548d5b['XsiNQ'](_0x548d5b[_0x3f8121(0x132)],_0x548d5b[_0x3f8121(0x132)]))return _0x1d7787[_0x3f8121(0x149)]()[_0x3f8121(0x14a)](YCJkDu['KkdrJ'])[_0x3f8121(0x149)]()[_0x3f8121(0x128)](_0x2920a4)[_0x3f8121(0x14a)](YCJkDu['KkdrJ']);else await appendFile(_0x30d625,_0x2a1114+'='+_0x442728+'\x0a');}}export async function storeToken(_0x21b3e0){const _0x3a291b=_0x1db7cf,_0x388837={'ByqjS':function(_0x439db3){return _0x439db3();},'iFGqA':function(_0x61aa13,_0x5e542a,_0x57ad59){return _0x61aa13(_0x5e542a,_0x57ad59);},'ePZks':function(_0xa3c792,_0x21d533,_0x11828a){return _0xa3c792(_0x21d533,_0x11828a);}};_0x388837[_0x3a291b(0x11b)](isGitHubCI)?await _0x388837[_0x3a291b(0x12c)](writeToGitHubEnv,ENV_TOKEN,_0x21b3e0):(await _0x388837[_0x3a291b(0x135)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x21b3e0,{'mode':0x180}));}export async function getToken(){const _0x16af66=_0x1db7cf,_0x6274b1={'OecfQ':_0x16af66(0x127),'hyVOy':function(_0x1b80a9){return _0x1b80a9();},'eHGbz':function(_0x398fbb,_0x120eed){return _0x398fbb(_0x120eed);},'xllbt':'../mcpBootstrap.js','ObKTC':function(_0xacc560){return _0xacc560();},'JxKsa':function(_0x5007df,_0x3f1bf6){return _0x5007df!==_0x3f1bf6;},'wUlSp':'OCWZV','UjeAJ':function(_0x56d4a9){return _0x56d4a9();},'qrYsj':_0x16af66(0x14d),'wqBwX':'kdPVB','SokZT':function(_0x472106,_0x10a39c){return _0x472106 instanceof _0x10a39c;},'itEBv':function(_0x3b23ea,_0x2efc28){return _0x3b23ea(_0x2efc28);},'ExYpX':_0x16af66(0x116),'xWexT':_0x16af66(0x138)};if(process[_0x16af66(0x13c)][ENV_TOKEN])return process[_0x16af66(0x13c)][ENV_TOKEN];if(process[_0x16af66(0x13c)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x5a5ce7=null;try{_0x5a5ce7=(await readFile(TOKEN_PATH,_0x6274b1[_0x16af66(0x11e)]))[_0x16af66(0x117)]()||null;}catch{const _0x252caf=await _0x6274b1[_0x16af66(0x14c)](tryRefreshToken);return _0x252caf;}if(!_0x5a5ce7)return null;const _0x1996c8=await _0x6274b1[_0x16af66(0x10f)](checkTokenValid,_0x5a5ce7);if(_0x1996c8)return _0x5a5ce7;const _0x4608ca=await _0x6274b1[_0x16af66(0x10f)](tryPromoteRefreshToken,_0x5a5ce7);if(_0x4608ca)return _0x4608ca;const _0x36f013=await _0x6274b1[_0x16af66(0x14c)](tryRefreshToken);if(_0x36f013)return _0x36f013;const {getMcpAuthOrigin:_0x379b19,mcpBootstrap:_0x409912}=await import(_0x6274b1[_0x16af66(0x145)]),_0x7f820=await _0x6274b1['ObKTC'](_0x379b19);if(_0x7f820){if(_0x6274b1['JxKsa'](_0x6274b1[_0x16af66(0x13d)],_0x16af66(0x12f)))try{console[_0x16af66(0x13b)](_0x16af66(0x134)),await _0x409912();const _0x51c40e=await _0x6274b1[_0x16af66(0x142)](tryRefreshToken);if(_0x51c40e)return _0x51c40e;}catch(_0x23a5d4){if(_0x6274b1[_0x16af66(0x10e)]===_0x6274b1[_0x16af66(0x12d)])return _0x103a09[_0x16af66(0x13c)][_0x12c299];else{const _0x28e77c=_0x6274b1['SokZT'](_0x23a5d4,Error)?_0x23a5d4['message']:_0x6274b1['itEBv'](String,_0x23a5d4);throw new Error(_0x16af66(0x13e)+_0x28e77c+'\x0a'+_0x6274b1[_0x16af66(0x120)]);}}else{const _0x388403=_0x273f19?function(){if(_0x48a76a){const _0x4e7d54=_0x97460a['apply'](_0x2aaf59,arguments);return _0x35fb20=null,_0x4e7d54;}}:function(){};return _0x22f4bd=![],_0x388403;}}throw new Error(_0x6274b1['xWexT']);}async function checkTokenValid(_0x4531c1){const _0x2956a8=_0x1db7cf,_0x20ca1c={'QFsjU':function(_0xa45690){return _0xa45690();},'SXCbg':_0x2956a8(0x12b)},_0x5b3378=new AbortController(),_0x37d05c=setTimeout(()=>_0x5b3378[_0x2956a8(0x140)](),0x1388);try{const {getApiBaseUrl:_0x5f0be3}=await import('./environment.js'),_0x307acf=_0x20ca1c[_0x2956a8(0x133)](_0x5f0be3),_0x460e1d=await fetch(_0x307acf+_0x2956a8(0x150),{'method':_0x20ca1c[_0x2956a8(0x125)],'headers':{'Authorization':'Bearer\x20'+_0x4531c1},'signal':_0x5b3378[_0x2956a8(0x122)]});return _0x460e1d['ok'];}catch{return!![];}finally{clearTimeout(_0x37d05c);}}function _0x281d(_0x25f56b,_0x4333a6){_0x25f56b=_0x25f56b-0x10d;const _0x4309f8=_0x4eae();let _0x1eefc6=_0x4309f8[_0x25f56b];if(_0x281d['PrQAVB']===undefined){var _0x24c6c3=function(_0x3d4511){const _0x38f19b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe9ff49='',_0x40aa84='',_0x2c6ec6=_0xe9ff49+_0x24c6c3;for(let _0x3268d2=0x0,_0x39eba7,_0xd4ebd5,_0x2265ca=0x0;_0xd4ebd5=_0x3d4511['charAt'](_0x2265ca++);~_0xd4ebd5&&(_0x39eba7=_0x3268d2%0x4?_0x39eba7*0x40+_0xd4ebd5:_0xd4ebd5,_0x3268d2++%0x4)?_0xe9ff49+=_0x2c6ec6['charCodeAt'](_0x2265ca+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x39eba7>>(-0x2*_0x3268d2&0x6)):_0x3268d2:0x0){_0xd4ebd5=_0x38f19b['indexOf'](_0xd4ebd5);}for(let _0x108c3b=0x0,_0xca1f6b=_0xe9ff49['length'];_0x108c3b<_0xca1f6b;_0x108c3b++){_0x40aa84+='%'+('00'+_0xe9ff49['charCodeAt'](_0x108c3b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40aa84);};_0x281d['AQqBEC']=_0x24c6c3,_0x281d['ukxiAa']={},_0x281d['PrQAVB']=!![];}const _0x4eaebf=_0x4309f8[0x0],_0x281d22=_0x25f56b+_0x4eaebf,_0x41de14=_0x281d['ukxiAa'][_0x281d22];if(!_0x41de14){const _0x273f19=function(_0x179a2a){this['GJRlwJ']=_0x179a2a,this['JDYGLE']=[0x1,0x0,0x0],this['gvLOki']=function(){return'newState';},this['wnFLaR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['LfBxHo']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x273f19['prototype']['vLKaFp']=function(){const _0x580cb1=new RegExp(this['wnFLaR']+this['LfBxHo']),_0x4aae2c=_0x580cb1['test'](this['gvLOki']['toString']())?--this['JDYGLE'][0x1]:--this['JDYGLE'][0x0];return this['FXPgLy'](_0x4aae2c);},_0x273f19['prototype']['FXPgLy']=function(_0xa00249){if(!Boolean(~_0xa00249))return _0xa00249;return this['itexfB'](this['GJRlwJ']);},_0x273f19['prototype']['itexfB']=function(_0x22f4bd){for(let _0x48a76a=0x0,_0x34b4c9=this['JDYGLE']['length'];_0x48a76a<_0x34b4c9;_0x48a76a++){this['JDYGLE']['push'](Math['round'](Math['random']())),_0x34b4c9=this['JDYGLE']['length'];}return _0x22f4bd(this['JDYGLE'][0x0]);},new _0x273f19(_0x281d)['vLKaFp'](),_0x1eefc6=_0x281d['AQqBEC'](_0x1eefc6),_0x281d['ukxiAa'][_0x281d22]=_0x1eefc6;}else _0x1eefc6=_0x41de14;return _0x1eefc6;}async function tryRefreshToken(){const _0x5bef81=_0x1db7cf,_0x18b405={'tLCmy':_0x5bef81(0x12a)},{refreshCliToken:_0x561db8}=await import(_0x18b405[_0x5bef81(0x112)]);return _0x561db8();}async function tryPromoteRefreshToken(_0x277a36){const _0x1da31f=_0x1db7cf,_0x1c5321={'lJgms':_0x1da31f(0x12a),'Qiwhm':function(_0x6a8724,_0x50be80,_0x1eab59){return _0x6a8724(_0x50be80,_0x1eab59);}},{refreshPartnerCliToken:_0x572aee}=await import(_0x1c5321[_0x1da31f(0x124)]);return _0x1c5321[_0x1da31f(0x11a)](_0x572aee,_0x277a36,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x25689b=_0x1db7cf,_0x144a34={'wTNkr':function(_0x314e1c,_0x1cc4c0){return _0x314e1c===_0x1cc4c0;},'WxxYf':_0x25689b(0x14f),'YjDBg':_0x25689b(0x115),'zOcvk':function(_0x3beeae,_0x39292a){return _0x3beeae(_0x39292a);},'SaNJn':function(_0x1ff57f,_0x5c3dbc){return _0x1ff57f!==_0x5c3dbc;},'hXuHr':_0x25689b(0x137)};try{return _0x144a34[_0x25689b(0x130)](_0x144a34['WxxYf'],_0x144a34['YjDBg'])?_0x5a8dd8[_0x25689b(0x13c)][_0x3cc316]:(await _0x144a34[_0x25689b(0x14e)](unlink,TOKEN_PATH),!![]);}catch{if(_0x144a34[_0x25689b(0x131)](_0x144a34[_0x25689b(0x13a)],_0x25689b(0x123)))return![];else{if(_0x40ab14){const _0x2ed106=_0xad2b69[_0x25689b(0x143)](_0xf19779,arguments);return _0x5cf4b6=null,_0x2ed106;}}}}export async function storeRefreshToken(_0x46acae){const _0x312a7c=_0x1db7cf,_0x4c6654={'aWJwo':function(_0x937872,_0x4a07c5,_0x29af4c){return _0x937872(_0x4a07c5,_0x29af4c);}};await _0x4c6654[_0x312a7c(0x126)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x46acae,{'mode':0x180});}export async function getRefreshToken(){const _0x237ceb=_0x1db7cf,_0xd3f7c9={'QcRzZ':function(_0x4969f8,_0x5a4dae,_0x16bd46){return _0x4969f8(_0x5a4dae,_0x16bd46);},'spbRf':function(_0x53d895,_0x369715){return _0x53d895!==_0x369715;},'oGBrC':_0x237ceb(0x148)};try{const _0x3f26d4=await _0xd3f7c9[_0x237ceb(0x118)](readFile,REFRESH_TOKEN_PATH,_0x237ceb(0x127));return _0x3f26d4[_0x237ceb(0x117)]()||null;}catch{if(_0xd3f7c9[_0x237ceb(0x12e)](_0xd3f7c9[_0x237ceb(0x14b)],_0x237ceb(0x148))){const _0x2150c4=_0x28b42d['apply'](_0x817625,arguments);return _0xca9fa3=null,_0x2150c4;}else return null;}}export async function deleteRefreshToken(){const _0x2985f1=_0x1db7cf,_0x253c17={'yeUTm':function(_0x31630a,_0x2dd541){return _0x31630a(_0x2dd541);}};try{return await _0x253c17[_0x2985f1(0x139)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x592777=_0x1db7cf,_0x4e1d2b={'eZIUx':function(_0x4b1d4b){return _0x4b1d4b();},'HQeSy':function(_0x2c6a20){return _0x2c6a20();}};await _0x4e1d2b['eZIUx'](deleteToken),await _0x4e1d2b[_0x592777(0x121)](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 _0x242b75=_0x3244;(function(_0x1a5853,_0x3d8b0b){const _0x10389d=_0x3244,_0x2f3fe=_0x1a5853();while(!![]){try{const _0x485354=parseInt(_0x10389d(0xfe))/0x1*(parseInt(_0x10389d(0xf8))/0x2)+parseInt(_0x10389d(0x106))/0x3*(-parseInt(_0x10389d(0x105))/0x4)+-parseInt(_0x10389d(0x108))/0x5*(parseInt(_0x10389d(0xf5))/0x6)+-parseInt(_0x10389d(0x10c))/0x7*(parseInt(_0x10389d(0x111))/0x8)+parseInt(_0x10389d(0x10f))/0x9+parseInt(_0x10389d(0xfa))/0xa*(-parseInt(_0x10389d(0x101))/0xb)+parseInt(_0x10389d(0x10a))/0xc*(parseInt(_0x10389d(0xf7))/0xd);if(_0x485354===_0x3d8b0b)break;else _0x2f3fe['push'](_0x2f3fe['shift']());}catch(_0x40ae74){_0x2f3fe['push'](_0x2f3fe['shift']());}}}(_0x5256,0x2de36));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0xb4bcaf=_0x3244,_0x2abe0b={'cDSvJ':function(_0x34aa61){return _0x34aa61();},'XwcSW':function(_0x356130,_0x4862b9,_0x57f857){return _0x356130(_0x4862b9,_0x57f857);},'nlwNF':'local','YfVSf':function(_0x3a095e,_0x5370bc,_0x2684b8){return _0x3a095e(_0x5370bc,_0x2684b8);},'COdiN':'active-profile.txt'},_0xb20078=getRangerDir(),_0x243293=_0x2abe0b['cDSvJ'](getRangerHomeDir);return[_0x2abe0b[_0xb4bcaf(0xfd)](join,_0xb20078,_0xb4bcaf(0x10b)),_0x2abe0b[_0xb4bcaf(0xfd)](join,_0xb20078,'ci'),_0x2abe0b['XwcSW'](join,_0x243293,_0x2abe0b['nlwNF']),_0x2abe0b[_0xb4bcaf(0x100)](join,_0xb20078,_0x2abe0b['COdiN'])]['filter'](_0x5bb7cf=>existsSync(_0x5bb7cf));}function flagFilePath(){const _0xe6720f=_0x3244,_0x20311e={'CmbRJ':function(_0x812d77,_0x279931,_0x14645d){return _0x812d77(_0x279931,_0x14645d);},'TNNpo':function(_0x38aeab){return _0x38aeab();}},_0x5f00b8=new Date()['toISOString']()['slice'](0x0,0xa);return _0x20311e['CmbRJ'](join,_0x20311e[_0xe6720f(0xfb)](getRangerHomeDir),_0xe6720f(0xf9)+_0x5f00b8);}function _0x5256(){const _0x4a321b=['12HDRAWx','265389kwjtsp','start','35OcKHsE','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','12IpXWUI','local','2425199jqRlkV','length','bBGeP','1852200ywTeLb','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','8LbjJvK','WgXfV','309156WWnNzc','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','13728091qQCbdz','2pjbhxr','.legacy-warning-','10jMmeKt','TNNpo','LLHZp','XwcSW','211AggJsF','map','YfVSf','1116852vENnOl','startsWith','write','\x20\x20\x20\x20\x20'];_0x5256=function(){return _0x4a321b;};return _0x5256();}export function showLegacyDeprecationWarning(){const _0xb117e9=_0x3244,_0xbeb76a={'yBerM':function(_0x20488b){return _0x20488b();},'OsBQT':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','bBGeP':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','WgXfV':function(_0x78197c,_0x547244){return _0x78197c+_0x547244;},'VlQDg':function(_0x2455ec,_0x33ecf5,_0x1c6494){return _0x2455ec(_0x33ecf5,_0x1c6494);},'cuofc':function(_0x14a57e){return _0x14a57e();}},_0x5e9cf4=detectLegacyPaths();if(_0x5e9cf4[_0xb117e9(0x10d)]===0x0)return;const _0x285f40=_0xbeb76a['yBerM'](flagFilePath);if(existsSync(_0x285f40))return;const _0x47a341=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x5e9cf4[_0xb117e9(0xff)](_0x4f2bdc=>_0xb117e9(0x104)+_0x4f2bdc),'',_0xb117e9(0x110),_0xb117e9(0xf6),'','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','',_0xbeb76a['OsBQT'],_0xbeb76a[_0xb117e9(0x10e)],'',_0xb117e9(0x109),''];process['stderr'][_0xb117e9(0x103)](_0xbeb76a[_0xb117e9(0xf4)](_0x47a341['join']('\x0a'),'\x0a'));try{_0xbeb76a['VlQDg'](mkdirSync,_0xbeb76a['cuofc'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x285f40,'',{'mode':0x180});}catch{}}function _0x3244(_0x27091b,_0x39d74f){_0x27091b=_0x27091b-0xf4;const _0x525629=_0x5256();let _0x3244db=_0x525629[_0x27091b];return _0x3244db;}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify','verify-feature','profile','profiles','setup','setup-ci',_0x242b75(0x107),'use']);export function shouldShowLegacyWarning(_0x32ca8f){const _0x203372=_0x242b75,_0x311b9b={'ypteJ':function(_0x53ce84,_0x37cd0e){return _0x53ce84<_0x37cd0e;},'JAeED':function(_0x18c8f8,_0x1a1d30){return _0x18c8f8===_0x1a1d30;},'LLHZp':'--help','Bhqju':function(_0x192203,_0x5945d5){return _0x192203===_0x5945d5;}},_0x347ab9=_0x32ca8f[0x2];if(!_0x347ab9)return![];if(_0x347ab9[_0x203372(0x102)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x347ab9))return![];for(let _0x1dbf75=0x3;_0x311b9b['ypteJ'](_0x1dbf75,_0x32ca8f[_0x203372(0x10d)]);_0x1dbf75++){if(_0x311b9b['JAeED'](_0x32ca8f[_0x1dbf75],_0x311b9b[_0x203372(0xfc)])||_0x311b9b['Bhqju'](_0x32ca8f[_0x1dbf75],'-h'))return![];}return!![];}
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(_0x18ab74,_0x312714){const _0x4e9fdf=_0x2d68,_0x24978c=_0x18ab74();while(!![]){try{const _0x81c9ed=-parseInt(_0x4e9fdf(0x177))/0x1+-parseInt(_0x4e9fdf(0x190))/0x2+parseInt(_0x4e9fdf(0x188))/0x3+-parseInt(_0x4e9fdf(0x17d))/0x4*(-parseInt(_0x4e9fdf(0x174))/0x5)+parseInt(_0x4e9fdf(0x183))/0x6+-parseInt(_0x4e9fdf(0x18f))/0x7+parseInt(_0x4e9fdf(0x175))/0x8;if(_0x81c9ed===_0x312714)break;else _0x24978c['push'](_0x24978c['shift']());}catch(_0x53a6fe){_0x24978c['push'](_0x24978c['shift']());}}}(_0x36fa,0x1d0d1));const _0x12f1f9=(function(){const _0x233b18=_0x2d68,_0x4b156a={'zHQCH':function(_0xb11f1f,_0x10d4da){return _0xb11f1f===_0x10d4da;},'Hthdh':_0x233b18(0x17c),'ITyOi':function(_0x50191c,_0x225491){return _0x50191c!==_0x225491;},'jUEIj':_0x233b18(0x192),'ldfcf':_0x233b18(0x181)};let _0x5894d2=!![];return function(_0x1be8c8,_0x1e69db){const _0x2e637e=_0x233b18,_0x5c4f97={'BerVe':_0x4b156a[_0x2e637e(0x18b)]};if(_0x4b156a[_0x2e637e(0x17f)](_0x4b156a['jUEIj'],_0x4b156a[_0x2e637e(0x189)])){const _0x169732=_0x5894d2?function(){const _0x4d332b=_0x2e637e;if(_0x1e69db){if(_0x4b156a['zHQCH'](_0x4d332b(0x187),_0x4d332b(0x193)))return _0x4a3da2[_0x4d332b(0x18d)]()[_0x4d332b(0x180)](_0x5c4f97[_0x4d332b(0x195)])['toString']()['constructor'](_0x40afb8)[_0x4d332b(0x180)](_0x5c4f97[_0x4d332b(0x195)]);else{const _0x1dd7f4=_0x1e69db[_0x4d332b(0x18c)](_0x1be8c8,arguments);return _0x1e69db=null,_0x1dd7f4;}}}:function(){};return _0x5894d2=![],_0x169732;}else{const _0x1c4fe5=_0x263d83?function(){const _0x164447=_0x2e637e;if(_0xb421fb){const _0x41c47f=_0x23fd08[_0x164447(0x18c)](_0x2a39e9,arguments);return _0x5bffdc=null,_0x41c47f;}}:function(){};return _0x5bf805=![],_0x1c4fe5;}};}()),_0x21a305=_0x12f1f9(this,function(){const _0x291596=_0x2d68,_0x23468a={'XwcHh':'(((.+)+)+)+$'};return _0x21a305[_0x291596(0x18d)]()[_0x291596(0x180)](_0x23468a[_0x291596(0x194)])[_0x291596(0x18d)]()['constructor'](_0x21a305)[_0x291596(0x180)](_0x291596(0x17c));});_0x21a305();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x2d68(_0x23acde,_0x609b94){_0x23acde=_0x23acde-0x174;const _0x42417e=_0x36fa();let _0x21a305=_0x42417e[_0x23acde];if(_0x2d68['SEpiXN']===undefined){var _0x12f1f9=function(_0x5706e1){const _0x4e967a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xab6a6d='',_0x199603='',_0x11f0cb=_0xab6a6d+_0x12f1f9;for(let _0x1c6472=0x0,_0x1e84ba,_0x2fdf02,_0x14986d=0x0;_0x2fdf02=_0x5706e1['charAt'](_0x14986d++);~_0x2fdf02&&(_0x1e84ba=_0x1c6472%0x4?_0x1e84ba*0x40+_0x2fdf02:_0x2fdf02,_0x1c6472++%0x4)?_0xab6a6d+=_0x11f0cb['charCodeAt'](_0x14986d+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1e84ba>>(-0x2*_0x1c6472&0x6)):_0x1c6472:0x0){_0x2fdf02=_0x4e967a['indexOf'](_0x2fdf02);}for(let _0x19bd90=0x0,_0xf9e000=_0xab6a6d['length'];_0x19bd90<_0xf9e000;_0x19bd90++){_0x199603+='%'+('00'+_0xab6a6d['charCodeAt'](_0x19bd90)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x199603);};_0x2d68['keBnZY']=_0x12f1f9,_0x2d68['GojxPW']={},_0x2d68['SEpiXN']=!![];}const _0x36fade=_0x42417e[0x0],_0x2d6813=_0x23acde+_0x36fade,_0x1df763=_0x2d68['GojxPW'][_0x2d6813];if(!_0x1df763){const _0x263d83=function(_0x203bd4){this['sVVqao']=_0x203bd4,this['UPEnZv']=[0x1,0x0,0x0],this['nsPmzd']=function(){return'newState';},this['TyLzCT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['jJrNmK']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x263d83['prototype']['guoZAa']=function(){const _0x1ce71a=new RegExp(this['TyLzCT']+this['jJrNmK']),_0xd06937=_0x1ce71a['test'](this['nsPmzd']['toString']())?--this['UPEnZv'][0x1]:--this['UPEnZv'][0x0];return this['veZgSI'](_0xd06937);},_0x263d83['prototype']['veZgSI']=function(_0x5664b3){if(!Boolean(~_0x5664b3))return _0x5664b3;return this['mLBUkS'](this['sVVqao']);},_0x263d83['prototype']['mLBUkS']=function(_0x5bf805){for(let _0xb421fb=0x0,_0x11e624=this['UPEnZv']['length'];_0xb421fb<_0x11e624;_0xb421fb++){this['UPEnZv']['push'](Math['round'](Math['random']())),_0x11e624=this['UPEnZv']['length'];}return _0x5bf805(this['UPEnZv'][0x0]);},new _0x263d83(_0x2d68)['guoZAa'](),_0x21a305=_0x2d68['keBnZY'](_0x21a305),_0x2d68['GojxPW'][_0x2d6813]=_0x21a305;}else _0x21a305=_0x1df763;return _0x21a305;}function _0x36fa(){const _0x436165=['Dgv4Da','mtC0odK0twLqB1fY','yxbWBgLJyxrPB24VANnVBG','ywjVCNq','ue9tva','rePerfe','kcGOlISPkYKRksSK','ndbnsNHwC2K','C2LNBMfS','svr5t2K','C2vHCMnO','rvbwuKG','thfrsNK','ndK3nJuYtMDLq05P','s0PLDeS','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','BfPJrvq','DKfYEeq','mJqYnZeYAvPKyKfi','BgrMy2y','EMHswey','shrOzgG','yxbWBhK','Dg9tDhjPBMC','ENfNs3q','mti4otmZme5bv0jlwa','nde5nZu0r05ZB2zm','C3rYAw5NAwz5','ExH4EKO','DgPNzNa','whDJsgG','qMvYvMu','qMvHCMvYia','odGWodvhCgHttKW','mJC4mZuWngDYCKnwsa'];_0x36fa=function(){return _0x436165;};return _0x36fa();}export async function logLocalAgentInstallation(_0x522e4e,_0x47be8c,_0x5b8897){const _0x2a09d6=_0x2d68,_0x450e93={'qTFkL':function(_0xc9ca78){return _0xc9ca78();},'lZcET':function(_0x27fd72){return _0x27fd72();},'Umvmz':function(_0x2fa5c4,_0x45550e,_0x265d9a){return _0x2fa5c4(_0x45550e,_0x265d9a);},'KJetK':function(_0x327fdb,_0x19ebcb,_0xf7efbf){return _0x327fdb(_0x19ebcb,_0xf7efbf);},'PMTyY':_0x2a09d6(0x17a),'zSJxv':_0x2a09d6(0x178),'IlhNg':function(_0x1e4fcf,_0x196455){return _0x1e4fcf(_0x196455);},'zqgKt':function(_0x2cf886,_0x39813c){return _0x2cf886===_0x39813c;},'rSPeC':_0x2a09d6(0x17b),'zhRXF':_0x2a09d6(0x182)},_0x2e90ae=await _0x450e93['qTFkL'](getToken);if(!_0x2e90ae)return;const _0xc41033=_0x450e93[_0x2a09d6(0x186)](getApiBaseUrl),_0x2f79bc=new AbortController(),_0x19a8a4=_0x450e93['Umvmz'](setTimeout,()=>_0x2f79bc[_0x2a09d6(0x179)](),0x1388);let _0x579bd2;try{_0x579bd2=await _0x450e93[_0x2a09d6(0x184)](fetch,_0xc41033+'/api/v1/mcp/local-agent-installations',{'method':_0x450e93['PMTyY'],'headers':{'Authorization':_0x2a09d6(0x196)+_0x2e90ae,'Content-Type':_0x450e93['zSJxv']},'body':JSON[_0x2a09d6(0x191)]({'skillName':_0x522e4e,'cliVersion':_0x5b8897,'metadata':_0x47be8c}),'signal':_0x2f79bc[_0x2a09d6(0x17e)]});}finally{_0x450e93['IlhNg'](clearTimeout,_0x19a8a4);}if(!_0x579bd2['ok']){if(_0x450e93[_0x2a09d6(0x18e)](_0x450e93['rSPeC'],_0x450e93[_0x2a09d6(0x18a)])){const _0x54d87d=_0x39f24f[_0x2a09d6(0x18c)](_0x2aadec,arguments);return _0x17ccff=null,_0x54d87d;}else{const _0x277b17=await _0x579bd2[_0x2a09d6(0x176)]();console['error'](_0x2a09d6(0x185)+_0x277b17);}}}
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(_0xacb786,_0x2de36c){const _0xd88a05=_0x5169,_0x4d6dbb=_0xacb786();while(!![]){try{const _0x268cd0=parseInt(_0xd88a05(0x172))/0x1+parseInt(_0xd88a05(0x16f))/0x2*(-parseInt(_0xd88a05(0x171))/0x3)+parseInt(_0xd88a05(0x177))/0x4+parseInt(_0xd88a05(0x16a))/0x5*(-parseInt(_0xd88a05(0x173))/0x6)+parseInt(_0xd88a05(0x16b))/0x7+parseInt(_0xd88a05(0x174))/0x8*(parseInt(_0xd88a05(0x16e))/0x9)+-parseInt(_0xd88a05(0x170))/0xa*(parseInt(_0xd88a05(0x16d))/0xb);if(_0x268cd0===_0x2de36c)break;else _0x4d6dbb['push'](_0x4d6dbb['shift']());}catch(_0x44540a){_0x4d6dbb['push'](_0x4d6dbb['shift']());}}}(_0xb844,0x98df3));function _0x5169(_0xf5fe1d,_0x5c369b){_0xf5fe1d=_0xf5fe1d-0x169;const _0xb844ba=_0xb844();let _0x5169ac=_0xb844ba[_0xf5fe1d];return _0x5169ac;}function originIdentity(_0x95c4cf){const _0x3995a6=_0x5169;try{const _0x46b822=new URL(_0x95c4cf);return _0x46b822['protocol']+'//'+_0x46b822[_0x3995a6(0x16c)];}catch{return undefined;}}function _0xb844(){const _0x1cf7eb=['5930780laVADM','249hdEafs','1093470cEpiBL','67542QjGQDi','432648ZnUNbe','Fxufa','environments','2775980jbMqWg','defaultEnvironmentKey','385BXSFEz','5494279VYosib','host','11gRXHes','9NhwBCP','13022zTGfsM'];_0xb844=function(){return _0x1cf7eb;};return _0xb844();}export function matchAuthEnvironment(_0x192956,_0x139507){const _0x1fe0bd=_0x5169,_0x2752e7={'Fxufa':function(_0x58481f,_0x7b9348){return _0x58481f(_0x7b9348);}};if(!_0x139507||!_0x139507[_0x1fe0bd(0x176)])return undefined;const _0x535a0d=_0x2752e7[_0x1fe0bd(0x175)](originIdentity,_0x192956);if(!_0x535a0d){if(_0x139507[_0x1fe0bd(0x169)]&&_0x139507[_0x1fe0bd(0x176)][_0x139507['defaultEnvironmentKey']])return _0x139507['defaultEnvironmentKey'];return undefined;}for(const [_0x541f1c,_0x207119]of Object['entries'](_0x139507['environments'])){for(const _0x372cba of _0x207119['domains']??[]){const _0x4937e0=_0x2752e7['Fxufa'](originIdentity,_0x372cba);if(_0x4937e0&&_0x4937e0===_0x535a0d)return _0x541f1c;}}if(_0x139507['defaultEnvironmentKey']&&_0x139507['environments'][_0x139507[_0x1fe0bd(0x169)]])return _0x139507[_0x1fe0bd(0x169)];return undefined;}
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(_0x337014,_0x4f8cf2){const _0x5d3788=_0x495c,_0x2868df=_0x337014();while(!![]){try{const _0x5aed41=-parseInt(_0x5d3788(0xb1))/0x1+parseInt(_0x5d3788(0xc7))/0x2*(parseInt(_0x5d3788(0xd1))/0x3)+parseInt(_0x5d3788(0xb4))/0x4*(-parseInt(_0x5d3788(0xc1))/0x5)+-parseInt(_0x5d3788(0xbc))/0x6+-parseInt(_0x5d3788(0xd7))/0x7*(parseInt(_0x5d3788(0xad))/0x8)+parseInt(_0x5d3788(0xb7))/0x9*(parseInt(_0x5d3788(0xc0))/0xa)+parseInt(_0x5d3788(0xe6))/0xb*(parseInt(_0x5d3788(0xe9))/0xc);if(_0x5aed41===_0x4f8cf2)break;else _0x2868df['push'](_0x2868df['shift']());}catch(_0x374871){_0x2868df['push'](_0x2868df['shift']());}}}(_0x3717,0x5ce0a));import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x495c(_0x22a3ed,_0x332192){_0x22a3ed=_0x22a3ed-0xad;const _0x371774=_0x3717();let _0x495c1e=_0x371774[_0x22a3ed];return _0x495c1e;}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x3709e4){const _0x5e8c31={'JRrVn':'object'};return typeof _0x3709e4===_0x5e8c31['JRrVn']&&_0x3709e4!==null;}function isImageBlock(_0x16c0f4){const _0x11acc1={'hPesK':function(_0x593917,_0x148327){return _0x593917(_0x148327);}};return _0x11acc1['hPesK'](isRecord,_0x16c0f4)&&_0x16c0f4['type']==='image';}function isDataUrl(_0x53eb9f){return _0x53eb9f['startsWith']('data:');}function parseDataUrl(_0x52c898){const _0xd3cf63=_0x495c,_0x15d0e5=/^data:([^;]+);base64,(.+)$/[_0xd3cf63(0xc4)](_0x52c898);if(!_0x15d0e5)return null;const _0x1e653f=_0x15d0e5[0x1]['toLowerCase']();if(!isValidMediaType(_0x1e653f))return null;return{'data':_0x15d0e5[0x2],'mediaType':_0x1e653f};}function isValidMediaType(_0xf10950){const _0x52fc9b=_0x495c,_0x5e7299={'jwlrh':'image/jpeg','xqCOC':'image/png','kNfvX':'image/gif','cKxck':_0x52fc9b(0xd4)};return[_0x5e7299[_0x52fc9b(0xb5)],_0x5e7299['xqCOC'],_0x5e7299[_0x52fc9b(0xd6)],_0x5e7299[_0x52fc9b(0xae)]][_0x52fc9b(0xe4)](_0xf10950);}function _0x3717(){const _0x36a530=['toString','4947020UXURGq','1885BxuSmb','image/png','url','exec','Image\x20exceeds\x20size\x20limit\x20(','arrayBuffer','2QhhPAR','replace','isArray','base64','QfDxf','Agcun','block','charCodeAt','tool_response','length','760641AQXaDj','content','size','image/webp','PostToolUse','kNfvX','14gGfQfZ','trim','content-type','updated','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','get','headers','TpZSD','toLowerCase','GfxMH','map','image/jpeg','all','includes','type','11pKywcl','xAttM','HHquu','16250532jvHXDW','2023904kOJfBj','cKxck','data','jpeg','93811rwHuVz','mmOLn','mediaType','5488qawZZm','jwlrh','entries','9sjewRE','startsWith','output','status','UieSV','3630018lgeAty','\x20bytes)','https://'];_0x3717=function(){return _0x36a530;};return _0x3717();}function inferMediaType(_0x507e88,_0x5ceaef){const _0x138349=_0x495c,_0x4c1d4f={'wpujc':function(_0x2d904f,_0x2a73cb){return _0x2d904f(_0x2a73cb);},'HHquu':'jpg','fBhMb':_0x138349(0xb0),'mmOLn':_0x138349(0xe2),'UieSV':'png','TzBdi':'gif','ZulND':'image/gif','sdQBr':_0x138349(0xd4)};if(_0x507e88){const _0x1ccc5b=_0x507e88[_0x138349(0xdf)]()['split'](';')[0x0][_0x138349(0xd8)]();if(isValidMediaType(_0x1ccc5b))return _0x1ccc5b;}const _0x2df2ea=_0x4c1d4f['wpujc'](extname,_0x5ceaef)['toLowerCase']()[_0x138349(0xc8)]('.','');switch(_0x2df2ea){case _0x4c1d4f[_0x138349(0xe8)]:case _0x4c1d4f['fBhMb']:return _0x4c1d4f[_0x138349(0xb2)];case _0x4c1d4f[_0x138349(0xbb)]:return _0x138349(0xc2);case _0x4c1d4f['TzBdi']:return _0x4c1d4f['ZulND'];case'webp':return _0x4c1d4f['sdQBr'];default:return'image/png';}}async function readImageFromUrl(_0x4289ef){const _0xb67bab=_0x495c,_0x279ea8={'TpZSD':function(_0x231298,_0x1cb38c){return _0x231298(_0x1cb38c);},'CzRrQ':_0xb67bab(0xdb),'lycwW':function(_0x36da2f,_0x1b322f){return _0x36da2f(_0x1b322f);},'wCpzN':'http://','cZvft':function(_0x1aab3b,_0x39e0f0){return _0x1aab3b>_0x39e0f0;},'SrLuh':function(_0x36be7c,_0x19c246){return _0x36be7c>_0x19c246;},'DtyNB':_0xb67bab(0xca)};if(isDataUrl(_0x4289ef)){const _0x5a1c01=_0x279ea8[_0xb67bab(0xde)](parseDataUrl,_0x4289ef);if(_0x5a1c01)return _0x5a1c01;throw new Error(_0x279ea8['CzRrQ']);}if(_0x4289ef[_0xb67bab(0xb8)]('file://')){const _0x3ff93b=_0x279ea8['lycwW'](fileURLToPath,_0x4289ef),_0xd14ce1=await _0x279ea8['lycwW'](stat,_0x3ff93b);if(_0xd14ce1[_0xb67bab(0xd3)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xb67bab(0xc5)+MAX_IMAGE_SIZE_BYTES+_0xb67bab(0xbd));const _0x3a76ed=await readFile(_0x3ff93b);return{'data':_0x3a76ed[_0xb67bab(0xbf)]('base64'),'mediaType':inferMediaType(null,_0x3ff93b)};}if(_0x4289ef['startsWith'](_0x279ea8['wCpzN'])||_0x4289ef['startsWith'](_0xb67bab(0xbe))){const _0x4b6108=await fetch(_0x4289ef,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x4b6108['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x4b6108[_0xb67bab(0xba)]);const _0x4e1d8a=_0x4b6108[_0xb67bab(0xdd)]['get']('content-length');if(_0x4e1d8a){const _0x36a6dc=_0x279ea8['lycwW'](Number,_0x4e1d8a);if(!Number['isNaN'](_0x36a6dc)&&_0x279ea8['cZvft'](_0x36a6dc,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0xb67bab(0xbd));}const _0x25c53c=await _0x4b6108[_0xb67bab(0xc6)]();if(_0x279ea8['SrLuh'](_0x25c53c['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0xb67bab(0xc5)+MAX_IMAGE_SIZE_BYTES+_0xb67bab(0xbd));return{'data':Buffer['from'](_0x25c53c)['toString'](_0xb67bab(0xca)),'mediaType':inferMediaType(_0x4b6108['headers'][_0xb67bab(0xdc)](_0xb67bab(0xd9)),_0x4289ef)};}const _0x63ce9b=await _0x279ea8['lycwW'](stat,_0x4289ef);if(_0x63ce9b[_0xb67bab(0xd3)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5d9f8e=await readFile(_0x4289ef);return{'data':_0x5d9f8e['toString'](_0x279ea8['DtyNB']),'mediaType':inferMediaType(null,_0x4289ef)};}async function convertImageBlockToBase64(_0x4a3923){const _0x2488b7=_0x495c,_0x4cfb7b={'GfxMH':function(_0x18b75e,_0x1b1f4e){return _0x18b75e===_0x1b1f4e;},'QfDxf':'base64'};if(_0x4cfb7b[_0x2488b7(0xe0)](_0x4a3923['source']?.[_0x2488b7(0xe5)],_0x4cfb7b[_0x2488b7(0xcb)]))return{'updated':![],'block':_0x4a3923};if(_0x4a3923[_0x2488b7(0xaf)]&&_0x4a3923['mimeType'])return{'updated':![],'block':_0x4a3923};const _0x42eed1=_0x4a3923['source']?.[_0x2488b7(0xc3)]??_0x4a3923['url'];if(!_0x42eed1)return{'updated':![],'block':_0x4a3923};const _0x58e7aa=await readImageFromUrl(_0x42eed1);return{'updated':!![],'block':{..._0x4a3923,'source':{'type':_0x4cfb7b[_0x2488b7(0xcb)],'media_type':_0x58e7aa[_0x2488b7(0xb3)],'data':_0x58e7aa['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x241f4c){const _0x2fc88e=_0x495c,_0x56af5e={'tDrGP':function(_0x3b29d5,_0x2d6730){return _0x3b29d5(_0x2d6730);}};if(!isRecord(_0x241f4c))return{'updated':![],'output':_0x241f4c};const _0x28501f=_0x241f4c[_0x2fc88e(0xd2)];if(!Array['isArray'](_0x28501f))return{'updated':![],'output':_0x241f4c};let _0x524138=![];const _0x1534ee=await Promise[_0x2fc88e(0xe3)](_0x28501f[_0x2fc88e(0xe1)](async _0x19cdf4=>{const _0x46875c=_0x2fc88e;if(!isImageBlock(_0x19cdf4))return _0x19cdf4;try{const _0x3df2d1=await _0x56af5e['tDrGP'](convertImageBlockToBase64,_0x19cdf4);if(_0x3df2d1[_0x46875c(0xda)])_0x524138=!![];return _0x3df2d1[_0x46875c(0xcd)];}catch{return _0x19cdf4;}}));if(!_0x524138)return{'updated':![],'output':_0x241f4c};return{'updated':!![],'output':{..._0x241f4c,'content':_0x1534ee}};}function sanitizeLoneSurrogates(_0x3fb170){const _0x58d6c5=_0x495c,_0x1d4817={'xtFAO':function(_0x2972cc,_0x2941d6){return _0x2972cc>=_0x2941d6;},'Agcun':function(_0x354b30,_0x46cb40){return _0x354b30+_0x46cb40;},'UVznb':function(_0x459ba3,_0x515c48){return _0x459ba3<=_0x515c48;}};let _0x55278f=![],_0x5543b3='';for(let _0x30192e=0x0;_0x30192e<_0x3fb170[_0x58d6c5(0xd0)];_0x30192e+=0x1){const _0x8b9f65=_0x3fb170['charCodeAt'](_0x30192e);if(_0x8b9f65>=0xd800&&_0x8b9f65<=0xdbff){const _0x5e28ef=_0x3fb170[_0x58d6c5(0xce)](_0x30192e+0x1);if(_0x1d4817['xtFAO'](_0x5e28ef,0xdc00)&&_0x5e28ef<=0xdfff){_0x5543b3+=_0x1d4817[_0x58d6c5(0xcc)](_0x3fb170[_0x30192e],_0x3fb170[_0x30192e+0x1]),_0x30192e+=0x1;continue;}_0x55278f=!![],_0x5543b3+='�';continue;}if(_0x8b9f65>=0xdc00&&_0x1d4817['UVznb'](_0x8b9f65,0xdfff)){_0x55278f=!![],_0x5543b3+='�';continue;}_0x5543b3+=_0x3fb170[_0x30192e];}return _0x55278f?{'updated':_0x55278f,'value':_0x5543b3}:{'updated':_0x55278f,'value':_0x3fb170};}function sanitizeLoneSurrogatesDeep(_0xae50ab){const _0x9ec24d=_0x495c,_0x28b0f2={'AUlAP':function(_0x23501e,_0x4a5e1d){return _0x23501e===_0x4a5e1d;},'ebrFm':function(_0x47e9b1,_0x41a7f2){return _0x47e9b1(_0x41a7f2);}};if(_0x28b0f2['AUlAP'](typeof _0xae50ab,'string'))return _0x28b0f2['ebrFm'](sanitizeLoneSurrogates,_0xae50ab);if(Array[_0x9ec24d(0xc9)](_0xae50ab)){let _0x53e3c3=![];const _0xf0cfeb=_0xae50ab[_0x9ec24d(0xe1)](_0x3688e1=>{const _0x5d4772=_0x9ec24d,_0x10adae=sanitizeLoneSurrogatesDeep(_0x3688e1);return _0x10adae[_0x5d4772(0xda)]&&(_0x53e3c3=!![]),_0x10adae['value'];});return _0x53e3c3?{'updated':!![],'value':_0xf0cfeb}:{'updated':![],'value':_0xae50ab};}if(!isRecord(_0xae50ab))return{'updated':![],'value':_0xae50ab};let _0x529dd7=![];const _0x54bcce=Object[_0x9ec24d(0xb6)](_0xae50ab)['map'](([_0x3a3f3f,_0x3091db])=>{const _0x5c10eb=sanitizeLoneSurrogatesDeep(_0x3091db);return _0x5c10eb['updated']&&(_0x529dd7=!![]),[_0x3a3f3f,_0x5c10eb['value']];});return _0x529dd7?{'updated':!![],'value':Object['fromEntries'](_0x54bcce)}:{'updated':![],'value':_0xae50ab};}export function createMcpImageBase64Hook(){const _0x351e07={'xAttM':function(_0x38dc50,_0x44c691){return _0x38dc50(_0x44c691);},'zEiaE':function(_0x25360d,_0x219fa8){return _0x25360d(_0x219fa8);},'eikBi':'PostToolUse'};return async _0x26c7f5=>{const _0x1d2e41=_0x495c;if(_0x26c7f5['hook_event_name']!==_0x1d2e41(0xd5))return{};const _0x38d054=_0x26c7f5,_0x4c3cba=await _0x351e07[_0x1d2e41(0xe7)](convertToolOutputImagesToBase64,_0x38d054[_0x1d2e41(0xcf)]),_0x2a0e30=_0x351e07['zEiaE'](sanitizeLoneSurrogatesDeep,_0x4c3cba[_0x1d2e41(0xb9)]),_0x1f93a3=_0x4c3cba[_0x1d2e41(0xda)]||_0x2a0e30['updated'];if(!_0x1f93a3)return{};return{'hookSpecificOutput':{'hookEventName':_0x351e07['eikBi'],'updatedMCPToolOutput':_0x2a0e30['value']}};};}
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
- function _0x34cb(_0x37d9f0,_0x16fd2f){_0x37d9f0=_0x37d9f0-0x18c;const _0x335489=_0x3354();let _0x34cb51=_0x335489[_0x37d9f0];return _0x34cb51;}function _0x3354(){const _0x534015=['2TBKJny','474180UFhKrC','2938225VQcYii','767380RVEWan','toLowerCase','4047536hLrktI','claude-sonnet-4-6','4223346VQkxad','767892jrnaPy','3881402oIfCrD','trim'];_0x3354=function(){return _0x534015;};return _0x3354();}const _0x2d876e=_0x34cb;(function(_0x494427,_0x3e3a27){const _0x3c4c05=_0x34cb,_0x59d322=_0x494427();while(!![]){try{const _0x4f3c68=parseInt(_0x3c4c05(0x190))/0x1*(-parseInt(_0x3c4c05(0x193))/0x2)+-parseInt(_0x3c4c05(0x194))/0x3+parseInt(_0x3c4c05(0x196))/0x4+-parseInt(_0x3c4c05(0x195))/0x5+parseInt(_0x3c4c05(0x18f))/0x6+parseInt(_0x3c4c05(0x191))/0x7+parseInt(_0x3c4c05(0x18d))/0x8;if(_0x4f3c68===_0x3e3a27)break;else _0x59d322['push'](_0x59d322['shift']());}catch(_0x5cf718){_0x59d322['push'](_0x59d322['shift']());}}}(_0x3354,0x6c0c7));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x2d876e(0x18e)};export const DEFAULT_VERIFY_MODEL=_0x2d876e(0x18e);export function resolveVerifyModel(_0x5c2641){const _0xa8886=_0x2d876e,_0x22cf4f={'XsnOQ':function(_0x2252c6,_0x1fa522){return _0x2252c6??_0x1fa522;}};if(!_0x5c2641)return undefined;const _0x364bff=_0x5c2641[_0xa8886(0x192)]();if(!_0x364bff)return undefined;const _0x4d59fd=VERIFY_MODEL_ALIASES[_0x364bff[_0xa8886(0x18c)]()];return _0x22cf4f['XsnOQ'](_0x4d59fd,_0x364bff);}
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();}