gemit-cli 2.1.2 → 2.2.0

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.
@@ -1 +1 @@
1
- (function(_0x58be99,_0x1b865d){const _0x19c995=_0x4d3f,_0x2b225a=_0x58be99();while(!![]){try{const _0x56e3c9=-parseInt(_0x19c995(0x164))/0x1*(parseInt(_0x19c995(0x149))/0x2)+parseInt(_0x19c995(0x14d))/0x3+parseInt(_0x19c995(0x13d))/0x4*(parseInt(_0x19c995(0x139))/0x5)+-parseInt(_0x19c995(0x142))/0x6+-parseInt(_0x19c995(0x135))/0x7+-parseInt(_0x19c995(0x140))/0x8*(parseInt(_0x19c995(0x133))/0x9)+parseInt(_0x19c995(0x15e))/0xa;if(_0x56e3c9===_0x1b865d)break;else _0x2b225a['push'](_0x2b225a['shift']());}catch(_0x5b05ff){_0x2b225a['push'](_0x2b225a['shift']());}}}(_0x45fc,0x4f3df));const _0x43b1fb=(function(){const _0x55ed8d=_0x4d3f,_0x5d1be5={'oTJBh':function(_0x2a57a9,_0x5c7117){return _0x2a57a9!==_0x5c7117;},'RVYwD':_0x55ed8d(0x13b),'UGxxN':'Qukqg'};let _0x46228b=!![];return function(_0x5efe42,_0x3df63c){const _0x8dd41c=_0x46228b?function(){const _0xc79f8c=_0x4d3f;if(_0x3df63c){if(_0x5d1be5[_0xc79f8c(0x148)](_0x5d1be5['RVYwD'],_0x5d1be5[_0xc79f8c(0x155)])){const _0x8a886c=_0x3df63c[_0xc79f8c(0x15b)](_0x5efe42,arguments);return _0x3df63c=null,_0x8a886c;}else throw new _0x179045('Set\x20GOOG'+'LE_API_K'+_0xc79f8c(0x130)+_0xc79f8c(0x153)+_0xc79f8c(0x136));}}:function(){};return _0x46228b=![],_0x8dd41c;};}()),_0x94d741=_0x43b1fb(this,function(){const _0x1fc059=_0x4d3f,_0x476082={'CIsFD':_0x1fc059(0x166)+_0x1fc059(0x12c)};return _0x94d741['toString']()[_0x1fc059(0x146)](_0x476082['CIsFD'])[_0x1fc059(0x158)]()[_0x1fc059(0x151)+'tor'](_0x94d741)[_0x1fc059(0x146)](_0x476082[_0x1fc059(0x132)]);});function _0x4d3f(_0x52aa9c,_0x409dd4){_0x52aa9c=_0x52aa9c-0x12c;const _0x13fe1f=_0x45fc();let _0x94d741=_0x13fe1f[_0x52aa9c];return _0x94d741;}_0x94d741();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';function _0x45fc(){const _0x492518=['4868jsLwMR','Set\x20the\x20','OvdWW','8dAFwqC','JqoLy','885768JSoaSj','C_API_KE','openai','\x20environ','search','LLM_PROV','oTJBh','2MiAZwk','WtSgJ','OoEgf','ment\x20var','350487QlJiSp','rhoUV','IDER:\x20','trim','construc','kgzIm','MINI_API','LE_API_K','UGxxN','Invalid\x20','Set\x20GOOG','toString','fBeIh','iable.','apply','vshWy','jwIqz','12205640ZiWiWR','NefYW','.5-flash','ZTmUm','wYbLA','string','494243zpQbMP','gemini-2','(((.+)+)','OPENAI_A','+)+$','jzToQ','join','lTlIS','EY\x20or\x20GE','uzGad','CIsFD','4672458SEEgiK','yoCUF','1969702FMKIqC','_KEY.','PI_KEY','ANTHROPI','1765UIvARy','ase','HBZLF','google'];_0x45fc=function(){return _0x492518;};return _0x45fc();}import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x315a6e){const _0x4cf573=_0x4d3f,_0x528483=process.env[_0x315a6e];if(!_0x528483)throw new Error(_0x4cf573(0x13e)+_0x315a6e+(_0x4cf573(0x145)+_0x4cf573(0x14c)+'iable.'));return _0x528483;}export function createLLM(){const _0x37a2ce=_0x4d3f,_0x398eb7={'NefYW':_0x37a2ce(0x13c),'mdDHE':_0x37a2ce(0x165)+_0x37a2ce(0x160),'jwIqz':_0x37a2ce(0x157)+_0x37a2ce(0x154)+_0x37a2ce(0x130)+_0x37a2ce(0x153)+_0x37a2ce(0x136),'kgzIm':function(_0x22e0e6,_0x2566c3){return _0x22e0e6===_0x2566c3;},'JqoLy':_0x37a2ce(0x144),'OvdWW':_0x37a2ce(0x15c),'ZTmUm':_0x37a2ce(0x167)+_0x37a2ce(0x137),'fBeIh':function(_0x10d2a6,_0x30b36b){return _0x10d2a6===_0x30b36b;},'jzToQ':'anthropi'+'c','uzGad':_0x37a2ce(0x14a),'MDdnx':function(_0xd4542d,_0xcde781){return _0xd4542d(_0xcde781);},'OoEgf':_0x37a2ce(0x138)+_0x37a2ce(0x143)+'Y'},_0x465beb=(process.env.LLM_PROVIDER||_0x398eb7[_0x37a2ce(0x15f)])['toLowerC'+_0x37a2ce(0x13a)](),_0x2a2ffe=process.env.LLM_MODEL||_0x398eb7['mdDHE'];if(_0x465beb===_0x37a2ce(0x13c)){const _0xc9deb5=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0xc9deb5)throw new Error(_0x398eb7[_0x37a2ce(0x15d)]);return new ChatGoogleGenerativeAI({'model':_0x2a2ffe,'apiKey':_0xc9deb5,'temperature':0.2});}if(_0x398eb7['kgzIm'](_0x465beb,_0x398eb7[_0x37a2ce(0x141)])){if(_0x398eb7[_0x37a2ce(0x152)](_0x37a2ce(0x12f),_0x398eb7[_0x37a2ce(0x13f)])){const _0x58b130=_0x3215f4.env[_0xf2a261];if(!_0x58b130)throw new _0x29cc25(_0x37a2ce(0x13e)+_0x154842+(_0x37a2ce(0x145)+_0x37a2ce(0x14c)+_0x37a2ce(0x15a)));return _0x58b130;}else return new ChatOpenAI({'model':_0x2a2ffe,'apiKey':requireEnv(_0x398eb7[_0x37a2ce(0x161)]),'temperature':0.2});}if(_0x398eb7[_0x37a2ce(0x159)](_0x465beb,_0x398eb7[_0x37a2ce(0x12d)])){if(_0x398eb7['kgzIm'](_0x398eb7[_0x37a2ce(0x131)],_0x398eb7[_0x37a2ce(0x131)]))return new ChatAnthropic({'model':_0x2a2ffe,'apiKey':_0x398eb7['MDdnx'](requireEnv,_0x398eb7[_0x37a2ce(0x14b)]),'temperature':0.2});else throw new _0x1a2656(_0x37a2ce(0x13e)+_0x4b434e+(_0x37a2ce(0x145)+_0x37a2ce(0x14c)+_0x37a2ce(0x15a)));}throw new Error(_0x37a2ce(0x156)+_0x37a2ce(0x147)+_0x37a2ce(0x14f)+_0x465beb);}export function extractMessageText(_0x3a7b58){const _0x2cfa69=_0x4d3f,_0xd064b7={'yoCUF':function(_0x55400c,_0x15c4d8){return _0x55400c===_0x15c4d8;},'wYbLA':function(_0x3ddb59,_0x403000){return _0x3ddb59(_0x403000);},'rhoUV':function(_0x4c2452,_0xeefd2d){return _0x4c2452||_0xeefd2d;}};if(_0xd064b7[_0x2cfa69(0x134)](typeof _0x3a7b58,'string'))return _0x3a7b58[_0x2cfa69(0x150)]();if(Array['isArray'](_0x3a7b58))return _0x3a7b58['map'](_0x3d3f3f=>typeof _0x3d3f3f===_0x2cfa69(0x163)?_0x3d3f3f:_0x3d3f3f?.['text']||'')[_0x2cfa69(0x12e)]('')[_0x2cfa69(0x150)]();return _0xd064b7[_0x2cfa69(0x162)](String,_0xd064b7[_0x2cfa69(0x14e)](_0x3a7b58,''))[_0x2cfa69(0x150)]();}
1
+ (function(_0x54bc20,_0x1f4093){const _0xd11cbf=_0x26bb,_0x3ba4b4=_0x54bc20();while(!![]){try{const _0x10ab1b=-parseInt(_0xd11cbf(0xe9))/0x1+parseInt(_0xd11cbf(0xd5))/0x2*(parseInt(_0xd11cbf(0xe8))/0x3)+parseInt(_0xd11cbf(0xe5))/0x4+parseInt(_0xd11cbf(0xdd))/0x5*(parseInt(_0xd11cbf(0xda))/0x6)+parseInt(_0xd11cbf(0xea))/0x7*(-parseInt(_0xd11cbf(0xe2))/0x8)+-parseInt(_0xd11cbf(0xcf))/0x9*(parseInt(_0xd11cbf(0xd6))/0xa)+-parseInt(_0xd11cbf(0xee))/0xb;if(_0x10ab1b===_0x1f4093)break;else _0x3ba4b4['push'](_0x3ba4b4['shift']());}catch(_0x18b4e0){_0x3ba4b4['push'](_0x3ba4b4['shift']());}}}(_0x2378,0x3f130));function _0x26bb(_0x1d1dac,_0x3a88b6){_0x1d1dac=_0x1d1dac-0xc8;const _0x18b98d=_0x2378();let _0x3680b1=_0x18b98d[_0x1d1dac];return _0x3680b1;}function _0x2378(){const _0x5af448=['ase','ANTHROPI','vQeEV','google','isArray','trim','ment\x20var','18wOmyEr','toString','apply','dHtgO','LE_API_K','EY\x20or\x20GE','16946hKSVED','856030EnNkjs','MINI_API','PctAR','.5-flash','12OgWBqn','+)+$','HSTOr','483690MEroQd','Jvfif','tor','(((.+)+)','search','765816RuDAIM','string','QUOhM','1987132TRqJhS','\x20environ','Set\x20GOOG','156iWiCez','142914SZjDjs','35pUATbu','cLGak','jFQuc','toLowerC','877228dIVxuc','ErpiF','IDER:\x20','PI_KEY','LLM_PROV','Invalid\x20','Otogh','_KEY.'];_0x2378=function(){return _0x5af448;};return _0x2378();}const _0x160fc9=(function(){let _0x502515=!![];return function(_0x23920a,_0x506e12){const _0x2064a3=_0x502515?function(){const _0x4dabfd=_0x26bb;if(_0x506e12){const _0x29d763=_0x506e12[_0x4dabfd(0xd1)](_0x23920a,arguments);return _0x506e12=null,_0x29d763;}}:function(){};return _0x502515=![],_0x2064a3;};}()),_0x3680b1=_0x160fc9(this,function(){const _0x52d758=_0x26bb,_0x1c7909={'Jvfif':_0x52d758(0xe0)+'+)+$'};return _0x3680b1['toString']()['search'](_0x52d758(0xe0)+_0x52d758(0xdb))[_0x52d758(0xd0)]()['construc'+_0x52d758(0xdf)](_0x3680b1)[_0x52d758(0xe1)](_0x1c7909[_0x52d758(0xde)]);});_0x3680b1();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x3f855d){const _0x32f549=_0x26bb,_0xab0b9b=process.env[_0x3f855d];if(!_0xab0b9b)throw new Error('Set\x20the\x20'+_0x3f855d+(_0x32f549(0xe6)+_0x32f549(0xce)+'iable.'));return _0xab0b9b;}export function createLLM(){const _0x929eee=_0x26bb,_0x5c1ba9={'vQeEV':_0x929eee(0xcb),'dHtgO':'gemini-2'+_0x929eee(0xd9),'PctAR':function(_0x2291a0,_0x20bb0c){return _0x2291a0===_0x20bb0c;},'tuahK':'openai','qIlZc':function(_0x49155c,_0x4b263f){return _0x49155c(_0x4b263f);},'jFQuc':'OPENAI_A'+_0x929eee(0xf1),'AMtBy':function(_0x338eb8,_0x3bb6c3){return _0x338eb8(_0x3bb6c3);},'cLGak':_0x929eee(0xc9)+'C_API_KE'+'Y'},_0x44849e=(process.env.LLM_PROVIDER||_0x5c1ba9[_0x929eee(0xca)])[_0x929eee(0xed)+_0x929eee(0xc8)](),_0x38933f=process.env.LLM_MODEL||_0x5c1ba9[_0x929eee(0xd2)];if(_0x5c1ba9[_0x929eee(0xd8)](_0x44849e,_0x929eee(0xcb))){const _0x4b1208=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x4b1208)throw new Error(_0x929eee(0xe7)+_0x929eee(0xd3)+_0x929eee(0xd4)+_0x929eee(0xd7)+_0x929eee(0xf5));return new ChatGoogleGenerativeAI({'model':_0x38933f,'apiKey':_0x4b1208,'temperature':0.2});}if(_0x5c1ba9[_0x929eee(0xd8)](_0x44849e,_0x5c1ba9['tuahK']))return new ChatOpenAI({'model':_0x38933f,'apiKey':_0x5c1ba9['qIlZc'](requireEnv,_0x5c1ba9[_0x929eee(0xec)]),'temperature':0.2});if(_0x5c1ba9[_0x929eee(0xd8)](_0x44849e,'anthropi'+'c'))return new ChatAnthropic({'model':_0x38933f,'apiKey':_0x5c1ba9['AMtBy'](requireEnv,_0x5c1ba9[_0x929eee(0xeb)]),'temperature':0.2});throw new Error(_0x929eee(0xf3)+_0x929eee(0xf2)+_0x929eee(0xf0)+_0x44849e);}export function extractMessageText(_0x55861b){const _0x466033=_0x26bb,_0x364f23={'HSTOr':function(_0x7c12c3,_0x2cfb05){return _0x7c12c3===_0x2cfb05;},'ErpiF':_0x466033(0xe3),'Otogh':function(_0x254804,_0x1f21e1){return _0x254804(_0x1f21e1);},'QUOhM':function(_0xf550db,_0x5ecbaf){return _0xf550db||_0x5ecbaf;}};if(_0x364f23[_0x466033(0xdc)](typeof _0x55861b,_0x364f23[_0x466033(0xef)]))return _0x55861b[_0x466033(0xcd)]();if(Array[_0x466033(0xcc)](_0x55861b))return _0x55861b['map'](_0x5d0c9e=>typeof _0x5d0c9e===_0x466033(0xe3)?_0x5d0c9e:_0x5d0c9e?.['text']||'')['join']('')[_0x466033(0xcd)]();return _0x364f23[_0x466033(0xf4)](String,_0x364f23[_0x466033(0xe4)](_0x55861b,''))['trim']();}
@@ -1 +1 @@
1
- (function(_0x2c138f,_0x4f8ff6){const _0x234be3=_0x2e87,_0x4007a0=_0x2c138f();while(!![]){try{const _0x41f99c=-parseInt(_0x234be3(0xa9))/0x1*(-parseInt(_0x234be3(0xb3))/0x2)+-parseInt(_0x234be3(0xba))/0x3*(-parseInt(_0x234be3(0xab))/0x4)+parseInt(_0x234be3(0xb7))/0x5*(-parseInt(_0x234be3(0xcb))/0x6)+-parseInt(_0x234be3(0xcf))/0x7*(parseInt(_0x234be3(0xf3))/0x8)+parseInt(_0x234be3(0xad))/0x9*(-parseInt(_0x234be3(0xc4))/0xa)+-parseInt(_0x234be3(0xdc))/0xb*(parseInt(_0x234be3(0xf8))/0xc)+parseInt(_0x234be3(0xda))/0xd;if(_0x41f99c===_0x4f8ff6)break;else _0x4007a0['push'](_0x4007a0['shift']());}catch(_0x31d556){_0x4007a0['push'](_0x4007a0['shift']());}}}(_0x359c,0xc4f58));const _0x182078=(function(){let _0x325f14=!![];return function(_0xf04525,_0x356ab8){const _0x4a71ae=_0x325f14?function(){const _0x38f094=_0x2e87;if(_0x356ab8){const _0x2bc95b=_0x356ab8[_0x38f094(0xe4)](_0xf04525,arguments);return _0x356ab8=null,_0x2bc95b;}}:function(){};return _0x325f14=![],_0x4a71ae;};}()),_0x5ec9bc=_0x182078(this,function(){const _0x13228f=_0x2e87,_0x557a59={'XKloA':_0x13228f(0xc7)+_0x13228f(0xae)};return _0x5ec9bc[_0x13228f(0xb4)]()[_0x13228f(0xc8)](_0x557a59[_0x13228f(0xc2)])['toString']()[_0x13228f(0xe0)+'tor'](_0x5ec9bc)['search'](_0x557a59[_0x13228f(0xc2)]);});_0x5ec9bc();function _0x2e87(_0x117baf,_0x452eed){_0x117baf=_0x117baf-0xa7;const _0x165aa0=_0x359c();let _0x5ec9bc=_0x165aa0[_0x117baf];return _0x5ec9bc;}import{createInterface}from'readline/promises';import{stdin as _0x209a15,stdout as _0x605f9a}from'process';import{style,ui}from'./ui.js';const OPTION_LINES=0x3,PRE_OPTION_LINES=0x2;function renderOptions(_0x5c33c0,_0x2d261b){const _0x4e5a51=_0x2e87,_0x47f4b0={'lsnCl':function(_0x5b4a63,_0x5a0db1,_0x2cde24,_0x158a31){return _0x5b4a63(_0x5a0db1,_0x2cde24,_0x158a31);},'ivIwZ':_0x4e5a51(0xf0),'glkTC':function(_0x11cc3a,_0x43aeed,_0x3aa01b){return _0x11cc3a(_0x43aeed,_0x3aa01b);},'YavWz':function(_0x41960b,_0x5938a7,_0x3a8ee0,_0x5dd8ba){return _0x41960b(_0x5938a7,_0x3a8ee0,_0x5dd8ba);}},_0x5ee4ee=_0x5c33c0?'\x20\x20\x20\x20'+_0x47f4b0[_0x4e5a51(0xf2)](style,'●',ui[_0x4e5a51(0xb0)],ui[_0x4e5a51(0xf5)])+'\x20'+style(_0x47f4b0[_0x4e5a51(0xcd)],ui[_0x4e5a51(0xb0)],ui['bold']):_0x4e5a51(0xb5)+_0x47f4b0[_0x4e5a51(0xbd)](style,'○',ui['gray'])+'\x20\x20'+style(_0x47f4b0[_0x4e5a51(0xcd)],ui['gray']),_0x487cbc=!_0x5c33c0?_0x4e5a51(0xb5)+_0x47f4b0[_0x4e5a51(0xd3)](style,'●',ui[_0x4e5a51(0xb0)],ui['bold'])+'\x20'+style('No',ui[_0x4e5a51(0xb0)],ui['bold']):_0x4e5a51(0xb5)+style('○',ui[_0x4e5a51(0xaf)])+'\x20\x20'+_0x47f4b0[_0x4e5a51(0xbd)](style,'No',ui[_0x4e5a51(0xaf)]);_0x2d261b&&_0x605f9a[_0x4e5a51(0xdd)]('\x1b['+OPTION_LINES+'A'),_0x605f9a[_0x4e5a51(0xdd)](_0x4e5a51(0xdb)+_0x5ee4ee+'\x0a'),_0x605f9a[_0x4e5a51(0xdd)]('\x0d\x1b[2K'+_0x487cbc+'\x0a'),_0x605f9a[_0x4e5a51(0xdd)](_0x4e5a51(0xea));}export function askConfirmation(_0x25e662,_0x5ce514={}){const _0x5a5e02=_0x2e87,_0x393915={'jCZfC':function(_0x59df3d,_0x274313){return _0x59df3d===_0x274313;},'TuSfX':function(_0x38eb06,_0x9b661b){return _0x38eb06(_0x9b661b);},'ksEPR':function(_0x525cc7,_0x1501cc){return _0x525cc7(_0x1501cc);},'MBLRm':_0x5a5e02(0xb8),'ZdeKw':function(_0x54525b,_0x2385d2,_0x47507b,_0x8f189f){return _0x54525b(_0x2385d2,_0x47507b,_0x8f189f);},'Uxwsv':function(_0xc69614,_0x120312,_0x4e1d2d,_0x1a212f){return _0xc69614(_0x120312,_0x4e1d2d,_0x1a212f);},'DECXT':function(_0xee3233,_0x47150f){return _0xee3233+_0x47150f;},'hiYcB':function(_0x44519e,_0x4fac26,_0x39bf77){return _0x44519e(_0x4fac26,_0x39bf77);},'prkCd':function(_0x2b43dc,_0xbc823e){return _0x2b43dc===_0xbc823e;},'euoys':_0x5a5e02(0xeb),'SGBbL':function(_0x7b0297,_0x56d1a4){return _0x7b0297!==_0x56d1a4;},'ASzZE':'lMISa','ONfoe':function(_0x24176a,_0x28b2b7){return _0x24176a===_0x28b2b7;},'tpxYz':_0x5a5e02(0xf4),'znIBB':_0x5a5e02(0xbc),'TQbpq':function(_0x5b8ac7,_0xaacf17){return _0x5b8ac7===_0xaacf17;},'Gtedb':function(_0x44d2a8,_0x3ba8f3){return _0x44d2a8!==_0x3ba8f3;},'PINvi':_0x5a5e02(0xbf),'mxLtM':function(_0x4ded5f,_0x4beb44,_0x3e7c47){return _0x4ded5f(_0x4beb44,_0x3e7c47);},'WkySb':function(_0x13d232,_0xfd4b9d){return _0x13d232===_0xfd4b9d;},'gGESr':function(_0xdfa889,_0x500cc1){return _0xdfa889(_0x500cc1);},'OEPwL':function(_0x5dc82f,_0x1be4c2){return _0x5dc82f===_0x1be4c2;},'NTTbI':'(((.+)+)'+'+)+$','DpBBs':function(_0x436d29,_0x470110){return _0x436d29!==_0x470110;},'wVdGv':'↑↓\x20·\x20Ent'+'er','NLDsy':function(_0x1add58,_0x49dc93,_0x12a851){return _0x1add58(_0x49dc93,_0x12a851);},'mdzht':'utf8'},_0x2bf1c9=_0x25e662[_0x5a5e02(0xb6)](/\s*\(.*?\)\s*:?\s*$/,'')[_0x5a5e02(0xb6)](/:\s*$/,'')[_0x5a5e02(0xb1)]();if(!process[_0x5a5e02(0xc9)][_0x5a5e02(0xd4)]||!process['stdout'][_0x5a5e02(0xd4)])return new Promise(_0x5d8a7f=>{const _0x595623=_0x5a5e02,_0x3b6d79={'nXzjV':function(_0x4a2d75,_0x55c269){return _0x393915['jCZfC'](_0x4a2d75,_0x55c269);},'SNfDn':function(_0x883fe6,_0x21a792){return _0x393915['TuSfX'](_0x883fe6,_0x21a792);}},_0xd61b97=_0x393915['ksEPR'](createInterface,{'input':_0x209a15,'output':_0x605f9a});_0xd61b97['question'](_0x25e662)[_0x595623(0xd9)](_0x5c84ba=>{const _0x1d7659=_0x595623;_0xd61b97[_0x1d7659(0xac)]();const _0x257a0a=_0x5c84ba[_0x1d7659(0xb1)]()[_0x1d7659(0xb2)+_0x1d7659(0xce)]();_0x5d8a7f(_0x257a0a?_0x3b6d79['nXzjV'](_0x257a0a,'y'):_0x3b6d79[_0x1d7659(0xd8)](Boolean,_0x5ce514[_0x1d7659(0xd2)+'es']));});});return new Promise(_0x4176f8=>{const _0x1b9bc0=_0x5a5e02,_0x3792e4={'zSxuM':_0x393915[_0x1b9bc0(0xc0)]};let _0x454a64=_0x393915[_0x1b9bc0(0xe7)](_0x5ce514[_0x1b9bc0(0xd2)+'es'],![]);_0x605f9a[_0x1b9bc0(0xdd)](_0x1b9bc0(0xaa)+style('?',ui[_0x1b9bc0(0xfa)],ui[_0x1b9bc0(0xf5)])+'\x20'+style(_0x2bf1c9,ui[_0x1b9bc0(0xf5)])+'\x20\x20'+_0x393915[_0x1b9bc0(0xe8)](style,_0x393915['wVdGv'],ui[_0x1b9bc0(0xaf)],ui[_0x1b9bc0(0xf1)])+'\x0a'),_0x605f9a[_0x1b9bc0(0xdd)]('\x0a'),_0x393915['NLDsy'](renderOptions,_0x454a64,![]),process['stdin'][_0x1b9bc0(0xd6)+'de'](!![]),process['stdin'][_0x1b9bc0(0xed)](),process[_0x1b9bc0(0xc9)][_0x1b9bc0(0xe9)+_0x1b9bc0(0xa8)](_0x393915['mdzht']);function _0x5d94dd(_0x47a0e5){const _0x45f57e=_0x1b9bc0;process[_0x45f57e(0xc9)]['setRawMo'+'de'](![]),process['stdin']['pause'](),process[_0x45f57e(0xc9)][_0x45f57e(0xd0)+_0x45f57e(0xe6)](_0x393915['MBLRm'],_0x50439f);const _0x3325d0=_0x47a0e5?_0x393915[_0x45f57e(0xe8)](style,'●',ui[_0x45f57e(0xd5)],ui[_0x45f57e(0xf5)])+'\x20'+style(_0x45f57e(0xf0),ui['green'],ui['bold']):_0x393915[_0x45f57e(0xe8)](style,'●',ui[_0x45f57e(0xc5)],ui[_0x45f57e(0xf5)])+'\x20'+_0x393915[_0x45f57e(0xbb)](style,'No',ui[_0x45f57e(0xc5)],ui['bold']);_0x605f9a['write']('\x1b['+_0x393915['DECXT'](OPTION_LINES,PRE_OPTION_LINES)+'A'),_0x605f9a[_0x45f57e(0xdd)](_0x45f57e(0xa7)+_0x393915['hiYcB'](style,'✓',ui[_0x45f57e(0xd5)])+'\x20'+style(_0x2bf1c9,ui[_0x45f57e(0xf1)])+'\x20\x20'+_0x3325d0+'\x0a'),_0x605f9a[_0x45f57e(0xdd)]('\x0a'),_0x605f9a['write'](_0x45f57e(0xe2)),_0x393915['ksEPR'](_0x4176f8,_0x47a0e5);}function _0x50439f(_0x6966cf){const _0x26c07d=_0x1b9bc0;_0x393915['prkCd'](_0x6966cf,'\x03')&&(_0x605f9a[_0x26c07d(0xdd)]('\x0a'),process['exit'](0x82));if(_0x6966cf===_0x393915['euoys']||_0x6966cf===_0x26c07d(0xde)){if(_0x393915[_0x26c07d(0xe5)](_0x26c07d(0xbe),_0x393915['ASzZE'])){_0x454a64=!![],renderOptions(_0x454a64,!![]);return;}else{_0x10fe9e(_0xe69781);return;}}if(_0x393915[_0x26c07d(0xe1)](_0x6966cf,_0x393915[_0x26c07d(0xc1)])||_0x6966cf===_0x393915[_0x26c07d(0xc3)]){_0x454a64=![],_0x393915[_0x26c07d(0xca)](renderOptions,_0x454a64,!![]);return;}if(_0x393915[_0x26c07d(0xec)](_0x6966cf,'\x20')){if(_0x393915[_0x26c07d(0xe3)](_0x393915[_0x26c07d(0xee)],'BWkuD'))return _0x3fb176[_0x26c07d(0xb4)]()[_0x26c07d(0xc8)](gXyOpa['zSxuM'])[_0x26c07d(0xb4)]()['construc'+_0x26c07d(0xd1)](_0x23d085)[_0x26c07d(0xc8)](gXyOpa[_0x26c07d(0xf7)]);else{_0x454a64=!_0x454a64,_0x393915[_0x26c07d(0xcc)](renderOptions,_0x454a64,!![]);return;}}if(_0x393915[_0x26c07d(0xf9)](_0x6966cf,'y')||_0x6966cf==='Y'){_0x393915[_0x26c07d(0xd7)](_0x5d94dd,!![]);return;}if(_0x393915['OEPwL'](_0x6966cf,'n')||_0x6966cf==='N'){_0x393915[_0x26c07d(0xd7)](_0x5d94dd,![]);return;}if(_0x6966cf==='\x0d'||_0x393915['TQbpq'](_0x6966cf,'\x0a')){_0x393915[_0x26c07d(0xf6)](_0x5d94dd,_0x454a64);return;}}process['stdin']['on'](_0x393915[_0x1b9bc0(0xdf)],_0x50439f);});}export async function askInput(_0x2a5a2d){const _0x12feea=_0x2e87,_0x13b714={'KJrqK':function(_0x581fd0,_0x43130f){return _0x581fd0(_0x43130f);}},_0x470413=_0x13b714[_0x12feea(0xc6)](createInterface,{'input':_0x209a15,'output':_0x605f9a}),_0x382645=await _0x470413[_0x12feea(0xef)](_0x2a5a2d);return _0x470413[_0x12feea(0xac)](),_0x382645[_0x12feea(0xb1)]();}function _0x359c(){const _0x48ccbc=['defaultY','YavWz','isTTY','green','setRawMo','gGESr','SNfDn','then','25400999WGQJuy','\x0d\x1b[2K','11AfbDcI','write','\x1b[D','MBLRm','construc','ONfoe','\x1b[J','Gtedb','apply','SGBbL','stener','DpBBs','ZdeKw','setEncod','\x0d\x1b[2K\x0a','\x1b[A','TQbpq','resume','PINvi','question','Yes','dim','lsnCl','120sxpKle','\x1b[B','bold','ksEPR','zSxuM','7162356CDEfEk','WkySb','yellow','\x0d\x1b[2K\x20\x20','ing','2rUytBD','\x0a\x20\x20','179412zuVHIc','close','10647UZulqF','+)+$','gray','cyan','trim','toLowerC','1550834FsZfdf','toString','\x20\x20\x20\x20','replace','45XvJTME','data','NWjJV','66eLvjep','Uxwsv','\x1b[C','glkTC','OnRLk','BWkuD','NTTbI','tpxYz','XKloA','znIBB','13420zCQIWZ','red','KJrqK','(((.+)+)','search','stdin','hiYcB','272730AOLJqm','mxLtM','ivIwZ','ase','509243xqTtLr','removeLi','tor'];_0x359c=function(){return _0x48ccbc;};return _0x359c();}export async function askEditableInput(_0xc9f6d7,_0x50313f){const _0x2ddfdf=_0x2e87,_0x584293={'NWjJV':function(_0x744592,_0x15f2f4){return _0x744592(_0x15f2f4);}},_0x39b38c=_0x584293[_0x2ddfdf(0xb9)](createInterface,{'input':_0x209a15,'output':_0x605f9a}),_0x4f4ca6=await _0x39b38c[_0x2ddfdf(0xef)](_0xc9f6d7);_0x39b38c[_0x2ddfdf(0xac)]();const _0x51ab7f=_0x4f4ca6[_0x2ddfdf(0xb1)]();if(!_0x51ab7f)return _0x50313f;return _0x51ab7f;}
1
+ (function(_0x4ca46e,_0x5bb67e){const _0x1ffc28=_0x39a6,_0x301ef3=_0x4ca46e();while(!![]){try{const _0x18887c=-parseInt(_0x1ffc28(0x13f))/0x1*(parseInt(_0x1ffc28(0x130))/0x2)+parseInt(_0x1ffc28(0x163))/0x3+-parseInt(_0x1ffc28(0x131))/0x4*(-parseInt(_0x1ffc28(0x14c))/0x5)+parseInt(_0x1ffc28(0x134))/0x6+-parseInt(_0x1ffc28(0x146))/0x7*(-parseInt(_0x1ffc28(0x13b))/0x8)+-parseInt(_0x1ffc28(0x149))/0x9*(parseInt(_0x1ffc28(0x160))/0xa)+-parseInt(_0x1ffc28(0x17f))/0xb;if(_0x18887c===_0x5bb67e)break;else _0x301ef3['push'](_0x301ef3['shift']());}catch(_0x5e7af9){_0x301ef3['push'](_0x301ef3['shift']());}}}(_0x4be7,0x218f0));const _0x22dbd4=(function(){const _0x4056bb={'BkYlJ':function(_0x5cd771,_0x1a5e6e){return _0x5cd771(_0x1a5e6e);},'wVvGs':'vxicd'};let _0x4f8e91=!![];return function(_0x5c56ec,_0xaefe32){const _0x386985=_0x39a6,_0x3fe007={'hDumj':function(_0x278700,_0x585667){const _0x418c5b=_0x39a6;return _0x4056bb[_0x418c5b(0x187)](_0x278700,_0x585667);},'RDJJa':_0x4056bb[_0x386985(0x138)]},_0x5da9d3=_0x4f8e91?function(){const _0x4a9218=_0x386985;if(_0x3fe007['RDJJa']!=='Httqk'){if(_0xaefe32){const _0x1f0f98=_0xaefe32[_0x4a9218(0x180)](_0x5c56ec,arguments);return _0xaefe32=null,_0x1f0f98;}}else{_0x3fe007[_0x4a9218(0x12c)](_0xc0a8d,![]);return;}}:function(){};return _0x4f8e91=![],_0x5da9d3;};}()),_0x2f29d9=_0x22dbd4(this,function(){const _0x285b36=_0x39a6,_0x48a6ca={'jmOud':_0x285b36(0x17b)+_0x285b36(0x136)};return _0x2f29d9[_0x285b36(0x12f)]()[_0x285b36(0x157)](_0x48a6ca[_0x285b36(0x13d)])[_0x285b36(0x12f)]()['construc'+_0x285b36(0x16e)](_0x2f29d9)[_0x285b36(0x157)](_0x285b36(0x17b)+'+)+$');});_0x2f29d9();import{createInterface}from'readline/promises';import{stdin as _0xa09fe6,stdout as _0x40068f}from'process';import{style,ui}from'./ui.js';const OPTION_LINES=0x3,PRE_OPTION_LINES=0x2;function renderOptions(_0x3b46d2,_0x113fdd){const _0x37f2b2=_0x39a6,_0x4e7fff={'viUMu':_0x37f2b2(0x17b)+_0x37f2b2(0x136),'JHOau':function(_0x597338,_0x2a31bf,_0x17c0a7,_0x2a8301){return _0x597338(_0x2a31bf,_0x17c0a7,_0x2a8301);},'RhVcc':'Yes','lDEbS':function(_0x582c22,_0x5da37d,_0x442a6c){return _0x582c22(_0x5da37d,_0x442a6c);},'RdGzh':function(_0xeccd2b,_0x47359d,_0x4ee808,_0x2aae97){return _0xeccd2b(_0x47359d,_0x4ee808,_0x2aae97);},'QYSxp':function(_0x406d28,_0x4e2691,_0x585947){return _0x406d28(_0x4e2691,_0x585947);},'Waqlk':function(_0x158fa7,_0x540e01){return _0x158fa7===_0x540e01;},'uwUFA':_0x37f2b2(0x166),'FAUzk':_0x37f2b2(0x17d)},_0x4ef458=_0x3b46d2?'\x20\x20\x20\x20'+_0x4e7fff[_0x37f2b2(0x140)](style,'●',ui['cyan'],ui[_0x37f2b2(0x16b)])+'\x20'+_0x4e7fff['JHOau'](style,_0x4e7fff[_0x37f2b2(0x16a)],ui[_0x37f2b2(0x167)],ui[_0x37f2b2(0x16b)]):_0x37f2b2(0x159)+_0x4e7fff['lDEbS'](style,'○',ui[_0x37f2b2(0x181)])+'\x20\x20'+_0x4e7fff[_0x37f2b2(0x170)](style,_0x4e7fff[_0x37f2b2(0x16a)],ui[_0x37f2b2(0x181)]),_0x42493e=!_0x3b46d2?'\x20\x20\x20\x20'+_0x4e7fff['RdGzh'](style,'●',ui['cyan'],ui[_0x37f2b2(0x16b)])+'\x20'+_0x4e7fff['JHOau'](style,'No',ui[_0x37f2b2(0x167)],ui[_0x37f2b2(0x16b)]):_0x37f2b2(0x159)+style('○',ui[_0x37f2b2(0x181)])+'\x20\x20'+_0x4e7fff[_0x37f2b2(0x155)](style,'No',ui[_0x37f2b2(0x181)]);if(_0x113fdd){if(_0x4e7fff[_0x37f2b2(0x173)](_0x4e7fff['uwUFA'],_0x4e7fff[_0x37f2b2(0x145)]))return _0x3fd4ef[_0x37f2b2(0x12f)]()[_0x37f2b2(0x157)](dAcUmB[_0x37f2b2(0x132)])['toString']()[_0x37f2b2(0x16f)+_0x37f2b2(0x16e)](_0x4fa5dc)[_0x37f2b2(0x157)](dAcUmB[_0x37f2b2(0x132)]);else _0x40068f[_0x37f2b2(0x183)]('\x1b['+OPTION_LINES+'A');}_0x40068f[_0x37f2b2(0x183)]('\x0d\x1b[2K'+_0x4ef458+'\x0a'),_0x40068f['write']('\x0d\x1b[2K'+_0x42493e+'\x0a'),_0x40068f['write']('\x0d\x1b[2K\x0a');}export function askConfirmation(_0x5e3f1c,_0x2c50c8={}){const _0x306c0a=_0x39a6,_0x5b0add={'MVjfl':function(_0x10dead,_0x820140,_0x488977){return _0x10dead(_0x820140,_0x488977);},'uxQRt':function(_0x354610,_0x1c1563){return _0x354610!==_0x1c1563;},'xUflQ':function(_0xa3010e,_0x15b9d1){return _0xa3010e(_0x15b9d1);},'oIYDE':'2|0|4|1|'+_0x306c0a(0x15e),'vZmUL':function(_0x2be535,_0x599d0d){return _0x2be535===_0x599d0d;},'BVNjP':_0x306c0a(0x135),'IRJpQ':_0x306c0a(0x143),'SFUdu':function(_0x4523ef,_0xd8feaa,_0x1a3b82){return _0x4523ef(_0xd8feaa,_0x1a3b82);},'VGdRK':function(_0x3088fb,_0x2a8e94){return _0x3088fb===_0x2a8e94;},'oeBat':function(_0x589d17,_0x22e914){return _0x589d17===_0x22e914;},'VrDwy':function(_0x13c236,_0x2e6f0e){return _0x13c236===_0x2e6f0e;},'BUWxK':function(_0x247c71,_0x99ded3){return _0x247c71===_0x99ded3;},'WJHhv':function(_0x25a514,_0x365194){return _0x25a514(_0x365194);},'iCkcm':_0x306c0a(0x16d),'AiuLx':function(_0x183288,_0xe7cb19,_0x3c94d0,_0x5e0936){return _0x183288(_0xe7cb19,_0x3c94d0,_0x5e0936);},'DdGJy':_0x306c0a(0x177),'MwlUY':function(_0x23b1cc,_0x1b7b33){return _0x23b1cc+_0x1b7b33;},'DXVhm':_0x306c0a(0x162)+'er'},_0x12e49f=_0x5e3f1c[_0x306c0a(0x14b)](/\s*\(.*?\)\s*:?\s*$/,'')['replace'](/:\s*$/,'')[_0x306c0a(0x178)]();if(!process[_0x306c0a(0x17e)][_0x306c0a(0x169)]||!process['stdout'][_0x306c0a(0x169)])return new Promise(_0x11c154=>{const _0x4f8da9=_0x306c0a,_0x49cd16={'fCFTG':function(_0x2bccef,_0x377612,_0x50b076){const _0x3fd1a0=_0x39a6;return _0x5b0add[_0x3fd1a0(0x174)](_0x2bccef,_0x377612,_0x50b076);},'UtwOB':function(_0x45742e,_0x334c0a){const _0x376ffc=_0x39a6;return _0x5b0add[_0x376ffc(0x13c)](_0x45742e,_0x334c0a);},'HKlxr':'zZHgd','rlsiL':_0x4f8da9(0x156),'TvZOj':function(_0x1bb190,_0xab1799){const _0x41f1ee=_0x4f8da9;return _0x5b0add[_0x41f1ee(0x15f)](_0x1bb190,_0xab1799);}},_0xcb5470=createInterface({'input':_0xa09fe6,'output':_0x40068f});_0xcb5470[_0x4f8da9(0x158)](_0x5e3f1c)[_0x4f8da9(0x15b)](_0x39a518=>{const _0x114039=_0x4f8da9;if(_0x49cd16['UtwOB'](_0x49cd16[_0x114039(0x150)],_0x49cd16[_0x114039(0x16c)])){_0xcb5470[_0x114039(0x13e)]();const _0x3b3bd8=_0x39a518[_0x114039(0x178)]()[_0x114039(0x161)+_0x114039(0x15d)]();_0x49cd16[_0x114039(0x176)](_0x11c154,_0x3b3bd8?_0x3b3bd8==='y':_0x49cd16[_0x114039(0x176)](Boolean,_0x2c50c8[_0x114039(0x12b)+'es']));}else{_0x762299=!![],_0x49cd16[_0x114039(0x15c)](_0x5b00a9,_0x3e8491,!![]);return;}});});return new Promise(_0x493f6c=>{const _0x4f978d=_0x306c0a,_0x5d2239={'oTNvm':_0x5b0add[_0x4f978d(0x182)],'vgPVa':function(_0x555ba8,_0x2f69eb,_0x128e6d,_0x2ea586){const _0x5c1469=_0x4f978d;return _0x5b0add[_0x5c1469(0x12d)](_0x555ba8,_0x2f69eb,_0x128e6d,_0x2ea586);},'ltBWO':_0x5b0add['DdGJy'],'gmFzf':function(_0x116c9b,_0x9d5044){const _0x27b2a2=_0x4f978d;return _0x5b0add[_0x27b2a2(0x168)](_0x116c9b,_0x9d5044);},'nJCFN':function(_0x2e9556,_0x4362f7,_0x49b94a){return _0x2e9556(_0x4362f7,_0x49b94a);},'OsjjY':function(_0x153683,_0x560fbc){const _0x4f9a6a=_0x4f978d;return _0x5b0add[_0x4f9a6a(0x153)](_0x153683,_0x560fbc);}};let _0xba4cc7=_0x2c50c8[_0x4f978d(0x12b)+'es']!==![];_0x40068f[_0x4f978d(0x183)](_0x4f978d(0x184)+_0x5b0add[_0x4f978d(0x12d)](style,'?',ui[_0x4f978d(0x185)],ui[_0x4f978d(0x16b)])+'\x20'+style(_0x12e49f,ui[_0x4f978d(0x16b)])+'\x20\x20'+_0x5b0add['AiuLx'](style,_0x5b0add[_0x4f978d(0x152)],ui[_0x4f978d(0x181)],ui[_0x4f978d(0x171)])+'\x0a'),_0x40068f[_0x4f978d(0x183)]('\x0a'),_0x5b0add['SFUdu'](renderOptions,_0xba4cc7,![]),process[_0x4f978d(0x17e)][_0x4f978d(0x141)+'de'](!![]),process['stdin']['resume'](),process[_0x4f978d(0x17e)][_0x4f978d(0x13a)+_0x4f978d(0x175)](_0x4f978d(0x148));function _0xa49be8(_0x31858e){const _0x10f7cf=_0x4f978d;process[_0x10f7cf(0x17e)][_0x10f7cf(0x141)+'de'](![]),process[_0x10f7cf(0x17e)][_0x10f7cf(0x137)](),process[_0x10f7cf(0x17e)][_0x10f7cf(0x151)+_0x10f7cf(0x133)](_0x5d2239[_0x10f7cf(0x14f)],_0x43274d);const _0x5507ca=_0x31858e?_0x5d2239['vgPVa'](style,'●',ui['green'],ui[_0x10f7cf(0x16b)])+'\x20'+_0x5d2239['vgPVa'](style,_0x5d2239['ltBWO'],ui[_0x10f7cf(0x144)],ui['bold']):_0x5d2239[_0x10f7cf(0x186)](style,'●',ui[_0x10f7cf(0x12e)],ui['bold'])+'\x20'+style('No',ui[_0x10f7cf(0x12e)],ui[_0x10f7cf(0x16b)]);_0x40068f[_0x10f7cf(0x183)]('\x1b['+_0x5d2239[_0x10f7cf(0x139)](OPTION_LINES,PRE_OPTION_LINES)+'A'),_0x40068f[_0x10f7cf(0x183)](_0x10f7cf(0x164)+_0x5d2239['nJCFN'](style,'✓',ui[_0x10f7cf(0x144)])+'\x20'+style(_0x12e49f,ui['dim'])+'\x20\x20'+_0x5507ca+'\x0a'),_0x40068f[_0x10f7cf(0x183)]('\x0a'),_0x40068f['write'](_0x10f7cf(0x154)),_0x5d2239[_0x10f7cf(0x142)](_0x493f6c,_0x31858e);}function _0x43274d(_0x2a79f4){const _0x57dca7=_0x4f978d,_0x2c4c2d=_0x5b0add[_0x57dca7(0x17a)]['split']('|');let _0x104ced=0x0;while(!![]){switch(_0x2c4c2d[_0x104ced++]){case'0':if(_0x5b0add[_0x57dca7(0x15a)](_0x2a79f4,_0x5b0add[_0x57dca7(0x14a)])||_0x5b0add['vZmUL'](_0x2a79f4,_0x5b0add[_0x57dca7(0x147)])){_0xba4cc7=!![],_0x5b0add[_0x57dca7(0x14d)](renderOptions,_0xba4cc7,!![]);return;}continue;case'1':if(_0x5b0add[_0x57dca7(0x165)](_0x2a79f4,'\x20')){_0xba4cc7=!_0xba4cc7,renderOptions(_0xba4cc7,!![]);return;}continue;case'2':_0x5b0add[_0x57dca7(0x15a)](_0x2a79f4,'\x03')&&(_0x40068f[_0x57dca7(0x183)]('\x0a'),process[_0x57dca7(0x172)](0x82));continue;case'3':if(_0x5b0add['VGdRK'](_0x2a79f4,'y')||_0x5b0add[_0x57dca7(0x17c)](_0x2a79f4,'Y')){_0x5b0add['xUflQ'](_0xa49be8,!![]);return;}continue;case'4':if(_0x5b0add[_0x57dca7(0x14e)](_0x2a79f4,'\x1b[B')||_0x5b0add['BUWxK'](_0x2a79f4,_0x57dca7(0x179))){_0xba4cc7=![],renderOptions(_0xba4cc7,!![]);return;}continue;case'5':if(_0x5b0add['oeBat'](_0x2a79f4,'n')||_0x2a79f4==='N'){_0x5b0add[_0x57dca7(0x153)](_0xa49be8,![]);return;}continue;case'6':if(_0x5b0add[_0x57dca7(0x17c)](_0x2a79f4,'\x0d')||_0x5b0add[_0x57dca7(0x165)](_0x2a79f4,'\x0a')){_0x5b0add[_0x57dca7(0x15f)](_0xa49be8,_0xba4cc7);return;}continue;}break;}}process['stdin']['on'](_0x5b0add[_0x4f978d(0x182)],_0x43274d);});}function _0x39a6(_0x12ba74,_0x2e4040){_0x12ba74=_0x12ba74-0x12b;const _0x144c68=_0x4be7();let _0x2f29d9=_0x144c68[_0x12ba74];return _0x2f29d9;}export async function askInput(_0x4e232c){const _0x2a9b05=_0x39a6,_0x84558f={'VuJEC':function(_0x357fb0,_0x4e8f66){return _0x357fb0(_0x4e8f66);}},_0x41892a=_0x84558f['VuJEC'](createInterface,{'input':_0xa09fe6,'output':_0x40068f}),_0x4c6cc9=await _0x41892a[_0x2a9b05(0x158)](_0x4e232c);return _0x41892a[_0x2a9b05(0x13e)](),_0x4c6cc9[_0x2a9b05(0x178)]();}function _0x4be7(){const _0x3a1954=['WJHhv','\x1b[J','QYSxp','xpQTr','search','question','\x20\x20\x20\x20','vZmUL','then','fCFTG','ase','3|5|6','xUflQ','225660dFZVax','toLowerC','↑↓\x20·\x20Ent','761307OMpbef','\x0d\x1b[2K\x20\x20','VGdRK','SNrsL','cyan','MwlUY','isTTY','RhVcc','bold','rlsiL','data','tor','construc','lDEbS','dim','exit','Waqlk','MVjfl','ing','TvZOj','Yes','trim','\x1b[C','oIYDE','(((.+)+)','oeBat','JAuyv','stdin','2776851miQYMR','apply','gray','iCkcm','write','\x0a\x20\x20','yellow','vgPVa','BkYlJ','defaultY','hDumj','AiuLx','red','toString','2wFOkkE','676264TCFDLY','viUMu','stener','1318836LwjVwy','\x1b[A','+)+$','pause','wVvGs','gmFzf','setEncod','1432ineMtm','uxQRt','jmOud','close','258734cbjBve','JHOau','setRawMo','OsjjY','\x1b[D','green','FAUzk','7294OImcig','IRJpQ','utf8','72ZVkufJ','BVNjP','replace','5XlNjJk','SFUdu','VrDwy','oTNvm','HKlxr','removeLi','DXVhm'];_0x4be7=function(){return _0x3a1954;};return _0x4be7();}export async function askEditableInput(_0x453f87,_0x5a9c3e){const _0xa287e2=_0x39a6,_0x4441e5={'njNLK':function(_0x171495,_0x21bc87){return _0x171495(_0x21bc87);}},_0x2dd771=_0x4441e5['njNLK'](createInterface,{'input':_0xa09fe6,'output':_0x40068f}),_0x2873dc=await _0x2dd771[_0xa287e2(0x158)](_0x453f87);_0x2dd771['close']();const _0x41fd4c=_0x2873dc[_0xa287e2(0x178)]();if(!_0x41fd4c)return _0x5a9c3e;return _0x41fd4c;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0xa9d675=_0x3ea4;(function(_0x15526c,_0x5901b1){const _0x499fe2=_0x3ea4,_0x5b763e=_0x15526c();while(!![]){try{const _0x5b11bf=parseInt(_0x499fe2(0x1ea))/0x1+-parseInt(_0x499fe2(0x1be))/0x2*(parseInt(_0x499fe2(0x238))/0x3)+parseInt(_0x499fe2(0x20e))/0x4*(parseInt(_0x499fe2(0x23b))/0x5)+parseInt(_0x499fe2(0x1cf))/0x6*(parseInt(_0x499fe2(0x205))/0x7)+-parseInt(_0x499fe2(0x1e7))/0x8*(-parseInt(_0x499fe2(0x1d7))/0x9)+-parseInt(_0x499fe2(0x1ee))/0xa+-parseInt(_0x499fe2(0x232))/0xb;if(_0x5b11bf===_0x5901b1)break;else _0x5b763e['push'](_0x5b763e['shift']());}catch(_0xc0ac74){_0x5b763e['push'](_0x5b763e['shift']());}}}(_0x2a5e,0x32b65));const _0x9bf896=(function(){const _0x9f77c7={'ruxyh':function(_0x3d5535){return _0x3d5535();},'VFwoW':function(_0x18896c,_0x1e0a1c){return _0x18896c-_0x1e0a1c;},'yxRKV':function(_0x4fe373,_0x1c3869){return _0x4fe373+_0x1c3869;},'rxlmp':function(_0x410ea8,_0x3490e1,_0x357208){return _0x410ea8(_0x3490e1,_0x357208);},'VobCB':function(_0x2d7057,_0x2f8a55,_0x285b7a,_0x233a46){return _0x2d7057(_0x2f8a55,_0x285b7a,_0x233a46);},'ewKNz':function(_0x311538,_0x53c5e5,_0x2adbfa){return _0x311538(_0x53c5e5,_0x2adbfa);},'vuvDh':function(_0x20f03c,_0x13eadb){return _0x20f03c+_0x13eadb;},'vfTET':function(_0x36117a,_0x51b63a){return _0x36117a+_0x51b63a;},'yJcQz':function(_0x2ee96e,_0x14161b,_0x2dfb13){return _0x2ee96e(_0x14161b,_0x2dfb13);},'ipTyB':function(_0x47f9f1,_0x1794bb,_0x264e79){return _0x47f9f1(_0x1794bb,_0x264e79);},'jceMO':function(_0x4f927f,_0x34cdc5){return _0x4f927f+_0x34cdc5;},'iDmUM':function(_0x55be89,_0x51b8ec,_0x59203d,_0x2af5d4){return _0x55be89(_0x51b8ec,_0x59203d,_0x2af5d4);},'yDCdz':function(_0x438175,_0x2e93bc){return _0x438175+_0x2e93bc;},'uJJgK':function(_0x22dbb3,_0x25e1b3){return _0x22dbb3===_0x25e1b3;},'Lwoud':'KQjCg'};let _0x5f589a=!![];return function(_0x4ce586,_0x4d1498){const _0x3e04ca=_0x3ea4;if(_0x9f77c7[_0x3e04ca(0x1f7)](_0x9f77c7[_0x3e04ca(0x228)],_0x9f77c7[_0x3e04ca(0x228)])){const _0x55af17=_0x5f589a?function(){const _0xd24b24=_0x3e04ca;if(_0x4d1498){const _0x5ad3e5=_0x4d1498[_0xd24b24(0x1c8)](_0x4ce586,arguments);return _0x4d1498=null,_0x5ad3e5;}}:function(){};return _0x5f589a=![],_0x55af17;}else{const _0x4b0757=_0x9f77c7[_0x3e04ca(0x227)](_0x349443),_0x562121=_0x3e04ca(0x1e9),_0x18bf8b=_0x2fd502['h']['repeat'](_0x426767[_0x3e04ca(0x1e4)](0x0,_0x9f77c7[_0x3e04ca(0x220)](_0x9f77c7[_0x3e04ca(0x220)](_0x4b0757,_0x562121['length']),0x2))),_0x2dbce6=_0x2377e5['h'][_0x3e04ca(0x1ec)](_0x1295f7['max'](0x0,_0x9f77c7['VFwoW'](_0x4b0757,0x2)));_0x527892[_0x3e04ca(0x212)](),_0x408545[_0x3e04ca(0x212)](_0x9f77c7['yxRKV'](_0x9f77c7[_0x3e04ca(0x1f6)](_0x471bca,_0x9f77c7[_0x3e04ca(0x1f5)](_0x2a0d86['tl'],_0x3764ec['h']),_0x4d6037[_0x3e04ca(0x218)])+_0x9f77c7[_0x3e04ca(0x1fc)](_0x25dfe4,_0x562121,_0x5147d0[_0x3e04ca(0x218)],_0x592890[_0x3e04ca(0x22b)]),_0x9f77c7[_0x3e04ca(0x1e8)](_0x2cb9e4,_0x18bf8b,_0x414cc4[_0x3e04ca(0x218)]))),_0x51638d[_0x3e04ca(0x212)](_0x9f77c7[_0x3e04ca(0x1da)](_0x5b8b7b(_0x9f77c7['vfTET'](_0x4815f5['v'],'\x20'),_0x3e6da9[_0x3e04ca(0x218)]),'\x20'+_0x9f77c7[_0x3e04ca(0x1fc)](_0x2f5f16,_0x128644[_0x3e04ca(0x208)],_0x234818[_0x3e04ca(0x218)],_0x1ac8c6[_0x3e04ca(0x22b)])+'\x20'+_0x9f77c7[_0x3e04ca(0x20a)](_0x5a1388,_0x51a692,_0x3dbb0b['red']))),_0x170710&&_0x291059['error'](_0x9f77c7[_0x3e04ca(0x1c3)](_0x53ae02,_0x9f77c7[_0x3e04ca(0x21a)](_0x2aa701['v'],'\x20'),_0x24e4a8['red'])+(_0x3e04ca(0x1f0)+_0x451b3a(_0xac8813[_0x3e04ca(0x23c)],_0x2f75e0['gray'])+'\x20'+_0x9f77c7[_0x3e04ca(0x1f2)](_0x311a04,_0xca5d48,_0x2f6628['gray'],_0x2ce5d2[_0x3e04ca(0x203)]))),_0x1e423a[_0x3e04ca(0x212)](_0x9f77c7[_0x3e04ca(0x1f6)](_0x2ad21f,_0x9f77c7['yDCdz'](_0x49ad1f['bl']+_0x2dbce6,_0x5917cf['br']),_0x52dab0[_0x3e04ca(0x218)])),_0x1f5418['error'](),_0x3196dc[_0x3e04ca(0x21c)](0x1);}};}()),_0x5ba101=_0x9bf896(this,function(){const _0x3e9623=_0x3ea4,_0x1d8ac9={'kPWgI':'(((.+)+)'+_0x3e9623(0x226)};return _0x5ba101[_0x3e9623(0x234)]()[_0x3e9623(0x1f4)](_0x1d8ac9['kPWgI'])[_0x3e9623(0x234)]()[_0x3e9623(0x1e1)+'tor'](_0x5ba101)['search']('(((.+)+)'+_0x3e9623(0x226));});_0x5ba101();export const ui={'reset':_0xa9d675(0x1ff),'bold':_0xa9d675(0x1eb),'dim':_0xa9d675(0x1fe),'italic':_0xa9d675(0x221),'underline':_0xa9d675(0x1f3),'cyan':_0xa9d675(0x1ce),'white':_0xa9d675(0x211),'green':'\x1b[32m','yellow':'\x1b[33m','red':_0xa9d675(0x21e),'magenta':'\x1b[35m','gray':_0xa9d675(0x1e2)};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};export function style(_0x21e29d,..._0xa0fe79){const _0x4121c2=_0xa9d675;return''+_0xa0fe79['join']('')+_0x21e29d+ui[_0x4121c2(0x20c)];}function termWidth(){const _0x3c11bd=_0xa9d675;return Math[_0x3c11bd(0x1e4)](0x28,Math[_0x3c11bd(0x1c9)](process[_0x3c11bd(0x207)][_0x3c11bd(0x217)]||0x50,0x58));}function _0x2a5e(){const _0x5ac36e=['TGfhi','AFPfA','mnrmS','oKAkD','\x0d\x1b[2K','2255308NIYiPd','warn','toString','yellow','pcsiT','LYcrf','1176597EYAHFF','khQpO','TMejA','189370mVKOPf','arrow','PuhuC','ovmmb','2TijXBf','CjbeM','LiZIW','ooiuL','ubRyf','ipTyB','QtDEv','sUJED','gray','VsAfi','apply','min','rVWSj','bullet','DQNUG','RBmTW','\x1b[36m','6ZojGPK','esDkr','klsPg','green','RRiWU','ELlPd','sbZrD','reduce','541611KJXMmo','TlrPu','iNxfm','vuvDh','cyan','LKGfn','isTTY','treeLast','nfyvT','tick','construc','\x1b[90m','padEnd','max','bmHSs','LFdVH','48ESGPcl','ewKNz','\x20Error\x20','167178gRHesD','\x1b[1m','repeat','FMTPB','1263810msQDUK','gcnCV','\x20\x20\x20','write','iDmUM','\x1b[4m','search','yxRKV','rxlmp','uJJgK','RCMgb','XIDCy','PxDxa','vXXWC','VobCB','log','\x1b[2m','\x1b[0m','bulZq','jvyvu','NKdtM','italic','VDejl','965685SpAQUi','eWcjO','stdout','cross','dOCPd','yJcQz','QzxOv','reset','SVMHQ','28kKcDWv','soXsa','length','\x1b[37m','error','Failed','message','uetxu','LKcRh','columns','red','(none)','jceMO','SiLRF','exit','dim','\x1b[31m','nXmPE','VFwoW','\x1b[3m','oMrkd','\x0d\x20\x20','ltoZN','Oooko','+)+$','ruxyh','Lwoud','dJVaC','treeItem','bold','tbufR'];_0x2a5e=function(){return _0x5ac36e;};return _0x2a5e();}export function section(_0x534769){const _0x4a5e3e=_0xa9d675,_0x2a8b05={'LYcrf':function(_0x18a85e,_0x4ce878){return _0x18a85e-_0x4ce878;},'eWcjO':function(_0x524795){return _0x524795();},'ovmmb':function(_0x38acd4,_0x14338a){return _0x38acd4+_0x14338a;},'nfyvT':function(_0x2350c4,_0x4fbe4e){return _0x2350c4+_0x4fbe4e;},'bmHSs':function(_0x3cfeab,_0x13b2ee,_0x16cc60){return _0x3cfeab(_0x13b2ee,_0x16cc60);},'TlrPu':function(_0x10024d,_0x1f2455,_0xe9bc3c){return _0x10024d(_0x1f2455,_0xe9bc3c);}},_0x302f9a='\x20'+_0x534769+'\x20',_0x56c852=symbols['h'][_0x4a5e3e(0x1ec)](Math['max'](0x0,_0x2a8b05[_0x4a5e3e(0x237)](_0x2a8b05[_0x4a5e3e(0x206)](termWidth),_0x302f9a['length'])-0x2));console[_0x4a5e3e(0x1fd)](),console[_0x4a5e3e(0x1fd)](_0x2a8b05[_0x4a5e3e(0x1bd)](style(_0x2a8b05[_0x4a5e3e(0x1df)](symbols['tl'],symbols['h']),ui[_0x4a5e3e(0x1c6)])+_0x2a8b05[_0x4a5e3e(0x1e5)](style,_0x302f9a,ui[_0x4a5e3e(0x22b)]),_0x2a8b05[_0x4a5e3e(0x1d8)](style,_0x56c852,ui[_0x4a5e3e(0x1c6)])));}export function ok(_0x5261a5,_0x2e30a5){const _0x551737=_0xa9d675,_0x52aa4d={'LKGfn':function(_0x352e77,_0x5d4989,_0x421afe){return _0x352e77(_0x5d4989,_0x421afe);},'Oooko':function(_0x594f18,_0xb8631f,_0x1670b8,_0xf16b06){return _0x594f18(_0xb8631f,_0x1670b8,_0xf16b06);},'QPjLb':function(_0x48478d,_0x4197f6,_0x39d11b){return _0x48478d(_0x4197f6,_0x39d11b);}},_0x16647e=_0x52aa4d[_0x551737(0x1dc)](style,symbols[_0x551737(0x1e0)],ui[_0x551737(0x1d2)])+'\x20'+_0x52aa4d[_0x551737(0x225)](style,_0x5261a5,ui[_0x551737(0x1d2)],ui[_0x551737(0x22b)]);return _0x2e30a5?_0x16647e+'\x20\x20'+_0x52aa4d['QPjLb'](style,_0x2e30a5,ui[_0x551737(0x1c6)]):_0x16647e;}export function warn(_0x302d00,_0x376bf8){const _0x9866fe=_0xa9d675,_0x371837={'ELlPd':function(_0x2554ce,_0x12a5a7,_0x199c2f,_0x2c75c3){return _0x2554ce(_0x12a5a7,_0x199c2f,_0x2c75c3);},'zmayD':function(_0x2bb225,_0xd0fd87,_0xc3a6bc){return _0x2bb225(_0xd0fd87,_0xc3a6bc);}},_0x961d57=style(symbols[_0x9866fe(0x233)],ui[_0x9866fe(0x235)],ui[_0x9866fe(0x22b)])+'\x20'+_0x371837[_0x9866fe(0x1d4)](style,_0x302d00,ui[_0x9866fe(0x235)],ui[_0x9866fe(0x22b)]);return _0x376bf8?_0x961d57+'\x20\x20'+_0x371837['zmayD'](style,_0x376bf8,ui[_0x9866fe(0x1c6)]):_0x961d57;}export function bad(_0x2d2123,_0x1e6b30){const _0x3cd50e=_0xa9d675,_0x5b3836={'iNxfm':function(_0x1a2e35,_0xd08657,_0x309f7c,_0x254c2e){return _0x1a2e35(_0xd08657,_0x309f7c,_0x254c2e);},'Gmxto':function(_0x451069,_0xd38b07,_0x1db605){return _0x451069(_0xd38b07,_0x1db605);}},_0x18fc7f=_0x5b3836[_0x3cd50e(0x1d9)](style,symbols[_0x3cd50e(0x208)],ui[_0x3cd50e(0x218)],ui[_0x3cd50e(0x22b)])+'\x20'+style(_0x2d2123,ui[_0x3cd50e(0x218)],ui[_0x3cd50e(0x22b)]);return _0x1e6b30?_0x18fc7f+'\x20\x20'+_0x5b3836['Gmxto'](style,_0x1e6b30,ui[_0x3cd50e(0x1c6)]):_0x18fc7f;}export function info(_0x170dae,_0x5976ff){const _0x1112cf=_0xa9d675,_0x46e41d={'xEJLe':function(_0x3c102c,_0x5cb196,_0x5d218b){return _0x3c102c(_0x5cb196,_0x5d218b);},'qOyRx':function(_0x2b6bac,_0x13965a,_0x583132,_0x1876af){return _0x2b6bac(_0x13965a,_0x583132,_0x1876af);}},_0x3122ac=_0x46e41d['xEJLe'](style,symbols[_0x1112cf(0x1cb)],ui[_0x1112cf(0x1db)])+'\x20'+_0x46e41d['qOyRx'](style,_0x170dae,ui[_0x1112cf(0x1db)],ui[_0x1112cf(0x22b)]);return _0x5976ff?_0x3122ac+'\x20\x20'+_0x46e41d['xEJLe'](style,_0x5976ff,ui[_0x1112cf(0x1c6)]):_0x3122ac;}export function printKeyValues(_0x58f079){const _0x195eb0=_0xa9d675,_0x39ebca={'QtDEv':function(_0x7439a3,_0x1a7495){return _0x7439a3===_0x1a7495;},'oMrkd':function(_0x480693,_0x3c2f4e){return _0x480693===_0x3c2f4e;},'rVcyw':function(_0x464657,_0x3c2cec){return _0x464657-_0x3c2cec;},'soXsa':function(_0xbc3d0d,_0x5a1cc1,_0x5f02e0,_0x2ad8fc){return _0xbc3d0d(_0x5a1cc1,_0x5f02e0,_0x2ad8fc);}};if(_0x39ebca[_0x195eb0(0x1c4)](_0x58f079[_0x195eb0(0x210)],0x0))return;const _0xf34471=_0x58f079[_0x195eb0(0x1d6)]((_0x11a8a0,_0x256a80)=>Math[_0x195eb0(0x1e4)](_0x11a8a0,_0x256a80['key'][_0x195eb0(0x210)]),0x0);for(let _0x99f961=0x0;_0x99f961<_0x58f079[_0x195eb0(0x210)];_0x99f961++){const _0x4c6b47=_0x39ebca[_0x195eb0(0x222)](_0x99f961,_0x39ebca['rVcyw'](_0x58f079[_0x195eb0(0x210)],0x1)),_0x3a447a=style(_0x4c6b47?symbols[_0x195eb0(0x1de)]:symbols[_0x195eb0(0x22a)],ui[_0x195eb0(0x1c6)]),_0x352036=_0x39ebca[_0x195eb0(0x20f)](style,_0x58f079[_0x99f961]['key'][_0x195eb0(0x1e3)](_0xf34471),ui['gray'],ui[_0x195eb0(0x203)]);console['log']('\x20\x20'+_0x3a447a+'\x20'+_0x352036+'\x20\x20'+_0x58f079[_0x99f961]['value']);}}export function printList(_0x308390,_0x1b2b73){const _0x91df65=_0xa9d675,_0x14c49c={'SiLRF':function(_0x67b03c,_0x260188,_0x266d0f){return _0x67b03c(_0x260188,_0x266d0f);},'kDuUj':function(_0x1403a1,_0x14155c){return _0x1403a1===_0x14155c;},'PuhuC':function(_0x2206df,_0x12599a,_0x4730f0){return _0x2206df(_0x12599a,_0x4730f0);},'TGfhi':function(_0x494433,_0x456324){return _0x494433<_0x456324;},'VsAfi':function(_0x1601eb,_0x1c84a8){return _0x1601eb-_0x1c84a8;},'FFQir':function(_0x2af1dc,_0x1e737e,_0x3059df){return _0x2af1dc(_0x1e737e,_0x3059df);}};console[_0x91df65(0x1fd)]('\x20\x20'+_0x14c49c[_0x91df65(0x21b)](style,_0x308390,ui[_0x91df65(0x22b)]));if(_0x14c49c['kDuUj'](_0x1b2b73[_0x91df65(0x210)],0x0)){console[_0x91df65(0x1fd)]('\x20\x20'+_0x14c49c[_0x91df65(0x23d)](style,symbols[_0x91df65(0x1de)],ui[_0x91df65(0x1c6)])+'\x20'+style(_0x91df65(0x219),ui[_0x91df65(0x1c6)],ui[_0x91df65(0x203)]));return;}for(let _0x4955d5=0x0;_0x14c49c[_0x91df65(0x22d)](_0x4955d5,_0x1b2b73[_0x91df65(0x210)]);_0x4955d5++){const _0x2c29dd=_0x14c49c['kDuUj'](_0x4955d5,_0x14c49c[_0x91df65(0x1c7)](_0x1b2b73[_0x91df65(0x210)],0x1)),_0x3ed0c5=_0x14c49c[_0x91df65(0x23d)](style,_0x2c29dd?symbols[_0x91df65(0x1de)]:symbols[_0x91df65(0x22a)],ui['gray']);console[_0x91df65(0x1fd)]('\x20\x20'+_0x3ed0c5+'\x20'+_0x14c49c['FFQir'](style,_0x1b2b73[_0x4955d5],ui[_0x91df65(0x21d)]));}}export function warnBlock(_0x17ef0f){const _0x29687c=_0xa9d675,_0x302754={'mnrmS':function(_0x3cf4cc,_0x338e72){return _0x3cf4cc-_0x338e72;},'oKAkD':function(_0x558b5a,_0x5ca9b5){return _0x558b5a-_0x5ca9b5;},'TMejA':function(_0x27c7d3,_0x49c9b5){return _0x27c7d3+_0x49c9b5;},'CjbeM':function(_0x506b2e,_0x109b4b,_0x234db7){return _0x506b2e(_0x109b4b,_0x234db7);},'VDejl':function(_0x1bef7d,_0x5a87ff){return _0x1bef7d+_0x5a87ff;},'ooiuL':function(_0x3b6c17,_0x183e03,_0x3fa0a4,_0x255beb){return _0x3b6c17(_0x183e03,_0x3fa0a4,_0x255beb);},'QzxOv':function(_0x41dd59,_0x688c88,_0x44df28,_0x15349f){return _0x41dd59(_0x688c88,_0x44df28,_0x15349f);},'ubRyf':function(_0x2f52ff,_0x3e7e30,_0x469b0c){return _0x2f52ff(_0x3e7e30,_0x469b0c);}},_0x27d0ca=termWidth(),_0x5f0625='\x20Warning'+'\x20',_0x2c82df=symbols['h'][_0x29687c(0x1ec)](Math[_0x29687c(0x1e4)](0x0,_0x302754[_0x29687c(0x22f)](_0x302754[_0x29687c(0x230)](_0x27d0ca,_0x5f0625['length']),0x2))),_0xacf59c=symbols['h'][_0x29687c(0x1ec)](Math[_0x29687c(0x1e4)](0x0,_0x27d0ca-0x2));console[_0x29687c(0x233)](),console[_0x29687c(0x233)](_0x302754[_0x29687c(0x23a)](_0x302754[_0x29687c(0x23a)](_0x302754[_0x29687c(0x1bf)](style,_0x302754[_0x29687c(0x204)](symbols['tl'],symbols['h']),ui['yellow']),_0x302754[_0x29687c(0x1c1)](style,_0x5f0625,ui['yellow'],ui[_0x29687c(0x22b)])),_0x302754[_0x29687c(0x1bf)](style,_0x2c82df,ui['yellow']))),console['warn'](_0x302754[_0x29687c(0x23a)](style(_0x302754[_0x29687c(0x23a)](symbols['v'],'\x20'),ui['yellow']),'\x20'+_0x302754[_0x29687c(0x20b)](style,symbols['warn'],ui['yellow'],ui['bold'])+'\x20'+_0x302754[_0x29687c(0x1c2)](style,_0x17ef0f,ui[_0x29687c(0x235)]))),console[_0x29687c(0x233)](style(_0x302754[_0x29687c(0x23a)](symbols['bl'],_0xacf59c)+symbols['br'],ui[_0x29687c(0x235)])),console[_0x29687c(0x233)]();}function _0x3ea4(_0x2a9ba0,_0x12e8ca){_0x2a9ba0=_0x2a9ba0-0x1bd;const _0x1d5622=_0x2a5e();let _0x5ba101=_0x1d5622[_0x2a9ba0];return _0x5ba101;}export function failAndExit(_0xfb9598,_0x11c352){const _0x3132ad=_0xa9d675,_0x298c11={'dJVaC':function(_0x8cb506){return _0x8cb506();},'khQpO':function(_0x1f7327,_0x931258){return _0x1f7327-_0x931258;},'LFdVH':function(_0x361532,_0x462484){return _0x361532-_0x462484;},'jvyvu':function(_0x2f7a27,_0x5504a6){return _0x2f7a27+_0x5504a6;},'zJtNF':function(_0x40f79e,_0x269773){return _0x40f79e+_0x269773;},'PxDxa':function(_0x5a8fea,_0x2f10c3,_0xcfe96){return _0x5a8fea(_0x2f10c3,_0xcfe96);},'RCMgb':function(_0x15aed7,_0x37a7c9,_0x233f82,_0x1e7325){return _0x15aed7(_0x37a7c9,_0x233f82,_0x1e7325);},'rVWSj':function(_0x4eb8c1,_0x150e24,_0x5bb34f){return _0x4eb8c1(_0x150e24,_0x5bb34f);},'FMTPB':function(_0x462454,_0x460fcd){return _0x462454+_0x460fcd;},'esDkr':function(_0x12a918,_0x5de62a,_0x4a2879,_0x3f44a6){return _0x12a918(_0x5de62a,_0x4a2879,_0x3f44a6);},'vXXWC':function(_0x3fc3bd,_0x202819,_0x5c0ab9){return _0x3fc3bd(_0x202819,_0x5c0ab9);},'lzHrG':function(_0x4dd967,_0xd83526){return _0x4dd967+_0xd83526;}},_0x5aaef0=_0x298c11[_0x3132ad(0x229)](termWidth),_0x4dadc5=_0x3132ad(0x1e9),_0xed5880=symbols['h'][_0x3132ad(0x1ec)](Math[_0x3132ad(0x1e4)](0x0,_0x298c11[_0x3132ad(0x239)](_0x298c11[_0x3132ad(0x1e6)](_0x5aaef0,_0x4dadc5[_0x3132ad(0x210)]),0x2))),_0x2b7f37=symbols['h'][_0x3132ad(0x1ec)](Math[_0x3132ad(0x1e4)](0x0,_0x298c11['khQpO'](_0x5aaef0,0x2)));console[_0x3132ad(0x212)](),console['error'](_0x298c11['jvyvu'](_0x298c11['zJtNF'](_0x298c11[_0x3132ad(0x1fa)](style,_0x298c11[_0x3132ad(0x201)](symbols['tl'],symbols['h']),ui[_0x3132ad(0x218)]),_0x298c11[_0x3132ad(0x1f8)](style,_0x4dadc5,ui['red'],ui[_0x3132ad(0x22b)])),_0x298c11[_0x3132ad(0x1ca)](style,_0xed5880,ui[_0x3132ad(0x218)]))),console['error'](_0x298c11['FMTPB'](_0x298c11[_0x3132ad(0x1ca)](style,_0x298c11[_0x3132ad(0x1ed)](symbols['v'],'\x20'),ui[_0x3132ad(0x218)]),'\x20'+_0x298c11[_0x3132ad(0x1d0)](style,symbols[_0x3132ad(0x208)],ui[_0x3132ad(0x218)],ui[_0x3132ad(0x22b)])+'\x20'+_0x298c11[_0x3132ad(0x1ca)](style,_0xfb9598,ui[_0x3132ad(0x218)]))),_0x11c352&&console['error'](_0x298c11[_0x3132ad(0x1ed)](_0x298c11['PxDxa'](style,symbols['v']+'\x20',ui[_0x3132ad(0x218)]),'\x20\x20\x20'+style(symbols[_0x3132ad(0x23c)],ui[_0x3132ad(0x1c6)])+'\x20'+_0x298c11[_0x3132ad(0x1d0)](style,_0x11c352,ui[_0x3132ad(0x1c6)],ui[_0x3132ad(0x203)]))),console['error'](_0x298c11[_0x3132ad(0x1fb)](style,_0x298c11['lzHrG'](symbols['bl'],_0x2b7f37)+symbols['br'],ui[_0x3132ad(0x218)])),console[_0x3132ad(0x212)](),process[_0x3132ad(0x21c)](0x1);}export async function withProgress(_0x24cb75,_0x2a7078){const _0x1a8e1a=_0xa9d675,_0x3ce873={'DQNUG':function(_0x42277b,_0x534cbf){return _0x42277b-_0x534cbf;},'nXmPE':function(_0x2761cd){return _0x2761cd();},'LiZIW':function(_0x212d42,_0x45b666){return _0x212d42+_0x45b666;},'pcsiT':function(_0x587d14,_0x53d927,_0x3f4713){return _0x587d14(_0x53d927,_0x3f4713);},'uXtIx':function(_0x210b42,_0x97c4b6,_0x1a962f){return _0x210b42(_0x97c4b6,_0x1a962f);},'LKcRh':function(_0x426539,_0x3ac0c0,_0x16e1f1){return _0x426539(_0x3ac0c0,_0x16e1f1);},'tbufR':function(_0x501215,_0x58e9f6){return _0x501215%_0x58e9f6;},'yyIoL':function(_0x2127ba){return _0x2127ba();},'sbZrD':function(_0x14da77,_0x553f3f){return _0x14da77!==_0x553f3f;},'RBmTW':_0x1a8e1a(0x215),'NKdtM':_0x1a8e1a(0x1d1),'SVMHQ':function(_0x3b6eb3,_0x106f72,_0x55dce5){return _0x3b6eb3(_0x106f72,_0x55dce5);},'AFPfA':function(_0x4cb0e6,_0xbaf28e){return _0x4cb0e6(_0xbaf28e);},'sUJED':_0x1a8e1a(0x231),'RRiWU':function(_0x30747a,_0x1af2a1){return _0x30747a(_0x1af2a1);},'dOCPd':'Done','gcnCV':function(_0xcfa0d9,_0x256514){return _0xcfa0d9===_0x256514;},'bulZq':function(_0x59ea50,_0x41ff50){return _0x59ea50(_0x41ff50);},'OSszc':function(_0x454673,_0x30823c){return _0x454673(_0x30823c);},'ltoZN':_0x1a8e1a(0x213)};if(!process[_0x1a8e1a(0x207)][_0x1a8e1a(0x1dd)]){if(_0x3ce873[_0x1a8e1a(0x1d5)](_0x3ce873[_0x1a8e1a(0x1cd)],_0x3ce873[_0x1a8e1a(0x202)]))return console[_0x1a8e1a(0x1fd)](_0x24cb75),_0x3ce873[_0x1a8e1a(0x21f)](_0x2a7078);else{const _0x5e193c='\x20'+_0xb9a051+'\x20',_0x41c68c=_0x4bbbf0['h'][_0x1a8e1a(0x1ec)](_0x3a2278[_0x1a8e1a(0x1e4)](0x0,jtvMwi['DQNUG'](jtvMwi[_0x1a8e1a(0x1cc)](jtvMwi[_0x1a8e1a(0x21f)](_0x4f3229),_0x5e193c[_0x1a8e1a(0x210)]),0x2)));_0xcf4d1f[_0x1a8e1a(0x1fd)](),_0x3d1e48[_0x1a8e1a(0x1fd)](jtvMwi['LiZIW'](jtvMwi['pcsiT'](_0x1fccba,jtvMwi[_0x1a8e1a(0x1c0)](_0x482333['tl'],_0x4bd73c['h']),_0x16ca94[_0x1a8e1a(0x1c6)])+jtvMwi['uXtIx'](_0x3df54f,_0x5e193c,_0x57e4fa['bold']),jtvMwi[_0x1a8e1a(0x216)](_0x6cd036,_0x41c68c,_0x5d554a[_0x1a8e1a(0x1c6)])));}}const _0x3cf4b9=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x3c859a=0x0;const _0xc96661=()=>{const _0x50b38f=_0x1a8e1a,_0x4b0649=style(_0x3cf4b9[_0x3ce873[_0x50b38f(0x22c)](_0x3c859a,_0x3cf4b9[_0x50b38f(0x210)])],ui[_0x50b38f(0x1db)]);process[_0x50b38f(0x207)][_0x50b38f(0x1f1)](_0x50b38f(0x223)+_0x4b0649+'\x20\x20'+_0x3ce873[_0x50b38f(0x236)](style,_0x24cb75,ui[_0x50b38f(0x21d)])),_0x3c859a+=0x1;};_0x3ce873[_0x1a8e1a(0x21f)](_0xc96661);const _0x1e158f=_0x3ce873[_0x1a8e1a(0x20d)](setInterval,_0xc96661,0x50);try{const _0x214313=await _0x2a7078();return _0x3ce873[_0x1a8e1a(0x22e)](clearInterval,_0x1e158f),process['stdout'][_0x1a8e1a(0x1f1)](_0x3ce873['sUJED']),console['log']('\x20\x20'+_0x3ce873[_0x1a8e1a(0x1d3)](ok,_0x3ce873[_0x1a8e1a(0x209)])+'\x20\x20'+_0x3ce873['LKcRh'](style,_0x24cb75,ui[_0x1a8e1a(0x21d)])),_0x214313;}catch(_0x452328){if(_0x3ce873[_0x1a8e1a(0x1ef)]('XIDCy',_0x1a8e1a(0x1f9))){_0x3ce873[_0x1a8e1a(0x200)](clearInterval,_0x1e158f),process[_0x1a8e1a(0x207)][_0x1a8e1a(0x1f1)](_0x3ce873[_0x1a8e1a(0x1c5)]);const _0x1ecd3e=_0x452328 instanceof Error?_0x452328[_0x1a8e1a(0x214)]:_0x3ce873['OSszc'](String,_0x452328);console[_0x1a8e1a(0x212)]('\x20\x20'+bad(_0x3ce873[_0x1a8e1a(0x224)])+'\x20\x20'+_0x3ce873[_0x1a8e1a(0x236)](style,_0x1ecd3e,ui[_0x1a8e1a(0x21d)]));throw _0x452328;}else return _0xa1bf34[_0x1a8e1a(0x1fd)](_0x1c06bb),_0x3ce873['yyIoL'](_0x3baf42);}}
1
+ const _0x55eaf5=_0x4306;(function(_0x1fe17e,_0x2065a1){const _0x5101d4=_0x4306,_0x15d41c=_0x1fe17e();while(!![]){try{const _0x54842e=-parseInt(_0x5101d4(0x185))/0x1*(parseInt(_0x5101d4(0x1af))/0x2)+parseInt(_0x5101d4(0x1db))/0x3+-parseInt(_0x5101d4(0x17f))/0x4+-parseInt(_0x5101d4(0x1ba))/0x5*(parseInt(_0x5101d4(0x179))/0x6)+-parseInt(_0x5101d4(0x1a5))/0x7+-parseInt(_0x5101d4(0x1ae))/0x8*(parseInt(_0x5101d4(0x1d7))/0x9)+parseInt(_0x5101d4(0x1cd))/0xa;if(_0x54842e===_0x2065a1)break;else _0x15d41c['push'](_0x15d41c['shift']());}catch(_0x4e9a56){_0x15d41c['push'](_0x15d41c['shift']());}}}(_0x26c8,0x6506c));const _0x2df670=(function(){let _0xafcb8c=!![];return function(_0x184fd2,_0x96632f){const _0x62ba7b=_0xafcb8c?function(){const _0x435d30=_0x4306;if(_0x96632f){const _0x3edab9=_0x96632f[_0x435d30(0x1b2)](_0x184fd2,arguments);return _0x96632f=null,_0x3edab9;}}:function(){};return _0xafcb8c=![],_0x62ba7b;};}()),_0x1db50d=_0x2df670(this,function(){const _0x4d1425=_0x4306,_0x1dc88c={'fFtZs':_0x4d1425(0x184)+_0x4d1425(0x175)};return _0x1db50d[_0x4d1425(0x1cb)]()[_0x4d1425(0x189)](_0x1dc88c[_0x4d1425(0x1d5)])[_0x4d1425(0x1cb)]()['construc'+_0x4d1425(0x1a1)](_0x1db50d)['search'](_0x1dc88c['fFtZs']);});_0x1db50d();export const ui={'reset':_0x55eaf5(0x1c0),'bold':_0x55eaf5(0x1d2),'dim':_0x55eaf5(0x19d),'italic':'\x1b[3m','underline':_0x55eaf5(0x1c1),'cyan':_0x55eaf5(0x18a),'white':_0x55eaf5(0x1b8),'green':_0x55eaf5(0x1c9),'yellow':_0x55eaf5(0x1d9),'red':'\x1b[31m','magenta':_0x55eaf5(0x1c4),'gray':'\x1b[90m'};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};export function style(_0x3c95fa,..._0x2af1a4){const _0x19f217=_0x55eaf5;return''+_0x2af1a4[_0x19f217(0x1de)]('')+_0x3c95fa+ui[_0x19f217(0x1b9)];}function termWidth(){const _0xa34596=_0x55eaf5;return Math[_0xa34596(0x19e)](0x28,Math[_0xa34596(0x1ac)](process['stdout']['columns']||0x50,0x58));}export function section(_0x47da0c){const _0x578a64=_0x55eaf5,_0x12cc60={'oBQCH':function(_0x1ec1c2,_0x4a0eec){return _0x1ec1c2-_0x4a0eec;},'sWYOt':function(_0x23c5a9){return _0x23c5a9();},'JEPxi':function(_0x48dbce,_0x785903){return _0x48dbce+_0x785903;},'RthJM':function(_0x5adb94,_0x40a97e,_0x48bd5d){return _0x5adb94(_0x40a97e,_0x48bd5d);}},_0x39a040='\x20'+_0x47da0c+'\x20',_0x111a68=symbols['h'][_0x578a64(0x1cf)](Math[_0x578a64(0x19e)](0x0,_0x12cc60['oBQCH'](_0x12cc60['oBQCH'](_0x12cc60['sWYOt'](termWidth),_0x39a040[_0x578a64(0x1b5)]),0x2)));console[_0x578a64(0x1dc)](),console['log'](_0x12cc60['JEPxi'](_0x12cc60['RthJM'](style,symbols['tl']+symbols['h'],ui[_0x578a64(0x1a0)]),style(_0x39a040,ui[_0x578a64(0x1a9)]))+_0x12cc60[_0x578a64(0x1ca)](style,_0x111a68,ui[_0x578a64(0x1a0)]));}export function ok(_0x45f225,_0x8a8ac0){const _0x4d0314=_0x55eaf5,_0x303713={'yZdnH':function(_0x328797,_0x13c23e,_0x19abeb){return _0x328797(_0x13c23e,_0x19abeb);},'obisE':function(_0x25fee8,_0x58e74b,_0x3b73a2,_0x474d43){return _0x25fee8(_0x58e74b,_0x3b73a2,_0x474d43);}},_0x115ffc=_0x303713[_0x4d0314(0x1d4)](style,symbols[_0x4d0314(0x18e)],ui[_0x4d0314(0x198)])+'\x20'+_0x303713[_0x4d0314(0x180)](style,_0x45f225,ui[_0x4d0314(0x198)],ui[_0x4d0314(0x1a9)]);return _0x8a8ac0?_0x115ffc+'\x20\x20'+style(_0x8a8ac0,ui[_0x4d0314(0x1a0)]):_0x115ffc;}export function warn(_0x328384,_0x4cc59e){const _0x2ee426=_0x55eaf5,_0x2cc285={'gbjTw':function(_0x12a0dc,_0x31be6d,_0x37ac17,_0x34c314){return _0x12a0dc(_0x31be6d,_0x37ac17,_0x34c314);},'NSRKS':function(_0x379731,_0x5a6cfb,_0x3b879c){return _0x379731(_0x5a6cfb,_0x3b879c);}},_0x16aa7f=style(symbols[_0x2ee426(0x1da)],ui['yellow'],ui[_0x2ee426(0x1a9)])+'\x20'+_0x2cc285[_0x2ee426(0x1aa)](style,_0x328384,ui['yellow'],ui[_0x2ee426(0x1a9)]);return _0x4cc59e?_0x16aa7f+'\x20\x20'+_0x2cc285['NSRKS'](style,_0x4cc59e,ui[_0x2ee426(0x1a0)]):_0x16aa7f;}export function bad(_0x2e7074,_0x291ac9){const _0xbb76a7=_0x55eaf5,_0x3bc886={'ydjWK':function(_0x3ec57d,_0x40a1be,_0x2e1d57,_0x2446e6){return _0x3ec57d(_0x40a1be,_0x2e1d57,_0x2446e6);}},_0x3cc287=style(symbols[_0xbb76a7(0x1a3)],ui['red'],ui[_0xbb76a7(0x1a9)])+'\x20'+_0x3bc886[_0xbb76a7(0x182)](style,_0x2e7074,ui[_0xbb76a7(0x1b7)],ui['bold']);return _0x291ac9?_0x3cc287+'\x20\x20'+style(_0x291ac9,ui[_0xbb76a7(0x1a0)]):_0x3cc287;}export function info(_0x19212e,_0xc09d05){const _0x4c217f=_0x55eaf5,_0x2bc64a={'NgjZi':function(_0x63d212,_0x4bcc79,_0x4eca59){return _0x63d212(_0x4bcc79,_0x4eca59);},'byhNi':function(_0x433989,_0x5946ac,_0x131f5a,_0x1872e3){return _0x433989(_0x5946ac,_0x131f5a,_0x1872e3);}},_0x5e7ce1=_0x2bc64a[_0x4c217f(0x1e4)](style,symbols[_0x4c217f(0x1b1)],ui['cyan'])+'\x20'+_0x2bc64a['byhNi'](style,_0x19212e,ui[_0x4c217f(0x1e2)],ui['bold']);return _0xc09d05?_0x5e7ce1+'\x20\x20'+style(_0xc09d05,ui[_0x4c217f(0x1a0)]):_0x5e7ce1;}export function printKeyValues(_0xe66844){const _0x5aab2c=_0x55eaf5,_0x1ecb37={'YQuja':function(_0x5761c6,_0x1f2afd){return _0x5761c6(_0x1f2afd);},'AgLKi':function(_0x3a9006,_0x43ba22){return _0x3a9006 instanceof _0x43ba22;},'UELZl':function(_0xf2ef45,_0x211b4d){return _0xf2ef45(_0x211b4d);},'jbQoV':_0x5aab2c(0x191),'JgTkr':function(_0x561360,_0x356967,_0x30ad41){return _0x561360(_0x356967,_0x30ad41);},'Olliv':function(_0x14be75,_0x3c443f){return _0x14be75===_0x3c443f;},'niGKI':function(_0x541183,_0x14e0b0){return _0x541183<_0x14e0b0;},'zcCiU':function(_0x40c235,_0x4cc702){return _0x40c235!==_0x4cc702;},'wAwfy':_0x5aab2c(0x174),'WcIMk':function(_0x229641,_0x1fddea){return _0x229641===_0x1fddea;},'qaLmj':function(_0x2c0053,_0x30a5eb){return _0x2c0053-_0x30a5eb;},'MEvgP':function(_0x27e51b,_0xe605eb,_0x5d8176){return _0x27e51b(_0xe605eb,_0x5d8176);},'sEBre':function(_0x5ec0df,_0x4f333d,_0x1e5367,_0x410d06){return _0x5ec0df(_0x4f333d,_0x1e5367,_0x410d06);}};if(_0x1ecb37[_0x5aab2c(0x1be)](_0xe66844[_0x5aab2c(0x1b5)],0x0))return;const _0x26603e=_0xe66844[_0x5aab2c(0x193)]((_0x12f603,_0x2fe0b3)=>Math[_0x5aab2c(0x19e)](_0x12f603,_0x2fe0b3[_0x5aab2c(0x181)][_0x5aab2c(0x1b5)]),0x0);for(let _0x9905d=0x0;_0x1ecb37[_0x5aab2c(0x1d0)](_0x9905d,_0xe66844[_0x5aab2c(0x1b5)]);_0x9905d++){if(_0x1ecb37['zcCiU'](_0x1ecb37[_0x5aab2c(0x1d3)],_0x5aab2c(0x1df))){const _0x1deab5=_0x1ecb37[_0x5aab2c(0x1b3)](_0x9905d,_0x1ecb37['qaLmj'](_0xe66844[_0x5aab2c(0x1b5)],0x1)),_0x4c1aee=_0x1ecb37[_0x5aab2c(0x1b0)](style,_0x1deab5?symbols['treeLast']:symbols[_0x5aab2c(0x17e)],ui[_0x5aab2c(0x1a0)]),_0x560fe8=_0x1ecb37['sEBre'](style,_0xe66844[_0x9905d][_0x5aab2c(0x181)][_0x5aab2c(0x1c6)](_0x26603e),ui['gray'],ui[_0x5aab2c(0x1c5)]);console['log']('\x20\x20'+_0x4c1aee+'\x20'+_0x560fe8+'\x20\x20'+_0xe66844[_0x9905d][_0x5aab2c(0x1e1)]);}else{_0x1ecb37['YQuja'](_0x2ce520,_0x1eb855),_0x5b9793[_0x5aab2c(0x1bf)][_0x5aab2c(0x1e0)](_0x5aab2c(0x196));const _0x4faa2b=_0x1ecb37[_0x5aab2c(0x18c)](_0x71addb,_0x3f9ddf)?_0x1956db['message']:_0x1ecb37['YQuja'](_0x490bb2,_0x15605a);_0x28355c[_0x5aab2c(0x17c)]('\x20\x20'+_0x1ecb37[_0x5aab2c(0x1c3)](_0x3c91af,_0x1ecb37[_0x5aab2c(0x1ad)])+'\x20\x20'+_0x1ecb37[_0x5aab2c(0x1e3)](_0x274c60,_0x4faa2b,_0x44d8a5[_0x5aab2c(0x194)]));throw _0x3daefd;}}}function _0x26c8(){const _0x549428=['treeItem','2131868FMrYTj','obisE','key','ydjWK','amtmh','(((.+)+)','54667xowcVU','JiLGX','npbUi','yellow','search','\x1b[36m','RWuVY','AgLKi','WBcGP','tick','aqqhJ','CapPR','Failed','GAquJ','reduce','dim','XtFYL','\x0d\x1b[2K','cwqUB','green','isTTY','exit','OkqvH','dwoTC','\x1b[2m','max','Done','gray','tor','\x20Warning','cross','ZNtdI','4157405sxsITG','QktLt','AXLib','ZwKAP','bold','gbjTw','StVMw','min','jbQoV','32twJUsC','6zbLZIs','MEvgP','bullet','apply','WcIMk','RIDJz','length','treeLast','red','\x1b[37m','reset','672070hyFKQL','soNCx','PoNQC','AboKj','Olliv','stdout','\x1b[0m','\x1b[4m','dDvNK','UELZl','\x1b[35m','italic','padEnd','buiAG','akeQf','\x1b[32m','RthJM','toString','\x0d\x20\x20','23963500BqiGsX','oeQhj','repeat','niGKI','zrjQD','\x1b[1m','wAwfy','yZdnH','fFtZs','wyoUa','1477881NFlMom','LoRzj','\x1b[33m','warn','702003WwGCbH','log','gYOMq','join','IbzLL','write','value','cyan','JgTkr','NgjZi','efNAi','rJGZo','arrow','PAAzA','kaqGR','+)+$','iKjdK','message','\x20\x20\x20','12KfHHJL','\x20Error\x20','WDPyv','error','qKDWe'];_0x26c8=function(){return _0x549428;};return _0x26c8();}export function printList(_0x3dbb2a,_0x253689){const _0x337d13=_0x55eaf5,_0xcb94ee={'dDvNK':function(_0x4fa820){return _0x4fa820();},'amtmh':function(_0x38c3ec,_0x31c773){return _0x38c3ec-_0x31c773;},'QktLt':function(_0x5d441e,_0x3ae115){return _0x5d441e-_0x3ae115;},'XeiAW':function(_0xdf135,_0x99d960){return _0xdf135+_0x99d960;},'AboKj':function(_0x31160c,_0xa8eb9b){return _0x31160c+_0xa8eb9b;},'wyoUa':function(_0x3dcf5c,_0x4c03e6,_0x23b381){return _0x3dcf5c(_0x4c03e6,_0x23b381);},'akeQf':function(_0x4a9e93,_0xde8341,_0xdb058e,_0x4a964b){return _0x4a9e93(_0xde8341,_0xdb058e,_0x4a964b);},'dwoTC':function(_0x38c6e3,_0x4e13ae,_0x5a852d){return _0x38c6e3(_0x4e13ae,_0x5a852d);},'LoRzj':function(_0x11aacc,_0x1c4ff9){return _0x11aacc+_0x1c4ff9;},'RWuVY':function(_0x218c52,_0x4db304){return _0x218c52===_0x4db304;},'WDPyv':'cwqUB','StVMw':function(_0x3fe22b,_0x3ba6b8,_0x1517c5){return _0x3fe22b(_0x3ba6b8,_0x1517c5);},'oeQhj':'(none)','gYOMq':function(_0x4e5e3c,_0x125d32){return _0x4e5e3c<_0x125d32;},'JiLGX':function(_0x5c11a9,_0x2bf92e,_0x22fa48){return _0x5c11a9(_0x2bf92e,_0x22fa48);}};console[_0x337d13(0x1dc)]('\x20\x20'+_0xcb94ee[_0x337d13(0x19c)](style,_0x3dbb2a,ui[_0x337d13(0x1a9)]));if(_0xcb94ee[_0x337d13(0x18b)](_0x253689[_0x337d13(0x1b5)],0x0)){if(_0xcb94ee[_0x337d13(0x17b)]!==_0x337d13(0x197)){const _0x2dabdf=_0xcb94ee[_0x337d13(0x1c2)](_0x204d11),_0x33e2df=_0x337d13(0x1a2)+'\x20',_0x121b48=_0x4d85ba['h'][_0x337d13(0x1cf)](_0x47f6d9[_0x337d13(0x19e)](0x0,_0xcb94ee[_0x337d13(0x183)](_0xcb94ee[_0x337d13(0x1a6)](_0x2dabdf,_0x33e2df['length']),0x2))),_0x106441=_0xeea3b1['h']['repeat'](_0x3d3ac8[_0x337d13(0x19e)](0x0,_0xcb94ee['QktLt'](_0x2dabdf,0x2)));_0x3a25dd[_0x337d13(0x1da)](),_0x3e0234[_0x337d13(0x1da)](_0xcb94ee['XeiAW'](_0xcb94ee[_0x337d13(0x1bd)](_0xcb94ee[_0x337d13(0x1d6)](_0x221f0e,_0x24aaa7['tl']+_0x246fcd['h'],_0x1d2a5f['yellow']),_0xcb94ee[_0x337d13(0x1c8)](_0x2ba676,_0x33e2df,_0x238af3[_0x337d13(0x188)],_0x5974c0[_0x337d13(0x1a9)])),_0xcb94ee['wyoUa'](_0x43c61e,_0x121b48,_0x1556fc[_0x337d13(0x188)]))),_0x1c5d00['warn'](_0xcb94ee['XeiAW'](_0xcb94ee[_0x337d13(0x1d6)](_0x2ae0a9,_0x26da38['v']+'\x20',_0x1124a2[_0x337d13(0x188)]),'\x20'+_0x4da47a(_0x1c06d9[_0x337d13(0x1da)],_0x272839[_0x337d13(0x188)],_0x2c2bf0[_0x337d13(0x1a9)])+'\x20'+_0x519fec(_0x35688f,_0x1cc523[_0x337d13(0x188)]))),_0x4d05dd[_0x337d13(0x1da)](_0xcb94ee[_0x337d13(0x19c)](_0x3adfd2,_0xcb94ee[_0x337d13(0x1d8)](_0x6a99c2['bl'],_0x106441)+_0x28f4b5['br'],_0x557302[_0x337d13(0x188)])),_0x4c60d1[_0x337d13(0x1da)]();}else{console['log']('\x20\x20'+_0xcb94ee[_0x337d13(0x1ab)](style,symbols[_0x337d13(0x1b6)],ui['gray'])+'\x20'+_0xcb94ee['akeQf'](style,_0xcb94ee[_0x337d13(0x1ce)],ui[_0x337d13(0x1a0)],ui['italic']));return;}}for(let _0x6e8b37=0x0;_0xcb94ee[_0x337d13(0x1dd)](_0x6e8b37,_0x253689['length']);_0x6e8b37++){const _0x3939c0=_0xcb94ee[_0x337d13(0x18b)](_0x6e8b37,_0xcb94ee[_0x337d13(0x183)](_0x253689[_0x337d13(0x1b5)],0x1)),_0x449e33=_0xcb94ee['JiLGX'](style,_0x3939c0?symbols[_0x337d13(0x1b6)]:symbols[_0x337d13(0x17e)],ui[_0x337d13(0x1a0)]);console[_0x337d13(0x1dc)]('\x20\x20'+_0x449e33+'\x20'+_0xcb94ee[_0x337d13(0x186)](style,_0x253689[_0x6e8b37],ui[_0x337d13(0x194)]));}}export function warnBlock(_0x672357){const _0x4c4edf=_0x55eaf5,_0x3f4335={'efNAi':function(_0x5eb438,_0x56bdd4){return _0x5eb438-_0x56bdd4;},'zrjQD':function(_0x206aef,_0x5e8634){return _0x206aef-_0x5e8634;},'PoNQC':function(_0x1df4ae,_0x3e8529){return _0x1df4ae+_0x3e8529;},'AXLib':function(_0x3dc5ff,_0x32f9a7){return _0x3dc5ff+_0x32f9a7;},'rJGZo':function(_0x4f38f9,_0x3a7516,_0x32fce4){return _0x4f38f9(_0x3a7516,_0x32fce4);},'npbUi':function(_0x3c398e,_0x1099ed,_0x46e437,_0x570b52){return _0x3c398e(_0x1099ed,_0x46e437,_0x570b52);},'soNCx':function(_0x59bb8a,_0x8a6517){return _0x59bb8a+_0x8a6517;},'iKjdK':function(_0x50c6a8,_0x40f144,_0x1a08b3,_0x1dacf3){return _0x50c6a8(_0x40f144,_0x1a08b3,_0x1dacf3);},'MQEnw':function(_0x90de0b,_0x4f126d,_0x3a5b29){return _0x90de0b(_0x4f126d,_0x3a5b29);},'buiAG':function(_0x4eea43,_0x4820ee){return _0x4eea43+_0x4820ee;}},_0x4f4b4d=termWidth(),_0xb2697a='\x20Warning'+'\x20',_0x49df87=symbols['h'][_0x4c4edf(0x1cf)](Math[_0x4c4edf(0x19e)](0x0,_0x3f4335[_0x4c4edf(0x170)](_0x3f4335[_0x4c4edf(0x170)](_0x4f4b4d,_0xb2697a[_0x4c4edf(0x1b5)]),0x2))),_0x3a5ad5=symbols['h']['repeat'](Math['max'](0x0,_0x3f4335[_0x4c4edf(0x1d1)](_0x4f4b4d,0x2)));console['warn'](),console[_0x4c4edf(0x1da)](_0x3f4335[_0x4c4edf(0x1bc)](_0x3f4335['AXLib'](_0x3f4335[_0x4c4edf(0x171)](style,_0x3f4335[_0x4c4edf(0x1a7)](symbols['tl'],symbols['h']),ui[_0x4c4edf(0x188)]),_0x3f4335[_0x4c4edf(0x187)](style,_0xb2697a,ui[_0x4c4edf(0x188)],ui[_0x4c4edf(0x1a9)])),_0x3f4335[_0x4c4edf(0x171)](style,_0x49df87,ui[_0x4c4edf(0x188)]))),console['warn'](_0x3f4335[_0x4c4edf(0x1bc)](_0x3f4335['rJGZo'](style,_0x3f4335[_0x4c4edf(0x1bb)](symbols['v'],'\x20'),ui[_0x4c4edf(0x188)]),'\x20'+_0x3f4335[_0x4c4edf(0x176)](style,symbols[_0x4c4edf(0x1da)],ui['yellow'],ui[_0x4c4edf(0x1a9)])+'\x20'+_0x3f4335['MQEnw'](style,_0x672357,ui[_0x4c4edf(0x188)]))),console[_0x4c4edf(0x1da)](style(_0x3f4335[_0x4c4edf(0x1bb)](_0x3f4335[_0x4c4edf(0x1c7)](symbols['bl'],_0x3a5ad5),symbols['br']),ui[_0x4c4edf(0x188)])),console[_0x4c4edf(0x1da)]();}export function failAndExit(_0x22adbe,_0x644d95){const _0x4c3f06=_0x55eaf5,_0x944b57={'ZwKAP':function(_0x3bffad){return _0x3bffad();},'aqqhJ':function(_0x1335be,_0x325c0d){return _0x1335be+_0x325c0d;},'WBcGP':function(_0x3743d8,_0x1b5778,_0x15edbb){return _0x3743d8(_0x1b5778,_0x15edbb);},'ZNtdI':function(_0x458670,_0x27a9f3){return _0x458670+_0x27a9f3;},'iDEPS':function(_0xf0892d,_0x27a843,_0x2f2a9f,_0x112705){return _0xf0892d(_0x27a843,_0x2f2a9f,_0x112705);},'muGUw':function(_0x147972,_0x5b0d69,_0x12c599,_0x23b0a0){return _0x147972(_0x5b0d69,_0x12c599,_0x23b0a0);}},_0x2ce588=_0x944b57[_0x4c3f06(0x1a8)](termWidth),_0xd49c8=_0x4c3f06(0x17a),_0x2dff1c=symbols['h'][_0x4c3f06(0x1cf)](Math[_0x4c3f06(0x19e)](0x0,_0x2ce588-_0xd49c8[_0x4c3f06(0x1b5)]-0x2)),_0x42f97b=symbols['h'][_0x4c3f06(0x1cf)](Math[_0x4c3f06(0x19e)](0x0,_0x2ce588-0x2));console[_0x4c3f06(0x17c)](),console[_0x4c3f06(0x17c)](_0x944b57[_0x4c3f06(0x18f)](_0x944b57[_0x4c3f06(0x18d)](style,_0x944b57[_0x4c3f06(0x1a4)](symbols['tl'],symbols['h']),ui[_0x4c3f06(0x1b7)]),_0x944b57['iDEPS'](style,_0xd49c8,ui[_0x4c3f06(0x1b7)],ui[_0x4c3f06(0x1a9)]))+_0x944b57[_0x4c3f06(0x18d)](style,_0x2dff1c,ui[_0x4c3f06(0x1b7)])),console['error'](_0x944b57[_0x4c3f06(0x18f)](style(_0x944b57[_0x4c3f06(0x1a4)](symbols['v'],'\x20'),ui[_0x4c3f06(0x1b7)]),'\x20'+style(symbols['cross'],ui['red'],ui['bold'])+'\x20'+_0x944b57['WBcGP'](style,_0x22adbe,ui[_0x4c3f06(0x1b7)]))),_0x644d95&&console[_0x4c3f06(0x17c)](_0x944b57['ZNtdI'](_0x944b57['WBcGP'](style,symbols['v']+'\x20',ui['red']),_0x4c3f06(0x178)+style(symbols[_0x4c3f06(0x172)],ui['gray'])+'\x20'+_0x944b57['muGUw'](style,_0x644d95,ui[_0x4c3f06(0x1a0)],ui['italic']))),console[_0x4c3f06(0x17c)](style(_0x944b57[_0x4c3f06(0x1a4)](_0x944b57['ZNtdI'](symbols['bl'],_0x42f97b),symbols['br']),ui['red'])),console[_0x4c3f06(0x17c)](),process[_0x4c3f06(0x19a)](0x1);}function _0x4306(_0x301eb4,_0x1894ad){_0x301eb4=_0x301eb4-0x170;const _0x5dbc4a=_0x26c8();let _0x1db50d=_0x5dbc4a[_0x301eb4];return _0x1db50d;}export async function withProgress(_0x3fdff2,_0x57684d){const _0x4ea51d=_0x55eaf5,_0x403292={'PAAzA':function(_0x4c7566,_0x16b41e){return _0x4c7566%_0x16b41e;},'CapPR':function(_0x3ebbbe,_0x31e537,_0x180a9c){return _0x3ebbbe(_0x31e537,_0x180a9c);},'RIDJz':function(_0x16084c){return _0x16084c();},'RBSsy':function(_0x2d39f0){return _0x2d39f0();},'XtFYL':function(_0x196dc7,_0x3f2e7d){return _0x196dc7(_0x3f2e7d);},'tcrQj':_0x4ea51d(0x196),'qKDWe':function(_0x58ee6a,_0x13fb8d){return _0x58ee6a(_0x13fb8d);},'OkqvH':function(_0x46fa2a,_0xe11857,_0x3e0e28){return _0x46fa2a(_0xe11857,_0x3e0e28);},'WMxeu':function(_0x1d34f7,_0x30abc1){return _0x1d34f7 instanceof _0x30abc1;},'GAquJ':_0x4ea51d(0x191)};if(!process['stdout'][_0x4ea51d(0x199)])return console['log'](_0x3fdff2),_0x403292[_0x4ea51d(0x1b4)](_0x57684d);const _0x3268ec=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x19b5a1=0x0;const _0x1847cd=()=>{const _0x230523=_0x4ea51d,_0x5e716e=style(_0x3268ec[_0x403292[_0x230523(0x173)](_0x19b5a1,_0x3268ec[_0x230523(0x1b5)])],ui[_0x230523(0x1e2)]);process[_0x230523(0x1bf)][_0x230523(0x1e0)](_0x230523(0x1cc)+_0x5e716e+'\x20\x20'+_0x403292[_0x230523(0x190)](style,_0x3fdff2,ui['dim'])),_0x19b5a1+=0x1;};_0x403292['RBSsy'](_0x1847cd);const _0x452196=_0x403292['CapPR'](setInterval,_0x1847cd,0x50);try{const _0x177897=await _0x57684d();return _0x403292['XtFYL'](clearInterval,_0x452196),process[_0x4ea51d(0x1bf)][_0x4ea51d(0x1e0)](_0x403292['tcrQj']),console[_0x4ea51d(0x1dc)]('\x20\x20'+_0x403292['qKDWe'](ok,_0x4ea51d(0x19f))+'\x20\x20'+_0x403292[_0x4ea51d(0x19b)](style,_0x3fdff2,ui[_0x4ea51d(0x194)])),_0x177897;}catch(_0x376773){_0x403292[_0x4ea51d(0x17d)](clearInterval,_0x452196),process['stdout'][_0x4ea51d(0x1e0)](_0x403292['tcrQj']);const _0x3b957f=_0x403292['WMxeu'](_0x376773,Error)?_0x376773[_0x4ea51d(0x177)]:String(_0x376773);console['error']('\x20\x20'+_0x403292[_0x4ea51d(0x195)](bad,_0x403292[_0x4ea51d(0x192)])+'\x20\x20'+_0x403292['CapPR'](style,_0x3b957f,ui[_0x4ea51d(0x194)]));throw _0x376773;}}
@@ -1 +1 @@
1
- const _0x3a41bd=_0x5bb1;(function(_0x24ed90,_0x1ea6ad){const _0x52edf9=_0x5bb1,_0x567d6d=_0x24ed90();while(!![]){try{const _0x6251f4=-parseInt(_0x52edf9(0xc6))/0x1*(-parseInt(_0x52edf9(0xcb))/0x2)+parseInt(_0x52edf9(0x8b))/0x3+-parseInt(_0x52edf9(0xf0))/0x4*(-parseInt(_0x52edf9(0x8e))/0x5)+-parseInt(_0x52edf9(0xc3))/0x6*(parseInt(_0x52edf9(0xaf))/0x7)+-parseInt(_0x52edf9(0x96))/0x8+-parseInt(_0x52edf9(0x112))/0x9*(-parseInt(_0x52edf9(0xf4))/0xa)+parseInt(_0x52edf9(0xca))/0xb;if(_0x6251f4===_0x1ea6ad)break;else _0x567d6d['push'](_0x567d6d['shift']());}catch(_0x43ddd1){_0x567d6d['push'](_0x567d6d['shift']());}}}(_0x4ee9,0x95ff7));const _0x12f2eb=(function(){let _0x21fb38=!![];return function(_0x288d4c,_0x40c59a){const _0x1f2549=_0x21fb38?function(){const _0x57fdf8=_0x5bb1;if(_0x40c59a){const _0x400bd0=_0x40c59a[_0x57fdf8(0xee)](_0x288d4c,arguments);return _0x40c59a=null,_0x400bd0;}}:function(){};return _0x21fb38=![],_0x1f2549;};}()),_0x47c273=_0x12f2eb(this,function(){const _0x140611=_0x5bb1,_0xeea49b={'ZJPZw':'(((.+)+)'+_0x140611(0x10a)};return _0x47c273['toString']()[_0x140611(0xa8)](_0xeea49b['ZJPZw'])['toString']()['construc'+_0x140611(0xa2)](_0x47c273)[_0x140611(0xa8)](_0xeea49b[_0x140611(0x87)]);});_0x47c273();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';function _0x5bb1(_0x2c4313,_0x3de710){_0x2c4313=_0x2c4313-0x7c;const _0x1ddda4=_0x4ee9();let _0x47c273=_0x1ddda4[_0x2c4313];return _0x47c273;}import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x3a41bd(0xfc)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x59eebc,_0x388b98=![]){const _0x1d5b4b=_0x3a41bd,_0x511895={'yfSqI':function(_0x3803e6,_0x3cd9ae){return _0x3803e6===_0x3cd9ae;},'vXsov':function(_0x55660b,_0x1df6ae){return _0x55660b(_0x1df6ae);},'qdmWa':function(_0x50f989){return _0x50f989();},'avoHE':function(_0x35601d,_0x3717a8){return _0x35601d<_0x3717a8;},'LyNor':function(_0x5de577,_0x5305c5){return _0x5de577-_0x5305c5;},'ApsXk':function(_0x10341e,_0x436abf){return _0x10341e===_0x436abf;},'QRMJK':_0x1d5b4b(0xba),'PZvYY':function(_0x45cd1f,_0x263618,_0x4dca9d){return _0x45cd1f(_0x263618,_0x4dca9d);},'ahxwA':'UPDATE','JVpIU':_0x1d5b4b(0x10d)+_0x1d5b4b(0x92)+'the\x20late'+_0x1d5b4b(0xe3)+'on.\x20Chec'+'k\x20your\x20c'+_0x1d5b4b(0xfb)+'n.','lPGYX':_0x1d5b4b(0xf2),'utZqn':function(_0x23f1fe){return _0x23f1fe();},'vMURf':function(_0x2ee34c,_0x4c29f7,_0x280d9f){return _0x2ee34c(_0x4c29f7,_0x280d9f);},'gPCwi':function(_0xd978ff,_0x1f6117,_0x22ccb5){return _0xd978ff(_0x1f6117,_0x22ccb5);},'reJwG':function(_0x5d825d,_0x5028f0){return _0x5d825d===_0x5028f0;},'UeEwR':_0x1d5b4b(0x115),'ShiUv':'UPDATE\x20S'+_0x1d5b4b(0xbc),'xDnDD':_0x1d5b4b(0x90)+'rminal\x20w'+_0x1d5b4b(0x110)+_0x1d5b4b(0xdd)+_0x1d5b4b(0xea)+_0x1d5b4b(0xab)+'update.','SkHOw':_0x1d5b4b(0x7c),'uaUqD':function(_0x54099a,_0x469d5a,_0x37b30e){return _0x54099a(_0x469d5a,_0x37b30e);},'GvmHt':_0x1d5b4b(0x108)+_0x1d5b4b(0x9b)};if(_0x511895[_0x1d5b4b(0xd1)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x388b98)return;if(!_0x511895[_0x1d5b4b(0xb5)](shouldCheckForUpdates,_0x59eebc)&&!_0x388b98)return;const _0xecfa92=_0x511895['qdmWa'](readCache),_0x577969=Date[_0x1d5b4b(0xf1)]();if(!_0x388b98&&_0xecfa92['lastChec'+'kedAt']&&_0x511895[_0x1d5b4b(0x9f)](_0x511895['LyNor'](_0x577969,_0xecfa92[_0x1d5b4b(0xb7)+_0x1d5b4b(0x82)]),CHECK_INTERVAL_MS))return;const _0x10b557=await fetchLatestVersion();if(!_0x10b557){if(_0x511895[_0x1d5b4b(0xa6)]('oJBLE',_0x511895[_0x1d5b4b(0x10b)])){_0x388b98&&console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0x104)](bad,_0x511895[_0x1d5b4b(0xc2)],_0x511895[_0x1d5b4b(0x116)]));return;}else return![];}if(!_0x388b98){if(_0x511895['lPGYX']!==_0x511895['lPGYX'])return!![];else _0x511895[_0x1d5b4b(0xb5)](writeCache,{'lastCheckedAt':_0x577969});}const _0x5bfda8=_0x511895[_0x1d5b4b(0x95)](getCliVersion);if(!_0x511895[_0x1d5b4b(0xac)](isVersionLower,_0x5bfda8,_0x10b557)){_0x388b98&&console[_0x1d5b4b(0x106)](ok(_0x1d5b4b(0xd2),_0x1d5b4b(0xfa)+_0x1d5b4b(0xf9)+_0x1d5b4b(0x93)+_0x5bfda8+').'));return;}console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0xde)](warn,_0x1d5b4b(0xd2),'New\x20vers'+'ion\x20dete'+_0x1d5b4b(0x10e)+_0x5bfda8+_0x1d5b4b(0x81)+_0x10b557+').'));const _0x14e3a1=await runGlobalUpdate();if(_0x511895[_0x1d5b4b(0x7f)](_0x14e3a1,_0x511895[_0x1d5b4b(0x89)]))console['log'](_0x511895[_0x1d5b4b(0x104)](ok,_0x511895[_0x1d5b4b(0x102)],_0x511895[_0x1d5b4b(0xe9)])),console['log'](_0x511895[_0x1d5b4b(0x104)](warn,_0x1d5b4b(0xec),'Please\x20w'+_0x1d5b4b(0x9c)+_0x1d5b4b(0xe5)+'te\x20to\x20fi'+_0x1d5b4b(0x84)+_0x1d5b4b(0xe0)+_0x1d5b4b(0xb3)+'t\x20again.'));else _0x14e3a1?console['log'](_0x511895[_0x1d5b4b(0x104)](ok,_0x511895[_0x1d5b4b(0x111)],_0x1d5b4b(0xfa)+_0x1d5b4b(0xb4)+_0x10b557+'.')):console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0x107)](bad,_0x511895[_0x1d5b4b(0xd3)],_0x1d5b4b(0xbd)+'ally:\x20np'+'m\x20i\x20-g\x20'+PACKAGE_NAME+_0x1d5b4b(0xc4)));}function shouldCheckForUpdates(_0x216081){const _0x355a0e=_0x3a41bd,_0x4f5c0e={'IPBXb':function(_0x51e0d7,_0x25f3d1){return _0x51e0d7<=_0x25f3d1;},'xWqWG':'--versio'+'n','Bmvkc':function(_0x44d610,_0x241cac){return _0x44d610===_0x241cac;},'HetEp':'MCKnG','owAHT':function(_0x294675,_0x24fe83){return _0x294675!==_0x24fe83;},'mfNJF':_0x355a0e(0x114),'yMRAu':function(_0x5eb113,_0x47a400){return _0x5eb113!==_0x47a400;},'iCwKm':_0x355a0e(0xe6)};if(_0x4f5c0e[_0x355a0e(0xda)](_0x216081[_0x355a0e(0xd8)],0x2))return!![];const _0x58762b=_0x216081[_0x355a0e(0xd7)](0x2);if(_0x58762b['includes']('-h')||_0x58762b[_0x355a0e(0xf7)]('--help')||_0x58762b[_0x355a0e(0xf7)]('-v')||_0x58762b[_0x355a0e(0xf7)](_0x4f5c0e[_0x355a0e(0xdb)]))return _0x4f5c0e['Bmvkc'](_0x4f5c0e[_0x355a0e(0x99)],_0x355a0e(0xad))?{}:![];const _0x4cfb48=_0x58762b[_0x355a0e(0x118)](_0x15da9c=>!_0x15da9c[_0x355a0e(0xd6)+'th']('-'));if(!_0x4cfb48)return![];return _0x4f5c0e[_0x355a0e(0xb2)](_0x4cfb48,_0x4f5c0e['mfNJF'])&&_0x4f5c0e[_0x355a0e(0xb6)](_0x4cfb48,_0x4f5c0e[_0x355a0e(0x10f)]);}async function fetchLatestVersion(){const _0x5df0b0=_0x3a41bd,_0x369f58={'SpvJd':function(_0x48f037,_0x130ac5,_0x2253f5){return _0x48f037(_0x130ac5,_0x2253f5);},'HDPfu':function(_0x112e2b,_0x3e9d48){return _0x112e2b(_0x3e9d48);}},_0x1c14d7=new AbortController(),_0xd083a2=setTimeout(()=>_0x1c14d7['abort'](),CHECK_TIMEOUT_MS);try{const _0x1f256f=await _0x369f58[_0x5df0b0(0xc7)](fetch,_0x5df0b0(0xa0)+_0x5df0b0(0x103)+_0x5df0b0(0xfd)+_0x5df0b0(0xff)+PACKAGE_NAME+_0x5df0b0(0xc9),{'signal':_0x1c14d7[_0x5df0b0(0xdf)]});if(!_0x1f256f['ok'])return null;const _0x475b24=await _0x1f256f[_0x5df0b0(0x91)]();return typeof _0x475b24[_0x5df0b0(0xdc)]===_0x5df0b0(0x7d)?_0x475b24[_0x5df0b0(0xdc)]:null;}catch{return null;}finally{_0x369f58[_0x5df0b0(0xa9)](clearTimeout,_0xd083a2);}}async function runGlobalUpdate(){const _0x4a251a=_0x3a41bd,_0x51035c={'ZxnnN':function(_0xeaaff2,_0x5be2bd){return _0xeaaff2<_0x5be2bd;},'hqcwg':function(_0x50ac62,_0x2870bb){return _0x50ac62(_0x2870bb);},'egwNv':function(_0x5974e2,_0x31ff02){return _0x5974e2(_0x31ff02);},'hElOO':_0x4a251a(0x8d),'KAiJk':function(_0x161b74,_0x177a7){return _0x161b74(_0x177a7);},'uyWji':function(_0x435f03,_0x5d3340){return _0x435f03(_0x5d3340);},'PqOHP':function(_0x4f7517,_0x2aabe1){return _0x4f7517===_0x2aabe1;},'gSipY':function(_0x226c84,_0x297deb){return _0x226c84(_0x297deb);},'jdBIy':function(_0x490dfb,_0x2e5d60,_0x599c41,_0x1073d8){return _0x490dfb(_0x2e5d60,_0x599c41,_0x1073d8);},'PwvPS':_0x4a251a(0xe7),'usWJJ':_0x4a251a(0xb1),'aieVQ':function(_0x9bcc68,_0xe18c93,_0x9425d0){return _0x9bcc68(_0xe18c93,_0x9425d0);},'ZuhsK':_0x4a251a(0xd0),'Jxcws':_0x4a251a(0x105),'hMtWf':_0x4a251a(0xe2),'xtPTQ':'start','EbHEn':'detached'};if(_0x51035c[_0x4a251a(0x8f)](process[_0x4a251a(0x80)],_0x51035c[_0x4a251a(0xa1)]))try{const _0x4ac3a2=_0x4a251a(0xbe),_0x304bbb=_0x4ac3a2+('\x20install'+_0x4a251a(0x9d))+PACKAGE_NAME+_0x4a251a(0xc4),_0x7469bc=_0x304bbb+(_0x4a251a(0x98)+_0x4a251a(0x8a)+'[Update\x20'+'Finished'+_0x4a251a(0xcd)+'e');return _0x51035c[_0x4a251a(0xc1)](spawn,_0x51035c[_0x4a251a(0x101)],['/c',_0x51035c[_0x4a251a(0x100)],_0x4a251a(0xe2),'/c',_0x7469bc],{'detached':!![],'stdio':_0x51035c[_0x4a251a(0x83)]})[_0x4a251a(0xbb)](),_0x51035c[_0x4a251a(0x10c)];}catch{return![];}return new Promise(_0x35214d=>{const _0x13a0c8=_0x4a251a,_0x151548={'WOKUw':function(_0x12669a,_0x542205){return _0x51035c['gSipY'](_0x12669a,_0x542205);}};try{const _0x35fe0a=_0x51035c[_0x13a0c8(0xc1)](spawn,_0x51035c['PwvPS'],['install','-g',PACKAGE_NAME+_0x13a0c8(0xc4)],{'stdio':_0x51035c[_0x13a0c8(0x83)]}),_0x126fd7=_0x51035c[_0x13a0c8(0xc0)](setTimeout,()=>{const _0x3e2b09=_0x13a0c8;_0x35fe0a['kill'](),_0x151548[_0x3e2b09(0xa4)](_0x35214d,![]);},UPDATE_TIMEOUT_MS);_0x35fe0a['on'](_0x51035c['ZuhsK'],()=>{const _0x43e9a5=_0x13a0c8,_0x443c8e={'cIrFW':function(_0x43060d,_0x798ca3){const _0x1c2ac1=_0x5bb1;return _0x51035c[_0x1c2ac1(0xcf)](_0x43060d,_0x798ca3);},'fCNCo':function(_0x5da79b,_0x329c89){return _0x51035c['hqcwg'](_0x5da79b,_0x329c89);},'tKZJR':function(_0x40bfb9,_0x1ed574){const _0xa2917c=_0x5bb1;return _0x51035c[_0xa2917c(0xb0)](_0x40bfb9,_0x1ed574);}};if('jTwoL'!==_0x51035c[_0x43e9a5(0xc8)]){const _0x1e0ad5=_0x363084[_0x43e9a5(0x117)]()[_0x43e9a5(0xb9)](/^v/i,'')[_0x43e9a5(0x113)]('-')[0x0],_0x34ec22=_0x1e0ad5[_0x43e9a5(0x113)]('.');if(_0x443c8e[_0x43e9a5(0x97)](_0x34ec22[_0x43e9a5(0xd8)],0x3))return null;const _0x59b44d=_0x89f676(_0x34ec22[0x0]),_0x274b79=_0x443c8e[_0x43e9a5(0xf3)](_0x265da3,_0x34ec22[0x1]),_0x4d0efe=_0x443c8e[_0x43e9a5(0x85)](_0x214fde,_0x34ec22[0x2]);if(!_0x495d7b[_0x43e9a5(0x9e)](_0x59b44d)||!_0x29a40a[_0x43e9a5(0x9e)](_0x274b79)||!_0x810211[_0x43e9a5(0x9e)](_0x4d0efe))return null;return[_0x59b44d,_0x274b79,_0x4d0efe];}else _0x51035c[_0x43e9a5(0xbf)](clearTimeout,_0x126fd7),_0x35214d(![]);}),_0x35fe0a['on'](_0x13a0c8(0xe1),_0x8748e8=>{const _0x5448ab=_0x13a0c8;clearTimeout(_0x126fd7),_0x51035c[_0x5448ab(0xa7)](_0x35214d,_0x51035c['PqOHP'](_0x8748e8,0x0));});}catch{_0x51035c[_0x13a0c8(0xe8)](_0x35214d,![]);}});}function getCachePath(){const _0x3b2b6b=_0x3a41bd,_0x29bb7c={'PVWwi':function(_0x990438,_0x1c4dd9,_0x34be49){return _0x990438(_0x1c4dd9,_0x34be49);},'fOkft':function(_0xbd218b,_0x72ee8d){return _0xbd218b(_0x72ee8d);},'hkbDT':function(_0x217230){return _0x217230();}};return _0x29bb7c[_0x3b2b6b(0xef)](join,_0x29bb7c[_0x3b2b6b(0xd9)](dirname,_0x29bb7c[_0x3b2b6b(0xf6)](getGlobalEnvPath)),_0x3b2b6b(0xc5)+'heck.jso'+'n');}function readCache(){const _0x206a95=_0x3a41bd,_0x112e98={'vVUwI':function(_0x3bc463,_0x176f83,_0x18ef3d){return _0x3bc463(_0x176f83,_0x18ef3d);},'isizr':function(_0x56d5d9){return _0x56d5d9();},'BRGsa':'utf8','cvWrP':function(_0x353f5e,_0x13c77e){return _0x353f5e===_0x13c77e;},'FxvPc':_0x206a95(0xa3)};try{const _0x3ca7df=_0x112e98[_0x206a95(0xd5)](readFileSync,_0x112e98[_0x206a95(0xa5)](getCachePath),_0x112e98['BRGsa']),_0x5d4f43=JSON[_0x206a95(0xcc)](_0x3ca7df);return _0x5d4f43&&_0x112e98[_0x206a95(0x94)](typeof _0x5d4f43,_0x112e98['FxvPc'])?_0x5d4f43:{};}catch{return{};}}function _0x4ee9(){const _0x40e6ca=['yMRAu','lastChec','dBaJx','replace','oJBLE','unref','TARTED','Run\x20manu','npm.cmd','KAiJk','aieVQ','jdBIy','ahxwA','1792830BfTONc','@latest','update-c','3NQxfsa','SpvJd','hElOO','/latest','4968612yQpBMF','630842ziGgfX','parse',']\x20&\x20paus','nxLSF','ZxnnN','error','yfSqI','UPDATE','GvmHt','CWWjS','vVUwI','startsWi','slice','length','fOkft','IPBXb','xWqWG','version','s\x20opened','gPCwi','signal','ore\x20runn','exit','cmd.exe','st\x20versi','iChDv','the\x20upda','doctor','npm','hqcwg','xDnDD','\x20to\x20perf','kill','WAIT','qllyg','apply','PVWwi','92668Jiptan','now','IqiqS','fCNCo','73620HalHvy','gylZI','hkbDT','includes','oWtTD','\x20up\x20to\x20d','gemit\x20is','onnectio','gemit-cl','.npmjs.o','dtfWV','rg/','xtPTQ','hMtWf','ShiUv','registry','PZvYY','win32','log','uaUqD','UPDATE\x20F','uyEZX','+)+$','QRMJK','EbHEn','Failed\x20t','cted\x20(','iCwKm','indow\x20wa','SkHOw','45ZUitwr','split','init','detached','JVpIU','trim','find','UPDATED','string','stringif','reJwG','platform','\x20->\x20','kedAt','usWJJ','nish\x20bef','tKZJR','EBOvM','ZJPZw','utf8','UeEwR','\x20&\x20echo\x20','701130hIwFWK','xUmSx','jTwoL','215qAcHSo','PqOHP','A\x20new\x20te','json','o\x20fetch\x20','ate\x20(','cvWrP','utZqn','9230800oxFosI','cIrFW','\x20&\x20echo.','HetEp','LJfYl','AILED','ait\x20for\x20','\x20-g\x20','isFinite','avoHE','https://','Jxcws','tor','object','WOKUw','isizr','ApsXk','uyWji','search','HDPfu','pwBid','orm\x20the\x20','vMURf','ZQSYX','bZtUx','21UlKuEr','egwNv','ignore','owAHT','ing\x20gemi','\x20now\x20on\x20','vXsov'];_0x4ee9=function(){return _0x40e6ca;};return _0x4ee9();}function writeCache(_0xa75fee){const _0x41ca69=_0x3a41bd,_0x437df4={'xUmSx':function(_0x190304,_0x311530){return _0x190304(_0x311530);},'pwBid':function(_0x43f941,_0x383fe7,_0x551197,_0x257bfb){return _0x43f941(_0x383fe7,_0x551197,_0x257bfb);},'CWWjS':_0x41ca69(0x88)};try{const _0x5e4e14=getCachePath();mkdirSync(_0x437df4[_0x41ca69(0x8c)](dirname,_0x5e4e14),{'recursive':!![]}),_0x437df4[_0x41ca69(0xaa)](writeFileSync,_0x5e4e14,JSON[_0x41ca69(0x7e)+'y'](_0xa75fee),_0x437df4[_0x41ca69(0xd4)]);}catch{}}function isVersionLower(_0x33da9b,_0x50dd68){const _0x434adb=_0x3a41bd,_0x240bd3={'dBaJx':function(_0x39e4c5,_0x43b046){return _0x39e4c5(_0x43b046);},'oWtTD':function(_0x12a84c,_0x327cca){return _0x12a84c(_0x327cca);},'uyEZX':function(_0x1e417e,_0x398d17){return _0x1e417e||_0x398d17;},'nxLSF':function(_0x543590,_0x1142ac){return _0x543590<_0x1142ac;},'iChDv':function(_0x225bd8,_0x4cc1df){return _0x225bd8>_0x4cc1df;},'dtfWV':_0x434adb(0x9a),'qllyg':_0x434adb(0xae)},_0x220bd3=normalizeVersion(_0x33da9b),_0x3ff148=_0x240bd3[_0x434adb(0xf8)](normalizeVersion,_0x50dd68);if(_0x240bd3[_0x434adb(0x109)](!_0x220bd3,!_0x3ff148))return![];for(let _0x4cd3c3=0x0;_0x240bd3[_0x434adb(0xce)](_0x4cd3c3,0x3);_0x4cd3c3+=0x1){if(_0x240bd3[_0x434adb(0xce)](_0x220bd3[_0x4cd3c3],_0x3ff148[_0x4cd3c3]))return!![];if(_0x240bd3[_0x434adb(0xe4)](_0x220bd3[_0x4cd3c3],_0x3ff148[_0x4cd3c3])){if(_0x240bd3[_0x434adb(0xfe)]===_0x240bd3[_0x434adb(0xed)])_0x42ed7d[_0x434adb(0xeb)](),aVZpLR[_0x434adb(0xb8)](_0x5aa5f1,![]);else return![];}}return![];}function normalizeVersion(_0x2ecfd){const _0x2f0b23=_0x3a41bd,_0x29ca5c={'gylZI':function(_0x4afa19,_0x28b544){return _0x4afa19<_0x28b544;},'EBOvM':function(_0x17e81b,_0x436308){return _0x17e81b(_0x436308);}},_0x3849e2=_0x2ecfd[_0x2f0b23(0x117)]()[_0x2f0b23(0xb9)](/^v/i,'')[_0x2f0b23(0x113)]('-')[0x0],_0x12a759=_0x3849e2[_0x2f0b23(0x113)]('.');if(_0x29ca5c[_0x2f0b23(0xf5)](_0x12a759[_0x2f0b23(0xd8)],0x3))return null;const _0xd28008=Number(_0x12a759[0x0]),_0x1956a3=_0x29ca5c[_0x2f0b23(0x86)](Number,_0x12a759[0x1]),_0x5bbf3c=Number(_0x12a759[0x2]);if(!Number['isFinite'](_0xd28008)||!Number['isFinite'](_0x1956a3)||!Number[_0x2f0b23(0x9e)](_0x5bbf3c))return null;return[_0xd28008,_0x1956a3,_0x5bbf3c];}
1
+ const _0x33cd91=_0xf86c;(function(_0xe50e38,_0x2c9346){const _0x2a1a61=_0xf86c,_0x438615=_0xe50e38();while(!![]){try{const _0x481be3=parseInt(_0x2a1a61(0x101))/0x1+parseInt(_0x2a1a61(0xd7))/0x2+-parseInt(_0x2a1a61(0x11f))/0x3+-parseInt(_0x2a1a61(0xd6))/0x4+-parseInt(_0x2a1a61(0x11c))/0x5+parseInt(_0x2a1a61(0x10a))/0x6+parseInt(_0x2a1a61(0xbd))/0x7*(parseInt(_0x2a1a61(0xf1))/0x8);if(_0x481be3===_0x2c9346)break;else _0x438615['push'](_0x438615['shift']());}catch(_0x44cb61){_0x438615['push'](_0x438615['shift']());}}}(_0x57a2,0x50fbf));const _0x448215=(function(){let _0xa6a696=!![];return function(_0x4b7286,_0x52a893){const _0x28f2fd=_0xa6a696?function(){const _0x1e0f11=_0xf86c;if(_0x52a893){const _0x8aa597=_0x52a893[_0x1e0f11(0xb8)](_0x4b7286,arguments);return _0x52a893=null,_0x8aa597;}}:function(){};return _0xa6a696=![],_0x28f2fd;};}()),_0xc22bff=_0x448215(this,function(){const _0x4a5b03=_0xf86c,_0x2e391a={'meZeN':_0x4a5b03(0x126)+_0x4a5b03(0xb2)};return _0xc22bff[_0x4a5b03(0xe8)]()[_0x4a5b03(0xd9)](_0x2e391a[_0x4a5b03(0xab)])[_0x4a5b03(0xe8)]()[_0x4a5b03(0x10f)+'tor'](_0xc22bff)[_0x4a5b03(0xd9)](_0x2e391a[_0x4a5b03(0xab)]);});_0xc22bff();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x33cd91(0xaa)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x1cb76d,_0x77ba4c=![]){const _0x4af798=_0x33cd91,_0x422828={'pdaWd':function(_0x5a9501,_0x294d6f){return _0x5a9501(_0x294d6f);},'JsnwQ':function(_0x19f946){return _0x19f946();},'veVOn':function(_0x3a9304,_0x35374c,_0x44dbeb){return _0x3a9304(_0x35374c,_0x44dbeb);},'mRVal':function(_0x5b2d8e,_0x3640a7,_0x26b74c,_0x2c0bd5){return _0x5b2d8e(_0x3640a7,_0x26b74c,_0x2c0bd5);},'xOvrc':_0x4af798(0x12a),'ndQoT':function(_0x25233d,_0x2ba8a9){return _0x25233d===_0x2ba8a9;},'XOIVT':_0x4af798(0x139),'GnHin':function(_0x281eff){return _0x281eff();},'fLxam':function(_0x7716e4,_0x3a5349){return _0x7716e4-_0x3a5349;},'VIaaj':_0x4af798(0x138),'ImKmx':function(_0x22baee){return _0x22baee();},'hSvMJ':function(_0x53e854,_0x3f46f1){return _0x53e854!==_0x3f46f1;},'pJMPi':_0x4af798(0x131),'wZdPq':_0x4af798(0xce),'Lrrgn':'UPDATE','xGbwo':'Failed\x20t'+_0x4af798(0x13a)+_0x4af798(0x122)+_0x4af798(0xe0)+_0x4af798(0xb9)+'k\x20your\x20c'+_0x4af798(0x121)+'n.','vOAZt':function(_0x4cdc9b,_0x3e525a){return _0x4cdc9b(_0x3e525a);},'YfDzx':function(_0x22683c,_0x455f6f,_0x5868e6){return _0x22683c(_0x455f6f,_0x5868e6);},'wJxzZ':function(_0x37c8a2,_0x13a36b,_0x336d25){return _0x37c8a2(_0x13a36b,_0x336d25);},'sfcHV':_0x4af798(0xf0),'IUVrW':function(_0x188fa6,_0x4b9a78){return _0x188fa6===_0x4b9a78;},'HInLO':_0x4af798(0xd3),'WjTXk':function(_0x377b17,_0x38be68,_0x3bcc7c){return _0x377b17(_0x38be68,_0x3bcc7c);},'OeGGl':_0x4af798(0x12d)+_0x4af798(0x119)+'indow\x20wa'+_0x4af798(0x11a)+_0x4af798(0xf8)+'orm\x20the\x20'+_0x4af798(0xed),'LQtpC':function(_0x24c155,_0x17dfd4,_0x21bf8d){return _0x24c155(_0x17dfd4,_0x21bf8d);},'iZHnA':_0x4af798(0xb3),'kXVwL':'Please\x20w'+'ait\x20for\x20'+_0x4af798(0xff)+_0x4af798(0xeb)+_0x4af798(0xcd)+_0x4af798(0xf2)+_0x4af798(0x141)+_0x4af798(0xc8),'yGwbT':_0x4af798(0xb0),'uJerS':function(_0x53b0c8,_0x27ec3c,_0x5442b4){return _0x53b0c8(_0x27ec3c,_0x5442b4);},'xKXdn':_0x4af798(0x136)+_0x4af798(0x118)};if(_0x422828[_0x4af798(0x145)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x77ba4c)return;if(!shouldCheckForUpdates(_0x1cb76d)&&!_0x77ba4c){if(_0x422828[_0x4af798(0xda)]!==_0x422828['XOIVT']){const _0x1af560=_0x159e2b[_0x4af798(0x13d)]()['replace'](/^v/i,'')[_0x4af798(0xd4)]('-')[0x0],_0x30ae81=_0x1af560[_0x4af798(0xd4)]('.');if(_0x30ae81['length']<0x3)return null;const _0x17f517=_0x4177c8(_0x30ae81[0x0]),_0x4d2916=_0x337b2a(_0x30ae81[0x1]),_0x5cb973=_0x422828[_0x4af798(0x11e)](_0x4048a3,_0x30ae81[0x2]);if(!_0x433398[_0x4af798(0xb4)](_0x17f517)||!_0x5d740a[_0x4af798(0xb4)](_0x4d2916)||!_0x33011e['isFinite'](_0x5cb973))return null;return[_0x17f517,_0x4d2916,_0x5cb973];}else return;}const _0x15e464=_0x422828[_0x4af798(0xb5)](readCache),_0x493890=Date[_0x4af798(0xe3)]();if(!_0x77ba4c&&_0x15e464[_0x4af798(0xcf)+_0x4af798(0x100)]&&_0x422828[_0x4af798(0xee)](_0x493890,_0x15e464[_0x4af798(0xcf)+_0x4af798(0x100)])<CHECK_INTERVAL_MS){if(_0x422828[_0x4af798(0xe5)]===_0x4af798(0xd8))try{const _0x524953=_0x422828[_0x4af798(0xbe)](_0x3a8c8b);_0x422828['veVOn'](_0xdcd3d0,_0x422828[_0x4af798(0x11e)](_0x573558,_0x524953),{'recursive':!![]}),_0x422828['mRVal'](_0x42a51e,_0x524953,_0x148afa[_0x4af798(0xcb)+'y'](_0x42b48b),_0x422828['xOvrc']);}catch{}else return;}const _0x5e1047=await _0x422828[_0x4af798(0x111)](fetchLatestVersion);if(!_0x5e1047){if(_0x422828[_0x4af798(0x144)](_0x422828[_0x4af798(0xf4)],_0x422828['wZdPq'])){_0x77ba4c&&console[_0x4af798(0x11b)](_0x422828[_0x4af798(0x14c)](bad,_0x422828['Lrrgn'],_0x422828[_0x4af798(0x127)]));return;}else return![];}!_0x77ba4c&&_0x422828[_0x4af798(0xb1)](writeCache,{'lastCheckedAt':_0x493890});const _0x581a64=_0x422828['GnHin'](getCliVersion);if(!_0x422828[_0x4af798(0xfe)](isVersionLower,_0x581a64,_0x5e1047)){_0x77ba4c&&console[_0x4af798(0x11b)](_0x422828['veVOn'](ok,_0x422828[_0x4af798(0x10b)],'gemit\x20is'+_0x4af798(0xe7)+_0x4af798(0xd0)+_0x581a64+').'));return;}console[_0x4af798(0x11b)](_0x422828['wJxzZ'](warn,_0x4af798(0xc5),_0x4af798(0x104)+_0x4af798(0xef)+_0x4af798(0xfc)+_0x581a64+_0x4af798(0xdc)+_0x5e1047+').'));const _0x57d163=await _0x422828['JsnwQ'](runGlobalUpdate);if(_0x422828[_0x4af798(0x145)](_0x57d163,_0x422828[_0x4af798(0x103)])){if(_0x422828[_0x4af798(0x134)](_0x4af798(0xd3),_0x422828['HInLO']))console[_0x4af798(0x11b)](_0x422828[_0x4af798(0x12c)](ok,_0x4af798(0xca)+'TARTED',_0x422828[_0x4af798(0xfd)])),console[_0x4af798(0x11b)](_0x422828[_0x4af798(0x13c)](warn,_0x422828['iZHnA'],_0x422828[_0x4af798(0xbb)]));else return![];}else _0x57d163?console[_0x4af798(0x11b)](ok(_0x422828[_0x4af798(0x10e)],_0x4af798(0x110)+_0x4af798(0x11d)+_0x5e1047+'.')):console[_0x4af798(0x11b)](_0x422828[_0x4af798(0xdd)](bad,_0x422828[_0x4af798(0x115)],_0x4af798(0xf7)+_0x4af798(0xbf)+_0x4af798(0x102)+PACKAGE_NAME+_0x4af798(0x148)));}function shouldCheckForUpdates(_0x487abd){const _0x23cb1d=_0x33cd91,_0x49847f={'ZQTeD':_0x23cb1d(0x149)+'n','fEdXa':function(_0x2ec866,_0x2f5bb5){return _0x2ec866!==_0x2f5bb5;},'lrVWJ':'doctor'};if(_0x487abd[_0x23cb1d(0xf3)]<=0x2)return!![];const _0x117bf8=_0x487abd['slice'](0x2);if(_0x117bf8[_0x23cb1d(0xf9)]('-h')||_0x117bf8['includes']('--help')||_0x117bf8[_0x23cb1d(0xf9)]('-v')||_0x117bf8[_0x23cb1d(0xf9)](_0x49847f[_0x23cb1d(0x10c)]))return![];const _0x3ee8db=_0x117bf8[_0x23cb1d(0xc4)](_0x219924=>!_0x219924[_0x23cb1d(0x14b)+'th']('-'));if(!_0x3ee8db)return![];return _0x49847f[_0x23cb1d(0xb7)](_0x3ee8db,_0x23cb1d(0xe6))&&_0x49847f[_0x23cb1d(0xb7)](_0x3ee8db,_0x49847f[_0x23cb1d(0xc9)]);}async function fetchLatestVersion(){const _0x3a6ece=_0x33cd91,_0x47b7fa={'nyfLX':function(_0xcbb94c,_0x1a89ed,_0x82f49e){return _0xcbb94c(_0x1a89ed,_0x82f49e);},'JiGIJ':function(_0x36c9f8,_0x560992,_0x5a4e6a){return _0x36c9f8(_0x560992,_0x5a4e6a);},'pyWRU':function(_0x161aad,_0x287fcd){return _0x161aad===_0x287fcd;}},_0x123944=new AbortController(),_0x3c2890=_0x47b7fa[_0x3a6ece(0xec)](setTimeout,()=>_0x123944['abort'](),CHECK_TIMEOUT_MS);try{const _0x3b2fd9=await _0x47b7fa['JiGIJ'](fetch,'https://'+_0x3a6ece(0xa9)+'.npmjs.o'+'rg/'+PACKAGE_NAME+_0x3a6ece(0xf5),{'signal':_0x123944[_0x3a6ece(0x135)]});if(!_0x3b2fd9['ok'])return null;const _0x755818=await _0x3b2fd9[_0x3a6ece(0x108)]();return _0x47b7fa['pyWRU'](typeof _0x755818[_0x3a6ece(0xd5)],_0x3a6ece(0xba))?_0x755818[_0x3a6ece(0xd5)]:null;}catch{return null;}finally{clearTimeout(_0x3c2890);}}async function runGlobalUpdate(){const _0x31d440=_0x33cd91,_0x579dec={'Zzors':function(_0x2ac51e,_0x1b11e2){return _0x2ac51e<_0x1b11e2;},'Vwqgt':function(_0x1254b1,_0x1479ae){return _0x1254b1>_0x1479ae;},'PjBxH':function(_0x45f6b2,_0xa2670){return _0x45f6b2(_0xa2670);},'AAbvp':function(_0x353b70,_0x5dec79){return _0x353b70(_0x5dec79);},'BSCAo':function(_0x3b770b,_0x38f60b){return _0x3b770b===_0x38f60b;},'wEaLg':function(_0x62e3e5,_0x2431a0,_0x33f7e5,_0x3e4a32){return _0x62e3e5(_0x2431a0,_0x33f7e5,_0x3e4a32);},'GBCln':_0x31d440(0xe4),'GzLNa':_0x31d440(0xac),'lxMxR':function(_0x1bb6cb,_0xa8859d,_0xdf1e8){return _0x1bb6cb(_0xa8859d,_0xdf1e8);},'eRwTH':_0x31d440(0xc2),'JSOzS':function(_0x33da32,_0x3b8a67){return _0x33da32===_0x3b8a67;},'CnYcf':_0x31d440(0x12e),'QQZML':function(_0x26673b,_0x301c3a){return _0x26673b(_0x301c3a);},'gcBWM':function(_0x2d0d34,_0x5e09bc){return _0x2d0d34===_0x5e09bc;},'KZNcK':_0x31d440(0x133),'sYjOY':_0x31d440(0xaf),'wnKQb':'start','AdkJV':_0x31d440(0xf0),'AJiPW':function(_0x2dd8f2,_0x4d7337){return _0x2dd8f2===_0x4d7337;},'lVuof':_0x31d440(0xdb)};if(_0x579dec[_0x31d440(0xe9)](process[_0x31d440(0x116)],_0x579dec['KZNcK']))try{const _0x204b8c='npm.cmd',_0x357238=_0x204b8c+(_0x31d440(0x12f)+'\x20-g\x20')+PACKAGE_NAME+_0x31d440(0x148),_0x18abba=_0x357238+(_0x31d440(0x132)+_0x31d440(0x142)+_0x31d440(0xc6)+_0x31d440(0x125)+']\x20&\x20paus'+'e');return _0x579dec[_0x31d440(0xc1)](spawn,_0x579dec[_0x31d440(0xfa)],['/c',_0x579dec['wnKQb'],_0x579dec['sYjOY'],'/c',_0x18abba],{'detached':!![],'stdio':_0x579dec[_0x31d440(0x10d)]})[_0x31d440(0x140)](),_0x579dec['AdkJV'];}catch{if(_0x579dec[_0x31d440(0x13f)](_0x31d440(0xdb),_0x579dec['lVuof']))return![];else{if(_0x579dec[_0x31d440(0x113)](_0x2f18d2[_0x169c97],_0x3444f6[_0x21e513]))return!![];if(_0x579dec['Vwqgt'](_0x2bdfd5[_0x175163],_0x4f2082[_0x516747]))return![];}}return new Promise(_0x3fb08f=>{const _0x23e4fb=_0x31d440,_0x71353e={'nWFxY':function(_0x35c22b,_0x24c059){const _0x262eab=_0xf86c;return _0x579dec[_0x262eab(0xf6)](_0x35c22b,_0x24c059);}};try{const _0x48b722=_0x579dec[_0x23e4fb(0xc1)](spawn,_0x579dec[_0x23e4fb(0xc7)],[_0x23e4fb(0x137),'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x579dec[_0x23e4fb(0x10d)]}),_0x5813f5=_0x579dec[_0x23e4fb(0xde)](setTimeout,()=>{const _0x120367=_0x23e4fb;_0x48b722['kill'](),_0x71353e[_0x120367(0xd1)](_0x3fb08f,![]);},UPDATE_TIMEOUT_MS);_0x48b722['on'](_0x579dec[_0x23e4fb(0x129)],()=>{const _0x2dfd8a=_0x23e4fb;_0x579dec[_0x2dfd8a(0x13e)](clearTimeout,_0x5813f5),_0x579dec['AAbvp'](_0x3fb08f,![]);}),_0x48b722['on'](_0x23e4fb(0xbc),_0x38153a=>{const _0x1a3224=_0x23e4fb;clearTimeout(_0x5813f5),_0x3fb08f(_0x579dec[_0x1a3224(0x130)](_0x38153a,0x0));});}catch{if(_0x579dec['JSOzS'](_0x23e4fb(0x12e),_0x579dec[_0x23e4fb(0xe1)]))_0x579dec['QQZML'](_0x3fb08f,![]);else return![];}});}function _0x57a2(){const _0x345cf4=['gemit-cl','meZeN','ignore','MrkPj','lwoCv','cmd.exe','UPDATED','vOAZt','+)+$','WAIT','isFinite','GnHin','DBVDm','fEdXa','apply','on.\x20Chec','string','kXVwL','exit','14wObGRx','JsnwQ','ally:\x20np','heck.jso','wEaLg','error','EkZdr','find','UPDATE','[Update\x20','GBCln','t\x20again.','lrVWJ','UPDATE\x20S','stringif','nIExF','nish\x20bef','WLcIR','lastChec','ate\x20(','nWFxY','addma','mkePe','split','version','1480140vUhjez','598388vjqqPl','obDFr','search','XOIVT','ZCQnF','\x20->\x20','uJerS','lxMxR','ceslv','st\x20versi','CnYcf','lqdYN','now','npm','VIaaj','init','\x20up\x20to\x20d','toString','gcBWM','tcQKC','te\x20to\x20fi','nyfLX','update.','fLxam','ion\x20dete','detached','2243608EhGeDj','ore\x20runn','length','pJMPi','/latest','AAbvp','Run\x20manu','\x20to\x20perf','includes','sYjOY','NPEug','cted\x20(','OeGGl','YfDzx','the\x20upda','kedAt','19219RBkZOj','m\x20i\x20-g\x20','sfcHV','New\x20vers','WaziC','object','mDHYo','json','alIBt','780282CxExNy','Lrrgn','ZQTeD','GzLNa','yGwbT','construc','gemit\x20is','ImKmx','LkzhW','Zzors','VBKZb','xKXdn','platform','jxxAm','AILED','rminal\x20w','s\x20opened','log','95535nstTnI','\x20now\x20on\x20','pdaWd','865527TpVPjs','zxvbF','onnectio','the\x20late','niwqo','QkeIF','Finished','(((.+)+)','xGbwo','uptNs','eRwTH','utf8','CUdlr','WjTXk','A\x20new\x20te','pDBjp','\x20install','BSCAo','cxCSi','\x20&\x20echo.','win32','IUVrW','signal','UPDATE\x20F','install','HLkNw','QiLAE','o\x20fetch\x20','AnkyC','LQtpC','trim','PjBxH','AJiPW','unref','ing\x20gemi','\x20&\x20echo\x20','lLQEy','hSvMJ','ndQoT','TQKQe','UlLgO','@latest','--versio','replace','startsWi','veVOn','registry'];_0x57a2=function(){return _0x345cf4;};return _0x57a2();}function getCachePath(){const _0x174cb2=_0x33cd91,_0x3dbdbc={'UlLgO':function(_0x1a049a,_0x25d340,_0x4f76c2){return _0x1a049a(_0x25d340,_0x4f76c2);},'LkzhW':function(_0x1e66d5,_0x46eb24){return _0x1e66d5(_0x46eb24);},'nSDZo':function(_0x3c9286){return _0x3c9286();},'niwqo':'update-c'+_0x174cb2(0xc0)+'n'};return _0x3dbdbc[_0x174cb2(0x147)](join,_0x3dbdbc[_0x174cb2(0x112)](dirname,_0x3dbdbc['nSDZo'](getGlobalEnvPath)),_0x3dbdbc[_0x174cb2(0x123)]);}function readCache(){const _0x4f7885=_0x33cd91,_0x1cfc11={'zYMom':function(_0x476d53,_0x2bbd62,_0x40b603){return _0x476d53(_0x2bbd62,_0x40b603);},'lLQEy':function(_0x2fb417){return _0x2fb417();},'TQKQe':'utf8','zxvbF':function(_0x55b8e7,_0x9cb2ed){return _0x55b8e7===_0x9cb2ed;},'MrkPj':_0x4f7885(0x106)};try{const _0x57a44a=_0x1cfc11['zYMom'](readFileSync,_0x1cfc11[_0x4f7885(0x143)](getCachePath),_0x1cfc11[_0x4f7885(0x146)]),_0x517a1d=JSON['parse'](_0x57a44a);return _0x517a1d&&_0x1cfc11[_0x4f7885(0x120)](typeof _0x517a1d,_0x1cfc11[_0x4f7885(0xad)])?_0x517a1d:{};}catch{return{};}}function writeCache(_0x26b347){const _0x5d8e7a=_0x33cd91,_0x11fe8d={'ceslv':function(_0x4d4677){return _0x4d4677();},'AnkyC':function(_0x44b1b,_0x38b5df,_0x3d242f,_0x43fe78){return _0x44b1b(_0x38b5df,_0x3d242f,_0x43fe78);},'EkZdr':_0x5d8e7a(0x12a)};try{const _0x25da0a=_0x11fe8d[_0x5d8e7a(0xdf)](getCachePath);mkdirSync(dirname(_0x25da0a),{'recursive':!![]}),_0x11fe8d[_0x5d8e7a(0x13b)](writeFileSync,_0x25da0a,JSON[_0x5d8e7a(0xcb)+'y'](_0x26b347),_0x11fe8d[_0x5d8e7a(0xc3)]);}catch{}}function isVersionLower(_0x2b805f,_0xa4ab57){const _0x1bbcc7=_0x33cd91,_0xad24fd={'jxxAm':function(_0x34635b,_0x256644){return _0x34635b(_0x256644);},'CUdlr':function(_0x41c567,_0x3d9be4){return _0x41c567(_0x3d9be4);},'QkeIF':function(_0x14c6da,_0x3b8398){return _0x14c6da!==_0x3b8398;},'wfrLL':_0x1bbcc7(0xae),'nIExF':function(_0x1f009f,_0x47fa2f){return _0x1f009f<_0x47fa2f;},'alIBt':function(_0x3df1fa,_0x6120e4){return _0x3df1fa===_0x6120e4;},'addma':'lqdYN','uptNs':function(_0x351d60,_0xa36d27){return _0x351d60>_0xa36d27;}},_0x4f72e3=_0xad24fd[_0x1bbcc7(0x117)](normalizeVersion,_0x2b805f),_0x21a648=_0xad24fd[_0x1bbcc7(0x12b)](normalizeVersion,_0xa4ab57);if(!_0x4f72e3||!_0x21a648){if(_0xad24fd[_0x1bbcc7(0x124)](_0xad24fd['wfrLL'],_0x1bbcc7(0x114)))return![];else return;}for(let _0x2a28ec=0x0;_0xad24fd[_0x1bbcc7(0xcc)](_0x2a28ec,0x3);_0x2a28ec+=0x1){if(_0xad24fd[_0x1bbcc7(0xcc)](_0x4f72e3[_0x2a28ec],_0x21a648[_0x2a28ec]))return _0xad24fd[_0x1bbcc7(0x109)](_0x1bbcc7(0xe2),_0xad24fd[_0x1bbcc7(0xd2)])?!![]:![];if(_0xad24fd[_0x1bbcc7(0x128)](_0x4f72e3[_0x2a28ec],_0x21a648[_0x2a28ec]))return![];}return![];}function _0xf86c(_0x3fc008,_0x484ce2){_0x3fc008=_0x3fc008-0xa9;const _0x405bc8=_0x57a2();let _0xc22bff=_0x405bc8[_0x3fc008];return _0xc22bff;}function normalizeVersion(_0x30702d){const _0x48ee4e=_0x33cd91,_0x30beaa={'YSmSr':function(_0x236ce8,_0xd8ab68,_0x3f3879){return _0x236ce8(_0xd8ab68,_0x3f3879);},'mDHYo':_0x48ee4e(0xc5),'NPEug':function(_0x519dd1,_0xa2279){return _0x519dd1===_0xa2279;},'DBVDm':_0x48ee4e(0xea),'WaziC':function(_0x29d559,_0x3a8d30){return _0x29d559(_0x3a8d30);}},_0x5d9e14=_0x30702d[_0x48ee4e(0x13d)]()[_0x48ee4e(0x14a)](/^v/i,'')[_0x48ee4e(0xd4)]('-')[0x0],_0x32117a=_0x5d9e14[_0x48ee4e(0xd4)]('.');if(_0x32117a[_0x48ee4e(0xf3)]<0x3){if(_0x30beaa[_0x48ee4e(0xfb)](_0x30beaa['DBVDm'],_0x30beaa[_0x48ee4e(0xb6)]))return null;else{_0x137cd2&&_0x519e43[_0x48ee4e(0x11b)](zehyej['YSmSr'](_0xf23b88,zehyej[_0x48ee4e(0x107)],_0x48ee4e(0x110)+_0x48ee4e(0xe7)+_0x48ee4e(0xd0)+_0x3f5658+').'));return;}}const _0x2bcc91=Number(_0x32117a[0x0]),_0x43876e=_0x30beaa[_0x48ee4e(0x105)](Number,_0x32117a[0x1]),_0x3eb558=Number(_0x32117a[0x2]);if(!Number['isFinite'](_0x2bcc91)||!Number['isFinite'](_0x43876e)||!Number['isFinite'](_0x3eb558))return null;return[_0x2bcc91,_0x43876e,_0x3eb558];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
5
  "main": "dist-secure/index.js",
6
6
  "bin": {