@northflank/cli 0.9.20 → 0.9.22

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
- 'use strict';const a4k=a4J;(function(Z,J){const d=a4J,z=Z();while(!![]){try{const P=-parseInt(d(0x78))/0x1+parseInt(d(0xcf))/0x2+-parseInt(d(0xbd))/0x3*(-parseInt(d(0xbf))/0x4)+parseInt(d(0xaf))/0x5*(parseInt(d(0x87))/0x6)+-parseInt(d(0xc1))/0x7+-parseInt(d(0x8c))/0x8*(parseInt(d(0x84))/0x9)+parseInt(d(0xc0))/0xa;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a4Z,0xa205a));function a4Z(){const f=['Command\x20completed\x20successfully,\x20exit\x20code:\x20','action','then','\x20to\x20exec\x20into','askForProject','greenBright','log','--user\x20[USER]','with\x20user:','\x20in\x20project\x20','__esModule','throw','setRawMode','readline','description','--cmd\x20--command\x20[COMMAND]','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','with\x20group:','Run\x20command\x20with\x20this\x20group','1820SYwoFS','Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','toUpperCase','apply','stdout','default','error','sequence','join','message','shell\x20command\x20','InquirerHelper','chalk','566103YekaWx','exitCode','12LVmoPe','890940VCWmiL','1314502Mugcpk','getCurrentProjectName','@northflank/js-client','Id\x20[NAME]','getTerminalSize','charAt','resizeTerminal','exec','emitKeypressEvents','name','apiClient','getCommand','--group\x20[GROUP]','customUserAgent','52224PyAjyR','askForService','rows','execStartLog','bold','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','defineProperty','execCmd','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','pipe','addCommand','execJobSession','exit','command-exec','columns','__awaiter','--container\x20--containerId\x20[NAME]','job','Project\x20for\x20exec','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','service','value','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','95557pZMGxF','stdin','Unknown','Exec\x20','isTTY','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','Command\x20exec\x20for\x20the\x20specified\x20','stderr','Success','none','Error\x20occured\x20during\x20','keypress','576GXzbHd','\x27Ctrl+D\x27','getStandardExecCommand','9462cZSCuc','status','execServiceSession','stdOut','next','38544vjHquF','without\x20shell','warning','__importDefault','handleShellSession','../utils','option','--shell-cmd\x20[SHELL-CMD]','waitForCommandResult','with\x20shell\x20session','with\x20command\x20\x27','assertContextExisting','\x20--','ApiClient','getCurrentServiceName','askForJob'];a4Z=function(){return f;};return a4Z();}var __awaiter=this&&this[a4k(0xde)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const X=a4J;function n(v){try{C(B['next'](v));}catch(o){A(o);}}function F(v){const N=a4J;try{C(B[N(0xa7)](v));}catch(o){A(o);}}function C(v){const W=a4J;v['done']?s(v[W(0x76)]):U(v['value'])[W(0x9e)](n,F);}C((B=B[X(0xb3)](Z,J||[]))[X(0x8b)]());});},__importDefault=this&&this[a4k(0x8f)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object[a4k(0xd5)](exports,a4k(0xa6),{'value':!![]}),exports['CliExec']=void 0x0;function a4J(Z,J){const z=a4Z();return a4J=function(P,B){P=P-0x72;let U=z[P];return U;},a4J(Z,J);}const js_client_1=require(a4k(0xc3)),chalk_1=__importDefault(require(a4k(0xbc))),utils_1=require(a4k(0x91)),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(Z){const D=a4k;this[D(0x86)]=B=>(0x0,utils_1[D(0xcc)])(!![])[D(0xca)](B)[D(0xaa)](D(0x7e)+B+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+B+D(0x77)+B+D(0xd4)+B+'\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20'+B+'\x20--shell-cmd\x20\x27sh\x27')[D(0x92)]('--project\x20--projectId\x20[NAME]',D(0x73))[D(0x92)]('--'+B+D(0x98)+B+D(0xc4),B[D(0xc6)](0x0)[D(0xb2)]()+B['slice'](0x1)+D(0x9f))[D(0x92)](D(0xdf),D(0xb1))[D(0x92)](D(0x93),D(0xac))[D(0x92)](D(0xa3),'Run\x20command\x20with\x20this\x20user')['option'](D(0xcd),D(0xae))[D(0x92)]('--noDefaults',D(0xd7),![])['option'](D(0xab),D(0xb0)),this[D(0xc5)]=()=>({'columns':process[D(0xb4)][D(0xdd)],'rows':process[D(0xb4)][D(0xd1)]}),this['execStartLog']=(B,U,s,A,n,F,C,v)=>{const q=D;if(v===!![])return;const o=A===q(0x81),j=o?q(0x8d):A===undefined?q(0x95):q(0xba)+chalk_1[q(0xb5)][q(0xa1)](A),V=n!==undefined?q(0xa4)+n:'',i=F!==undefined?q(0xad)+F:'',p=C!==undefined?q(0x96)+chalk_1[q(0xb5)][q(0xa1)](C)+'\x27':'',S=[p,j,V,i]['filter'](g=>g!=='')[q(0xb8)]('\x20'),e='(exit\x20with\x20two\x20quick\x20'+chalk_1[q(0xb5)][q(0xd3)](q(0x85))+')';console[q(0xa2)](q(0x7b)+B+'\x20'+chalk_1['default'][q(0xd3)](U)+q(0xa5)+chalk_1[q(0xb5)]['bold'](s)+'\x20'+S+'\x20'+e);},this[D(0x90)]=(B,U,s=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const y=D;var A,n;let F=![];try{if(process['stdin'][y(0x7c)]){const v=require(y(0xa9));v[y(0xc9)](process[y(0x79)]),process[y(0x79)][y(0xa8)](!![]),process[y(0xb4)]['on']('resize',()=>{const O=y;B[O(0xc7)](this[O(0xc5)]());}),process[y(0x79)]['on'](y(0x83),(o,j)=>{const G=y;j[G(0xb7)]==='\x04'&&(F?(process[G(0x79)][G(0xa8)](![]),(0x0,utils_1['warning'])(G(0x74)),process[G(0xdb)]()):(F=!![],setTimeout(()=>F=![],0x190)));});}process[y(0x79)][y(0xd8)](B['stdIn']),B['stdErr'][y(0xd8)](process[y(0x7f)]),B[y(0x8a)][y(0xd8)](process[y(0xb4)]),B['on'](y(0xb6),o=>{const K=y;var j;(0x0,utils_1['error'])(K(0x82)+U+'\x20command\x20exec:\x20'+((j=o[K(0xb9)])!==null&&j!==void 0x0?j:o)),process[K(0x79)][K(0x7c)]&&process['stdin'][K(0xa8)](![]),process['exit'](-0x1);});const C=yield B[y(0x94)]();if(s!==!![]){const o=(A=C===null||C===void 0x0?void 0x0:C[y(0x88)])!==null&&A!==void 0x0?A:y(0x7a),j=(n=C===null||C===void 0x0?void 0x0:C[y(0xbe)])!==null&&n!==void 0x0?n:-0x1,V=(C===null||C===void 0x0?void 0x0:C['message'])?',\x20details:\x20'+C[y(0xb9)]:'';o===y(0x80)?(0x0,utils_1['success'])(y(0x9c)+j):(0x0,utils_1[y(0x8e)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+o+',\x20exit\x20code:\x20'+j+V);}return C;}finally{process[y(0x79)][y(0x7c)]&&process['stdin']['setRawMode'](![]);}}),this[D(0xcb)]=new js_client_1[(D(0x99))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[D(0xce)]});const J=new inquirer_helper_1[(D(0xbb))](this[D(0xcb)]);this[D(0xd6)]=(0x0,utils_1[D(0xcc)])()[D(0xca)](D(0xdc))['alias'](D(0xc8))[D(0xaa)](D(0x7d));const z=this[D(0x86)](D(0x75))[D(0x9d)](B=>__awaiter(this,void 0x0,void 0x0,function*(){const l=D,{noDefaults:U,projectId:s,serviceId:A,containerId:n,shellCmd:F,user:C,group:v,command:o,quiet:j}=B;(0x0,utils_1[l(0x97)])(this[l(0xcb)]);try{const V=U?undefined:Z[l(0xc2)](),i=s||V||(yield J[l(0xa0)]()),p=U?undefined:Z[l(0x9a)](),S=A||p||(yield J[l(0xd0)](i)()),g=F!==null&&F!==void 0x0?F:o!==undefined?'none':undefined;this[l(0xd2)]('service',S,i,g,C,v,o,j);const I=process[l(0xb4)][l(0xdd)],m=process['stdout'][l(0xd1)],L={'projectId':i,'serviceId':S},M=yield this['apiClient'][l(0xc8)][l(0x89)](L,{'containerName':n,'command':o,'shell':g,'user':C,'group':v,'ttyColumns':I,'ttyRows':m});yield this['handleShellSession'](M,'service',j);}catch(x){(0x0,utils_1[l(0xb6)])(''+x[l(0xb9)]);}finally{process['exit']();}})),P=this[D(0x86)]('job')['action'](B=>__awaiter(this,void 0x0,void 0x0,function*(){const b=D,{projectId:U,jobId:s,containerId:A,noDefaults:n,shellCmd:F,user:C,group:v,command:o,quiet:j}=B;(0x0,utils_1[b(0x97)])(this['apiClient']);try{const V=n?undefined:Z[b(0xc2)](),i=U||V||(yield J[b(0xa0)]()),p=s||(yield J[b(0x9b)](i)());this['execStartLog'](b(0x72),p,i,F,j);const {rows:S,columns:g}=this[b(0xc5)](),I={'projectId':i,'jobId':p},m=yield this[b(0xcb)][b(0xc8)][b(0xda)](I,{'containerName':A,'command':o,'shell':F,'user':C,'group':v,'ttyColumns':g,'ttyRows':S});yield this[b(0x90)](m,b(0x72),j);}catch(L){(0x0,utils_1[b(0xb6)])(''+L[b(0xb9)]);}finally{process[b(0xdb)]();}}));this[D(0xd6)]['addCommand'](z),this['execCmd'][D(0xd9)](P);}}exports['CliExec']=CliExec;
1
+ 'use strict';const a4K=a4N;(function(x,N){const j=a4N,c=x();while(!![]){try{const a=parseInt(j(0x165))/0x1*(parseInt(j(0x14b))/0x2)+-parseInt(j(0x13a))/0x3*(-parseInt(j(0x115))/0x4)+-parseInt(j(0x11b))/0x5+parseInt(j(0x16b))/0x6*(parseInt(j(0x136))/0x7)+parseInt(j(0x112))/0x8+parseInt(j(0x12b))/0x9+parseInt(j(0x168))/0xa*(-parseInt(j(0x16f))/0xb);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a4x,0xdfdf3));function a4N(x,N){const c=a4x();return a4N=function(a,J){a=a-0x111;let p=c[a];return p;},a4N(x,N);}var __awaiter=this&&this[a4K(0x15f)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const L=a4N;function s(M){const m=a4N;try{d(a[m(0x12f)](M));}catch(A){e(A);}}function q(M){const S=a4N;try{d(a[S(0x166)](M));}catch(A){e(A);}}function d(M){const W=a4N;M[W(0x164)]?p(M['value']):J(M[W(0x161)])[W(0x16c)](s,q);}d((a=a[L(0x176)](x,N||[]))[L(0x12f)]());});},__importDefault=this&&this[a4K(0x127)]||function(x){const v=a4K;return x&&x[v(0x15b)]?x:{'default':x};};Object[a4K(0x158)](exports,'__esModule',{'value':!![]}),exports['CliExec']=void 0x0;const js_client_1=require(a4K(0x15a)),chalk_1=__importDefault(require(a4K(0x119))),utils_1=require(a4K(0x129)),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(x){const h=a4K;this['getStandardExecCommand']=J=>(0x0,utils_1[h(0x159)])(!![])[h(0x15e)](J)[h(0x122)](h(0x17c)+J+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+J+h(0x11e)+J+h(0x156)+J+h(0x17e)+J+h(0x17d))['option']('--project\x20--projectId\x20[NAME]',h(0x146))[h(0x13c)]('--'+J+'\x20--'+J+h(0x177),J[h(0x133)](0x0)[h(0x173)]()+J[h(0x12e)](0x1)+'\x20to\x20exec\x20into')['option'](h(0x145),h(0x138))[h(0x13c)](h(0x15c),h(0x117))[h(0x13c)](h(0x132),'Run\x20command\x20with\x20this\x20user')[h(0x13c)](h(0x167),h(0x139))[h(0x13c)](h(0x128),h(0x17a),![])[h(0x13c)]('--cmd\x20--command\x20[COMMAND]','Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.'),this['getTerminalSize']=()=>({'columns':process[h(0x179)][h(0x131)],'rows':process[h(0x179)][h(0x140)]}),this[h(0x147)]=(J,p,e,s,q,d,M,A)=>{const B=h;if(A===!![])return;const l=s===B(0x148),Z=l?B(0x13f):s===undefined?B(0x17b):B(0x114)+chalk_1[B(0x16a)][B(0x16e)](s),V=q!==undefined?B(0x11d)+q:'',g=d!==undefined?B(0x154)+d:'',P=M!==undefined?'with\x20command\x20\x27'+chalk_1['default'][B(0x16e)](M)+'\x27':'',n=[P,Z,V,g]['filter'](k=>k!=='')[B(0x124)]('\x20'),Q=B(0x155)+chalk_1[B(0x16a)][B(0x120)](B(0x126))+')';console['log'](B(0x123)+J+'\x20'+chalk_1[B(0x16a)][B(0x120)](p)+B(0x13b)+chalk_1['default']['bold'](e)+'\x20'+n+'\x20'+Q);},this['handleShellSession']=(J,p,e=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const o=h;var s,q;let d=![];try{if(process[o(0x175)][o(0x14c)]){const A=require(o(0x157));A[o(0x142)](process['stdin']),process['stdin'][o(0x14d)](!![]),process[o(0x179)]['on'](o(0x152),()=>{const G=o;J['resizeTerminal'](this[G(0x169)]());}),process[o(0x175)]['on']('keypress',(l,Z)=>{const E=o;Z['sequence']==='\x04'&&(d?(process[E(0x175)][E(0x14d)](![]),(0x0,utils_1[E(0x11f)])(E(0x13e)),process[E(0x137)]()):(d=!![],setTimeout(()=>d=![],0x190)));});}process['stdin'][o(0x178)](J[o(0x130)]),J[o(0x162)][o(0x178)](process[o(0x17f)]),J['stdOut'][o(0x178)](process[o(0x179)]),J['on']('error',l=>{const u=o;var Z;(0x0,utils_1['error'])(u(0x153)+p+u(0x16d)+((Z=l[u(0x163)])!==null&&Z!==void 0x0?Z:l)),process[u(0x175)]['isTTY']&&process[u(0x175)][u(0x14d)](![]),process['exit'](-0x1);});const M=yield J[o(0x14e)]();if(e!==!![]){const l=(s=M===null||M===void 0x0?void 0x0:M[o(0x12c)])!==null&&s!==void 0x0?s:o(0x13d),Z=(q=M===null||M===void 0x0?void 0x0:M[o(0x11a)])!==null&&q!==void 0x0?q:-0x1,V=(M===null||M===void 0x0?void 0x0:M[o(0x163)])?',\x20details:\x20'+M[o(0x163)]:'';l===o(0x134)?(0x0,utils_1['success'])(o(0x160)+Z):(0x0,utils_1[o(0x11f)])(o(0x14f)+l+o(0x113)+Z+V);}return M;}finally{process['stdin'][o(0x14c)]&&process[o(0x175)][o(0x14d)](![]);}}),this['apiClient']=new js_client_1[(h(0x118))](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[h(0x171)]});const N=new inquirer_helper_1[(h(0x135))](this[h(0x116)]);this[h(0x149)]=(0x0,utils_1[h(0x159)])()[h(0x15e)](h(0x121))[h(0x12d)](h(0x141))[h(0x122)](h(0x172));const c=this[h(0x170)](h(0x125))[h(0x15d)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const X=h,{noDefaults:p,projectId:s,serviceId:q,containerId:d,shellCmd:M,user:A,group:l,command:Z,quiet:V}=J;(0x0,utils_1[X(0x111)])(this[X(0x116)]);try{const g=p?undefined:x[X(0x11c)](),P=s||g||(yield N[X(0x151)]()),n=p?undefined:x[X(0x12a)](),Q=q||n||(yield N[X(0x174)](P)()),k=M!==null&&M!==void 0x0?M:Z!==undefined?X(0x148):undefined;this[X(0x147)](X(0x125),Q,P,k,A,l,Z,V);const b=process['stdout'][X(0x131)],F=process[X(0x179)][X(0x140)],I={'projectId':P,'serviceId':Q},z=yield this[X(0x116)]['exec']['execServiceSession'](I,{'containerName':d,'command':Z,'shell':k,'user':A,'group':l,'ttyColumns':b,'ttyRows':F});yield this['handleShellSession'](z,X(0x125),V);}catch(w){(0x0,utils_1[X(0x143)])(''+w['message']);}finally{process[X(0x137)]();}})),a=this['getStandardExecCommand'](h(0x144))[h(0x15d)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const R=h,{projectId:p,jobId:s,containerId:q,noDefaults:d,shellCmd:M,user:A,group:l,command:Z,quiet:V}=J;(0x0,utils_1[R(0x111)])(this[R(0x116)]);try{const g=d?undefined:x[R(0x11c)](),P=p||g||(yield N[R(0x151)]()),n=s||(yield N[R(0x150)](P)());this[R(0x147)](R(0x144),n,P,M,V);const {rows:Q,columns:k}=this[R(0x169)](),b={'projectId':P,'jobId':n},F=yield this[R(0x116)][R(0x141)]['execJobSession'](b,{'containerName':q,'command':Z,'shell':M,'user':A,'group':l,'ttyColumns':k,'ttyRows':Q});yield this['handleShellSession'](F,'job',V);}catch(I){(0x0,utils_1[R(0x143)])(''+I['message']);}finally{process[R(0x137)]();}}));this[h(0x149)][h(0x14a)](c),this['execCmd'][h(0x14a)](a);}}exports['CliExec']=CliExec;function a4x(){const t=['with\x20group:','(exit\x20with\x20two\x20quick\x20','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','readline','defineProperty','getCommand','@northflank/js-client','__esModule','--shell-cmd\x20[SHELL-CMD]','action','name','__awaiter','Command\x20completed\x20successfully,\x20exit\x20code:\x20','value','stdErr','message','done','40GwzpJD','throw','--group\x20[GROUP]','10BqTtki','getTerminalSize','default','150FeCKDD','then','\x20command\x20exec:\x20','greenBright','25192167GQJNyo','getStandardExecCommand','customUserAgent','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','toUpperCase','askForService','stdin','apply','Id\x20[NAME]','pipe','stdout','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','with\x20shell\x20session','Command\x20exec\x20for\x20the\x20specified\x20','\x20--shell-cmd\x20\x27sh\x27','\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20','stderr','assertContextExisting','13304488ktyoVg',',\x20exit\x20code:\x20','shell\x20command\x20','1545524CeoPEA','apiClient','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','ApiClient','chalk','exitCode','2127930EmICgy','getCurrentProjectName','with\x20user:','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','warning','bold','command-exec','description','Exec\x20','join','service','\x27Ctrl+D\x27','__importDefault','--noDefaults','../utils','getCurrentServiceName','13414275FSeiZf','status','alias','slice','next','stdIn','columns','--user\x20[USER]','charAt','Success','InquirerHelper','9275aSsOzC','exit','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','Run\x20command\x20with\x20this\x20group','3xWCeiW','\x20in\x20project\x20','option','Unknown','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','without\x20shell','rows','exec','emitKeypressEvents','error','job','--container\x20--containerId\x20[NAME]','Project\x20for\x20exec','execStartLog','none','execCmd','addCommand','2986ikwTrV','isTTY','setRawMode','waitForCommandResult','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','askForJob','askForProject','resize','Error\x20occured\x20during\x20'];a4x=function(){return t;};return a4x();}
@@ -1 +1 @@
1
- 'use strict';const a5L=a5J;(function(Z,J){const m=a5J,z=Z();while(!![]){try{const P=parseInt(m(0xbc))/0x1*(parseInt(m(0xbe))/0x2)+-parseInt(m(0xb5))/0x3+parseInt(m(0xb6))/0x4*(-parseInt(m(0xb7))/0x5)+-parseInt(m(0xa0))/0x6*(-parseInt(m(0xba))/0x7)+-parseInt(m(0xb1))/0x8+parseInt(m(0xa9))/0x9*(parseInt(m(0xa5))/0xa)+-parseInt(m(0xad))/0xb;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a5Z,0x5dcdb));var __awaiter=this&&this[a5L(0xa8)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){function n(v){const M=a5J;try{C(B[M(0xa7)](v));}catch(o){A(o);}}function F(v){const x=a5J;try{C(B[x(0xc5)](v));}catch(o){A(o);}}function C(v){const d=a5J;v[d(0xc3)]?s(v['value']):U(v[d(0xbf)])[d(0xb8)](n,F);}C((B=B['apply'](Z,J||[]))['next']());});},__importDefault=this&&this[a5L(0xaa)]||function(Z){const k=a5L;return Z&&Z[k(0xbd)]?Z:{'default':Z};};Object['defineProperty'](exports,a5L(0xbd),{'value':!![]}),exports['getCommandOverview']=void 0x0;const chalk_1=__importDefault(require(a5L(0xa6))),utils_1=require('../utils');function getCommandOverview(Z){const N=a5L;return(0x0,utils_1[N(0xaf)])()[N(0xae)](N(0xb0))['description'](N(0xa1))['option'](N(0xc2),N(0xa2))[N(0xbb)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:z}=J;function P(B,U){const W=a5J;var s;const A=(e,g=!![])=>g?chalk_1[W(0xc0)][W(0xab)]['green'](e[W(0xae)]()):e[W(0xae)](),n=U['length']===0x0,F=B[W(0xa4)];let C='';const v=F[W(0xa3)]===0x0,o=v||((s=Object[W(0xc1)](B===null||B===void 0x0?void 0x0:B[W(0xac)]()))===null||s===void 0x0?void 0x0:s['length'])>0x0;!n&&(C=F&&!v?'┬\x20':'─\x20');const j=z&&o&&B['description']()?':\x20'+B[W(0xb4)]():'';console[W(0xb9)](''+U+C+A(B,o)+j);let V=U;if(!n){const e=U[W(0xc4)](-0x2)==='└─';V=U[W(0xc4)](0x0,-0x2)+(e?'\x20\x20':'│\x20');}const i=V+'├─',p=V+'└─',S=F[W(0xb3)](g=>g[W(0xa4)]['length']===0x0);S&&!v&&!z?console[W(0xb9)](p+'\x20'+F['map'](g=>A(g))[W(0xb2)](',\x20')):F['forEach']((g,I)=>{const X=W;P(g,F[X(0xa3)]-0x1===I?p:i);});}P(Z,'');}));}function a5J(Z,J){const z=a5Z();return a5J=function(P,B){P=P-0xa0;let U=z[P];return U;},a5J(Z,J);}exports['getCommandOverview']=getCommandOverview;function a5Z(){const D=['1973872NKdGrs','join','every','description','925554PcqsXX','4pilRLQ','66335uUxOnN','then','log','7IUhOWP','action','30MMqhxY','__esModule','32542EEOLbj','value','default','keys','--verbose','done','slice','throw','3254226DdJYyg','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','Print\x20command\x20descriptions','length','commands','1553280mLVuao','chalk','next','__awaiter','9qfdBTy','__importDefault','bold','opts','2564001lDarsk','name','getCommand','command-overview'];a5Z=function(){return D;};return a5Z();}
1
+ 'use strict';const a5I=a5N;function a5x(){const v=['map','value','slice','log','__esModule','every','5815xBLnMf','__awaiter','57082380dNwawG','description','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommandOverview','length','2306691WLYjyr','10244244AfGFpy','next','__importDefault','option','getCommand','2504vhWuEd','green','join','defineProperty','name','../utils','action','apply','2004IOCkYT','command-overview','15338259mBvAOd','throw','then','1GksmRV','2300834zLrUUN','default','11NBnUWC','opts','commands','Print\x20command\x20descriptions','24248vOBtLO','chalk'];a5x=function(){return v;};return a5x();}(function(x,N){const F=a5N,c=x();while(!![]){try{const a=-parseInt(F(0x1f5))/0x1*(parseInt(F(0x1f6))/0x2)+-parseInt(F(0x1e2))/0x3+parseInt(F(0x1f0))/0x4*(-parseInt(F(0x204))/0x5)+-parseInt(F(0x1e3))/0x6+parseInt(F(0x1fc))/0x7*(parseInt(F(0x1e8))/0x8)+-parseInt(F(0x1f2))/0x9+parseInt(F(0x1dd))/0xa*(parseInt(F(0x1f8))/0xb);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a5x,0xd6914));var __awaiter=this&&this[a5I(0x205)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const K=a5N;function s(M){const z=a5N;try{d(a[z(0x1e4)](M));}catch(A){e(A);}}function q(M){const w=a5N;try{d(a[w(0x1f3)](M));}catch(A){e(A);}}function d(M){const j=a5N;M['done']?p(M[j(0x1ff)]):J(M[j(0x1ff)])[j(0x1f4)](s,q);}d((a=a[K(0x1ef)](x,N||[]))['next']());});},__importDefault=this&&this[a5I(0x1e5)]||function(x){const m=a5I;return x&&x[m(0x202)]?x:{'default':x};};Object[a5I(0x1eb)](exports,a5I(0x202),{'value':!![]}),exports[a5I(0x1e0)]=void 0x0;const chalk_1=__importDefault(require(a5I(0x1fd))),utils_1=require(a5I(0x1ed));function getCommandOverview(x){const S=a5I;return(0x0,utils_1[S(0x1e7)])()[S(0x1ec)](S(0x1f1))['description'](S(0x1df))[S(0x1e6)]('--verbose',S(0x1fb))[S(0x1ee)](N=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:c}=N;function a(J,p){const W=a5N;var e;const s=(Q,k=!![])=>k?chalk_1[W(0x1f7)]['bold'][W(0x1e9)](Q[W(0x1ec)]()):Q[W(0x1ec)](),q=p[W(0x1e1)]===0x0,d=J[W(0x1fa)];let M='';const A=d[W(0x1e1)]===0x0,l=A||((e=Object['keys'](J===null||J===void 0x0?void 0x0:J[W(0x1f9)]()))===null||e===void 0x0?void 0x0:e[W(0x1e1)])>0x0;!q&&(M=d&&!A?'┬\x20':'─\x20');const Z=c&&l&&J[W(0x1de)]()?':\x20'+J['description']():'';console['log'](''+p+M+s(J,l)+Z);let V=p;if(!q){const Q=p[W(0x200)](-0x2)==='└─';V=p['slice'](0x0,-0x2)+(Q?'\x20\x20':'│\x20');}const g=V+'├─',P=V+'└─',n=d[W(0x203)](k=>k[W(0x1fa)]['length']===0x0);n&&!A&&!c?console[W(0x201)](P+'\x20'+d[W(0x1fe)](k=>s(k))[W(0x1ea)](',\x20')):d['forEach']((k,b)=>{const L=W;a(k,d[L(0x1e1)]-0x1===b?P:g);});}a(x,'');}));}function a5N(x,N){const c=a5x();return a5N=function(a,J){a=a-0x1dd;let p=c[a];return p;},a5N(x,N);}exports[a5I(0x1e0)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';function a6J(Z,J){const z=a6Z();return a6J=function(P,B){P=P-0x1da;let U=z[P];return U;},a6J(Z,J);}const a6i=a6J;(function(Z,J){const V=a6J,z=Z();while(!![]){try{const P=parseInt(V(0x1fe))/0x1*(-parseInt(V(0x205))/0x2)+-parseInt(V(0x202))/0x3+-parseInt(V(0x216))/0x4+parseInt(V(0x1f4))/0x5*(-parseInt(V(0x210))/0x6)+-parseInt(V(0x1eb))/0x7+-parseInt(V(0x20e))/0x8*(parseInt(V(0x209))/0x9)+parseInt(V(0x208))/0xa*(parseInt(V(0x204))/0xb);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a6Z,0x273bf));var __createBinding=this&&this[a6i(0x1e0)]||(Object[a6i(0x1fa)]?function(Z,J,z,P){const p=a6i;if(P===undefined)P=z;var B=Object[p(0x1ff)](J,z);(!B||(p(0x1e6)in B?!J[p(0x1ed)]:B['writable']||B[p(0x1fc)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[p(0x1e5)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6i(0x1fa)]?function(Z,J){const S=a6i;Object[S(0x1e5)](Z,S(0x1e9),{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this[a6i(0x1db)]||function(Z){const e=a6i;if(Z&&Z['__esModule'])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==e(0x1e9)&&Object[e(0x214)][e(0x1dd)]['call'](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__importDefault=this&&this[a6i(0x1e4)]||function(Z){const g=a6i;return Z&&Z[g(0x1ed)]?Z:{'default':Z};};Object['defineProperty'](exports,a6i(0x1ed),{'value':!![]}),exports[a6i(0x217)]=exports['handleFormattedOutput']=exports[a6i(0x1e2)]=exports['handleJsonOutput']=exports[a6i(0x20c)]=exports[a6i(0x1fd)]=void 0x0;const chalk_1=__importDefault(require(a6i(0x203))),_=__importStar(require(a6i(0x218))),util=__importStar(require(a6i(0x206))),yaml=require('js-yaml'),columnify=require(a6i(0x1ea));function printAsTable(Z,J,z,P=![],B=0x0){const I=a6i;!P&&console['log'](''+chalk_1[I(0x1e9)][I(0x215)](J));function U(A){const m=I;return A===m(0x1de)?A:A[m(0x1fb)](m(0x1de),'');}function s(A,n){const M=I;function F(v){const L=a6J,o=new Date(v);return o[L(0x1f3)]()+'/'+o[L(0x20f)]()+'/'+o[L(0x1f9)]()+'\x0a'+o['getHours']()+':'+o[L(0x219)]()+':'+o[L(0x1f7)]();}const C=['createdat','updatedat'];if(C['includes'](n[M(0x1ee)]())&&_[M(0x211)](A)&&A[M(0x1e3)]()[M(0x1f1)]===0xd)return F(Number(A));if(_['isBoolean'](A)){if(n!==M(0x1de)&&n[M(0x213)](M(0x1de)))return A?'x':'✔';return A?'✔':'x';}if(_[M(0x201)](A))return util[M(0x1f6)](A,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return A;}if(_['isArrayLike'](Z)){Z[I(0x1f1)]===0x0&&console[I(0x207)]('No\x20'+J[I(0x1ee)]()+I(0x1f5));const A=Z[I(0x1ef)]((C,v)=>{const x=I,o={'i':v+B};return Object['keys'](C)[x(0x1f0)](j=>{const d=x;(_['isUndefined'](z)||z[d(0x213)](j[d(0x1ee)]()))&&_[d(0x1e8)](o,U(j),s(C[j],j));}),o;}),n=_['clone'](Object[I(0x20b)]((A===null||A===void 0x0?void 0x0:A[0x0])||[]))[I(0x1f2)]((C,v)=>{const k=I,o=j=>j!=='i'?j!==k(0x20a)?0x0:0x1:0x2;return o(v)-o(C);}),F={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!P,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':n};console[I(0x207)](columnify(A,F));}else console[I(0x207)](Z);}exports[a6i(0x1fd)]=printAsTable;function consoleFormat(Z,J){const N=a6i;if(_[N(0x20d)](Z)){const z=J?N(0x1e7)+J+')':'';return chalk_1[N(0x1e9)][N(0x1dc)](N(0x200))+z;}if(!_[N(0x201)](Z))return Z===null||Z===void 0x0?void 0x0:Z[N(0x1e3)]();return util[N(0x1f6)](Z,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports['consoleFormat']=consoleFormat;const handleJsonOutput=(Z,J)=>{const W=a6i,z=Z===W(0x1e1);if(z)console[W(0x207)](JSON['stringify'](J,null,'\x20'));};function a6Z(){const y=['hasOwnProperty','disabled','handleFormattedOutput','__createBinding','json','handleYamlOutput','toString','__importDefault','defineProperty','get','\x20(HTTP\x20status:\x20','set','default','columnify','1574601ywyMuM','yaml','__esModule','toLowerCase','map','forEach','length','sort','getDate','605ShWIzn','\x20found','inspect','getSeconds','handleJsonOutput','getFullYear','create','replace','configurable','printAsTable','2SURclH','getOwnPropertyDescriptor','The\x20request\x20was\x20completed\x20successfully','isObjectLike','32064NwZCGL','chalk','121FtVpNj','111394VBjNQp','util','log','944200OwtfjF','27GRlcsD','internalId','keys','consoleFormat','isEmpty','808264LcuBgv','getMonth','10866FrFOKW','isFinite','format','includes','prototype','bold','34648Vtgbib','printResponse','lodash','getMinutes','safeDump','__importStar','green'];a6Z=function(){return y;};return a6Z();}exports['handleJsonOutput']=handleJsonOutput;const handleYamlOutput=(Z,J)=>{const X=a6i,z=Z===X(0x1ec)||Z==='yml';if(z)console[X(0x207)](yaml[X(0x1da)](J));};exports[a6i(0x1e2)]=handleYamlOutput;const handleFormattedOutput=(Z,J)=>{const D=a6i,z=Z===D(0x212);if(z)console[D(0x207)](consoleFormat(J));};exports[a6i(0x1df)]=handleFormattedOutput;const printResponse=(Z,J)=>{const q=a6i;(0x0,exports[q(0x1f8)])(Z,J),(0x0,exports[q(0x1e2)])(Z,J),(0x0,exports[q(0x1df)])(Z,J);};exports[a6i(0x217)]=printResponse;
1
+ 'use strict';const a6P=a6N;(function(x,N){const g=a6N,c=x();while(!![]){try{const a=-parseInt(g(0xb7))/0x1+-parseInt(g(0xc4))/0x2+-parseInt(g(0xb8))/0x3+-parseInt(g(0xc0))/0x4+parseInt(g(0x9c))/0x5+-parseInt(g(0xab))/0x6*(parseInt(g(0xd9))/0x7)+parseInt(g(0xce))/0x8*(parseInt(g(0xa5))/0x9);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a6x,0xb7e77));function a6x(){const B=['updatedat','printResponse','lodash','disabled','printAsTable','59862RIQeOX','3665547vdJetT','clone','isArrayLike','getSeconds','map','getMonth','isBoolean','handleFormattedOutput','4216348okHHGM','toLowerCase','\x20(HTTP\x20status:\x20','log','293750TukeAP','inspect','getFullYear','stringify','getOwnPropertyDescriptor','isEmpty','format','util','yml','includes','2632xpuDpG','defineProperty','call','js-yaml','isUndefined','default','prototype','\x20found','No\x20','forEach','handleYamlOutput','7SOmJXr','4582935XYJoda','isObjectLike','toString','create','__importDefault','__esModule','keys','handleJsonOutput','json','77913BABAie','consoleFormat','columnify','__createBinding','__setModuleDefault','chalk','3172776XAcEQA','writable','replace','getMinutes','The\x20request\x20was\x20completed\x20successfully','safeDump','bold'];a6x=function(){return B;};return a6x();}var __createBinding=this&&this[a6P(0xa8)]||(Object[a6P(0x9f)]?function(x,N,c,a){const n=a6P;if(a===undefined)a=c;var J=Object[n(0xc8)](N,c);(!J||('get'in J?!N[n(0xa1)]:J[n(0xac)]||J['configurable']))&&(J={'enumerable':!![],'get':function(){return N[c];}}),Object[n(0xcf)](x,a,J);}:function(x,N,c,a){if(a===undefined)a=c;x[a]=N[c];}),__setModuleDefault=this&&this[a6P(0xa9)]||(Object[a6P(0x9f)]?function(x,N){const Q=a6P;Object[Q(0xcf)](x,'default',{'enumerable':!![],'value':N});}:function(x,N){const k=a6P;x[k(0xd3)]=N;}),__importStar=this&&this['__importStar']||function(x){const b=a6P;if(x&&x['__esModule'])return x;var N={};if(x!=null){for(var c in x)if(c!==b(0xd3)&&Object[b(0xd4)]['hasOwnProperty'][b(0xd0)](x,c))__createBinding(N,x,c);}return __setModuleDefault(N,x),N;},__importDefault=this&&this[a6P(0xa0)]||function(x){const F=a6P;return x&&x[F(0xa1)]?x:{'default':x};};Object[a6P(0xcf)](exports,a6P(0xa1),{'value':!![]}),exports[a6P(0xb3)]=exports[a6P(0xbf)]=exports['handleYamlOutput']=exports[a6P(0xa3)]=exports[a6P(0xa6)]=exports[a6P(0xb6)]=void 0x0;const chalk_1=__importDefault(require(a6P(0xaa))),_=__importStar(require(a6P(0xb4))),util=__importStar(require(a6P(0xcb))),yaml=require(a6P(0xd1)),columnify=require(a6P(0xa7));function printAsTable(x,N,c,a=![],J=0x0){const I=a6P;!a&&console[I(0xc3)](''+chalk_1[I(0xd3)][I(0xb1)](N));function p(s){const z=I;return s==='disabled'?s:s[z(0xad)](z(0xb5),'');}function e(s,q){const j=I;function d(A){const w=a6N,l=new Date(A);return l['getDate']()+'/'+l[w(0xbd)]()+'/'+l[w(0xc6)]()+'\x0a'+l['getHours']()+':'+l[w(0xae)]()+':'+l[w(0xbb)]();}const M=['createdat',j(0xb2)];if(M[j(0xcd)](q[j(0xc1)]())&&_['isFinite'](s)&&s[j(0x9e)]()['length']===0xd)return d(Number(s));if(_[j(0xbe)](s)){if(q!==j(0xb5)&&q['includes']('disabled'))return s?'x':'✔';return s?'✔':'x';}if(_[j(0x9d)](s))return util[j(0xc5)](s,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return s;}if(_[I(0xba)](x)){x['length']===0x0&&console[I(0xc3)](I(0xd6)+N[I(0xc1)]()+I(0xd5));const s=x[I(0xbc)]((M,A)=>{const K=I,Z={'i':A+J};return Object[K(0xa2)](M)[K(0xd7)](V=>{const m=K;(_[m(0xd2)](c)||c['includes'](V[m(0xc1)]()))&&_['set'](Z,p(V),e(M[V],V));}),Z;}),q=_[I(0xb9)](Object[I(0xa2)]((s===null||s===void 0x0?void 0x0:s[0x0])||[]))['sort']((M,A)=>{const l=Z=>Z!=='i'?Z!=='internalId'?0x0:0x1:0x2;return l(A)-l(M);}),d={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!a,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':q};console['log'](columnify(s,d));}else console['log'](x);}exports['printAsTable']=printAsTable;function consoleFormat(x,N){const S=a6P;if(_[S(0xc9)](x)){const c=N?S(0xc2)+N+')':'';return chalk_1[S(0xd3)]['green'](S(0xaf))+c;}if(!_[S(0x9d)](x))return x===null||x===void 0x0?void 0x0:x['toString']();return util[S(0xc5)](x,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6P(0xa6)]=consoleFormat;const handleJsonOutput=(x,N)=>{const W=a6P,c=x===W(0xa4);if(c)console[W(0xc3)](JSON[W(0xc7)](N,null,'\x20'));};exports[a6P(0xa3)]=handleJsonOutput;const handleYamlOutput=(x,N)=>{const L=a6P,c=x==='yaml'||x===L(0xcc);if(c)console[L(0xc3)](yaml[L(0xb0)](N));};exports[a6P(0xd8)]=handleYamlOutput;const handleFormattedOutput=(x,N)=>{const v=a6P,c=x===v(0xca);if(c)console[v(0xc3)](consoleFormat(N));};function a6N(x,N){const c=a6x();return a6N=function(a,J){a=a-0x9c;let p=c[a];return p;},a6N(x,N);}exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(x,N)=>{const h=a6P;(0x0,exports['handleJsonOutput'])(x,N),(0x0,exports['handleYamlOutput'])(x,N),(0x0,exports[h(0xbf)])(x,N);};exports['printResponse']=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7Y=a7J;(function(Z,J){const H=a7J,z=Z();while(!![]){try{const P=-parseInt(H(0x193))/0x1+-parseInt(H(0x1a8))/0x2+-parseInt(H(0x1af))/0x3+parseInt(H(0x18f))/0x4*(parseInt(H(0x195))/0x5)+parseInt(H(0x1b5))/0x6+-parseInt(H(0x1b2))/0x7*(-parseInt(H(0x1a1))/0x8)+-parseInt(H(0x19e))/0x9;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a7Z,0x7c76a));function a7J(Z,J){const z=a7Z();return a7J=function(P,B){P=P-0x18f;let U=z[P];return U;},a7J(Z,J);}var __importDefault=this&&this[a7Y(0x1b6)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object['defineProperty'](exports,a7Y(0x190),{'value':!![]}),exports[a7Y(0x19f)]=exports['getAsciiChart']=void 0x0;function a7Z(){const Z4=['toLocaleTimeString','27212ZogikS','__esModule','padding','getAsciiChart','234122iAMFQn','round','365vtyDVE','default','symbols','undefined','repeat','red','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','height','462294GpIDBF','downSampleData','grey','1240cGJYBI','2-digit','\x20\x20\x20','colors','abs','push','offset','338000njxSsu','toLocaleDateString','max','unit','green','floor','map','1257426XZdgnd','join','toFixed','4417WEWxUj','length','min','4734048lNVliQ','__importDefault'];a7Z=function(){return Z4;};return a7Z();}const chalk_1=__importDefault(require('chalk')),colored=(Z,J)=>{const E=a7Y;return J===undefined?Z:chalk_1[E(0x196)][J](Z);},getAsciiChart=(Z,J={})=>{const Z0=a7Y,z=Array['isArray'](Z[0x0])?Z:[Z];let P=typeof J['min']!==Z0(0x198)?J[Z0(0x1b4)]:z[0x0][0x0],B=typeof J[Z0(0x1aa)]!==Z0(0x198)?J['max']:z[0x0][0x0];for(let M=0x0;M<z[Z0(0x1b3)];M++){for(let d=0x0;d<z[M]['length'];d++){P=Math[Z0(0x1b4)](P,z[M][d]),B=Math[Z0(0x1aa)](B,z[M][d]);}}let U=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],s=Math[Z0(0x1a5)](B-P),A=typeof J[Z0(0x1a7)]!==Z0(0x198)?J[Z0(0x1a7)]:0x3,n=typeof J[Z0(0x191)]!=='undefined'?J[Z0(0x191)]:Z0(0x19b),F=typeof J['height']!=='undefined'?J[Z0(0x19d)]:s,C=typeof J['colors']!==Z0(0x198)?J[Z0(0x1a4)]:['blue',Z0(0x19a),Z0(0x1ac),Z0(0x1a0),'black'],v=s!==0x0?F/s:0x1,o=Math[Z0(0x194)](P*v),V=Math['round'](B*v),p=Math[Z0(0x1a5)](V-o),S=0x0;for(let k=0x0;k<z['length'];k++){S=Math[Z0(0x1aa)](S,z[k][Z0(0x1b3)]);}S=S+A;let e=typeof J['symbols']!==Z0(0x198)?J[Z0(0x197)]:U,g=J['format']!==undefined?J['format']:function(N){const Z1=Z0;return(n+N[Z1(0x1b1)](0x2)+J[Z1(0x1ab)])[Z1(0x19c)](-n[Z1(0x1b3)]);},I=new Array(p+0x1);for(let N=0x0;N<=p;N++){I[N]=new Array(S);for(let W=0x0;W<S;W++){I[N][W]='\x20';}}for(let X=o;X<=V;++X){const D=g(p>0x0?B-(X-o)*s/p:X,X-o);I[X-o][Math[Z0(0x1aa)](A-D[Z0(0x1b3)],0x0)]=D,I[X-o][A-0x1]=X==0x0?e[0x0]:e[0x1];}for(let q=0x0;q<z[Z0(0x1b3)];q++){let O=C[q%C[Z0(0x1b3)]],G=Math['round'](z[q][0x0]*v)-o;I[p-G][A-0x1]=colored(e[0x0],O);for(let K=0x0;K<z[q][Z0(0x1b3)]-0x1;K++){let l=Math[Z0(0x194)](z[q][K+0x0]*v)-o,b=Math[Z0(0x194)](z[q][K+0x1]*v)-o;if(l==b)I[p-l][K+A]=colored(e[0x4],O);else{I[p-b][K+A]=colored(l>b?e[0x5]:e[0x6],O),I[p-l][K+A]=colored(l>b?e[0x7]:e[0x8],O);let f=Math[Z0(0x1b4)](l,b),r=Math[Z0(0x1aa)](l,b);for(let w=f+0x1;w<r;w++){I[p-w][K+A]=colored(e[0x9],O);}}}}const {startTs:m,endTs:L}=J;if(m||L){const Q=h=>{const Z2=Z0;if(!h)return Z2(0x1a3);const a=h[Z2(0x1a9)](undefined,{'day':Z2(0x1a2),'month':Z2(0x1a2),'year':Z2(0x1a2)}),u=h[Z2(0x1b7)](undefined,{'hourCycle':'h24'});return a+'\x20'+u;},T=Q(L),c=Q(m),t=n['slice'](0x0,Math[Z0(0x1aa)](0x2,n['length']-c[Z0(0x1b3)]/0x2+0x1)),R='\x20'[Z0(0x199)](Math[Z0(0x1aa)](S-(n[Z0(0x1b3)]+T[Z0(0x1b3)]/0x2),0x1));I[Z0(0x1a6)]([''+t+c+R+T]),I[Z0(0x1a6)]([]);}return I[Z0(0x1ae)](h=>h['join'](''))[Z0(0x1b0)]('\x0a');};exports[a7Y(0x192)]=getAsciiChart;const downSampleData=(Z,J)=>{const Z3=a7Y,z=Z[Z3(0x1b3)];if(J>=z||J===0x0)return Z;const P=[];let B=0x0;const U=(z-0x2)/(J-0x2);let s=0x0,A,n,F,C;P[B++]=Z[s];for(var v=0x0;v<J-0x2;v++){let e=0x0,g=0x0,I=Math[Z3(0x1ad)]((v+0x1)*U)+0x1,m=Math[Z3(0x1ad)]((v+0x2)*U)+0x1;m=m<z?m:z;var o=m-I;for(;I<m;I++){e+=Z[I][0x0],g+=Z[I][0x1];}e/=o,g/=o;var j=Math['floor'](v*U)+0x1,V=Math[Z3(0x1ad)]((v+0x1)*U)+0x1,p=Z[s][0x0],S=Z[s][0x1];n=F=-0x1;for(;j<V;j++){F=Math[Z3(0x1a5)]((p-e)*(Z[j][0x1]-S)-(p-Z[j][0x0])*(g-S))*0.5,F>n&&(n=F,A=Z[j],C=j);}P[B++]=A,s=C;}return P[B++]=Z[z-0x1],P;};exports[a7Y(0x19f)]=downSampleData;
1
+ 'use strict';const a7C=a7N;(function(x,N){const y=a7N,c=x();while(!![]){try{const a=parseInt(y(0x174))/0x1*(parseInt(y(0x151))/0x2)+parseInt(y(0x154))/0x3+-parseInt(y(0x168))/0x4*(-parseInt(y(0x155))/0x5)+-parseInt(y(0x158))/0x6*(-parseInt(y(0x16a))/0x7)+parseInt(y(0x150))/0x8*(-parseInt(y(0x15f))/0x9)+parseInt(y(0x167))/0xa+-parseInt(y(0x175))/0xb;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a7x,0xcd2e6));function a7N(x,N){const c=a7x();return a7N=function(a,J){a=a-0x14a;let p=c[a];return p;},a7N(x,N);}var __importDefault=this&&this['__importDefault']||function(x){return x&&x['__esModule']?x:{'default':x};};Object['defineProperty'](exports,a7C(0x15b),{'value':!![]}),exports['downSampleData']=exports['getAsciiChart']=void 0x0;function a7x(){const x3=['downSampleData','182IHzlZg','green','blue','symbols','h24','unit','colors','toLocaleDateString','min','grey','1rmDdRt','32394549QNjKSO','chalk','offset','max','isArray','length','height','8yMPAJt','2594122ZeeptS','push','red','3903285xhhblc','10pGiShB','\x20\x20\x20','black','210084IreZFn','default','2-digit','__esModule','join','round','getAsciiChart','6961869XEAHUT','undefined','toFixed','map','padding','floor','abs','format','2175200ukuZvC','1665764uiOnub'];a7x=function(){return x3;};return a7x();}const chalk_1=__importDefault(require(a7C(0x14a))),colored=(x,N)=>{const T=a7C;return N===undefined?x:chalk_1[T(0x159)][N](x);},getAsciiChart=(N,c={})=>{const O=a7C,a=Array[O(0x14d)](N[0x0])?N:[N];let J=typeof c[O(0x172)]!=='undefined'?c['min']:a[0x0][0x0],p=typeof c['max']!==O(0x160)?c[O(0x14c)]:a[0x0][0x0];for(let I=0x0;I<a[O(0x14e)];I++){for(let z=0x0;z<a[I][O(0x14e)];z++){J=Math[O(0x172)](J,a[I][z]),p=Math[O(0x14c)](p,a[I][z]);}}let e=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],s=Math[O(0x165)](p-J),q=typeof c[O(0x14b)]!==O(0x160)?c[O(0x14b)]:0x3,d=typeof c[O(0x163)]!=='undefined'?c[O(0x163)]:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',M=typeof c[O(0x14f)]!==O(0x160)?c[O(0x14f)]:s,A=typeof c['colors']!==O(0x160)?c[O(0x170)]:[O(0x16c),O(0x153),O(0x16b),O(0x173),O(0x157)],l=s!==0x0?M/s:0x1,Z=Math[O(0x15d)](J*l),V=Math['round'](p*l),g=Math[O(0x165)](V-Z),P=0x0;for(let w=0x0;w<a[O(0x14e)];w++){P=Math['max'](P,a[w][O(0x14e)]);}P=P+q;let n=typeof c['symbols']!==O(0x160)?c[O(0x16d)]:e,Q=c[O(0x166)]!==undefined?c[O(0x166)]:function(K){const x0=O;return(d+K[x0(0x161)](0x2)+c[x0(0x16f)])['slice'](-d[x0(0x14e)]);},k=new Array(g+0x1);for(let K=0x0;K<=g;K++){k[K]=new Array(P);for(let m=0x0;m<P;m++){k[K][m]='\x20';}}for(let S=Z;S<=V;++S){const W=Q(g>0x0?p-(S-Z)*s/g:S,S-Z);k[S-Z][Math['max'](q-W[O(0x14e)],0x0)]=W,k[S-Z][q-0x1]=S==0x0?n[0x0]:n[0x1];}for(let L=0x0;L<a[O(0x14e)];L++){let v=A[L%A['length']],h=Math[O(0x15d)](a[L][0x0]*l)-Z;k[g-h][q-0x1]=colored(n[0x0],v);for(let B=0x0;B<a[L][O(0x14e)]-0x1;B++){let o=Math[O(0x15d)](a[L][B+0x0]*l)-Z,G=Math['round'](a[L][B+0x1]*l)-Z;if(o==G)k[g-o][B+q]=colored(n[0x4],v);else{k[g-G][B+q]=colored(o>G?n[0x5]:n[0x6],v),k[g-o][B+q]=colored(o>G?n[0x7]:n[0x8],v);let E=Math['min'](o,G),u=Math['max'](o,G);for(let X=E+0x1;X<u;X++){k[g-X][B+q]=colored(n[0x9],v);}}}}const {startTs:b,endTs:F}=c;if(b||F){const R=D=>{const x1=O;if(!D)return x1(0x156);const r=D[x1(0x171)](undefined,{'day':x1(0x15a),'month':'2-digit','year':x1(0x15a)}),U=D['toLocaleTimeString'](undefined,{'hourCycle':x1(0x16e)});return r+'\x20'+U;},t=R(F),f=R(b),Y=d['slice'](0x0,Math[O(0x14c)](0x2,d[O(0x14e)]-f[O(0x14e)]/0x2+0x1)),H='\x20'['repeat'](Math[O(0x14c)](P-(d[O(0x14e)]+t[O(0x14e)]/0x2),0x1));k['push']([''+Y+f+H+t]),k[O(0x152)]([]);}return k[O(0x162)](D=>D[O(0x15c)](''))[O(0x15c)]('\x0a');};exports[a7C(0x15e)]=getAsciiChart;const downSampleData=(x,N)=>{const x2=a7C,c=x[x2(0x14e)];if(N>=c||N===0x0)return x;const J=[];let p=0x0;const e=(c-0x2)/(N-0x2);let s=0x0,q,d,M,A;J[p++]=x[s];for(var l=0x0;l<N-0x2;l++){let Q=0x0,k=0x0,b=Math[x2(0x164)]((l+0x1)*e)+0x1,F=Math[x2(0x164)]((l+0x2)*e)+0x1;F=F<c?F:c;var Z=F-b;for(;b<F;b++){Q+=x[b][0x0],k+=x[b][0x1];}Q/=Z,k/=Z;var V=Math[x2(0x164)](l*e)+0x1,g=Math['floor']((l+0x1)*e)+0x1,P=x[s][0x0],n=x[s][0x1];d=M=-0x1;for(;V<g;V++){M=Math[x2(0x165)]((P-Q)*(x[V][0x1]-n)-(P-x[V][0x0])*(k-n))*0.5,M>d&&(d=M,q=x[V],A=V);}J[p++]=q,s=A;}return J[p++]=x[c-0x1],J;};exports[a7C(0x169)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8S=a8J;function a8J(Z,J){const z=a8Z();return a8J=function(P,B){P=P-0xdb;let U=z[P];return U;},a8J(Z,J);}(function(Z,J){const p=a8J,z=Z();while(!![]){try{const P=parseInt(p(0xf0))/0x1*(-parseInt(p(0x188))/0x2)+parseInt(p(0x140))/0x3*(parseInt(p(0x168))/0x4)+parseInt(p(0x1b4))/0x5*(parseInt(p(0x166))/0x6)+parseInt(p(0x101))/0x7*(-parseInt(p(0x103))/0x8)+-parseInt(p(0xec))/0x9+parseInt(p(0x184))/0xa*(-parseInt(p(0x16a))/0xb)+-parseInt(p(0x19c))/0xc;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a8Z,0x5f6e9));var __createBinding=this&&this['__createBinding']||(Object[a8S(0x1b3)]?function(Z,J,z,P){const e=a8S;if(P===undefined)P=z;var B=Object['getOwnPropertyDescriptor'](J,z);(!B||('get'in B?!J['__esModule']:B[e(0xf1)]||B[e(0x1bf)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[e(0x149)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8S(0x1b3)]?function(Z,J){const g=a8S;Object[g(0x149)](Z,'default',{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this['__importStar']||function(Z){const I=a8S;if(Z&&Z[I(0x17b)])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==I(0x15a)&&Object[I(0x1e3)][I(0x145)][I(0x121)](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__awaiter=this&&this['__awaiter']||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const M=a8J;function n(v){const m=a8J;try{C(B[m(0x179)](v));}catch(o){A(o);}}function F(v){try{C(B['throw'](v));}catch(o){A(o);}}function C(v){const L=a8J;v[L(0x1a0)]?s(v[L(0x1a7)]):U(v[L(0x1a7)])[L(0x1d5)](n,F);}C((B=B['apply'](Z,J||[]))[M(0x179)]());});},__importDefault=this&&this['__importDefault']||function(Z){const x=a8S;return Z&&Z[x(0x17b)]?Z:{'default':Z};};Object[a8S(0x149)](exports,'__esModule',{'value':!![]}),exports[a8S(0xfa)]=void 0x0;const _=__importStar(require(a8S(0x1a5))),chalk_1=__importDefault(require(a8S(0x18e))),fs=__importStar(require('fs')),utils_1=require(a8S(0x1c9)),api_helpers_1=require(a8S(0x1bc)),inquirer_pagination_prompt_1=require(a8S(0x112)),inquirer=require(a8S(0x1b8)),inquirerSearchList=require(a8S(0x11b)),yaml=require(a8S(0x123));var ConfirmChoices;(function(Z){const d=a8S;Z[d(0x126)]='Yes,\x20send',Z[d(0x13f)]=d(0x124),Z[d(0x1a8)]=d(0x189),Z[d(0x18c)]=d(0x1de),Z[d(0x10a)]='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(Z){const N=a8S;this['apiClient']=Z,this['defaultPaginationPageSize']=0x32,this['editPayload']=J=>__awaiter(this,void 0x0,void 0x0,function*(){const k=a8J,{editedResult:z}=yield inquirer['prompt']([{'type':k(0x16d),'name':k(0x186),'message':k(0x1e2),'default':yaml[k(0xfc)](J)}]);return yaml['safeLoad'](z);}),this[N(0xde)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const W=N,z=s=>W(0x172)+s+W(0x195);function P(){return __awaiter(this,void 0x0,void 0x0,function*(){const X=a8J;return inquirer['prompt']([{'type':X(0x10e),'name':X(0x14b),'message':X(0x11c),'validate':s=>new RegExp(X(0x150))['test'](s)?!![]:z(s)}]);});}const {fileName:B}=yield P(),U=B[W(0xdb)]()['split']('.')[W(0x11a)]();try{switch(U){case'json':(0x0,utils_1['success'])(W(0x18d)+B);return fs[W(0x1ed)](B,JSON[W(0x11e)](J,null,'\x20\x20'));case W(0x135):case'yml':(0x0,utils_1[W(0x1a9)])(W(0x18d)+B);return fs[W(0x1ed)](B,yaml[W(0xfc)](J));default:(0x0,utils_1[W(0x1ce)])(z(U));}}catch(s){(0x0,utils_1['warning'])(W(0x136)+s[W(0x1cf)]);}return undefined;}),this[N(0x1e7)]=(J,z)=>P=>{const D=N,B=typeof P===D(0x10c)?P[D(0x11f)]():P;return z===![]&&B===D(0x157)?'':B;},this[N(0x138)]=(J,z,P)=>B=>{const q=N;if(this['skipValidation']===!![])return!![];const U=[];if(B===''||B==='don\x27t\x20change'){if(z!==![])U[q(0x13c)](q(0x178));else return!![];}J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x16e)])&&U[q(0x13c)](new RegExp(J['pattern'])[q(0x169)](B)?!![]:q(0x1b0)+J[q(0x16e)]+'\x27');J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x16b)])&&U[q(0x13c)](B[q(0xeb)]>=J[q(0x16b)]?!![]:q(0x1eb)+J[q(0x16b)]+q(0x1a6)+B['length']+q(0xf4));J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x12b)])&&U[q(0x13c)](B[q(0xeb)]<=J[q(0x12b)]?!![]:q(0x1ef)+J[q(0x12b)]+q(0x1a6)+B[q(0xeb)]+q(0xf4));P&&Number[q(0x1a3)](parseInt(B,0xa))&&U[q(0x13c)](q(0x114)+B);J[q(0x1da)]===q(0x19d)&&!_['isUndefined'](J[q(0x15f)])&&U[q(0x13c)](B>=J[q(0x15f)]?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+J[q(0x15f)]);J[q(0x1da)]===q(0x19d)&&!_[q(0x109)](J[q(0x128)])&&U[q(0x13c)](B<=J[q(0x128)]?!![]:q(0xf7)+J[q(0x128)]);if(J['type']===q(0x1d7)){const n=(0x0,utils_1[q(0x1b7)])(B);U[q(0x13c)](n===![]||_[q(0x160)](n)?'must\x20be\x20a\x20valid\x20non-empty\x20json\x20string':!![]);}const s=U[q(0x1e7)](F=>F!==!![]),A=(J===null||J===void 0x0?void 0x0:J[q(0x147)])?'\x0a'+chalk_1[q(0x15a)][q(0x1d0)]('>>')+q(0xee)+chalk_1[q(0x15a)]['whiteBright'](JSON[q(0x11e)](J[q(0x147)])):'';return s[q(0xeb)]>0x0?s[q(0x104)](chalk_1['default'][q(0x1af)](q(0x14f)))+A:!![];},this[N(0x148)]=(J,z,P)=>{const y=N,B=J[J[y(0xeb)]-0x1];function U(){const O=y;return J[O(0x16f)](0x0,-0x1)[O(0xef)](n=>n[O(0x191)](0x0)['toUpperCase']()+n[O(0x16f)](0x1))['join']('>');}const s=J[y(0xeb)]>0x1?chalk_1[y(0x15a)]['bgGrey'][y(0x155)](U())+':\x20':'',A=P?'\x20('+chalk_1[y(0x15a)]['blue'](P)+')':'';return chalk_1[y(0x15a)][y(0x1c1)](''+s+z+'\x20'+chalk_1[y(0x15a)][y(0x170)][y(0x14a)](B)+A+'?');},this[N(0xf9)]=(J,z,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const G=N;if(z[G(0xeb)]<0x1){const s=P?G(0x1c8)+P:'found';throw new Error('No\x20'+J+'\x20'+s+'.');}const B=G(0x161)+J+G(0x159),U=z[G(0xeb)]>0x4?G(0x15e):G(0x176);return(yield inquirer[G(0x17e)]([{'type':U,'name':G(0x1cc),'message':B,'choices':z}]))[G(0x1cc)];}),this[N(0x1e6)]=(J,z,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const K=N,{elements:B,nextCursor:U}=yield z();if(B[K(0xeb)]<0x1){const n=P?K(0x1c8)+P:K(0x133);throw new Error(K(0x1d3)+J+'\x20'+n+'.');}const s='Choose\x20the\x20'+J+'\x20to\x20use:';if(U!==undefined){const F=({nextPageCursor:C})=>__awaiter(this,void 0x0,void 0x0,function*(){const l=K,v=yield z(C);return{'elements':v[l(0x163)],'nextPageCursor':v[l(0x1b5)]};});return(yield inquirer['prompt']([{'type':K(0x19a),'name':'name','message':s,'choices':B,'nextPageCursor':U,'loadMore':F}]))[K(0x1cc)];}const A=B[K(0xeb)]>0x4?'search-list':'list';return(yield inquirer['prompt']([{'type':A,'name':'name','message':s,'choices':B}]))[K(0x1cc)];}),this[N(0x19f)]=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const b=N,P=''+(z?'('+chalk_1[b(0x15a)][b(0x1dc)](z)+')\x20':''),B=b(0x13a)+chalk_1[b(0x15a)][b(0x1bb)](J)+'\x20'+P+b(0x1db),U=this[b(0x138)]({'type':'string','required':!![]});return(yield inquirer[b(0x17e)]([{'type':b(0x10e),'name':'name','message':B,'validate':U}]))['name'];}),this[N(0x162)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const f=N;return(yield inquirer[f(0x17e)]([{'type':f(0xf6),'name':f(0x1cc),'message':J,'default':!![]}]))['name'];}),this[N(0x1e0)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8J;var U;const s=yield this[r(0x110)][r(0x176)]['services']({'parameters':{'projectId':P},'options':{'per_page':this[r(0x1aa)],'cursor':B}}),A=s['data']['services'][r(0xef)](n=>n['id']);return{'elements':A,'nextCursor':(U=s['pagination'])===null||U===void 0x0?void 0x0:U[r(0x113)]};});return this[w(0x192)]('service',z,J);}),this[N(0x153)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=a8J;var P;const B=yield this['apiClient']['list'][Q(0x154)]({'options':{'per_page':this[Q(0x1aa)],'cursor':z}}),U=B[Q(0x1dd)][Q(0x154)][Q(0xef)](s=>s['id']);return{'elements':U,'nextCursor':(P=B['pagination'])===null||P===void 0x0?void 0x0:P['cursor']};});return this['askForResourcePaginated']('template',J);}),this[N(0x1ba)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const t=N,J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const T=a8J;var P,B,U;const s=yield this['apiClient'][T(0x176)][T(0x1a1)]({'options':{'per_page':this[T(0x1aa)],'cursor':z}}),A=(B=(P=s[T(0x1dd)][T(0x1a1)])===null||P===void 0x0?void 0x0:P['map'](n=>n['id']))!==null&&B!==void 0x0?B:[];return{'elements':A,'nextCursor':(U=s[T(0xdc)])===null||U===void 0x0?void 0x0:U[T(0x113)]};});return this[t(0x1e6)](t(0xff),J);}),this[N(0x139)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const h=N,J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const R=a8J;var P,B,U;const s=yield this[R(0x110)][R(0x176)]['cloud'][R(0x196)]({'options':{'per_page':this[R(0x1aa)],'cursor':z}}),A=(B=(P=s[R(0x1dd)][R(0x196)])===null||P===void 0x0?void 0x0:P['map'](n=>n['name']))!==null&&B!==void 0x0?B:[];return{'elements':A,'nextCursor':(U=s[R(0xdc)])===null||U===void 0x0?void 0x0:U[R(0x113)]};});return this[h(0x1e6)]('cluster\x20id',J);}),this[N(0x14c)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const a=N;if(_[a(0x109)](J))throw new Error(a(0x1e4));const z=P=>__awaiter(this,void 0x0,void 0x0,function*(){const u=a;var B;let U=this[u(0x1aa)];const s=yield this[u(0x110)][u(0x176)]['templateRuns']({'parameters':{'templateId':J},'options':{'per_page':U,'cursor':P}}),A=s[u(0x1dd)]['templateRuns']['map'](n=>n['id']+u(0x1b6)+n[u(0x151)]+')');return{'elements':A,'nextCursor':(B=s[u(0xdc)])===null||B===void 0x0?void 0x0:B['cursor']};});return this[a(0x1e6)](a(0x13e),z)[a(0x1d5)](P=>P['split']('\x20')[0x0]);}),this[N(0x132)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8J;var P;let B=this[H(0x1aa)];const U=yield this['apiClient']['list'][H(0x115)]({'options':{'per_page':B,'cursor':z}}),s=U[H(0x1dd)]['logSinks'][H(0xef)](A=>A['id']);return{'elements':s,'nextCursor':(P=U['pagination'])===null||P===void 0x0?void 0x0:P['cursor']};});return this['askForResourcePaginated']('log\x20sink',J);}),this[N(0x164)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a8J;var U;const s=yield this['apiClient'][Y(0x176)][Y(0x143)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}}),A=s['data'][Y(0x143)][Y(0xef)](n=>n['id']);return{'elements':A,'nextCursor':(U=s[Y(0xdc)])===null||U===void 0x0?void 0x0:U[Y(0x113)]};});return this['askForProjectScopedResourcePaginated'](E(0xe4),z,J);}),this['askForJob']=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z1=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Z0=a8J;var U;const s=yield this[Z0(0x110)][Z0(0x176)][Z0(0x152)]({'parameters':{'projectId':P},'options':{'per_page':this[Z0(0x1aa)],'cursor':B}}),A=s['data'][Z0(0x152)]['map'](n=>n['id']);return{'elements':A,'nextCursor':(U=s['pagination'])===null||U===void 0x0?void 0x0:U[Z0(0x113)]};});return this[Z1(0x192)](Z1(0x1ad),z,J);}),this[N(0x10b)]=(J,z,P=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z2=N,B=Z2(0xe3),U=s=>A=>__awaiter(this,void 0x0,void 0x0,function*(){const Z3=Z2;var n;const F=yield this[Z3(0x110)]['get']['job'][Z3(0x18f)]({'parameters':{'projectId':s,'jobId':J},'options':{'per_page':this[Z3(0x1aa)],'cursor':A}}),C=F[Z3(0x1dd)]['runs'][Z3(0xef)](v=>v['id']+Z3(0x1b6)+v[Z3(0x1ec)]+')');return P&&C[Z3(0x144)](B),{'elements':C,'nextCursor':(n=F['pagination'])===null||n===void 0x0?void 0x0:n[Z3(0x113)]};});return this[Z2(0x192)](Z2(0x1b1),U,z,Z2(0x182)+J+'\x27')[Z2(0x1d5)](s=>{const Z4=Z2,A=s[Z4(0xe1)]('\x20')[0x0];if(A===B)return undefined;return A;});}),this[N(0x1cb)]=(J,z,P,B=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z5=N,U=Z5(0xea);if(P!==undefined){const s=A=>n=>__awaiter(this,void 0x0,void 0x0,function*(){const Z6=Z5;var F;const C=yield this[Z6(0x110)][Z6(0xe7)]['job'][Z6(0x156)]({'parameters':{'projectId':A,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}}),v=C[Z6(0x1dd)][Z6(0x156)][Z6(0xef)](o=>o['id']+'\x20(startedAt:\x20'+o[Z6(0x151)]+')');return B&&v[Z6(0x144)](U),{'elements':v,'nextCursor':(F=C['pagination'])===null||F===void 0x0?void 0x0:F[Z6(0x113)]};});return this[Z5(0x192)](Z5(0x119),s,J,'job:\x20\x27'+P+'\x27')[Z5(0x1d5)](A=>{const n=A['split']('\x20')[0x0];if(n===U)return undefined;return n;});}if(z!==undefined){const A=n=>F=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=Z5;var C;const v=yield this[Z7(0x110)][Z7(0xe7)][Z7(0xfe)]['builds']({'parameters':{'projectId':n,'serviceId':z},'options':{'per_page':this[Z7(0x1aa)],'cursor':F}}),o=v[Z7(0x1dd)][Z7(0x156)][Z7(0xef)](j=>j['id']+Z7(0x1b6)+j[Z7(0x151)]+')');if(B)o[Z7(0x144)](U);return{'elements':o,'nextCursor':(C=v[Z7(0xdc)])===null||C===void 0x0?void 0x0:C[Z7(0x113)]};});return this[Z5(0x192)](Z5(0xed),A,J,'service:\x20\x27'+P+'\x27')[Z5(0x1d5)](n=>{const Z8=Z5,F=n[Z8(0xe1)]('\x20')[0x0];if(F===U)return undefined;return F;});}throw new Error(Z5(0x17d));}),this[N(0x18b)]=(J,z,P,B=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z9=N,U=Z9(0xe8);if(P!==undefined){const s=A=>n=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=Z9;var F,C;const v=yield this[ZZ(0x110)][ZZ(0xe7)][ZZ(0x1ad)][ZZ(0x108)]({'parameters':{'projectId':A,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}}),o=(F=v[ZZ(0x1dd)][ZZ(0x108)])!==null&&F!==void 0x0?F:[],j=o===null||o===void 0x0?void 0x0:o['map'](V=>V[ZZ(0x1cc)]+'\x20(startedAt:\x20'+V[ZZ(0x151)]+')');return B&&j[ZZ(0x144)](U),{'elements':j,'nextCursor':(C=v['pagination'])===null||C===void 0x0?void 0x0:C[ZZ(0x113)]};});return this[Z9(0x192)](Z9(0x146),s,J,Z9(0x182)+P+'\x27')[Z9(0x1d5)](A=>{const ZJ=Z9,n=A[ZJ(0xe1)]('\x20')[0x0];if(n===U)return undefined;return n;});}if(z!==undefined){const A=n=>F=>__awaiter(this,void 0x0,void 0x0,function*(){const Zz=Z9;var C,v;const o=yield this[Zz(0x110)][Zz(0xe7)][Zz(0xfe)][Zz(0x108)]({'parameters':{'projectId':n,'serviceId':z},'options':{'per_page':this[Zz(0x1aa)],'cursor':F}}),j=(C=o[Zz(0x1dd)][Zz(0x108)])!==null&&C!==void 0x0?C:[],V=j['map'](i=>i[Zz(0x1cc)]+Zz(0x1b6)+i['createdAt']+')');if(B)V===null||V===void 0x0?void 0x0:V[Zz(0x144)](U);return{'elements':V,'nextCursor':(v=o['pagination'])===null||v===void 0x0?void 0x0:v[Zz(0x113)]};});return this[Z9(0x192)](Z9(0x187),A,J,Z9(0x181)+P+'\x27')[Z9(0x1d5)](n=>{const ZP=Z9,F=n[ZP(0xe1)]('\x20')[0x0];if(F===U)return undefined;return F;});}throw new Error(Z9(0x1ca));}),this[N(0x1e5)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZU=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const ZB=a8J;var U;const s=yield this['apiClient'][ZB(0x176)]['addons']({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}});return{'elements':s[ZB(0x1dd)]['addons'][ZB(0xef)](A=>A['id']),'nextCursor':(U=s[ZB(0xdc)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[ZU(0x192)]('addon',z,J);}),this[N(0x177)]=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZA=N,P=B=>U=>__awaiter(this,void 0x0,void 0x0,function*(){const Zs=a8J;var s;const A=yield this[Zs(0x110)][Zs(0xe7)][Zs(0x183)][Zs(0x1ee)]({'parameters':{'projectId':B,'addonId':z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':U}});return{'elements':A[Zs(0x1dd)]['backups'][Zs(0xef)](n=>n['id']+Zs(0x13d)+(n[Zs(0x12c)]||Zs(0x19e))+')'),'nextCursor':(s=A[Zs(0xdc)])===null||s===void 0x0?void 0x0:s[Zs(0x113)]};});return this[ZA(0x192)](ZA(0x1ee),P,J,ZA(0x105)+z+'\x27')[ZA(0x1d5)](B=>B['split']('\x20')[0x0]);}),this[N(0xf3)]=(J,z,P)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZF=N,B=U=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const Zn=a8J;var A;const n=yield this[Zn(0x110)]['get'][Zn(0x183)][Zn(0x117)]({'parameters':{'projectId':U,'addonId':z,'backupId':P},'options':{'per_page':this[Zn(0x1aa)],'cursor':s}});return{'elements':n[Zn(0x1dd)]['restores'][Zn(0xef)](F=>F['id']+Zn(0x13d)+(F[Zn(0x12c)]||Zn(0x19e))+')'),'nextCursor':(A=n[Zn(0xdc)])===null||A===void 0x0?void 0x0:A['cursor']};});return this[ZF(0x192)]('restore',B,J,'addon:\x20\x27'+z+'\x27')['then'](U=>U['split']('\x20')[0x0]);}),this[N(0x111)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zv=N,z=P=>__awaiter(this,void 0x0,void 0x0,function*(){const ZC=a8J;return(yield this['apiClient'][ZC(0x176)][ZC(0x190)]({'parameters':{'projectId':P}}))[ZC(0x1dd)]['map'](B=>B['id']);});return this['askForProjectScopedResource'](Zv(0xfd),z,J);}),this[N(0x116)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zj=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Zo=a8J;var U;const s=yield this['apiClient'][Zo(0x176)][Zo(0x199)]({'parameters':{'projectId':P},'options':{'per_page':this[Zo(0x1aa)],'cursor':B}});return{'elements':s[Zo(0x1dd)]['secrets'][Zo(0xef)](A=>A['id']),'nextCursor':(U=s[Zo(0xdc)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[Zj(0x192)](Zj(0x1a4),z,J);}),this[N(0x17a)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZV=N,z=yield this[ZV(0x110)][ZV(0xe7)][ZV(0x1bd)]({'parameters':{'domain':J}}),P=z[ZV(0x1dd)][ZV(0x127)][ZV(0xef)](U=>U[ZV(0x1cc)]+ZV(0x1e8)+U['fullName']+')'),B=ZV(0x1d6)+J+')';return this[ZV(0xf9)](ZV(0x1c6),P,B)[ZV(0x1d5)](U=>U[ZV(0xe1)]('\x20')[0x0]);}),this['askForSubdomainPath']=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zi=N,P=yield this[Zi(0x110)]['list'][Zi(0x1c6)][Zi(0x1ab)]({'parameters':{'domain':J,'subdomain':z}}),B=P['data'][Zi(0x15c)][Zi(0xef)](s=>''+s['uri']),U='domain\x20('+J+'),\x20subdomain\x20('+z+')';return this[Zi(0xf9)](Zi(0xdf),B,U);}),this[N(0x1d9)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const Zp=N;return(yield inquirer[Zp(0x17e)]([{'type':'confirm','name':Zp(0x12e),'message':chalk_1[Zp(0x15a)][Zp(0x19b)](Zp(0x129)+(J||Zp(0x1c3))+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[Zp(0x12e)];}),this[N(0x125)]=(J,z)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZS=N;_[ZS(0x109)](J[ZS(0x1cc)])&&(z['length']<=0x0?_[ZS(0x1c2)](J,ZS(0x1cc),ZS(0x15a)):yield(0x0,utils_1[ZS(0x1b9)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ze=ZS,{name:P}=yield inquirer[Ze(0x17e)]([{'type':Ze(0x10e),'name':'name','message':Ze(0x12d),'default':'main-context'}]);if(!J['override']&&z['find'](B=>B[Ze(0x1cc)]===P)){const {c:B}=yield inquirer[Ze(0x17e)]([{'type':Ze(0xf6),'name':'c','message':Ze(0x180)+P+Ze(0xfb),'default':![]}]);if(B===![])throw new Error(Ze(0x130));_['set'](J,'override',!![]);}_[Ze(0x1c2)](J,Ze(0x1cc),P);})));if(_[ZS(0x109)](J[ZS(0x11d)])){const P=yield this[ZS(0x137)]();_[ZS(0x1c2)](J,ZS(0x11d),P);}return J;}),this[N(0x137)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zg=N,{token:J}=yield inquirer[Zg(0x17e)]([{'type':Zg(0x167),'name':Zg(0x11d),'mask':'*','message':Zg(0x15d)}]);return J;}),inquirer[N(0xdd)](N(0x15e),inquirerSearchList),inquirer[N(0xdd)](N(0x19a),inquirer_pagination_prompt_1[N(0x1c7)]);}['confirmationPrompt'](Z,J){return __awaiter(this,void 0x0,void 0x0,function*(){const ZI=a8J,z=yaml[ZI(0xfc)](Z),P=_[ZI(0x141)](z[ZI(0xe1)]('\x0a')[ZI(0xef)](s=>s[ZI(0xeb)])),B=chalk_1[ZI(0x15a)][ZI(0x13b)]('-'[ZI(0x122)](P)+'\x0a'),{confirm:U}=yield inquirer[ZI(0x17e)]([{'type':ZI(0x176),'name':ZI(0xf6),'message':''+chalk_1[ZI(0x15a)][ZI(0x170)][ZI(0x1bb)](ZI(0x1d2))+B+chalk_1[ZI(0x15a)][ZI(0x198)](z)+B,'choices':Object[ZI(0x1ae)](ConfirmChoices)}]);switch(U){case ConfirmChoices[ZI(0x126)]:return Z;case ConfirmChoices[ZI(0x10a)]:throw new Error(ZI(0x1e1));case ConfirmChoices[ZI(0x13f)]:return this['retrievePayloadViaInteractiveCli'](J);case ConfirmChoices[ZI(0x1a8)]:return this['confirmationPrompt'](yield this[ZI(0x1a2)](Z),J);case ConfirmChoices['SAVE']:yield this[ZI(0xde)](Z);return this[ZI(0x185)](Z,J);default:throw new Error(ZI(0x12a));}});}[a8S(0x100)](Z,J){return __awaiter(this,void 0x0,void 0x0,function*(){const Zm=a8J;if((J===null||J===void 0x0?void 0x0:J[Zm(0x1cd)])!==undefined)this[Zm(0x1cd)]=J===null||J===void 0x0?void 0x0:J['resultCache'];this[Zm(0x1e9)]=J===null||J===void 0x0?void 0x0:J[Zm(0x158)],this[Zm(0x1f0)]=J===null||J===void 0x0?void 0x0:J[Zm(0x1f0)];const z={};return yield this[Zm(0xe6)]([],Z[Zm(0x1df)][Zm(0x14e)],z),this['resultCache']=z,yield this[Zm(0x185)](z,Z);});}[a8S(0xe6)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const ZL=a8J;let B;if(J[ZL(0xf8)]&&!_['has'](J,ZL(0x1be))){if(J['oneOf'][ZL(0xeb)]>0x1){const {choice:U}=yield inquirer[ZL(0x17e)]([{'type':ZL(0x176),'name':ZL(0x173),'message':ZL(0xe2)+(Z[Z['length']-0x1]||'')+ZL(0x1b2),'choices':J[ZL(0xf8)][ZL(0xef)](s=>{const ZM=ZL;var A;return(A=s[ZM(0x15b)])!==null&&A!==void 0x0?A:'??';})}]);B=yield this[ZL(0x1d8)](Z,J[ZL(0xf8)][ZL(0x134)](s=>s[ZL(0x15b)]===U),z,P);}else{const s=J[ZL(0xf8)][0x0];_['set'](s,ZL(0x15b),J[ZL(0x15b)]),B=yield this[ZL(0x1d8)](Z,s,z,P);}B={};}else{if(J[ZL(0x10d)]&&!_[ZL(0x16c)](J,ZL(0x1be))){if(J[ZL(0x10d)][ZL(0xeb)]>0x1){const {choice:A}=yield inquirer[ZL(0x17e)]([{'type':ZL(0x176),'name':ZL(0x173),'message':ZL(0xe2)+(Z[Z[ZL(0xeb)]-0x1]||'')+'\x20type?','choices':[...J[ZL(0x10d)]['map'](n=>{var F;return(F=n['description'])!==null&&F!==void 0x0?F:'??';}),ZL(0x157)]}]);A!==ZL(0x157)&&(B=yield this[ZL(0x1d8)](Z,J['anyOf'][ZL(0x134)](n=>n[ZL(0x15b)]===A),z,P));}else{const n=J[ZL(0x10d)][0x0];_[ZL(0x1c2)](n,ZL(0x15b),J['description']),B=yield this[ZL(0x1d8)](Z,n,z,P);}B={};}else B=yield this[ZL(0x1d8)](Z,J,z,P);}return B;});}[a8S(0x12f)](Z,J,z,P){var B;return __awaiter(this,void 0x0,void 0x0,function*(){const Zx=a8J;if(P===![]){const {addEntry:A}=yield inquirer[Zx(0x17e)]([{'type':Zx(0xf6),'name':Zx(0x1d1),'message':this[Zx(0x148)](J,'Do\x20you\x20want\x20to\x20add',Z===null||Z===void 0x0?void 0x0:Z[Zx(0x15b)]),'default':![]}]);if(!A)return z;}const U=Object[Zx(0x1ea)]((B=Z===null||Z===void 0x0?void 0x0:Z['properties'])!==null&&B!==void 0x0?B:[]),s=Z['required']||[];if(U[Zx(0xeb)]>0x0)for(const n of U){const F=J[Zx(0xf2)](n);if(J[Zx(0xeb)]>0x0&&!_['has'](z,J[Zx(0x104)]('.')))_[Zx(0x1c2)](z,J[Zx(0x104)]('.'),{});yield this[Zx(0xe6)](F,Z['properties'][n],z,s[Zx(0x1c0)](n));}else yield this[Zx(0x1d8)](J,Object[Zx(0x1c5)](Object[Zx(0x1c5)]({},Z),{'type':Zx(0x1d7)}),z,P);return z;});}[a8S(0x18a)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zd=a8J;if(J&&z)return!![];const B=J?Zd(0x174):Zd(0x1c4),{addEntry:U}=yield inquirer[Zd(0x17e)]([{'type':'confirm','name':'addEntry','message':this['getPathString'](Z,B,J?P:undefined),'default':![]}]);return U;});}['getType'](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zk=a8J;let B;const U=Z[Zk(0x104)]('.');switch(J===null||J===void 0x0?void 0x0:J['type']){case Zk(0x1d4):{let s=!![];while(yield this[Zk(0x18a)](Z,s,P,J===null||J===void 0x0?void 0x0:J[Zk(0x15b)])){const A=_[Zk(0xe7)](z,U);_['unset'](z,U),yield this[Zk(0x1d8)](Z,J[Zk(0x120)],z);const n=_[Zk(0xe7)](z,U);!_['isArray'](A)?_[Zk(0x1c2)](z,U,[n]):(A[Zk(0x13c)](n),_[Zk(0x1c2)](z,U,A)),s=![];}return B||[];}case'object':{return B=yield this[Zk(0x12f)](J,Z,z,P),B;}case Zk(0x1d7):B=(0x0,utils_1[Zk(0x1b7)])(yield this['ask'](Z,J,P))||undefined;break;case Zk(0x10c):case Zk(0xf5):case Zk(0x19d):default:B=yield this[Zk(0x107)](Z,J,P,z);break;}return!_[Zk(0x109)](B)&&_[Zk(0x1c2)](z,U,B),B;});}[a8S(0x107)](Z,J,z,P){var B;return __awaiter(this,void 0x0,void 0x0,function*(){const ZN=a8J,U=Z[Z[ZN(0xeb)]-0x1],{defaultValue:defaultValue=(B=J===null||J===void 0x0?void 0x0:J[ZN(0x147)])!==null&&B!==void 0x0?B:J===null||J===void 0x0?void 0x0:J['default'],choices:choices=J===null||J===void 0x0?void 0x0:J[ZN(0x17c)],pagination:s}=yield(0x0,api_helpers_1[ZN(0x14d)])(U,this[ZN(0x110)],this['tmpCmdPath'],P,this[ZN(0x194)],Z);let A=ZN(0x10e);if(!_[ZN(0x109)](choices)&&choices[ZN(0xeb)]>0x0){if(s!==undefined&&s[ZN(0x171)]!==undefined)A=ZN(0x19a);else choices[ZN(0xeb)]>0x4&&typeof choices[0x0]===ZN(0x10c)?A='search-list':A=ZN(0x176);}else{if((J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0xf5))A='confirm';else{if((J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0x19d))A=ZN(0x10e);else(J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])==='rawObject'&&(A='editor');}}let n=z!==![]?!_[ZN(0xe9)](defaultValue)?defaultValue:JSON[ZN(0x11e)](defaultValue):_[ZN(0x118)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)n=n[ZN(0xdb)]();_[ZN(0x16c)](this[ZN(0x1cd)],Z[ZN(0x104)]('.'))&&(n=this[ZN(0x1cd)][Z['join']('.')]);const F=choices&&z===![]?[ZN(0x157),...choices]:choices,C=(J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0x19d),v=Object[ZN(0x1c5)]({'type':A,'name':'id','message':this['getQuestionString'](Z,J),'choices':F,'default':n,'filter':this[ZN(0x1e7)](A,z),'validate':this['validate'](J,z,C)},s),o=(yield inquirer[ZN(0x17e)]([v]))['id'];if(o===ZN(0x157)||o==='')return undefined;if(C)return parseInt(o,0xa);return o;});}[a8S(0x17f)](Z,J){const ZW=a8S,z=(J===null||J===void 0x0?void 0x0:J[ZW(0x1da)])!=='boolean'?ZW(0x1ac):'Should\x20it\x20be';return this['getPathString'](Z,z,J===null||J===void 0x0?void 0x0:J['description']);}[a8S(0xe5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ZD=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZX=a8J;var z;const P=yield this[ZX(0x110)]['list'][ZX(0x193)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':J}}),B=P[ZX(0x1dd)]['projects'][ZX(0xef)](U=>U['id']);return{'elements':B,'nextCursor':(z=P[ZX(0xdc)])===null||z===void 0x0?void 0x0:z['cursor']};});return yield this['askForResourcePaginated'](ZD(0x165),Z);});}['askForProjectScopedResource'](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zq=a8J,B=z||this['apiClient']['contextProvider'][Zq(0x102)]();if(_['isUndefined'](B))throw new Error(Zq(0x10f));const U=yield J(B);return yield this[Zq(0xf9)](Z,U,(P?P+Zq(0x142):'')+Zq(0x131)+B+'\x27');});}[a8S(0x192)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zy=a8J,B=z||this['apiClient'][Zy(0x175)][Zy(0x102)]();if(_[Zy(0x109)](B))throw new Error(Zy(0x10f));const U=yield J(B);return yield this['askForResourcePaginated'](Z,U,(P?P+Zy(0x142):'')+Zy(0x131)+B+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ZG=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZO=a8J;var z;const P=yield this[ZO(0x110)][ZO(0x176)][ZO(0x106)]({'options':{'per_page':this[ZO(0x1aa)],'cursor':J}});return{'elements':P['data'][ZO(0x106)][ZO(0xef)](B=>B[ZO(0x1cc)]),'nextCursor':(z=P[ZO(0xdc)])===null||z===void 0x0?void 0x0:z[ZO(0x113)]};});return this[ZG(0x1e6)](ZG(0x1bd),Z);});}[a8S(0xe0)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Zl=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZK=a8J;var z;const P=yield this[ZK(0x110)][ZK(0x176)]['registryCredentials']({'options':{'per_page':this[ZK(0x1aa)],'cursor':J}});return{'elements':P[ZK(0x1dd)]['credentials']['map'](B=>B['id']),'nextCursor':(z=P['pagination'])===null||z===void 0x0?void 0x0:z[ZK(0x113)]};});return this[Zl(0x1e6)]('credentials',Z);});}[a8S(0x197)](Z){const Zb=a8S;this[Zb(0x194)]=Z;}}exports[a8S(0xfa)]=InquirerHelper;function a8Z(){const Zf=['What\x27s\x20the\x20','all-job-runs','pipeline','askForProject','propToType','get','all-containers','isObject','all-builds','length','1676943UaVcsm','service\x20build','\x20Example:\x20','map','1URCPma','writable','concat','askForAddonRestore','\x20characters','boolean','confirm','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','oneOf','askForResource','InquirerHelper','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','safeDump','volume','service','tag','retrievePayloadViaInteractiveCli','14coEgyr','getCurrentProjectName','71248VGbbbe','join','addon:\x20\x27','domains','ask','containers','isUndefined','ABORT','askForJobRun','string','anyOf','input','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','apiClient','askForVolume','./pagination/inquirer-pagination-prompt','cursor','must\x20be\x20a\x20number,\x20is\x20','logSinks','askForSecret','restores','isBoolean','job\x20builds','pop','inquirer-search-list','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','token','stringify','trim','items','call','repeat','js-yaml','No,\x20repeat','loginPrompt','YES','subdomains','maximum','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','Something\x20unexpected\x20happened.','maxLength','completedAt','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','confirmation','getInnerType','Context\x20name\x20already\x20exists.','project:\x20\x27','askForLogSink','found','find','yaml','Writing\x20configuration\x20failed:\x20','tokenPrompt','validate','askForClusterId','Enter\x20the\x20','grey','push','\x20(completedAt:\x20','template\x20run','REPEAT','3EfauVb','max','\x20in\x20','pipelines','unshift','hasOwnProperty','job\x20containers','example','getPathString','defineProperty','greenBright','fileName','askForTemplateRun','fetchResourceList','body','\x20and\x20it\x20','.*\x5c.(json|yaml|yml)$','createdAt','jobs','askForTemplate','templates','whiteBright','builds','don\x27t\x20change','cmdPath','\x20to\x20use:','default','description','paths','Choose\x20the\x20login\x20token:','search-list','minimum','isEmpty','Choose\x20the\x20','askConfirm','elements','askForPipeline','project','132INetAm','password','3057884ErQTWV','test','174559aHRkoK','minLength','has','editor','pattern','slice','bold','nextPageCursor','Unexpected\x20file\x20type:\x20','choice','Do\x20you\x20want\x20to\x20add','contextProvider','list','askForAddonBackup','this\x20option\x20is\x20required,\x20please\x20answer','next','askForSubdomain','__esModule','enum','No\x20builds\x20found','prompt','getQuestionString','Context\x20with\x20name\x20\x27','service:\x20\x27','job:\x20\x27','addon','280YsSOOZ','confirmationPrompt','editedResult','service\x20containers','332546enRiyA','No,\x20edit','askArrayEntry','askForContainer','SAVE','Configuration\x20file\x20written\x20to\x20','chalk','runs','volumes','charAt','askForProjectScopedResourcePaginated','projects','pathVars',',\x20supported\x20types:\x20[json|yaml|yml]','clusters','setPathVars','blueBright','secrets','pagination-prompt','yellowBright','3692352CCQVYG','integer','not\x20completed','askGeneric','done','tags','editPayload','isNaN','secret','lodash','\x20characters,\x20is\x20','value','EDIT','success','defaultPaginationPageSize','path','What\x20do\x20you\x20want\x20to\x20use\x20as','job','values','underline','doesn\x27t\x20match\x20pattern\x20\x27','job\x20runs','\x20type?','create','170195GYWATC','nextCursor','\x20(startedAt:\x20','isValidJSON','inquirer','retry','askForTag','green','./api-helpers','domain','properties','configurable','includes','reset','set','a\x20Northflank\x20resource','Do\x20you\x20want\x20to\x20add\x20more','assign','subdomain','DynamicReloadPaginationPrompt','for\x20this\x20','./utils','No\x20containers\x20found','askForBuild','name','resultCache','warning','message','red','addEntry','Please\x20confirm\x20following\x20configuration:\x0a','No\x20','array','then','domain\x20(','rawObject','getType','deleteWarningPrompt','type','to\x20use:','blue','data','No,\x20but\x20save\x20as\x20file','opt','askForService','Aborted.','Go\x20to\x20editor','prototype','Template\x20id\x20not\x20provided.','askForAddon','askForResourcePaginated','filter','\x20(full\x20domain:\x20','tmpCmdPath','keys','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','startedAt','writeFileSync','backups','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','skipValidation','toString','pagination','registerPrompt','saveFile','subdomainPath','askForCredentials','split'];a8Z=function(){return Zf;};return a8Z();}
1
+ 'use strict';const a8Q=a8N;(function(x,N){const n=a8N,a=x();while(!![]){try{const J=parseInt(n(0xf0))/0x1+parseInt(n(0x15c))/0x2*(parseInt(n(0xcb))/0x3)+parseInt(n(0x99))/0x4*(parseInt(n(0xff))/0x5)+-parseInt(n(0x16f))/0x6+-parseInt(n(0x148))/0x7*(-parseInt(n(0x170))/0x8)+-parseInt(n(0xc7))/0x9+-parseInt(n(0xe8))/0xa;if(J===N)break;else a['push'](a['shift']());}catch(p){a['push'](a['shift']());}}}(a8x,0x93bd7));var __createBinding=this&&this['__createBinding']||(Object[a8Q(0xe0)]?function(x,N,a,J){const k=a8Q;if(J===undefined)J=a;var p=Object[k(0xbc)](N,a);(!p||(k(0xf7)in p?!N[k(0xae)]:p[k(0x92)]||p['configurable']))&&(p={'enumerable':!![],'get':function(){return N[a];}}),Object[k(0x93)](x,J,p);}:function(x,N,a,J){if(J===undefined)J=a;x[J]=N[a];}),__setModuleDefault=this&&this[a8Q(0x7c)]||(Object['create']?function(x,N){const b=a8Q;Object['defineProperty'](x,b(0x15e),{'enumerable':!![],'value':N});}:function(x,N){const F=a8Q;x[F(0x15e)]=N;}),__importStar=this&&this['__importStar']||function(x){const I=a8Q;if(x&&x[I(0xae)])return x;var N={};if(x!=null){for(var a in x)if(a!=='default'&&Object['prototype'][I(0x17b)]['call'](x,a))__createBinding(N,x,a);}return __setModuleDefault(N,x),N;},__awaiter=this&&this['__awaiter']||function(x,N,a,J){function p(e){return e instanceof a?e:new a(function(s){s(e);});}return new(a||(a=Promise))(function(e,s){const K=a8N;function q(A){const z=a8N;try{M(J[z(0xb6)](A));}catch(l){s(l);}}function d(A){const w=a8N;try{M(J[w(0x132)](A));}catch(l){s(l);}}function M(A){const j=a8N;A[j(0x130)]?e(A['value']):p(A[j(0x117)])[j(0xd2)](q,d);}M((J=J[K(0x14c)](x,N||[]))[K(0xb6)]());});},__importDefault=this&&this[a8Q(0x17a)]||function(x){const m=a8Q;return x&&x[m(0xae)]?x:{'default':x};};Object[a8Q(0x93)](exports,'__esModule',{'value':!![]}),exports[a8Q(0x120)]=void 0x0;function a8N(x,N){const c=a8x();return a8N=function(a,J){a=a-0x79;let p=c[a];return p;},a8N(x,N);}const _=__importStar(require(a8Q(0x107))),chalk_1=__importDefault(require(a8Q(0x87))),fs=__importStar(require('fs')),utils_1=require(a8Q(0xdd)),api_helpers_1=require(a8Q(0xed)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8Q(0x80)),inquirerSearchList=require(a8Q(0x183)),yaml=require(a8Q(0x128));function a8x(){const xX=['push','fullName','assign','SAVE','\x20in\x20','getQuestionString','No\x20containers\x20found','all','getCurrentProjectName','registryCredentials','No,\x20but\x20save\x20as\x20file','askForProject','doesn\x27t\x20match\x20pattern\x20\x27','342796tlxzjx','confirm','default','addons','pipeline','properties','askForSubdomainPath','Context\x20name\x20already\x20exists.','unset','red','isBoolean','skipValidation','retrievePayloadViaInteractiveCli','startedAt','jobs','restores','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','askForSubdomain','askForTemplate','6972456mXplcG','14632cOhJdj','yellowBright','logSinks','editPayload','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','choice','getInnerType','for\x20this\x20','Please\x20confirm\x20following\x20configuration:\x0a','resultCache','__importDefault','hasOwnProperty','Do\x20you\x20want\x20to\x20add','templates','uri','a\x20Northflank\x20resource','example','\x20type?','askGeneric','inquirer-search-list','success','askConfirm','override','isUndefined','search-list','addon:\x20\x27','safeLoad','__setModuleDefault','tags','repeat','found','inquirer','bgGrey','clusters','cursor','setPathVars','backup','askForAddon','chalk','token','boolean','volumes','yaml','prompt','completedAt','type','projects','message','subdomain','writable','defineProperty','warning','list','askForResourcePaginated','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','maxLength','499844CgDObR','subdomainPath','REPEAT','paths','tmpCmdPath','enum','includes','underline','fetchResourceList','job:\x20\x27','registerPrompt','bold','job\x20runs','askForDomain','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','map','required','saveFile','concat','askForTemplateRun','askForResource','__esModule','job','blue','retry','askForProjectScopedResource','job\x20builds','No,\x20abort','set','next','createdAt','domain\x20(','cmdPath','Should\x20it\x20be','credentials','getOwnPropertyDescriptor','volume','description','pattern','pagination','slice','writeFileSync','fileName','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','all-builds','data','3004020zsSmKj','string','object','askForService','3YFmJvu','nextPageCursor','askArrayEntry','askForProjectScopedResourcePaginated','askForJob','\x20Example:\x20','greenBright','then','charAt','unshift','pathVars','maximum','\x20characters,\x20is\x20','DynamicReloadPaginationPrompt','\x20and\x20it\x20','safeDump','find','askForAddonBackup','./utils','has','No\x20','create','Choose\x20the\x20','No,\x20repeat','\x20to\x20use:','askForContainer','template','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','must\x20be\x20a\x20number,\x20is\x20','1565980JJOPyW','isNaN','addon','password','stringify','./api-helpers','Writing\x20configuration\x20failed:\x20','pagination-prompt','521288clCvpE','join','getType','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','all-job-runs','trim','No,\x20edit','get','restore','to\x20use:','not\x20completed','deleteWarningPrompt','What\x20do\x20you\x20want\x20to\x20use\x20as','green','defaultPaginationPageSize','25jQykJs','service\x20containers','toString','addEntry','askForCredentials','json','Something\x20unexpected\x20happened.','askForVolume','lodash','Context\x20with\x20name\x20\x27','EDIT','What\x27s\x20the\x20','editedResult','split','values','No\x20builds\x20found','length','askForSecret','input','confirmationPrompt','domains','askForJobRun','cloud','integer','value','yml','minLength','pipelines','name','job\x20containers','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','getPathString','isObject','InquirerHelper','body','backups','blueBright','filter','services','\x20(startedAt:\x20','containers','js-yaml','test','askForClusterId','grey','contextProvider','keys','rawObject','don\x27t\x20change','done','minimum','throw','isArray','propToType','askForLogSink','secrets','project','askForPipeline','service','service:\x20\x27','validate','pop','path','\x20characters','),\x20subdomain\x20(','\x20(full\x20domain:\x20','anyOf','loginPrompt','\x20(completedAt:\x20','confirmation','YES','apiClient','Yes,\x20send','3598MtlPEC','builds','askForBuild','runs','apply','ask','oneOf'];a8x=function(){return xX;};return a8x();}var ConfirmChoices;(function(x){const S=a8Q;x[S(0x145)]=S(0x147),x[S(0x9b)]=S(0xe2),x[S(0x109)]=S(0xf6),x[S(0x152)]=S(0x159),x['ABORT']=S(0xb4);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(x){const W=a8Q;this[W(0x146)]=x,this[W(0xfe)]=0x32,this[W(0x173)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const L=W,{editedResult:a}=yield inquirer[L(0x8c)]([{'type':'editor','name':L(0x10b),'message':'Go\x20to\x20editor','default':yaml[L(0xda)](N)}]);return yaml[L(0x7b)](a);}),this[W(0xaa)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const h=W,a=q=>'Unexpected\x20file\x20type:\x20'+q+',\x20supported\x20types:\x20[json|yaml|yml]';function J(){return __awaiter(this,void 0x0,void 0x0,function*(){const v=a8N;return inquirer['prompt']([{'type':'input','name':v(0xc3),'message':v(0x11d),'validate':q=>new RegExp('.*\x5c.(json|yaml|yml)$')[v(0x129)](q)?!![]:a(q)}]);});}const {fileName:p}=yield J(),s=p[h(0x101)]()[h(0x10c)]('.')[h(0x13c)]();try{switch(s){case h(0x104):(0x0,utils_1[h(0x184)])('Configuration\x20file\x20written\x20to\x20'+p);return fs[h(0xc2)](p,JSON[h(0xec)](N,null,'\x20\x20'));case h(0x8b):case h(0x118):(0x0,utils_1[h(0x184)])('Configuration\x20file\x20written\x20to\x20'+p);return fs['writeFileSync'](p,yaml[h(0xda)](N));default:(0x0,utils_1[h(0x94)])(a(s));}}catch(q){(0x0,utils_1[h(0x94)])(h(0xee)+q[h(0x90)]);}return undefined;}),this[W(0x124)]=(N,a)=>J=>{const B=W,p=typeof J===B(0xc8)?J[B(0xf5)]():J;return a===![]&&p===B(0x12f)?'':p;},this[W(0x13b)]=(N,a,J)=>p=>{const o=W;if(this[o(0x167)]===!![])return!![];const e=[];if(p===''||p===o(0x12f)){if(a!==![])e[o(0x14f)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}N[o(0x8e)]===o(0xc8)&&!_[o(0x187)](N[o(0xbf)])&&e['push'](new RegExp(N[o(0xbf)])['test'](p)?!![]:o(0x15b)+N['pattern']+'\x27');N[o(0x8e)]===o(0xc8)&&!_[o(0x187)](N['minLength'])&&e['push'](p[o(0x10f)]>=N[o(0x119)]?!![]:o(0xe6)+N[o(0x119)]+'\x20characters,\x20is\x20'+p[o(0x10f)]+o(0x13e));N['type']===o(0xc8)&&!_[o(0x187)](N['maxLength'])&&e[o(0x14f)](p[o(0x10f)]<=N[o(0x98)]?!![]:o(0x174)+N[o(0x98)]+o(0xd7)+p[o(0x10f)]+'\x20characters');J&&Number[o(0xe9)](parseInt(p,0xa))&&e['push'](o(0xe7)+p);N[o(0x8e)]===o(0x116)&&!_['isUndefined'](N[o(0x131)])&&e['push'](p>=N[o(0x131)]?!![]:o(0xa7)+N[o(0x131)]);N[o(0x8e)]===o(0x116)&&!_[o(0x187)](N[o(0xd6)])&&e['push'](p<=N['maximum']?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+N[o(0xd6)]);if(N[o(0x8e)]==='rawObject'){const d=(0x0,utils_1['isValidJSON'])(p);e[o(0x14f)](d===![]||_['isEmpty'](d)?o(0xc4):!![]);}const s=e[o(0x124)](M=>M!==!![]),q=(N===null||N===void 0x0?void 0x0:N['example'])?'\x0a'+chalk_1[o(0x15e)][o(0x165)]('>>')+o(0xd0)+chalk_1[o(0x15e)]['whiteBright'](JSON[o(0xec)](N[o(0x180)])):'';return s[o(0x10f)]>0x0?s[o(0xf1)](chalk_1[o(0x15e)][o(0xa0)](o(0xd9)))+q:!![];},this[W(0x11e)]=(N,a,J)=>{const E=W,p=N[N['length']-0x1];function e(){const G=a8N;return N[G(0xc1)](0x0,-0x1)['map'](d=>d[G(0xd3)](0x0)['toUpperCase']()+d[G(0xc1)](0x1))[G(0xf1)]('>');}const s=N[E(0x10f)]>0x1?chalk_1[E(0x15e)][E(0x81)]['whiteBright'](e())+':\x20':'',q=J?'\x20('+chalk_1['default'][E(0xb0)](J)+')':'';return chalk_1[E(0x15e)]['reset'](''+s+a+'\x20'+chalk_1[E(0x15e)]['bold'][E(0xd1)](p)+q+'?');},this['askForResource']=(N,a,J)=>__awaiter(this,void 0x0,void 0x0,function*(){const u=W;if(a[u(0x10f)]<0x1){const s=J?u(0x177)+J:u(0x7f);throw new Error(u(0xdf)+N+'\x20'+s+'.');}const p=u(0xe1)+N+u(0xe3),e=a['length']>0x4?'search-list':u(0x95);return(yield inquirer[u(0x8c)]([{'type':e,'name':'name','message':p,'choices':a}]))[u(0x11b)];}),this[W(0x96)]=(N,a,J)=>__awaiter(this,void 0x0,void 0x0,function*(){const X=W,{elements:p,nextCursor:e}=yield a();if(p[X(0x10f)]<0x1){const d=J?X(0x177)+J:X(0x7f);throw new Error(X(0xdf)+N+'\x20'+d+'.');}const s=X(0xe1)+N+X(0xe3);if(e!==undefined){const M=({nextPageCursor:A})=>__awaiter(this,void 0x0,void 0x0,function*(){const l=yield a(A);return{'elements':l['elements'],'nextPageCursor':l['nextCursor']};});return(yield inquirer[X(0x8c)]([{'type':X(0xef),'name':X(0x11b),'message':s,'choices':p,'nextPageCursor':e,'loadMore':M}]))[X(0x11b)];}const q=p[X(0x10f)]>0x4?X(0x79):X(0x95);return(yield inquirer['prompt']([{'type':q,'name':X(0x11b),'message':s,'choices':p}]))[X(0x11b)];}),this[W(0x182)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const R=W,J=''+(a?'('+chalk_1[R(0x15e)][R(0xb0)](a)+')\x20':''),p='Enter\x20the\x20'+chalk_1[R(0x15e)][R(0xfd)](N)+'\x20'+J+R(0xf9),e=this['validate']({'type':R(0xc8),'required':!![]});return(yield inquirer['prompt']([{'type':R(0x111),'name':R(0x11b),'message':p,'validate':e}]))[R(0x11b)];}),this[W(0x185)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const t=W;return(yield inquirer[t(0x8c)]([{'type':t(0x15d),'name':'name','message':N,'default':!![]}]))[t(0x11b)];}),this[W(0xca)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const f=a8N,p=yield this[f(0x146)][f(0x95)][f(0x125)]['all']({'parameters':{'projectId':J}}),e=p[f(0xc6)][f(0x125)][f(0xa8)](s=>s['id']);return e;});return this['askForProjectScopedResource'](Y(0x139),a,N);}),this[W(0x16e)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8N;var J;const p=yield this['apiClient']['list'][H(0x17d)]({'options':{'per_page':this[H(0xfe)],'cursor':a}}),e=p['data']['templates'][H(0xa8)](s=>s['id']);return{'elements':e,'nextCursor':(J=p[H(0xc0)])===null||J===void 0x0?void 0x0:J[H(0x83)]};});return this[D(0x96)](D(0xe5),N);}),this['askForTag']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const i=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8N;var J,p,e;const s=yield this[r(0x146)]['list']['tags']({'options':{'per_page':this[r(0xfe)],'cursor':a}}),q=(p=(J=s[r(0xc6)][r(0x7d)])===null||J===void 0x0?void 0x0:J['map'](d=>d['id']))!==null&&p!==void 0x0?p:[];return{'elements':q,'nextCursor':(e=s[r(0xc0)])===null||e===void 0x0?void 0x0:e[r(0x83)]};});return this[i(0x96)]('tag',N);}),this[W(0x12a)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8N;var J,p,e;const s=yield this[U(0x146)][U(0x95)][U(0x115)][U(0x82)]({'options':{'per_page':this[U(0xfe)],'cursor':a}}),q=(p=(J=s[U(0xc6)][U(0x82)])===null||J===void 0x0?void 0x0:J['map'](d=>d[U(0x11b)]))!==null&&p!==void 0x0?p:[];return{'elements':q,'nextCursor':(e=s['pagination'])===null||e===void 0x0?void 0x0:e[U(0x83)]};});return this[y(0x96)]('cluster\x20id',N);}),this[W(0xac)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T=W;if(_['isUndefined'](N))throw new Error('Template\x20id\x20not\x20provided.');const a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const C=a8N;var p;let e=this[C(0xfe)];const s=yield this['apiClient']['list']['templateRuns']({'parameters':{'templateId':N},'options':{'per_page':e,'cursor':J}}),q=s[C(0xc6)]['templateRuns'][C(0xa8)](d=>d['id']+C(0x126)+d['createdAt']+')');return{'elements':q,'nextCursor':(p=s[C(0xc0)])===null||p===void 0x0?void 0x0:p[C(0x83)]};});return this[T(0x96)]('template\x20run',a)[T(0xd2)](J=>J[T(0x10c)]('\x20')[0x0]);}),this[W(0x135)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x0=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const O=a8N;var J;let p=this[O(0xfe)];const e=yield this[O(0x146)][O(0x95)]['logSinks']({'options':{'per_page':p,'cursor':a}}),s=e[O(0xc6)][O(0x172)][O(0xa8)](q=>q['id']);return{'elements':s,'nextCursor':(J=e[O(0xc0)])===null||J===void 0x0?void 0x0:J[O(0x83)]};});return this[x0(0x96)]('log\x20sink',N);}),this[W(0x138)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x2=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const x1=a8N,p=yield this[x1(0x146)][x1(0x95)][x1(0x11a)][x1(0x156)]({'parameters':{'projectId':J}});return p[x1(0xc6)][x1(0x11a)][x1(0xa8)](e=>e['id']);});return this[x2(0xb2)](x2(0x160),a,N);}),this[W(0xcf)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x4=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const x3=a8N,p=yield this[x3(0x146)]['list'][x3(0x16a)][x3(0x156)]({'parameters':{'projectId':J}}),e=p[x3(0xc6)][x3(0x16a)]['map'](s=>s['id']);return e;});return this[x4(0xb2)](x4(0xaf),a,N);}),this[W(0x114)]=(N,a,J=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=W,p=x5(0xf4),e=s=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const x6=x5;var d;const M=yield this[x6(0x146)]['get'][x6(0xaf)][x6(0x14b)]({'parameters':{'projectId':s,'jobId':N},'options':{'per_page':this[x6(0xfe)],'cursor':q}}),A=M[x6(0xc6)][x6(0x14b)][x6(0xa8)](l=>l['id']+x6(0x126)+l[x6(0x169)]+')');return J&&A[x6(0xd4)](p),{'elements':A,'nextCursor':(d=M[x6(0xc0)])===null||d===void 0x0?void 0x0:d['cursor']};});return this['askForProjectScopedResourcePaginated'](x5(0xa5),e,a,'job:\x20\x27'+N+'\x27')[x5(0xd2)](s=>{const x7=x5,q=s[x7(0x10c)]('\x20')[0x0];if(q===p)return undefined;return q;});}),this[W(0x14a)]=(N,a,J,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=W,e=x8(0xc5);if(J!==undefined){const s=q=>d=>__awaiter(this,void 0x0,void 0x0,function*(){const x9=x8;var M;const A=yield this[x9(0x146)][x9(0xf7)]['job'][x9(0x149)]({'parameters':{'projectId':q,'jobId':J},'options':{'per_page':this[x9(0xfe)],'cursor':d}}),l=A[x9(0xc6)]['builds'][x9(0xa8)](Z=>Z['id']+x9(0x126)+Z['createdAt']+')');return p&&l[x9(0xd4)](e),{'elements':l,'nextCursor':(M=A['pagination'])===null||M===void 0x0?void 0x0:M['cursor']};});return this[x8(0xce)](x8(0xb3),s,N,x8(0xa2)+J+'\x27')[x8(0xd2)](q=>{const xx=x8,d=q[xx(0x10c)]('\x20')[0x0];if(d===e)return undefined;return d;});}if(a!==undefined){const q=d=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const xN=x8;var A;const l=yield this[xN(0x146)][xN(0xf7)][xN(0x139)][xN(0x149)]({'parameters':{'projectId':d,'serviceId':a},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':M}}),Z=l[xN(0xc6)][xN(0x149)][xN(0xa8)](V=>V['id']+xN(0x126)+V[xN(0xb7)]+')');if(p)Z['unshift'](e);return{'elements':Z,'nextCursor':(A=l[xN(0xc0)])===null||A===void 0x0?void 0x0:A[xN(0x83)]};});return this[x8(0xce)]('service\x20build',q,N,x8(0x13a)+J+'\x27')[x8(0xd2)](d=>{const xc=x8,M=d[xc(0x10c)]('\x20')[0x0];if(M===e)return undefined;return M;});}throw new Error(x8(0x10e));}),this[W(0xe4)]=(N,a,J,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xJ=W,e='all-containers';if(J!==undefined){const s=q=>d=>__awaiter(this,void 0x0,void 0x0,function*(){const xa=a8N;var M,A;const l=yield this[xa(0x146)][xa(0xf7)]['job'][xa(0x127)]({'parameters':{'projectId':q,'jobId':J},'options':{'per_page':this[xa(0xfe)],'cursor':d}}),Z=(M=l['data'][xa(0x127)])!==null&&M!==void 0x0?M:[],V=Z===null||Z===void 0x0?void 0x0:Z['map'](g=>g[xa(0x11b)]+'\x20(startedAt:\x20'+g['createdAt']+')');return p&&V[xa(0xd4)](e),{'elements':V,'nextCursor':(A=l['pagination'])===null||A===void 0x0?void 0x0:A[xa(0x83)]};});return this['askForProjectScopedResourcePaginated'](xJ(0x11c),s,N,'job:\x20\x27'+J+'\x27')[xJ(0xd2)](q=>{const xp=xJ,d=q[xp(0x10c)]('\x20')[0x0];if(d===e)return undefined;return d;});}if(a!==undefined){const q=d=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const xe=xJ;var A,l;const Z=yield this[xe(0x146)][xe(0xf7)]['service'][xe(0x127)]({'parameters':{'projectId':d,'serviceId':a},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':M}}),V=(A=Z['data'][xe(0x127)])!==null&&A!==void 0x0?A:[],g=V[xe(0xa8)](P=>P[xe(0x11b)]+xe(0x126)+P[xe(0xb7)]+')');if(p)g===null||g===void 0x0?void 0x0:g[xe(0xd4)](e);return{'elements':g,'nextCursor':(l=Z['pagination'])===null||l===void 0x0?void 0x0:l['cursor']};});return this[xJ(0xce)](xJ(0x100),q,N,xJ(0x13a)+J+'\x27')[xJ(0xd2)](d=>{const xs=xJ,M=d[xs(0x10c)]('\x20')[0x0];if(M===e)return undefined;return M;});}throw new Error(xJ(0x155));}),this[W(0x86)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xd=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xq=a8N,p=yield this[xq(0x146)][xq(0x95)][xq(0x15f)][xq(0x156)]({'parameters':{'projectId':J}});return p['data'][xq(0x15f)]['map'](e=>e['id']);});return this[xd(0xb2)](xd(0xea),a,N);}),this[W(0xdc)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xA=W,J=p=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const xM=a8N;var s;const q=yield this[xM(0x146)][xM(0xf7)][xM(0xea)]['backups']({'parameters':{'projectId':p,'addonId':a},'options':{'per_page':this[xM(0xfe)],'cursor':e}});return{'elements':q[xM(0xc6)]['backups'][xM(0xa8)](d=>d['id']+xM(0x143)+(d[xM(0x8d)]||xM(0xfa))+')'),'nextCursor':(s=q[xM(0xc0)])===null||s===void 0x0?void 0x0:s['cursor']};});return this[xA(0xce)](xA(0x122),J,N,xA(0x7a)+a+'\x27')[xA(0xd2)](p=>p[xA(0x10c)]('\x20')[0x0]);}),this['askForAddonRestore']=(N,a,J)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xZ=W,p=e=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const xl=a8N;var q;const d=yield this[xl(0x146)][xl(0xf7)][xl(0xea)][xl(0x85)][xl(0x16b)]({'parameters':{'projectId':e,'addonId':a,'backupId':J},'options':{'per_page':this[xl(0xfe)],'cursor':s}});return{'elements':d['data']['restores'][xl(0xa8)](M=>M['id']+xl(0x143)+(M[xl(0x8d)]||'not\x20completed')+')'),'nextCursor':(q=d[xl(0xc0)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[xZ(0xce)](xZ(0xf8),p,N,xZ(0x7a)+a+'\x27')['then'](e=>e[xZ(0x10c)]('\x20')[0x0]);}),this[W(0x106)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xg=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xV=a8N;return(yield this[xV(0x146)]['list'][xV(0x8a)]({'parameters':{'projectId':J}}))['data'][xV(0xa8)](p=>p['id']);});return this[xg(0xb2)](xg(0xbd),a,N);}),this[W(0x110)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xn=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xP=a8N,p=yield this[xP(0x146)][xP(0x95)][xP(0x136)]['all']({'parameters':{'projectId':J}});return p['data'][xP(0x136)][xP(0xa8)](e=>e['id']);});return this[xn(0xb2)]('secret',a,N);}),this[W(0x16d)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xQ=W,a=yield this[xQ(0x146)][xQ(0xf7)]['domain']({'parameters':{'domain':N}}),J=a[xQ(0xc6)]['subdomains'][xQ(0xa8)](e=>e[xQ(0x11b)]+xQ(0x140)+e[xQ(0x150)]+')'),p=xQ(0xb8)+N+')';return this[xQ(0xad)](xQ(0x91),J,p)[xQ(0xd2)](e=>e[xQ(0x10c)]('\x20')[0x0]);}),this[W(0x162)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xk=W,J=yield this['apiClient'][xk(0x95)][xk(0x91)][xk(0x13d)]({'parameters':{'domain':N,'subdomain':a}}),p=J[xk(0xc6)][xk(0x9c)]['map'](s=>''+s[xk(0x17e)]),e=xk(0xb8)+N+xk(0x13f)+a+')';return this[xk(0xad)](xk(0x9a),p,e);}),this[W(0xfb)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const xb=W;return(yield inquirer[xb(0x8c)]([{'type':xb(0x15d),'name':xb(0x144),'message':chalk_1[xb(0x15e)][xb(0x171)]('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(N||xb(0x17f))+xb(0x16c)),'default':![]}]))[xb(0x144)];}),this[W(0x142)]=(N,a)=>__awaiter(this,void 0x0,void 0x0,function*(){const xF=W;_[xF(0x187)](N[xF(0x11b)])&&(a[xF(0x10f)]<=0x0?_[xF(0xb5)](N,xF(0x11b),xF(0x15e)):yield(0x0,utils_1[xF(0xb1)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const xI=xF,{name:J}=yield inquirer['prompt']([{'type':xI(0x111),'name':'name','message':xI(0xf3),'default':'main-context'}]);if(!N[xI(0x186)]&&a[xI(0xdb)](p=>p['name']===J)){const {c:p}=yield inquirer[xI(0x8c)]([{'type':xI(0x15d),'name':'c','message':xI(0x108)+J+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(p===![])throw new Error(xI(0x163));_[xI(0xb5)](N,'override',!![]);}_['set'](N,xI(0x11b),J);})));if(_[xF(0x187)](N['token'])){const J=yield this['tokenPrompt']();_[xF(0xb5)](N,xF(0x88),J);}return N;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const xz=W,{token:N}=yield inquirer[xz(0x8c)]([{'type':xz(0xeb),'name':xz(0x88),'mask':'*','message':'Choose\x20the\x20login\x20token:'}]);return N;}),inquirer[W(0xa3)](W(0x79),inquirerSearchList),inquirer[W(0xa3)](W(0xef),inquirer_pagination_prompt_1[W(0xd8)]);}['confirmationPrompt'](x,N){return __awaiter(this,void 0x0,void 0x0,function*(){const xw=a8N,a=yaml[xw(0xda)](x),J=_['max'](a[xw(0x10c)]('\x0a')[xw(0xa8)](s=>s['length'])),p=chalk_1[xw(0x15e)][xw(0x12b)]('-'[xw(0x7e)](J)+'\x0a'),{confirm:e}=yield inquirer['prompt']([{'type':xw(0x95),'name':xw(0x15d),'message':''+chalk_1[xw(0x15e)][xw(0xa4)][xw(0xfd)](xw(0x178))+p+chalk_1['default'][xw(0x123)](a)+p,'choices':Object[xw(0x10d)](ConfirmChoices)}]);switch(e){case ConfirmChoices[xw(0x145)]:return x;case ConfirmChoices['ABORT']:throw new Error('Aborted.');case ConfirmChoices[xw(0x9b)]:return this[xw(0x168)](N);case ConfirmChoices['EDIT']:return this[xw(0x112)](yield this[xw(0x173)](x),N);case ConfirmChoices[xw(0x152)]:yield this[xw(0xaa)](x);return this[xw(0x112)](x,N);default:throw new Error(xw(0x105));}});}['retrievePayloadViaInteractiveCli'](x,N){return __awaiter(this,void 0x0,void 0x0,function*(){const xj=a8N;if((N===null||N===void 0x0?void 0x0:N[xj(0x179)])!==undefined)this['resultCache']=N===null||N===void 0x0?void 0x0:N[xj(0x179)];this[xj(0x9d)]=N===null||N===void 0x0?void 0x0:N[xj(0xb9)],this[xj(0x167)]=N===null||N===void 0x0?void 0x0:N[xj(0x167)];const a={};return yield this[xj(0x134)]([],x['opt'][xj(0x121)],a),this['resultCache']=a,yield this['confirmationPrompt'](a,x);});}[a8Q(0x134)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xK=a8N;let p;if(N[xK(0x14e)]&&!_['has'](N,xK(0x161))){if(N[xK(0x14e)][xK(0x10f)]>0x1){const {choice:e}=yield inquirer[xK(0x8c)]([{'type':xK(0x95),'name':xK(0x175),'message':xK(0x10a)+(x[x[xK(0x10f)]-0x1]||'')+xK(0x181),'choices':N[xK(0x14e)][xK(0xa8)](s=>{var q;return(q=s['description'])!==null&&q!==void 0x0?q:'??';})}]);p=yield this['getType'](x,N[xK(0x14e)][xK(0xdb)](s=>s[xK(0xbe)]===e),a,J);}else{const s=N['oneOf'][0x0];_[xK(0xb5)](s,'description',N[xK(0xbe)]),p=yield this[xK(0xf2)](x,s,a,J);}p={};}else{if(N['anyOf']&&!_[xK(0xde)](N,'properties')){if(N[xK(0x141)][xK(0x10f)]>0x1){const {choice:q}=yield inquirer['prompt']([{'type':xK(0x95),'name':'choice','message':'What\x27s\x20the\x20'+(x[x[xK(0x10f)]-0x1]||'')+xK(0x181),'choices':[...N[xK(0x141)][xK(0xa8)](d=>{const xm=xK;var M;return(M=d[xm(0xbe)])!==null&&M!==void 0x0?M:'??';}),xK(0x12f)]}]);q!=='don\x27t\x20change'&&(p=yield this[xK(0xf2)](x,N[xK(0x141)][xK(0xdb)](d=>d['description']===q),a,J));}else{const d=N[xK(0x141)][0x0];_[xK(0xb5)](d,'description',N[xK(0xbe)]),p=yield this[xK(0xf2)](x,d,a,J);}p={};}else p=yield this[xK(0xf2)](x,N,a,J);}return p;});}[a8Q(0x176)](x,N,a,J){var p;return __awaiter(this,void 0x0,void 0x0,function*(){const xS=a8N;if(J===![]){const {addEntry:q}=yield inquirer[xS(0x8c)]([{'type':'confirm','name':xS(0x102),'message':this[xS(0x11e)](N,xS(0x17c),x===null||x===void 0x0?void 0x0:x[xS(0xbe)]),'default':![]}]);if(!q)return a;}const e=Object[xS(0x12d)]((p=x===null||x===void 0x0?void 0x0:x[xS(0x161)])!==null&&p!==void 0x0?p:[]),s=x[xS(0xa9)]||[];if(e[xS(0x10f)]>0x0)for(const d of e){const M=N[xS(0xab)](d);if(N[xS(0x10f)]>0x0&&!_[xS(0xde)](a,N[xS(0xf1)]('.')))_[xS(0xb5)](a,N['join']('.'),{});yield this['propToType'](M,x['properties'][d],a,s[xS(0x9f)](d));}else yield this[xS(0xf2)](N,Object['assign'](Object[xS(0x151)]({},x),{'type':'rawObject'}),a,J);return a;});}['askArrayEntry'](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xW=a8N;if(N&&a)return!![];const p=N?xW(0x17c):'Do\x20you\x20want\x20to\x20add\x20more',{addEntry:e}=yield inquirer['prompt']([{'type':xW(0x15d),'name':'addEntry','message':this[xW(0x11e)](x,p,N?J:undefined),'default':![]}]);return e;});}[a8Q(0xf2)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xL=a8N;let p;const e=x['join']('.');switch(N===null||N===void 0x0?void 0x0:N['type']){case'array':{let s=!![];while(yield this[xL(0xcd)](x,s,J,N===null||N===void 0x0?void 0x0:N[xL(0xbe)])){const q=_[xL(0xf7)](a,e);_[xL(0x164)](a,e),yield this[xL(0xf2)](x,N['items'],a);const d=_[xL(0xf7)](a,e);!_[xL(0x133)](q)?_['set'](a,e,[d]):(q[xL(0x14f)](d),_[xL(0xb5)](a,e,q)),s=![];}return p||[];}case xL(0xc9):{return p=yield this[xL(0x176)](N,x,a,J),p;}case'rawObject':p=(0x0,utils_1['isValidJSON'])(yield this[xL(0x14d)](x,N,J))||undefined;break;case xL(0xc8):case xL(0x89):case xL(0x116):default:p=yield this['ask'](x,N,J,a);break;}return!_[xL(0x187)](p)&&_['set'](a,e,p),p;});}[a8Q(0x14d)](x,N,a,J){var p;return __awaiter(this,void 0x0,void 0x0,function*(){const xv=a8N,e=x[x[xv(0x10f)]-0x1],{defaultValue:defaultValue=(p=N===null||N===void 0x0?void 0x0:N[xv(0x180)])!==null&&p!==void 0x0?p:N===null||N===void 0x0?void 0x0:N[xv(0x15e)],choices:choices=N===null||N===void 0x0?void 0x0:N[xv(0x9e)],pagination:s}=yield(0x0,api_helpers_1[xv(0xa1)])(e,this[xv(0x146)],this[xv(0x9d)],J,this[xv(0xd5)],x);let q=xv(0x111);if(!_[xv(0x187)](choices)&&choices[xv(0x10f)]>0x0){if(s!==undefined&&s[xv(0xcc)]!==undefined)q=xv(0xef);else choices['length']>0x4&&typeof choices[0x0]===xv(0xc8)?q=xv(0x79):q=xv(0x95);}else{if((N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x89))q='confirm';else{if((N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x116))q=xv(0x111);else(N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x12e)&&(q='editor');}}let d=a!==![]?!_[xv(0x11f)](defaultValue)?defaultValue:JSON[xv(0xec)](defaultValue):_[xv(0x166)](defaultValue)?defaultValue:xv(0x12f);if(choices)d=d['toString']();_['has'](this[xv(0x179)],x[xv(0xf1)]('.'))&&(d=this[xv(0x179)][x[xv(0xf1)]('.')]);const M=choices&&a===![]?['don\x27t\x20change',...choices]:choices,A=(N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x116),l=Object[xv(0x151)]({'type':q,'name':'id','message':this[xv(0x154)](x,N),'choices':M,'default':d,'filter':this['filter'](q,a),'validate':this[xv(0x13b)](N,a,A)},s),Z=(yield inquirer['prompt']([l]))['id'];if(Z===xv(0x12f)||Z==='')return undefined;if(A)return parseInt(Z,0xa);return Z;});}[a8Q(0x154)](x,N){const xh=a8Q,a=(N===null||N===void 0x0?void 0x0:N[xh(0x8e)])!==xh(0x89)?xh(0xfc):xh(0xba);return this[xh(0x11e)](x,a,N===null||N===void 0x0?void 0x0:N[xh(0xbe)]);}[a8Q(0x15a)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xB=a8N,x=yield this[xB(0x146)][xB(0x95)][xB(0x8f)][xB(0x156)]({})['then'](N=>N[xB(0xc6)][xB(0x8f)][xB(0xa8)](a=>a['id']));return yield this[xB(0xad)](xB(0x137),x);});}[a8Q(0xb2)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xo=a8N,p=a||this[xo(0x146)]['contextProvider'][xo(0x157)]();if(_[xo(0x187)](p))throw new Error(xo(0x97));const e=yield N(p);return yield this[xo(0xad)](x,e,(J?J+xo(0x153):'')+'project:\x20\x27'+p+'\x27');});}['askForProjectScopedResourcePaginated'](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xG=a8N,p=a||this[xG(0x146)][xG(0x12c)][xG(0x157)]();if(_[xG(0x187)](p))throw new Error(xG(0x97));const e=yield N(p);return yield this[xG(0x96)](x,e,(J?J+'\x20in\x20':'')+'project:\x20\x27'+p+'\x27');});}[a8Q(0xa6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xE=a8N,x=yield this[xE(0x146)][xE(0x95)][xE(0x113)][xE(0x156)]({}),N=x[xE(0xc6)]['domains'][xE(0xa8)](a=>a[xE(0x11b)]);return this[xE(0xad)]('domain',N);});}[a8Q(0x103)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xu=a8N,x=yield this[xu(0x146)][xu(0x95)][xu(0x158)][xu(0x156)]({}),N=x[xu(0xc6)][xu(0xbb)][xu(0xa8)](a=>a['id']);return this[xu(0xad)](xu(0xbb),N);});}[a8Q(0x84)](x){this['pathVars']=x;}}exports[a8Q(0x120)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9L=a9J;function a9Z(){const f=['create','message','EventEmitter','catch','397966gMYyrr','error','emit','Unexpected\x20response,\x20api\x20token\x20missing','login-failure','done','8xPqgCM','default','stringify','Failure\x20during\x20login:\x20','hasOwnProperty','call','aborted','4914041EAicGq','18042hchWNy','3822133QhXjDo','defineProperty','startLogin','4042130QnpcLL','next','baseUrl','login-success','toString','NorthflankApiBrowserLogin','data','SIGINT','init','handleError','value','13xXwWeL','3CuGWIk','configurable','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','initPackage','Login\x20process\x20stopped\x20before\x20completed','removeListener','Unexpected\x20response','success','type','12354060jJirwZ','status','__createBinding','replace','finally','801484GQMIjR','getOwnPropertyDescriptor','ws:','3AvtPik','end','570BhUIqS','then','write','9RZBmFz','__esModule','parse','writable','https:','open','duplex','init-ack','/v1/cli-login','wss:','__importStar','error\x20happened\x20during\x20browser\x20login:\x20'];a9Z=function(){return f;};return a9Z();}(function(Z,J){const m=a9J,z=Z();while(!![]){try{const P=parseInt(m(0x165))/0x1*(-parseInt(m(0x147))/0x2)+-parseInt(m(0x132))/0x3*(-parseInt(m(0x12f))/0x4)+parseInt(m(0x134))/0x5*(parseInt(m(0x155))/0x6)+-parseInt(m(0x156))/0x7*(-parseInt(m(0x14d))/0x8)+parseInt(m(0x137))/0x9*(parseInt(m(0x159))/0xa)+parseInt(m(0x154))/0xb+parseInt(m(0x12a))/0xc*(-parseInt(m(0x164))/0xd);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a9Z,0x4c94e));var __createBinding=this&&this[a9L(0x12c)]||(Object[a9L(0x143)]?function(Z,J,z,P){const M=a9L;if(P===undefined)P=z;var B=Object[M(0x130)](J,z);(!B||('get'in B?!J[M(0x138)]:B[M(0x13a)]||B[M(0x166)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[M(0x157)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(Z,J){Object['defineProperty'](Z,'default',{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this[a9L(0x141)]||function(Z){const x=a9L;if(Z&&Z['__esModule'])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==x(0x14e)&&Object['prototype'][x(0x151)][x(0x152)](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__awaiter=this&&this['__awaiter']||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){function n(v){const d=a9J;try{C(B[d(0x15a)](v));}catch(o){A(o);}}function F(v){try{C(B['throw'](v));}catch(o){A(o);}}function C(v){const k=a9J;v[k(0x14c)]?s(v[k(0x163)]):U(v[k(0x163)])[k(0x135)](n,F);}C((B=B['apply'](Z,J||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(Z){const N=a9L;return Z&&Z[N(0x138)]?Z:{'default':Z};};Object['defineProperty'](exports,a9L(0x138),{'value':!![]}),exports[a9L(0x15e)]=void 0x0;function a9J(Z,J){const z=a9Z();return a9J=function(P,B){P=P-0x123;let U=z[P];return U;},a9J(Z,J);}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9L(0x13c))),events_1=require('events');class NorthflankApiBrowserLogin extends events_1[a9L(0x145)]{constructor(Z,J=!![]){const W=a9L;super(),this[W(0x15b)]=Z,this['openBrowser']=J,this[W(0x12b)]='idle',this[W(0x124)]=()=>JSON[W(0x14f)]({'type':'init'});}[a9L(0x158)](){const X=a9L;var Z;const J=this['baseUrl'][X(0x12d)](X(0x13b),X(0x140))[X(0x12d)]('http:',X(0x131)),z=J+X(0x13f),P=new ws_1[(X(0x14e))](z),B=()=>__awaiter(this,void 0x0,void 0x0,function*(){yield new Promise(s=>{const D=a9J;var A;(A=this['duplex'])===null||A===void 0x0?void 0x0:A[D(0x133)](JSON['stringify']({'type':D(0x153)}),()=>s());}),process['exit']();}),U=new Promise((s,A)=>{const q=X;var n,F,C;try{this[q(0x13d)]=(0x0,ws_1['createWebSocketStream'])(P),process['on'](q(0x160),B);}catch(v){A(new Error(q(0x123)+v[q(0x144)]));}(n=this[q(0x13d)])===null||n===void 0x0?void 0x0:n['on'](q(0x15f),o=>{const y=q;var j;const V=JSON[y(0x139)](o[y(0x15d)]());switch(V===null||V===void 0x0?void 0x0:V[y(0x129)]){case y(0x13e):{const {loginPage:i}=V;if(i===undefined){this['handleError'](y(0x127),A);return;}this['openBrowser']&&(0x0,open_1[y(0x14e)])(i)[y(0x146)](p=>{const O=y,S='Unable\x20to\x20open\x20browser:\x20'+p['message'];this[O(0x162)](S,A);});this[y(0x149)]('browser-opened',{'url':i});break;}case y(0x15c):{const {apiToken:p,contextName:S}=V;if(p===undefined){this[y(0x162)](y(0x14a),A);return;}(j=this[y(0x13d)])===null||j===void 0x0?void 0x0:j[y(0x133)](),s({'token':p,'contextName':S}),this[y(0x12b)]='success';break;}case y(0x14b):{const g=y(0x150)+(V===null||V===void 0x0?void 0x0:V[y(0x144)]);this[y(0x162)](g,A);break;}default:{const I='unable\x20to\x20parse\x20message:\x20'+JSON[y(0x14f)](V);this['handleError'](I,A);}}}),(F=this[q(0x13d)])===null||F===void 0x0?void 0x0:F['on'](q(0x148),o=>{const G=q;this[G(0x162)](G(0x142)+o[G(0x144)],A);}),(C=this[q(0x13d)])===null||C===void 0x0?void 0x0:C['on'](q(0x133),()=>{const K=q;if(this['status']===K(0x128)){}else this[K(0x162)](K(0x125),A);});});return(Z=this['duplex'])===null||Z===void 0x0?void 0x0:Z[X(0x136)](this[X(0x124)]()),this[X(0x12b)]=X(0x161),U[X(0x12e)](()=>{const l=X;process[l(0x126)](l(0x160),B);});}[a9L(0x162)](Z,J){const b=a9L;var z,P;J?(z=this['duplex'])===null||z===void 0x0?void 0x0:z[b(0x133)](()=>J(new Error(Z))):(P=this['duplex'])===null||P===void 0x0?void 0x0:P[b(0x133)](),this['status']='error';}}exports[a9L(0x15e)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9I=a9N;(function(x,N){const F=a9N,c=x();while(!![]){try{const a=parseInt(F(0x180))/0x1*(-parseInt(F(0x17f))/0x2)+parseInt(F(0x18d))/0x3+parseInt(F(0x18e))/0x4+parseInt(F(0x1b9))/0x5+parseInt(F(0x18c))/0x6+parseInt(F(0x1a1))/0x7+-parseInt(F(0x193))/0x8;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a9x,0x6072b));function a9N(x,N){const c=a9x();return a9N=function(a,J){a=a-0x17a;let p=c[a];return p;},a9N(x,N);}var __createBinding=this&&this[a9I(0x17b)]||(Object[a9I(0x197)]?function(x,N,c,a){const z=a9I;if(a===undefined)a=c;var J=Object[z(0x1b3)](N,c);(!J||(z(0x1a6)in J?!N[z(0x1ab)]:J[z(0x184)]||J[z(0x1b4)]))&&(J={'enumerable':!![],'get':function(){return N[c];}}),Object['defineProperty'](x,a,J);}:function(x,N,c,a){if(a===undefined)a=c;x[a]=N[c];}),__setModuleDefault=this&&this[a9I(0x19d)]||(Object[a9I(0x197)]?function(x,N){const w=a9I;Object['defineProperty'](x,w(0x1a5),{'enumerable':!![],'value':N});}:function(x,N){const j=a9I;x[j(0x1a5)]=N;}),__importStar=this&&this[a9I(0x17c)]||function(x){const K=a9I;if(x&&x[K(0x1ab)])return x;var N={};if(x!=null){for(var c in x)if(c!=='default'&&Object['prototype']['hasOwnProperty']['call'](x,c))__createBinding(N,x,c);}return __setModuleDefault(N,x),N;},__awaiter=this&&this[a9I(0x187)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const W=a9N;function s(M){const m=a9N;try{d(a[m(0x1aa)](M));}catch(A){e(A);}}function q(M){try{d(a['throw'](M));}catch(A){e(A);}}function d(M){const S=a9N;M[S(0x1bb)]?p(M[S(0x18a)]):J(M['value'])[S(0x1a4)](s,q);}d((a=a[W(0x1bc)](x,N||[]))[W(0x1aa)]());});},__importDefault=this&&this[a9I(0x188)]||function(x){const L=a9I;return x&&x[L(0x1ab)]?x:{'default':x};};Object[a9I(0x189)](exports,a9I(0x1ab),{'value':!![]}),exports[a9I(0x1a9)]=void 0x0;function a9x(){const Y=['startLogin','EventEmitter','toString','init','baseUrl','getOwnPropertyDescriptor','configurable','ws:','duplex','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','status','2372955woKQmm','initPackage','done','apply','idle','Login\x20process\x20stopped\x20before\x20completed','events','browser-opened','__createBinding','__importStar','https:','end','4JUOniv','358461NTAMkd','/v1/cli-login','error\x20happened\x20during\x20browser\x20login:\x20','message','writable','data','login-success','__awaiter','__importDefault','defineProperty','value','openBrowser','3411600gTsJiU','2111973xhcFTh','1361912XAhLfO','http:','stringify','finally','aborted','9501368SgFSgm','Failure\x20during\x20login:\x20','handleError','exit','create','Unable\x20to\x20open\x20browser:\x20','emit','wss:','replace','unable\x20to\x20parse\x20message:\x20','__setModuleDefault','parse','open','login-failure','1483888wFMttJ','removeListener','Unexpected\x20response,\x20api\x20token\x20missing','then','default','get','catch','Unexpected\x20response','NorthflankApiBrowserLogin','next','__esModule','success','SIGINT'];a9x=function(){return Y;};return a9x();}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9I(0x19f))),events_1=require(a9I(0x1bf));class NorthflankApiBrowserLogin extends events_1[a9I(0x1af)]{constructor(x,N=!![]){const v=a9I;super(),this['baseUrl']=x,this[v(0x18b)]=N,this[v(0x1b8)]=v(0x1bd),this[v(0x1ba)]=()=>JSON[v(0x190)]({'type':v(0x1b1)});}[a9I(0x1ae)](){const h=a9I;var x;const N=this[h(0x1b2)][h(0x19b)](h(0x17d),h(0x19a))[h(0x19b)](h(0x18f),h(0x1b5)),c=N+h(0x181),a=new ws_1['default'](c),J=()=>__awaiter(this,void 0x0,void 0x0,function*(){const o=h;yield new Promise(e=>{const B=a9N;var s;(s=this[B(0x1b6)])===null||s===void 0x0?void 0x0:s[B(0x17e)](JSON[B(0x190)]({'type':B(0x192)}),()=>e());}),process[o(0x196)]();}),p=new Promise((s,q)=>{const G=h;var d,M,A;try{this['duplex']=(0x0,ws_1['createWebSocketStream'])(a),process['on'](G(0x1ad),J);}catch(l){q(new Error(G(0x1b7)+l[G(0x183)]));}(d=this[G(0x1b6)])===null||d===void 0x0?void 0x0:d['on'](G(0x185),Z=>{const E=G;var V;const g=JSON[E(0x19e)](Z[E(0x1b0)]());switch(g===null||g===void 0x0?void 0x0:g['type']){case'init-ack':{const {loginPage:P}=g;if(P===undefined){this[E(0x195)](E(0x1a8),q);return;}this['openBrowser']&&(0x0,open_1[E(0x1a5)])(P)[E(0x1a7)](n=>{const u=E,Q=u(0x198)+n[u(0x183)];this[u(0x195)](Q,q);});this[E(0x199)](E(0x17a),{'url':P});break;}case E(0x186):{const {apiToken:n,contextName:Q}=g;if(n===undefined){this['handleError'](E(0x1a3),q);return;}(V=this[E(0x1b6)])===null||V===void 0x0?void 0x0:V[E(0x17e)](),s({'token':n,'contextName':Q}),this[E(0x1b8)]=E(0x1ac);break;}case E(0x1a0):{const k=E(0x194)+(g===null||g===void 0x0?void 0x0:g[E(0x183)]);this[E(0x195)](k,q);break;}default:{const b=E(0x19c)+JSON['stringify'](g);this[E(0x195)](b,q);}}}),(M=this[G(0x1b6)])===null||M===void 0x0?void 0x0:M['on']('error',Z=>{const X=G;this[X(0x195)](X(0x182)+Z['message'],q);}),(A=this[G(0x1b6)])===null||A===void 0x0?void 0x0:A['on'](G(0x17e),()=>{const R=G;if(this[R(0x1b8)]===R(0x1ac)){}else this[R(0x195)](R(0x1be),q);});});return(x=this[h(0x1b6)])===null||x===void 0x0?void 0x0:x['write'](this[h(0x1ba)]()),this['status']=h(0x1b1),p[h(0x191)](()=>{const t=h;process[t(0x1a2)](t(0x1ad),J);});}[a9I(0x195)](x,N){const f=a9I;var c,a;N?(c=this[f(0x1b6)])===null||c===void 0x0?void 0x0:c[f(0x17e)](()=>N(new Error(x))):(a=this[f(0x1b6)])===null||a===void 0x0?void 0x0:a[f(0x17e)](),this[f(0x1b8)]='error';}}exports[a9I(0x1a9)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10H=a10J;(function(Z,J){const u=a10J,z=Z();while(!![]){try{const P=parseInt(u(0x13a))/0x1+parseInt(u(0xc4))/0x2*(parseInt(u(0x115))/0x3)+-parseInt(u(0xde))/0x4+parseInt(u(0x125))/0x5+-parseInt(u(0xb2))/0x6*(-parseInt(u(0xf4))/0x7)+parseInt(u(0xca))/0x8+-parseInt(u(0x107))/0x9;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a10Z,0xbe5b6));function a10Z(){const Zs=['defaultDurationSeconds','throw','valueOf','runId','\x20for\x20container\x20','logs','containerId','__awaiter','askForAddonRestore','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','1081437JZDoIc','description','getCurrentJobName','logsApiClient','askForAddon','__importDefault','getCommand','json','--duration\x20[duration]','logRange','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','addonRestore','job','getStandardLogCommand','__esModule','--deployment\x20--deploymentId\x20[deploymentId]','--project\x20--projectId\x20[projectId]','Project\x20for\x20logs','alias','3574980Szxglu','logs-received','assign','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','Id\x20[','-t,\x20--types\x20<types...>','format','values','textIncludes','Deployment\x20id,\x20example:\x20my-service-54785f4','stringify','--run\x20--runId\x20[runId]','charAt','askForContainer','21zCgQRm','--noDefaults','askForBuild','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','choices','message','addon',',\x20to:\x20','parseDateInput','name','--textNotIncludes\x20<text>','askForProject','done','restoreId','\x27Ctrl+C\x27','regexNotIncludes','1495565CkYlFV','service','--textIncludes\x20<text>','chalk','\x20of\x20','data','customUserAgent','printResponse','Backup\x20to\x20get\x20logs\x20from','./log-formatter','cursor','build-','next',',\x20from:\x20','printInitInfo','toISOString','>\x20Container\x20logs','Number\x20of\x20lines\x20to\x20return.','conflicts','warning','apply','405734OPRFbB',',\x20restore\x20id\x20','--endTime\x20<timestamp>','--build\x20--buildId\x20[buildId]','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','commander','option','Error\x20while\x20tailing\x20log\x20lines:\x20','forward','\x20with\x20live-tailing','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','serviceId','addonId','noDefaults','apiClient','../utils','tsHint','6PqbgQY','argParser','-d,\x20--direction\x20<order>','deploymentId','\x20--','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','log',',\x20backup\x20id\x20','askForAddonBackup','default','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','hasNextPage','details','askForService','close','logTail','slice','bold','96010bVaAyp','\x20in\x20project\x20','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','getCurrentServiceName','getSeconds','--startTime\x20<timestamp>','7791816nDctfA','../formatting/console-format-helpers','Option','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','error','textNotIncludes','addOption','regexIncludes','Get\x20log\x20for\x20the\x20specified\x20','CliLogs','action','yaml','getFormatter','\x20(exit\x20with\x20','\x20for\x20all\x20containers','Build\x20to\x20get\x20logs\x20from','setSeconds','addonBackup','inquirerHelper','-o,\x20--output\x20[output]','3969712BaVdIb','-f,\x20--tail','assertContextExisting','--container\x20--containerId\x20[containerId]','forEach','--regexIncludes\x20<regex>','backupId','-l,\x20--lineLimit\x20[limit]','ApiClient','Id]','value','../inquirer-helper'];a10Z=function(){return Zs;};return a10Z();}var __awaiter=this&&this[a10H(0xf1)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const Z1=a10J;function n(v){const Y=a10J;try{C(B[Y(0x131)](v));}catch(o){A(o);}}function F(v){const E=a10J;try{C(B[E(0xeb)](v));}catch(o){A(o);}}function C(v){const Z0=a10J;v[Z0(0x121)]?s(v[Z0(0xe8)]):U(v['value'])['then'](n,F);}C((B=B[Z1(0x139)](Z,J||[]))[Z1(0x131)]());});},__importDefault=this&&this[a10H(0xf9)]||function(Z){const Z2=a10H;return Z&&Z[Z2(0x102)]?Z:{'default':Z};};function a10J(Z,J){const z=a10Z();return a10J=function(P,B){P=P-0xa8;let U=z[P];return U;},a10J(Z,J);}Object['defineProperty'](exports,a10H(0x102),{'value':!![]}),exports[a10H(0xd3)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10H(0x128))),utils_1=require(a10H(0xb0)),inquirer_helper_1=require(a10H(0xe9)),commander_1=require(a10H(0x13f)),console_format_helpers_1=require(a10H(0xcb)),log_formatter_1=require(a10H(0x12e));class CliLogs{constructor(Z){const Z3=a10H;this['apiContext']=Z,this[Z3(0xea)]=0x708,this[Z3(0x101)]=(J,z,P,B)=>{const Z4=Z3,U=(0x0,utils_1[Z4(0xfa)])(!![])[Z4(0x11e)]((z?Z4(0x130):'')+'logs')[Z4(0x106)]((z?'build-':'')+Z4(0xb8))[Z4(0xf5)](Z4(0xd2)+J)[Z4(0x140)](Z4(0x104),Z4(0x105))[Z4(0x140)]('--'+J+Z4(0xb6)+J+Z4(0x10b)+J+Z4(0xe7),J[Z4(0x113)](0x0)['toUpperCase']()+J[Z4(0xc2)](0x1)+'\x20to\x20get\x20logs\x20from')[Z4(0x140)](Z4(0xe1),Z4(0xaa));if(z)U['option'](Z4(0x13d),Z4(0xd9));if(J==='job')U['option'](Z4(0x112),Z4(0xab));if(J===Z4(0x126))U[Z4(0x140)](Z4(0x103),Z4(0x110));if(P)U[Z4(0x140)]('--backup\x20--backupId\x20[backupId]',Z4(0x12d));if(B)U[Z4(0x140)]('--restore\x20--restoreId\x20[restoreId]','Restore\x20to\x20get\x20logs\x20from');return!z&&!P&&!B&&U[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x10c),'Which\x20log\x20types\x20to\x20fetch')[Z4(0x119)](Object[Z4(0x10e)](js_client_1['LogType']))),U[Z4(0x140)](Z4(0xdf),Z4(0xb7))[Z4(0x140)](Z4(0xe5),Z4(0x136))[Z4(0x140)](Z4(0xc9),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[Z4(0xb1)],utils_1[Z4(0x11d)])[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x13c),Z4(0xc6)+utils_1['tsHint'])[Z4(0xb3)](utils_1[Z4(0x11d)])[Z4(0x137)](['tail']))[Z4(0x140)](Z4(0xfc),'Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set')['addOption'](new commander_1['Option'](Z4(0xb4),'Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[Z4(0x119)](['backward',Z4(0xa8)])[Z4(0x137)](['tail']))['addOption'](new commander_1[(Z4(0xcc))](Z4(0x127),Z4(0xcd))[Z4(0x137)](['textNotIncludes',Z4(0xd1),'regexNotIncludes']))[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x11f),Z4(0xbc))['conflicts']([Z4(0x10f),Z4(0xd1),'regexNotIncludes']))[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0xe3),Z4(0xfe))['conflicts']([Z4(0xcf),Z4(0x10f),Z4(0x124)]))['addOption'](new commander_1[(Z4(0xcc))]('--regexNotIncludes\x20<regex>','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[Z4(0x137)](['textNotIncludes',Z4(0xd1),'textIncludes']))[Z4(0x140)](Z4(0x116),Z4(0x10a),![])[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0xdd),Z4(0x118))[Z4(0x119)](Object['values']([Z4(0x10d),'json',Z4(0xd5)]))),U;},this[Z3(0x133)]=(J,z,P,B)=>{const Z5=Z3,{containerName:U,restoreId:s,backupId:A,quiet:n,tail:F,startTime:C,endTime:v,duration:o}=B;if(n===!![])return;const j=F?Z5(0xd7)+chalk_1['default']['bold'](Z5(0x123))+')':'',V=F?Z5(0xa9):'',i=new Date(),p=C!==null&&C!==void 0x0?C:new Date(new Date((v!==null&&v!==void 0x0?v:i)[Z5(0xec)]())['setSeconds']((v!==null&&v!==void 0x0?v:i)[Z5(0xc8)]()-(o!==null&&o!==void 0x0?o:this['defaultDurationSeconds']))),S=(v!==null&&v!==void 0x0?v:C!==undefined)?new Date(new Date(C[Z5(0xec)]())[Z5(0xda)](C[Z5(0xc8)]()+(o!==null&&o!==void 0x0?o:this[Z5(0xea)]))):i,e=A!==undefined,g=p&&!e?Z5(0x132)+chalk_1[Z5(0xbb)][Z5(0xc3)](p['toISOString']()):'',I=S&&!e?Z5(0x11c)+chalk_1[Z5(0xbb)][Z5(0xc3)](S[Z5(0x134)]()):'',m=o?',\x20duration:\x20'+o+'\x20seconds':'',L=U?Z5(0xee)+chalk_1[Z5(0xbb)][Z5(0xc3)](U):e?'':Z5(0xd8),M=A?Z5(0xb9)+A:'',x=s?Z5(0x13b)+s:'',d=J+'\x20'+chalk_1[Z5(0xbb)]['bold'](z)+M+x+Z5(0xc5)+chalk_1[Z5(0xbb)][Z5(0xc3)](P),k=''+g+I+m;console[Z5(0xb8)](Z5(0x135)+V+L+Z5(0x129)+d+k+j+':');},this['getFormatter']=(J,z)=>(P,B)=>{const Z6=Z3;if(!J){if(P['length']===0x0)console[Z6(0xb8)]('No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.');P[Z6(0xe2)](U=>(0x0,log_formatter_1['formatLogLine'])(U,z));}else(0x0,console_format_helpers_1[Z6(0x12c)])(J,P);(B===null||B===void 0x0?void 0x0:B[Z6(0xbd)])&&(0x0,utils_1[Z6(0x138)])(Z6(0xf3)+B[Z6(0x12f)]);},this[Z3(0xaf)]=new js_client_1[(Z3(0xe6))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[Z3(0x12b)]}),this[Z3(0xf7)]=this[Z3(0xaf)],this[Z3(0xdc)]=new inquirer_helper_1['InquirerHelper'](this[Z3(0xaf)]);}['getLogsCommand'](Z,J=![],z=![],P=![]){const ZB=a10H,B=(v,o)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=a10J,j=o[Z7(0xae)],{apiContext:V,inquirerHelper:i}=this;switch(Z){case Z7(0x126):{const p=j?undefined:V[Z7(0xc7)]();return o[Z7(0xac)]||p||(yield i[Z7(0xbf)](v)());}case Z7(0x100):{const S=j?undefined:V[Z7(0xf6)]();return o['jobId']||S||(yield i['askForJob'](v)());}case Z7(0x11b):{return o[Z7(0xad)]||(yield i[Z7(0xf8)](v)());}}}),U=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z8=a10J;if(J)return j['buildId']||(yield this['inquirerHelper'][Z8(0x117)](v,Z==='service'?o:undefined,Z===Z8(0x100)?o:undefined,!![])());return undefined;}),s=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z9=a10J;if(z||P)return j[Z9(0xe4)]||(yield this[Z9(0xdc)][Z9(0xba)](v,o)());return undefined;}),A=(v,o,j,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=a10J;if(P)return V[ZZ(0x122)]||(yield this[ZZ(0xdc)][ZZ(0xf2)](v,o,j)());return undefined;}),n=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZJ=a10J;if(!J&&j[ZJ(0xf0)]!==undefined){if(j[ZJ(0xf0)]!==!![])return j[ZJ(0xf0)];return yield this[ZJ(0xdc)][ZJ(0x114)](v,Z===ZJ(0x126)?o:undefined,Z===ZJ(0x100)?o:undefined,!![])();}return undefined;}),F=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Zz=a10J;if(Z===Zz(0x100))return j[Zz(0xed)]||(yield this['inquirerHelper']['askForJobRun'](o,v,!![])());return undefined;}),C=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZP=a10J;if(Z===ZP(0x126)){if(j[ZP(0xb5)]!==!![])return j[ZP(0xb5)];return j[ZP(0xb5)];}return undefined;});return this[ZB(0x101)](Z,J,z,P)[ZB(0xd4)](v=>__awaiter(this,void 0x0,void 0x0,function*(){const ZU=ZB,{noDefaults:o,projectId:j,quiet:V,tail:i,types:p,textIncludes:S,textNotIncludes:e,regexIncludes:g,regexNotIncludes:I,direction:m,lineLimit:L,startTime:M,endTime:x,duration:d,output:k}=v;(0x0,utils_1[ZU(0xe0)])(this[ZU(0xaf)]);const {apiContext:N,inquirerHelper:W,logsApiClient:X}=this,D=o?undefined:N['getCurrentProjectName'](),q=j||D||(yield W[ZU(0x120)]()),y=yield B(q,v),O=yield U(q,y,v),G=yield s(q,y,v),K=yield A(q,y,G,v),l=yield F(q,y,v),b=yield C(q,y,v),f=yield n(q,y,v);if(M&&x&&d)throw new Error(ZU(0x13e));const r={'projectId':q,'entityId':y},w={'containerName':f,'types':p,'textIncludes':S,'textNotIncludes':e,'regexIncludes':g,'regexNotIncludes':I,'lineLimit':L,'startTime':M,'duration':d,'runId':l,'buildId':O,'backupId':G,'restoreId':K,'deploymentId':b,'isBuild':J!==null&&J!==void 0x0?J:![]},Q=P?ZU(0xff):z?ZU(0xdb):Z,T=Object[ZU(0x109)](Object[ZU(0x109)]({},w),{'endTime':x,'direction':m});if(!V&&k!==ZU(0xd5)&&k!=='yml'&&k!==ZU(0xfb))this[ZU(0x133)](Z,y,q,Object['assign'](Object[ZU(0x109)]({},T),v));const c=this[ZU(0xd6)](k,S!==null&&S!==void 0x0?S:g);if(i){const t=yield X['logs'][ZU(0xc1)](r,w,Q);t['on'](ZU(0x108),c),t['on'](ZU(0xce),R=>(0x0,utils_1[ZU(0xce)])(ZU(0x141)+R[ZU(0x11a)])),t['on'](ZU(0xc0),()=>console[ZU(0xb8)]('Log\x20session\x20ended')),yield t['start']();}else{const R=yield X[ZU(0xef)][ZU(0xfd)](r,T,Q);if(R[ZU(0xce)]){const h=R[ZU(0xce)][ZU(0xbe)],a=h?'\x0aDetails:\x20'+JSON[ZU(0x111)](h,null,'\x20'):'';(0x0,utils_1[ZU(0xce)])('Error\x20while\x20fetching\x20log\x20lines:\x20'+R['error'][ZU(0x11a)]+a);}else c(R[ZU(0x12a)],R['pagination']);}}));}}exports['CliLogs']=CliLogs;
1
+ 'use strict';const a10C=a10N;function a10N(x,N){const c=a10x();return a10N=function(a,J){a=a-0x141;let p=c[a];return p;},a10N(x,N);}(function(x,N){const y=a10N,c=x();while(!![]){try{const a=parseInt(y(0x182))/0x1+-parseInt(y(0x18c))/0x2+parseInt(y(0x158))/0x3+-parseInt(y(0x147))/0x4*(parseInt(y(0x1cf))/0x5)+parseInt(y(0x14e))/0x6*(-parseInt(y(0x173))/0x7)+parseInt(y(0x19d))/0x8*(-parseInt(y(0x1d6))/0x9)+parseInt(y(0x160))/0xa;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a10x,0x1fd07));var __awaiter=this&&this[a10C(0x156)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){function s(M){const T=a10N;try{d(a[T(0x191)](M));}catch(A){e(A);}}function q(M){try{d(a['throw'](M));}catch(A){e(A);}}function d(M){const O=a10N;M[O(0x143)]?p(M[O(0x17c)]):J(M['value'])[O(0x14d)](s,q);}d((a=a['apply'](x,N||[]))['next']());});},__importDefault=this&&this[a10C(0x1a2)]||function(x){const x0=a10C;return x&&x[x0(0x15d)]?x:{'default':x};};Object[a10C(0x152)](exports,'__esModule',{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10C(0x185))),utils_1=require('../utils'),inquirer_helper_1=require(a10C(0x188)),commander_1=require('commander'),console_format_helpers_1=require(a10C(0x15b)),log_formatter_1=require('./log-formatter');class CliLogs{constructor(x){const x1=a10C;this['apiContext']=x,this[x1(0x1b4)]=0x708,this[x1(0x1c5)]=(N,c,a,J)=>{const x2=x1,p=(0x0,utils_1['getCommand'])(!![])[x2(0x165)]((c?x2(0x1b9):'')+'logs')[x2(0x1a4)]((c?x2(0x1b9):'')+x2(0x1ce))[x2(0x1b0)](x2(0x1d3)+N)[x2(0x1d0)](x2(0x14a),x2(0x183))[x2(0x1d0)]('--'+N+x2(0x1d4)+N+'Id\x20['+N+x2(0x15a),N['charAt'](0x0)['toUpperCase']()+N[x2(0x1d7)](0x1)+x2(0x141))['option'](x2(0x19a),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)');if(c)p[x2(0x1d0)](x2(0x181),x2(0x1a6));if(N===x2(0x153))p[x2(0x1d0)]('--run\x20--runId\x20[runId]',x2(0x14c));if(N===x2(0x1c3))p['option'](x2(0x15f),x2(0x1b6));if(a)p[x2(0x1d0)](x2(0x1a0),x2(0x198));if(J)p[x2(0x1d0)](x2(0x195),x2(0x164));return!c&&!a&&!J&&p[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x172),x2(0x179))[x2(0x1aa)](Object[x2(0x17e)](js_client_1[x2(0x159)]))),p['option']('-f,\x20--tail',x2(0x186))[x2(0x1d0)]('-l,\x20--lineLimit\x20[limit]',x2(0x171))[x2(0x1d0)](x2(0x174),x2(0x1a7)+utils_1['tsHint'],utils_1['parseDateInput'])[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x15c),x2(0x1d5)+utils_1[x2(0x1bb)])[x2(0x17b)](utils_1[x2(0x184)])[x2(0x148)]([x2(0x1ca)]))['option'](x2(0x178),x2(0x1a1))['addOption'](new commander_1[(x2(0x1d2))](x2(0x16a),x2(0x1a9))[x2(0x1aa)]([x2(0x1ab),'forward'])[x2(0x148)]([x2(0x1ca)]))[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x1af),x2(0x18b))[x2(0x148)](['textNotIncludes','regexIncludes','regexNotIncludes']))[x2(0x19b)](new commander_1[(x2(0x1d2))]('--textNotIncludes\x20<text>',x2(0x1ba))[x2(0x148)]([x2(0x176),x2(0x155),x2(0x192)]))[x2(0x19b)](new commander_1['Option'](x2(0x1b3),x2(0x1bf))['conflicts'](['textNotIncludes',x2(0x176),x2(0x192)]))[x2(0x19b)](new commander_1[(x2(0x1d2))]('--regexNotIncludes\x20<regex>',x2(0x199))[x2(0x148)]([x2(0x14f),'regexIncludes',x2(0x176)]))[x2(0x1d0)](x2(0x16d),x2(0x1bd),![])[x2(0x19b)](new commander_1[(x2(0x1d2))]('-o,\x20--output\x20[output]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')['choices'](Object[x2(0x17e)]([x2(0x168),x2(0x16f),x2(0x163)]))),p;},this[x1(0x1c1)]=(N,c,a,J)=>{const x3=x1,{containerName:p,restoreId:e,backupId:s,quiet:q,tail:d,startTime:M,endTime:A,duration:l}=J;if(q===!![])return;const Z=d?x3(0x18d)+chalk_1['default'][x3(0x18a)]('\x27Ctrl+C\x27')+')':'',V=d?x3(0x1a3):'',g=new Date(),P=M!==null&&M!==void 0x0?M:new Date(new Date((A!==null&&A!==void 0x0?A:g)[x3(0x1c0)]())[x3(0x1cb)]((A!==null&&A!==void 0x0?A:g)[x3(0x197)]()-(l!==null&&l!==void 0x0?l:this['defaultDurationSeconds']))),n=(A!==null&&A!==void 0x0?A:M!==undefined)?new Date(new Date(M['valueOf']())[x3(0x1cb)](M[x3(0x197)]()+(l!==null&&l!==void 0x0?l:this[x3(0x1b4)]))):g,Q=s!==undefined,k=P&&!Q?',\x20from:\x20'+chalk_1[x3(0x17f)][x3(0x18a)](P['toISOString']()):'',b=n&&!Q?x3(0x1d8)+chalk_1[x3(0x17f)][x3(0x18a)](n[x3(0x193)]()):'',F=l?x3(0x1be)+l+x3(0x1ae):'',I=p?x3(0x150)+chalk_1[x3(0x17f)][x3(0x18a)](p):Q?'':x3(0x1d1),z=s?x3(0x154)+s:'',w=e?x3(0x1a8)+e:'',j=N+'\x20'+chalk_1[x3(0x17f)]['bold'](c)+z+w+'\x20in\x20project\x20'+chalk_1[x3(0x17f)][x3(0x18a)](a),K=''+k+b+F;console[x3(0x1ce)](x3(0x1bc)+V+I+x3(0x18e)+j+K+Z+':');},this[x1(0x1c9)]=(N,c)=>(a,J)=>{const x4=x1;if(!N){if(a[x4(0x1b8)]===0x0)console['log'](x4(0x1ac));a[x4(0x167)](p=>(0x0,log_formatter_1['formatLogLine'])(p,c));}else(0x0,console_format_helpers_1[x4(0x17d)])(N,a);(J===null||J===void 0x0?void 0x0:J[x4(0x1da)])&&(0x0,utils_1[x4(0x151)])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+J['cursor']);},this['apiClient']=new js_client_1[(x1(0x162))](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[x1(0x15e)]}),this[x1(0x14b)]=this[x1(0x175)],this[x1(0x145)]=new inquirer_helper_1['InquirerHelper'](this[x1(0x175)]);}['getLogsCommand'](x,N=![],c=![],a=![]){const xc=a10C,J=(A,l)=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=a10N,Z=l[x5(0x169)],{apiContext:V,inquirerHelper:g}=this;switch(x){case x5(0x1c3):{const P=Z?undefined:V[x5(0x194)]();return l[x5(0x189)]||P||(yield g[x5(0x1dd)](A)());}case x5(0x153):{const n=Z?undefined:V[x5(0x1b2)]();return l[x5(0x180)]||n||(yield g[x5(0x19f)](A)());}case x5(0x1db):{return l[x5(0x1cc)]||(yield g['askForAddon'](A)());}}}),p=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x6=a10N;if(N)return Z[x6(0x1c6)]||(yield this[x6(0x145)][x6(0x1ad)](A,x==='service'?l:undefined,x==='job'?l:undefined,!![])());return undefined;}),e=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x7=a10N;if(c||a)return Z[x7(0x1cd)]||(yield this['inquirerHelper'][x7(0x1c8)](A,l)());return undefined;}),s=(A,l,Z,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=a10N;if(a)return V[x8(0x161)]||(yield this['inquirerHelper'][x8(0x196)](A,l,Z)());return undefined;}),q=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x9=a10N;if(!N&&Z[x9(0x18f)]!==undefined){if(Z[x9(0x18f)]!==!![])return Z[x9(0x18f)];return yield this[x9(0x145)]['askForContainer'](A,x===x9(0x1c3)?l:undefined,x===x9(0x153)?l:undefined,!![])();}return undefined;}),d=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const xx=a10N;if(x===xx(0x153))return Z[xx(0x1a5)]||(yield this['inquirerHelper'][xx(0x1b7)](l,A,!![])());return undefined;}),M=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const xN=a10N;if(x===xN(0x1c3)){if(Z['deploymentId']!==!![])return Z[xN(0x177)];return Z[xN(0x177)];}return undefined;});return this[xc(0x1c5)](x,N,c,a)[xc(0x1c2)](A=>__awaiter(this,void 0x0,void 0x0,function*(){const xa=xc,{noDefaults:l,projectId:Z,quiet:V,tail:g,types:P,textIncludes:n,textNotIncludes:Q,regexIncludes:k,regexNotIncludes:b,direction:F,lineLimit:I,startTime:z,endTime:w,duration:j,output:K}=A;(0x0,utils_1['assertContextExisting'])(this['apiClient']);const {apiContext:m,inquirerHelper:S,logsApiClient:W}=this,L=l?undefined:m[xa(0x19c)](),v=Z||L||(yield S[xa(0x1de)]()),h=yield J(v,A),B=yield p(v,h,A),o=yield e(v,h,A),G=yield s(v,h,o,A),E=yield d(v,h,A),u=yield M(v,h,A),X=yield q(v,h,A);if(z&&w&&j)throw new Error(xa(0x144));const R={'projectId':v,'entityId':h},t={'containerName':X,'types':P,'textIncludes':n,'textNotIncludes':Q,'regexIncludes':k,'regexNotIncludes':b,'lineLimit':I,'startTime':z,'duration':j,'runId':E,'buildId':B,'backupId':o,'restoreId':G,'deploymentId':u,'isBuild':N!==null&&N!==void 0x0?N:![]},f=a?'addonRestore':c?xa(0x1b1):x,Y=Object[xa(0x16e)](Object['assign']({},t),{'endTime':w,'direction':F});if(!V&&K!==xa(0x163)&&K!==xa(0x16b)&&K!=='json')this[xa(0x1c1)](x,h,v,Object[xa(0x16e)](Object[xa(0x16e)]({},Y),A));const H=this[xa(0x1c9)](K,n!==null&&n!==void 0x0?n:k);if(g){const D=yield W[xa(0x142)][xa(0x1d9)](R,t,f);D['on'](xa(0x1c4),H),D['on'](xa(0x170),r=>(0x0,utils_1['error'])(xa(0x19e)+r['message'])),D['on'](xa(0x1b5),()=>console[xa(0x1ce)](xa(0x190))),yield D[xa(0x1c7)]();}else{const r=yield W['logs'][xa(0x1dc)](R,Y,f);if(r[xa(0x170)]){const i=r[xa(0x170)][xa(0x17a)],U=i?xa(0x157)+JSON[xa(0x16c)](i,null,'\x20'):'';(0x0,utils_1[xa(0x170)])(xa(0x149)+r[xa(0x170)]['message']+U);}else H(r[xa(0x187)],r[xa(0x146)]);}}));}}function a10x(){const xJ=['--duration\x20[duration]','Which\x20log\x20types\x20to\x20fetch','details','argParser','value','printResponse','values','default','jobId','--build\x20--buildId\x20[buildId]','64394ONCyiR','Project\x20for\x20logs','parseDateInput','chalk','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','data','../inquirer-helper','serviceId','bold','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','263964Ahwzck','\x20(exit\x20with\x20','\x20of\x20','containerId','Log\x20session\x20ended','next','regexNotIncludes','toISOString','getCurrentServiceName','--restore\x20--restoreId\x20[restoreId]','askForAddonRestore','getSeconds','Backup\x20to\x20get\x20logs\x20from','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','--container\x20--containerId\x20[containerId]','addOption','getCurrentProjectName','224FvOBcF','Error\x20while\x20tailing\x20log\x20lines:\x20','askForJob','--backup\x20--backupId\x20[backupId]','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','__importDefault','\x20with\x20live-tailing','alias','runId','Build\x20to\x20get\x20logs\x20from','Get\x20logs\x20generated\x20after\x20this\x20time,\x20',',\x20restore\x20id\x20','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','choices','backward','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','askForBuild','\x20seconds','--textIncludes\x20<text>','description','addonBackup','getCurrentJobName','--regexIncludes\x20<regex>','defaultDurationSeconds','close','Deployment\x20id,\x20example:\x20my-service-54785f4','askForJobRun','length','build-','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','tsHint','>\x20Container\x20logs','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',',\x20duration:\x20','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','valueOf','printInitInfo','action','service','logs-received','getStandardLogCommand','buildId','start','askForAddonBackup','getFormatter','tail','setSeconds','addonId','backupId','log','5nXsvor','option','\x20for\x20all\x20containers','Option','Get\x20log\x20for\x20the\x20specified\x20','\x20--','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','12321bOXbWx','slice',',\x20to:\x20','logTail','hasNextPage','addon','logRange','askForService','askForProject','\x20to\x20get\x20logs\x20from','logs','done','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','inquirerHelper','pagination','238276HkcaEt','conflicts','Error\x20while\x20fetching\x20log\x20lines:\x20','--project\x20--projectId\x20[projectId]','logsApiClient','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','then','1439388rSCfef','textNotIncludes','\x20for\x20container\x20','warning','defineProperty','job',',\x20backup\x20id\x20','regexIncludes','__awaiter','\x0aDetails:\x20','747792DDcFCu','LogType','Id]','../formatting/console-format-helpers','--endTime\x20<timestamp>','__esModule','customUserAgent','--deployment\x20--deploymentId\x20[deploymentId]','2864340iwxoAs','restoreId','ApiClient','yaml','Restore\x20to\x20get\x20logs\x20from','name','CliLogs','forEach','format','noDefaults','-d,\x20--direction\x20<order>','yml','stringify','--noDefaults','assign','json','error','Number\x20of\x20lines\x20to\x20return.','-t,\x20--types\x20<types...>','7azsxgH','--startTime\x20<timestamp>','apiClient','textIncludes','deploymentId'];a10x=function(){return xJ;};return a10x();}exports[a10C(0x166)]=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11v=a11J;(function(Z,J){const F=a11J,z=Z();while(!![]){try{const P=-parseInt(F(0x202))/0x1+-parseInt(F(0x1f4))/0x2*(parseInt(F(0x203))/0x3)+-parseInt(F(0x1ea))/0x4+parseInt(F(0x201))/0x5*(-parseInt(F(0x1e2))/0x6)+parseInt(F(0x1f3))/0x7+parseInt(F(0x1e7))/0x8*(-parseInt(F(0x1f9))/0x9)+-parseInt(F(0x1fc))/0xa*(-parseInt(F(0x1e3))/0xb);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a11Z,0x85254));function a11Z(){const V=['reduce','red','cyan','chalk','dim','pattern','formatLogLine','containerId','6940017SPDWYI','2WXWjRM','color','log','yellow','bold','2041407mAROKi','greenBright','replace','18230bwYaHY','\x20--\x20','default','defaultLogSyntax','blue','185yMyLZL','691570OSDsEH','2666661boYLLh','45966rzlVuG','14190JOLgen','__esModule','green','toISOString','8xHcRyH','grey','s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','2828000aPkxGQ'];a11Z=function(){return V;};return a11Z();}var __importDefault=this&&this['__importDefault']||function(Z){const C=a11J;return Z&&Z[C(0x1e4)]?Z:{'default':Z};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11v(0x1f1)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require(a11v(0x1ee)));exports[a11v(0x1ff)]=[{'color':a11v(0x1e8),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':'grey','pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':'grey','pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11v(0x1e8),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11v(0x1f8),'pattern':new RegExp(a11v(0x1e9),'i')},{'color':a11v(0x1e5),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11v(0x1e5),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11v(0x200),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11v(0x1fa),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11v(0x1ec),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':a11v(0x1f7),'pattern':/\b(warning|warn)\b/i},{'color':a11v(0x200),'pattern':/[0-9a-f]{64}/i},{'color':a11v(0x200),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(Z,J)=>{const o=a11v,z=chalk_1[o(0x1fe)][o(0x1ef)](Z['ts'][o(0x1e6)]()),P=chalk_1[o(0x1fe)][o(0x1ed)](Z[o(0x1f2)]),B=exports[o(0x1ff)][o(0x1eb)]((s,A)=>{const j=o;return s['replace'](A[j(0x1f0)],n=>A[j(0x1f5)]?chalk_1[j(0x1fe)][A['color']](n):chalk_1[j(0x1fe)][j(0x1e8)](n));},Z[o(0x1f6)]),U=J?B[o(0x1fb)](new RegExp(J,'g'),s=>chalk_1['default'][o(0x1f8)](s)):B;console[o(0x1f6)](z+'\x20'+P+o(0x1fd)+U);};function a11J(Z,J){const z=a11Z();return a11J=function(P,B){P=P-0x1e2;let U=z[P];return U;},a11J(Z,J);}exports[a11v(0x1f1)]=formatLogLine;
1
+ 'use strict';const a11M=a11N;(function(x,N){const d=a11N,c=x();while(!![]){try{const a=-parseInt(d(0xa4))/0x1*(-parseInt(d(0x9a))/0x2)+-parseInt(d(0x93))/0x3+parseInt(d(0x99))/0x4+-parseInt(d(0x97))/0x5*(parseInt(d(0xa2))/0x6)+-parseInt(d(0x91))/0x7*(-parseInt(d(0x8b))/0x8)+parseInt(d(0x9e))/0x9*(parseInt(d(0x87))/0xa)+parseInt(d(0x90))/0xb*(-parseInt(d(0x9b))/0xc);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a11x,0x74bff));var __importDefault=this&&this[a11M(0x8f)]||function(x){return x&&x['__esModule']?x:{'default':x};};Object[a11M(0x9c)](exports,'__esModule',{'value':!![]}),exports[a11M(0x9d)]=exports[a11M(0x98)]=void 0x0;function a11x(){const Z=['598290aTqDVi','color','2377539bulYAP','gray','dim','default','5HxlgfD','defaultLogSyntax','3511676AnMkqS','2NXRjni','12HoEiTx','defineProperty','formatLogLine','18PEpuGN','toISOString','chalk','bold','3894366aygfnk','greenBright','881585rfQPhd','grey','3283640rEjlIt','yellow','replace','green','8hdsoUj','blue','red','log','__importDefault','6401131XsIuTG'];a11x=function(){return Z;};return a11x();}function a11N(x,N){const c=a11x();return a11N=function(a,J){a=a-0x86;let p=c[a];return p;},a11N(x,N);}const chalk_1=__importDefault(require(a11M(0xa0)));exports['defaultLogSyntax']=[{'color':a11M(0x86),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':'grey','pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a11M(0x86),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11M(0x86),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11M(0xa1),'pattern':new RegExp('s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','i')},{'color':a11M(0x8a),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11M(0x8a),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11M(0x8c),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11M(0xa3),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11M(0x8d),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11M(0x94),'pattern':/\b(information|info|debug)\b/i},{'color':a11M(0x88),'pattern':/\b(warning|warn)\b/i},{'color':a11M(0x8c),'pattern':/[0-9a-f]{64}/i},{'color':a11M(0x8c),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(x,N)=>{const A=a11M,c=chalk_1['default'][A(0x95)](x['ts'][A(0x9f)]()),a=chalk_1[A(0x96)]['cyan'](x['containerId']),J=exports[A(0x98)]['reduce']((e,s)=>{const l=A;return e[l(0x89)](s['pattern'],q=>s['color']?chalk_1[l(0x96)][s[l(0x92)]](q):chalk_1['default']['grey'](q));},x[A(0x8e)]),p=N?J[A(0x89)](new RegExp(N,'g'),e=>chalk_1[A(0x96)][A(0xa1)](e)):J;console[A(0x8e)](c+'\x20'+a+'\x20--\x20'+p);};exports[a11M(0x9d)]=formatLogLine;