@ranger-testing/ranger-cli 2.5.4-alpha.f940f0d-18 → 2.5.4

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 (82) hide show
  1. package/README.md +14 -36
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.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/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/crypto.js +1 -1
  42. package/build/commands/utils/desirePathLog.js +1 -1
  43. package/build/commands/utils/deviceAuth.js +1 -1
  44. package/build/commands/utils/environment.js +1 -1
  45. package/build/commands/utils/featureApi.js +1 -1
  46. package/build/commands/utils/fixWebmDuration.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/tokenRefresh.js +1 -1
  65. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  66. package/build/commands/utils/userApi.js +1 -1
  67. package/build/commands/utils/version.js +1 -1
  68. package/build/commands/verifyFeature.js +1 -1
  69. package/build/commands/verifyFeatureCli.js +1 -1
  70. package/build/skills/ranger/SKILL.md +6 -36
  71. package/build/skills/ranger/create.md +0 -19
  72. package/build/skills/ranger/verify.md +7 -46
  73. package/package.json +3 -8
  74. package/build/commands/migrateProfile.js +0 -1
  75. package/build/commands/utils/cloudProfile.js +0 -1
  76. package/build/commands/utils/cloudProfileSession.js +0 -1
  77. package/build/commands/utils/gitTracked.js +0 -1
  78. package/build/commands/utils/legacyWarning.js +0 -1
  79. package/build/commands/utils/matchAuthEnvironment.js +0 -1
  80. package/build/commands/utils/projectsConfig.js +0 -1
  81. package/build/commands/utils/resolveProfileContext.js +0 -1
  82. package/build/commands/utils/resolveProfileUrl.js +0 -1
@@ -1 +1 @@
1
- const _0x2f758d=_0x3349;(function(_0x53b0fc,_0x2fc1e5){const _0x2f051c=_0x3349,_0x306af3=_0x53b0fc();while(!![]){try{const _0x4697c0=-parseInt(_0x2f051c(0x18c))/0x1+-parseInt(_0x2f051c(0x154))/0x2*(parseInt(_0x2f051c(0x16e))/0x3)+-parseInt(_0x2f051c(0x16a))/0x4+-parseInt(_0x2f051c(0x15b))/0x5+-parseInt(_0x2f051c(0x153))/0x6+-parseInt(_0x2f051c(0x181))/0x7+parseInt(_0x2f051c(0x151))/0x8;if(_0x4697c0===_0x2fc1e5)break;else _0x306af3['push'](_0x306af3['shift']());}catch(_0x385682){_0x306af3['push'](_0x306af3['shift']());}}}(_0x3b20,0x482f4));import{readFileSync,writeFileSync}from'fs';function _0x3349(_0x35002f,_0x3208ee){_0x35002f=_0x35002f-0x149;const _0x3b200e=_0x3b20();let _0x334998=_0x3b200e[_0x35002f];return _0x334998;}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(_0x50cf81,_0x4cfdf1){const _0xf84747=_0x3349,_0x107d1f={'HNPJU':function(_0x19b950,_0x461ece){return _0x19b950<=_0x461ece;},'SrCoP':function(_0x295814,_0x4e16b5){return _0x295814&_0x4e16b5;},'tHjzd':function(_0x5b7e4f,_0x4fe05d){return _0x5b7e4f-_0x4fe05d;},'pSxue':function(_0x4a7fbf,_0x470210){return _0x4a7fbf<_0x470210;}};if(_0x4cfdf1>=_0x50cf81['length'])return[0x0,0x0];const _0x5324fa=_0x50cf81[_0x4cfdf1];let _0x190141=0x1,_0x4ac104=0x80;while(_0x107d1f['HNPJU'](_0x190141,0x8)&&!_0x107d1f[_0xf84747(0x185)](_0x5324fa,_0x4ac104)){_0x190141++,_0x4ac104>>=0x1;}if(_0x4cfdf1+_0x190141>_0x50cf81['length'])return[0x0,0x0];let _0x1eb26b=_0x5324fa&_0x107d1f[_0xf84747(0x187)](_0x4ac104,0x1);for(let _0xcb7ae3=0x1;_0x107d1f['pSxue'](_0xcb7ae3,_0x190141);_0xcb7ae3++){_0x1eb26b=_0x1eb26b*0x100+_0x50cf81[_0x4cfdf1+_0xcb7ae3];}return[_0x1eb26b,_0x190141];}function readId(_0x1c7cb8,_0x25a1d8){const _0x31c85d=_0x3349,_0x5bdc48={'QiTLy':function(_0x4b82d1,_0x30aaf4){return _0x4b82d1>=_0x30aaf4;},'yguCJ':function(_0x23a953,_0x5159cc){return _0x23a953>=_0x5159cc;},'oXXlW':function(_0x5d8a5e,_0x303bd7){return _0x5d8a5e>_0x303bd7;},'CCFJH':function(_0x45a387,_0x5c990e){return _0x45a387+_0x5c990e;},'SPTHZ':function(_0x2b654e,_0x722152){return _0x2b654e<_0x722152;},'Bubgz':function(_0x407a71,_0x300bf6){return _0x407a71+_0x300bf6;}};if(_0x5bdc48[_0x31c85d(0x17b)](_0x25a1d8,_0x1c7cb8[_0x31c85d(0x163)]))return[0x0,0x0];const _0x11d3c7=_0x1c7cb8[_0x25a1d8];let _0x526971;if(_0x11d3c7>=0x80)_0x526971=0x1;else{if(_0x5bdc48['QiTLy'](_0x11d3c7,0x40))_0x526971=0x2;else{if(_0x5bdc48[_0x31c85d(0x17b)](_0x11d3c7,0x20))_0x526971=0x3;else{if(_0x5bdc48[_0x31c85d(0x167)](_0x11d3c7,0x10))_0x526971=0x4;else return[_0x11d3c7,0x1];}}}if(_0x5bdc48['oXXlW'](_0x5bdc48['CCFJH'](_0x25a1d8,_0x526971),_0x1c7cb8[_0x31c85d(0x163)]))return[0x0,0x0];let _0x3408ec=0x0;for(let _0x2a5a1e=0x0;_0x5bdc48[_0x31c85d(0x165)](_0x2a5a1e,_0x526971);_0x2a5a1e++){_0x3408ec=_0x5bdc48[_0x31c85d(0x17d)](_0x3408ec*0x100,_0x1c7cb8[_0x25a1d8+_0x2a5a1e]);}return[_0x3408ec,_0x526971];}function readUint(_0x5395e2,_0x3ef7a7,_0x318d16){const _0x4f0610=_0x3349,_0x557a83={'UpXcR':function(_0x458d7b,_0x55d745){return _0x458d7b+_0x55d745;},'uVKJL':function(_0x284be3,_0x25c46b){return _0x284be3*_0x25c46b;}};let _0x1341ea=0x0;for(let _0x1013b2=0x0;_0x1013b2<_0x318d16;_0x1013b2++){_0x1341ea=_0x557a83['UpXcR'](_0x557a83[_0x4f0610(0x162)](_0x1341ea,0x100),_0x5395e2[_0x3ef7a7+_0x1013b2]);}return _0x1341ea;}function isUnknownSize(_0x3d325e,_0xfdcb39){const _0x483d80=_0x3349,_0x13b0e9={'VUXdA':function(_0x1317aa,_0x3c26ca){return _0x1317aa*_0x3c26ca;}};return _0x3d325e===Math['pow'](0x2,_0x13b0e9[_0x483d80(0x179)](0x7,_0xfdcb39))-0x1;}function writeId(_0x4b98d9){const _0x3fcc6a=_0x3349,_0x27dc13={'YsiOO':function(_0x15e481,_0x57ee2e){return _0x15e481<=_0x57ee2e;},'WLQPI':function(_0x435e1f,_0x345b39){return _0x435e1f&_0x345b39;},'zUaqW':function(_0x572dc5,_0x58eb1c){return _0x572dc5>>_0x58eb1c;}};if(_0x27dc13['YsiOO'](_0x4b98d9,0xff))return Buffer['from']([_0x4b98d9]);if(_0x27dc13['YsiOO'](_0x4b98d9,0xffff))return Buffer[_0x3fcc6a(0x16d)]([_0x27dc13['WLQPI'](_0x4b98d9>>0x8,0xff),_0x27dc13['WLQPI'](_0x4b98d9,0xff)]);if(_0x4b98d9<=0xffffff)return Buffer['from']([_0x27dc13[_0x3fcc6a(0x18e)](_0x27dc13['zUaqW'](_0x4b98d9,0x10),0xff),_0x27dc13[_0x3fcc6a(0x152)](_0x4b98d9,0x8)&0xff,_0x4b98d9&0xff]);return Buffer[_0x3fcc6a(0x16d)]([_0x27dc13[_0x3fcc6a(0x18e)](_0x27dc13[_0x3fcc6a(0x152)](_0x4b98d9,0x18),0xff),_0x4b98d9>>0x10&0xff,_0x27dc13['WLQPI'](_0x4b98d9>>0x8,0xff),_0x4b98d9&0xff]);}function writeVint(_0x357add,_0x22c0e2){const _0x22cf41=_0x3349,_0x12ca81={'QRHNN':function(_0x565952,_0x1d7f77){return _0x565952<_0x1d7f77;},'DPyAR':function(_0x445a51,_0x1eb21c){return _0x445a51-_0x1eb21c;},'nWWbG':function(_0x2b08f,_0x5c028e){return _0x2b08f*_0x5c028e;},'knwiT':function(_0x193322,_0xa6736e){return _0x193322&_0xa6736e;},'vuMml':function(_0x228564,_0x253c71){return _0x228564/_0x253c71;},'PYLIV':function(_0x352508,_0x55946a){return _0x352508<<_0x55946a;}};let _0x34fafa=_0x22c0e2||0x1;while(_0x12ca81[_0x22cf41(0x15e)](_0x12ca81[_0x22cf41(0x149)](Math[_0x22cf41(0x16b)](0x2,_0x12ca81[_0x22cf41(0x166)](0x7,_0x34fafa)),0x2),_0x357add))_0x34fafa++;const _0x45a61d=Buffer[_0x22cf41(0x186)](_0x34fafa);for(let _0x257444=_0x34fafa-0x1;_0x257444>=0x0;_0x257444--){_0x45a61d[_0x257444]=_0x12ca81[_0x22cf41(0x14b)](_0x357add,0xff),_0x357add=Math[_0x22cf41(0x169)](_0x12ca81[_0x22cf41(0x158)](_0x357add,0x100));}return _0x45a61d[0x0]|=_0x12ca81[_0x22cf41(0x184)](0x1,0x8-_0x34fafa),_0x45a61d;}function writeFloat64(_0xc09e18){const _0x40b8ba=_0x3349,_0x25cd08=Buffer[_0x40b8ba(0x186)](0x8);return _0x25cd08[_0x40b8ba(0x18a)](_0xc09e18,0x0),_0x25cd08;}function _0x3b20(){const _0x31ceca=['DqHzC','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','vuMml','Xkbwd','IaGmf','2040295rUIuXP','idLen','VrxGO','QRHNN','MoeeH','min','dataOffset','uVKJL','length','offset','SPTHZ','nWWbG','yguCJ','LvRvp','floor','31784fIkTgF','pow','ZNSob','from','6NfrmHF','rEJnf','tjfDT','xNrDS','GKPHb','WwVGV','mQcwq','nMvOB','error','concat','dsJFi','VUXdA','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','QiTLy','mPNtX','Bubgz','argv','FyijY','EEEwH','1460949qYPLxJ','bXdGg','Kznre','PYLIV','SrCoP','alloc','tHjzd','sizeLen','indexOf','writeDoubleBE','BvXsO','527925ZZtfRc','EHdaT','WLQPI','dataSize','DPyAR','rPcru','knwiT','eIahb','VFwRD','qvqJM','log','slice','16275768DdYsTs','zUaqW','989520YCNina','421246QfcLAD','wEAwc'];_0x3b20=function(){return _0x31ceca;};return _0x3b20();}function writeVoid(_0x41b422){const _0x15b9b8=_0x3349,_0x5a93eb={'dsJFi':function(_0x3a8e58,_0x2dae56){return _0x3a8e58-_0x2dae56;},'XksSx':function(_0x48b0b3,_0x260211){return _0x48b0b3*_0x260211;},'MoeeH':function(_0x443bb4,_0x54e30d,_0x60234b){return _0x443bb4(_0x54e30d,_0x60234b);}};for(let _0x554265=0x1;_0x554265<=0x8;_0x554265++){const _0x4f3230=_0x5a93eb['dsJFi'](_0x5a93eb[_0x15b9b8(0x178)](_0x41b422,0x1),_0x554265);if(_0x4f3230>=0x0&&_0x4f3230<=_0x5a93eb['dsJFi'](Math['pow'](0x2,_0x5a93eb['XksSx'](0x7,_0x554265)),0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),_0x5a93eb[_0x15b9b8(0x15f)](writeVint,_0x4f3230,_0x554265),Buffer['alloc'](_0x4f3230)]);}return Buffer['alloc'](0x0);}function findElement(_0x2d1d40,_0x10184f,_0x2c658a,_0x1695d2){const _0x12eeaf=_0x3349,_0x31ee39={'tgRSp':function(_0x3c34f1,_0xda4ec,_0x49ed4c){return _0x3c34f1(_0xda4ec,_0x49ed4c);},'fydDH':function(_0x538aa1,_0x2091ca){return _0x538aa1===_0x2091ca;},'oBeLM':function(_0x46d36d,_0x2062f9){return _0x46d36d+_0x2062f9;},'VrxGO':function(_0x1ea2c6,_0x1a849b){return _0x1ea2c6+_0x1a849b;}};let _0x1be7f8=_0x10184f;while(_0x1be7f8<_0x2c658a){const [_0x2566fc,_0x2edbc3]=readId(_0x2d1d40,_0x1be7f8),[_0x3637f8,_0xf0a680]=_0x31ee39['tgRSp'](readVint,_0x2d1d40,_0x1be7f8+_0x2edbc3);if(_0x31ee39['fydDH'](_0x2566fc,_0x1695d2))return{'offset':_0x1be7f8,'idLen':_0x2edbc3,'sizeLen':_0xf0a680,'dataSize':_0x3637f8,'dataOffset':_0x31ee39['oBeLM'](_0x1be7f8+_0x2edbc3,_0xf0a680)};if(isUnknownSize(_0x3637f8,_0xf0a680))break;_0x1be7f8+=_0x31ee39[_0x12eeaf(0x15d)](_0x2edbc3+_0xf0a680,_0x3637f8);}return null;}function computeDurationMs(_0x2bdfb4,_0x166b11){const _0x2d321b=_0x3349,_0x4e734c={'vWWNS':function(_0x3d4462,_0x451d8a){return _0x3d4462===_0x451d8a;},'rEJnf':function(_0x174c2d,_0x59bbea,_0x58c66c){return _0x174c2d(_0x59bbea,_0x58c66c);},'eIahb':function(_0x2bbd2d,_0x35a55b){return _0x2bbd2d!==_0x35a55b;},'JoPZi':function(_0x471b62,_0x451d34){return _0x471b62+_0x451d34;},'DqHzC':function(_0x1203f6,_0x291d55){return _0x1203f6+_0x291d55;},'aAAxt':function(_0x55548b,_0x319b27){return _0x55548b-_0x319b27;},'bXdGg':function(_0x5cb98c,_0x36d160){return _0x5cb98c===_0x36d160;},'xNrDS':function(_0x261c9a,_0x497405,_0x4c0bc3){return _0x261c9a(_0x497405,_0x4c0bc3);},'UDKoo':function(_0x54f0f6,_0x531665){return _0x54f0f6<_0x531665;},'ZNSob':function(_0x104b7e,_0x399604,_0x2f1aa3){return _0x104b7e(_0x399604,_0x2f1aa3);},'BvXsO':function(_0x3c7b22,_0x1fda9a,_0x54a447){return _0x3c7b22(_0x1fda9a,_0x54a447);},'IMAjh':function(_0xe6434f,_0x4e3391){return _0xe6434f+_0x4e3391;},'EEEwH':function(_0x20976d,_0x2cb66b,_0x522fc7,_0x24e097){return _0x20976d(_0x2cb66b,_0x522fc7,_0x24e097);},'LvRvp':function(_0xfa2a24,_0x252903){return _0xfa2a24+_0x252903;},'aWTjY':function(_0x2129d2,_0xfa1dda){return _0x2129d2===_0xfa1dda;},'MJvkN':function(_0x29812d,_0x3b19a7){return _0x29812d*_0x3b19a7;},'mQcwq':function(_0x4f861d,_0x1f3b7c){return _0x4f861d>_0x1f3b7c;}};let _0x41a1ae=0x0;const _0x3ab9da=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x716f1b=_0x2bdfb4[_0x2d321b(0x189)](_0x3ab9da);if(_0x4e734c['vWWNS'](_0x716f1b,-0x1))return 0x0;while(_0x716f1b<_0x2bdfb4[_0x2d321b(0x163)]){const [_0x472908,_0x3bc067]=_0x4e734c[_0x2d321b(0x16f)](readId,_0x2bdfb4,_0x716f1b);if(_0x4e734c[_0x2d321b(0x14c)](_0x472908,ID_CLUSTER))break;const [_0x7d7baa,_0x208558]=readVint(_0x2bdfb4,_0x4e734c['JoPZi'](_0x716f1b,_0x3bc067)),_0x38e396=_0x4e734c['DqHzC'](_0x716f1b+_0x3bc067,_0x208558),_0x51aa64=isUnknownSize(_0x7d7baa,_0x208558);let _0x35826b;if(_0x51aa64){let _0x161e67=_0x38e396;while(_0x161e67<_0x4e734c['aAAxt'](_0x2bdfb4[_0x2d321b(0x163)],0x4)){const [_0x1769c3,_0x14f09e]=readId(_0x2bdfb4,_0x161e67);if(_0x4e734c[_0x2d321b(0x182)](_0x1769c3,ID_CLUSTER)){_0x35826b=_0x161e67;break;}const [_0x38bdd3,_0x2978d0]=readVint(_0x2bdfb4,_0x4e734c['DqHzC'](_0x161e67,_0x14f09e));if(_0x4e734c['xNrDS'](isUnknownSize,_0x38bdd3,_0x2978d0)){_0x35826b=_0x2bdfb4['length'];break;}_0x161e67+=_0x4e734c[_0x2d321b(0x156)](_0x4e734c['DqHzC'](_0x14f09e,_0x2978d0),_0x38bdd3);}_0x35826b??=_0x2bdfb4['length'];}else _0x35826b=_0x38e396+_0x7d7baa;let _0x5b6f3e=0x0,_0x3352dc=_0x38e396;while(_0x4e734c['UDKoo'](_0x3352dc,_0x35826b)){const [_0x581f41,_0x31b107]=_0x4e734c[_0x2d321b(0x16c)](readId,_0x2bdfb4,_0x3352dc),[_0x885ecd,_0x4a6889]=_0x4e734c[_0x2d321b(0x18b)](readVint,_0x2bdfb4,_0x4e734c['IMAjh'](_0x3352dc,_0x31b107));if(_0x581f41===ID_TIMESTAMP)_0x5b6f3e=_0x4e734c[_0x2d321b(0x180)](readUint,_0x2bdfb4,_0x4e734c[_0x2d321b(0x168)](_0x4e734c[_0x2d321b(0x156)](_0x3352dc,_0x31b107),_0x4a6889),_0x885ecd);else{if(_0x4e734c['aWTjY'](_0x581f41,ID_SIMPLE_BLOCK)&&_0x885ecd>=0x4){const _0x3a12f1=_0x4e734c['IMAjh'](_0x4e734c[_0x2d321b(0x168)](_0x3352dc,_0x31b107),_0x4a6889),[,_0x99f6c9]=_0x4e734c[_0x2d321b(0x171)](readVint,_0x2bdfb4,_0x3a12f1),_0x5c19fa=_0x2bdfb4['readInt16BE'](_0x4e734c['IMAjh'](_0x3a12f1,_0x99f6c9)),_0x2fadae=_0x4e734c['MJvkN'](_0x5b6f3e+_0x5c19fa,_0x166b11)/0xf4240;_0x4e734c[_0x2d321b(0x174)](_0x2fadae,_0x41a1ae)&&(_0x41a1ae=_0x2fadae);}else{if(_0x581f41===ID_CLUSTER)break;}}if(_0x4e734c[_0x2d321b(0x18b)](isUnknownSize,_0x885ecd,_0x4a6889))break;_0x3352dc+=_0x31b107+_0x4a6889+_0x885ecd;}_0x716f1b=_0x35826b;}return _0x41a1ae;}export function fixWebmDuration(_0x379f08,_0x407cfd){const _0x20b3de=_0x3349,_0x339b6d={'nMvOB':function(_0x3279fb,_0x3942de){return _0x3279fb(_0x3942de);},'Xkbwd':function(_0x1ea4c9,_0x2807dc,_0x132f2e){return _0x1ea4c9(_0x2807dc,_0x132f2e);},'GKPHb':function(_0x362653,_0x3c0b7f){return _0x362653+_0x3c0b7f;},'tjfDT':function(_0x556296,_0x58d1ce){return _0x556296+_0x58d1ce;},'dqEQx':function(_0x24545c,_0x3af832){return _0x24545c!==_0x3af832;},'IaGmf':_0x20b3de(0x17a),'wEAwc':function(_0xf2d0a4,_0x5227b0){return _0xf2d0a4+_0x5227b0;},'rPcru':function(_0x38fe69,_0x17b750){return _0x38fe69+_0x17b750;},'qvqJM':function(_0x40add3,_0x680ca0){return _0x40add3+_0x680ca0;},'mPNtX':function(_0x35729a,_0x2115b1){return _0x35729a<=_0x2115b1;},'WwVGV':'Could\x20not\x20compute\x20duration','VFwRD':function(_0x3191d5,_0x9fe594){return _0x3191d5/_0x9fe594;},'JCrlm':function(_0x1ca918,_0x1ef1d2){return _0x1ca918*_0x1ef1d2;},'EHdaT':function(_0x29d0e6,_0x288f58){return _0x29d0e6(_0x288f58);},'Kznre':function(_0x185084,_0x2ccf63){return _0x185084<_0x2ccf63;},'ivPfC':function(_0x1e12d7,_0xf46798){return _0x1e12d7(_0xf46798);}},_0x21095=_0x339b6d[_0x20b3de(0x175)](readFileSync,_0x379f08);let _0x1cf3fd=0x0;const [_0x4ff68f,_0x508987]=readId(_0x21095,_0x1cf3fd),[_0x4414d7,_0x15db44]=_0x339b6d[_0x20b3de(0x159)](readVint,_0x21095,_0x339b6d[_0x20b3de(0x172)](_0x1cf3fd,_0x508987));_0x1cf3fd+=_0x339b6d['tjfDT'](_0x508987,_0x15db44)+_0x4414d7;const [_0x397295,_0x3080c7]=readId(_0x21095,_0x1cf3fd);if(_0x339b6d['dqEQx'](_0x397295,ID_SEGMENT))return console[_0x20b3de(0x176)](_0x339b6d[_0x20b3de(0x15a)]),![];const [,_0x2e6ffe]=_0x339b6d[_0x20b3de(0x159)](readVint,_0x21095,_0x339b6d[_0x20b3de(0x172)](_0x1cf3fd,_0x3080c7)),_0x3caf93=_0x339b6d[_0x20b3de(0x155)](_0x339b6d[_0x20b3de(0x14a)](_0x1cf3fd,_0x3080c7),_0x2e6ffe);let _0x47adc=_0x3caf93;const _0x406cad=Math[_0x20b3de(0x160)](_0x21095['length'],_0x339b6d[_0x20b3de(0x172)](_0x3caf93,0x2710));let _0x1053c3=null,_0x227b74=null;while(_0x47adc<_0x406cad){const [_0x3a7f55,_0x410a76]=readId(_0x21095,_0x47adc),[_0x73729a,_0x1f0675]=readVint(_0x21095,_0x47adc+_0x410a76);_0x3a7f55===ID_VOID&&!_0x1053c3&&(_0x1053c3={'offset':_0x47adc,'idLen':_0x410a76,'sizeLen':_0x1f0675,'dataSize':_0x73729a,'dataOffset':_0x339b6d[_0x20b3de(0x170)](_0x47adc,_0x410a76)+_0x1f0675});if(_0x3a7f55===ID_INFO){_0x227b74={'offset':_0x47adc,'idLen':_0x410a76,'sizeLen':_0x1f0675,'dataSize':_0x73729a,'dataOffset':_0x339b6d[_0x20b3de(0x14e)](_0x47adc,_0x410a76)+_0x1f0675};break;}if(_0x3a7f55===ID_CLUSTER)break;if(isUnknownSize(_0x73729a,_0x1f0675))break;_0x47adc+=_0x410a76+_0x1f0675+_0x73729a;}if(!_0x227b74)return console[_0x20b3de(0x176)]('Could\x20not\x20find\x20Info\x20element'),![];const _0x2449cc=findElement(_0x21095,_0x227b74[_0x20b3de(0x161)],_0x339b6d['wEAwc'](_0x227b74[_0x20b3de(0x161)],_0x227b74['dataSize']),ID_DURATION);if(_0x2449cc)return![];const _0x554515=findElement(_0x21095,_0x227b74['dataOffset'],_0x227b74['dataOffset']+_0x227b74[_0x20b3de(0x18f)],ID_TIMESTAMP_SCALE);let _0x653b08=0xf4240;_0x554515&&(_0x653b08=readUint(_0x21095,_0x554515['dataOffset'],_0x554515[_0x20b3de(0x18f)]));const _0x2521d5=computeDurationMs(_0x21095,_0x653b08);if(_0x339b6d[_0x20b3de(0x17c)](_0x2521d5,0x0))return console[_0x20b3de(0x176)](_0x339b6d[_0x20b3de(0x173)]),![];const _0x1685ac=_0x339b6d[_0x20b3de(0x14d)](_0x339b6d['JCrlm'](_0x2521d5,0xf4240),_0x653b08),_0x1116ac=Buffer['concat']([writeId(ID_DURATION),_0x339b6d[_0x20b3de(0x18d)](writeVint,0x8),writeFloat64(_0x1685ac)]),_0x4b925=_0x1116ac['length'];if(!_0x1053c3||_0x339b6d['Kznre'](_0x1053c3[_0x20b3de(0x164)],_0x227b74[_0x20b3de(0x164)])){if(_0x1053c3){const _0x35f75b=_0x1053c3[_0x20b3de(0x15c)]+_0x1053c3[_0x20b3de(0x188)]+_0x1053c3[_0x20b3de(0x18f)],_0x307d96=_0x35f75b-_0x4b925;if(_0x339b6d[_0x20b3de(0x183)](_0x307d96,0x2))return rewriteFile(_0x21095,_0x227b74,_0x1116ac,_0x653b08,_0x2521d5,_0x407cfd);const _0x3717b0=_0x339b6d[_0x20b3de(0x14a)](_0x227b74[_0x20b3de(0x18f)],_0x4b925),_0x1401ba=Buffer[_0x20b3de(0x177)]([_0x339b6d['ivPfC'](writeId,ID_INFO),_0x339b6d['Xkbwd'](writeVint,_0x3717b0,_0x227b74[_0x20b3de(0x188)])]),_0x2bc162=_0x21095['slice'](_0x227b74['dataOffset'],_0x227b74['dataOffset']+_0x227b74['dataSize']),_0x120c49=writeVoid(_0x307d96),_0x21eb64=_0x21095[_0x20b3de(0x150)](0x0,_0x1053c3[_0x20b3de(0x164)]),_0xc0991a=_0x21095['slice'](_0x227b74[_0x20b3de(0x161)]+_0x227b74['dataSize']);return writeFileSync(_0x407cfd,Buffer['concat']([_0x21eb64,_0x120c49,_0x1401ba,_0x2bc162,_0x1116ac,_0xc0991a])),!![];}}return rewriteFile(_0x21095,_0x227b74,_0x1116ac,_0x653b08,_0x2521d5,_0x407cfd);}function rewriteFile(_0x4e6249,_0x4372fc,_0x5b360a,_0x145799,_0x277333,_0x332b14){const _0x5d2902=_0x3349,_0x440d6a={'FZojR':function(_0x378fd6,_0x49607c){return _0x378fd6(_0x49607c);},'RBxTA':function(_0x37d1ba,_0x26b653){return _0x37d1ba(_0x26b653);},'FyijY':function(_0x3b3172,_0x54f7dc){return _0x3b3172+_0x54f7dc;},'IdCNM':function(_0x11f762,_0x2f0cfa,_0x44fb32){return _0x11f762(_0x2f0cfa,_0x44fb32);}},_0x133ef4=_0x4372fc[_0x5d2902(0x18f)]+_0x5b360a['length'],_0x489422=Buffer[_0x5d2902(0x177)]([_0x440d6a['FZojR'](writeId,ID_INFO),_0x440d6a['RBxTA'](writeVint,_0x133ef4)]),_0x26001a=_0x440d6a[_0x5d2902(0x17f)](_0x4372fc['idLen'],_0x4372fc[_0x5d2902(0x188)]),_0x19922c=_0x4e6249['slice'](0x0,_0x4372fc['offset']),_0x1b9fc0=_0x4e6249[_0x5d2902(0x150)](_0x4372fc[_0x5d2902(0x161)],_0x4372fc[_0x5d2902(0x161)]+_0x4372fc['dataSize']),_0x5ad78b=_0x4e6249['slice'](_0x4372fc['offset']+_0x26001a+_0x4372fc[_0x5d2902(0x18f)]);return _0x440d6a['IdCNM'](writeFileSync,_0x332b14,Buffer[_0x5d2902(0x177)]([_0x19922c,_0x489422,_0x1b9fc0,_0x5b360a,_0x5ad78b])),!![];}if(process['argv'][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x2f758d(0x17e)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x2f758d(0x176)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x2f758d(0x14f)](_0x2f758d(0x157));}
1
+ function _0x26ee(_0x1b7f39,_0x2d2554){_0x1b7f39=_0x1b7f39-0xe6;const _0x5476e0=_0x5476();let _0x26eee3=_0x5476e0[_0x1b7f39];return _0x26eee3;}const _0xeaa5d9=_0x26ee;(function(_0x3324bc,_0x476066){const _0x3c4b08=_0x26ee,_0x23cbe2=_0x3324bc();while(!![]){try{const _0x22b21a=-parseInt(_0x3c4b08(0x11f))/0x1+parseInt(_0x3c4b08(0xfb))/0x2*(-parseInt(_0x3c4b08(0x11b))/0x3)+parseInt(_0x3c4b08(0x10e))/0x4*(-parseInt(_0x3c4b08(0xeb))/0x5)+parseInt(_0x3c4b08(0x115))/0x6*(parseInt(_0x3c4b08(0x12a))/0x7)+parseInt(_0x3c4b08(0xf2))/0x8+parseInt(_0x3c4b08(0x11e))/0x9*(-parseInt(_0x3c4b08(0x118))/0xa)+parseInt(_0x3c4b08(0x125))/0xb;if(_0x22b21a===_0x476066)break;else _0x23cbe2['push'](_0x23cbe2['shift']());}catch(_0x574337){_0x23cbe2['push'](_0x23cbe2['shift']());}}}(_0x5476,0xd64a1));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(_0x173783,_0x32e95b){const _0x53395c=_0x26ee,_0x37acc8={'nItLO':function(_0xb1ffa6,_0x2ca8ad){return _0xb1ffa6>=_0x2ca8ad;},'GomTH':function(_0x5f378f,_0x5e5efc){return _0x5f378f&_0x5e5efc;},'EpPfq':function(_0x3f05a7,_0x1b8034){return _0x3f05a7<_0x1b8034;},'ysrfJ':function(_0x315bbf,_0x44486d){return _0x315bbf+_0x44486d;},'Yuivh':function(_0x5e6994,_0x4ac455){return _0x5e6994*_0x4ac455;}};if(_0x37acc8[_0x53395c(0x113)](_0x32e95b,_0x173783['length']))return[0x0,0x0];const _0x37bc00=_0x173783[_0x32e95b];let _0x419568=0x1,_0x298562=0x80;while(_0x419568<=0x8&&!_0x37acc8['GomTH'](_0x37bc00,_0x298562)){_0x419568++,_0x298562>>=0x1;}if(_0x32e95b+_0x419568>_0x173783['length'])return[0x0,0x0];let _0x190ec5=_0x37bc00&_0x298562-0x1;for(let _0x4ff596=0x1;_0x37acc8['EpPfq'](_0x4ff596,_0x419568);_0x4ff596++){_0x190ec5=_0x37acc8[_0x53395c(0x11d)](_0x37acc8[_0x53395c(0xe9)](_0x190ec5,0x100),_0x173783[_0x32e95b+_0x4ff596]);}return[_0x190ec5,_0x419568];}function readId(_0x2b9995,_0x3a9d00){const _0x6810e8=_0x26ee;if(_0x3a9d00>=_0x2b9995[_0x6810e8(0x10c)])return[0x0,0x0];const _0x377910=_0x2b9995[_0x3a9d00];let _0x287ef2;if(_0x377910>=0x80)_0x287ef2=0x1;else{if(_0x377910>=0x40)_0x287ef2=0x2;else{if(_0x377910>=0x20)_0x287ef2=0x3;else{if(_0x377910>=0x10)_0x287ef2=0x4;else return[_0x377910,0x1];}}}if(_0x3a9d00+_0x287ef2>_0x2b9995['length'])return[0x0,0x0];let _0x1af494=0x0;for(let _0x1f0154=0x0;_0x1f0154<_0x287ef2;_0x1f0154++){_0x1af494=_0x1af494*0x100+_0x2b9995[_0x3a9d00+_0x1f0154];}return[_0x1af494,_0x287ef2];}function readUint(_0x439d53,_0x1545a5,_0x1f588b){const _0x15d546=_0x26ee,_0x520642={'efWLr':function(_0x347064,_0x46e3b1){return _0x347064<_0x46e3b1;},'qdduX':function(_0x58a6e4,_0xeb8a40){return _0x58a6e4*_0xeb8a40;}};let _0x39cc25=0x0;for(let _0x4a2b4c=0x0;_0x520642[_0x15d546(0xea)](_0x4a2b4c,_0x1f588b);_0x4a2b4c++){_0x39cc25=_0x520642[_0x15d546(0xfa)](_0x39cc25,0x100)+_0x439d53[_0x1545a5+_0x4a2b4c];}return _0x39cc25;}function isUnknownSize(_0x5177b0,_0x1bb1e5){const _0x36d5b0=_0x26ee,_0x40915c={'vIdwV':function(_0x2881b2,_0x2d263c){return _0x2881b2===_0x2d263c;},'lDczb':function(_0xfddf90,_0x2ba0dd){return _0xfddf90-_0x2ba0dd;}};return _0x40915c[_0x36d5b0(0xfd)](_0x5177b0,_0x40915c[_0x36d5b0(0x120)](Math[_0x36d5b0(0x107)](0x2,0x7*_0x1bb1e5),0x1));}function writeId(_0x9a9b00){const _0x2cbe38=_0x26ee,_0x1a2fb5={'ktDmF':function(_0x551c41,_0x6bf152){return _0x551c41<=_0x6bf152;},'TKKnB':function(_0x11b220,_0x460b7e){return _0x11b220&_0x460b7e;},'cQzit':function(_0x3ff4f3,_0x41b827){return _0x3ff4f3>>_0x41b827;},'hIaQc':function(_0x4095df,_0x4eade2){return _0x4095df>>_0x4eade2;},'cAeFr':function(_0x1ea015,_0x1b941f){return _0x1ea015&_0x1b941f;},'IWkpy':function(_0x405575,_0x86bf06){return _0x405575&_0x86bf06;},'BHwMI':function(_0x1d2e6d,_0x32f0fd){return _0x1d2e6d&_0x32f0fd;}};if(_0x9a9b00<=0xff)return Buffer[_0x2cbe38(0x10d)]([_0x9a9b00]);if(_0x1a2fb5[_0x2cbe38(0x108)](_0x9a9b00,0xffff))return Buffer['from']([_0x1a2fb5['TKKnB'](_0x1a2fb5['cQzit'](_0x9a9b00,0x8),0xff),_0x1a2fb5['TKKnB'](_0x9a9b00,0xff)]);if(_0x9a9b00<=0xffffff)return Buffer[_0x2cbe38(0x10d)]([_0x9a9b00>>0x10&0xff,_0x1a2fb5['hIaQc'](_0x9a9b00,0x8)&0xff,_0x9a9b00&0xff]);return Buffer['from']([_0x1a2fb5[_0x2cbe38(0x102)](_0x1a2fb5[_0x2cbe38(0xf1)](_0x9a9b00,0x18),0xff),_0x9a9b00>>0x10&0xff,_0x1a2fb5[_0x2cbe38(0xf8)](_0x9a9b00>>0x8,0xff),_0x1a2fb5[_0x2cbe38(0xe7)](_0x9a9b00,0xff)]);}function writeVint(_0x4971f7,_0x17c607){const _0x38282c=_0x26ee,_0xfa0527={'OcRLn':function(_0x24b577,_0x4b7fcb){return _0x24b577<_0x4b7fcb;},'eifcz':function(_0x12bd41,_0x5ec36d){return _0x12bd41>=_0x5ec36d;},'IWXJf':function(_0x1d3e53,_0x16d4e3){return _0x1d3e53<<_0x16d4e3;}};let _0x3e4ad1=_0x17c607||0x1;while(_0xfa0527['OcRLn'](Math[_0x38282c(0x107)](0x2,0x7*_0x3e4ad1)-0x2,_0x4971f7))_0x3e4ad1++;const _0x56ec7b=Buffer[_0x38282c(0x104)](_0x3e4ad1);for(let _0x553a91=_0x3e4ad1-0x1;_0xfa0527['eifcz'](_0x553a91,0x0);_0x553a91--){_0x56ec7b[_0x553a91]=_0x4971f7&0xff,_0x4971f7=Math[_0x38282c(0x128)](_0x4971f7/0x100);}return _0x56ec7b[0x0]|=_0xfa0527['IWXJf'](0x1,0x8-_0x3e4ad1),_0x56ec7b;}function _0x5476(){const _0x5475c0=['log','exit','idLen','nItLO','Fixed:\x20','6DwlltQ','Could\x20not\x20compute\x20duration','ggsUN','10AaNLgw','qSRRW','woTQt','6BugGtx','tnHTx','ysrfJ','7122609IcRIbB','668270kvylTI','lDczb','iPCnY','offset','DxdHs','FNPAM','19135215THxjAS','argv','dataOffset','floor','pqeYP','6315799EXJRcj','gKkxb','BHwMI','dataSize','Yuivh','efWLr','5FfOXJB','PYwdn','concat','fuDFm','writeDoubleBE','uJzRR','cQzit','4931968PXuxWL','readInt16BE','slice','lZyRc','epBDy','fnPmS','IWkpy','indexOf','qdduX','598034UcrgSr','NtZId','vIdwV','SFbOy','ejFWV','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','Merrc','cAeFr','yXaVn','alloc','error','hXTfa','pow','ktDmF','NLNHQ','ogGZE','nPywe','length','from','1291536aFMxig','sXdni'];_0x5476=function(){return _0x5475c0;};return _0x5476();}function writeFloat64(_0x510150){const _0x25df78=_0x26ee,_0x4f371=Buffer[_0x25df78(0x104)](0x8);return _0x4f371[_0x25df78(0xef)](_0x510150,0x0),_0x4f371;}function writeVoid(_0x30ea49){const _0x105ee5=_0x26ee,_0x3cafd2={'GzEOL':function(_0x29b530,_0x2a4bf1){return _0x29b530-_0x2a4bf1;},'nPywe':function(_0x3dc7b4,_0xa239a4){return _0x3dc7b4-_0xa239a4;},'ogGZE':function(_0x418fb6,_0x232a90){return _0x418fb6*_0x232a90;},'epBDy':function(_0x424f0b,_0x401b80,_0x581661){return _0x424f0b(_0x401b80,_0x581661);}};for(let _0x4f7d6f=0x1;_0x4f7d6f<=0x8;_0x4f7d6f++){const _0x54cc02=_0x3cafd2['GzEOL'](_0x3cafd2['GzEOL'](_0x30ea49,0x1),_0x4f7d6f);if(_0x54cc02>=0x0&&_0x54cc02<=_0x3cafd2[_0x105ee5(0x10b)](Math[_0x105ee5(0x107)](0x2,_0x3cafd2[_0x105ee5(0x10a)](0x7,_0x4f7d6f)),0x2))return Buffer[_0x105ee5(0xed)]([Buffer[_0x105ee5(0x10d)]([ID_VOID]),_0x3cafd2[_0x105ee5(0xf6)](writeVint,_0x54cc02,_0x4f7d6f),Buffer[_0x105ee5(0x104)](_0x54cc02)]);}return Buffer[_0x105ee5(0x104)](0x0);}function findElement(_0x486025,_0xb23bed,_0x438930,_0x32b26c){const _0x345970=_0x26ee,_0x1e9a8f={'PYwdn':function(_0x260369,_0x507fdd){return _0x260369<_0x507fdd;},'NLNHQ':function(_0x28cc9b,_0x5918ab){return _0x28cc9b+_0x5918ab;},'AjtOc':function(_0x2ec4bd,_0x1dc0b7){return _0x2ec4bd===_0x1dc0b7;},'gKkxb':function(_0x5ee3e1,_0x37b158,_0x5758a4){return _0x5ee3e1(_0x37b158,_0x5758a4);}};let _0x1436d4=_0xb23bed;while(_0x1e9a8f[_0x345970(0xec)](_0x1436d4,_0x438930)){const [_0x5efa10,_0x5b1ae0]=readId(_0x486025,_0x1436d4),[_0x3cc2c2,_0x16291b]=readVint(_0x486025,_0x1e9a8f[_0x345970(0x109)](_0x1436d4,_0x5b1ae0));if(_0x1e9a8f['AjtOc'](_0x5efa10,_0x32b26c))return{'offset':_0x1436d4,'idLen':_0x5b1ae0,'sizeLen':_0x16291b,'dataSize':_0x3cc2c2,'dataOffset':_0x1436d4+_0x5b1ae0+_0x16291b};if(_0x1e9a8f[_0x345970(0xe6)](isUnknownSize,_0x3cc2c2,_0x16291b))break;_0x1436d4+=_0x1e9a8f['NLNHQ'](_0x5b1ae0+_0x16291b,_0x3cc2c2);}return null;}function computeDurationMs(_0x32abb8,_0x55cfe5){const _0x3533a5=_0x26ee,_0x89f45f={'uJzRR':function(_0x43c9b8,_0x36bda6,_0x686ae0){return _0x43c9b8(_0x36bda6,_0x686ae0);},'ahxtB':function(_0x50edc4,_0x2d666a){return _0x50edc4!==_0x2d666a;},'iPCnY':function(_0x5992fc,_0x3d1267){return _0x5992fc+_0x3d1267;},'aqGVh':function(_0x8254ea,_0x44ff7e){return _0x8254ea-_0x44ff7e;},'SFbOy':function(_0x10743f,_0x2406e8,_0x4a7ef9){return _0x10743f(_0x2406e8,_0x4a7ef9);},'dLPau':function(_0x3921f6,_0x435e42){return _0x3921f6+_0x435e42;},'JdLiw':function(_0x52a5c2,_0x191cf3){return _0x52a5c2<_0x191cf3;},'sXdni':function(_0x57e610,_0x7040e8){return _0x57e610+_0x7040e8;},'GZeue':function(_0x22097f,_0x3d8c24,_0xda00c3,_0x2e1155){return _0x22097f(_0x3d8c24,_0xda00c3,_0x2e1155);},'Merrc':function(_0xb129b6,_0xf1ce64){return _0xb129b6===_0xf1ce64;},'fnPmS':function(_0x3237d9,_0x3408f5){return _0x3237d9+_0x3408f5;},'tnHTx':function(_0x381ef1,_0x1d4f0f){return _0x381ef1/_0x1d4f0f;},'yXaVn':function(_0x5e9c94,_0x2395d0){return _0x5e9c94*_0x2395d0;},'gzroZ':function(_0x53291a,_0x26e9c6){return _0x53291a+_0x26e9c6;},'gbxYq':function(_0xfd540f,_0x172d0a){return _0xfd540f>_0x172d0a;},'rfntP':function(_0x45db4f,_0x45a30e){return _0x45db4f===_0x45a30e;}};let _0x42d96b=0x0;const _0x5aa220=Buffer[_0x3533a5(0x10d)]([0x1f,0x43,0xb6,0x75]);let _0x59d1d2=_0x32abb8[_0x3533a5(0xf9)](_0x5aa220);if(_0x59d1d2===-0x1)return 0x0;while(_0x59d1d2<_0x32abb8[_0x3533a5(0x10c)]){const [_0x4d5beb,_0x28c889]=_0x89f45f[_0x3533a5(0xf0)](readId,_0x32abb8,_0x59d1d2);if(_0x89f45f['ahxtB'](_0x4d5beb,ID_CLUSTER))break;const [_0xf98508,_0x3887a6]=readVint(_0x32abb8,_0x89f45f[_0x3533a5(0x121)](_0x59d1d2,_0x28c889)),_0x4d7dd5=_0x89f45f['iPCnY'](_0x59d1d2+_0x28c889,_0x3887a6),_0x1175e3=isUnknownSize(_0xf98508,_0x3887a6);let _0x395f28;if(_0x1175e3){let _0x24a74c=_0x4d7dd5;while(_0x24a74c<_0x89f45f['aqGVh'](_0x32abb8[_0x3533a5(0x10c)],0x4)){const [_0x2c306a,_0x38c4ce]=_0x89f45f[_0x3533a5(0xfe)](readId,_0x32abb8,_0x24a74c);if(_0x2c306a===ID_CLUSTER){_0x395f28=_0x24a74c;break;}const [_0x133680,_0xc56a86]=_0x89f45f[_0x3533a5(0xf0)](readVint,_0x32abb8,_0x24a74c+_0x38c4ce);if(isUnknownSize(_0x133680,_0xc56a86)){_0x395f28=_0x32abb8[_0x3533a5(0x10c)];break;}_0x24a74c+=_0x89f45f['dLPau'](_0x38c4ce,_0xc56a86)+_0x133680;}_0x395f28??=_0x32abb8[_0x3533a5(0x10c)];}else _0x395f28=_0x89f45f['iPCnY'](_0x4d7dd5,_0xf98508);let _0x257bde=0x0,_0x2994b6=_0x4d7dd5;while(_0x89f45f['JdLiw'](_0x2994b6,_0x395f28)){const [_0x1a8ad2,_0x4c097e]=_0x89f45f[_0x3533a5(0xfe)](readId,_0x32abb8,_0x2994b6),[_0x43d90d,_0x3283ec]=_0x89f45f[_0x3533a5(0xf0)](readVint,_0x32abb8,_0x89f45f['sXdni'](_0x2994b6,_0x4c097e));if(_0x1a8ad2===ID_TIMESTAMP)_0x257bde=_0x89f45f['GZeue'](readUint,_0x32abb8,_0x89f45f['sXdni'](_0x2994b6+_0x4c097e,_0x3283ec),_0x43d90d);else{if(_0x89f45f[_0x3533a5(0x101)](_0x1a8ad2,ID_SIMPLE_BLOCK)&&_0x43d90d>=0x4){const _0x346731=_0x89f45f[_0x3533a5(0xf7)](_0x2994b6+_0x4c097e,_0x3283ec),[,_0x3289d8]=readVint(_0x32abb8,_0x346731),_0x1e3b06=_0x32abb8[_0x3533a5(0xf3)](_0x89f45f[_0x3533a5(0x10f)](_0x346731,_0x3289d8)),_0x1b0347=_0x89f45f[_0x3533a5(0x11c)](_0x89f45f[_0x3533a5(0x103)](_0x89f45f['gzroZ'](_0x257bde,_0x1e3b06),_0x55cfe5),0xf4240);_0x89f45f['gbxYq'](_0x1b0347,_0x42d96b)&&(_0x42d96b=_0x1b0347);}else{if(_0x89f45f['rfntP'](_0x1a8ad2,ID_CLUSTER))break;}}if(isUnknownSize(_0x43d90d,_0x3283ec))break;_0x2994b6+=_0x4c097e+_0x3283ec+_0x43d90d;}_0x59d1d2=_0x395f28;}return _0x42d96b;}export function fixWebmDuration(_0x1bcdfb,_0x47ab8c){const _0x25bb3f=_0x26ee,_0x2c6726={'ejFWV':function(_0x29666f,_0x5a2e12,_0x17883a){return _0x29666f(_0x5a2e12,_0x17883a);},'fuDFm':function(_0x144951,_0x1a13d6){return _0x144951+_0x1a13d6;},'hXTfa':function(_0x588e45,_0x1ba30d){return _0x588e45+_0x1ba30d;},'yBxsJ':function(_0x5cfcfe,_0x34f7d7){return _0x5cfcfe+_0x34f7d7;},'woTQt':function(_0x2ab8d8,_0x55324e){return _0x2ab8d8+_0x55324e;},'PcoTv':function(_0x64b3aa,_0x426a4a){return _0x64b3aa<_0x426a4a;},'ggsUN':function(_0x2d5ee1,_0xd88777){return _0x2d5ee1+_0xd88777;},'yYqAz':function(_0x4a221b,_0x48447d){return _0x4a221b===_0x48447d;},'pqeYP':function(_0x35db4f,_0x5d9a6a){return _0x35db4f+_0x5d9a6a;},'DxdHs':function(_0x517417,_0x443361,_0x5241eb,_0x39ef2b,_0x101d6e){return _0x517417(_0x443361,_0x5241eb,_0x39ef2b,_0x101d6e);},'NtZId':function(_0x364020,_0x4696ad){return _0x364020+_0x4696ad;},'wtrGD':_0x25bb3f(0x116),'qSRRW':function(_0x4e08f6,_0x3eaa1d){return _0x4e08f6*_0x3eaa1d;},'ffuQC':function(_0x3301e4,_0x2be934){return _0x3301e4(_0x2be934);},'MEGEq':function(_0x1ba33d,_0x1ee283){return _0x1ba33d+_0x1ee283;}},_0x1d5a11=readFileSync(_0x1bcdfb);let _0x3ad3fe=0x0;const [_0x790220,_0x62914f]=readId(_0x1d5a11,_0x3ad3fe),[_0x1714a4,_0x48e573]=_0x2c6726[_0x25bb3f(0xff)](readVint,_0x1d5a11,_0x3ad3fe+_0x62914f);_0x3ad3fe+=_0x2c6726['fuDFm'](_0x2c6726[_0x25bb3f(0xee)](_0x62914f,_0x48e573),_0x1714a4);const [_0x111153,_0xe288b1]=_0x2c6726[_0x25bb3f(0xff)](readId,_0x1d5a11,_0x3ad3fe);if(_0x111153!==ID_SEGMENT)return console[_0x25bb3f(0x105)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x5abb15]=_0x2c6726['ejFWV'](readVint,_0x1d5a11,_0x2c6726['hXTfa'](_0x3ad3fe,_0xe288b1)),_0x19b8e1=_0x2c6726['yBxsJ'](_0x2c6726[_0x25bb3f(0x11a)](_0x3ad3fe,_0xe288b1),_0x5abb15);let _0x57b5af=_0x19b8e1;const _0x5af6da=Math['min'](_0x1d5a11[_0x25bb3f(0x10c)],_0x2c6726[_0x25bb3f(0xee)](_0x19b8e1,0x2710));let _0x1c734f=null,_0x2c0db8=null;while(_0x2c6726['PcoTv'](_0x57b5af,_0x5af6da)){const [_0x544a86,_0x43a95a]=_0x2c6726['ejFWV'](readId,_0x1d5a11,_0x57b5af),[_0x4bd5c9,_0x159c49]=_0x2c6726['ejFWV'](readVint,_0x1d5a11,_0x2c6726[_0x25bb3f(0x106)](_0x57b5af,_0x43a95a));_0x544a86===ID_VOID&&!_0x1c734f&&(_0x1c734f={'offset':_0x57b5af,'idLen':_0x43a95a,'sizeLen':_0x159c49,'dataSize':_0x4bd5c9,'dataOffset':_0x2c6726[_0x25bb3f(0x117)](_0x57b5af,_0x43a95a)+_0x159c49});if(_0x2c6726['yYqAz'](_0x544a86,ID_INFO)){_0x2c0db8={'offset':_0x57b5af,'idLen':_0x43a95a,'sizeLen':_0x159c49,'dataSize':_0x4bd5c9,'dataOffset':_0x2c6726['pqeYP'](_0x57b5af,_0x43a95a)+_0x159c49};break;}if(_0x544a86===ID_CLUSTER)break;if(isUnknownSize(_0x4bd5c9,_0x159c49))break;_0x57b5af+=_0x2c6726[_0x25bb3f(0x129)](_0x43a95a+_0x159c49,_0x4bd5c9);}if(!_0x2c0db8)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x4da1dc=_0x2c6726['DxdHs'](findElement,_0x1d5a11,_0x2c0db8[_0x25bb3f(0x127)],_0x2c0db8[_0x25bb3f(0x127)]+_0x2c0db8['dataSize'],ID_DURATION);if(_0x4da1dc)return![];const _0x60fad5=_0x2c6726[_0x25bb3f(0x123)](findElement,_0x1d5a11,_0x2c0db8['dataOffset'],_0x2c6726[_0x25bb3f(0xfc)](_0x2c0db8[_0x25bb3f(0x127)],_0x2c0db8[_0x25bb3f(0xe8)]),ID_TIMESTAMP_SCALE);let _0x155057=0xf4240;_0x60fad5&&(_0x155057=readUint(_0x1d5a11,_0x60fad5[_0x25bb3f(0x127)],_0x60fad5['dataSize']));const _0x367864=_0x2c6726[_0x25bb3f(0xff)](computeDurationMs,_0x1d5a11,_0x155057);if(_0x367864<=0x0)return console[_0x25bb3f(0x105)](_0x2c6726['wtrGD']),![];const _0x4bd9f8=_0x2c6726[_0x25bb3f(0x119)](_0x367864,0xf4240)/_0x155057,_0x433e5d=Buffer['concat']([writeId(ID_DURATION),writeVint(0x8),_0x2c6726['ffuQC'](writeFloat64,_0x4bd9f8)]),_0x47c3af=_0x433e5d['length'];if(!_0x1c734f||_0x1c734f['offset']<_0x2c0db8['offset']){if(_0x1c734f){const _0x1778df=_0x1c734f[_0x25bb3f(0x112)]+_0x1c734f['sizeLen']+_0x1c734f['dataSize'],_0x14d2fc=_0x1778df-_0x47c3af;if(_0x14d2fc<0x2)return rewriteFile(_0x1d5a11,_0x2c0db8,_0x433e5d,_0x155057,_0x367864,_0x47ab8c);const _0xbf3c32=_0x2c0db8[_0x25bb3f(0xe8)]+_0x47c3af,_0x551d01=Buffer[_0x25bb3f(0xed)]([writeId(ID_INFO),writeVint(_0xbf3c32,_0x2c0db8['sizeLen'])]),_0x4903d4=_0x1d5a11[_0x25bb3f(0xf4)](_0x2c0db8['dataOffset'],_0x2c0db8[_0x25bb3f(0x127)]+_0x2c0db8['dataSize']),_0x5a77d0=writeVoid(_0x14d2fc),_0x580b58=_0x1d5a11[_0x25bb3f(0xf4)](0x0,_0x1c734f['offset']),_0x3fad1e=_0x1d5a11['slice'](_0x2c6726['MEGEq'](_0x2c0db8['dataOffset'],_0x2c0db8[_0x25bb3f(0xe8)]));return writeFileSync(_0x47ab8c,Buffer[_0x25bb3f(0xed)]([_0x580b58,_0x5a77d0,_0x551d01,_0x4903d4,_0x433e5d,_0x3fad1e])),!![];}}return rewriteFile(_0x1d5a11,_0x2c0db8,_0x433e5d,_0x155057,_0x367864,_0x47ab8c);}function rewriteFile(_0x1b2554,_0x5ebe4,_0x165b51,_0x2f41df,_0x174701,_0xc63001){const _0x9ec140=_0x26ee,_0x45137c={'FNPAM':function(_0xd62af4,_0x23b27e){return _0xd62af4(_0x23b27e);},'BKONT':function(_0x4c3704,_0x43f88d){return _0x4c3704+_0x43f88d;},'lZyRc':function(_0x4ad607,_0x305fe7,_0x42b568){return _0x4ad607(_0x305fe7,_0x42b568);}},_0x23a060=_0x5ebe4[_0x9ec140(0xe8)]+_0x165b51['length'],_0x59c42f=Buffer['concat']([_0x45137c[_0x9ec140(0x124)](writeId,ID_INFO),_0x45137c['FNPAM'](writeVint,_0x23a060)]),_0x24a0c8=_0x5ebe4[_0x9ec140(0x112)]+_0x5ebe4['sizeLen'],_0x44ee63=_0x1b2554[_0x9ec140(0xf4)](0x0,_0x5ebe4[_0x9ec140(0x122)]),_0x4273c6=_0x1b2554[_0x9ec140(0xf4)](_0x5ebe4[_0x9ec140(0x127)],_0x5ebe4['dataOffset']+_0x5ebe4[_0x9ec140(0xe8)]),_0x5daa30=_0x1b2554['slice'](_0x45137c['BKONT'](_0x5ebe4[_0x9ec140(0x122)],_0x24a0c8)+_0x5ebe4[_0x9ec140(0xe8)]);return _0x45137c[_0x9ec140(0xf5)](writeFileSync,_0xc63001,Buffer['concat']([_0x44ee63,_0x59c42f,_0x4273c6,_0x165b51,_0x5daa30])),!![];}if(process['argv'][0x1]?.['endsWith']('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0xeaa5d9(0x126)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0xeaa5d9(0x105)](_0xeaa5d9(0x100)),process[_0xeaa5d9(0x111)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0xeaa5d9(0x110)](_0xeaa5d9(0x114)+output):console[_0xeaa5d9(0x110)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
@@ -1 +1 @@
1
- const _0x4fd68f=_0xcd7a;(function(_0x29e963,_0x20cc08){const _0x140d99=_0xcd7a,_0x88c981=_0x29e963();while(!![]){try{const _0x1706ba=-parseInt(_0x140d99(0x15c))/0x1+parseInt(_0x140d99(0x194))/0x2+-parseInt(_0x140d99(0x154))/0x3*(parseInt(_0x140d99(0x165))/0x4)+parseInt(_0x140d99(0x16e))/0x5*(-parseInt(_0x140d99(0x167))/0x6)+-parseInt(_0x140d99(0x17a))/0x7+parseInt(_0x140d99(0x155))/0x8+parseInt(_0x140d99(0x19e))/0x9;if(_0x1706ba===_0x20cc08)break;else _0x88c981['push'](_0x88c981['shift']());}catch(_0x372f45){_0x88c981['push'](_0x88c981['shift']());}}}(_0x1dfd,0xc75f1));const _0x24f6dc=(function(){const _0x3328ad=_0xcd7a,_0x5bbb6b={'KHDJq':_0x3328ad(0x181),'wZYxJ':_0x3328ad(0x16f),'zuIeo':_0x3328ad(0x170),'ZEXyg':_0x3328ad(0x15e)};let _0x4fdab2=!![];return function(_0x5655b4,_0x56ba60){const _0x1bd4a4=_0x3328ad,_0x3c9781={'tqqgI':_0x5bbb6b[_0x1bd4a4(0x17b)],'OtwKv':_0x5bbb6b[_0x1bd4a4(0x158)]};if(_0x5bbb6b[_0x1bd4a4(0x185)]!==_0x5bbb6b[_0x1bd4a4(0x179)]){const _0x5a7f09=_0x4fdab2?function(){const _0x5a2ca9=_0x1bd4a4,_0x184d6c={'ChcuG':_0x3c9781[_0x5a2ca9(0x188)]};if(_0x3c9781[_0x5a2ca9(0x1a0)]===_0x3c9781[_0x5a2ca9(0x1a0)]){if(_0x56ba60){const _0x4f17aa=_0x56ba60['apply'](_0x5655b4,arguments);return _0x56ba60=null,_0x4f17aa;}}else return _0x19338a[_0x5a2ca9(0x192)]()[_0x5a2ca9(0x153)](_0x184d6c[_0x5a2ca9(0x17e)])['toString']()[_0x5a2ca9(0x198)](_0x558bf4)[_0x5a2ca9(0x153)](_0x184d6c[_0x5a2ca9(0x17e)]);}:function(){};return _0x4fdab2=![],_0x5a7f09;}else{const _0x591b75=_0x2fd38e?function(){const _0x43d4dd=_0x1bd4a4;if(_0x1a9add){const _0x44e644=_0x19cf6c[_0x43d4dd(0x15b)](_0x5e5ccd,arguments);return _0x5d1c67=null,_0x44e644;}}:function(){};return _0x3efe6a=![],_0x591b75;}};}()),_0x176c52=_0x24f6dc(this,function(){const _0x18fcd0=_0xcd7a,_0x250188={'Opsnx':_0x18fcd0(0x181)};return _0x176c52[_0x18fcd0(0x192)]()[_0x18fcd0(0x153)](_0x18fcd0(0x181))[_0x18fcd0(0x192)]()['constructor'](_0x176c52)[_0x18fcd0(0x153)](_0x250188[_0x18fcd0(0x174)]);});_0x176c52();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0xcd7a(_0x1a3bd3,_0x13f150){_0x1a3bd3=_0x1a3bd3-0x14e;const _0x1375ff=_0x1dfd();let _0x176c52=_0x1375ff[_0x1a3bd3];if(_0xcd7a['ePDByI']===undefined){var _0x24f6dc=function(_0x355690){const _0x162976='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e4fe5='',_0x4a16c9='',_0x46ba48=_0x4e4fe5+_0x24f6dc;for(let _0x358444=0x0,_0x217560,_0x21e401,_0x4359e3=0x0;_0x21e401=_0x355690['charAt'](_0x4359e3++);~_0x21e401&&(_0x217560=_0x358444%0x4?_0x217560*0x40+_0x21e401:_0x21e401,_0x358444++%0x4)?_0x4e4fe5+=_0x46ba48['charCodeAt'](_0x4359e3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x217560>>(-0x2*_0x358444&0x6)):_0x358444:0x0){_0x21e401=_0x162976['indexOf'](_0x21e401);}for(let _0x245ac2=0x0,_0x24678b=_0x4e4fe5['length'];_0x245ac2<_0x24678b;_0x245ac2++){_0x4a16c9+='%'+('00'+_0x4e4fe5['charCodeAt'](_0x245ac2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a16c9);};_0xcd7a['HjVktm']=_0x24f6dc,_0xcd7a['zWnQki']={},_0xcd7a['ePDByI']=!![];}const _0x1dfdfb=_0x1375ff[0x0],_0xcd7a59=_0x1a3bd3+_0x1dfdfb,_0x11d9b3=_0xcd7a['zWnQki'][_0xcd7a59];if(!_0x11d9b3){const _0x2fd38e=function(_0x8dcb15){this['ioUDKz']=_0x8dcb15,this['erBqZZ']=[0x1,0x0,0x0],this['WFEGUT']=function(){return'newState';},this['ioTKvS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['txWUmh']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2fd38e['prototype']['VYxcuG']=function(){const _0x34ba56=new RegExp(this['ioTKvS']+this['txWUmh']),_0x26d779=_0x34ba56['test'](this['WFEGUT']['toString']())?--this['erBqZZ'][0x1]:--this['erBqZZ'][0x0];return this['ruoxAW'](_0x26d779);},_0x2fd38e['prototype']['ruoxAW']=function(_0x54bcf6){if(!Boolean(~_0x54bcf6))return _0x54bcf6;return this['LmYHWf'](this['ioUDKz']);},_0x2fd38e['prototype']['LmYHWf']=function(_0x3efe6a){for(let _0x1a9add=0x0,_0x1fc83a=this['erBqZZ']['length'];_0x1a9add<_0x1fc83a;_0x1a9add++){this['erBqZZ']['push'](Math['round'](Math['random']())),_0x1fc83a=this['erBqZZ']['length'];}return _0x3efe6a(this['erBqZZ'][0x0]);},new _0x2fd38e(_0xcd7a)['VYxcuG'](),_0x176c52=_0xcd7a['HjVktm'](_0x176c52),_0xcd7a['zWnQki'][_0xcd7a59]=_0x176c52;}else _0x176c52=_0x11d9b3;return _0x176c52;}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x4fd68f(0x19c),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4fd68f(0x1ac)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4fd68f(0x1a8));function isGitHubCI(){const _0xca904b=_0x4fd68f;return!!process[_0xca904b(0x17f)][_0xca904b(0x15d)];}async function writeToGitHubEnv(_0x1e23bf,_0x323191){const _0x4998d9=_0x4fd68f,_0x3c65c0={'hTgcg':function(_0x184ccd,_0x4ffaf5,_0x4d2747){return _0x184ccd(_0x4ffaf5,_0x4d2747);}},_0x2fcaf2=process[_0x4998d9(0x17f)][_0x4998d9(0x15d)];_0x2fcaf2&&await _0x3c65c0['hTgcg'](appendFile,_0x2fcaf2,_0x1e23bf+'='+_0x323191+'\x0a');}export async function storeToken(_0x5c3925){const _0x3a85af=_0x4fd68f,_0x5696a1={'UJAlv':_0x3a85af(0x15f),'aMZGL':function(_0x11241b,_0x44fb02,_0x286271){return _0x11241b(_0x44fb02,_0x286271);},'ctrjB':function(_0x4cba66,_0x1ab14c){return _0x4cba66!==_0x1ab14c;},'XymaS':'XkwLv','KGnLy':_0x3a85af(0x1a7),'kUftf':function(_0x5bce50,_0x5dffcd,_0x4c4a62,_0x1b9d8c){return _0x5bce50(_0x5dffcd,_0x4c4a62,_0x1b9d8c);}};if(isGitHubCI()){if(_0x3a85af(0x15f)!==_0x5696a1[_0x3a85af(0x14e)])return _0x1b1f78[_0x3a85af(0x17f)][_0x53af37];else await _0x5696a1[_0x3a85af(0x193)](writeToGitHubEnv,ENV_TOKEN,_0x5c3925);}else{if(_0x5696a1[_0x3a85af(0x152)](_0x5696a1[_0x3a85af(0x180)],_0x5696a1[_0x3a85af(0x1a2)]))await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x5696a1['kUftf'](writeFile,TOKEN_PATH,_0x5c3925,{'mode':0x180});else{if(_0x5b7c8c){const _0x2ed0e9=_0x33a5dc[_0x3a85af(0x15b)](_0x3a543a,arguments);return _0x5a2473=null,_0x2ed0e9;}}}}export async function getToken(){const _0x21d6af=_0x4fd68f,_0x59b2cc={'jzrYk':function(_0x461196,_0x4fca00){return _0x461196(_0x4fca00);},'cEAeT':function(_0x58fc43,_0x453cf3){return _0x58fc43 instanceof _0x453cf3;},'WJLCL':function(_0x4a8b71,_0x5636ea){return _0x4a8b71+_0x5636ea;},'bKKlM':function(_0x29f5f4,_0x1b313d){return _0x29f5f4!==_0x1b313d;},'AwtYX':_0x21d6af(0x1a9),'eBWWa':'qADuh','jgkiC':'yrOfx','mgoSU':function(_0x545edf,_0x21cdb6,_0x3d9de0){return _0x545edf(_0x21cdb6,_0x3d9de0);},'YRtiF':_0x21d6af(0x163),'YTfNo':function(_0x88421,_0x30e9c7){return _0x88421!==_0x30e9c7;},'WnJrM':_0x21d6af(0x151),'bwZHN':_0x21d6af(0x18c),'MzHNX':function(_0x33bbc5){return _0x33bbc5();},'KjLNr':_0x21d6af(0x150),'MtYDu':function(_0x233994){return _0x233994();},'VcWMw':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','wdANb':function(_0x70afe2,_0x28f5e1){return _0x70afe2+_0x28f5e1;},'bOHpa':_0x21d6af(0x16c),'XolNd':_0x21d6af(0x18e)};if(process[_0x21d6af(0x17f)][ENV_TOKEN])return _0x59b2cc['bKKlM'](_0x59b2cc[_0x21d6af(0x19f)],_0x59b2cc[_0x21d6af(0x19f)])?!![]:process[_0x21d6af(0x17f)][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY])return process[_0x21d6af(0x17f)][ENV_TOKEN_LEGACY];let _0x42948c=null;try{_0x59b2cc[_0x21d6af(0x16b)](_0x59b2cc[_0x21d6af(0x187)],_0x59b2cc[_0x21d6af(0x186)])?_0x42948c=(await _0x59b2cc['mgoSU'](readFile,TOKEN_PATH,_0x59b2cc[_0x21d6af(0x190)]))[_0x21d6af(0x161)]()||null:_0x59b2cc[_0x21d6af(0x1a4)](_0x37a952,_0x30c328);}catch{if(_0x59b2cc['YTfNo'](_0x59b2cc['WnJrM'],_0x59b2cc[_0x21d6af(0x164)])){const _0x44f421=await _0x59b2cc[_0x21d6af(0x166)](tryRefreshToken);return _0x44f421;}else{const _0xa779db=_0x59b2cc[_0x21d6af(0x19a)](_0x4caad9,_0x1899c5)?_0x28c2d7[_0x21d6af(0x157)]:_0x2647f7(_0x3ef330);throw new _0x1d2f10(_0x59b2cc['WJLCL'](_0x21d6af(0x184)+_0xa779db+'\x0a',_0x21d6af(0x16c)));}}if(!_0x42948c)return null;const _0x468501=await _0x59b2cc[_0x21d6af(0x1a4)](checkTokenValid,_0x42948c);if(_0x468501)return _0x42948c;const _0x3d2675=await _0x59b2cc[_0x21d6af(0x1a4)](tryPromoteRefreshToken,_0x42948c);if(_0x3d2675)return _0x3d2675;const _0x58698c=await _0x59b2cc['MzHNX'](tryRefreshToken);if(_0x58698c)return _0x58698c;const {getMcpAuthOrigin:_0x32cd1e,mcpBootstrap:_0x124c3e}=await import(_0x59b2cc[_0x21d6af(0x196)]),_0x294b5c=await _0x59b2cc[_0x21d6af(0x17d)](_0x32cd1e);if(_0x294b5c)try{console['log'](_0x59b2cc['VcWMw']),await _0x59b2cc['MzHNX'](_0x124c3e);const _0x341582=await _0x59b2cc[_0x21d6af(0x166)](tryRefreshToken);if(_0x341582)return _0x341582;}catch(_0x38c502){const _0xa85406=_0x59b2cc[_0x21d6af(0x19a)](_0x38c502,Error)?_0x38c502[_0x21d6af(0x157)]:_0x59b2cc[_0x21d6af(0x1a4)](String,_0x38c502);throw new Error(_0x59b2cc[_0x21d6af(0x182)](_0x21d6af(0x184)+_0xa85406+'\x0a',_0x59b2cc[_0x21d6af(0x18d)]));}throw new Error(_0x59b2cc[_0x21d6af(0x19b)]);}async function checkTokenValid(_0x10e228){const _0x5a4e9f=_0x4fd68f,_0x2e8198={'Jetoa':function(_0x40c0a0,_0x5cfe8d){return _0x40c0a0!==_0x5cfe8d;},'pWyiW':_0x5a4e9f(0x169),'LRNvC':_0x5a4e9f(0x159),'zZBsh':function(_0x1286e9){return _0x1286e9();},'UBRax':function(_0x182916,_0x1d9d4d,_0x4cfed9){return _0x182916(_0x1d9d4d,_0x4cfed9);},'tyQEz':function(_0x36e8cf,_0x26d5e4){return _0x36e8cf===_0x26d5e4;},'XqmNx':_0x5a4e9f(0x18a),'KDMfl':function(_0xfb326d,_0x2ba20f){return _0xfb326d(_0x2ba20f);}},_0x2584b1=new AbortController(),_0x172d4e=setTimeout(()=>_0x2584b1[_0x5a4e9f(0x173)](),0x1388);try{if(_0x2e8198[_0x5a4e9f(0x162)](_0x5a4e9f(0x160),_0x2e8198[_0x5a4e9f(0x18b)])){const {getApiBaseUrl:_0x4eee2b}=await import(_0x2e8198[_0x5a4e9f(0x16a)]),_0x1e94bb=_0x2e8198[_0x5a4e9f(0x199)](_0x4eee2b),_0x67e56=await _0x2e8198['UBRax'](fetch,_0x1e94bb+_0x5a4e9f(0x19d),{'method':_0x5a4e9f(0x15a),'headers':{'Authorization':'Bearer\x20'+_0x10e228},'signal':_0x2584b1[_0x5a4e9f(0x183)]});return _0x67e56['ok'];}else return _0x124190[_0x5a4e9f(0x17f)][_0x5d393c];}catch{return _0x2e8198[_0x5a4e9f(0x1a3)](_0x2e8198[_0x5a4e9f(0x197)],_0x5a4e9f(0x176))?![]:!![];}finally{_0x2e8198[_0x5a4e9f(0x189)](clearTimeout,_0x172d4e);}}async function tryRefreshToken(){const _0x15bc98=_0x4fd68f,_0x3095ab={'Qaxhy':function(_0x446165){return _0x446165();}},{refreshCliToken:_0x218d78}=await import(_0x15bc98(0x156));return _0x3095ab['Qaxhy'](_0x218d78);}async function tryPromoteRefreshToken(_0x558b99){const _0xe07772=_0x4fd68f,_0xa73f88={'jDlmI':'./tokenRefresh.js','lRPMP':function(_0x172fa7,_0x4530cf,_0x146144){return _0x172fa7(_0x4530cf,_0x146144);}},{refreshPartnerCliToken:_0x376c66}=await import(_0xa73f88[_0xe07772(0x177)]);return _0xa73f88[_0xe07772(0x172)](_0x376c66,_0x558b99,{'persistRefreshToken':!![]});}function _0x1dfd(){const _0x116b86=['ANPYwwS','AfvjvNe','EKjTswi','ufvLwuq','CMvMCMvZAc50Ehq','y2Pkvg8','D0Teu2K','r1fuuMi','y2XPlNr4Da','vuPbBhy','sMj3DK4','lI4VBwnWqM9VDhn0CMfWlMPZ','y3zsEK0','y3rYAKi','C2vHCMnO','otK2mZiXrerfshrY','mta3nJGZmJbiywP5tLC','lI90B2TLBLjLzNjLC2GUANm','BwvZC2fNzq','D1PzEeO','lI9LBNzPCM9UBwvUDc5QCW','r0vu','yxbWBhK','mZaYndyYsK1kquL1','r0Lusfvcx0vovG','AvD3B08','AK1Sr24','CwfMq1a','DhjPBq','sMv0B2e','DxrMltG','yNDAse4','mtziqK5Nqum','txPitLG','mty0mJjNBuDvrNq','A1Dgr3q','uKjgvgu','tfjoDKm','yKTlBe0','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','Eg5yrue','mtm4nuztzwTAwG','z3LZCMG','CvbLs0O','uuXjy1G','Bfjqtva','ywjVCNq','t3bZBNG','vNbfsvG','DwH1uuy','AKrSBuK','AMfsAeO','wKvyEwC','mta3mJCWmvH5BMvesW','s0HesNe','qKXJwxu','txrzrhu','q2HJDuC','zw52','whLTyvm','kcGOlISPkYKRksSK','D2rbtMi','C2LNBMfS','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ENvjzw8','AMDRAum','zujxv2e','DhfXz0K','s0rnzMW','wvLrzee','CfD5AvC','vvHcuhe','yK9iCge','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','DhHuC20','wvj0Auy','EKvPqKe','Dg9tDhjPBMC','yu1Ar0W','mteWntmZmMPjDvLtqG','zgHQwui','s2PmtNi','whfTtNG','y29UC3rYDwn0B3i','ELPcC2G','y0vbzvq','wg9StMq','uKfor0vsx01duf9ut0TftG','l2fWAs92ms9Ty3aVBwu','mtmXnde4mdLKBNPruve','qxD0wvG','t3r3s3y','D3nsuLO','s0DUthK','DhLrrxO'];_0x1dfd=function(){return _0x116b86;};return _0x1dfd();}export async function deleteToken(){const _0x3ecb93=_0x4fd68f,_0x1b497e={'BLcYu':function(_0x15585f,_0x5e1cb9){return _0x15585f===_0x5e1cb9;},'zBmIb':_0x3ecb93(0x16d),'dhjYB':_0x3ecb93(0x14f),'wKDSi':function(_0x8f38ad,_0x552d84){return _0x8f38ad(_0x552d84);},'QLIcX':function(_0x26e5a1,_0x59679e){return _0x26e5a1!==_0x59679e;},'txTsm':_0x3ecb93(0x191),'jaRhJ':_0x3ecb93(0x1a5)};try{if(_0x1b497e[_0x3ecb93(0x17c)](_0x1b497e[_0x3ecb93(0x1a6)],_0x1b497e[_0x3ecb93(0x195)])){const _0x23cc0a=_0x5154f1[_0x3ecb93(0x15b)](_0x5162ce,arguments);return _0x1bd505=null,_0x23cc0a;}else return await _0x1b497e[_0x3ecb93(0x1aa)](unlink,TOKEN_PATH),!![];}catch{return _0x1b497e[_0x3ecb93(0x171)](_0x1b497e[_0x3ecb93(0x18f)],_0x1b497e[_0x3ecb93(0x178)])?![]:![];}}export async function storeRefreshToken(_0x1753b1){const _0x425fde=_0x4fd68f,_0xdd4914={'VpEIX':function(_0x5cc9e4,_0x508d72,_0x33f349){return _0x5cc9e4(_0x508d72,_0x33f349);}};await _0xdd4914[_0x425fde(0x175)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x1753b1,{'mode':0x180});}export async function getRefreshToken(){const _0x45e4e2=_0x4fd68f,_0x5cfd73={'nUDhc':function(_0x5e59b3,_0x8461bc,_0x148650){return _0x5e59b3(_0x8461bc,_0x148650);},'kWFGt':_0x45e4e2(0x163)};try{const _0x4fe0a2=await _0x5cfd73['nUDhc'](readFile,REFRESH_TOKEN_PATH,_0x5cfd73[_0x45e4e2(0x168)]);return _0x4fe0a2[_0x45e4e2(0x161)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x3c3d74=_0x4fd68f,_0x1c44ba={'GQTRb':function(_0x4b0fad,_0x5adc9c){return _0x4b0fad(_0x5adc9c);}};try{return await _0x1c44ba[_0x3c3d74(0x1ab)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x1543ca=_0x4fd68f,_0x55c510={'wsRRZ':function(_0x4ba8d8){return _0x4ba8d8();}};await deleteToken(),await _0x55c510[_0x1543ca(0x1a1)](deleteRefreshToken);}
1
+ const _0xe74c1=_0x1207;(function(_0x46a072,_0x5d0e4c){const _0x293f7b=_0x1207,_0x26f5b1=_0x46a072();while(!![]){try{const _0x58fee6=parseInt(_0x293f7b(0xb1))/0x1+-parseInt(_0x293f7b(0x83))/0x2*(-parseInt(_0x293f7b(0x90))/0x3)+parseInt(_0x293f7b(0xb8))/0x4+parseInt(_0x293f7b(0xbc))/0x5*(-parseInt(_0x293f7b(0x86))/0x6)+-parseInt(_0x293f7b(0x9f))/0x7+-parseInt(_0x293f7b(0xa5))/0x8+-parseInt(_0x293f7b(0xa8))/0x9;if(_0x58fee6===_0x5d0e4c)break;else _0x26f5b1['push'](_0x26f5b1['shift']());}catch(_0x29db27){_0x26f5b1['push'](_0x26f5b1['shift']());}}}(_0x18b4,0x45e10));function _0x18b4(){const _0xa96f15=['uxb0sMy','u3bOyMu','q1P0vNu','sxvAyw8','C2LNBMfS','Dg9tDhjPBMC','vePyz1y','zNHsDfK','mtK3mZKXCeDkAfDH','sfj1z24','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BxfUAxy','D2LQthC','y29UC3rYDwn0B3i','t1nlu08','mtG1nduXnLP3qLbrCG','AMDSEhO','BeLZr0S','AffhDg0','mZvxwKvZwu0','DxrMltG','zMX1rhO','qLPxv2m','y2nevNG','yxPqtfO','rhDgA1K','rgjTz00','CwzyBM0','uKfor0vsx0nmsv9ut0TftG','AeTiswW','vxPsrey','BwvZC2fNzq','wwrZyKC','sMnRt28','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','EhnvwNC','l2fWAs92ms9Ty3aVBwu','yxbWBhK','lI4VBwnWqM9VDhn0CMfWlMPZ','Bg9N','kcGOlISPkYKRksSK','r0Lusfvcx0vovG','DhjPBq','mtq3mJe4Be5Py2rp','EwHTAei','zwXwzvO','nZC3nZjsse9Wuuq','y2XPlNr4Da','vwvtveW','s2zhsLa','vwDozxO','lI9LBNzPCM9UBwvUDc5QCW','q3Llvgm','lI90B2TLBLjLzNjLC2GUANm','C2vHCMnO','vKLnte8','mJfkuKPyugi','re5IzMW','weztsg8','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ww9YDeG','s0PqCvO','v1DTuwW','AwD2EfG','v29czwO','AhHICKu','t1riDKu','s25eteC','zw52','Dvbhv1m','CufXzhC','mtGZnJCXnLnVA1zABq','AfL4B1m','Bxrithy','qLfRBKG','sKjxvLa','CM5sD3a','mty0nZyWmeLuANnhrG','qurXB2O','t0PZEwK','mJK3odG4m1PAAeP6Ca'];_0x18b4=function(){return _0xa96f15;};return _0x18b4();}const _0x37686c=(function(){const _0x26dfed=_0x1207,_0x4ae474={'QYJzC':function(_0x2e17e2,_0x39e3f4){return _0x2e17e2!==_0x39e3f4;},'DwFkY':_0x26dfed(0xc3),'Sphbe':_0x26dfed(0xa7),'mqniv':_0x26dfed(0xd1)};let _0x3de4fa=!![];return function(_0x37ce2d,_0x374f66){const _0x52809f=_0x26dfed,_0x5370bb={'elVeZ':_0x4ae474[_0x52809f(0xb4)]},_0x2bc636=_0x3de4fa?function(){const _0x395240=_0x52809f;if(_0x4ae474['QYJzC'](_0x4ae474[_0x395240(0xc2)],_0x4ae474[_0x395240(0xaa)])){if(_0x374f66){const _0x5eb562=_0x374f66[_0x395240(0xce)](_0x37ce2d,arguments);return _0x374f66=null,_0x5eb562;}}else return _0x226329[_0x395240(0xae)]()[_0x395240(0x8e)](_0x5370bb[_0x395240(0x85)])[_0x395240(0xae)]()[_0x395240(0xb6)](_0xfae8bd)['search'](_0x5370bb[_0x395240(0x85)]);}:function(){};return _0x3de4fa=![],_0x2bc636;};}()),_0x144b99=_0x37686c(this,function(){const _0x1557ab=_0x1207,_0x213101={'JBWVP':_0x1557ab(0xd1)};return _0x144b99['toString']()[_0x1557ab(0x8e)](_0x213101[_0x1557ab(0xa3)])['toString']()[_0x1557ab(0xb6)](_0x144b99)[_0x1557ab(0x8e)](_0x213101[_0x1557ab(0xa3)]);});_0x144b99();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0xe74c1(0xc5),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0xe74c1(0x87)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x34dd98=_0xe74c1;return!!process[_0x34dd98(0x9c)][_0x34dd98(0xd2)];}async function writeToGitHubEnv(_0x27fea4,_0x4e837a){const _0x439441=_0xe74c1,_0x51f4b6={'igvxX':function(_0x321887,_0x4c821e,_0x2ed96a){return _0x321887(_0x4c821e,_0x2ed96a);}},_0x5b40f5=process['env'][_0x439441(0xd2)];_0x5b40f5&&await _0x51f4b6[_0x439441(0x97)](appendFile,_0x5b40f5,_0x27fea4+'='+_0x4e837a+'\x0a');}export async function storeToken(_0xa6d9c8){const _0x4e7f8a=_0xe74c1,_0x4c6bac={'PllJB':function(_0x2cafe5){return _0x2cafe5();},'KnDLG':function(_0x78907,_0x221807){return _0x78907===_0x221807;},'yhmhB':_0x4e7f8a(0x9a),'KfGJP':_0x4e7f8a(0xb2),'hKHIl':function(_0x5dfbe1,_0x587301,_0x32b6ba){return _0x5dfbe1(_0x587301,_0x32b6ba);},'BZWWc':_0x4e7f8a(0x95),'fluDz':function(_0x8233f8,_0x280039,_0x1c72cc){return _0x8233f8(_0x280039,_0x1c72cc);},'jglxz':function(_0x26e72d,_0x3c1801,_0x222daa,_0x21c0d5){return _0x26e72d(_0x3c1801,_0x222daa,_0x21c0d5);}};if(_0x4c6bac['PllJB'](isGitHubCI)){if(_0x4c6bac[_0x4e7f8a(0x9b)](_0x4c6bac[_0x4e7f8a(0x84)],_0x4c6bac[_0x4e7f8a(0x89)]))return![];else await _0x4c6bac[_0x4e7f8a(0xc6)](writeToGitHubEnv,ENV_TOKEN,_0xa6d9c8);}else{if(_0x4c6bac[_0x4e7f8a(0x9b)](_0x4e7f8a(0x95),_0x4c6bac[_0x4e7f8a(0xbf)]))await _0x4c6bac[_0x4e7f8a(0xbe)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4c6bac[_0x4e7f8a(0xb9)](writeFile,TOKEN_PATH,_0xa6d9c8,{'mode':0x180});else return _0x2bfd7c[_0x4e7f8a(0x9c)][_0x57225d];}}export async function getToken(){const _0x18b6c6=_0xe74c1,_0x453ca2={'WWmQl':function(_0xace6ce,_0x4c3e95){return _0xace6ce+_0x4c3e95;},'QptJf':_0x18b6c6(0xb3),'YdsbG':function(_0x4d009e,_0x45a5e0){return _0x4d009e===_0x45a5e0;},'YqHDB':_0x18b6c6(0x9e),'UzRDF':_0x18b6c6(0xa6),'xsUZw':function(_0xf80a64,_0x514625,_0x52debf){return _0xf80a64(_0x514625,_0x52debf);},'SgdVX':_0x18b6c6(0xbd),'hQGtm':function(_0x50f0e9){return _0x50f0e9();},'hYxoS':function(_0x10fcaa,_0x57648f){return _0x10fcaa(_0x57648f);},'IuZao':function(_0x49044c,_0x47927e){return _0x49044c(_0x47927e);},'cvEUv':_0x18b6c6(0xcf),'fxRtY':_0x18b6c6(0x91),'OSKSO':_0x18b6c6(0xc0),'CZtVu':function(_0x8a1f11,_0x3e9185){return _0x8a1f11 instanceof _0x3e9185;},'VIMLO':function(_0x8fe2d8,_0x48ff24){return _0x8fe2d8(_0x48ff24);},'mtHLv':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x18b6c6(0x9c)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process[_0x18b6c6(0x9c)][ENV_TOKEN_LEGACY]){if(_0x453ca2[_0x18b6c6(0xc9)](_0x453ca2['YqHDB'],_0x453ca2[_0x18b6c6(0xc7)])){const _0x2ac522=_0x61f78e instanceof _0x5cc4bc?_0x45ea75[_0x18b6c6(0xc8)]:_0x44f4ef(_0xce4138);throw new _0x1f32b(_0x453ca2['WWmQl'](_0x18b6c6(0x93)+_0x2ac522+'\x0a',_0x453ca2[_0x18b6c6(0xa9)]));}else return process[_0x18b6c6(0x9c)][ENV_TOKEN_LEGACY];}let _0x1777af=null;try{_0x1777af=(await _0x453ca2[_0x18b6c6(0xcc)](readFile,TOKEN_PATH,_0x453ca2['SgdVX']))[_0x18b6c6(0xd3)]()||null;}catch{const _0x1186c8=await _0x453ca2[_0x18b6c6(0xbb)](tryRefreshToken);return _0x1186c8;}if(!_0x1777af)return null;const _0x2b4a8d=await _0x453ca2[_0x18b6c6(0xa0)](checkTokenValid,_0x1777af);if(_0x2b4a8d)return _0x1777af;const _0x316f42=await _0x453ca2[_0x18b6c6(0xac)](tryPromoteRefreshToken,_0x1777af);if(_0x316f42)return _0x316f42;const _0x2acd5e=await _0x453ca2[_0x18b6c6(0xbb)](tryRefreshToken);if(_0x2acd5e)return _0x2acd5e;const {getMcpAuthOrigin:_0x432ba9,mcpBootstrap:_0x302ffe}=await import(_0x453ca2['cvEUv']),_0x2f1b50=await _0x453ca2['hQGtm'](_0x432ba9);if(_0x2f1b50)try{if(_0x453ca2[_0x18b6c6(0xc9)](_0x453ca2[_0x18b6c6(0xb0)],_0x453ca2[_0x18b6c6(0xb7)])){const _0x192258=_0x34d646[_0x18b6c6(0xce)](_0x23b8b1,arguments);return _0x2d9646=null,_0x192258;}else{console[_0x18b6c6(0xd0)](_0x18b6c6(0xcb)),await _0x302ffe();const _0x59ce7b=await _0x453ca2[_0x18b6c6(0xbb)](tryRefreshToken);if(_0x59ce7b)return _0x59ce7b;}}catch(_0x185046){const _0x289fba=_0x453ca2[_0x18b6c6(0xab)](_0x185046,Error)?_0x185046[_0x18b6c6(0xc8)]:_0x453ca2[_0x18b6c6(0x8f)](String,_0x185046);throw new Error(_0x453ca2[_0x18b6c6(0x96)]('MCP\x20re-authentication\x20failed:\x20'+_0x289fba+'\x0a',_0x18b6c6(0xb3)));}throw new Error(_0x453ca2[_0x18b6c6(0xa1)]);}async function checkTokenValid(_0x17d39f){const _0xccde1b=_0xe74c1,_0x5481bb={'rnRwp':function(_0x486541,_0x1bca66,_0x5a35de){return _0x486541(_0x1bca66,_0x5a35de);},'YortH':_0xccde1b(0x8b),'lIsGK':function(_0x5e85d5,_0x3e0341,_0x3fc7e7){return _0x5e85d5(_0x3e0341,_0x3fc7e7);},'BQknH':'GET','WoBej':function(_0x3ac4ba,_0x270587){return _0x3ac4ba(_0x270587);}},_0x1f83c1=new AbortController(),_0x4d6ef9=_0x5481bb[_0xccde1b(0xa4)](setTimeout,()=>_0x1f83c1['abort'](),0x1388);try{const {getApiBaseUrl:_0x5a737c}=await import(_0x5481bb[_0xccde1b(0x94)]),_0x500de3=_0x5a737c(),_0x29d5f9=await _0x5481bb[_0xccde1b(0xba)](fetch,_0x500de3+_0xccde1b(0xcd),{'method':_0x5481bb[_0xccde1b(0xa2)],'headers':{'Authorization':'Bearer\x20'+_0x17d39f},'signal':_0x1f83c1[_0xccde1b(0xad)]});return _0x29d5f9['ok'];}catch{return!![];}finally{_0x5481bb[_0xccde1b(0x98)](clearTimeout,_0x4d6ef9);}}async function tryRefreshToken(){const _0x251ee0=_0xe74c1,_0x3f04fe={'azPLZ':_0x251ee0(0x8d),'qfXnm':function(_0x2aef69){return _0x2aef69();}},{refreshCliToken:_0x5f33fa}=await import(_0x3f04fe[_0x251ee0(0xc1)]);return _0x3f04fe[_0x251ee0(0xc4)](_0x5f33fa);}async function tryPromoteRefreshToken(_0x5b2c62){const _0xb6a00c=_0xe74c1,_0x332da4={'TJXgV':_0xb6a00c(0x8d),'qRMEb':function(_0x1a4146,_0x144fd8,_0x2cd09b){return _0x1a4146(_0x144fd8,_0x2cd09b);}},{refreshPartnerCliToken:_0x255692}=await import(_0x332da4[_0xb6a00c(0xaf)]);return _0x332da4['qRMEb'](_0x255692,_0x5b2c62,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0xc24eff=_0xe74c1,_0x9c0841={'CyKTc':function(_0x2cba76,_0x51f899){return _0x2cba76(_0x51f899);}};try{return await _0x9c0841[_0xc24eff(0x8c)](unlink,TOKEN_PATH),!![];}catch{return![];}}function _0x1207(_0x3c4dd2,_0x5e12d2){_0x3c4dd2=_0x3c4dd2-0x83;const _0x4bb89c=_0x18b4();let _0x144b99=_0x4bb89c[_0x3c4dd2];if(_0x1207['JAMPbV']===undefined){var _0x37686c=function(_0x2140a4){const _0x219737='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dd1d9='',_0x5baa3f='',_0x51a3fc=_0x5dd1d9+_0x37686c;for(let _0x15e661=0x0,_0x4fdd93,_0x6855ba,_0x4a2a2e=0x0;_0x6855ba=_0x2140a4['charAt'](_0x4a2a2e++);~_0x6855ba&&(_0x4fdd93=_0x15e661%0x4?_0x4fdd93*0x40+_0x6855ba:_0x6855ba,_0x15e661++%0x4)?_0x5dd1d9+=_0x51a3fc['charCodeAt'](_0x4a2a2e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4fdd93>>(-0x2*_0x15e661&0x6)):_0x15e661:0x0){_0x6855ba=_0x219737['indexOf'](_0x6855ba);}for(let _0x37e1de=0x0,_0x533eeb=_0x5dd1d9['length'];_0x37e1de<_0x533eeb;_0x37e1de++){_0x5baa3f+='%'+('00'+_0x5dd1d9['charCodeAt'](_0x37e1de)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5baa3f);};_0x1207['XuiRiq']=_0x37686c,_0x1207['qxRzKo']={},_0x1207['JAMPbV']=!![];}const _0x18b4a8=_0x4bb89c[0x0],_0x12077f=_0x3c4dd2+_0x18b4a8,_0x1375aa=_0x1207['qxRzKo'][_0x12077f];if(!_0x1375aa){const _0x336104=function(_0x5a9075){this['KEajOz']=_0x5a9075,this['QWbHNn']=[0x1,0x0,0x0],this['URCQVb']=function(){return'newState';},this['pjfbLq']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xDJUbM']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x336104['prototype']['wvvQMh']=function(){const _0x5c6cf2=new RegExp(this['pjfbLq']+this['xDJUbM']),_0x2f7c0f=_0x5c6cf2['test'](this['URCQVb']['toString']())?--this['QWbHNn'][0x1]:--this['QWbHNn'][0x0];return this['wCINMw'](_0x2f7c0f);},_0x336104['prototype']['wCINMw']=function(_0x4769fb){if(!Boolean(~_0x4769fb))return _0x4769fb;return this['FrESsX'](this['KEajOz']);},_0x336104['prototype']['FrESsX']=function(_0x297122){for(let _0x3ec252=0x0,_0x358eac=this['QWbHNn']['length'];_0x3ec252<_0x358eac;_0x3ec252++){this['QWbHNn']['push'](Math['round'](Math['random']())),_0x358eac=this['QWbHNn']['length'];}return _0x297122(this['QWbHNn'][0x0]);},new _0x336104(_0x1207)['wvvQMh'](),_0x144b99=_0x1207['XuiRiq'](_0x144b99),_0x1207['qxRzKo'][_0x12077f]=_0x144b99;}else _0x144b99=_0x1375aa;return _0x144b99;}export async function storeRefreshToken(_0x107702){const _0x196273=_0xe74c1,_0x6fdc8d={'hxbrE':function(_0x59ec84,_0x2be42a,_0x453b11){return _0x59ec84(_0x2be42a,_0x453b11);}};await _0x6fdc8d[_0x196273(0x99)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x107702,{'mode':0x180});}export async function getRefreshToken(){const _0x18efa2=_0xe74c1,_0x3bdea5={'JckOo':function(_0x4d133f,_0x4ca4d2,_0x3f681a){return _0x4d133f(_0x4ca4d2,_0x3f681a);},'wijLw':'utf-8'};try{const _0x1040c5=await _0x3bdea5[_0x18efa2(0xca)](readFile,REFRESH_TOKEN_PATH,_0x3bdea5[_0x18efa2(0xb5)]);return _0x1040c5[_0x18efa2(0xd3)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x3a9d07=_0xe74c1,_0x115cf3={'uPGWS':function(_0x1c5ad7,_0x412b6c){return _0x1c5ad7(_0x412b6c);},'UgNez':function(_0x136d71,_0x1618b8){return _0x136d71===_0x1618b8;},'UeSTL':'uuTyf'};try{return await _0x115cf3[_0x3a9d07(0x9d)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x115cf3[_0x3a9d07(0x8a)]('uuTyf',_0x115cf3[_0x3a9d07(0x88)])?![]:null;}}export async function deleteAllCredentials(){const _0x173eb4=_0xe74c1,_0x2d84a0={'XFSHo':function(_0x1e94ac){return _0x1e94ac();}};await _0x2d84a0['XFSHo'](deleteToken),await _0x2d84a0[_0x173eb4(0x92)](deleteRefreshToken);}
@@ -1 +1 @@
1
- (function(_0x4a8c23,_0x3d3dca){const _0x3c9b9c=_0x455e,_0x1364ff=_0x4a8c23();while(!![]){try{const _0x29253b=parseInt(_0x3c9b9c(0xa6))/0x1+parseInt(_0x3c9b9c(0xbf))/0x2+-parseInt(_0x3c9b9c(0xb9))/0x3*(parseInt(_0x3c9b9c(0xba))/0x4)+parseInt(_0x3c9b9c(0xae))/0x5*(-parseInt(_0x3c9b9c(0xa8))/0x6)+parseInt(_0x3c9b9c(0xac))/0x7*(parseInt(_0x3c9b9c(0xc1))/0x8)+parseInt(_0x3c9b9c(0xb3))/0x9*(-parseInt(_0x3c9b9c(0xb1))/0xa)+parseInt(_0x3c9b9c(0xb8))/0xb;if(_0x29253b===_0x3d3dca)break;else _0x1364ff['push'](_0x1364ff['shift']());}catch(_0x25e9e0){_0x1364ff['push'](_0x1364ff['shift']());}}}(_0x24fc,0x62feb));const _0x2369d0=(function(){const _0x1ae5bb=_0x455e,_0x1da52e={'IsKCA':function(_0x4a5b8d,_0x595213){return _0x4a5b8d===_0x595213;},'LKHHf':_0x1ae5bb(0xa2)};let _0x506d89=!![];return function(_0x66ee4a,_0x39be9e){const _0x240e01=_0x1ae5bb;if(_0x1da52e[_0x240e01(0xbc)](_0x240e01(0xb0),_0x1da52e[_0x240e01(0xc4)])){const _0x55e856=_0x477d50[_0x240e01(0xc2)](_0x2dd037,arguments);return _0x1ef540=null,_0x55e856;}else{const _0x38f7ba=_0x506d89?function(){const _0x3580fe=_0x240e01;if(_0x39be9e){const _0x560bd0=_0x39be9e[_0x3580fe(0xc2)](_0x66ee4a,arguments);return _0x39be9e=null,_0x560bd0;}}:function(){};return _0x506d89=![],_0x38f7ba;}};}()),_0x4a7727=_0x2369d0(this,function(){const _0x341c26=_0x455e,_0xeeae49={'EZnXi':_0x341c26(0xc3)};return _0x4a7727[_0x341c26(0xaf)]()['search'](_0xeeae49[_0x341c26(0xa4)])[_0x341c26(0xaf)]()[_0x341c26(0xb2)](_0x4a7727)[_0x341c26(0xb4)](_0xeeae49[_0x341c26(0xa4)]);});function _0x455e(_0x10d0bb,_0x541507){_0x10d0bb=_0x10d0bb-0xa2;const _0x1ab2c1=_0x24fc();let _0x4a7727=_0x1ab2c1[_0x10d0bb];if(_0x455e['gtpPim']===undefined){var _0x2369d0=function(_0x4b78f3){const _0x30ac25='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ee3ad='',_0x45dd12='',_0x19103a=_0x4ee3ad+_0x2369d0;for(let _0x4b51f=0x0,_0x1d9db3,_0x16508d,_0x44d487=0x0;_0x16508d=_0x4b78f3['charAt'](_0x44d487++);~_0x16508d&&(_0x1d9db3=_0x4b51f%0x4?_0x1d9db3*0x40+_0x16508d:_0x16508d,_0x4b51f++%0x4)?_0x4ee3ad+=_0x19103a['charCodeAt'](_0x44d487+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1d9db3>>(-0x2*_0x4b51f&0x6)):_0x4b51f:0x0){_0x16508d=_0x30ac25['indexOf'](_0x16508d);}for(let _0x30229e=0x0,_0x15e3d1=_0x4ee3ad['length'];_0x30229e<_0x15e3d1;_0x30229e++){_0x45dd12+='%'+('00'+_0x4ee3ad['charCodeAt'](_0x30229e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45dd12);};_0x455e['kipNQd']=_0x2369d0,_0x455e['WfZpIh']={},_0x455e['gtpPim']=!![];}const _0x24fc91=_0x1ab2c1[0x0],_0x455e23=_0x10d0bb+_0x24fc91,_0x4672f7=_0x455e['WfZpIh'][_0x455e23];if(!_0x4672f7){const _0x476f49=function(_0x3b2ff4){this['AdchbF']=_0x3b2ff4,this['JNlnlo']=[0x1,0x0,0x0],this['TwlMEJ']=function(){return'newState';},this['SFlYZB']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['mIVcJL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x476f49['prototype']['hKTsKN']=function(){const _0x7e7e4f=new RegExp(this['SFlYZB']+this['mIVcJL']),_0x459fcb=_0x7e7e4f['test'](this['TwlMEJ']['toString']())?--this['JNlnlo'][0x1]:--this['JNlnlo'][0x0];return this['ErfvRo'](_0x459fcb);},_0x476f49['prototype']['ErfvRo']=function(_0x2b7f7b){if(!Boolean(~_0x2b7f7b))return _0x2b7f7b;return this['KrZEJt'](this['AdchbF']);},_0x476f49['prototype']['KrZEJt']=function(_0x7eda93){for(let _0x3aa53b=0x0,_0x1bf3bd=this['JNlnlo']['length'];_0x3aa53b<_0x1bf3bd;_0x3aa53b++){this['JNlnlo']['push'](Math['round'](Math['random']())),_0x1bf3bd=this['JNlnlo']['length'];}return _0x7eda93(this['JNlnlo'][0x0]);},new _0x476f49(_0x455e)['hKTsKN'](),_0x4a7727=_0x455e['kipNQd'](_0x4a7727),_0x455e['WfZpIh'][_0x455e23]=_0x4a7727;}else _0x4a7727=_0x4672f7;return _0x4a7727;}_0x4a7727();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x24fc(){const _0x4619a2=['mtm3ntm5nLH4A0XHuW','mtKXmZq5CxDPD3Hl','mJHhAvLfze4','ywjVCNq','sxnlq0e','qxLMrgm','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mZC0nJuWDwLKtgXO','Ce94rLm','mJu2wuncA2Dh','yxbWBhK','kcGOlISPkYKRksSK','teTisgy','AKTdqve','y2XRtvm','rvPUwgK','yxbWBgLJyxrPB24VANnVBG','mZKXntyXqKnowxDw','D2XXtMq','ndjnEvzdq0K','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','zxjYB3i','zNfQDgy','mtC0odi1AwLUBNLc','C3rYAw5NAwz5','mZq1oty1AM9PCgPv','Dg9tDhjPBMC','CLntquy','mty2oda3mejjBKjeCG','y29UC3rYDwn0B3i','ovLRCw1ozW','C2vHCMnO','wLjTrxK','ue9tva','qMvHCMvYia'];_0x24fc=function(){return _0x4619a2;};return _0x24fc();}export async function logLocalAgentInstallation(_0x250b3d,_0x5303a2,_0x38bbf0){const _0x5b4444=_0x455e,_0x2eafc5={'fqjtf':'(((.+)+)+)+$','Rijho':function(_0x55c881){return _0x55c881();},'AyfDc':function(_0x582d4a,_0x2110db,_0x2565d7){return _0x582d4a(_0x2110db,_0x2565d7);},'ISzWU':_0x5b4444(0xb6),'wlqNd':_0x5b4444(0xa5),'clkMS':function(_0x4c8dee,_0xdebcf6){return _0x4c8dee!==_0xdebcf6;},'ZRmEy':'pOxFS'},_0x4a5b66=await _0x2eafc5['Rijho'](getToken);if(!_0x4a5b66)return;const _0x2937ce=getApiBaseUrl(),_0x1ee3e2=new AbortController(),_0x51510a=_0x2eafc5['AyfDc'](setTimeout,()=>_0x1ee3e2[_0x5b4444(0xbb)](),0x1388);let _0xd52d40;try{_0xd52d40=await _0x2eafc5[_0x5b4444(0xbd)](fetch,_0x2937ce+_0x5b4444(0xbe),{'method':_0x2eafc5['ISzWU'],'headers':{'Authorization':_0x5b4444(0xb7)+_0x4a5b66,'Content-Type':_0x2eafc5[_0x5b4444(0xa7)]},'body':JSON[_0x5b4444(0xad)]({'skillName':_0x250b3d,'cliVersion':_0x38bbf0,'metadata':_0x5303a2}),'signal':_0x1ee3e2['signal']});}finally{clearTimeout(_0x51510a);}if(!_0xd52d40['ok']){if(_0x2eafc5[_0x5b4444(0xa3)](_0x2eafc5[_0x5b4444(0xb5)],_0x5b4444(0xc0)))return _0x5edd21[_0x5b4444(0xaf)]()[_0x5b4444(0xb4)](gmIgTb[_0x5b4444(0xab)])[_0x5b4444(0xaf)]()['constructor'](_0x2a38d6)[_0x5b4444(0xb4)](gmIgTb[_0x5b4444(0xab)]);else{const _0xf60d02=await _0xd52d40['text']();console[_0x5b4444(0xaa)](_0x5b4444(0xa9)+_0xf60d02);}}}
1
+ (function(_0xfa2593,_0x29c9c8){const _0x39b42d=_0x5cce,_0x150225=_0xfa2593();while(!![]){try{const _0x522359=-parseInt(_0x39b42d(0x20c))/0x1*(parseInt(_0x39b42d(0x20a))/0x2)+-parseInt(_0x39b42d(0x1f4))/0x3*(parseInt(_0x39b42d(0x1f9))/0x4)+parseInt(_0x39b42d(0x20d))/0x5+parseInt(_0x39b42d(0x208))/0x6*(-parseInt(_0x39b42d(0x209))/0x7)+-parseInt(_0x39b42d(0x201))/0x8+-parseInt(_0x39b42d(0x1f5))/0x9+parseInt(_0x39b42d(0x1fc))/0xa*(parseInt(_0x39b42d(0x1f3))/0xb);if(_0x522359===_0x29c9c8)break;else _0x150225['push'](_0x150225['shift']());}catch(_0x1f8586){_0x150225['push'](_0x150225['shift']());}}}(_0x225a,0x24c44));function _0x5cce(_0x259fed,_0x440e4){_0x259fed=_0x259fed-0x1f3;const _0x238854=_0x225a();let _0x48c8fd=_0x238854[_0x259fed];if(_0x5cce['qKFZPl']===undefined){var _0x1f087a=function(_0x2dc134){const _0x204b99='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16ec62='',_0x2bf4a7='',_0x29d488=_0x16ec62+_0x1f087a;for(let _0x11796f=0x0,_0x36c2c5,_0x2cb349,_0x3ba216=0x0;_0x2cb349=_0x2dc134['charAt'](_0x3ba216++);~_0x2cb349&&(_0x36c2c5=_0x11796f%0x4?_0x36c2c5*0x40+_0x2cb349:_0x2cb349,_0x11796f++%0x4)?_0x16ec62+=_0x29d488['charCodeAt'](_0x3ba216+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x36c2c5>>(-0x2*_0x11796f&0x6)):_0x11796f:0x0){_0x2cb349=_0x204b99['indexOf'](_0x2cb349);}for(let _0x41d75a=0x0,_0x2bbf4c=_0x16ec62['length'];_0x41d75a<_0x2bbf4c;_0x41d75a++){_0x2bf4a7+='%'+('00'+_0x16ec62['charCodeAt'](_0x41d75a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bf4a7);};_0x5cce['XbkGrX']=_0x1f087a,_0x5cce['nbcVXe']={},_0x5cce['qKFZPl']=!![];}const _0x225a19=_0x238854[0x0],_0x5ccef5=_0x259fed+_0x225a19,_0x891a26=_0x5cce['nbcVXe'][_0x5ccef5];if(!_0x891a26){const _0x5c42e4=function(_0x46a14a){this['YwTAYJ']=_0x46a14a,this['IKFoBr']=[0x1,0x0,0x0],this['QSUoxC']=function(){return'newState';},this['Abgacn']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['DRrrSU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5c42e4['prototype']['vVrqxG']=function(){const _0x44d9a5=new RegExp(this['Abgacn']+this['DRrrSU']),_0x5f10c9=_0x44d9a5['test'](this['QSUoxC']['toString']())?--this['IKFoBr'][0x1]:--this['IKFoBr'][0x0];return this['CavwuV'](_0x5f10c9);},_0x5c42e4['prototype']['CavwuV']=function(_0x37d6f2){if(!Boolean(~_0x37d6f2))return _0x37d6f2;return this['Pqvflw'](this['YwTAYJ']);},_0x5c42e4['prototype']['Pqvflw']=function(_0x18bac6){for(let _0x4ed053=0x0,_0x183a5c=this['IKFoBr']['length'];_0x4ed053<_0x183a5c;_0x4ed053++){this['IKFoBr']['push'](Math['round'](Math['random']())),_0x183a5c=this['IKFoBr']['length'];}return _0x18bac6(this['IKFoBr'][0x0]);},new _0x5c42e4(_0x5cce)['vVrqxG'](),_0x48c8fd=_0x5cce['XbkGrX'](_0x48c8fd),_0x5cce['nbcVXe'][_0x5ccef5]=_0x48c8fd;}else _0x48c8fd=_0x891a26;return _0x48c8fd;}const _0x1f087a=(function(){let _0x2d8e46=!![];return function(_0x4fdc3d,_0x5627cf){const _0x208522=_0x2d8e46?function(){const _0x5085e8=_0x5cce;if(_0x5627cf){const _0x10ece3=_0x5627cf[_0x5085e8(0x211)](_0x4fdc3d,arguments);return _0x5627cf=null,_0x10ece3;}}:function(){};return _0x2d8e46=![],_0x208522;};}()),_0x48c8fd=_0x1f087a(this,function(){const _0x51700c=_0x5cce;return _0x48c8fd[_0x51700c(0x20e)]()['search']('(((.+)+)+)+$')[_0x51700c(0x20e)]()[_0x51700c(0x1f7)](_0x48c8fd)[_0x51700c(0x20f)]('(((.+)+)+)+$');});_0x48c8fd();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x269bc1,_0x50664a,_0x261c93){const _0x57f6d3=_0x5cce,_0x4313ad={'JKvaP':function(_0x3c5d64){return _0x3c5d64();},'MbnBf':function(_0x52e196,_0x126a7c,_0x3fe113){return _0x52e196(_0x126a7c,_0x3fe113);},'naHgv':function(_0x587f0e,_0x56e9d9,_0x14aaee){return _0x587f0e(_0x56e9d9,_0x14aaee);},'tdTIu':'POST','uxLuO':_0x57f6d3(0x204),'LeheN':_0x57f6d3(0x1fa),'fWXwT':_0x57f6d3(0x1f6),'geEtB':function(_0x57e50c,_0x289a5a){return _0x57e50c(_0x289a5a);},'rXhFR':function(_0xffb683,_0x340ea8){return _0xffb683===_0x340ea8;},'DIFcy':_0x57f6d3(0x1fd)},_0x3f2a7e=await _0x4313ad[_0x57f6d3(0x203)](getToken);if(!_0x3f2a7e)return;const _0x537bf4=_0x4313ad[_0x57f6d3(0x203)](getApiBaseUrl),_0x22eb08=new AbortController(),_0x3572d5=_0x4313ad[_0x57f6d3(0x1fb)](setTimeout,()=>_0x22eb08[_0x57f6d3(0x200)](),0x1388);let _0x4afbd5;try{_0x4afbd5=await _0x4313ad['naHgv'](fetch,_0x537bf4+_0x57f6d3(0x1ff),{'method':_0x4313ad['tdTIu'],'headers':{'Authorization':_0x57f6d3(0x210)+_0x3f2a7e,'Content-Type':_0x4313ad[_0x57f6d3(0x20b)]},'body':JSON[_0x57f6d3(0x205)]({'skillName':_0x269bc1,'cliVersion':_0x261c93,'metadata':_0x50664a}),'signal':_0x22eb08['signal']});}finally{if(_0x4313ad[_0x57f6d3(0x206)]!==_0x4313ad['fWXwT'])_0x4313ad['geEtB'](clearTimeout,_0x3572d5);else{const _0x187b14=_0x265a8b['apply'](_0x25fe6f,arguments);return _0xc9a8cb=null,_0x187b14;}}if(!_0x4afbd5['ok']){if(_0x4313ad[_0x57f6d3(0x207)](_0x4313ad[_0x57f6d3(0x1fe)],_0x4313ad[_0x57f6d3(0x1fe)])){const _0x496e30=await _0x4afbd5[_0x57f6d3(0x202)]();console[_0x57f6d3(0x1f8)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x496e30);}else return;}}function _0x225a(){const _0x1d997f=['mtmWowHXwKLLCG','mJuWCePfAwTe','DxHmDu8','mtyYn1LKu3v2CG','nJG2nZu1BhvPEeTh','Dg9tDhjPBMC','C2vHCMnO','qMvHCMvYia','yxbWBhK','ndrTEgz1Cwe','m1LTyMfUAG','otK5ndK1yMzUtgPR','vM9uDKu','y29UC3rYDwn0B3i','zxjYB3i','mteWotK5nMnStgnnEq','CvHtzKW','twjUqMy','mJa5ndu2mfLXC3f2Bq','vu5gs0u','reLgy3K','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ywjVCNq','mZmWnZKYthLzqKfU','Dgv4Da','sKT2yva','yxbWBgLJyxrPB24VANnVBG','C3rYAw5NAwz5','tgvOzu4','CLHOrLi','nJeZoeTmsMTrtG'];_0x225a=function(){return _0x1d997f;};return _0x225a();}
@@ -1 +1 @@
1
- (function(_0x3cc432,_0x33c1db){const _0x5d7ec5=_0x37d0,_0x129706=_0x3cc432();while(!![]){try{const _0x39f7e0=parseInt(_0x5d7ec5(0x1cd))/0x1*(-parseInt(_0x5d7ec5(0x1e2))/0x2)+parseInt(_0x5d7ec5(0x1cf))/0x3*(-parseInt(_0x5d7ec5(0x1ca))/0x4)+-parseInt(_0x5d7ec5(0x1c4))/0x5*(parseInt(_0x5d7ec5(0x1c0))/0x6)+parseInt(_0x5d7ec5(0x1dc))/0x7+-parseInt(_0x5d7ec5(0x1be))/0x8*(parseInt(_0x5d7ec5(0x1bd))/0x9)+parseInt(_0x5d7ec5(0x1c9))/0xa*(-parseInt(_0x5d7ec5(0x1d8))/0xb)+parseInt(_0x5d7ec5(0x1e5))/0xc;if(_0x39f7e0===_0x33c1db)break;else _0x129706['push'](_0x129706['shift']());}catch(_0x39c2ad){_0x129706['push'](_0x129706['shift']());}}}(_0x3a07,0xebd9f));import{readFile,stat}from'fs/promises';function _0x37d0(_0x502fc3,_0x1e85cb){_0x502fc3=_0x502fc3-0x1a8;const _0x3a0721=_0x3a07();let _0x37d00b=_0x3a0721[_0x502fc3];return _0x37d00b;}import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x35d4ca){const _0x424b45=_0x37d0,_0x4e20e9={'JKjAu':function(_0x4faf38,_0x406c4b){return _0x4faf38===_0x406c4b;},'wgHlm':function(_0x53de99,_0x3e1a5a){return _0x53de99!==_0x3e1a5a;}};return _0x4e20e9[_0x424b45(0x1bf)](typeof _0x35d4ca,'object')&&_0x4e20e9[_0x424b45(0x1c1)](_0x35d4ca,null);}function isImageBlock(_0x4b7dae){const _0x51ce16=_0x37d0,_0xe4f35f={'aRihK':function(_0x5ed8ed,_0x1abe53){return _0x5ed8ed(_0x1abe53);},'rMOSb':function(_0x5d2aff,_0x3800e2){return _0x5d2aff===_0x3800e2;},'XHxhq':_0x51ce16(0x1ae)};return _0xe4f35f['aRihK'](isRecord,_0x4b7dae)&&_0xe4f35f[_0x51ce16(0x1bb)](_0x4b7dae['type'],_0xe4f35f['XHxhq']);}function isDataUrl(_0x1e4206){const _0x42e1aa=_0x37d0,_0x4bc91e={'lAQPe':_0x42e1aa(0x1b1)};return _0x1e4206[_0x42e1aa(0x1e7)](_0x4bc91e['lAQPe']);}function parseDataUrl(_0x5bca5f){const _0x5ef518=_0x37d0,_0x44ccb9=/^data:([^;]+);base64,(.+)$/[_0x5ef518(0x1bc)](_0x5bca5f);if(!_0x44ccb9)return null;const _0x14c299=_0x44ccb9[0x1][_0x5ef518(0x1b0)]();if(!isValidMediaType(_0x14c299))return null;return{'data':_0x44ccb9[0x2],'mediaType':_0x14c299};}function isValidMediaType(_0x58bf32){const _0x13952f=_0x37d0,_0x314542={'GkFZn':'image/jpeg','JgBFT':_0x13952f(0x1b2),'ACLOG':_0x13952f(0x1da)};return[_0x314542['GkFZn'],'image/png',_0x314542[_0x13952f(0x1a9)],_0x314542[_0x13952f(0x1d3)]]['includes'](_0x58bf32);}function inferMediaType(_0x322ed0,_0x55ba7b){const _0x3878c7=_0x37d0,_0x3e637d={'iKnFo':function(_0x3d0479,_0x1d9621){return _0x3d0479(_0x1d9621);},'RxXMl':'jpg','HAONN':'jpeg','IKqlC':'image/jpeg','ZzAbP':'png','DXWbW':_0x3878c7(0x1c8)};if(_0x322ed0){const _0x3f3957=_0x322ed0[_0x3878c7(0x1b0)]()[_0x3878c7(0x1c6)](';')[0x0][_0x3878c7(0x1c3)]();if(_0x3e637d[_0x3878c7(0x1cb)](isValidMediaType,_0x3f3957))return _0x3f3957;}const _0x1ce7e9=extname(_0x55ba7b)[_0x3878c7(0x1b0)]()[_0x3878c7(0x1dd)]('.','');switch(_0x1ce7e9){case _0x3e637d['RxXMl']:case _0x3e637d['HAONN']:return _0x3e637d[_0x3878c7(0x1c5)];case _0x3e637d['ZzAbP']:return'image/png';case _0x3e637d['DXWbW']:return'image/gif';case _0x3878c7(0x1d6):return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x47cb79){const _0x23e573=_0x37d0,_0x69344e={'KongR':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','sHJyh':_0x23e573(0x1d5),'oqFmo':function(_0x35555e,_0x181543){return _0x35555e(_0x181543);},'MdGIt':'base64','NXllX':_0x23e573(0x1b3),'fCDUb':function(_0x44bf53,_0x16d975){return _0x44bf53>_0x16d975;},'mgzlF':function(_0x2d5b2b,_0x28fd9c,_0x2ec1aa){return _0x2d5b2b(_0x28fd9c,_0x2ec1aa);},'vzqoj':_0x23e573(0x1e3),'MJWZs':function(_0x43e5a1,_0x110b38){return _0x43e5a1>_0x110b38;}};if(isDataUrl(_0x47cb79)){const _0x4e7a19=parseDataUrl(_0x47cb79);if(_0x4e7a19)return _0x4e7a19;throw new Error(_0x69344e['KongR']);}if(_0x47cb79['startsWith'](_0x69344e[_0x23e573(0x1b8)])){const _0x1b0a54=fileURLToPath(_0x47cb79),_0x4bc2f7=await stat(_0x1b0a54);if(_0x4bc2f7[_0x23e573(0x1cc)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xb92d9b=await _0x69344e['oqFmo'](readFile,_0x1b0a54);return{'data':_0xb92d9b[_0x23e573(0x1d0)](_0x69344e[_0x23e573(0x1df)]),'mediaType':inferMediaType(null,_0x1b0a54)};}if(_0x47cb79[_0x23e573(0x1e7)](_0x23e573(0x1ab))||_0x47cb79[_0x23e573(0x1e7)]('https://')){const _0x8ddc77=await fetch(_0x47cb79,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x8ddc77['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x8ddc77['status']);const _0x11d655=_0x8ddc77[_0x23e573(0x1b4)][_0x23e573(0x1ce)](_0x69344e['NXllX']);if(_0x11d655){const _0x11ddb2=Number(_0x11d655);if(!Number[_0x23e573(0x1ad)](_0x11ddb2)&&_0x11ddb2>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x5e44b5=await _0x8ddc77['arrayBuffer']();if(_0x69344e['fCDUb'](_0x5e44b5[_0x23e573(0x1ba)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+_0x23e573(0x1d9));return{'data':Buffer['from'](_0x5e44b5)[_0x23e573(0x1d0)](_0x23e573(0x1b6)),'mediaType':_0x69344e['mgzlF'](inferMediaType,_0x8ddc77['headers']['get'](_0x69344e['vzqoj']),_0x47cb79)};}const _0x1e80f6=await stat(_0x47cb79);if(_0x69344e['MJWZs'](_0x1e80f6['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x23e573(0x1d9));const _0x32099a=await readFile(_0x47cb79);return{'data':_0x32099a['toString']('base64'),'mediaType':inferMediaType(null,_0x47cb79)};}async function convertImageBlockToBase64(_0x59e90f){const _0x2073b0=_0x37d0,_0x169344={'ZMqSy':_0x2073b0(0x1b6)};if(_0x59e90f['source']?.[_0x2073b0(0x1e4)]==='base64')return{'updated':![],'block':_0x59e90f};if(_0x59e90f[_0x2073b0(0x1e6)]&&_0x59e90f['mimeType'])return{'updated':![],'block':_0x59e90f};const _0x43254c=_0x59e90f[_0x2073b0(0x1db)]?.['url']??_0x59e90f[_0x2073b0(0x1b5)];if(!_0x43254c)return{'updated':![],'block':_0x59e90f};const _0x1c7297=await readImageFromUrl(_0x43254c);return{'updated':!![],'block':{..._0x59e90f,'source':{'type':_0x169344[_0x2073b0(0x1d4)],'media_type':_0x1c7297[_0x2073b0(0x1d7)],'data':_0x1c7297[_0x2073b0(0x1e6)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3b490b){const _0x2cb1f6={'AXBfG':function(_0x1fc6e1,_0x5b649b){return _0x1fc6e1(_0x5b649b);}};if(!_0x2cb1f6['AXBfG'](isRecord,_0x3b490b))return{'updated':![],'output':_0x3b490b};const _0x5c8507=_0x3b490b['content'];if(!Array['isArray'](_0x5c8507))return{'updated':![],'output':_0x3b490b};let _0x3240a9=![];const _0x22784f=await Promise['all'](_0x5c8507['map'](async _0x5982c1=>{const _0xf9366b=_0x37d0;if(!isImageBlock(_0x5982c1))return _0x5982c1;try{const _0x5cc1b3=await convertImageBlockToBase64(_0x5982c1);if(_0x5cc1b3[_0xf9366b(0x1de)])_0x3240a9=!![];return _0x5cc1b3['block'];}catch{return _0x5982c1;}}));if(!_0x3240a9)return{'updated':![],'output':_0x3b490b};return{'updated':!![],'output':{..._0x3b490b,'content':_0x22784f}};}function sanitizeLoneSurrogates(_0x2f52c0){const _0x57a9a4=_0x37d0,_0x499afe={'yLQuT':function(_0x5915a5,_0x4a17bb){return _0x5915a5>=_0x4a17bb;},'EiQRI':function(_0x4f90c9,_0x1d7c2a){return _0x4f90c9<=_0x1d7c2a;},'AKnSj':function(_0x19a426,_0x387950){return _0x19a426+_0x387950;}};let _0x5011a2=![],_0x4569c5='';for(let _0x1b9657=0x0;_0x1b9657<_0x2f52c0['length'];_0x1b9657+=0x1){const _0x269641=_0x2f52c0[_0x57a9a4(0x1b7)](_0x1b9657);if(_0x499afe[_0x57a9a4(0x1e1)](_0x269641,0xd800)&&_0x499afe[_0x57a9a4(0x1ac)](_0x269641,0xdbff)){const _0x208d54=_0x2f52c0[_0x57a9a4(0x1b7)](_0x499afe['AKnSj'](_0x1b9657,0x1));if(_0x208d54>=0xdc00&&_0x208d54<=0xdfff){_0x4569c5+=_0x499afe[_0x57a9a4(0x1aa)](_0x2f52c0[_0x1b9657],_0x2f52c0[_0x499afe[_0x57a9a4(0x1aa)](_0x1b9657,0x1)]),_0x1b9657+=0x1;continue;}_0x5011a2=!![],_0x4569c5+='�';continue;}if(_0x499afe['yLQuT'](_0x269641,0xdc00)&&_0x269641<=0xdfff){_0x5011a2=!![],_0x4569c5+='�';continue;}_0x4569c5+=_0x2f52c0[_0x1b9657];}return _0x5011a2?{'updated':_0x5011a2,'value':_0x4569c5}:{'updated':_0x5011a2,'value':_0x2f52c0};}function _0x3a07(){const _0x13dd6f=['mediaType','407diNEwU','\x20bytes)','image/webp','source','10192462OKRQRs','replace','updated','MdGIt','string','yLQuT','1617526RWHqYN','content-type','type','66086208CTVSsr','data','startsWith','KlcRf','JgBFT','AKnSj','http://','EiQRI','isNaN','image','Image\x20exceeds\x20size\x20limit\x20(','toLowerCase','data:','image/gif','content-length','headers','url','base64','charCodeAt','sHJyh','map','byteLength','rMOSb','exec','1593bGCsbY','2024iWmCng','JKjAu','72ytdXkB','wgHlm','value','trim','598065EdLNmD','IKqlC','split','entries','gif','442220BcaPoo','5053304AHLalH','iKnFo','size','2NVrZGM','get','3EbvFPE','toString','nRHse','PostToolUse','ACLOG','ZMqSy','file://','webp'];_0x3a07=function(){return _0x13dd6f;};return _0x3a07();}function sanitizeLoneSurrogatesDeep(_0x266f3a){const _0x2532bd=_0x37d0,_0x39fa20={'ghyQB':function(_0x1dc3c1,_0x798571){return _0x1dc3c1(_0x798571);},'KlcRf':_0x2532bd(0x1e0),'sAcae':function(_0x37aea9,_0x44ed1c){return _0x37aea9(_0x44ed1c);}};if(typeof _0x266f3a===_0x39fa20[_0x2532bd(0x1a8)])return _0x39fa20['sAcae'](sanitizeLoneSurrogates,_0x266f3a);if(Array['isArray'](_0x266f3a)){let _0x108f36=![];const _0x164d53=_0x266f3a['map'](_0xaef796=>{const _0xec8f05=_0x2532bd,_0x3a055b=sanitizeLoneSurrogatesDeep(_0xaef796);return _0x3a055b[_0xec8f05(0x1de)]&&(_0x108f36=!![]),_0x3a055b[_0xec8f05(0x1c2)];});return _0x108f36?{'updated':!![],'value':_0x164d53}:{'updated':![],'value':_0x266f3a};}if(!isRecord(_0x266f3a))return{'updated':![],'value':_0x266f3a};let _0x1a9a03=![];const _0x3fb783=Object[_0x2532bd(0x1c7)](_0x266f3a)[_0x2532bd(0x1b9)](([_0x1a7639,_0x2649bb])=>{const _0x50b45c=_0x2532bd,_0x2afc1b=_0x39fa20['ghyQB'](sanitizeLoneSurrogatesDeep,_0x2649bb);return _0x2afc1b[_0x50b45c(0x1de)]&&(_0x1a9a03=!![]),[_0x1a7639,_0x2afc1b[_0x50b45c(0x1c2)]];});return _0x1a9a03?{'updated':!![],'value':Object['fromEntries'](_0x3fb783)}:{'updated':![],'value':_0x266f3a};}export function createMcpImageBase64Hook(){const _0x1fb69b={'eDSBR':function(_0x450690,_0x1b9ee4){return _0x450690!==_0x1b9ee4;},'mxkJL':'PostToolUse','nRHse':function(_0x1c1219,_0x4c23b2){return _0x1c1219(_0x4c23b2);}};return async _0x40f3e0=>{const _0x4b1bc0=_0x37d0;if(_0x1fb69b['eDSBR'](_0x40f3e0['hook_event_name'],_0x1fb69b['mxkJL']))return{};const _0x2d84dd=_0x40f3e0,_0x1c55b6=await _0x1fb69b['nRHse'](convertToolOutputImagesToBase64,_0x2d84dd['tool_response']),_0x3c529e=_0x1fb69b[_0x4b1bc0(0x1d1)](sanitizeLoneSurrogatesDeep,_0x1c55b6['output']),_0x27291e=_0x1c55b6['updated']||_0x3c529e['updated'];if(!_0x27291e)return{};return{'hookSpecificOutput':{'hookEventName':_0x4b1bc0(0x1d2),'updatedMCPToolOutput':_0x3c529e['value']}};};}
1
+ (function(_0x52f85c,_0x3cff46){const _0x9496c1=_0x41e3,_0x2757cd=_0x52f85c();while(!![]){try{const _0x2ec5f4=-parseInt(_0x9496c1(0xdb))/0x1*(-parseInt(_0x9496c1(0xad))/0x2)+parseInt(_0x9496c1(0xd0))/0x3+-parseInt(_0x9496c1(0xbc))/0x4+-parseInt(_0x9496c1(0xa8))/0x5*(parseInt(_0x9496c1(0xaa))/0x6)+-parseInt(_0x9496c1(0xcd))/0x7*(parseInt(_0x9496c1(0xcf))/0x8)+parseInt(_0x9496c1(0xe0))/0x9+parseInt(_0x9496c1(0xe4))/0xa;if(_0x2ec5f4===_0x3cff46)break;else _0x2757cd['push'](_0x2757cd['shift']());}catch(_0x416921){_0x2757cd['push'](_0x2757cd['shift']());}}}(_0x4050,0xd7d76));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(_0x458a40){const _0x3e1869={'CSHpV':function(_0x15b101,_0x429d9f){return _0x15b101===_0x429d9f;},'Dyjio':function(_0x4cbeab,_0x27a0d2){return _0x4cbeab!==_0x27a0d2;}};return _0x3e1869['CSHpV'](typeof _0x458a40,'object')&&_0x3e1869['Dyjio'](_0x458a40,null);}function _0x4050(){const _0x4da8ee=['Image\x20exceeds\x20size\x20limit\x20(','image/png','includes','3021004fNaukT','file://','32VHSsQe','2986221WlqjxO','sFrJK','status','webp','updated','NsTWA','isNaN','startsWith','headers','type','png','67ftbebr','image/gif','exec','xTkoY','PostToolUse','13303449mxtMJu','image','WLdnj','entries','6203680MEsedq','qHarf','glCDI','output','kgNbG','content-type','https://','value','CeEhE','isArray','5qgSEpt','data','1799268bPUMvf','CVfCk','smXDG','9332fKIgbr','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','TAUea','yKDNa','replace','image/webp','get','http://','source','yrEkd','data:','gif','CsSpo','mimeType','toString','1985224Fobrij','zcSIw','PAqZf','fromEntries','\x20bytes)','size','length','tool_response','base64','cqNjz','content-length','image/jpeg','WAmzu','block'];_0x4050=function(){return _0x4da8ee;};return _0x4050();}function isImageBlock(_0x7dc3d5){const _0x3817c6=_0x41e3,_0x1d232c={'pRCCb':function(_0x34ae62,_0x6064bc){return _0x34ae62===_0x6064bc;},'PAqZf':_0x3817c6(0xe1)};return isRecord(_0x7dc3d5)&&_0x1d232c['pRCCb'](_0x7dc3d5[_0x3817c6(0xd9)],_0x1d232c[_0x3817c6(0xbe)]);}function isDataUrl(_0x57f3c4){const _0x5f386b=_0x41e3;return _0x57f3c4[_0x5f386b(0xd7)](_0x5f386b(0xb7));}function _0x41e3(_0x21c810,_0x19baac){_0x21c810=_0x21c810-0xa6;const _0x405077=_0x4050();let _0x41e32e=_0x405077[_0x21c810];return _0x41e32e;}function parseDataUrl(_0x35cce4){const _0x476215=_0x41e3,_0x1060a6={'kgNbG':function(_0x4d5bd1,_0x3c663f){return _0x4d5bd1(_0x3c663f);}},_0x102951=/^data:([^;]+);base64,(.+)$/[_0x476215(0xdd)](_0x35cce4);if(!_0x102951)return null;const _0x257a04=_0x102951[0x1]['toLowerCase']();if(!_0x1060a6[_0x476215(0xe8)](isValidMediaType,_0x257a04))return null;return{'data':_0x102951[0x2],'mediaType':_0x257a04};}function isValidMediaType(_0x5251af){const _0x1966cf=_0x41e3,_0x5e4afb={'yKDNa':_0x1966cf(0xc7)};return[_0x5e4afb[_0x1966cf(0xb0)],'image/png',_0x1966cf(0xdc),_0x1966cf(0xb2)][_0x1966cf(0xcc)](_0x5251af);}function inferMediaType(_0x37443f,_0x40e093){const _0x4f7462=_0x41e3,_0x3fe9fc={'CeEhE':_0x4f7462(0xcb),'ZdRZy':'image/gif','clesm':_0x4f7462(0xd3)};if(_0x37443f){const _0x2ea36d=_0x37443f['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x2ea36d))return _0x2ea36d;}const _0x159ffa=extname(_0x40e093)['toLowerCase']()[_0x4f7462(0xb1)]('.','');switch(_0x159ffa){case'jpg':case'jpeg':return _0x4f7462(0xc7);case _0x4f7462(0xda):return _0x3fe9fc[_0x4f7462(0xa6)];case _0x4f7462(0xb8):return _0x3fe9fc['ZdRZy'];case _0x3fe9fc['clesm']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x45c8c6){const _0x5786cd=_0x41e3,_0x125b85={'WAmzu':function(_0x5df47d,_0x998fc5){return _0x5df47d(_0x998fc5);},'cqNjz':function(_0x4b0789,_0x1c4c5c){return _0x4b0789(_0x1c4c5c);},'zcSIw':function(_0x292f46,_0x2e7f0b){return _0x292f46(_0x2e7f0b);},'CVfCk':function(_0x3aebeb,_0x4462b8){return _0x3aebeb(_0x4462b8);},'cnAuC':function(_0x3deb6a,_0x1ee217){return _0x3deb6a>_0x1ee217;},'qHarf':_0x5786cd(0xc4),'AATCT':function(_0x2fcfb5,_0x1a48fb,_0x1786ed){return _0x2fcfb5(_0x1a48fb,_0x1786ed);},'yrEkd':_0x5786cd(0xb4),'TAUea':_0x5786cd(0xea),'HZGST':function(_0x33d5c0,_0x45debc){return _0x33d5c0>_0x45debc;},'glCDI':function(_0x50e4b0,_0x4b11b6){return _0x50e4b0(_0x4b11b6);}};if(_0x125b85[_0x5786cd(0xc8)](isDataUrl,_0x45c8c6)){const _0x52ca0c=_0x125b85[_0x5786cd(0xc5)](parseDataUrl,_0x45c8c6);if(_0x52ca0c)return _0x52ca0c;throw new Error(_0x5786cd(0xae));}if(_0x45c8c6[_0x5786cd(0xd7)](_0x5786cd(0xce))){const _0x342d73=_0x125b85[_0x5786cd(0xbd)](fileURLToPath,_0x45c8c6),_0x4a06e2=await _0x125b85['CVfCk'](stat,_0x342d73);if(_0x125b85['cnAuC'](_0x4a06e2[_0x5786cd(0xc1)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x5786cd(0xca)+MAX_IMAGE_SIZE_BYTES+_0x5786cd(0xc0));const _0x362151=await readFile(_0x342d73);return{'data':_0x362151['toString'](_0x125b85['qHarf']),'mediaType':_0x125b85['AATCT'](inferMediaType,null,_0x342d73)};}if(_0x45c8c6[_0x5786cd(0xd7)](_0x125b85[_0x5786cd(0xb6)])||_0x45c8c6[_0x5786cd(0xd7)](_0x125b85[_0x5786cd(0xaf)])){const _0x1bdeb5=await fetch(_0x45c8c6,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1bdeb5['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1bdeb5[_0x5786cd(0xd2)]);const _0x773142=_0x1bdeb5['headers'][_0x5786cd(0xb3)](_0x5786cd(0xc6));if(_0x773142){const _0x41fef5=Number(_0x773142);if(!Number[_0x5786cd(0xd6)](_0x41fef5)&&_0x125b85['HZGST'](_0x41fef5,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x5786cd(0xca)+MAX_IMAGE_SIZE_BYTES+_0x5786cd(0xc0));}const _0x315f46=await _0x1bdeb5['arrayBuffer']();if(_0x315f46['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5786cd(0xca)+MAX_IMAGE_SIZE_BYTES+_0x5786cd(0xc0));return{'data':Buffer['from'](_0x315f46)[_0x5786cd(0xbb)](_0x125b85['qHarf']),'mediaType':inferMediaType(_0x1bdeb5[_0x5786cd(0xd8)]['get'](_0x5786cd(0xe9)),_0x45c8c6)};}const _0x5646dd=await _0x125b85[_0x5786cd(0xe6)](stat,_0x45c8c6);if(_0x5646dd[_0x5786cd(0xc1)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x5786cd(0xc0));const _0x171e09=await _0x125b85[_0x5786cd(0xab)](readFile,_0x45c8c6);return{'data':_0x171e09['toString'](_0x125b85[_0x5786cd(0xe5)]),'mediaType':inferMediaType(null,_0x45c8c6)};}async function convertImageBlockToBase64(_0x5dddfd){const _0x48c653=_0x41e3,_0x44c9bc={'dfDGX':function(_0x4d2a01,_0x197307){return _0x4d2a01===_0x197307;},'yNpLM':_0x48c653(0xc4)};if(_0x44c9bc['dfDGX'](_0x5dddfd[_0x48c653(0xb5)]?.['type'],_0x48c653(0xc4)))return{'updated':![],'block':_0x5dddfd};if(_0x5dddfd[_0x48c653(0xa9)]&&_0x5dddfd[_0x48c653(0xba)])return{'updated':![],'block':_0x5dddfd};const _0x159c34=_0x5dddfd[_0x48c653(0xb5)]?.['url']??_0x5dddfd['url'];if(!_0x159c34)return{'updated':![],'block':_0x5dddfd};const _0x12dd78=await readImageFromUrl(_0x159c34);return{'updated':!![],'block':{..._0x5dddfd,'source':{'type':_0x44c9bc['yNpLM'],'media_type':_0x12dd78['mediaType'],'data':_0x12dd78['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x100d5d){const _0x5b42fe=_0x41e3,_0x39e357={'WLdnj':function(_0x3c1125,_0x192b18){return _0x3c1125(_0x192b18);}};if(!_0x39e357[_0x5b42fe(0xe2)](isRecord,_0x100d5d))return{'updated':![],'output':_0x100d5d};const _0xddeb6a=_0x100d5d['content'];if(!Array['isArray'](_0xddeb6a))return{'updated':![],'output':_0x100d5d};let _0xcdc1ea=![];const _0x59f020=await Promise['all'](_0xddeb6a['map'](async _0x616532=>{const _0x547347=_0x5b42fe;if(!isImageBlock(_0x616532))return _0x616532;try{const _0x57a102=await _0x39e357['WLdnj'](convertImageBlockToBase64,_0x616532);if(_0x57a102['updated'])_0xcdc1ea=!![];return _0x57a102[_0x547347(0xc9)];}catch{return _0x616532;}}));if(!_0xcdc1ea)return{'updated':![],'output':_0x100d5d};return{'updated':!![],'output':{..._0x100d5d,'content':_0x59f020}};}function sanitizeLoneSurrogates(_0x5ac4f3){const _0x35a0d6=_0x41e3,_0x466fce={'sFrJK':function(_0x8a590f,_0x4d0a8d){return _0x8a590f>=_0x4d0a8d;},'smXDG':function(_0xb7285c,_0xdeed47){return _0xb7285c<=_0xdeed47;},'xTkoY':function(_0x1a2074,_0x59e842){return _0x1a2074<=_0x59e842;}};let _0x4191d0=![],_0x42e094='';for(let _0x811207=0x0;_0x811207<_0x5ac4f3[_0x35a0d6(0xc2)];_0x811207+=0x1){const _0x541eb2=_0x5ac4f3['charCodeAt'](_0x811207);if(_0x466fce[_0x35a0d6(0xd1)](_0x541eb2,0xd800)&&_0x466fce[_0x35a0d6(0xac)](_0x541eb2,0xdbff)){const _0x4527ad=_0x5ac4f3['charCodeAt'](_0x811207+0x1);if(_0x466fce['sFrJK'](_0x4527ad,0xdc00)&&_0x466fce[_0x35a0d6(0xde)](_0x4527ad,0xdfff)){_0x42e094+=_0x5ac4f3[_0x811207]+_0x5ac4f3[_0x811207+0x1],_0x811207+=0x1;continue;}_0x4191d0=!![],_0x42e094+='�';continue;}if(_0x541eb2>=0xdc00&&_0x466fce[_0x35a0d6(0xac)](_0x541eb2,0xdfff)){_0x4191d0=!![],_0x42e094+='�';continue;}_0x42e094+=_0x5ac4f3[_0x811207];}return _0x4191d0?{'updated':_0x4191d0,'value':_0x42e094}:{'updated':_0x4191d0,'value':_0x5ac4f3};}function sanitizeLoneSurrogatesDeep(_0x20a780){const _0x1e8179=_0x41e3,_0x50fd06={'fMAfY':function(_0x403f9a,_0x112987){return _0x403f9a(_0x112987);},'NsTWA':function(_0x39d919,_0x494371){return _0x39d919===_0x494371;},'XulpI':'string','RPbWg':function(_0x2b5d01,_0x58bf8d){return _0x2b5d01(_0x58bf8d);},'CsSpo':function(_0x49d1ca,_0x587318){return _0x49d1ca(_0x587318);}};if(_0x50fd06[_0x1e8179(0xd5)](typeof _0x20a780,_0x50fd06['XulpI']))return _0x50fd06['RPbWg'](sanitizeLoneSurrogates,_0x20a780);if(Array[_0x1e8179(0xa7)](_0x20a780)){let _0x2c7214=![];const _0x831ff3=_0x20a780['map'](_0x4136de=>{const _0x31fb7e=_0x1e8179,_0x27f890=_0x50fd06['fMAfY'](sanitizeLoneSurrogatesDeep,_0x4136de);return _0x27f890['updated']&&(_0x2c7214=!![]),_0x27f890[_0x31fb7e(0xeb)];});return _0x2c7214?{'updated':!![],'value':_0x831ff3}:{'updated':![],'value':_0x20a780};}if(!_0x50fd06[_0x1e8179(0xb9)](isRecord,_0x20a780))return{'updated':![],'value':_0x20a780};let _0x3bd164=![];const _0x491395=Object[_0x1e8179(0xe3)](_0x20a780)['map'](([_0x39105d,_0x4ac0a7])=>{const _0x91907b=_0x1e8179,_0x2f900b=sanitizeLoneSurrogatesDeep(_0x4ac0a7);return _0x2f900b['updated']&&(_0x3bd164=!![]),[_0x39105d,_0x2f900b[_0x91907b(0xeb)]];});return _0x3bd164?{'updated':!![],'value':Object[_0x1e8179(0xbf)](_0x491395)}:{'updated':![],'value':_0x20a780};}export function createMcpImageBase64Hook(){return async _0x3f6a20=>{const _0x3d8b10=_0x41e3;if(_0x3f6a20['hook_event_name']!==_0x3d8b10(0xdf))return{};const _0x2a458c=_0x3f6a20,_0x5c44ef=await convertToolOutputImagesToBase64(_0x2a458c[_0x3d8b10(0xc3)]),_0x500887=sanitizeLoneSurrogatesDeep(_0x5c44ef[_0x3d8b10(0xe7)]),_0x591f07=_0x5c44ef[_0x3d8b10(0xd4)]||_0x500887[_0x3d8b10(0xd4)];if(!_0x591f07)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x500887[_0x3d8b10(0xeb)]}};};}
@@ -1 +1 @@
1
- function _0x109f(){const _0x2f1b77=['112796NGZFvw','toLowerCase','7883144BYJphZ','63NOxhIe','15xUWTFY','1459410vkOEAM','1176534trmaVi','1813343CSLezS','36578150Erhxhc','17284HmTjIU','181mpvYWo'];_0x109f=function(){return _0x2f1b77;};return _0x109f();}(function(_0x17057a,_0x35b09c){const _0x4bb8f5=_0x5b53,_0x310085=_0x17057a();while(!![]){try{const _0x36db23=-parseInt(_0x4bb8f5(0x160))/0x1*(parseInt(_0x4bb8f5(0x15f))/0x2)+parseInt(_0x4bb8f5(0x159))/0x3*(-parseInt(_0x4bb8f5(0x161))/0x4)+-parseInt(_0x4bb8f5(0x15a))/0x5*(-parseInt(_0x4bb8f5(0x15b))/0x6)+-parseInt(_0x4bb8f5(0x15d))/0x7+-parseInt(_0x4bb8f5(0x158))/0x8+-parseInt(_0x4bb8f5(0x15c))/0x9+parseInt(_0x4bb8f5(0x15e))/0xa;if(_0x36db23===_0x35b09c)break;else _0x310085['push'](_0x310085['shift']());}catch(_0x13af3d){_0x310085['push'](_0x310085['shift']());}}}(_0x109f,0xd0fa3));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};function _0x5b53(_0x4ea78b,_0x59b0dd){_0x4ea78b=_0x4ea78b-0x157;const _0x109fbb=_0x109f();let _0x5b53c2=_0x109fbb[_0x4ea78b];return _0x5b53c2;}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x1b212a){const _0x4fe919=_0x5b53;if(!_0x1b212a)return undefined;const _0x51c620=_0x1b212a['trim']();if(!_0x51c620)return undefined;const _0x1453ad=VERIFY_MODEL_ALIASES[_0x51c620[_0x4fe919(0x157)]()];return _0x1453ad??_0x51c620;}
1
+ const _0x230712=_0x58a7;(function(_0x37a775,_0x25362f){const _0xc3d1f3=_0x58a7,_0x69f9f=_0x37a775();while(!![]){try{const _0x27e3fa=-parseInt(_0xc3d1f3(0x82))/0x1*(-parseInt(_0xc3d1f3(0x84))/0x2)+parseInt(_0xc3d1f3(0x7e))/0x3+parseInt(_0xc3d1f3(0x85))/0x4*(parseInt(_0xc3d1f3(0x86))/0x5)+parseInt(_0xc3d1f3(0x7f))/0x6+-parseInt(_0xc3d1f3(0x7d))/0x7*(parseInt(_0xc3d1f3(0x8a))/0x8)+-parseInt(_0xc3d1f3(0x87))/0x9+-parseInt(_0xc3d1f3(0x83))/0xa*(parseInt(_0xc3d1f3(0x81))/0xb);if(_0x27e3fa===_0x25362f)break;else _0x69f9f['push'](_0x69f9f['shift']());}catch(_0x3b3093){_0x69f9f['push'](_0x69f9f['shift']());}}}(_0x7b67,0xd5a3c));const VERIFY_MODEL_ALIASES={'opus':_0x230712(0x8b),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x230712(0x80);function _0x7b67(){const _0x41afd8=['4MuHPkO','2245765VLDqwk','299664OZegfS','trim','toLowerCase','760MvVibb','claude-opus-4-6','31087BkeOnL','4888116whhLcD','520248hxvKgu','claude-sonnet-4-6','23107139pfMzJq','253135MmBNNC','10XGrrQA','10YJXXZJ'];_0x7b67=function(){return _0x41afd8;};return _0x7b67();}function _0x58a7(_0x27bb8f,_0x207dfd){_0x27bb8f=_0x27bb8f-0x7d;const _0x7b6790=_0x7b67();let _0x58a7e2=_0x7b6790[_0x27bb8f];return _0x58a7e2;}export function resolveVerifyModel(_0x5c4de6){const _0x24e0c7=_0x230712,_0x430736={'pMtoM':function(_0x444ff1,_0x4f26a3){return _0x444ff1??_0x4f26a3;}};if(!_0x5c4de6)return undefined;const _0x25d9f7=_0x5c4de6[_0x24e0c7(0x88)]();if(!_0x25d9f7)return undefined;const _0x54c150=VERIFY_MODEL_ALIASES[_0x25d9f7[_0x24e0c7(0x89)]()];return _0x430736['pMtoM'](_0x54c150,_0x25d9f7);}
@@ -1 +1 @@
1
- (function(_0x2dc325,_0xd88720){var _0x332e5e=_0x2df4,_0x34df86=_0x2dc325();while(!![]){try{var _0x4f244e=-parseInt(_0x332e5e(0xd3))/0x1*(-parseInt(_0x332e5e(0xd6))/0x2)+parseInt(_0x332e5e(0xd4))/0x3+parseInt(_0x332e5e(0xce))/0x4*(-parseInt(_0x332e5e(0xcc))/0x5)+parseInt(_0x332e5e(0xd8))/0x6+parseInt(_0x332e5e(0xd7))/0x7+parseInt(_0x332e5e(0xd0))/0x8+-parseInt(_0x332e5e(0xd5))/0x9;if(_0x4f244e===_0xd88720)break;else _0x34df86['push'](_0x34df86['shift']());}catch(_0x4fc652){_0x34df86['push'](_0x34df86['shift']());}}}(_0x46cd,0xadd06));function _0x46cd(){var _0x698ce6=['XDG_CONFIG_HOME','1859345pVXewa','OPENCODE_CONFIG_DIR','4hTTRkV','env','9013072fmROnl','Iogjw','.config','17bRgEYF','1398141sQmPKX','23732676UqmJDm','75560VPIZVJ','5681214nzQYPi','4045392zEkNNb','skills'];_0x46cd=function(){return _0x698ce6;};return _0x46cd();}function _0x2df4(_0x42a570,_0x8ae4dc){_0x42a570=_0x42a570-0xcb;var _0x46cde4=_0x46cd();var _0x2df401=_0x46cde4[_0x42a570];return _0x2df401;}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x5130c4){var _0x5642c3=_0x2df4,_0x2a16d4={'vdpZE':function(_0x2f10d7,_0x2afa09){return _0x2f10d7===_0x2afa09;},'BzUYl':'user','GmMvl':'opencode','DpZFd':function(_0x4768bf,_0x49e80d,_0x39a7c3,_0xcd182c){return _0x4768bf(_0x49e80d,_0x39a7c3,_0xcd182c);},'zBtiT':function(_0x2e301c){return _0x2e301c();}};if(process[_0x5642c3(0xcf)][_0x5642c3(0xcd)])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x2a16d4['vdpZE'](_0x5130c4,_0x2a16d4['BzUYl'])){if(process[_0x5642c3(0xcf)][_0x5642c3(0xcb)])return join(process['env']['XDG_CONFIG_HOME'],_0x2a16d4['GmMvl']);return _0x2a16d4['DpZFd'](join,_0x2a16d4['zBtiT'](homedir),_0x5642c3(0xd2),'opencode');}return join(getProjectRoot(),'.opencode');}export function getOpencodeSkillsDir(_0x51b73f){var _0x5b6537=_0x2df4,_0x5c1b63={'BIYAs':function(_0x2572b1,_0x59dc17){return _0x2572b1(_0x59dc17);},'Iogjw':_0x5b6537(0xd9)};return join(_0x5c1b63['BIYAs'](getOpencodeConfigDir,_0x51b73f),_0x5c1b63[_0x5b6537(0xd1)]);}
1
+ (function(_0x5e1a0a,_0x230bba){var _0x276e6c=_0x5028,_0x3be7c0=_0x5e1a0a();while(!![]){try{var _0x5ec074=parseInt(_0x276e6c(0x191))/0x1*(parseInt(_0x276e6c(0x196))/0x2)+-parseInt(_0x276e6c(0x194))/0x3+parseInt(_0x276e6c(0x19a))/0x4+parseInt(_0x276e6c(0x195))/0x5*(-parseInt(_0x276e6c(0x18f))/0x6)+-parseInt(_0x276e6c(0x19c))/0x7+-parseInt(_0x276e6c(0x190))/0x8+parseInt(_0x276e6c(0x198))/0x9*(parseInt(_0x276e6c(0x199))/0xa);if(_0x5ec074===_0x230bba)break;else _0x3be7c0['push'](_0x3be7c0['shift']());}catch(_0x5b033e){_0x3be7c0['push'](_0x3be7c0['shift']());}}}(_0x550b,0xe082b));function _0x5028(_0x2f77c8,_0x1f5220){_0x2f77c8=_0x2f77c8-0x18f;var _0x550b43=_0x550b();var _0x502841=_0x550b43[_0x2f77c8];return _0x502841;}import{homedir}from'os';import{join}from'path';function _0x550b(){var _0x29b4b1=['env','24363YkrmkT','17590QpqJZf','1307280CjSTDq','DgooA','11328387uAwtTG','.config','6223134nGmrpa','11702872CIzVSr','5Ibzwuc','opencode','INIFp','4792842VrHdIC','5rmmYGe','618866sbKOne'];_0x550b=function(){return _0x29b4b1;};return _0x550b();}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x4e39ff){var _0x4fb7f3=_0x5028,_0x243142={'TLrKV':'user','INIFp':function(_0x1f5b04,_0x1eea6e,_0xe8780c){return _0x1f5b04(_0x1eea6e,_0xe8780c);},'jWEzW':function(_0x282663){return _0x282663();},'etGEA':'opencode','vfjfC':function(_0x442ebc,_0x69314b,_0x5bb856){return _0x442ebc(_0x69314b,_0x5bb856);},'PVwPi':function(_0x4f45df){return _0x4f45df();},'NikVe':'.opencode'};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x4fb7f3(0x197)]['OPENCODE_CONFIG_DIR'];if(_0x4e39ff===_0x243142['TLrKV']){if(process[_0x4fb7f3(0x197)]['XDG_CONFIG_HOME'])return _0x243142[_0x4fb7f3(0x193)](join,process[_0x4fb7f3(0x197)]['XDG_CONFIG_HOME'],_0x4fb7f3(0x192));return join(_0x243142['jWEzW'](homedir),_0x4fb7f3(0x19d),_0x243142['etGEA']);}return _0x243142['vfjfC'](join,_0x243142['PVwPi'](getProjectRoot),_0x243142['NikVe']);}export function getOpencodeSkillsDir(_0x5b11e1){var _0x3f1003=_0x5028,_0x3aadce={'DgooA':function(_0x100ffc,_0x27e253,_0x495a86){return _0x100ffc(_0x27e253,_0x495a86);}};return _0x3aadce[_0x3f1003(0x19b)](join,getOpencodeConfigDir(_0x5b11e1),'skills');}
@@ -1 +1 @@
1
- const _0x59e5e9=_0x1e7a;(function(_0xfef2b4,_0x31e9b3){const _0x242b85=_0x1e7a,_0x2ce4ee=_0xfef2b4();while(!![]){try{const _0x3c81f2=parseInt(_0x242b85(0xbd))/0x1*(-parseInt(_0x242b85(0xb2))/0x2)+-parseInt(_0x242b85(0xd7))/0x3*(-parseInt(_0x242b85(0xc9))/0x4)+-parseInt(_0x242b85(0xb0))/0x5+parseInt(_0x242b85(0xcc))/0x6*(-parseInt(_0x242b85(0xb9))/0x7)+-parseInt(_0x242b85(0xb6))/0x8+parseInt(_0x242b85(0xb5))/0x9+parseInt(_0x242b85(0xba))/0xa;if(_0x3c81f2===_0x31e9b3)break;else _0x2ce4ee['push'](_0x2ce4ee['shift']());}catch(_0x270b94){_0x2ce4ee['push'](_0x2ce4ee['shift']());}}}(_0x522b,0x58db7));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x59e5e9(0xbf);function toPlaywrightCliSessionKey(_0x2afa3f){const _0x450d50=_0x59e5e9,_0x2a949e={'KHBPp':function(_0x1b6809,_0x31b850){return _0x1b6809(_0x31b850);},'wzwFI':_0x450d50(0xcf),'szdHA':_0x450d50(0xc7)},_0x4b70c3=_0x2a949e[_0x450d50(0xb3)](createHash,_0x2a949e['wzwFI'])['update'](_0x2afa3f)[_0x450d50(0xc1)](_0x2a949e['szdHA'])['slice'](0x0,0xc);return _0x450d50(0xd6)+_0x4b70c3;}function shellQuote(_0x163612){return'\x27'+_0x163612['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}function _0x1e7a(_0xaf6cce,_0x1ef65b){_0xaf6cce=_0xaf6cce-0xaa;const _0x522be8=_0x522b();let _0x1e7a58=_0x522be8[_0xaf6cce];return _0x1e7a58;}function _0x522b(){const _0x4897b7=['zWEue','PWDks','pRpGb','null','sZOZF','--config','rg-','212829dGSyiH','timed\x20out\x20after\x20','-s=','tGuCu','shDIl','toString','slice','NbCUk','npx','2650380cxCaCm','configPath','624674llAAKm','KHBPp','\x0astdout:\x20','374364MkoYTy','3099792bWfAUX','data','pipe','79086LpdXFO','13557070ozybaC','vaOfa','unknown','1ZhSYcV','icXae','@playwright/cli','values','digest','test','\x20signal=','\x0astderr:\x20','kill','playwright-cli\x20','hex','Hztqz','20CvhJoA','YQApy','cmd','84mlIVfN','GIeeX','string','sha256'];_0x522b=function(){return _0x4897b7;};return _0x522b();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x422261){const _0x14fd6f=_0x59e5e9;return SAFE_SHELL_TOKEN[_0x14fd6f(0xc2)](_0x422261)?_0x422261:shellQuote(_0x422261);}export function buildPlaywrightCliInvocation(_0x3520d9,_0x15d6a9,_0x11977f){const _0x290a59=_0x59e5e9,_0x5408d9={'shDIl':function(_0x25ebbc,_0x29e534){return _0x25ebbc(_0x29e534);},'aMMhi':_0x290a59(0xbc),'PWDks':_0x290a59(0xd5),'IGIae':_0x290a59(0xaf)},_0x2b3b5b=_0x5408d9[_0x290a59(0xab)](toPlaywrightCliSessionKey,_0x3520d9),[_0x90b385=_0x5408d9['aMMhi']]=_0x11977f,_0x84b1d9=[PLAYWRIGHT_CLI_BINARY,_0x290a59(0xd9)+_0x2b3b5b,_0x5408d9[_0x290a59(0xd1)],_0x15d6a9,..._0x11977f];return{'command':_0x5408d9['IGIae'],'args':_0x84b1d9,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x290a59(0xd9)+quoteShellArg(_0x2b3b5b),_0x5408d9[_0x290a59(0xd1)],_0x5408d9[_0x290a59(0xab)](quoteShellArg,_0x15d6a9),..._0x11977f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x90b385};}export function buildPlaywrightCliCommandPrefix(_0x55fc26,_0x3293f6){const _0x151c62=_0x59e5e9,_0xd69d20={'sZOZF':function(_0x473941,_0x19af92){return _0x473941(_0x19af92);},'LEbbY':_0x151c62(0xaf)},_0x2219c6=_0xd69d20[_0x151c62(0xd4)](toPlaywrightCliSessionKey,_0x55fc26);return[_0xd69d20['LEbbY'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x2219c6),'--config',_0xd69d20[_0x151c62(0xd4)](quoteShellArg,_0x3293f6)]['join']('\x20');}function truncateOutput(_0x81c22,_0x4a8b63=0x7d0){const _0x1b7212=_0x59e5e9,_0x76b70a={'GIeeX':function(_0x5e30ea,_0x57d289){return _0x5e30ea>_0x57d289;},'zWEue':'...'};return _0x76b70a[_0x1b7212(0xcd)](_0x81c22['length'],_0x4a8b63)?_0x81c22[_0x1b7212(0xad)](0x0,_0x4a8b63)+_0x76b70a[_0x1b7212(0xd0)]:_0x81c22;}export async function runPlaywrightCliCommand(_0x2f22f3){const _0xcbc3e9=_0x59e5e9,_0x10e915={'Hztqz':function(_0x5ae840,_0xaf2d7e){return _0x5ae840(_0xaf2d7e);},'YQApy':function(_0xc04399,_0x381108){return _0xc04399??_0x381108;},'HupIo':function(_0x4e4941,_0x39fd67){return _0x4e4941??_0x39fd67;},'HvsIO':_0xcbc3e9(0xd3),'iQEgn':'ignore','icXae':'pipe','mCons':function(_0x2e43ad,_0x25f887){return _0x2e43ad>_0x25f887;},'xiFQn':function(_0x26d560,_0x401554,_0x385ccb){return _0x26d560(_0x401554,_0x385ccb);},'lmGvn':_0xcbc3e9(0xb7),'MEdht':'close','erqBx':function(_0x41349d,_0x3ba927,_0x40931c,_0x5def89){return _0x41349d(_0x3ba927,_0x40931c,_0x5def89);}},_0x2da0e4=_0x10e915['erqBx'](buildPlaywrightCliInvocation,_0x2f22f3['sessionId'],_0x2f22f3[_0xcbc3e9(0xb1)],_0x2f22f3['commandArgs']);return new Promise((_0x48faa2,_0x3aa9d4)=>{const _0x34d77e=_0xcbc3e9,_0x1c7bec={'pRpGb':'SIGTERM','NbCUk':function(_0x59395f,_0x4fdc97){const _0x3ba679=_0x1e7a;return _0x10e915[_0x3ba679(0xc8)](_0x59395f,_0x4fdc97);}},_0x3a6727=spawn(_0x2da0e4['command'],_0x2da0e4['args'],{'cwd':_0x2f22f3['cwd'],'env':_0x2f22f3['env'],'stdio':[_0x10e915['iQEgn'],_0x34d77e(0xb8),_0x10e915[_0x34d77e(0xbe)]]});let _0x4193af='',_0x1b52b2='',_0x21e082=![];const _0x555b46=_0x2f22f3['timeoutMs']&&_0x10e915['mCons'](_0x2f22f3['timeoutMs'],0x0)?_0x10e915['xiFQn'](setTimeout,()=>{const _0x272f49=_0x34d77e;_0x21e082=!![],_0x3a6727['kill'](_0x1c7bec[_0x272f49(0xd2)]),setTimeout(()=>{const _0x4af77a=_0x272f49;try{_0x3a6727[_0x4af77a(0xc5)]('SIGKILL');}catch{}},0x3e8);},_0x2f22f3['timeoutMs']):null;_0x3a6727['stdout']?.['on'](_0x10e915['lmGvn'],_0x5d2234=>{const _0x1d32f6=_0x34d77e;_0x4193af+=_0x5d2234[_0x1d32f6(0xac)]();}),_0x3a6727['stderr']?.['on'](_0x34d77e(0xb7),_0x56bbcd=>{_0x1b52b2+=_0x56bbcd['toString']();}),_0x3a6727['on']('error',_0x98ba7a=>{const _0x48abba=_0x34d77e;if(_0x555b46)_0x1c7bec[_0x48abba(0xae)](clearTimeout,_0x555b46);_0x3aa9d4(_0x98ba7a);}),_0x3a6727['on'](_0x10e915['MEdht'],(_0x4b4cd6,_0x455952)=>{const _0x52cb4a=_0x34d77e;if(_0x555b46)_0x10e915['Hztqz'](clearTimeout,_0x555b46);if(_0x4b4cd6===0x0){_0x48faa2({'stdout':_0x4193af,'stderr':_0x1b52b2,'invocation':_0x2da0e4});return;}const _0x59dc48=_0x21e082?_0x52cb4a(0xd8)+_0x2f22f3['timeoutMs']+'ms':'exited\x20with\x20code='+_0x10e915[_0x52cb4a(0xca)](_0x4b4cd6,_0x52cb4a(0xd3))+_0x52cb4a(0xc3)+_0x10e915['HupIo'](_0x455952,_0x10e915['HvsIO']);_0x3aa9d4(new Error(_0x52cb4a(0xc6)+_0x2da0e4['subcommand']+'\x20'+_0x59dc48+_0x52cb4a(0xb4)+_0x10e915[_0x52cb4a(0xc8)](truncateOutput,_0x4193af)+_0x52cb4a(0xc4)+_0x10e915[_0x52cb4a(0xc8)](truncateOutput,_0x1b52b2)));});});}export function extractBashCommand(_0x144134){const _0x358a73=_0x59e5e9,_0x12bcf2={'vaOfa':'command','tGuCu':'script','GWrCM':function(_0x53189e,_0x27ef21){return _0x53189e===_0x27ef21;}},_0x41efad=[_0x12bcf2[_0x358a73(0xbb)],_0x358a73(0xcb),_0x12bcf2[_0x358a73(0xaa)],'bash_command'];for(const _0x4390f6 of _0x41efad){const _0x1066f2=_0x144134[_0x4390f6];if(_0x12bcf2['GWrCM'](typeof _0x1066f2,'string')&&_0x1066f2['trim']())return _0x1066f2;}const _0x31c47b=Object[_0x358a73(0xc0)](_0x144134)['find'](_0x38a323=>typeof _0x38a323===_0x358a73(0xce)&&_0x38a323['trim']()['length']>0x0);return _0x31c47b??null;}export function parsePlaywrightCliCommand(_0x25a5ff){const _0x12101f=_0x25a5ff['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x12101f?.[0x1]??null;}
1
+ function _0x679b(){const _0x50f43c=['IhRBr','commandArgs','test','\x20signal=','lZHsM','YDSBq','find','ltihG','trim','NMASG','npx','318328IFvLoD','5BypdfQ','XHlYQ','26QgoXlh','playwright-cli\x20','exited\x20with\x20code=','cmd','50840VcEnpf','length','slice','string','data','env','command','4mMmYto','\x0astderr:\x20','iIaHD','update','rg-','\x0astdout:\x20','SIGKILL','script','...','RWwgF','9855528dqCGXQ','ADWAW','149637jJLTJF','join','mfDTD','8183133PQgUQY','nmxLV','configPath','bash_command','sessionId','close','66991kRLJpR','error','iqzpm','stderr','444390anXmXr','-s=','replace','kill','SIGTERM','261AYrirj','--config','vBHFY','440ObgdPU','22aLikhh'];_0x679b=function(){return _0x50f43c;};return _0x679b();}(function(_0x4c2843,_0x4762eb){const _0x261ff6=_0x5c34,_0x52b95a=_0x4c2843();while(!![]){try{const _0x56307e=-parseInt(_0x261ff6(0xdf))/0x1*(parseInt(_0x261ff6(0xec))/0x2)+parseInt(_0x261ff6(0x112))/0x3*(-parseInt(_0x261ff6(0x106))/0x4)+-parseInt(_0x261ff6(0xf9))/0x5*(parseInt(_0x261ff6(0xe3))/0x6)+parseInt(_0x261ff6(0xd9))/0x7+-parseInt(_0x261ff6(0xf8))/0x8*(parseInt(_0x261ff6(0xe8))/0x9)+parseInt(_0x261ff6(0xff))/0xa*(-parseInt(_0x261ff6(0xeb))/0xb)+-parseInt(_0x261ff6(0x110))/0xc*(-parseInt(_0x261ff6(0xfb))/0xd);if(_0x56307e===_0x4762eb)break;else _0x52b95a['push'](_0x52b95a['shift']());}catch(_0x488c86){_0x52b95a['push'](_0x52b95a['shift']());}}}(_0x679b,0x90e37));function _0x5c34(_0xc14ac9,_0x461b95){_0xc14ac9=_0xc14ac9-0xd9;const _0x679b8d=_0x679b();let _0x5c3422=_0x679b8d[_0xc14ac9];return _0x5c3422;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x19fd7f){const _0x839bc0=_0x5c34,_0x16c224={'RWwgF':'sha256'},_0x1852c4=createHash(_0x16c224[_0x839bc0(0x10f)])[_0x839bc0(0x109)](_0x19fd7f)['digest']('hex')[_0x839bc0(0x101)](0x0,0xc);return _0x839bc0(0x10a)+_0x1852c4;}function shellQuote(_0x34336b){const _0x24fdb8=_0x5c34;return'\x27'+_0x34336b[_0x24fdb8(0xe5)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x45c253){const _0x5bc4d0=_0x5c34;return SAFE_SHELL_TOKEN[_0x5bc4d0(0xef)](_0x45c253)?_0x45c253:shellQuote(_0x45c253);}export function buildPlaywrightCliInvocation(_0x3d2f23,_0x57d0ad,_0x4648aa){const _0x2137f9=_0x5c34,_0x3bda18={'iIaHD':function(_0x49b99f,_0x22feff){return _0x49b99f(_0x22feff);},'gkFKI':'unknown','TNOPa':_0x2137f9(0xe9),'ADWAW':_0x2137f9(0xf7),'SDHyv':function(_0x1a925e,_0x48f272){return _0x1a925e(_0x48f272);}},_0x106ba3=_0x3bda18[_0x2137f9(0x108)](toPlaywrightCliSessionKey,_0x3d2f23),[_0x96fdb0=_0x3bda18['gkFKI']]=_0x4648aa,_0x323409=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x106ba3,_0x3bda18['TNOPa'],_0x57d0ad,..._0x4648aa];return{'command':'npx','args':_0x323409,'shellCommand':[_0x3bda18[_0x2137f9(0x111)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x3bda18['SDHyv'](quoteShellArg,_0x106ba3),_0x3bda18['TNOPa'],quoteShellArg(_0x57d0ad),..._0x4648aa['map'](quoteShellArg)][_0x2137f9(0x113)]('\x20'),'subcommand':_0x96fdb0};}export function buildPlaywrightCliCommandPrefix(_0x51de88,_0x487820){const _0x4eed41=_0x5c34,_0x2ddcf7={'lZHsM':function(_0x21e067,_0x3cd8f4){return _0x21e067(_0x3cd8f4);},'TvvgX':_0x4eed41(0xe9),'vBHFY':function(_0x3db407,_0xa3f0ac){return _0x3db407(_0xa3f0ac);}},_0x45ef86=_0x2ddcf7[_0x4eed41(0xf1)](toPlaywrightCliSessionKey,_0x51de88);return[_0x4eed41(0xf7),PLAYWRIGHT_CLI_BINARY,_0x4eed41(0xe4)+quoteShellArg(_0x45ef86),_0x2ddcf7['TvvgX'],_0x2ddcf7[_0x4eed41(0xea)](quoteShellArg,_0x487820)][_0x4eed41(0x113)]('\x20');}function truncateOutput(_0x49df10,_0x50bab4=0x7d0){const _0x2f0a8f=_0x5c34,_0x45a44a={'XHlYQ':function(_0x2297d3,_0x31c919){return _0x2297d3+_0x31c919;}};return _0x49df10[_0x2f0a8f(0x100)]>_0x50bab4?_0x45a44a[_0x2f0a8f(0xfa)](_0x49df10['slice'](0x0,_0x50bab4),_0x2f0a8f(0x10e)):_0x49df10;}export async function runPlaywrightCliCommand(_0x1984ae){const _0x2993fd=_0x5c34,_0x5684b6={'mfDTD':_0x2993fd(0x10c),'LHrgx':function(_0x4148ee,_0xaa0cf0){return _0x4148ee(_0xaa0cf0);},'eFiJP':'null','iqzpm':function(_0x43264d,_0x1406df,_0x614cf9,_0x2a6091){return _0x43264d(_0x1406df,_0x614cf9,_0x2a6091);},'mTJMH':'ignore','tRmrR':'pipe','nmxLV':function(_0x2d40d9,_0x328893,_0x53a727){return _0x2d40d9(_0x328893,_0x53a727);},'qATTR':_0x2993fd(0xde)},_0xb926d9=_0x5684b6[_0x2993fd(0xe1)](buildPlaywrightCliInvocation,_0x1984ae[_0x2993fd(0xdd)],_0x1984ae[_0x2993fd(0xdb)],_0x1984ae[_0x2993fd(0xee)]);return new Promise((_0xe7df84,_0x405e67)=>{const _0x94a277=_0x2993fd,_0x249e20={'IhRBr':_0x5684b6[_0x94a277(0x114)],'YDSBq':function(_0x15c970,_0x5d5ab5){return _0x5684b6['LHrgx'](_0x15c970,_0x5d5ab5);},'NMASG':function(_0x2b7f60,_0x39000a){return _0x2b7f60??_0x39000a;},'XpFdb':_0x5684b6['eFiJP'],'beDVe':function(_0x557993,_0x58ebb5){return _0x557993(_0x58ebb5);}},_0x51744a=_0x5684b6[_0x94a277(0xe1)](spawn,_0xb926d9['command'],_0xb926d9['args'],{'cwd':_0x1984ae['cwd'],'env':_0x1984ae[_0x94a277(0x104)],'stdio':[_0x5684b6['mTJMH'],'pipe',_0x5684b6['tRmrR']]});let _0x1e9743='',_0x4d93ea='',_0x4a73d3=![];const _0x367caf=_0x1984ae['timeoutMs']&&_0x1984ae['timeoutMs']>0x0?_0x5684b6[_0x94a277(0xda)](setTimeout,()=>{const _0x1fa874=_0x94a277;_0x4a73d3=!![],_0x51744a['kill'](_0x1fa874(0xe7)),setTimeout(()=>{const _0x24ccbc=_0x1fa874;try{_0x51744a[_0x24ccbc(0xe6)](_0x249e20[_0x24ccbc(0xed)]);}catch{}},0x3e8);},_0x1984ae['timeoutMs']):null;_0x51744a['stdout']?.['on'](_0x94a277(0x103),_0x30ff0e=>{_0x1e9743+=_0x30ff0e['toString']();}),_0x51744a[_0x94a277(0xe2)]?.['on']('data',_0x21bea0=>{_0x4d93ea+=_0x21bea0['toString']();}),_0x51744a['on'](_0x94a277(0xe0),_0x13d451=>{if(_0x367caf)_0x249e20['YDSBq'](clearTimeout,_0x367caf);_0x405e67(_0x13d451);}),_0x51744a['on'](_0x5684b6['qATTR'],(_0x473c3f,_0x4c104a)=>{const _0x222b10=_0x94a277;if(_0x367caf)clearTimeout(_0x367caf);if(_0x473c3f===0x0){_0x249e20[_0x222b10(0xf2)](_0xe7df84,{'stdout':_0x1e9743,'stderr':_0x4d93ea,'invocation':_0xb926d9});return;}const _0x13b7bb=_0x4a73d3?'timed\x20out\x20after\x20'+_0x1984ae['timeoutMs']+'ms':_0x222b10(0xfd)+_0x249e20[_0x222b10(0xf6)](_0x473c3f,_0x249e20['XpFdb'])+_0x222b10(0xf0)+_0x249e20['NMASG'](_0x4c104a,_0x249e20['XpFdb']);_0x405e67(new Error(_0x222b10(0xfc)+_0xb926d9['subcommand']+'\x20'+_0x13b7bb+_0x222b10(0x10b)+_0x249e20['beDVe'](truncateOutput,_0x1e9743)+_0x222b10(0x107)+truncateOutput(_0x4d93ea)));});});}export function extractBashCommand(_0x2e8ecf){const _0x376140=_0x5c34,_0x1bf5dd={'Okmyq':_0x376140(0xfe),'ltihG':_0x376140(0xdc),'OPNVr':function(_0x5b5194,_0x49d5fd){return _0x5b5194===_0x49d5fd;},'gUNim':function(_0x5af67c,_0x42808f){return _0x5af67c??_0x42808f;}},_0x1cfa15=[_0x376140(0x105),_0x1bf5dd['Okmyq'],_0x376140(0x10d),_0x1bf5dd[_0x376140(0xf4)]];for(const _0x22f621 of _0x1cfa15){const _0x2acf59=_0x2e8ecf[_0x22f621];if(_0x1bf5dd['OPNVr'](typeof _0x2acf59,'string')&&_0x2acf59['trim']())return _0x2acf59;}const _0x3da0dc=Object['values'](_0x2e8ecf)[_0x376140(0xf3)](_0x92b4ee=>typeof _0x92b4ee===_0x376140(0x102)&&_0x92b4ee[_0x376140(0xf5)]()['length']>0x0);return _0x1bf5dd['gUNim'](_0x3da0dc,null);}export function parsePlaywrightCliCommand(_0x3713ac){const _0xdc1956=_0x3713ac['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0xdc1956?.[0x1]??null;}
@@ -1 +1 @@
1
- function _0xb53e(){const _0x58b837=['3085626QwrbsM','9deABpH','1599990GdutjT','ranger\x20profile\x20add\x20local','80wEtXKt','22122rQUEoT','2988380yGXrhk','2831710cZVYWO','4106808iBDxHJ','4914264TShLnu'];_0xb53e=function(){return _0x58b837;};return _0xb53e();}const _0x1b10c0=_0x18ba;(function(_0xdd2e4b,_0x1b655a){const _0x5a7301=_0x18ba,_0x2b1d29=_0xdd2e4b();while(!![]){try{const _0xce9234=parseInt(_0x5a7301(0x6e))/0x1*(parseInt(_0x5a7301(0x6d))/0x2)+-parseInt(_0x5a7301(0x69))/0x3+parseInt(_0x5a7301(0x6f))/0x4+parseInt(_0x5a7301(0x6b))/0x5+parseInt(_0x5a7301(0x67))/0x6+-parseInt(_0x5a7301(0x70))/0x7+parseInt(_0x5a7301(0x68))/0x8*(-parseInt(_0x5a7301(0x6a))/0x9);if(_0xce9234===_0x1b655a)break;else _0x2b1d29['push'](_0x2b1d29['shift']());}catch(_0x4f3e3f){_0x2b1d29['push'](_0x2b1d29['shift']());}}}(_0xb53e,0x8fd1e));function _0x18ba(_0x3cc63e,_0x30f419){_0x3cc63e=_0x3cc63e-0x67;const _0xb53ea5=_0xb53e();let _0x18ba6a=_0xb53ea5[_0x3cc63e];return _0x18ba6a;}const DEFAULT_PROFILE_COMMAND=_0x1b10c0(0x6c);export function formatProfileRequiredMessage(_0x354484){const _0x4d6edf=_0x354484?_0x354484(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x4d6edf+'.';}
1
+ (function(_0x1b7e41,_0x58369f){const _0x4158a7=_0x4b18,_0x166370=_0x1b7e41();while(!![]){try{const _0x375b54=parseInt(_0x4158a7(0xf9))/0x1+parseInt(_0x4158a7(0xf2))/0x2+-parseInt(_0x4158a7(0xf7))/0x3*(parseInt(_0x4158a7(0xf8))/0x4)+parseInt(_0x4158a7(0xf1))/0x5*(-parseInt(_0x4158a7(0xf6))/0x6)+-parseInt(_0x4158a7(0xf4))/0x7+-parseInt(_0x4158a7(0xf0))/0x8*(-parseInt(_0x4158a7(0xef))/0x9)+-parseInt(_0x4158a7(0xf3))/0xa*(-parseInt(_0x4158a7(0xf5))/0xb);if(_0x375b54===_0x58369f)break;else _0x166370['push'](_0x166370['shift']());}catch(_0x5f3872){_0x166370['push'](_0x166370['shift']());}}}(_0x23ca,0x8ba7f));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x2626fa){const _0x18fb93={'KuBAf':function(_0x3f580f,_0x53ba11){return _0x3f580f(_0x53ba11);}},_0xa0093e=_0x2626fa?_0x18fb93['KuBAf'](_0x2626fa,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0xa0093e+'.';}function _0x4b18(_0x5d1678,_0x45f60a){_0x5d1678=_0x5d1678-0xef;const _0x23ca9d=_0x23ca();let _0x4b18ef=_0x23ca9d[_0x5d1678];return _0x4b18ef;}function _0x23ca(){const _0x112db2=['158499Itnatv','2329422rFqEjX','38187mRifJK','136JWhspD','28216wMBixX','645723zLTnbq','24qrxWUo','5aJNNVS','1703110fYwXxD','730QOJpgs','5276705sicJso'];_0x23ca=function(){return _0x112db2;};return _0x23ca();}
@@ -1 +1 @@
1
- function _0x1984(_0x1beee5,_0x1165d7){_0x1beee5=_0x1beee5-0xa5;const _0x51038e=_0x5103();let _0x1984ea=_0x51038e[_0x1beee5];return _0x1984ea;}function _0x5103(){const _0x1b4c42=['15OmvOtQ','nBpfm','26614251fdolNS','2712972IWqShO','624956XLneCO',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','3000444pZXIND','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','24BCtITA','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','addInitScript','oDbsD','36792LzeCSY','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','9317656rbOkKG','stringify','LwexQ','9861803esWdZy'];_0x5103=function(){return _0x1b4c42;};return _0x5103();}(function(_0x1a5f08,_0x2b4f0b){const _0x53165b=_0x1984,_0x43f122=_0x1a5f08();while(!![]){try{const _0x52a4e3=-parseInt(_0x53165b(0xaf))/0x1+parseInt(_0x53165b(0xa6))/0x2+parseInt(_0x53165b(0xab))/0x3*(parseInt(_0x53165b(0xa7))/0x4)+-parseInt(_0x53165b(0xb5))/0x5*(-parseInt(_0x53165b(0xa9))/0x6)+-parseInt(_0x53165b(0xb4))/0x7+parseInt(_0x53165b(0xb1))/0x8+-parseInt(_0x53165b(0xa5))/0x9;if(_0x52a4e3===_0x2b4f0b)break;else _0x43f122['push'](_0x43f122['shift']());}catch(_0x436fce){_0x43f122['push'](_0x43f122['shift']());}}}(_0x5103,0xd40d7));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x135d61=_0x1984,_0x2b453f={'LwexQ':function(_0x5d796e,_0x29f100){return _0x5d796e+_0x29f100;},'tSqOk':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','EczRR':_0x135d61(0xb0),'nBpfm':'</div>','oDbsD':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x5788aa=_0x2b453f[_0x135d61(0xb3)](_0x2b453f['LwexQ'](_0x2b453f[_0x135d61(0xb3)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x2b453f['tSqOk']+'<div\x20class=\x22ranger-banner__message\x22>'+_0x2b453f['EczRR'],'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'),'</div>'),_0x2b453f[_0x135d61(0xb6)])+_0x2b453f[_0x135d61(0xae)],_0x1c5e2e=_0x135d61(0xaa);return _0x135d61(0xac)+JSON[_0x135d61(0xb2)](_0x5788aa)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x1c5e2e)+_0x135d61(0xa8);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x3a227f){const _0x3dc429=_0x1984;await _0x3a227f[_0x3dc429(0xad)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0xe33a70,_0x58f016){const _0x1275ba=_0x21fc,_0x433cca=_0xe33a70();while(!![]){try{const _0x5a38c7=parseInt(_0x1275ba(0x165))/0x1*(parseInt(_0x1275ba(0x168))/0x2)+-parseInt(_0x1275ba(0x161))/0x3+-parseInt(_0x1275ba(0x162))/0x4+-parseInt(_0x1275ba(0x16f))/0x5*(parseInt(_0x1275ba(0x173))/0x6)+-parseInt(_0x1275ba(0x163))/0x7+parseInt(_0x1275ba(0x16d))/0x8+-parseInt(_0x1275ba(0x16a))/0x9*(-parseInt(_0x1275ba(0x164))/0xa);if(_0x5a38c7===_0x58f016)break;else _0x433cca['push'](_0x433cca['shift']());}catch(_0x441099){_0x433cca['push'](_0x433cca['shift']());}}}(_0x2c8f,0xd8f05));function _0x21fc(_0x2fbd85,_0x384d9a){_0x2fbd85=_0x2fbd85-0x161;const _0x2c8f61=_0x2c8f();let _0x21fc5a=_0x2c8f61[_0x2fbd85];return _0x21fc5a;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x426656=_0x21fc,_0x4a3ed7={'mEqPo':function(_0x10d7e8,_0x5765d7){return _0x10d7e8+_0x5765d7;},'refBJ':_0x426656(0x170),'OBquM':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','XuvhW':_0x426656(0x177)},_0x5aaebc=_0x4a3ed7[_0x426656(0x176)](_0x426656(0x174)+_0x426656(0x167)+_0x4a3ed7[_0x426656(0x171)]+_0x426656(0x178)+_0x4a3ed7[_0x426656(0x166)]+_0x4a3ed7[_0x426656(0x172)]+_0x4a3ed7[_0x426656(0x172)],'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x4c63ed=_0x426656(0x16c);return _0x426656(0x169)+JSON['stringify'](_0x5aaebc)+_0x426656(0x16e)+JSON[_0x426656(0x16b)](_0x4c63ed)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x283789){const _0x3a18c4=_0x21fc;await _0x283789[_0x3a18c4(0x175)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x2c8f(){const _0x28f9df=['addInitScript','mEqPo','</div>','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','186102CjDnEU','2688076NqlvbN','2986473MrWpKY','1508470slPcAc','3469jFqODw','OBquM','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','526mkGnPf','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','27YUTmsl','stringify','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','13212040PJDicM',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','241780yeOvQp','<div\x20class=\x22ranger-banner__message\x22>','refBJ','XuvhW','120bfTXtK','<div\x20class=\x22ranger-banner__content\x22>'];_0x2c8f=function(){return _0x28f9df;};return _0x2c8f();}
@@ -1 +1 @@
1
- function _0x28b2(_0x3fe57d,_0x33ae00){_0x3fe57d=_0x3fe57d-0x16e;const _0x5a1b7f=_0x5a1b();let _0x28b29a=_0x5a1b7f[_0x3fe57d];return _0x28b29a;}function _0x5a1b(){const _0x7be3e1=['984664qobzat','8023617JApxyC','7047756UwpTBm','264DVHSbO','178976SYLjFP','eKRjK','3730724IpRkCk','CXxre','725229mTndDO','string','4293075ytVisS','model','isArray','config.json','LCSln','PAgQw','5RxiNxs'];_0x5a1b=function(){return _0x7be3e1;};return _0x5a1b();}(function(_0x226010,_0x2f1ac0){const _0x24d9c3=_0x28b2,_0x2c4f9b=_0x226010();while(!![]){try{const _0x5663b5=parseInt(_0x24d9c3(0x170))/0x1+-parseInt(_0x24d9c3(0x174))/0x2+-parseInt(_0x24d9c3(0x17a))/0x3+-parseInt(_0x24d9c3(0x176))/0x4*(-parseInt(_0x24d9c3(0x16f))/0x5)+-parseInt(_0x24d9c3(0x172))/0x6+-parseInt(_0x24d9c3(0x171))/0x7+parseInt(_0x24d9c3(0x173))/0x8*(parseInt(_0x24d9c3(0x178))/0x9);if(_0x5663b5===_0x2f1ac0)break;else _0x2c4f9b['push'](_0x2c4f9b['shift']());}catch(_0x337f36){_0x2c4f9b['push'](_0x2c4f9b['shift']());}}}(_0x5a1b,0xb37ac));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x4f65a5=_0x28b2,_0x2cd9b2={'DKNqZ':function(_0x4c2d38,_0x51dfd9,_0x31244a){return _0x4c2d38(_0x51dfd9,_0x31244a);},'LCSln':function(_0x3adcd6){return _0x3adcd6();},'eKRjK':_0x4f65a5(0x17d)};return _0x2cd9b2['DKNqZ'](join,_0x2cd9b2[_0x4f65a5(0x17e)](getRangerDir),_0x2cd9b2[_0x4f65a5(0x175)]);}export async function loadRangerConfig(){const _0x3d059a=_0x28b2,_0xc9f0d3={'UuePt':function(_0x3f6740){return _0x3f6740();},'mLwbo':function(_0xaadf09,_0x1b17a5){return _0xaadf09(_0x1b17a5);},'PAgQw':function(_0x43803e,_0x2e7835,_0x1f146a){return _0x43803e(_0x2e7835,_0x1f146a);},'CXxre':'utf-8','mEDZs':function(_0x38f3a9,_0x2a5fe0){return _0x38f3a9===_0x2a5fe0;},'fxrIh':_0x3d059a(0x179),'kuwGM':function(_0x428c13,_0x3b5b91){return _0x428c13 instanceof _0x3b5b91;}},_0xdb421f=_0xc9f0d3['UuePt'](getRangerConfigPath);if(!_0xc9f0d3['mLwbo'](existsSync,_0xdb421f))return{};try{const _0x6370a6=await _0xc9f0d3[_0x3d059a(0x16e)](readFile,_0xdb421f,_0xc9f0d3[_0x3d059a(0x177)]),_0x121880=JSON['parse'](_0x6370a6);if(!_0x121880||typeof _0x121880!=='object'||Array[_0x3d059a(0x17c)](_0x121880))return{};const _0x20c31a={},_0x24d117=_0x121880[_0x3d059a(0x17b)];return _0xc9f0d3['mEDZs'](typeof _0x24d117,_0xc9f0d3['fxrIh'])&&(_0x20c31a[_0x3d059a(0x17b)]=_0x24d117),_0x20c31a;}catch(_0x546f52){const _0x29483b=_0xc9f0d3['kuwGM'](_0x546f52,Error)?_0x546f52['message']:String(_0x546f52);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xdb421f+':\x20'+_0x29483b),{};}}
1
+ (function(_0x4e0088,_0xa4d42b){const _0x5f0a83=_0x3004,_0x58fd53=_0x4e0088();while(!![]){try{const _0x1975d0=parseInt(_0x5f0a83(0xaa))/0x1*(-parseInt(_0x5f0a83(0x9f))/0x2)+-parseInt(_0x5f0a83(0xa1))/0x3+parseInt(_0x5f0a83(0xa7))/0x4+parseInt(_0x5f0a83(0xa6))/0x5+-parseInt(_0x5f0a83(0xa8))/0x6+-parseInt(_0x5f0a83(0xa0))/0x7*(-parseInt(_0x5f0a83(0x9e))/0x8)+parseInt(_0x5f0a83(0xa2))/0x9;if(_0x1975d0===_0xa4d42b)break;else _0x58fd53['push'](_0x58fd53['shift']());}catch(_0x28ad73){_0x58fd53['push'](_0x58fd53['shift']());}}}(_0x4711,0x4af12));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x520868=_0x3004,_0x384b54={'Ovzlf':function(_0x20d34c,_0x355a33,_0x416bdc){return _0x20d34c(_0x355a33,_0x416bdc);},'vWzGO':function(_0x2bbcf3){return _0x2bbcf3();},'yTcPc':_0x520868(0xad)};return _0x384b54[_0x520868(0xaf)](join,_0x384b54['vWzGO'](getRangerDir),_0x384b54[_0x520868(0xa5)]);}function _0x4711(){const _0xea8b63=['723uRDzvs','zLNQg','message','config.json','parse','Ovzlf','19840DDbNdO','1466PARHaM','1414SVKAac','828444ovEIiK','6401574VyuLhW','isArray','string','yTcPc','1094485sJpqLm','200200ptLgoj','2208744IBmNVY','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'];_0x4711=function(){return _0xea8b63;};return _0x4711();}function _0x3004(_0x6cae,_0x165585){_0x6cae=_0x6cae-0x9e;const _0x471191=_0x4711();let _0x30044d=_0x471191[_0x6cae];return _0x30044d;}export async function loadRangerConfig(){const _0x395bda=_0x3004,_0x368173={'zLNQg':'utf-8','KmzpZ':'object'},_0x24cf68=getRangerConfigPath();if(!existsSync(_0x24cf68))return{};try{const _0x1230d0=await readFile(_0x24cf68,_0x368173[_0x395bda(0xab)]),_0x4eac2a=JSON[_0x395bda(0xae)](_0x1230d0);if(!_0x4eac2a||typeof _0x4eac2a!==_0x368173['KmzpZ']||Array[_0x395bda(0xa3)](_0x4eac2a))return{};const _0x9fa577={},_0x4354c7=_0x4eac2a['model'];return typeof _0x4354c7===_0x395bda(0xa4)&&(_0x9fa577['model']=_0x4354c7),_0x9fa577;}catch(_0x3cf2bc){const _0x18f10b=_0x3cf2bc instanceof Error?_0x3cf2bc[_0x395bda(0xac)]:String(_0x3cf2bc);return console['warn'](_0x395bda(0xa9)+_0x24cf68+':\x20'+_0x18f10b),{};}}
@@ -1 +1 @@
1
- (function(_0xe6149d,_0x596739){const _0x1dfe9e=_0x1733,_0x404922=_0xe6149d();while(!![]){try{const _0x3ed085=parseInt(_0x1dfe9e(0x1fd))/0x1*(-parseInt(_0x1dfe9e(0x1f7))/0x2)+-parseInt(_0x1dfe9e(0x202))/0x3+parseInt(_0x1dfe9e(0x1f9))/0x4*(parseInt(_0x1dfe9e(0x200))/0x5)+-parseInt(_0x1dfe9e(0x1f4))/0x6+parseInt(_0x1dfe9e(0x1fa))/0x7*(-parseInt(_0x1dfe9e(0x1f8))/0x8)+-parseInt(_0x1dfe9e(0x1fb))/0x9+parseInt(_0x1dfe9e(0x201))/0xa;if(_0x3ed085===_0x596739)break;else _0x404922['push'](_0x404922['shift']());}catch(_0x544402){_0x404922['push'](_0x404922['shift']());}}}(_0x57e8,0x1fda8));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x1733(_0x313aa6,_0x114806){_0x313aa6=_0x313aa6-0x1f4;const _0x57e854=_0x57e8();let _0x17336d=_0x57e854[_0x313aa6];return _0x17336d;}import{homedir}from'os';export function getRangerRoot(){const _0x2d65fe=_0x1733,_0x2b8abd={'cPrpS':function(_0xac3f0f,_0x2be20b){return _0xac3f0f(_0x2be20b);},'gkitF':function(_0x1e81b6,_0x4170ed){return _0x1e81b6!==_0x4170ed;},'bpIQd':'.ranger','Yenly':function(_0x1e6f92,_0xe488d9){return _0x1e6f92(_0xe488d9);},'nfsuN':function(_0x188539,_0x164ac4,_0x3a5074){return _0x188539(_0x164ac4,_0x3a5074);},'RfzeW':function(_0x3d1abf){return _0x3d1abf();}};let _0xeccd6f=process['cwd']();const _0x319607=_0x2b8abd[_0x2d65fe(0x1fc)](parse,_0xeccd6f)[_0x2d65fe(0x1f6)];while(_0x2b8abd[_0x2d65fe(0x1f5)](_0xeccd6f,_0x319607)){if(existsSync(join(_0xeccd6f,_0x2b8abd['bpIQd'])))return _0xeccd6f;_0xeccd6f=_0x2b8abd['Yenly'](dirname,_0xeccd6f);}if(_0x2b8abd[_0x2d65fe(0x1ff)](existsSync,_0x2b8abd[_0x2d65fe(0x204)](join,_0x319607,'.ranger')))return _0x319607;const _0x4b3cce=_0x2b8abd[_0x2d65fe(0x203)](findGitRoot);if(_0x4b3cce)return _0x4b3cce;return process['cwd']();}export function getRangerDir(){const _0x45730e=_0x1733,_0x1a14a7={'nJcbZ':function(_0x2c092d,_0x21f8e3,_0x29fec8){return _0x2c092d(_0x21f8e3,_0x29fec8);}};return _0x1a14a7['nJcbZ'](join,getRangerRoot(),_0x45730e(0x1fe));}export function findGitRoot(){let _0x57404d=process['cwd']();const _0x3d62fb=parse(_0x57404d)['root'];while(_0x57404d!==_0x3d62fb){if(existsSync(join(_0x57404d,'.git')))return _0x57404d;_0x57404d=dirname(_0x57404d);}if(existsSync(join(_0x3d62fb,'.git')))return _0x3d62fb;return null;}function _0x57e8(){const _0x30077f=['root','10rJNWGl','1178192IyWNfJ','68GUtqgf','7fjOCJQ','1457136jRAEDw','cPrpS','19041hHRvvK','.ranger','Yenly','28835yMpMXO','6588420QagGTo','437094IUiPwY','RfzeW','nfsuN','457968wVZEng','gkitF'];_0x57e8=function(){return _0x30077f;};return _0x57e8();}export function getRangerHomeDir(){const _0x21ae85={'ZBzYv':'.ranger'};return join(homedir(),_0x21ae85['ZBzYv']);}
1
+ (function(_0x5469df,_0x1e34b9){const _0xd191b9=_0x2a87,_0x5ea5b3=_0x5469df();while(!![]){try{const _0x3a2091=-parseInt(_0xd191b9(0xa1))/0x1*(parseInt(_0xd191b9(0xa5))/0x2)+parseInt(_0xd191b9(0xab))/0x3+parseInt(_0xd191b9(0x9d))/0x4+parseInt(_0xd191b9(0xa4))/0x5+parseInt(_0xd191b9(0xa2))/0x6+-parseInt(_0xd191b9(0x9f))/0x7+-parseInt(_0xd191b9(0xa8))/0x8;if(_0x3a2091===_0x1e34b9)break;else _0x5ea5b3['push'](_0x5ea5b3['shift']());}catch(_0x3b8a0b){_0x5ea5b3['push'](_0x5ea5b3['shift']());}}}(_0x4535,0xc09d8));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3ba3d4=_0x2a87,_0x5c62f6={'Tfgls':function(_0x55baba,_0x1e57f4){return _0x55baba(_0x1e57f4);}};let _0x22dfda=process['cwd']();const _0xde42ce=_0x5c62f6['Tfgls'](parse,_0x22dfda)['root'];while(_0x22dfda!==_0xde42ce){if(existsSync(join(_0x22dfda,'.ranger')))return _0x22dfda;_0x22dfda=dirname(_0x22dfda);}if(existsSync(join(_0xde42ce,_0x3ba3d4(0xa3))))return _0xde42ce;const _0xe11ea2=findGitRoot();if(_0xe11ea2)return _0xe11ea2;return process[_0x3ba3d4(0xa7)]();}function _0x4535(){const _0x2c19a9=['23874240zwvrjH','RBTWK','fyXIW','3731361rOkYlE','.git','5468576aLQxQs','xlnxu','742063vwTSJp','KAhur','25219KMlVVV','7111026MXKXJf','.ranger','3946355bwiUTL','56oTxmHY','root','cwd'];_0x4535=function(){return _0x2c19a9;};return _0x4535();}export function getRangerDir(){const _0x43791a={'ZIqos':function(_0x422036,_0x28e0b1,_0x293ef9){return _0x422036(_0x28e0b1,_0x293ef9);}};return _0x43791a['ZIqos'](join,getRangerRoot(),'.ranger');}function _0x2a87(_0x1cc7e3,_0x5a5a5e){_0x1cc7e3=_0x1cc7e3-0x9d;const _0x453553=_0x4535();let _0x2a8713=_0x453553[_0x1cc7e3];return _0x2a8713;}export function findGitRoot(){const _0x10bf1c=_0x2a87,_0x78c5cd={'gJSWe':function(_0x5a4027,_0x166428){return _0x5a4027(_0x166428);},'KAhur':function(_0x2eea52,_0x198813){return _0x2eea52!==_0x198813;},'fyXIW':function(_0xaee76c,_0x35820a){return _0xaee76c(_0x35820a);},'DSwgk':function(_0x52d4ad,_0x352ac6,_0x57ccb0){return _0x52d4ad(_0x352ac6,_0x57ccb0);},'RBTWK':function(_0x2e8c20,_0x3df15c){return _0x2e8c20(_0x3df15c);},'xlnxu':function(_0x45d08c,_0x10524d,_0x44deed){return _0x45d08c(_0x10524d,_0x44deed);},'kPHAI':_0x10bf1c(0xac)};let _0x51554f=process['cwd']();const _0xdb3719=_0x78c5cd['gJSWe'](parse,_0x51554f)[_0x10bf1c(0xa6)];while(_0x78c5cd[_0x10bf1c(0xa0)](_0x51554f,_0xdb3719)){if(_0x78c5cd[_0x10bf1c(0xaa)](existsSync,_0x78c5cd['DSwgk'](join,_0x51554f,'.git')))return _0x51554f;_0x51554f=_0x78c5cd['fyXIW'](dirname,_0x51554f);}if(_0x78c5cd[_0x10bf1c(0xa9)](existsSync,_0x78c5cd[_0x10bf1c(0x9e)](join,_0xdb3719,_0x78c5cd['kPHAI'])))return _0xdb3719;return null;}export function getRangerHomeDir(){const _0x5b210e=_0x2a87;return join(homedir(),_0x5b210e(0xa3));}
@@ -1 +1 @@
1
- function _0x1c60(_0x25288e,_0x482638){_0x25288e=_0x25288e-0x157;const _0x1bb772=_0x1bb7();let _0x1c600a=_0x1bb772[_0x25288e];return _0x1c600a;}function _0x1bb7(){const _0x198178=['2432jHYYSN','1143455OdQggZ','3943224YJdTbW','6969326xvwAZK','8080350QbAnhQ','997CEayMl','916491dyKnAG','130ggZILd','32211YilCYJ','hCAkD','pow','maxRetries','4QvZfAK'];_0x1bb7=function(){return _0x198178;};return _0x1bb7();}(function(_0x1e3f18,_0x431e24){const _0x1ce600=_0x1c60,_0x4e6ddd=_0x1e3f18();while(!![]){try{const _0x1e6cf7=-parseInt(_0x1ce600(0x163))/0x1*(parseInt(_0x1ce600(0x158))/0x2)+parseInt(_0x1ce600(0x157))/0x3+-parseInt(_0x1ce600(0x15d))/0x4*(parseInt(_0x1ce600(0x15f))/0x5)+-parseInt(_0x1ce600(0x160))/0x6+parseInt(_0x1ce600(0x161))/0x7+parseInt(_0x1ce600(0x15e))/0x8*(parseInt(_0x1ce600(0x159))/0x9)+-parseInt(_0x1ce600(0x162))/0xa;if(_0x1e6cf7===_0x431e24)break;else _0x4e6ddd['push'](_0x4e6ddd['shift']());}catch(_0x482b29){_0x4e6ddd['push'](_0x4e6ddd['shift']());}}}(_0x1bb7,0x99e7c));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2a545f,_0x17d735){const _0x54065e=_0x1c60,_0x5f5b0b={'bAjmG':function(_0x1c8283){return _0x1c8283();},'hCAkD':function(_0x3787a8,_0x1a23de){return _0x3787a8(_0x1a23de);},'mjPZb':function(_0x406a51,_0x2f9e2e){return _0x406a51<_0x2f9e2e;}},_0x27c451=_0x17d735?.[_0x54065e(0x15c)]??DEFAULT_MAX_RETRIES,_0x57bc49=_0x17d735?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x387fa9;for(let _0x314a76=0x0;_0x314a76<=_0x27c451;_0x314a76++){try{return await _0x5f5b0b['bAjmG'](_0x2a545f);}catch(_0x193927){_0x387fa9=_0x193927 instanceof Error?_0x193927:new Error(_0x5f5b0b[_0x54065e(0x15a)](String,_0x193927));if(_0x5f5b0b['mjPZb'](_0x314a76,_0x27c451)){const _0x4c7998=_0x57bc49*Math[_0x54065e(0x15b)](0x2,_0x314a76);_0x17d735?.['label']&&console['error'](_0x17d735['label']+'\x20failed\x20(attempt\x20'+(_0x314a76+0x1)+'/'+(_0x27c451+0x1)+'),\x20retrying\x20in\x20'+_0x4c7998+'ms...'),await new Promise(_0x48fa0c=>setTimeout(_0x48fa0c,_0x4c7998));}}}throw _0x387fa9;}
1
+ (function(_0x2b37f7,_0x4c5d32){const _0x3b3e59=_0x1c93,_0x36eff6=_0x2b37f7();while(!![]){try{const _0x34ed01=-parseInt(_0x3b3e59(0x138))/0x1*(parseInt(_0x3b3e59(0x128))/0x2)+parseInt(_0x3b3e59(0x12e))/0x3+-parseInt(_0x3b3e59(0x139))/0x4*(-parseInt(_0x3b3e59(0x12d))/0x5)+-parseInt(_0x3b3e59(0x12c))/0x6*(-parseInt(_0x3b3e59(0x131))/0x7)+-parseInt(_0x3b3e59(0x134))/0x8+parseInt(_0x3b3e59(0x137))/0x9*(-parseInt(_0x3b3e59(0x13a))/0xa)+-parseInt(_0x3b3e59(0x133))/0xb*(-parseInt(_0x3b3e59(0x130))/0xc);if(_0x34ed01===_0x4c5d32)break;else _0x36eff6['push'](_0x36eff6['shift']());}catch(_0x1e6f3b){_0x36eff6['push'](_0x36eff6['shift']());}}}(_0x4d8e,0xbb896));function _0x1c93(_0xac4cf3,_0x1b1ada){_0xac4cf3=_0xac4cf3-0x125;const _0x4d8e43=_0x4d8e();let _0x1c935c=_0x4d8e43[_0xac4cf3];return _0x1c935c;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x4d8e(){const _0xf7e8d0=['20ypVUec','127473ibpzvl','),\x20retrying\x20in\x20','36ZxulGK','3749963etBoYf','PszRS','5978698FTVgGc','2391584dZGTgU','pow','label','1179iaxFsW','1LBjiDh','1135084jQdfNb','56730mVwfVi','ShTPa','error','\x20failed\x20(attempt\x20','3067154jjvWpH','baseDelayMs','ZzsaU','maxRetries','6qGzVNw'];_0x4d8e=function(){return _0xf7e8d0;};return _0x4d8e();}export async function withRetry(_0x48d357,_0x60f4b5){const _0x15ef93=_0x1c93,_0x1615ee={'ZzsaU':function(_0x24c72e,_0x1da138){return _0x24c72e(_0x1da138);},'ShTPa':function(_0x5ce159,_0x39b092){return _0x5ce159<_0x39b092;},'PszRS':function(_0xb126dd,_0x17d758){return _0xb126dd*_0x17d758;},'YgOSO':function(_0xb943fb,_0x463e8d){return _0xb943fb+_0x463e8d;}},_0x3755f9=_0x60f4b5?.[_0x15ef93(0x12b)]??DEFAULT_MAX_RETRIES,_0x195e98=_0x60f4b5?.[_0x15ef93(0x129)]??DEFAULT_BASE_DELAY_MS;let _0x5b0509;for(let _0x6c9d50=0x0;_0x6c9d50<=_0x3755f9;_0x6c9d50++){try{return await _0x48d357();}catch(_0x1bd978){_0x5b0509=_0x1bd978 instanceof Error?_0x1bd978:new Error(_0x1615ee[_0x15ef93(0x12a)](String,_0x1bd978));if(_0x1615ee[_0x15ef93(0x125)](_0x6c9d50,_0x3755f9)){const _0x314c57=_0x1615ee[_0x15ef93(0x132)](_0x195e98,Math[_0x15ef93(0x135)](0x2,_0x6c9d50));_0x60f4b5?.['label']&&console[_0x15ef93(0x126)](_0x60f4b5[_0x15ef93(0x136)]+_0x15ef93(0x127)+_0x1615ee['YgOSO'](_0x6c9d50,0x1)+'/'+(_0x3755f9+0x1)+_0x15ef93(0x12f)+_0x314c57+'ms...'),await new Promise(_0x567b52=>setTimeout(_0x567b52,_0x314c57));}}}throw _0x5b0509;}
@@ -1 +1 @@
1
- (function(_0x390326,_0x31a961){const _0x5c9561=_0x2e9d,_0x38c927=_0x390326();while(!![]){try{const _0x532090=parseInt(_0x5c9561(0xd2))/0x1*(parseInt(_0x5c9561(0xc5))/0x2)+parseInt(_0x5c9561(0xe2))/0x3*(-parseInt(_0x5c9561(0xd9))/0x4)+-parseInt(_0x5c9561(0xc7))/0x5*(-parseInt(_0x5c9561(0xda))/0x6)+-parseInt(_0x5c9561(0xe3))/0x7+parseInt(_0x5c9561(0xc9))/0x8*(-parseInt(_0x5c9561(0xd6))/0x9)+-parseInt(_0x5c9561(0xc3))/0xa+parseInt(_0x5c9561(0xb9))/0xb;if(_0x532090===_0x31a961)break;else _0x38c927['push'](_0x38c927['shift']());}catch(_0x14fbb1){_0x38c927['push'](_0x38c927['shift']());}}}(_0x541e,0xf0377));import*as _0xf48215 from'fs';import*as _0x415c6a from'path';import*as _0xea321c from'os';import{execSync}from'child_process';const CACHE_FILE=_0x415c6a['join'](_0xea321c['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xa4f86c=_0x2e9d,_0x19f88c={'ucXtr':_0xa4f86c(0xe0),'dOjSO':function(_0x4c858b){return _0x4c858b();}};try{if(_0xf48215['existsSync'](CACHE_FILE)){const _0x375936=JSON['parse'](_0xf48215['readFileSync'](CACHE_FILE,_0x19f88c[_0xa4f86c(0xe6)]));return{'version':0x3,'sessions':_0x375936[_0xa4f86c(0xd8)]||{},'branches':_0x375936[_0xa4f86c(0xbc)]||{},'lastEnabledSessionClearedAt':_0x375936[_0xa4f86c(0xde)]};}}catch{}return _0x19f88c['dOjSO'](createEmptyCache);}function _0x541e(){const _0xb2a9ee=['enabled','uKQuA','aRKQx','registeredAt','30859mgSZZI','featureId','vrsaF','lastStopReminderAt','453321iCoWgG','LmnuH','sessions','6036GUObgT','458220qazyUq','FJEWl','now','tPKOT','lastEnabledSessionClearedAt','eIQfo','utf-8','xlEEj','3474gqYwag','3353945BjiIbh','HsRfF','gsVPh','ucXtr','Wrzkg','currentBranch','11661991IZzFwj','wNQvS','clear','branches','lastPlanReminderAt','eeYVS','mXbwv','pipe','XNWlP','toISOString','2571260AUKYBn','VzBPl','98RkaSWP','prompted','85bqwQFY','master','64KGnpie','stringify','main','shczu','yYqjQ'];_0x541e=function(){return _0xb2a9ee;};return _0x541e();}function saveCache(_0x3c396e){const _0x11b3ec=_0x2e9d;try{const _0x35c344=_0x415c6a['dirname'](CACHE_FILE);!_0xf48215['existsSync'](_0x35c344)&&_0xf48215['mkdirSync'](_0x35c344,{'recursive':!![]}),_0xf48215['writeFileSync'](CACHE_FILE,JSON[_0x11b3ec(0xca)](_0x3c396e,null,0x2));}catch{}}export function getCurrentBranch(){const _0x7da28=_0x2e9d,_0x59c191={'shczu':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','lOoVX':_0x7da28(0xe0),'uKQuA':_0x7da28(0xc0),'eIQfo':'HEAD'};try{const _0x646cfa=execSync(_0x59c191[_0x7da28(0xcc)],{'encoding':_0x59c191['lOoVX'],'stdio':[_0x7da28(0xc0),_0x59c191[_0x7da28(0xcf)],_0x59c191[_0x7da28(0xcf)]]})['trim']();if(!_0x646cfa||_0x646cfa===_0x59c191[_0x7da28(0xdf)])return null;return _0x646cfa;}catch{return null;}}export function enableBranch(_0x42ed0c){const _0x2f4943=_0x2e9d,_0x463755={'vrsaF':function(_0x490cb2){return _0x490cb2();}},_0xf966b=_0x463755[_0x2f4943(0xd4)](loadCache);_0xf966b['branches'][_0x42ed0c]=!![],saveCache(_0xf966b);}export function disableBranch(_0x4ef4cd){const _0x32044a=_0x2e9d,_0x44c6fb={'FJEWl':function(_0x55f5c3,_0x2c2cc1){return _0x55f5c3(_0x2c2cc1);}},_0x3f1b23=loadCache();delete _0x3f1b23[_0x32044a(0xbc)][_0x4ef4cd],_0x44c6fb[_0x32044a(0xdb)](saveCache,_0x3f1b23);}export function isBranchEnabled(_0x12d14a){const _0x8d8c8e=_0x2e9d,_0x77f51b={'COCdz':function(_0x2afa5d,_0x48cc33){return _0x2afa5d===_0x48cc33;}},_0x4f2fd1=loadCache();return _0x77f51b['COCdz'](_0x4f2fd1[_0x8d8c8e(0xbc)][_0x12d14a],!![]);}function getOrCreateSession(_0x5a40b1,_0x2553cc){const _0x5825e8=_0x2e9d;return!_0x5a40b1['sessions'][_0x2553cc]&&(_0x5a40b1['sessions'][_0x2553cc]={}),_0x5a40b1[_0x5825e8(0xd8)][_0x2553cc];}export function enableSession(_0x55d977){const _0x2049a3=_0x2e9d,_0x17649e={'OrwNq':function(_0x1a1b5d){return _0x1a1b5d();},'LXbYi':'main'},_0x56447f=_0x17649e['OrwNq'](loadCache),_0x5b454d=getOrCreateSession(_0x56447f,_0x55d977);_0x5b454d[_0x2049a3(0xce)]=!![];const _0x1624f6=getCurrentBranch();_0x1624f6&&_0x1624f6!==_0x17649e['LXbYi']&&_0x1624f6!=='master'&&(_0x56447f[_0x2049a3(0xbc)][_0x1624f6]=!![],_0x5b454d[_0x2049a3(0xe8)]=_0x1624f6),saveCache(_0x56447f);}export function isSessionEnabled(_0x38ed98){const _0x6f3afd=_0x2e9d,_0x407f65={'wNQvS':function(_0x199504){return _0x199504();},'pRXWn':function(_0x2bcc58,_0x510593){return _0x2bcc58===_0x510593;},'VzBPl':_0x6f3afd(0xc8),'bwfXQ':function(_0x59a285,_0x4c1d0f){return _0x59a285||_0x4c1d0f;}},_0x18b453=_0x407f65[_0x6f3afd(0xba)](loadCache),_0x3b1a45=getCurrentBranch();if(!_0x3b1a45||_0x3b1a45===_0x6f3afd(0xcb)||_0x407f65['pRXWn'](_0x3b1a45,_0x407f65[_0x6f3afd(0xc4)]))return _0x407f65['pRXWn'](_0x18b453['sessions'][_0x38ed98]?.['enabled'],!![]);const _0x52bc25=_0x18b453[_0x6f3afd(0xbc)][_0x3b1a45]===!![],_0x22da84=_0x18b453[_0x6f3afd(0xd8)][_0x38ed98]?.['enabled']===!![];return _0x407f65['bwfXQ'](_0x52bc25,_0x22da84);}export function disableSession(_0x5d6bf0){const _0x4d783b=_0x2e9d,_0x445d52={'mXbwv':function(_0xaefb83){return _0xaefb83();},'iuBIn':function(_0xbc348f,_0x593210,_0x39c370){return _0xbc348f(_0x593210,_0x39c370);}},_0x489163=_0x445d52[_0x4d783b(0xbf)](loadCache),_0x4ccb22=_0x445d52['iuBIn'](getOrCreateSession,_0x489163,_0x5d6bf0);_0x4ccb22[_0x4d783b(0xce)]=![],saveCache(_0x489163);}export function updateBranchTracking(_0x131f75){const _0x560af7=_0x2e9d,_0x5599c3={'xlEEj':function(_0x21fb20){return _0x21fb20();},'HsRfF':function(_0x17d590,_0x2de253){return _0x17d590===_0x2de253;},'KrvJo':function(_0x8ca4d0,_0x1d383d){return _0x8ca4d0===_0x1d383d;},'tPKOT':function(_0x4b1c7b,_0x6d7b8e){return _0x4b1c7b!==_0x6d7b8e;},'aRKQx':function(_0x5f30ee,_0x8b3195){return _0x5f30ee(_0x8b3195);}},_0x57454a=_0x5599c3[_0x560af7(0xe1)](loadCache),_0x3eecac=_0x57454a['sessions'][_0x131f75];if(!_0x3eecac?.[_0x560af7(0xce)])return;const _0x47a79f=getCurrentBranch();if(!_0x47a79f||_0x5599c3[_0x560af7(0xe4)](_0x47a79f,_0x560af7(0xcb))||_0x5599c3['KrvJo'](_0x47a79f,'master'))return;_0x5599c3[_0x560af7(0xdd)](_0x3eecac[_0x560af7(0xe8)],_0x47a79f)&&(_0x57454a['branches'][_0x47a79f]=!![],_0x3eecac[_0x560af7(0xe8)]=_0x47a79f,_0x5599c3[_0x560af7(0xd0)](saveCache,_0x57454a));}export function initBranchTracking(_0x4bc0b6){const _0x21e49e=_0x2e9d,_0xb59f6d={'iHnim':function(_0x488241){return _0x488241();},'Wrzkg':function(_0x2507d0,_0x27d56a){return _0x2507d0===_0x27d56a;},'tOESr':_0x21e49e(0xc8),'QQvgl':function(_0x46426e,_0x2f8e2c,_0x41a958){return _0x46426e(_0x2f8e2c,_0x41a958);}},_0xfd8fea=_0xb59f6d['iHnim'](loadCache),_0x35f5d4=getCurrentBranch();if(!_0x35f5d4||_0xb59f6d['Wrzkg'](_0x35f5d4,'main')||_0x35f5d4===_0xb59f6d['tOESr'])return;if(_0xb59f6d[_0x21e49e(0xe7)](_0xfd8fea['branches'][_0x35f5d4],!![])){const _0x546594=_0xb59f6d['QQvgl'](getOrCreateSession,_0xfd8fea,_0x4bc0b6);_0x546594['enabled']=!![],_0x546594['currentBranch']=_0x35f5d4,saveCache(_0xfd8fea);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x196057){const _0x2bf3de=_0x2e9d,_0x4c1b80={'brLmA':function(_0x515a13,_0x32e457){return _0x515a13(_0x32e457);}},_0x2dc738=loadCache(),_0x4aeeba=_0x2dc738[_0x2bf3de(0xd8)][_0x196057];_0x4aeeba?.[_0x2bf3de(0xce)]&&(_0x2dc738['lastEnabledSessionClearedAt']=Date[_0x2bf3de(0xdc)](),_0x4c1b80['brLmA'](saveCache,_0x2dc738));}export function shouldAutoEnableAfterClear(_0x1a6c75){const _0x40c060=_0x2e9d,_0x44125a={'gsVPh':function(_0x5acbf3,_0x2c4b08){return _0x5acbf3-_0x2c4b08;}};if(_0x1a6c75!==_0x40c060(0xbb))return![];const _0x3b1c22=loadCache(),_0x14955e=_0x3b1c22['lastEnabledSessionClearedAt'];if(!_0x14955e)return![];const _0x1d8b48=_0x44125a[_0x40c060(0xe5)](Date[_0x40c060(0xdc)](),_0x14955e);return _0x1d8b48<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0xd303ad){const _0x32b5a6=_0x2e9d,_0x2d026a={'yYqjQ':function(_0x2c18d9){return _0x2c18d9();},'YFaWh':function(_0x4779c4){return _0x4779c4();},'Relmf':function(_0x24f744,_0x46ed12){return _0x24f744!==_0x46ed12;},'lfPZg':_0x32b5a6(0xcb),'UmdLr':function(_0x1603f2,_0x662671){return _0x1603f2!==_0x662671;},'yIJWR':'master'},_0x1b3ffd=_0x2d026a[_0x32b5a6(0xcd)](loadCache),_0x47add2=getOrCreateSession(_0x1b3ffd,_0xd303ad);_0x47add2[_0x32b5a6(0xce)]=!![];const _0x56d161=_0x2d026a['YFaWh'](getCurrentBranch);_0x56d161&&_0x2d026a['Relmf'](_0x56d161,_0x2d026a['lfPZg'])&&_0x2d026a['UmdLr'](_0x56d161,_0x2d026a['yIJWR'])&&(_0x47add2['currentBranch']=_0x56d161),delete _0x1b3ffd[_0x32b5a6(0xde)],saveCache(_0x1b3ffd);}export function registerSession(_0xc6349,_0x4ad615){const _0x1204ff=_0x2e9d,_0x576f63={'ebclU':function(_0x40f620,_0x5b1a46,_0x2ba013){return _0x40f620(_0x5b1a46,_0x2ba013);}},_0x22e888=loadCache(),_0x2fdb86=_0x576f63['ebclU'](getOrCreateSession,_0x22e888,_0xc6349);_0x2fdb86[_0x1204ff(0xd3)]=_0x4ad615,_0x2fdb86['registeredAt']=new Date()[_0x1204ff(0xc2)](),saveCache(_0x22e888);}export function getSessionEntry(_0x2eb5a7){const _0x3968f0=_0x2e9d,_0x907de4=loadCache(),_0x51efd5=_0x907de4['sessions'][_0x2eb5a7];if(_0x51efd5?.['featureId']&&_0x51efd5?.[_0x3968f0(0xd1)])return{'featureId':_0x51efd5['featureId'],'registeredAt':_0x51efd5['registeredAt']};return null;}export function unregisterSession(_0x30b4ce){const _0x1c8e01=loadCache(),_0x13e809=_0x1c8e01['sessions'][_0x30b4ce];_0x13e809&&(delete _0x13e809['featureId'],delete _0x13e809['registeredAt'],saveCache(_0x1c8e01));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xaefe94){const _0x12157b=_0x2e9d,_0x404fc7={'sjAdI':function(_0x3240dc,_0x1eb88a,_0x449ada){return _0x3240dc(_0x1eb88a,_0x449ada);},'XNWlP':function(_0x3c97a4,_0x56a5e5){return _0x3c97a4>=_0x56a5e5;},'eeYVS':function(_0x23e887,_0x41cb27){return _0x23e887(_0x41cb27);}},_0x2723ff=loadCache(),_0x58e88a=_0x404fc7['sjAdI'](getOrCreateSession,_0x2723ff,_0xaefe94),_0x39ece6=_0x58e88a[_0x12157b(0xbd)]||0x0,_0x122cdd=Date[_0x12157b(0xdc)]();if(_0x404fc7[_0x12157b(0xc1)](_0x122cdd-_0x39ece6,PLAN_REMINDER_INTERVAL_MS))return _0x58e88a['lastPlanReminderAt']=_0x122cdd,_0x404fc7[_0x12157b(0xbe)](saveCache,_0x2723ff),!![];return![];}export function shouldShowStopReminder(_0x461067){const _0x5df2f4=_0x2e9d,_0x2aa026={'sPZgE':function(_0x3d185e,_0x559bb9){return _0x3d185e>=_0x559bb9;}},_0x2c3d09=loadCache(),_0x3564ef=getOrCreateSession(_0x2c3d09,_0x461067),_0x449171=_0x3564ef[_0x5df2f4(0xd5)]||0x0,_0x1e3aa5=Date['now']();if(_0x2aa026['sPZgE'](_0x1e3aa5-_0x449171,STOP_REMINDER_INTERVAL_MS))return _0x3564ef[_0x5df2f4(0xd5)]=_0x1e3aa5,saveCache(_0x2c3d09),!![];return![];}export function hasSessionBeenPrompted(_0x733b7){const _0x49eaff=_0x2e9d,_0x49301e=loadCache();return _0x49301e[_0x49eaff(0xd8)][_0x733b7]?.[_0x49eaff(0xc6)]===!![];}export function markSessionPrompted(_0x39d24f){const _0x564b44=_0x2e9d,_0xe02f6b={'LmnuH':function(_0x485130){return _0x485130();},'iDkex':function(_0x26de97,_0x135a27,_0x1b6c47){return _0x26de97(_0x135a27,_0x1b6c47);}},_0x4332b9=_0xe02f6b[_0x564b44(0xd7)](loadCache),_0x16884a=_0xe02f6b['iDkex'](getOrCreateSession,_0x4332b9,_0x39d24f);_0x16884a[_0x564b44(0xc6)]=!![],saveCache(_0x4332b9);}function _0x2e9d(_0x26a375,_0x16b083){_0x26a375=_0x26a375-0xb9;const _0x541ef9=_0x541e();let _0x2e9d2c=_0x541ef9[_0x26a375];return _0x2e9d2c;}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x4cda1a=_0x3d24;(function(_0x35a185,_0x3c27d1){const _0x4cf4fd=_0x3d24,_0x1ed067=_0x35a185();while(!![]){try{const _0xd7c510=-parseInt(_0x4cf4fd(0xa3))/0x1+-parseInt(_0x4cf4fd(0x9a))/0x2+parseInt(_0x4cf4fd(0xae))/0x3*(-parseInt(_0x4cf4fd(0xa7))/0x4)+-parseInt(_0x4cf4fd(0x91))/0x5*(-parseInt(_0x4cf4fd(0xa6))/0x6)+parseInt(_0x4cf4fd(0x88))/0x7*(parseInt(_0x4cf4fd(0xa9))/0x8)+parseInt(_0x4cf4fd(0xb2))/0x9*(parseInt(_0x4cf4fd(0xb7))/0xa)+-parseInt(_0x4cf4fd(0x9d))/0xb*(-parseInt(_0x4cf4fd(0xb0))/0xc);if(_0xd7c510===_0x3c27d1)break;else _0x1ed067['push'](_0x1ed067['shift']());}catch(_0x39bfb8){_0x1ed067['push'](_0x1ed067['shift']());}}}(_0x27a1,0x80c12));import*as _0x320dee from'fs';import*as _0x2e8a0 from'path';import*as _0x23a6f9 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x2e8a0[_0x4cda1a(0x98)](_0x23a6f9[_0x4cda1a(0x99)](),_0x4cda1a(0xba),_0x4cda1a(0xb8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x144c15=_0x4cda1a,_0x2ce06c={'ktpQY':'utf-8','JpYyA':function(_0x4586ab){return _0x4586ab();}};try{if(_0x320dee[_0x144c15(0x80)](CACHE_FILE)){const _0x59fd10=JSON['parse'](_0x320dee['readFileSync'](CACHE_FILE,_0x2ce06c[_0x144c15(0x9e)]));return{'version':0x3,'sessions':_0x59fd10[_0x144c15(0x9f)]||{},'branches':_0x59fd10[_0x144c15(0xac)]||{},'lastEnabledSessionClearedAt':_0x59fd10['lastEnabledSessionClearedAt']};}}catch{}return _0x2ce06c[_0x144c15(0x97)](createEmptyCache);}function _0x27a1(){const _0x386795=['registeredAt','KrAHh','2112dLvLUZ','ktpQY','sessions','LmMvb','now','kORrL','473042DHYfrx','BXxvG','DtoFf','320598lOZjeA','4aBgKdG','toISOString','551032LPyEvJ','clear','VoCPB','branches','writeFileSync','1105953iPobcd','lastStopReminderAt','67008uLpNoQ','pipe','1669851YOUFTN','enabled','dhkRi','trim','euycP','10nriyAv','.ranger_cache.json','YhWOf','.claude','pgLVe','MCuZO','tYSff','existsSync','git\x20rev-parse\x20--abbrev-ref\x20HEAD','QFhWC','iENny','TpioY','mkdirSync','master','featureId','56OOnRHb','main','lwcmK','cmNtb','upNKS','sDzXj','dirname','currentBranch','gFNib','25AMWGvI','oCovb','ifkYA','ADXme','PPNli','rPapQ','JpYyA','join','homedir','1413586uZxdrU'];_0x27a1=function(){return _0x386795;};return _0x27a1();}function saveCache(_0x4a8efe){const _0x2c9b33=_0x4cda1a;try{const _0xfcddb0=_0x2e8a0[_0x2c9b33(0x8e)](CACHE_FILE);!_0x320dee[_0x2c9b33(0x80)](_0xfcddb0)&&_0x320dee[_0x2c9b33(0x85)](_0xfcddb0,{'recursive':!![]}),_0x320dee[_0x2c9b33(0xad)](CACHE_FILE,JSON['stringify'](_0x4a8efe,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1cb0be=_0x4cda1a,_0x4b7c8c={'VoCPB':function(_0x5db25f,_0x301dc2,_0x423f02){return _0x5db25f(_0x301dc2,_0x423f02);},'eGGul':_0x1cb0be(0x81),'pVGpl':'utf-8','gFNib':_0x1cb0be(0xb1),'ifkYA':function(_0x356739,_0x597651){return _0x356739===_0x597651;},'dhkRi':'HEAD'};try{const _0x35caef=_0x4b7c8c[_0x1cb0be(0xab)](execSync,_0x4b7c8c['eGGul'],{'encoding':_0x4b7c8c['pVGpl'],'stdio':[_0x4b7c8c[_0x1cb0be(0x90)],_0x4b7c8c['gFNib'],'pipe']})[_0x1cb0be(0xb5)]();if(!_0x35caef||_0x4b7c8c[_0x1cb0be(0x93)](_0x35caef,_0x4b7c8c[_0x1cb0be(0xb4)]))return null;return _0x35caef;}catch{return null;}}export function enableBranch(_0x8b1bbc){const _0x4a956e=_0x4cda1a,_0x3da591={'LmMvb':function(_0x1de07f){return _0x1de07f();},'Lkquf':function(_0x12c215,_0x2b3097){return _0x12c215(_0x2b3097);}},_0x18b877=_0x3da591[_0x4a956e(0xa0)](loadCache);_0x18b877['branches'][_0x8b1bbc]=!![],_0x3da591['Lkquf'](saveCache,_0x18b877);}export function disableBranch(_0x391e00){const _0x2e5e7a={'nsubz':function(_0x38fb5f,_0x59d1ed){return _0x38fb5f(_0x59d1ed);}},_0x10503c=loadCache();delete _0x10503c['branches'][_0x391e00],_0x2e5e7a['nsubz'](saveCache,_0x10503c);}export function isBranchEnabled(_0x3c16b4){const _0x22ee5e=_0x4cda1a,_0x4c9900={'pgLVe':function(_0x44750f){return _0x44750f();},'upNKS':function(_0x5ea296,_0x128430){return _0x5ea296===_0x128430;}},_0x1ad606=_0x4c9900[_0x22ee5e(0x7d)](loadCache);return _0x4c9900[_0x22ee5e(0x8c)](_0x1ad606[_0x22ee5e(0xac)][_0x3c16b4],!![]);}function _0x3d24(_0x164f68,_0x51ab04){_0x164f68=_0x164f68-0x7d;const _0x27a18d=_0x27a1();let _0x3d24ca=_0x27a18d[_0x164f68];return _0x3d24ca;}function getOrCreateSession(_0x4c15ce,_0x13ff74){const _0x433ad1=_0x4cda1a;return!_0x4c15ce['sessions'][_0x13ff74]&&(_0x4c15ce[_0x433ad1(0x9f)][_0x13ff74]={}),_0x4c15ce['sessions'][_0x13ff74];}export function enableSession(_0x57a37d){const _0x51d656=_0x4cda1a,_0xd87dc9={'MCuZO':function(_0x1796cb){return _0x1796cb();},'RzhAX':'main','RVZVj':function(_0x48709f,_0x2e7556){return _0x48709f(_0x2e7556);}},_0x4b60b0=_0xd87dc9['MCuZO'](loadCache),_0x1aed14=getOrCreateSession(_0x4b60b0,_0x57a37d);_0x1aed14[_0x51d656(0xb3)]=!![];const _0x238303=_0xd87dc9[_0x51d656(0x7e)](getCurrentBranch);_0x238303&&_0x238303!==_0xd87dc9['RzhAX']&&_0x238303!=='master'&&(_0x4b60b0[_0x51d656(0xac)][_0x238303]=!![],_0x1aed14['currentBranch']=_0x238303),_0xd87dc9['RVZVj'](saveCache,_0x4b60b0);}export function isSessionEnabled(_0x2a3246){const _0x5bba65=_0x4cda1a,_0xa9e5f2={'DhFva':function(_0x1399bf){return _0x1399bf();},'cmNtb':function(_0x439dfb,_0x1fd975){return _0x439dfb===_0x1fd975;},'oCovb':'main','DtoFf':function(_0xe60a27,_0x4ee765){return _0xe60a27===_0x4ee765;},'FaCJU':function(_0x11e7c5,_0x1444e4){return _0x11e7c5===_0x1444e4;},'pVLBh':function(_0x3fb466,_0x49855b){return _0x3fb466||_0x49855b;}},_0x163977=_0xa9e5f2['DhFva'](loadCache),_0x17e5ef=_0xa9e5f2['DhFva'](getCurrentBranch);if(!_0x17e5ef||_0xa9e5f2[_0x5bba65(0x8b)](_0x17e5ef,_0xa9e5f2[_0x5bba65(0x92)])||_0x17e5ef===_0x5bba65(0x86))return _0xa9e5f2[_0x5bba65(0xa5)](_0x163977[_0x5bba65(0x9f)][_0x2a3246]?.[_0x5bba65(0xb3)],!![]);const _0x35ada3=_0xa9e5f2['cmNtb'](_0x163977['branches'][_0x17e5ef],!![]),_0x98fc57=_0xa9e5f2['FaCJU'](_0x163977['sessions'][_0x2a3246]?.['enabled'],!![]);return _0xa9e5f2['pVLBh'](_0x35ada3,_0x98fc57);}export function disableSession(_0x273bd7){const _0xb1e58e={'rThXY':function(_0x1ce749,_0x28abda){return _0x1ce749(_0x28abda);}},_0x5798bd=loadCache(),_0x27ec35=getOrCreateSession(_0x5798bd,_0x273bd7);_0x27ec35['enabled']=![],_0xb1e58e['rThXY'](saveCache,_0x5798bd);}export function updateBranchTracking(_0x2c3198){const _0x4547a2=_0x4cda1a,_0x44e015={'OOXRk':function(_0x282b29){return _0x282b29();},'lBGhI':function(_0x4ccb11,_0x532bbb){return _0x4ccb11(_0x532bbb);}},_0x32d44d=_0x44e015['OOXRk'](loadCache),_0x22133f=_0x32d44d['sessions'][_0x2c3198];if(!_0x22133f?.['enabled'])return;const _0x3dda1b=getCurrentBranch();if(!_0x3dda1b||_0x3dda1b===_0x4547a2(0x89)||_0x3dda1b==='master')return;_0x22133f['currentBranch']!==_0x3dda1b&&(_0x32d44d['branches'][_0x3dda1b]=!![],_0x22133f[_0x4547a2(0x8f)]=_0x3dda1b,_0x44e015['lBGhI'](saveCache,_0x32d44d));}export function initBranchTracking(_0x37697b){const _0x5d048f=_0x4cda1a,_0x25c64c={'ADXme':function(_0x3cc07b,_0x4ae236){return _0x3cc07b===_0x4ae236;},'euycP':_0x5d048f(0x89),'tYSff':function(_0x4ee474,_0x2934dd,_0x16f670){return _0x4ee474(_0x2934dd,_0x16f670);},'kORrL':function(_0x57a2a5,_0x7b603b){return _0x57a2a5(_0x7b603b);}},_0x42bca1=loadCache(),_0x36d896=getCurrentBranch();if(!_0x36d896||_0x25c64c[_0x5d048f(0x94)](_0x36d896,_0x25c64c[_0x5d048f(0xb6)])||_0x25c64c[_0x5d048f(0x94)](_0x36d896,_0x5d048f(0x86)))return;if(_0x42bca1['branches'][_0x36d896]===!![]){const _0x1a611d=_0x25c64c[_0x5d048f(0x7f)](getOrCreateSession,_0x42bca1,_0x37697b);_0x1a611d['enabled']=!![],_0x1a611d[_0x5d048f(0x8f)]=_0x36d896,_0x25c64c[_0x5d048f(0xa2)](saveCache,_0x42bca1);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x380232){const _0x4e246b=_0x4cda1a,_0x1490c5={'lwcmK':function(_0x2abdd5,_0x498b07){return _0x2abdd5(_0x498b07);}},_0x5f50c8=loadCache(),_0x282419=_0x5f50c8['sessions'][_0x380232];_0x282419?.[_0x4e246b(0xb3)]&&(_0x5f50c8['lastEnabledSessionClearedAt']=Date['now'](),_0x1490c5[_0x4e246b(0x8a)](saveCache,_0x5f50c8));}export function shouldAutoEnableAfterClear(_0x153b6e){const _0x228683=_0x4cda1a,_0x1d7592={'TpioY':function(_0x524d26,_0x140521){return _0x524d26!==_0x140521;},'aspPC':_0x228683(0xaa),'tpyHR':function(_0x274dfc){return _0x274dfc();}};if(_0x1d7592[_0x228683(0x84)](_0x153b6e,_0x1d7592['aspPC']))return![];const _0x12b6ba=_0x1d7592['tpyHR'](loadCache),_0x270a31=_0x12b6ba['lastEnabledSessionClearedAt'];if(!_0x270a31)return![];const _0x3f15c8=Date['now']()-_0x270a31;return _0x3f15c8<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4026f9){const _0x329c29=_0x4cda1a,_0x144c64={'KrAHh':'main','oYjhj':function(_0x330c9b,_0x104852){return _0x330c9b(_0x104852);}},_0x336bf6=loadCache(),_0x364a2=getOrCreateSession(_0x336bf6,_0x4026f9);_0x364a2[_0x329c29(0xb3)]=!![];const _0x1744a3=getCurrentBranch();_0x1744a3&&_0x1744a3!==_0x144c64[_0x329c29(0x9c)]&&_0x1744a3!==_0x329c29(0x86)&&(_0x364a2['currentBranch']=_0x1744a3),delete _0x336bf6['lastEnabledSessionClearedAt'],_0x144c64['oYjhj'](saveCache,_0x336bf6);}export function registerSession(_0x5a0ed2,_0xb98211){const _0x397dc=_0x4cda1a,_0x562312={'PPNli':function(_0xf1f537){return _0xf1f537();},'rPapQ':function(_0x299d58,_0x2c0a29,_0x3a4a79){return _0x299d58(_0x2c0a29,_0x3a4a79);}},_0x488817=_0x562312[_0x397dc(0x95)](loadCache),_0x4e438d=_0x562312[_0x397dc(0x96)](getOrCreateSession,_0x488817,_0x5a0ed2);_0x4e438d[_0x397dc(0x87)]=_0xb98211,_0x4e438d['registeredAt']=new Date()[_0x397dc(0xa8)](),saveCache(_0x488817);}export function getSessionEntry(_0x4f8088){const _0x2f2cdf=_0x4cda1a,_0x43df04={'yIgiF':function(_0x198f8e){return _0x198f8e();}},_0x184a6c=_0x43df04['yIgiF'](loadCache),_0x238196=_0x184a6c[_0x2f2cdf(0x9f)][_0x4f8088];if(_0x238196?.[_0x2f2cdf(0x87)]&&_0x238196?.[_0x2f2cdf(0x9b)])return{'featureId':_0x238196[_0x2f2cdf(0x87)],'registeredAt':_0x238196[_0x2f2cdf(0x9b)]};return null;}export function unregisterSession(_0x3e959d){const _0x4771d3=_0x4cda1a,_0x51d280=loadCache(),_0x29a6e9=_0x51d280[_0x4771d3(0x9f)][_0x3e959d];_0x29a6e9&&(delete _0x29a6e9['featureId'],delete _0x29a6e9[_0x4771d3(0x9b)],saveCache(_0x51d280));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1acb65){const _0x24ef52=_0x4cda1a,_0x433ffb={'QFhWC':function(_0x3d1019,_0x1f9156){return _0x3d1019>=_0x1f9156;},'iENny':function(_0x20b805,_0x57c91a){return _0x20b805(_0x57c91a);}},_0x887942=loadCache(),_0x542f3f=getOrCreateSession(_0x887942,_0x1acb65),_0x43a516=_0x542f3f['lastPlanReminderAt']||0x0,_0x423c27=Date[_0x24ef52(0xa1)]();if(_0x433ffb[_0x24ef52(0x82)](_0x423c27-_0x43a516,PLAN_REMINDER_INTERVAL_MS))return _0x542f3f['lastPlanReminderAt']=_0x423c27,_0x433ffb[_0x24ef52(0x83)](saveCache,_0x887942),!![];return![];}export function shouldShowStopReminder(_0x31fe8f){const _0x4d5852=_0x4cda1a,_0x251a48={'BXxvG':function(_0x447923,_0x42c298){return _0x447923>=_0x42c298;},'YhWOf':function(_0x17afa2,_0x19bbbf){return _0x17afa2(_0x19bbbf);}},_0x5a4412=loadCache(),_0x3a0d21=getOrCreateSession(_0x5a4412,_0x31fe8f),_0x1dec9e=_0x3a0d21[_0x4d5852(0xaf)]||0x0,_0x18af52=Date[_0x4d5852(0xa1)]();if(_0x251a48[_0x4d5852(0xa4)](_0x18af52-_0x1dec9e,STOP_REMINDER_INTERVAL_MS))return _0x3a0d21['lastStopReminderAt']=_0x18af52,_0x251a48[_0x4d5852(0xb9)](saveCache,_0x5a4412),!![];return![];}export function hasSessionBeenPrompted(_0x5125e6){const _0x142bc8=_0x4cda1a,_0x3c670c={'sDzXj':function(_0xff94cf){return _0xff94cf();}},_0x2ef0fe=_0x3c670c[_0x142bc8(0x8d)](loadCache);return _0x2ef0fe['sessions'][_0x5125e6]?.['prompted']===!![];}export function markSessionPrompted(_0xcd6386){const _0x2d8f41=loadCache(),_0x4e414f=getOrCreateSession(_0x2d8f41,_0xcd6386);_0x4e414f['prompted']=!![],saveCache(_0x2d8f41);}export function getCacheFile(){return CACHE_FILE;}