@northflank/cli 0.9.10 → 0.9.11

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 a4F=a4p;(function(T,p){const c=a4p,y=T();while(!![]){try{const G=parseInt(c(0x168))/0x1*(parseInt(c(0x1a0))/0x2)+parseInt(c(0x189))/0x3+parseInt(c(0x184))/0x4*(parseInt(c(0x1b1))/0x5)+-parseInt(c(0x1b5))/0x6*(-parseInt(c(0x195))/0x7)+parseInt(c(0x1b0))/0x8*(parseInt(c(0x193))/0x9)+-parseInt(c(0x14e))/0xa*(-parseInt(c(0x14f))/0xb)+parseInt(c(0x17e))/0xc*(-parseInt(c(0x1b4))/0xd);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a4T,0x80df0));var __awaiter=this&&this[a4F(0x154)]||function(T,p,y,G){function q(S){return S instanceof y?S:new y(function(K){K(S);});}return new(y||(y=Promise))(function(S,K){const V=a4p;function s(i){const Z=a4p;try{M(G[Z(0x19f)](i));}catch(m){K(m);}}function N(i){try{M(G['throw'](i));}catch(m){K(m);}}function M(i){const j=a4p;i[j(0x1a9)]?S(i[j(0x19e)]):q(i[j(0x19e)])['then'](s,N);}M((G=G[V(0x196)](T,p||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(T){const h=a4F;return T&&T[h(0x16f)]?T:{'default':T};};Object[a4F(0x186)](exports,a4F(0x16f),{'value':!![]}),exports[a4F(0x156)]=void 0x0;function a4p(T,p){const y=a4T();return a4p=function(G,q){G=G-0x14c;let S=y[G];return S;},a4p(T,p);}function a4T(){const W=['warning','Command\x20completed\x20successfully,\x20exit\x20code:\x20','shell\x20command\x20','pipe','--shell-cmd\x20[SHELL-CMD]','84urbUac','stdIn','defineProperty','description','ApiClient','985953qYSMNZ','stdout','(exit\x20with\x20two\x20quick\x20','\x20command\x20exec:\x20','Run\x20command\x20with\x20this\x20group','Unknown','apiClient','setRawMode','--user\x20[USER]','status','36TOmCrG','charAt','974687LsLqXF','apply','slice','alias','columns','error','with\x20shell\x20session','handleShellSession','Run\x20command\x20with\x20shell\x20(e.g.\x20bash,sh).\x20If\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','value','next','4JSoezu','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','\x20in\x20project\x20','without\x20shell','greenBright','getCurrentServiceName','resize','execJobSession','getTerminalSize','done','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','service','Command\x20exec\x20for\x20the\x20specified\x20','--noDefaults','success','action','209584knKKCl','28505WCeXlj','stdin','emitKeypressEvents','26povCoR','24LeOxqK','message','Run\x20command\x20with\x20this\x20user','30zXlmTX','1702756hGRVaP','\x20--','stderr','command-exec','addCommand','__awaiter','option','CliExec','exitCode',',\x20details:\x20','job','Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise','../utils','assertContextExisting','\x20to\x20exec\x20into','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','../inquirer-helper','resizeTerminal','\x27Ctrl+D\x27','join','exec','--project\x20--projectId\x20[NAME]','rows','--container\x20--containerId\x20[NAME]','with\x20command\x20\x27','88104Vmiecm','log','getCurrentProjectName','askForProject','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','default','Success','__esModule','name','toUpperCase','execStartLog','@northflank/js-client','isTTY','bold','Id\x20[NAME]','execServiceSession','with\x20user:','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','none','execCmd','exit','readline','7337208AZdtSe'];a4T=function(){return W;};return a4T();}const js_client_1=require(a4F(0x173)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4F(0x15b)),inquirer_helper_1=require(a4F(0x15f));class CliExec{constructor(T){const v=a4F;this['getStandardExecCommand']=q=>(0x0,utils_1['getCommand'])(!![])[v(0x170)](q)[v(0x187)](v(0x1ac)+q)[v(0x155)](v(0x164),'Project\x20for\x20exec')[v(0x155)]('--'+q+v(0x150)+q+v(0x176),q[v(0x194)](0x0)[v(0x171)]()+q[v(0x197)](0x1)+v(0x15d))[v(0x155)](v(0x166),v(0x15e))[v(0x155)](v(0x183),v(0x19d))[v(0x155)](v(0x191),v(0x14d))['option']('--group\x20[GROUP]',v(0x18d))[v(0x155)](v(0x1ad),v(0x179),![])[v(0x155)]('--cmd\x20--command\x20[COMMAND]',v(0x15a)),this['getTerminalSize']=()=>({'columns':process[v(0x18a)][v(0x199)],'rows':process[v(0x18a)][v(0x165)]}),this[v(0x172)]=(q,S,K,s,N,M,i,m)=>{const t=v;if(m===!![])return;const R=s===t(0x17a),u=R?t(0x1a3):s===undefined?t(0x19b):t(0x181)+chalk_1[t(0x16d)][t(0x1a4)](s),b=N!==undefined?t(0x178)+N:'',B=M!==undefined?'with\x20group:'+M:'',o=i!==undefined?t(0x167)+chalk_1[t(0x16d)][t(0x1a4)](i)+'\x27':'',f=[o,u,b,B]['filter'](Q=>Q!=='')[t(0x162)]('\x20'),d=t(0x18b)+chalk_1[t(0x16d)]['bold'](t(0x161))+')';console[t(0x169)]('Exec\x20'+q+'\x20'+chalk_1['default'][t(0x175)](S)+t(0x1a2)+chalk_1[t(0x16d)][t(0x175)](K)+'\x20'+f+'\x20'+d);},this[v(0x19c)]=(q,S,K=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const g=v;var s,N;let M=![];try{if(process[g(0x1b2)][g(0x174)]){const m=require(g(0x17d));m[g(0x1b3)](process[g(0x1b2)]),process['stdin']['setRawMode'](!![]),process[g(0x18a)]['on'](g(0x1a6),()=>{const I=g;q[I(0x160)](this[I(0x1a8)]());}),process[g(0x1b2)]['on']('keypress',(R,u)=>{const r=g;u['sequence']==='\x04'&&(M?(process['stdin'][r(0x190)](![]),(0x0,utils_1[r(0x17f)])(r(0x16c)),process[r(0x17c)]()):(M=!![],setTimeout(()=>M=![],0x190)));});}process[g(0x1b2)][g(0x182)](q[g(0x185)]),q['stdErr'][g(0x182)](process[g(0x151)]),q['stdOut'][g(0x182)](process['stdout']),q['on'](g(0x19a),R=>{const Y=g;var u;(0x0,utils_1['error'])('Error\x20occured\x20during\x20'+S+Y(0x18c)+((u=R[Y(0x14c)])!==null&&u!==void 0x0?u:R)),process[Y(0x1b2)][Y(0x174)]&&process[Y(0x1b2)]['setRawMode'](![]),process[Y(0x17c)](-0x1);});const i=yield q['waitForCommandResult']();if(K!==!![]){const R=(s=i===null||i===void 0x0?void 0x0:i[g(0x192)])!==null&&s!==void 0x0?s:g(0x18e),u=(N=i===null||i===void 0x0?void 0x0:i[g(0x157)])!==null&&N!==void 0x0?N:-0x1,b=(i===null||i===void 0x0?void 0x0:i[g(0x14c)])?g(0x158)+i['message']:'';R===g(0x16e)?(0x0,utils_1[g(0x1ae)])(g(0x180)+u):(0x0,utils_1['warning'])(g(0x1a1)+R+',\x20exit\x20code:\x20'+u+b);}return i;}finally{process[g(0x1b2)][g(0x174)]&&process[g(0x1b2)]['setRawMode'](![]);}}),this[v(0x18f)]=new js_client_1[(v(0x188))](T,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']});const p=new inquirer_helper_1['InquirerHelper'](this[v(0x18f)]);this[v(0x17b)]=(0x0,utils_1['getCommand'])()[v(0x170)](v(0x152))[v(0x198)](v(0x163))[v(0x187)](v(0x1aa));const y=this['getStandardExecCommand'](v(0x1ab))[v(0x1af)](q=>__awaiter(this,void 0x0,void 0x0,function*(){const z=v,{noDefaults:S,projectId:K,serviceId:s,containerId:N,shellCmd:M,user:i,group:m,command:R,quiet:u}=q;(0x0,utils_1['assertContextExisting'])(this[z(0x18f)]);try{const b=S?undefined:T[z(0x16a)](),B=K||b||(yield p[z(0x16b)]()),o=S?undefined:T[z(0x1a5)](),f=s||o||(yield p['askForService'](B)()),d=M!==null&&M!==void 0x0?M:R!==undefined?z(0x17a):undefined;this[z(0x172)]('service',f,B,d,i,m,R,u);const Q=process['stdout'][z(0x199)],U=process[z(0x18a)][z(0x165)],D={'projectId':B,'serviceId':f},w=yield this[z(0x18f)][z(0x163)][z(0x177)](D,{'containerName':N,'command':R,'shell':d,'user':i,'group':m,'ttyColumns':Q,'ttyRows':U});yield this['handleShellSession'](w,z(0x1ab),u);}catch(A){(0x0,utils_1[z(0x19a)])(''+A[z(0x14c)]);}finally{process[z(0x17c)]();}})),G=this['getStandardExecCommand']('job')[v(0x1af)](q=>__awaiter(this,void 0x0,void 0x0,function*(){const x=v,{projectId:S,jobId:K,containerId:s,noDefaults:N,shellCmd:M,user:i,group:m,command:R,quiet:u}=q;(0x0,utils_1[x(0x15c)])(this[x(0x18f)]);try{const b=N?undefined:T['getCurrentProjectName'](),B=S||b||(yield p[x(0x16b)]()),o=K||(yield p['askForJob'](B)());this[x(0x172)](x(0x159),o,B,M,u);const {rows:f,columns:d}=this[x(0x1a8)](),Q={'projectId':B,'jobId':o},U=yield this['apiClient'][x(0x163)][x(0x1a7)](Q,{'containerName':s,'command':R,'shell':M,'user':i,'group':m,'ttyColumns':d,'ttyRows':f});yield this[x(0x19c)](U,x(0x159),u);}catch(D){(0x0,utils_1[x(0x19a)])(''+D[x(0x14c)]);}finally{process[x(0x17c)]();}}));this[v(0x17b)][v(0x153)](y),this[v(0x17b)][v(0x153)](G);}}exports[a4F(0x156)]=CliExec;
1
+ 'use strict';const a4e=a4h;function a4h(w,h){const G=a4w();return a4h=function(P,v){P=P-0x1f0;let O=G[P];return O;},a4h(w,h);}function a4w(){const j=['Run\x20command\x20with\x20this\x20group','1466YkkyOH','517ZImGpy','customUserAgent','setRawMode','log','27qGKdLZ','Id\x20[NAME]','stdin','filter','getCurrentProjectName','askForService','with\x20shell\x20session','../utils','job','option','isTTY','apply','\x20--','rows','stdOut','description','without\x20shell','Unknown','askForJob','\x27Ctrl+D\x27','alias','charAt','3023640btisXI','handleShellSession','addCommand','pipe','1004AOXNnJ','Command\x20completed\x20successfully,\x20exit\x20code:\x20','CliExec','name','ApiClient','greenBright','bold','warning','4395198DAKIJb',',\x20exit\x20code:\x20','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','exit','__importDefault','execStartLog','error','10VTGgdj','--user\x20[USER]','7rLziWB','execJobSession','message','slice','getStandardExecCommand','Run\x20command\x20with\x20shell\x20(e.g.\x20bash,sh).\x20If\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','exec','none','readline','emitKeypressEvents','310292YhsTma','../inquirer-helper','stdout','\x20in\x20project\x20','shell\x20command\x20','join',',\x20details:\x20','stdIn','execServiceSession','resize','getCommand','then','action','getCurrentServiceName','default','InquirerHelper','assertContextExisting','stdErr','--shell-cmd\x20[SHELL-CMD]','729720pYYdlT','Project\x20for\x20exec','columns','service','Success','--cmd\x20--command\x20[COMMAND]','next','waitForCommandResult','sequence','getTerminalSize','execCmd','__awaiter','--container\x20--containerId\x20[NAME]','__esModule','with\x20command\x20\x27','chalk','command-exec','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','392052zzKlVh','success','apiClient','defineProperty','2096772LtDTfG','askForProject','resizeTerminal'];a4w=function(){return j;};return a4w();}(function(w,h){const f=a4h,G=w();while(!![]){try{const P=parseInt(f(0x206))/0x1*(-parseInt(f(0x24e))/0x2)+-parseInt(f(0x24a))/0x3+parseInt(f(0x221))/0x4*(parseInt(f(0x215))/0x5)+-parseInt(f(0x20e))/0x6*(-parseInt(f(0x217))/0x7)+parseInt(f(0x234))/0x8*(-parseInt(f(0x253))/0x9)+-parseInt(f(0x202))/0xa+parseInt(f(0x24f))/0xb*(parseInt(f(0x246))/0xc);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a4w,0x64abf));var __awaiter=this&&this[a4e(0x23f)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const t=a4h;function l(A){const i=a4h;try{U(v[i(0x23a)](A));}catch(D){a(D);}}function B(A){try{U(v['throw'](A));}catch(D){a(D);}}function U(A){const u=a4h;A['done']?Z(A['value']):O(A['value'])[u(0x22c)](l,B);}U((v=v[t(0x1f7)](w,h||[]))[t(0x23a)]());});},__importDefault=this&&this[a4e(0x212)]||function(w){const S=a4e;return w&&w[S(0x241)]?w:{'default':w};};Object[a4e(0x249)](exports,a4e(0x241),{'value':!![]}),exports[a4e(0x208)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a4e(0x243))),utils_1=require(a4e(0x1f3)),inquirer_helper_1=require(a4e(0x222));class CliExec{constructor(w){const V=a4e;this[V(0x21b)]=v=>(0x0,utils_1[V(0x22b)])(!![])['name'](v)[V(0x1fb)]('Command\x20exec\x20for\x20the\x20specified\x20'+v)['option']('--project\x20--projectId\x20[NAME]',V(0x235))[V(0x1f5)]('--'+v+V(0x1f8)+v+V(0x254),v[V(0x201)](0x0)['toUpperCase']()+v[V(0x21a)](0x1)+'\x20to\x20exec\x20into')['option'](V(0x240),V(0x210))[V(0x1f5)](V(0x233),V(0x21c))[V(0x1f5)](V(0x216),'Run\x20command\x20with\x20this\x20user')[V(0x1f5)]('--group\x20[GROUP]',V(0x24d))[V(0x1f5)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[V(0x1f5)](V(0x239),'Command\x20to\x20execute,\x20if\x20--shell\x20option\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell,\x20otherwise'),this[V(0x23d)]=()=>({'columns':process[V(0x223)]['columns'],'rows':process['stdout'][V(0x1f9)]}),this[V(0x213)]=(v,O,Z,a,l,B,U,A)=>{const C=V;if(A===!![])return;const D=a===C(0x21e),p=D?C(0x1fc):a===undefined?C(0x1f2):C(0x225)+chalk_1['default'][C(0x20b)](a),s=l!==undefined?'with\x20user:'+l:'',W=B!==undefined?'with\x20group:'+B:'',X=U!==undefined?C(0x242)+chalk_1[C(0x22f)][C(0x20b)](U)+'\x27':'',T=[X,p,s,W][C(0x256)](k=>k!=='')[C(0x226)]('\x20'),I='(exit\x20with\x20two\x20quick\x20'+chalk_1['default']['bold'](C(0x1ff))+')';console[C(0x252)]('Exec\x20'+v+'\x20'+chalk_1['default'][C(0x20c)](O)+C(0x224)+chalk_1[C(0x22f)][C(0x20c)](Z)+'\x20'+T+'\x20'+I);},this[V(0x203)]=(v,O,Z=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const M=V;var a,l;let B=![];try{if(process[M(0x255)][M(0x1f6)]){const A=require(M(0x21f));A[M(0x220)](process[M(0x255)]),process[M(0x255)]['setRawMode'](!![]),process[M(0x223)]['on'](M(0x22a),()=>{const Q=M;v[Q(0x24c)](this['getTerminalSize']());}),process[M(0x255)]['on']('keypress',(D,p)=>{const H=M;p[H(0x23c)]==='\x04'&&(B?(process[H(0x255)][H(0x251)](![]),(0x0,utils_1[H(0x20d)])('Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.'),process['exit']()):(B=!![],setTimeout(()=>B=![],0x190)));});}process[M(0x255)]['pipe'](v[M(0x228)]),v[M(0x232)][M(0x205)](process['stderr']),v[M(0x1fa)][M(0x205)](process[M(0x223)]),v['on'](M(0x214),D=>{const n=M;var p;(0x0,utils_1[n(0x214)])('Error\x20occured\x20during\x20'+O+'\x20command\x20exec:\x20'+((p=D['message'])!==null&&p!==void 0x0?p:D)),process[n(0x255)][n(0x1f6)]&&process[n(0x255)][n(0x251)](![]),process[n(0x211)](-0x1);});const U=yield v[M(0x23b)]();if(Z!==!![]){const D=(a=U===null||U===void 0x0?void 0x0:U['status'])!==null&&a!==void 0x0?a:M(0x1fd),p=(l=U===null||U===void 0x0?void 0x0:U['exitCode'])!==null&&l!==void 0x0?l:-0x1,s=(U===null||U===void 0x0?void 0x0:U[M(0x219)])?M(0x227)+U[M(0x219)]:'';D===M(0x238)?(0x0,utils_1[M(0x247)])(M(0x207)+p):(0x0,utils_1[M(0x20d)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+D+M(0x20f)+p+s);}return U;}finally{process['stdin']['isTTY']&&process['stdin'][M(0x251)](![]);}}),this['apiClient']=new js_client_1[(V(0x20a))](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[V(0x250)]});const h=new inquirer_helper_1[(V(0x230))](this[V(0x248)]);this[V(0x23e)]=(0x0,utils_1[V(0x22b)])()[V(0x209)](V(0x244))[V(0x200)](V(0x21d))[V(0x1fb)](V(0x245));const G=this[V(0x21b)](V(0x237))[V(0x22d)](v=>__awaiter(this,void 0x0,void 0x0,function*(){const c=V,{noDefaults:O,projectId:Z,serviceId:a,containerId:l,shellCmd:B,user:U,group:A,command:D,quiet:p}=v;(0x0,utils_1[c(0x231)])(this['apiClient']);try{const s=O?undefined:w[c(0x1f0)](),W=Z||s||(yield h[c(0x24b)]()),X=O?undefined:w[c(0x22e)](),T=a||X||(yield h[c(0x1f1)](W)()),I=B!==null&&B!==void 0x0?B:D!==undefined?c(0x21e):undefined;this[c(0x213)]('service',T,W,I,U,A,D,p);const k=process[c(0x223)][c(0x236)],Y=process['stdout']['rows'],x={'projectId':W,'serviceId':T},b=yield this[c(0x248)]['exec'][c(0x229)](x,{'containerName':l,'command':D,'shell':I,'user':U,'group':A,'ttyColumns':k,'ttyRows':Y});yield this[c(0x203)](b,c(0x237),p);}catch(q){(0x0,utils_1[c(0x214)])(''+q['message']);}finally{process[c(0x211)]();}})),P=this['getStandardExecCommand'](V(0x1f4))['action'](v=>__awaiter(this,void 0x0,void 0x0,function*(){const r=V,{projectId:O,jobId:Z,containerId:a,noDefaults:l,shellCmd:B,user:U,group:A,command:D,quiet:p}=v;(0x0,utils_1[r(0x231)])(this['apiClient']);try{const s=l?undefined:w[r(0x1f0)](),W=O||s||(yield h[r(0x24b)]()),X=Z||(yield h[r(0x1fe)](W)());this[r(0x213)](r(0x1f4),X,W,B,p);const {rows:T,columns:I}=this['getTerminalSize'](),k={'projectId':W,'jobId':X},Y=yield this['apiClient'][r(0x21d)][r(0x218)](k,{'containerName':a,'command':D,'shell':B,'user':U,'group':A,'ttyColumns':I,'ttyRows':T});yield this[r(0x203)](Y,'job',p);}catch(x){(0x0,utils_1[r(0x214)])(''+x[r(0x219)]);}finally{process[r(0x211)]();}}));this[V(0x23e)]['addCommand'](G),this[V(0x23e)][V(0x204)](P);}}exports['CliExec']=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5w=a5p;function a5p(T,p){const y=a5T();return a5p=function(G,q){G=G-0x14b;let S=y[G];return S;},a5p(T,p);}function a5T(){const t=['chalk','getCommandOverview','green','9198EFkyNB','574920zkzGdO','every','2895564uLCUcR','../utils','--verbose','133995GJdpuK','length','command-overview','253624edWbWs','__esModule','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommand','value','1354212bKJxjf','forEach','apply','description','slice','map','keys','opts','2998400PnqRiU','__awaiter','next','620AbcAcl','2gqwFdN','join','throw','commands','name','then','52AdvKPI','log'];a5T=function(){return t;};return a5T();}(function(T,p){const D=a5p,y=T();while(!![]){try{const G=parseInt(D(0x166))/0x1+parseInt(D(0x152))/0x2*(parseInt(D(0x16b))/0x3)+parseInt(D(0x158))/0x4*(parseInt(D(0x163))/0x5)+-parseInt(D(0x15e))/0x6+-parseInt(D(0x160))/0x7+-parseInt(D(0x14e))/0x8+parseInt(D(0x15d))/0x9*(parseInt(D(0x151))/0xa);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a5T,0x38c3b));var __awaiter=this&&this[a5w(0x14f)]||function(T,p,y,G){function q(S){return S instanceof y?S:new y(function(K){K(S);});}return new(y||(y=Promise))(function(S,K){const Z=a5p;function s(i){const A=a5p;try{M(G[A(0x150)](i));}catch(m){K(m);}}function N(i){const c=a5p;try{M(G[c(0x154)](i));}catch(m){K(m);}}function M(i){const F=a5p;i['done']?S(i[F(0x16a)]):q(i[F(0x16a)])[F(0x157)](s,N);}M((G=G[Z(0x16d)](T,p||[]))[Z(0x150)]());});},__importDefault=this&&this['__importDefault']||function(T){const j=a5w;return T&&T[j(0x167)]?T:{'default':T};};Object['defineProperty'](exports,a5w(0x167),{'value':!![]}),exports[a5w(0x15b)]=void 0x0;const chalk_1=__importDefault(require(a5w(0x15a))),utils_1=require(a5w(0x161));function getCommandOverview(T){const V=a5w;return(0x0,utils_1[V(0x169)])()[V(0x156)](V(0x165))['description'](V(0x168))['option'](V(0x162),'Print\x20command\x20descriptions')['action'](p=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:y}=p;function G(q,S){const h=a5p;var K;const s=(d,Q=!![])=>Q?chalk_1['default']['bold'][h(0x15c)](d[h(0x156)]()):d['name'](),N=S[h(0x164)]===0x0,M=q[h(0x155)];let i='';const m=M['length']===0x0,R=m||((K=Object[h(0x14c)](q===null||q===void 0x0?void 0x0:q[h(0x14d)]()))===null||K===void 0x0?void 0x0:K[h(0x164)])>0x0;!N&&(i=M&&!m?'┬\x20':'─\x20');const u=y&&R&&q[h(0x16e)]()?':\x20'+q['description']():'';console[h(0x159)](''+S+i+s(q,R)+u);let b=S;if(!N){const d=S['slice'](-0x2)==='└─';b=S[h(0x16f)](0x0,-0x2)+(d?'\x20\x20':'│\x20');}const B=b+'├─',o=b+'└─',f=M[h(0x15f)](Q=>Q['commands']['length']===0x0);f&&!m&&!y?console[h(0x159)](o+'\x20'+M[h(0x14b)](Q=>s(Q))[h(0x153)](',\x20')):M[h(0x16c)]((Q,U)=>{const v=h;G(Q,M[v(0x164)]-0x1===U?o:B);});}G(T,'');}));}exports[a5w(0x15b)]=getCommandOverview;
1
+ 'use strict';const a5b=a5h;(function(w,h){const x=a5h,G=w();while(!![]){try{const P=-parseInt(x(0x1b5))/0x1*(-parseInt(x(0x1c9))/0x2)+parseInt(x(0x1ad))/0x3*(parseInt(x(0x1c4))/0x4)+-parseInt(x(0x1b8))/0x5+-parseInt(x(0x1a9))/0x6*(-parseInt(x(0x1ce))/0x7)+-parseInt(x(0x1c0))/0x8*(-parseInt(x(0x1bf))/0x9)+-parseInt(x(0x1ba))/0xa+parseInt(x(0x1c6))/0xb;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a5w,0xbd9c0));function a5h(w,h){const G=a5w();return a5h=function(P,v){P=P-0x1a9;let O=G[P];return O;},a5h(w,h);}function a5w(){const S=['defineProperty','342xQhqrX','63088DpgcUK','map','forEach','command-overview','4WwvhxR','../utils','2495031hDmrph','next','name','18FybXPZ','apply','__esModule','slice','value','379547FntOns','default','60iXyFcI','__importDefault','opts','length','3565659wXnDUa','getCommand','chalk','bold','done','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommandOverview','log','88997GdptRj','then','description','4492785jdmDLi','keys','13830280pdhOGT','option','__awaiter','throw'];a5w=function(){return S;};return a5w();}var __awaiter=this&&this[a5b(0x1bc)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const e=a5h;function l(A){try{U(v['next'](A));}catch(D){a(D);}}function B(A){const q=a5h;try{U(v[q(0x1bd)](A));}catch(D){a(D);}}function U(A){const f=a5h;A[f(0x1b1)]?Z(A[f(0x1cd)]):O(A[f(0x1cd)])[f(0x1b6)](l,B);}U((v=v[e(0x1ca)](w,h||[]))[e(0x1c7)]());});},__importDefault=this&&this[a5b(0x1aa)]||function(w){const i=a5b;return w&&w[i(0x1cb)]?w:{'default':w};};Object[a5b(0x1be)](exports,'__esModule',{'value':!![]}),exports['getCommandOverview']=void 0x0;const chalk_1=__importDefault(require(a5b(0x1af))),utils_1=require(a5b(0x1c5));function getCommandOverview(w){const u=a5b;return(0x0,utils_1[u(0x1ae)])()[u(0x1c8)](u(0x1c3))[u(0x1b7)](u(0x1b2))[u(0x1bb)]('--verbose','Print\x20command\x20descriptions')['action'](h=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:G}=h;function P(v,O){const t=a5h;var Z;const a=(I,k=!![])=>k?chalk_1[t(0x1cf)][t(0x1b0)]['green'](I[t(0x1c8)]()):I[t(0x1c8)](),l=O['length']===0x0,B=v['commands'];let U='';const A=B[t(0x1ac)]===0x0,D=A||((Z=Object[t(0x1b9)](v===null||v===void 0x0?void 0x0:v[t(0x1ab)]()))===null||Z===void 0x0?void 0x0:Z[t(0x1ac)])>0x0;!l&&(U=B&&!A?'┬\x20':'─\x20');const p=G&&D&&v[t(0x1b7)]()?':\x20'+v[t(0x1b7)]():'';console[t(0x1b4)](''+O+U+a(v,D)+p);let s=O;if(!l){const I=O[t(0x1cc)](-0x2)==='└─';s=O[t(0x1cc)](0x0,-0x2)+(I?'\x20\x20':'│\x20');}const W=s+'├─',X=s+'└─',T=B['every'](k=>k['commands']['length']===0x0);T&&!A&&!G?console[t(0x1b4)](X+'\x20'+B[t(0x1c1)](k=>a(k))['join'](',\x20')):B[t(0x1c2)]((k,Y)=>{P(k,B['length']-0x1===Y?X:W);});}P(w,'');}));}exports[a5b(0x1b3)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a6o=a6p;function a6T(){const t=['json','__setModuleDefault','getSeconds','getFullYear','34220jXVNhH','disabled','__importDefault','forEach','327EyVFkd','printAsTable','get','__importStar','274435MAzADG','length','124LzGull','1152568sIWzrD','671074ldFEGP','204mZGwKl','util','isObjectLike','\x20found','getMonth','yaml','call','toLowerCase','keys','handleFormattedOutput','lodash','stringify','isUndefined','defineProperty','handleYamlOutput','sort','includes','printResponse','js-yaml','columnify','writable','bold','configurable','default','safeDump','clone','isBoolean','hasOwnProperty','set','getOwnPropertyDescriptor','36730EqgLsk','handleJsonOutput','getDate','4466565MuYiFC','create','prototype','consoleFormat','yml','toString','__esModule','isArrayLike','replace','log','inspect','isFinite'];a6T=function(){return t;};return a6T();}(function(T,p){const b=a6p,y=T();while(!![]){try{const G=-parseInt(b(0x9d))/0x1+-parseInt(b(0xbc))/0x2+-parseInt(b(0xb4))/0x3*(-parseInt(b(0xba))/0x4)+parseInt(b(0xb0))/0x5*(parseInt(b(0xbd))/0x6)+-parseInt(b(0xb8))/0x7+-parseInt(b(0xbb))/0x8+parseInt(b(0xa0))/0x9;if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a6T,0x2b2b1));function a6p(T,p){const y=a6T();return a6p=function(G,q){G=G-0x9b;let S=y[G];return S;},a6p(T,p);}var __createBinding=this&&this['__createBinding']||(Object['create']?function(T,p,y,G){const B=a6p;if(G===undefined)G=y;var q=Object[B(0x9c)](p,y);(!q||(B(0xb6)in q?!p[B(0xa6)]:q[B(0xd1)]||q[B(0xd3)]))&&(q={'enumerable':!![],'get':function(){return p[y];}}),Object['defineProperty'](T,G,q);}:function(T,p,y,G){if(G===undefined)G=y;T[G]=p[y];}),__setModuleDefault=this&&this[a6o(0xad)]||(Object[a6o(0xa1)]?function(T,p){const f=a6o;Object[f(0xca)](T,f(0xd4),{'enumerable':!![],'value':p});}:function(T,p){const d=a6o;T[d(0xd4)]=p;}),__importStar=this&&this[a6o(0xb7)]||function(T){const Q=a6o;if(T&&T[Q(0xa6)])return T;var p={};if(T!=null){for(var y in T)if(y!==Q(0xd4)&&Object[Q(0xa2)][Q(0xd8)][Q(0xc3)](T,y))__createBinding(p,T,y);}return __setModuleDefault(p,T),p;},__importDefault=this&&this[a6o(0xb2)]||function(T){return T&&T['__esModule']?T:{'default':T};};Object[a6o(0xca)](exports,a6o(0xa6),{'value':!![]}),exports[a6o(0xce)]=exports['handleFormattedOutput']=exports[a6o(0xcb)]=exports[a6o(0x9e)]=exports['consoleFormat']=exports[a6o(0xb5)]=void 0x0;const chalk_1=__importDefault(require('chalk')),_=__importStar(require(a6o(0xc7))),util=__importStar(require(a6o(0xbe))),yaml=require(a6o(0xcf)),columnify=require(a6o(0xd0));function printAsTable(T,p,y,G=![],q=0x0){const U=a6o;!G&&console[U(0xa9)](''+chalk_1['default'][U(0xd2)](p));function S(s){const D=U;return s===D(0xb1)?s:s[D(0xa8)]('disabled','');}function K(s,N){const A=U;function M(m){const w=a6p,R=new Date(m);return R[w(0x9f)]()+'/'+R[w(0xc1)]()+'/'+R[w(0xaf)]()+'\x0a'+R['getHours']()+':'+R['getMinutes']()+':'+R[w(0xae)]();}const i=['createdat','updatedat'];if(i[A(0xcd)](N[A(0xc4)]())&&_[A(0xab)](s)&&s[A(0xa5)]()[A(0xb9)]===0xd)return M(Number(s));if(_[A(0xd7)](s)){if(N!==A(0xb1)&&N[A(0xcd)](A(0xb1)))return s?'x':'✔';return s?'✔':'x';}if(_[A(0xbf)](s))return util[A(0xaa)](s,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return s;}if(_[U(0xa7)](T)){T[U(0xb9)]===0x0&&console[U(0xa9)]('No\x20'+p[U(0xc4)]()+U(0xc0));const s=T['map']((i,m)=>{const c=U,R={'i':m+q};return Object['keys'](i)[c(0xb3)](u=>{const F=c;(_[F(0xc9)](y)||y[F(0xcd)](u['toLowerCase']()))&&_[F(0x9b)](R,S(u),K(i[u],u));}),R;}),N=_[U(0xd6)](Object[U(0xc5)]((s===null||s===void 0x0?void 0x0:s[0x0])||[]))[U(0xcc)]((i,m)=>{const R=u=>u!=='i'?u!=='internalId'?0x0:0x1:0x2;return R(m)-R(i);}),M={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!G,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':N};console[U(0xa9)](columnify(s,M));}else console[U(0xa9)](T);}exports[a6o(0xb5)]=printAsTable;function consoleFormat(T){const Z=a6o;if(!_[Z(0xbf)](T))return T===null||T===void 0x0?void 0x0:T[Z(0xa5)]();return util['inspect'](T,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6o(0xa3)]=consoleFormat;const handleJsonOutput=(T,p)=>{const j=a6o,y=T===j(0xac);if(y)console['log'](JSON[j(0xc8)](p,null,'\x20'));};exports[a6o(0x9e)]=handleJsonOutput;const handleYamlOutput=(T,p)=>{const V=a6o,y=T===V(0xc2)||T===V(0xa4);if(y)console[V(0xa9)](yaml[V(0xd5)](p));};exports[a6o(0xcb)]=handleYamlOutput;const handleFormattedOutput=(T,p)=>{const h=a6o,y=T==='format';if(y)console[h(0xa9)](consoleFormat(p));};exports[a6o(0xc6)]=handleFormattedOutput;const printResponse=(T,p)=>{const v=a6o;(0x0,exports[v(0x9e)])(T,p),(0x0,exports[v(0xcb)])(T,p),(0x0,exports[v(0xc6)])(T,p);};exports[a6o(0xce)]=printResponse;
1
+ 'use strict';const a6W=a6h;(function(w,h){const s=a6h,G=w();while(!![]){try{const P=-parseInt(s(0x82))/0x1*(parseInt(s(0xab))/0x2)+parseInt(s(0xbe))/0x3+-parseInt(s(0xaf))/0x4*(parseInt(s(0xa9))/0x5)+-parseInt(s(0x7f))/0x6+parseInt(s(0xbb))/0x7*(-parseInt(s(0xbd))/0x8)+-parseInt(s(0xb9))/0x9*(parseInt(s(0x89))/0xa)+-parseInt(s(0xbc))/0xb*(-parseInt(s(0x9e))/0xc);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a6w,0xee88e));var __createBinding=this&&this[a6W(0xa2)]||(Object[a6W(0x9d)]?function(w,h,G,P){const X=a6W;if(P===undefined)P=G;var v=Object[X(0xb3)](h,G);(!v||('get'in v?!h[X(0xb7)]:v[X(0x7e)]||v[X(0x9a)]))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object[X(0xb5)](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6W(0x9d)]?function(w,h){const T=a6W;Object['defineProperty'](w,T(0x96),{'enumerable':!![],'value':h});}:function(w,h){const I=a6W;w[I(0x96)]=h;}),__importStar=this&&this[a6W(0xae)]||function(w){const k=a6W;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!=='default'&&Object[k(0xb8)]['hasOwnProperty'][k(0x94)](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__importDefault=this&&this[a6W(0x84)]||function(w){const Y=a6W;return w&&w[Y(0xb7)]?w:{'default':w};};Object[a6W(0xb5)](exports,a6W(0xb7),{'value':!![]}),exports[a6W(0xa7)]=exports['handleFormattedOutput']=exports[a6W(0xaa)]=exports['handleJsonOutput']=exports['consoleFormat']=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a6W(0x8b))),_=__importStar(require(a6W(0xb6))),util=__importStar(require('util')),yaml=require('js-yaml'),columnify=require(a6W(0xa8));function printAsTable(w,h,G,P=![],v=0x0){const x=a6W;!P&&console['log'](''+chalk_1[x(0x96)][x(0xa4)](h));function O(a){const b=x;return a===b(0x86)?a:a['replace'](b(0x86),'');}function Z(a,l){const f=x;function B(A){const q=a6h,D=new Date(A);return D[q(0x92)]()+'/'+D[q(0xb0)]()+'/'+D[q(0x8e)]()+'\x0a'+D[q(0x8d)]()+':'+D[q(0x90)]()+':'+D[q(0x8a)]();}const U=['createdat',f(0x9f)];if(U[f(0x8c)](l[f(0x93)]())&&_[f(0x80)](a)&&a[f(0x97)]()[f(0x91)]===0xd)return B(Number(a));if(_['isBoolean'](a)){if(l!=='disabled'&&l['includes'](f(0x86)))return a?'x':'✔';return a?'✔':'x';}if(_['isObjectLike'](a))return util[f(0xba)](a,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return a;}if(_[x(0xb1)](w)){w['length']===0x0&&console[x(0x95)](x(0xb4)+h[x(0x93)]()+x(0x9c));const a=w['map']((U,A)=>{const e=x,D={'i':A+v};return Object[e(0x87)](U)['forEach'](p=>{const i=e;(_[i(0x98)](G)||G['includes'](p[i(0x93)]()))&&_[i(0xa3)](D,O(p),Z(U[p],p));}),D;}),l=_[x(0x7c)](Object['keys']((a===null||a===void 0x0?void 0x0:a[0x0])||[]))[x(0xad)]((U,A)=>{const u=x,D=p=>p!=='i'?p!==u(0xac)?0x0:0x1:0x2;return D(A)-D(U);}),B={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!P,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':l};console[x(0x95)](columnify(a,B));}else console[x(0x95)](w);}exports[a6W(0x9b)]=printAsTable;function a6w(){const Q=['toString','isUndefined','yaml','configurable','printAsTable','\x20found','create','2234472gFNQTq','updatedat','yml','The\x20request\x20was\x20completed\x20successfully','__createBinding','set','bold','isEmpty','format','printResponse','columnify','5qSuUsh','handleYamlOutput','62YyqnqK','internalId','sort','__importStar','245524OgzySU','getMonth','isArrayLike','handleJsonOutput','getOwnPropertyDescriptor','No\x20','defineProperty','lodash','__esModule','prototype','9WKSSRR','inspect','244223EjISOi','121NigLAy','144enPovy','3735891TTuOis','clone','consoleFormat','writable','7849638NfrrHi','isFinite','stringify','10002bNeUrY','safeDump','__importDefault','handleFormattedOutput','disabled','keys','isObjectLike','88070lIpnKY','getSeconds','chalk','includes','getHours','getFullYear','\x20(HTTP\x20status:\x20','getMinutes','length','getDate','toLowerCase','call','log','default'];a6w=function(){return Q;};return a6w();}function consoleFormat(w,h){const t=a6W;if(_[t(0xa5)](w)){const G=h?t(0x8f)+h+')':'';return chalk_1[t(0x96)]['green'](t(0xa1))+G;}if(!_[t(0x88)](w))return w===null||w===void 0x0?void 0x0:w[t(0x97)]();return util['inspect'](w,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6W(0x7d)]=consoleFormat;const handleJsonOutput=(w,h)=>{const S=a6W,G=w==='json';if(G)console['log'](JSON[S(0x81)](h,null,'\x20'));};exports[a6W(0xb2)]=handleJsonOutput;const handleYamlOutput=(w,h)=>{const V=a6W,G=w===V(0x99)||w===V(0xa0);if(G)console[V(0x95)](yaml[V(0x83)](h));};exports[a6W(0xaa)]=handleYamlOutput;function a6h(w,h){const G=a6w();return a6h=function(P,v){P=P-0x7c;let O=G[P];return O;},a6h(w,h);}const handleFormattedOutput=(w,h)=>{const C=a6W,G=w===C(0xa6);if(G)console[C(0x95)](consoleFormat(h));};exports[a6W(0x85)]=handleFormattedOutput;const printResponse=(w,h)=>{const M=a6W;(0x0,exports[M(0xb2)])(w,h),(0x0,exports[M(0xaa)])(w,h),(0x0,exports[M(0x85)])(w,h);};exports[a6W(0xa7)]=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a7C=a7p;(function(T,p){const l=a7p,y=T();while(!![]){try{const G=-parseInt(l(0x1c7))/0x1+parseInt(l(0x1de))/0x2+-parseInt(l(0x1dd))/0x3+-parseInt(l(0x1e5))/0x4+-parseInt(l(0x1df))/0x5*(parseInt(l(0x1cf))/0x6)+parseInt(l(0x1cc))/0x7*(parseInt(l(0x1d3))/0x8)+parseInt(l(0x1dc))/0x9*(parseInt(l(0x1e1))/0xa);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a7T,0x4162a));function a7T(){const T3=['isArray','join','black','297020IlkIcp','push','defineProperty','repeat','\x20\x20\x20','min','round','symbols','map','chalk','colors','toFixed','abs','downSampleData','191462MRuRbr','offset','unit','toLocaleTimeString','red','329UWStQv','undefined','2-digit','24gzYlUZ','grey','__esModule','max','79784RoFxTb','floor','getAsciiChart','height','slice','length','blue','padding','format','1278SNujYj','625347DJJedy','142tfHMjZ','554010cXzUuk','h24','50450jYdqQg'];a7T=function(){return T3;};return a7T();}var __importDefault=this&&this['__importDefault']||function(T){return T&&T['__esModule']?T:{'default':T};};Object[a7C(0x1e7)](exports,a7C(0x1d1),{'value':!![]}),exports[a7C(0x1f2)]=exports[a7C(0x1d5)]=void 0x0;const chalk_1=__importDefault(require(a7C(0x1ee))),colored=(T,p)=>{return p===undefined?T:chalk_1['default'][p](T);},getAsciiChart=(T,p={})=>{const E=a7C,G=Array[E(0x1e2)](T[0x0])?T:[T];let q=typeof p[E(0x1ea)]!==E(0x1cd)?p['min']:G[0x0][0x0],S=typeof p[E(0x1d2)]!=='undefined'?p[E(0x1d2)]:G[0x0][0x0];for(let A=0x0;A<G['length'];A++){for(let c=0x0;c<G[A]['length'];c++){q=Math[E(0x1ea)](q,G[A][c]),S=Math[E(0x1d2)](S,G[A][c]);}}let K=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],s=Math['abs'](S-q),N=typeof p[E(0x1c8)]!==E(0x1cd)?p[E(0x1c8)]:0x3,M=typeof p[E(0x1da)]!==E(0x1cd)?p['padding']:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',m=typeof p[E(0x1d6)]!==E(0x1cd)?p['height']:s,R=typeof p['colors']!==E(0x1cd)?p[E(0x1ef)]:[E(0x1d9),E(0x1cb),'green',E(0x1d0),E(0x1e4)],u=s!==0x0?m/s:0x1,b=Math[E(0x1eb)](q*u),B=Math[E(0x1eb)](S*u),o=Math[E(0x1f1)](B-b),f=0x0;for(let F=0x0;F<G['length'];F++){f=Math[E(0x1d2)](f,G[F][E(0x1d8)]);}f=f+N;let d=typeof p[E(0x1ec)]!==E(0x1cd)?p[E(0x1ec)]:K,Q=p[E(0x1db)]!==undefined?p[E(0x1db)]:function(Z){const T0=E;return(M+Z[T0(0x1f0)](0x2)+p[T0(0x1c9)])['slice'](-M[T0(0x1d8)]);},U=new Array(o+0x1);for(let Z=0x0;Z<=o;Z++){U[Z]=new Array(f);for(let V=0x0;V<f;V++){U[Z][V]='\x20';}}for(let h=b;h<=B;++h){const v=Q(o>0x0?S-(h-b)*s/o:h,h-b);U[h-b][Math[E(0x1d2)](N-v['length'],0x0)]=v,U[h-b][N-0x1]=h==0x0?d[0x0]:d[0x1];}for(let t=0x0;t<G[E(0x1d8)];t++){let g=R[t%R[E(0x1d8)]],I=Math[E(0x1eb)](G[t][0x0]*u)-b;U[o-I][N-0x1]=colored(d[0x0],g);for(let r=0x0;r<G[t][E(0x1d8)]-0x1;r++){let Y=Math[E(0x1eb)](G[t][r+0x0]*u)-b,z=Math[E(0x1eb)](G[t][r+0x1]*u)-b;if(Y==z)U[o-Y][r+N]=colored(d[0x4],g);else{U[o-z][r+N]=colored(Y>z?d[0x5]:d[0x6],g),U[o-Y][r+N]=colored(Y>z?d[0x7]:d[0x8],g);let W=Math[E(0x1ea)](Y,z),e=Math['max'](Y,z);for(let P=W+0x1;P<e;P++){U[o-P][r+N]=colored(d[0x9],g);}}}}const {startTs:D,endTs:w}=p;if(D||w){const X=L=>{const T1=E;if(!L)return T1(0x1e9);const O=L['toLocaleDateString'](undefined,{'day':T1(0x1ce),'month':'2-digit','year':T1(0x1ce)}),H=L[T1(0x1ca)](undefined,{'hourCycle':T1(0x1e0)});return O+'\x20'+H;},J=X(w),n=X(D),k=M[E(0x1d7)](0x0,Math['max'](0x2,M[E(0x1d8)]-n[E(0x1d8)]/0x2+0x1)),a='\x20'[E(0x1e8)](Math[E(0x1d2)](f-(M[E(0x1d8)]+J[E(0x1d8)]/0x2),0x1));U[E(0x1e6)]([''+k+n+a+J]),U[E(0x1e6)]([]);}return U[E(0x1ed)](L=>L[E(0x1e3)](''))['join']('\x0a');};function a7p(T,p){const y=a7T();return a7p=function(G,q){G=G-0x1c7;let S=y[G];return S;},a7p(T,p);}exports['getAsciiChart']=getAsciiChart;const downSampleData=(T,p)=>{const T2=a7C,y=T[T2(0x1d8)];if(p>=y||p===0x0)return T;const G=[];let q=0x0;const S=(y-0x2)/(p-0x2);let K=0x0,s,N,M,m;G[q++]=T[K];for(var R=0x0;R<p-0x2;R++){let d=0x0,Q=0x0,U=Math[T2(0x1d4)]((R+0x1)*S)+0x1,D=Math['floor']((R+0x2)*S)+0x1;D=D<y?D:y;var u=D-U;for(;U<D;U++){d+=T[U][0x0],Q+=T[U][0x1];}d/=u,Q/=u;var b=Math[T2(0x1d4)](R*S)+0x1,B=Math['floor']((R+0x1)*S)+0x1,o=T[K][0x0],f=T[K][0x1];N=M=-0x1;for(;b<B;b++){M=Math[T2(0x1f1)]((o-d)*(T[b][0x1]-f)-(o-T[b][0x0])*(Q-f))*0.5,M>N&&(N=M,s=T[b],m=b);}G[q++]=s,K=m;}return G[q++]=T[y-0x1],G;};exports['downSampleData']=downSampleData;
1
+ 'use strict';const a7L=a7h;(function(w,h){const o=a7h,G=w();while(!![]){try{const P=-parseInt(o(0x1b2))/0x1+parseInt(o(0x1ae))/0x2*(parseInt(o(0x1c9))/0x3)+parseInt(o(0x1ca))/0x4+parseInt(o(0x1cc))/0x5*(parseInt(o(0x1b9))/0x6)+-parseInt(o(0x1ba))/0x7*(parseInt(o(0x1c2))/0x8)+-parseInt(o(0x1b6))/0x9+parseInt(o(0x1ac))/0xa;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a7w,0x897fa));var __importDefault=this&&this[a7L(0x1bf)]||function(w){const d=a7L;return w&&w[d(0x1b0)]?w:{'default':w};};Object['defineProperty'](exports,a7L(0x1b0),{'value':!![]}),exports[a7L(0x1bd)]=exports[a7L(0x1bc)]=void 0x0;const chalk_1=__importDefault(require(a7L(0x1bb))),colored=(w,h)=>{const w0=a7L;return h===undefined?w:chalk_1[w0(0x1b8)][h](w);},getAsciiChart=(w,h={})=>{const w1=a7L,G=Array[w1(0x1b3)](w[0x0])?w:[w];let P=typeof h[w1(0x1b1)]!==w1(0x1b7)?h[w1(0x1b1)]:G[0x0][0x0],v=typeof h['max']!==w1(0x1b7)?h['max']:G[0x0][0x0];for(let b=0x0;b<G[w1(0x1c8)];b++){for(let q=0x0;q<G[b][w1(0x1c8)];q++){P=Math[w1(0x1b1)](P,G[b][q]),v=Math[w1(0x1be)](v,G[b][q]);}}let O=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],Z=Math[w1(0x1c6)](v-P),a=typeof h[w1(0x1c0)]!=='undefined'?h[w1(0x1c0)]:0x3,l=typeof h['padding']!=='undefined'?h['padding']:w1(0x1d0),B=typeof h[w1(0x1c7)]!==w1(0x1b7)?h['height']:Z,U=typeof h[w1(0x1a9)]!==w1(0x1b7)?h[w1(0x1a9)]:['blue',w1(0x1c5),'green',w1(0x1b5),w1(0x1ad)],A=Z!==0x0?B/Z:0x1,D=Math[w1(0x1cb)](P*A),p=Math[w1(0x1cb)](v*A),s=Math['abs'](p-D),W=0x0;for(let f=0x0;f<G[w1(0x1c8)];f++){W=Math[w1(0x1be)](W,G[f]['length']);}W=W+a;let X=typeof h[w1(0x1cd)]!==w1(0x1b7)?h['symbols']:O,T=h[w1(0x1cf)]!==undefined?h[w1(0x1cf)]:function(e){const w2=w1;return(l+e['toFixed'](0x2)+h['unit'])[w2(0x1ab)](-l[w2(0x1c8)]);},I=new Array(s+0x1);for(let e=0x0;e<=s;e++){I[e]=new Array(W);for(let u=0x0;u<W;u++){I[e][u]='\x20';}}for(let t=D;t<=p;++t){const S=T(s>0x0?v-(t-D)*Z/s:t,t-D);I[t-D][Math[w1(0x1be)](a-S[w1(0x1c8)],0x0)]=S,I[t-D][a-0x1]=t==0x0?X[0x0]:X[0x1];}for(let V=0x0;V<G[w1(0x1c8)];V++){let C=U[V%U[w1(0x1c8)]],M=Math[w1(0x1cb)](G[V][0x0]*A)-D;I[s-M][a-0x1]=colored(X[0x0],C);for(let Q=0x0;Q<G[V][w1(0x1c8)]-0x1;Q++){let H=Math[w1(0x1cb)](G[V][Q+0x0]*A)-D,n=Math[w1(0x1cb)](G[V][Q+0x1]*A)-D;if(H==n)I[s-H][Q+a]=colored(X[0x4],C);else{I[s-n][Q+a]=colored(H>n?X[0x5]:X[0x6],C),I[s-H][Q+a]=colored(H>n?X[0x7]:X[0x8],C);let c=Math[w1(0x1b1)](H,n),r=Math['max'](H,n);for(let m=c+0x1;m<r;m++){I[s-m][Q+a]=colored(X[0x9],C);}}}}const {startTs:k,endTs:Y}=h;if(k||Y){const E=N=>{const w3=w1;if(!N)return'\x20\x20\x20';const z=N[w3(0x1af)](undefined,{'day':w3(0x1b4),'month':w3(0x1b4),'year':w3(0x1b4)}),F=N[w3(0x1ce)](undefined,{'hourCycle':'h24'});return z+'\x20'+F;},K=E(Y),g=E(k),J=l['slice'](0x0,Math[w1(0x1be)](0x2,l['length']-g[w1(0x1c8)]/0x2+0x1)),R='\x20'['repeat'](Math[w1(0x1be)](W-(l['length']+K[w1(0x1c8)]/0x2),0x1));I[w1(0x1c1)]([''+J+g+R+K]),I[w1(0x1c1)]([]);}return I[w1(0x1c4)](N=>N['join'](''))[w1(0x1aa)]('\x0a');};exports[a7L(0x1bc)]=getAsciiChart;const downSampleData=(w,h)=>{const w4=a7L,G=w[w4(0x1c8)];if(h>=G||h===0x0)return w;const P=[];let v=0x0;const O=(G-0x2)/(h-0x2);let Z=0x0,l,B,U,A;P[v++]=w[Z];for(var D=0x0;D<h-0x2;D++){let I=0x0,k=0x0,Y=Math['floor']((D+0x1)*O)+0x1,x=Math[w4(0x1c3)]((D+0x2)*O)+0x1;x=x<G?x:G;var p=x-Y;for(;Y<x;Y++){I+=w[Y][0x0],k+=w[Y][0x1];}I/=p,k/=p;var s=Math[w4(0x1c3)](D*O)+0x1,W=Math['floor']((D+0x1)*O)+0x1,X=w[Z][0x0],T=w[Z][0x1];B=U=-0x1;for(;s<W;s++){U=Math[w4(0x1c6)]((X-I)*(w[s][0x1]-T)-(X-w[s][0x0])*(k-T))*0.5,U>B&&(B=U,l=w[s],A=s);}P[v++]=l,Z=A;}return P[v++]=w[G-0x1],P;};exports['downSampleData']=downSampleData;function a7h(w,h){const G=a7w();return a7h=function(P,v){P=P-0x1a9;let O=G[P];return O;},a7h(w,h);}function a7w(){const w5=['slice','16853500mDmkfv','black','266774vDRCNA','toLocaleDateString','__esModule','min','261711BcTaPq','isArray','2-digit','grey','5949099CFIbMJ','undefined','default','30MxMDja','446467WKeZuG','chalk','getAsciiChart','downSampleData','max','__importDefault','offset','push','136CYtYhe','floor','map','red','abs','height','length','6quQNkw','2349336cOpBlw','round','30735QhuZHG','symbols','toLocaleTimeString','format','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','colors','join'];a7w=function(){return w5;};return a7w();}
@@ -1 +1 @@
1
- 'use strict';const a8B=a8p;function a8T(){const Th=['SAVE','type','safeLoad','Enter\x20the\x20','oneOf','Template\x20id\x20not\x20provided.','DynamicReloadPaginationPrompt','grey','No,\x20but\x20save\x20as\x20file','push','override','Please\x20confirm\x20following\x20configuration:\x0a','create','__importStar','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','choice','underline','registerPrompt','jobs','__importDefault','isBoolean','No\x20containers\x20found','blue','confirmationPrompt','domains','\x20and\x20it\x20','1393294PsmdxM','log\x20sink','then','toUpperCase','templates','maxLength',',\x20supported\x20types:\x20[json|yaml|yml]','retrievePayloadViaInteractiveCli','__esModule','askForBuild','found','service:\x20\x27','subdomain','askForResourcePaginated','don\x27t\x20change','body','askForJob','confirm','Configuration\x20file\x20written\x20to\x20','pathVars','next','739856AryNKa','ABORT','templateRuns','backups','not\x20completed','pattern','elements','isNaN','done','filter','job','askForContainer','No,\x20abort','\x20(full\x20domain:\x20','logSinks','set','pop','deleteWarningPrompt','askForProjectScopedResourcePaginated','job\x20runs','token','name','getQuestionString','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','warning','isArray','\x20in\x20','slice','apiClient','green','Something\x20unexpected\x20happened.','resultCache','whiteBright','projects','\x20(completedAt:\x20','secrets','lodash','bgGrey','input','Should\x20it\x20be','enum','service\x20containers','find','createdAt','completedAt','askForAddonBackup','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','233iPxXdt','description','job\x20builds','pagination-prompt','example','main-context','getOwnPropertyDescriptor','\x20type?','trim','addons','Do\x20you\x20want\x20to\x20add','reset','nextCursor','EDIT','getInnerType','Go\x20to\x20editor','safeDump','list','30KRiduY','toString','Context\x20name\x20already\x20exists.','addon:\x20\x27','prompt','\x20(startedAt:\x20','all-job-runs','red','values','askForTemplateRun','json','containers','Context\x20with\x20name\x20\x27','properties','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','integer','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','InquirerHelper','boolean','startedAt','unshift','yellowBright','concat','throw','No,\x20edit','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','344127aJJxww','domain\x20(','\x20to\x20use:','project:\x20\x27','getCurrentProjectName','3725870FVflPh','./api-helpers','fullName','setPathVars','prototype','greenBright','70968LxYaqQ','nextPageCursor','isValidJSON','template','getType','job:\x20\x27','defineProperty','blueBright','builds','credentials','askForService','getPathString','get','for\x20this\x20','js-yaml','No\x20','bold','test','data','askForLogSink','askForSubdomain','doesn\x27t\x20match\x20pattern\x20\x27','search-list','.*\x5c.(json|yaml|yml)$','askForProjectScopedResource','9pcnJMy','project','volume','default','ask','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','Do\x20you\x20want\x20to\x20add\x20more','unset','YES','askConfirm','What\x27s\x20the\x20','askForCredentials','confirmation','array','./utils','pipeline','services','Choose\x20the\x20login\x20token:','registries','has','REPEAT','./pagination/inquirer-pagination-prompt','addon','yml','loginPrompt','editPayload','41872kYWVFY','minimum','minLength','max','What\x20do\x20you\x20want\x20to\x20use\x20as','chalk','assign','configurable','domain','tokenPrompt','__setModuleDefault','fetchResourceList','tmpCmdPath','editor','askForResource','value','volumes','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','success','writeFileSync','message','join','stringify','rawObject','askForJobRun','all-builds','contextProvider','askForPipeline','cursor','secret','split','propToType','pipelines','runs','repeat','No,\x20repeat','saveFile','askForVolume','askForDomain','charAt','items','fileName','cmdPath','validate','maximum','retry','164RwyyOL','length','askForAddon','__awaiter','required','service','template\x20run','string','map','defaultPaginationPageSize','isUndefined','job\x20containers','pagination','askGeneric','\x20characters'];a8T=function(){return Th;};return a8T();}(function(T,p){const b=a8p,y=T();while(!![]){try{const G=-parseInt(b(0x23d))/0x1*(parseInt(b(0x1d0))/0x2)+parseInt(b(0x269))/0x3+-parseInt(b(0x20e))/0x4+-parseInt(b(0x24f))/0x5*(-parseInt(b(0x274))/0x6)+-parseInt(b(0x1f9))/0x7+parseInt(b(0x2a7))/0x8+-parseInt(b(0x28d))/0x9*(-parseInt(b(0x26e))/0xa);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a8T,0x27282));var __createBinding=this&&this['__createBinding']||(Object[a8B(0x1eb)]?function(T,p,y,G){const o=a8B;if(G===undefined)G=y;var q=Object[o(0x243)](p,y);(!q||(o(0x280)in q?!p[o(0x201)]:q['writable']||q[o(0x2ae)]))&&(q={'enumerable':!![],'get':function(){return p[y];}}),Object[o(0x27a)](T,G,q);}:function(T,p,y,G){if(G===undefined)G=y;T[G]=p[y];}),__setModuleDefault=this&&this[a8B(0x2b1)]||(Object[a8B(0x1eb)]?function(T,p){const f=a8B;Object[f(0x27a)](T,'default',{'enumerable':!![],'value':p});}:function(T,p){const d=a8B;T[d(0x290)]=p;}),__importStar=this&&this[a8B(0x1ec)]||function(T){const Q=a8B;if(T&&T['__esModule'])return T;var p={};if(T!=null){for(var y in T)if(y!==Q(0x290)&&Object[Q(0x272)]['hasOwnProperty']['call'](T,y))__createBinding(p,T,y);}return __setModuleDefault(p,T),p;},__awaiter=this&&this[a8B(0x1d3)]||function(T,p,y,G){function q(S){return S instanceof y?S:new y(function(K){K(S);});}return new(y||(y=Promise))(function(S,K){function s(i){const U=a8p;try{M(G[U(0x20d)](i));}catch(m){K(m);}}function N(i){const D=a8p;try{M(G[D(0x266)](i));}catch(m){K(m);}}function M(i){const w=a8p;i[w(0x216)]?S(i[w(0x2b6)]):q(i[w(0x2b6)])[w(0x1fb)](s,N);}M((G=G['apply'](T,p||[]))['next']());});},__importDefault=this&&this[a8B(0x1f2)]||function(T){return T&&T['__esModule']?T:{'default':T};};Object['defineProperty'](exports,a8B(0x201),{'value':!![]}),exports[a8B(0x260)]=void 0x0;function a8p(T,p){const y=a8T();return a8p=function(G,q){G=G-0x1b3;let S=y[G];return S;},a8p(T,p);}const _=__importStar(require(a8B(0x232))),chalk_1=__importDefault(require(a8B(0x2ac))),fs=__importStar(require('fs')),utils_1=require(a8B(0x29b)),api_helpers_1=require(a8B(0x26f)),inquirer_pagination_prompt_1=require(a8B(0x2a2)),inquirer=require('inquirer'),inquirerSearchList=require('inquirer-search-list'),yaml=require(a8B(0x282));var ConfirmChoices;(function(T){const A=a8B;T[A(0x295)]='Yes,\x20send',T['REPEAT']=A(0x1c5),T[A(0x24a)]=A(0x267),T[A(0x1df)]=A(0x1e7),T[A(0x20f)]=A(0x21a);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(T){const F=a8B;this[F(0x22a)]=T,this['defaultPaginationPageSize']=0x32,this[F(0x2a6)]=p=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=F,{editedResult:y}=yield inquirer[Z(0x253)]([{'type':Z(0x2b4),'name':'editedResult','message':Z(0x24c),'default':yaml[Z(0x24d)](p)}]);return yaml[Z(0x1e1)](y);}),this[F(0x1c6)]=p=>__awaiter(this,void 0x0,void 0x0,function*(){const j=F,y=K=>'Unexpected\x20file\x20type:\x20'+K+j(0x1ff);function G(){return __awaiter(this,void 0x0,void 0x0,function*(){const V=a8p;return inquirer[V(0x253)]([{'type':V(0x234),'name':V(0x1cb),'message':V(0x1b3),'validate':K=>new RegExp(V(0x28b))[V(0x285)](K)?!![]:y(K)}]);});}const {fileName:q}=yield G(),S=q[j(0x250)]()[j(0x1c0)]('.')[j(0x21e)]();try{switch(S){case j(0x259):(0x0,utils_1[j(0x1b4)])(j(0x20b)+q);return fs[j(0x1b5)](q,JSON[j(0x1b8)](p,null,'\x20\x20'));case'yaml':case j(0x2a4):(0x0,utils_1['success'])(j(0x20b)+q);return fs[j(0x1b5)](q,yaml['safeDump'](p));default:(0x0,utils_1[j(0x226)])(y(S));}}catch(K){(0x0,utils_1[j(0x226)])('Writing\x20configuration\x20failed:\x20'+K[j(0x1b6)]);}return undefined;}),this[F(0x217)]=(p,y)=>G=>{const h=F,q=typeof G==='string'?G[h(0x245)]():G;return y===![]&&q===h(0x207)?'':q;},this['validate']=(p,y,G)=>q=>{const v=F,S=[];if(q===''||q==='don\x27t\x20change'){if(y!==![])S[v(0x1e8)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}p[v(0x1e0)]===v(0x1d7)&&!_[v(0x1da)](p[v(0x213)])&&S[v(0x1e8)](new RegExp(p['pattern'])[v(0x285)](q)?!![]:v(0x289)+p['pattern']+'\x27');p[v(0x1e0)]===v(0x1d7)&&!_['isUndefined'](p[v(0x2a9)])&&S[v(0x1e8)](q[v(0x1d1)]>=p[v(0x2a9)]?!![]:v(0x25f)+p[v(0x2a9)]+'\x20characters,\x20is\x20'+q['length']+v(0x1de));p[v(0x1e0)]===v(0x1d7)&&!_[v(0x1da)](p[v(0x1fe)])&&S[v(0x1e8)](q[v(0x1d1)]<=p[v(0x1fe)]?!![]:v(0x292)+p[v(0x1fe)]+'\x20characters,\x20is\x20'+q['length']+v(0x1de));G&&Number[v(0x215)](parseInt(q,0xa))&&S[v(0x1e8)]('must\x20be\x20a\x20number,\x20is\x20'+q);p[v(0x1e0)]===v(0x25e)&&!_['isUndefined'](p[v(0x2a8)])&&S[v(0x1e8)](q>=p[v(0x2a8)]?!![]:v(0x225)+p[v(0x2a8)]);p[v(0x1e0)]===v(0x25e)&&!_[v(0x1da)](p[v(0x1ce)])&&S['push'](q<=p[v(0x1ce)]?!![]:v(0x2b8)+p['maximum']);if(p['type']===v(0x1b9)){const N=(0x0,utils_1[v(0x276)])(q);S[v(0x1e8)](N===![]||_['isEmpty'](N)?v(0x1ed):!![]);}const K=S[v(0x217)](M=>M!==!![]),s=(p===null||p===void 0x0?void 0x0:p[v(0x241)])?'\x0a'+chalk_1[v(0x290)][v(0x256)]('>>')+'\x20Example:\x20'+chalk_1[v(0x290)][v(0x22e)](JSON[v(0x1b8)](p['example'])):'';return K[v(0x1d1)]>0x0?K['join'](chalk_1['default'][v(0x1ef)](v(0x1f8)))+s:!![];},this['getPathString']=(p,y,G)=>{const t=F,q=p[p[t(0x1d1)]-0x1];function S(){const g=t;return p[g(0x229)](0x0,-0x1)[g(0x1d8)](N=>N[g(0x1c9)](0x0)[g(0x1fc)]()+N[g(0x229)](0x1))[g(0x1b7)]('>');}const K=p['length']>0x1?chalk_1[t(0x290)][t(0x233)]['whiteBright'](S())+':\x20':'',s=G?'\x20('+chalk_1[t(0x290)][t(0x1f5)](G)+')':'';return chalk_1[t(0x290)][t(0x248)](''+K+y+'\x20'+chalk_1['default'][t(0x284)][t(0x273)](q)+s+'?');},this[F(0x2b5)]=(p,y,G)=>__awaiter(this,void 0x0,void 0x0,function*(){const I=F;if(y['length']<0x1){const K=G?I(0x281)+G:I(0x203);throw new Error(I(0x283)+p+'\x20'+K+'.');}const q='Choose\x20the\x20'+p+I(0x26b),S=y['length']>0x4?I(0x28a):I(0x24e);return(yield inquirer[I(0x253)]([{'type':S,'name':I(0x223),'message':q,'choices':y}]))[I(0x223)];}),this[F(0x206)]=(p,y,G)=>__awaiter(this,void 0x0,void 0x0,function*(){const r=F,{elements:q,nextCursor:S}=yield y();if(q[r(0x1d1)]<0x1){const N=G?r(0x281)+G:'found';throw new Error(r(0x283)+p+'\x20'+N+'.');}const K='Choose\x20the\x20'+p+r(0x26b);if(S!==undefined){const M=({nextPageCursor:i})=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=r,m=yield y(i);return{'elements':m[Y(0x214)],'nextPageCursor':m[Y(0x249)]};});return(yield inquirer[r(0x253)]([{'type':'pagination-prompt','name':r(0x223),'message':K,'choices':q,'nextPageCursor':S,'loadMore':M}]))[r(0x223)];}const s=q[r(0x1d1)]>0x4?'search-list':'list';return(yield inquirer[r(0x253)]([{'type':s,'name':r(0x223),'message':K,'choices':q}]))[r(0x223)];}),this[F(0x1dd)]=(p,y)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=F,G=''+(y?'('+chalk_1['default']['blue'](y)+')\x20':''),q=z(0x1e2)+chalk_1[z(0x290)][z(0x22b)](p)+'\x20'+G+'to\x20use:',S=this[z(0x1cd)]({'type':z(0x1d7),'required':!![]});return(yield inquirer[z(0x253)]([{'type':z(0x234),'name':z(0x223),'message':q,'validate':S}]))[z(0x223)];}),this[F(0x296)]=p=>__awaiter(this,void 0x0,void 0x0,function*(){const x=F;return(yield inquirer[x(0x253)]([{'type':'confirm','name':x(0x223),'message':p,'default':!![]}]))[x(0x223)];}),this[F(0x27e)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e=F,y=G=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const W=a8p;var S;const K=yield this[W(0x22a)][W(0x24e)][W(0x29d)]({'parameters':{'projectId':G},'options':{'per_page':this[W(0x1d9)],'cursor':q}}),s=K['data'][W(0x29d)][W(0x1d8)](N=>N['id']);return{'elements':s,'nextCursor':(S=K[W(0x1dc)])===null||S===void 0x0?void 0x0:S[W(0x1be)]};});return this[e(0x220)](e(0x1d5),y,p);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const X=F,p=y=>__awaiter(this,void 0x0,void 0x0,function*(){const P=a8p;var G;const q=yield this[P(0x22a)][P(0x24e)]['templates']({'options':{'per_page':this[P(0x1d9)],'cursor':y}}),S=q[P(0x286)][P(0x1fd)][P(0x1d8)](K=>K['id']);return{'elements':S,'nextCursor':(G=q['pagination'])===null||G===void 0x0?void 0x0:G['cursor']};});return this[X(0x206)](X(0x277),p);}),this[F(0x258)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=F;if(_[J(0x1da)](p))throw new Error(J(0x1e4));const y=G=>__awaiter(this,void 0x0,void 0x0,function*(){const n=J;var q;let S=this['defaultPaginationPageSize'];const K=yield this[n(0x22a)][n(0x24e)][n(0x210)]({'parameters':{'templateId':p},'options':{'per_page':S,'cursor':G}}),s=K[n(0x286)][n(0x210)]['map'](N=>N['id']+n(0x254)+N[n(0x239)]+')');return{'elements':s,'nextCursor':(q=K[n(0x1dc)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[J(0x206)](J(0x1d6),y)[J(0x1fb)](G=>G[J(0x1c0)]('\x20')[0x0]);}),this[F(0x287)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const a=F,p=y=>__awaiter(this,void 0x0,void 0x0,function*(){const k=a8p;var G;let q=this['defaultPaginationPageSize'];const S=yield this[k(0x22a)][k(0x24e)][k(0x21c)]({'options':{'per_page':q,'cursor':y}}),K=S[k(0x286)]['logSinks'][k(0x1d8)](s=>s['id']);return{'elements':K,'nextCursor':(G=S['pagination'])===null||G===void 0x0?void 0x0:G[k(0x1be)]};});return this[a(0x206)](a(0x1fa),p);}),this[F(0x1bd)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O=F,y=G=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const L=a8p;var S;const K=yield this[L(0x22a)]['list']['pipelines']({'parameters':{'projectId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':q}}),s=K['data'][L(0x1c2)][L(0x1d8)](N=>N['id']);return{'elements':s,'nextCursor':(S=K[L(0x1dc)])===null||S===void 0x0?void 0x0:S[L(0x1be)]};});return this['askForProjectScopedResourcePaginated'](O(0x29c),y,p);}),this[F(0x209)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const l=F,y=G=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8p;var S;const K=yield this[H(0x22a)][H(0x24e)][H(0x1f1)]({'parameters':{'projectId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':q}}),s=K['data'][H(0x1f1)]['map'](N=>N['id']);return{'elements':s,'nextCursor':(S=K['pagination'])===null||S===void 0x0?void 0x0:S[H(0x1be)]};});return this[l(0x220)](l(0x218),y,p);}),this[F(0x1ba)]=(p,y,G=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const C=F,q=C(0x255),S=K=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const E=C;var N;const M=yield this[E(0x22a)]['get'][E(0x218)][E(0x1c3)]({'parameters':{'projectId':K,'jobId':p},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':s}}),i=M['data'][E(0x1c3)][E(0x1d8)](m=>m['id']+E(0x254)+m[E(0x262)]+')');return G&&i['unshift'](q),{'elements':i,'nextCursor':(N=M[E(0x1dc)])===null||N===void 0x0?void 0x0:N[E(0x1be)]};});return this['askForProjectScopedResourcePaginated'](C(0x221),S,y,C(0x279)+p+'\x27')[C(0x1fb)](K=>{const T0=C,s=K[T0(0x1c0)]('\x20')[0x0];if(s===q)return undefined;return s;});}),this[F(0x202)]=(p,y,G,q=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T1=F,S=T1(0x1bb);if(G!==undefined){const K=s=>N=>__awaiter(this,void 0x0,void 0x0,function*(){const T2=T1;var M;const i=yield this['apiClient']['get'][T2(0x218)]['builds']({'parameters':{'projectId':s,'jobId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':N}}),m=i[T2(0x286)][T2(0x27c)][T2(0x1d8)](R=>R['id']+T2(0x254)+R[T2(0x239)]+')');return q&&m[T2(0x263)](S),{'elements':m,'nextCursor':(M=i['pagination'])===null||M===void 0x0?void 0x0:M[T2(0x1be)]};});return this[T1(0x220)](T1(0x23f),K,p,T1(0x279)+G+'\x27')['then'](s=>{const T3=T1,N=s[T3(0x1c0)]('\x20')[0x0];if(N===S)return undefined;return N;});}if(y!==undefined){const s=N=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const T4=T1;var i;const m=yield this['apiClient']['get'][T4(0x1d5)][T4(0x27c)]({'parameters':{'projectId':N,'serviceId':y},'options':{'per_page':this[T4(0x1d9)],'cursor':M}}),R=m[T4(0x286)][T4(0x27c)]['map'](u=>u['id']+T4(0x254)+u[T4(0x239)]+')');if(q)R[T4(0x263)](S);return{'elements':R,'nextCursor':(i=m[T4(0x1dc)])===null||i===void 0x0?void 0x0:i['cursor']};});return this[T1(0x220)]('service\x20build',s,p,T1(0x204)+G+'\x27')[T1(0x1fb)](N=>{const T5=T1,M=N[T5(0x1c0)]('\x20')[0x0];if(M===S)return undefined;return M;});}throw new Error('No\x20builds\x20found');}),this[F(0x219)]=(p,y,G,q=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T7=F,S='all-containers';if(G!==undefined){const K=s=>N=>__awaiter(this,void 0x0,void 0x0,function*(){const T6=a8p;var M;const i=yield this[T6(0x22a)][T6(0x280)]['job'][T6(0x25a)]({'parameters':{'projectId':s,'jobId':G},'options':{'per_page':this[T6(0x1d9)],'cursor':N}}),m=i[T6(0x286)][T6(0x25a)][T6(0x1d8)](R=>R[T6(0x223)]+T6(0x254)+R[T6(0x239)]+')');return q&&m['unshift'](S),{'elements':m,'nextCursor':(M=i[T6(0x1dc)])===null||M===void 0x0?void 0x0:M['cursor']};});return this[T7(0x220)](T7(0x1db),K,p,T7(0x279)+G+'\x27')[T7(0x1fb)](s=>{const N=s['split']('\x20')[0x0];if(N===S)return undefined;return N;});}if(y!==undefined){const s=N=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const T8=T7;var i;const m=yield this['apiClient'][T8(0x280)]['service'][T8(0x25a)]({'parameters':{'projectId':N,'serviceId':y},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':M}}),R=m[T8(0x286)][T8(0x25a)]['map'](u=>u[T8(0x223)]+T8(0x254)+u[T8(0x239)]+')');if(q)R['unshift'](S);return{'elements':R,'nextCursor':(i=m[T8(0x1dc)])===null||i===void 0x0?void 0x0:i[T8(0x1be)]};});return this[T7(0x220)](T7(0x237),s,p,T7(0x204)+G+'\x27')[T7(0x1fb)](N=>{const M=N['split']('\x20')[0x0];if(M===S)return undefined;return M;});}throw new Error(T7(0x1f4));}),this[F(0x1d2)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TT=F,y=G=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const T9=a8p;var S;const K=yield this[T9(0x22a)]['list'][T9(0x246)]({'parameters':{'projectId':G},'options':{'per_page':this[T9(0x1d9)],'cursor':q}});return{'elements':K[T9(0x286)][T9(0x246)]['map'](s=>s['id']),'nextCursor':(S=K[T9(0x1dc)])===null||S===void 0x0?void 0x0:S['cursor']};});return this[TT(0x220)](TT(0x2a3),y,p);}),this[F(0x23b)]=(p,y)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ty=F,G=q=>S=>__awaiter(this,void 0x0,void 0x0,function*(){const Tp=a8p;var K;const s=yield this['apiClient']['get'][Tp(0x2a3)]['backups']({'parameters':{'projectId':q,'addonId':y},'options':{'per_page':this[Tp(0x1d9)],'cursor':S}});return{'elements':s[Tp(0x286)]['backups'][Tp(0x1d8)](N=>N['id']+Tp(0x230)+(N[Tp(0x23a)]||Tp(0x212))+')'),'nextCursor':(K=s[Tp(0x1dc)])===null||K===void 0x0?void 0x0:K[Tp(0x1be)]};});return this[Ty(0x220)](Ty(0x211),G,p,Ty(0x252)+y+'\x27')[Ty(0x1fb)](q=>q[Ty(0x1c0)]('\x20')[0x0]);}),this[F(0x1c7)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Tq=F,y=G=>__awaiter(this,void 0x0,void 0x0,function*(){const TG=a8p;return(yield this[TG(0x22a)][TG(0x24e)][TG(0x2b7)]({'parameters':{'projectId':G}}))[TG(0x286)][TG(0x1d8)](q=>q['id']);});return this[Tq(0x28c)](Tq(0x28f),y,p);}),this['askForSecret']=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const TK=F,y=G=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const TS=a8p;var S;const K=yield this[TS(0x22a)][TS(0x24e)][TS(0x231)]({'parameters':{'projectId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':q}});return{'elements':K[TS(0x286)][TS(0x231)][TS(0x1d8)](s=>s['id']),'nextCursor':(S=K['pagination'])===null||S===void 0x0?void 0x0:S[TS(0x1be)]};});return this[TK(0x220)](TK(0x1bf),y,p);}),this[F(0x288)]=p=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ts=F,y=yield this[Ts(0x22a)][Ts(0x280)][Ts(0x2af)]({'parameters':{'domain':p}}),G=y['data']['subdomains']['map'](S=>S['name']+Ts(0x21b)+S[Ts(0x270)]+')'),q=Ts(0x26a)+p+')';return this['askForResource'](Ts(0x205),G,q)[Ts(0x1fb)](S=>S[Ts(0x1c0)]('\x20')[0x0]);}),this[F(0x21f)]=p=>__awaiter(this,void 0x0,void 0x0,function*(){const TN=F;return(yield inquirer[TN(0x253)]([{'type':TN(0x20a),'name':TN(0x299),'message':chalk_1[TN(0x290)][TN(0x264)](TN(0x23c)+(p||'a\x20Northflank\x20resource')+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[TN(0x299)];}),this[F(0x2a5)]=(p,y)=>__awaiter(this,void 0x0,void 0x0,function*(){const TM=F;_[TM(0x1da)](p[TM(0x223)])&&(y[TM(0x1d1)]<=0x0?_[TM(0x21d)](p,TM(0x223),TM(0x290)):yield(0x0,utils_1[TM(0x1cf)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ti=TM,{name:G}=yield inquirer[Ti(0x253)]([{'type':Ti(0x234),'name':Ti(0x223),'message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':Ti(0x242)}]);if(!p[Ti(0x1e9)]&&y['find'](q=>q[Ti(0x223)]===G)){const {c:q}=yield inquirer['prompt']([{'type':'confirm','name':'c','message':Ti(0x25b)+G+Ti(0x268),'default':![]}]);if(q===![])throw new Error(Ti(0x251));_[Ti(0x21d)](p,Ti(0x1e9),!![]);}_[Ti(0x21d)](p,Ti(0x223),G);})));if(_['isUndefined'](p['token'])){const G=yield this[TM(0x2b0)]();_['set'](p,TM(0x222),G);}return p;}),this[F(0x2b0)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Tm=F,{token:p}=yield inquirer[Tm(0x253)]([{'type':'password','name':'token','mask':'*','message':Tm(0x29e)}]);return p;}),inquirer[F(0x1f0)](F(0x28a),inquirerSearchList),inquirer[F(0x1f0)](F(0x240),inquirer_pagination_prompt_1[F(0x1e5)]);}[a8B(0x1f6)](T,p){return __awaiter(this,void 0x0,void 0x0,function*(){const TR=a8p,y=yaml[TR(0x24d)](T),G=_[TR(0x2aa)](y['split']('\x0a')[TR(0x1d8)](K=>K[TR(0x1d1)])),q=chalk_1[TR(0x290)][TR(0x1e6)]('-'[TR(0x1c4)](G)+'\x0a'),{confirm:S}=yield inquirer['prompt']([{'type':TR(0x24e),'name':TR(0x20a),'message':''+chalk_1[TR(0x290)][TR(0x284)][TR(0x22b)](TR(0x1ea))+q+chalk_1[TR(0x290)][TR(0x27b)](y)+q,'choices':Object[TR(0x257)](ConfirmChoices)}]);switch(S){case ConfirmChoices[TR(0x295)]:return T;case ConfirmChoices[TR(0x20f)]:throw new Error('Aborted.');case ConfirmChoices[TR(0x2a1)]:return this[TR(0x200)](p);case ConfirmChoices['EDIT']:return this[TR(0x1f6)](yield this['editPayload'](T),p);case ConfirmChoices['SAVE']:yield this[TR(0x1c6)](T);return this['confirmationPrompt'](T,p);default:throw new Error(TR(0x22c));}});}[a8B(0x200)](T,p){return __awaiter(this,void 0x0,void 0x0,function*(){const Tu=a8p;if((p===null||p===void 0x0?void 0x0:p[Tu(0x22d)])!==undefined)this[Tu(0x22d)]=p===null||p===void 0x0?void 0x0:p[Tu(0x22d)];this[Tu(0x2b3)]=p===null||p===void 0x0?void 0x0:p[Tu(0x1cc)];const y={};return yield this[Tu(0x1c1)]([],T['opt'][Tu(0x208)],y),this['resultCache']=y,yield this[Tu(0x1f6)](y,T);});}[a8B(0x1c1)](T,p,y,G){return __awaiter(this,void 0x0,void 0x0,function*(){const Tb=a8p;let q;if(p[Tb(0x1e3)]&&!_[Tb(0x2a0)](p,Tb(0x25c))){if(p[Tb(0x1e3)]['length']>0x1){const {choice:S}=yield inquirer['prompt']([{'type':'list','name':Tb(0x1ee),'message':Tb(0x297)+(T[T[Tb(0x1d1)]-0x1]||'')+Tb(0x244),'choices':p[Tb(0x1e3)]['map'](K=>{var s;return(s=K['description'])!==null&&s!==void 0x0?s:'??';})}]);q=yield this[Tb(0x278)](T,p[Tb(0x1e3)][Tb(0x238)](K=>K['description']===S),y,G);}else{const K=p[Tb(0x1e3)][0x0];_[Tb(0x21d)](K,Tb(0x23e),p[Tb(0x23e)]),q=yield this['getType'](T,K,y,G);}q={};}else q=yield this[Tb(0x278)](T,p,y,G);return q;});}[a8B(0x24b)](T,p,y,G){var q;return __awaiter(this,void 0x0,void 0x0,function*(){const TB=a8p;if(G===![]){const {addEntry:s}=yield inquirer[TB(0x253)]([{'type':TB(0x20a),'name':'addEntry','message':this[TB(0x27f)](p,TB(0x247),T===null||T===void 0x0?void 0x0:T['description']),'default':![]}]);if(!s)return y;}const S=Object['keys']((q=T===null||T===void 0x0?void 0x0:T['properties'])!==null&&q!==void 0x0?q:[]),K=T[TB(0x1d4)]||[];if(S[TB(0x1d1)]>0x0)for(const N of S){const M=p[TB(0x265)](N);if(p[TB(0x1d1)]>0x0&&!_[TB(0x2a0)](y,p[TB(0x1b7)]('.')))_['set'](y,p[TB(0x1b7)]('.'),{});yield this[TB(0x1c1)](M,T[TB(0x25c)][N],y,K['includes'](N));}else yield this[TB(0x278)](p,Object['assign'](Object[TB(0x2ad)]({},T),{'type':'rawObject'}),y,G);return y;});}['askArrayEntry'](T,p,y,G){return __awaiter(this,void 0x0,void 0x0,function*(){const To=a8p;if(p&&y)return!![];const q=p?To(0x247):To(0x293),{addEntry:S}=yield inquirer[To(0x253)]([{'type':To(0x20a),'name':'addEntry','message':this['getPathString'](T,q,p?G:undefined),'default':![]}]);return S;});}['getType'](T,p,y,G){return __awaiter(this,void 0x0,void 0x0,function*(){const Tf=a8p;let q;const S=T[Tf(0x1b7)]('.');switch(p===null||p===void 0x0?void 0x0:p['type']){case Tf(0x29a):{let K=!![];while(yield this['askArrayEntry'](T,K,G,p===null||p===void 0x0?void 0x0:p[Tf(0x23e)])){const s=_[Tf(0x280)](y,S);_[Tf(0x294)](y,S),yield this[Tf(0x278)](T,p[Tf(0x1ca)],y);const N=_[Tf(0x280)](y,S);!_[Tf(0x227)](s)?_[Tf(0x21d)](y,S,[N]):(s[Tf(0x1e8)](N),_[Tf(0x21d)](y,S,s)),K=![];}return q||[];}case'object':{return q=yield this[Tf(0x24b)](p,T,y,G),q;}case Tf(0x1b9):q=(0x0,utils_1[Tf(0x276)])(yield this[Tf(0x291)](T,p,G))||undefined;break;case'string':case Tf(0x261):case Tf(0x25e):default:q=yield this[Tf(0x291)](T,p,G,y);break;}return!_[Tf(0x1da)](q)&&_[Tf(0x21d)](y,S,q),q;});}[a8B(0x291)](T,p,y,G){var q;return __awaiter(this,void 0x0,void 0x0,function*(){const Td=a8p,S=T[T[Td(0x1d1)]-0x1],{defaultValue:defaultValue=(q=p===null||p===void 0x0?void 0x0:p[Td(0x241)])!==null&&q!==void 0x0?q:p===null||p===void 0x0?void 0x0:p[Td(0x290)],choices:choices=p===null||p===void 0x0?void 0x0:p[Td(0x236)],pagination:K}=yield(0x0,api_helpers_1[Td(0x2b2)])(S,this[Td(0x22a)],this[Td(0x2b3)],G,this[Td(0x20c)],T);let s=Td(0x234);if(!_[Td(0x1da)](choices)&&choices['length']>0x0){if(K!==undefined&&K[Td(0x275)]!==undefined)s='pagination-prompt';else choices[Td(0x1d1)]>0x4&&typeof choices[0x0]===Td(0x1d7)?s=Td(0x28a):s='list';}else{if((p===null||p===void 0x0?void 0x0:p[Td(0x1e0)])===Td(0x261))s=Td(0x20a);else{if((p===null||p===void 0x0?void 0x0:p[Td(0x1e0)])===Td(0x25e))s='input';else(p===null||p===void 0x0?void 0x0:p['type'])===Td(0x1b9)&&(s=Td(0x2b4));}}let N=y!==![]?!_['isObject'](defaultValue)?defaultValue:JSON[Td(0x1b8)](defaultValue):_[Td(0x1f3)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)N=N[Td(0x250)]();_[Td(0x2a0)](this[Td(0x22d)],T[Td(0x1b7)]('.'))&&(N=this['resultCache'][T[Td(0x1b7)]('.')]);const M=choices&&y===![]?[Td(0x207),...choices]:choices,i=(p===null||p===void 0x0?void 0x0:p['type'])==='integer',m=Object['assign']({'type':s,'name':'id','message':this[Td(0x224)](T,p),'choices':M,'default':N,'filter':this[Td(0x217)](s,y),'validate':this[Td(0x1cd)](p,y,i)},K),R=(yield inquirer[Td(0x253)]([m]))['id'];if(R==='don\x27t\x20change'||R==='')return undefined;if(i)return parseInt(R,0xa);return R;});}[a8B(0x224)](T,p){const TQ=a8B,y=(p===null||p===void 0x0?void 0x0:p[TQ(0x1e0)])!=='boolean'?TQ(0x2ab):TQ(0x235);return this[TQ(0x27f)](T,y,p===null||p===void 0x0?void 0x0:p[TQ(0x23e)]);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const TD=a8p,T=p=>__awaiter(this,void 0x0,void 0x0,function*(){const TU=a8p;var y;const G=yield this[TU(0x22a)]['list'][TU(0x22f)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':p}}),q=G[TU(0x286)][TU(0x22f)]['map'](S=>S['id']);return{'elements':q,'nextCursor':(y=G['pagination'])===null||y===void 0x0?void 0x0:y['cursor']};});return yield this[TD(0x206)](TD(0x28e),T);});}[a8B(0x28c)](T,p,y,G){return __awaiter(this,void 0x0,void 0x0,function*(){const Tw=a8p,q=y||this[Tw(0x22a)][Tw(0x1bc)]['getCurrentProjectName']();if(_[Tw(0x1da)](q))throw new Error(Tw(0x25d));const S=yield p(q);return yield this[Tw(0x2b5)](T,S,(G?G+Tw(0x228):'')+Tw(0x26c)+q+'\x27');});}[a8B(0x220)](T,p,y,G){return __awaiter(this,void 0x0,void 0x0,function*(){const TA=a8p,q=y||this[TA(0x22a)][TA(0x1bc)][TA(0x26d)]();if(_[TA(0x1da)](q))throw new Error(TA(0x25d));const S=yield p(q);return yield this[TA(0x206)](T,S,(G?G+TA(0x228):'')+TA(0x26c)+q+'\x27');});}[a8B(0x1c8)](){return __awaiter(this,void 0x0,void 0x0,function*(){const TF=a8p,T=p=>__awaiter(this,void 0x0,void 0x0,function*(){const Tc=a8p;var y;const G=yield this[Tc(0x22a)][Tc(0x24e)]['domains']({'options':{'per_page':this[Tc(0x1d9)],'cursor':p}});return{'elements':G[Tc(0x286)][Tc(0x1f7)]['map'](q=>q[Tc(0x223)]),'nextCursor':(y=G[Tc(0x1dc)])===null||y===void 0x0?void 0x0:y['cursor']};});return this[TF(0x206)]('domain',T);});}[a8B(0x298)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Tj=a8p,T=p=>__awaiter(this,void 0x0,void 0x0,function*(){const TZ=a8p;var y;const G=yield this[TZ(0x22a)][TZ(0x24e)][TZ(0x29f)]({'options':{'per_page':this[TZ(0x1d9)],'cursor':p}});return{'elements':G[TZ(0x286)][TZ(0x27d)]['map'](q=>q['id']),'nextCursor':(y=G[TZ(0x1dc)])===null||y===void 0x0?void 0x0:y[TZ(0x1be)]};});return this['askForResourcePaginated'](Tj(0x27d),T);});}[a8B(0x271)](T){const TV=a8B;this[TV(0x20c)]=T;}}exports['InquirerHelper']=InquirerHelper;
1
+ 'use strict';const a8T=a8h;function a8w(){const wH=['service','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','__importDefault','deleteWarningPrompt','askForJob','safeLoad','askForSubdomain','fullName','must\x20be\x20a\x20number,\x20is\x20','js-yaml','addEntry','fetchResourceList','job:\x20\x27','safeDump','token','SAVE','password','apply','not\x20completed','jobs','pagination-prompt','split','oneOf','subdomains','completedAt','__setModuleDefault','defineProperty','askForProject','pathVars','Something\x20unexpected\x20happened.','saveFile','1424WeKVgY','isNaN','\x20characters','example','job\x20runs','message','confirmationPrompt','value','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','backups','set','length','Do\x20you\x20want\x20to\x20add',',\x20supported\x20types:\x20[json|yaml|yml]','tokenPrompt','No,\x20repeat','\x20(startedAt:\x20','builds','template','max','askForSecret','isEmpty','__esModule','boolean','job','getType','Choose\x20the\x20','registerPrompt','Yes,\x20send','getInnerType','askForProjectScopedResourcePaginated','resultCache','isObject','askForBuild','then','choice','minimum','editor','askForResourcePaginated','13730FzJdEn','credentials','12336256DvkiPR','greenBright','opt','done','pipelines','restores','don\x27t\x20change','a\x20Northflank\x20resource','unshift','integer','./pagination/inquirer-pagination-prompt','\x20Example:\x20','repeat','includes','askForPipeline','cursor','prototype','fileName','logSinks','items','get','Unexpected\x20file\x20type:\x20','project','concat','underline','subdomain','askForVolume','Aborted.','hasOwnProperty','found','service:\x20\x27','8267693PpVhzN','prompt','apiClient','defaultPaginationPageSize','job\x20builds','ABORT','getPathString','secrets','input','askForService','elements','templateRuns','validate','InquirerHelper','slice','next','blueBright','toString','maximum','create','askForAddonBackup','Go\x20to\x20editor','ask','service\x20containers','pagination','getCurrentProjectName','contextProvider','minLength','No,\x20but\x20save\x20as\x20file','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','whiteBright','No\x20','__createBinding','Context\x20with\x20name\x20\x27','search-list','body','\x20characters,\x20is\x20','trim','Writing\x20configuration\x20failed:\x20','__awaiter','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','askGeneric','to\x20use:','reset','askForTemplateRun','maxLength','string','confirm','tmpCmdPath','service\x20build','override','YES','secret','452655HlCaXv','startedAt','addons','stringify','properties','object','runs','editedResult','yellowBright','charAt','containers','bgGrey','./api-helpers','\x20type?','all-job-runs','propToType','\x20and\x20it\x20','545248OFfKrY','blue','rawObject','list','\x20(completedAt:\x20','askForResource','addon','job\x20containers','10xRCDsr','restore','askForCredentials','confirmation','writable','askForAddon','default','test','filter','map','values','services','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','\x20to\x20use:','addon:\x20\x27','editPayload','askForAddonRestore','throw','warning','for\x20this\x20','createdAt','1kmOGQo','find','loginPrompt','json','red','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','./utils','project:\x20\x27','REPEAT','Do\x20you\x20want\x20to\x20add\x20more','isUndefined','No\x20containers\x20found','isValidJSON','all-containers','push','bold','keys','log\x20sink','askForTemplate','call','pop','inquirer','Enter\x20the\x20','array','unset','name','Please\x20confirm\x20following\x20configuration:\x0a','\x20in\x20','askForContainer','type','join','green','setPathVars','chalk','askForDomain','assign','pattern','registryCredentials','retrievePayloadViaInteractiveCli','\x20(full\x20domain:\x20','6PpDLJd','templates','success','domain\x20(','description','Configuration\x20file\x20written\x20to\x20','main-context','has','What\x27s\x20the\x20','projects','isBoolean','Choose\x20the\x20login\x20token:','domains','writeFileSync','Should\x20it\x20be','8378541lHVnIp','askArrayEntry','1992406HdQizo','Template\x20id\x20not\x20provided.','data'];a8w=function(){return wH;};return a8w();}(function(w,h){const X=a8h,G=w();while(!![]){try{const P=-parseInt(X(0x24f))/0x1*(-parseInt(X(0x288))/0x2)+parseInt(X(0x221))/0x3+-parseInt(X(0x2aa))/0x4*(parseInt(X(0x2d1))/0x5)+parseInt(X(0x277))/0x6*(parseInt(X(0x2f2))/0x7)+-parseInt(X(0x2d3))/0x8+parseInt(X(0x286))/0x9+-parseInt(X(0x23a))/0xa*(-parseInt(X(0x232))/0xb);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a8w,0xc0a68));function a8h(w,h){const G=a8w();return a8h=function(P,v){P=P-0x1f0;let O=G[P];return O;},a8h(w,h);}var __createBinding=this&&this[a8T(0x20c)]||(Object['create']?function(w,h,G,P){const I=a8T;if(P===undefined)P=G;var v=Object['getOwnPropertyDescriptor'](h,G);(!v||('get'in v?!h['__esModule']:v[I(0x23e)]||v['configurable']))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object['defineProperty'](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this[a8T(0x2a4)]||(Object[a8T(0x1ff)]?function(w,h){Object['defineProperty'](w,'default',{'enumerable':!![],'value':h});}:function(w,h){w['default']=h;}),__importStar=this&&this['__importStar']||function(w){const k=a8T;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!==k(0x240)&&Object[k(0x2e3)][k(0x2ef)][k(0x262)](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__awaiter=this&&this[a8T(0x213)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const q=a8h;function l(A){const Y=a8h;try{U(v[Y(0x1fb)](A));}catch(D){a(D);}}function B(A){const x=a8h;try{U(v[x(0x24b)](A));}catch(D){a(D);}}function U(A){const b=a8h;A[b(0x2d6)]?Z(A[b(0x2b1)]):O(A[b(0x2b1)])[b(0x2cc)](l,B);}U((v=v[q(0x29c)](w,h||[]))[q(0x1fb)]());});},__importDefault=this&&this[a8T(0x28d)]||function(w){const f=a8T;return w&&w[f(0x2c0)]?w:{'default':w};};Object[a8T(0x2a5)](exports,'__esModule',{'value':!![]}),exports[a8T(0x1f9)]=void 0x0;const _=__importStar(require('lodash')),chalk_1=__importDefault(require(a8T(0x270))),fs=__importStar(require('fs')),utils_1=require(a8T(0x255)),api_helpers_1=require(a8T(0x22d)),inquirer_pagination_prompt_1=require(a8T(0x2dd)),inquirer=require(a8T(0x264)),inquirerSearchList=require('inquirer-search-list'),yaml=require(a8T(0x294));var ConfirmChoices;(function(w){const e=a8T;w[e(0x21f)]=e(0x2c6),w[e(0x257)]=e(0x2b9),w['EDIT']='No,\x20edit',w[e(0x29a)]=e(0x208),w['ABORT']='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(w){const i=a8T;this[i(0x2f4)]=w,this[i(0x2f5)]=0x32,this[i(0x249)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const u=i,{editedResult:G}=yield inquirer['prompt']([{'type':u(0x2cf),'name':u(0x228),'message':u(0x201),'default':yaml['safeDump'](h)}]);return yaml[u(0x290)](G);}),this[i(0x2a9)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const t=i,G=Z=>t(0x2e8)+Z+t(0x2b7);function P(){return __awaiter(this,void 0x0,void 0x0,function*(){const S=a8h;return inquirer[S(0x2f3)]([{'type':S(0x1f4),'name':S(0x2e4),'message':'Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','validate':Z=>new RegExp('.*\x5c.(json|yaml|yml)$')[S(0x241)](Z)?!![]:G(Z)}]);});}const {fileName:v}=yield P(),O=v[t(0x1fd)]()[t(0x2a0)]('.')[t(0x263)]();try{switch(O){case t(0x252):(0x0,utils_1[t(0x279)])(t(0x27c)+v);return fs[t(0x284)](v,JSON[t(0x224)](h,null,'\x20\x20'));case'yaml':case'yml':(0x0,utils_1[t(0x279)])('Configuration\x20file\x20written\x20to\x20'+v);return fs['writeFileSync'](v,yaml[t(0x298)](h));default:(0x0,utils_1[t(0x24c)])(G(O));}}catch(Z){(0x0,utils_1['warning'])(t(0x212)+Z[t(0x2af)]);}return undefined;}),this['filter']=(h,G)=>P=>{const V=i,v=typeof P===V(0x21a)?P[V(0x211)]():P;return G===![]&&v==='don\x27t\x20change'?'':v;},this[i(0x1f8)]=(h,G,P)=>v=>{const C=i,O=[];if(v===''||v===C(0x2d9)){if(G!==![])O[C(0x25d)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}h['type']===C(0x21a)&&!_[C(0x259)](h['pattern'])&&O[C(0x25d)](new RegExp(h[C(0x273)])['test'](v)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+h[C(0x273)]+'\x27');h[C(0x26c)]===C(0x21a)&&!_[C(0x259)](h['minLength'])&&O[C(0x25d)](v[C(0x2b5)]>=h[C(0x207)]?!![]:C(0x214)+h[C(0x207)]+'\x20characters,\x20is\x20'+v[C(0x2b5)]+C(0x2ac));h[C(0x26c)]===C(0x21a)&&!_[C(0x259)](h[C(0x219)])&&O[C(0x25d)](v[C(0x2b5)]<=h[C(0x219)]?!![]:C(0x246)+h['maxLength']+C(0x210)+v[C(0x2b5)]+C(0x2ac));P&&Number[C(0x2ab)](parseInt(v,0xa))&&O[C(0x25d)](C(0x293)+v);h[C(0x26c)]===C(0x2dc)&&!_['isUndefined'](h['minimum'])&&O['push'](v>=h[C(0x2ce)]?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+h[C(0x2ce)]);h[C(0x26c)]===C(0x2dc)&&!_[C(0x259)](h[C(0x1fe)])&&O['push'](v<=h[C(0x1fe)]?!![]:C(0x209)+h[C(0x1fe)]);if(h[C(0x26c)]===C(0x234)){const l=(0x0,utils_1[C(0x25b)])(v);O['push'](l===![]||_[C(0x2bf)](l)?C(0x254):!![]);}const Z=O[C(0x242)](B=>B!==!![]),a=(h===null||h===void 0x0?void 0x0:h[C(0x2ad)])?'\x0a'+chalk_1[C(0x240)][C(0x253)]('>>')+C(0x2de)+chalk_1[C(0x240)][C(0x20a)](JSON[C(0x224)](h[C(0x2ad)])):'';return Z['length']>0x0?Z[C(0x26d)](chalk_1['default'][C(0x2eb)](C(0x231)))+a:!![];},this['getPathString']=(h,G,P)=>{const M=i,v=h[h[M(0x2b5)]-0x1];function O(){const Q=M;return h[Q(0x1fa)](0x0,-0x1)['map'](l=>l[Q(0x22a)](0x0)['toUpperCase']()+l[Q(0x1fa)](0x1))[Q(0x26d)]('>');}const Z=h[M(0x2b5)]>0x1?chalk_1[M(0x240)][M(0x22c)][M(0x20a)](O())+':\x20':'',a=P?'\x20('+chalk_1[M(0x240)][M(0x233)](P)+')':'';return chalk_1[M(0x240)][M(0x217)](''+Z+G+'\x20'+chalk_1['default'][M(0x25e)][M(0x2d4)](v)+a+'?');},this[i(0x237)]=(h,G,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const H=i;if(G[H(0x2b5)]<0x1){const Z=P?H(0x24d)+P:H(0x2f0);throw new Error(H(0x20b)+h+'\x20'+Z+'.');}const v='Choose\x20the\x20'+h+H(0x247),O=G[H(0x2b5)]>0x4?H(0x20e):H(0x235);return(yield inquirer['prompt']([{'type':O,'name':H(0x268),'message':v,'choices':G}]))['name'];}),this[i(0x2d0)]=(h,G,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const n=i,{elements:v,nextCursor:O}=yield G();if(v[n(0x2b5)]<0x1){const l=P?n(0x24d)+P:n(0x2f0);throw new Error(n(0x20b)+h+'\x20'+l+'.');}const Z=n(0x2c4)+h+'\x20to\x20use:';if(O!==undefined){const B=({nextPageCursor:U})=>__awaiter(this,void 0x0,void 0x0,function*(){const r=n,A=yield G(U);return{'elements':A[r(0x1f6)],'nextPageCursor':A['nextCursor']};});return(yield inquirer[n(0x2f3)]([{'type':n(0x29f),'name':'name','message':Z,'choices':v,'nextPageCursor':O,'loadMore':B}]))[n(0x268)];}const a=v['length']>0x4?'search-list':n(0x235);return(yield inquirer[n(0x2f3)]([{'type':a,'name':n(0x268),'message':Z,'choices':v}]))[n(0x268)];}),this[i(0x215)]=(h,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const j=i,P=''+(G?'('+chalk_1[j(0x240)]['blue'](G)+')\x20':''),v=j(0x265)+chalk_1[j(0x240)]['green'](h)+'\x20'+P+j(0x216),O=this[j(0x1f8)]({'type':j(0x21a),'required':!![]});return(yield inquirer[j(0x2f3)]([{'type':j(0x1f4),'name':j(0x268),'message':v,'validate':O}]))[j(0x268)];}),this['askConfirm']=h=>__awaiter(this,void 0x0,void 0x0,function*(){const m=i;return(yield inquirer['prompt']([{'type':m(0x21b),'name':m(0x268),'message':h,'default':!![]}]))[m(0x268)];}),this[i(0x1f5)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const y=a8h;var O;const Z=yield this['apiClient'][y(0x235)][y(0x245)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}}),a=Z[y(0x28a)][y(0x245)][y(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[y(0x204)])===null||O===void 0x0?void 0x0:O['cursor']};});return this[E(0x2c8)]('service',G,h);}),this[i(0x261)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const g=i,h=G=>__awaiter(this,void 0x0,void 0x0,function*(){const K=a8h;var P;const v=yield this[K(0x2f4)][K(0x235)][K(0x278)]({'options':{'per_page':this[K(0x2f5)],'cursor':G}}),O=v[K(0x28a)]['templates'][K(0x243)](Z=>Z['id']);return{'elements':O,'nextCursor':(P=v[K(0x204)])===null||P===void 0x0?void 0x0:P['cursor']};});return this[g(0x2d0)](g(0x2bc),h);}),this[i(0x218)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=i;if(_[J(0x259)](h))throw new Error(J(0x289));const G=P=>__awaiter(this,void 0x0,void 0x0,function*(){const R=J;var v;let O=this[R(0x2f5)];const Z=yield this[R(0x2f4)]['list'][R(0x1f7)]({'parameters':{'templateId':h},'options':{'per_page':O,'cursor':P}}),a=Z['data'][R(0x1f7)][R(0x243)](l=>l['id']+R(0x2ba)+l[R(0x24e)]+')');return{'elements':a,'nextCursor':(v=Z[R(0x204)])===null||v===void 0x0?void 0x0:v['cursor']};});return this[J(0x2d0)]('template\x20run',G)[J(0x2cc)](P=>P['split']('\x20')[0x0]);}),this['askForLogSink']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=i,h=G=>__awaiter(this,void 0x0,void 0x0,function*(){const N=a8h;var P;let v=this[N(0x2f5)];const O=yield this['apiClient'][N(0x235)][N(0x2e5)]({'options':{'per_page':v,'cursor':G}}),Z=O[N(0x28a)][N(0x2e5)][N(0x243)](a=>a['id']);return{'elements':Z,'nextCursor':(P=O[N(0x204)])===null||P===void 0x0?void 0x0:P['cursor']};});return this[z(0x2d0)](z(0x260),h);}),this[i(0x2e1)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const o=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const F=a8h;var O;const Z=yield this[F(0x2f4)][F(0x235)][F(0x2d7)]({'parameters':{'projectId':P},'options':{'per_page':this[F(0x2f5)],'cursor':v}}),a=Z[F(0x28a)]['pipelines'][F(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[F(0x204)])===null||O===void 0x0?void 0x0:O[F(0x2e2)]};});return this[o(0x2c8)]('pipeline',G,h);}),this[i(0x28f)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const d=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const L=a8h;var O;const Z=yield this['apiClient']['list']['jobs']({'parameters':{'projectId':P},'options':{'per_page':this[L(0x2f5)],'cursor':v}}),a=Z['data'][L(0x29e)][L(0x243)](l=>l['id']);return{'elements':a,'nextCursor':(O=Z[L(0x204)])===null||O===void 0x0?void 0x0:O[L(0x2e2)]};});return this['askForProjectScopedResourcePaginated'](d(0x2c2),G,h);}),this['askForJobRun']=(h,G,P=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w0=i,v=w0(0x22f),O=Z=>a=>__awaiter(this,void 0x0,void 0x0,function*(){const w1=w0;var l;const B=yield this[w1(0x2f4)][w1(0x2e7)][w1(0x2c2)][w1(0x227)]({'parameters':{'projectId':Z,'jobId':h},'options':{'per_page':this[w1(0x2f5)],'cursor':a}}),U=B[w1(0x28a)][w1(0x227)][w1(0x243)](A=>A['id']+w1(0x2ba)+A[w1(0x222)]+')');return P&&U['unshift'](v),{'elements':U,'nextCursor':(l=B[w1(0x204)])===null||l===void 0x0?void 0x0:l['cursor']};});return this[w0(0x2c8)](w0(0x2ae),O,G,'job:\x20\x27'+h+'\x27')[w0(0x2cc)](Z=>{const w2=w0,a=Z[w2(0x2a0)]('\x20')[0x0];if(a===v)return undefined;return a;});}),this[i(0x2cb)]=(h,G,P,v=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=i,O='all-builds';if(P!==undefined){const Z=a=>l=>__awaiter(this,void 0x0,void 0x0,function*(){const w3=a8h;var B;const U=yield this['apiClient'][w3(0x2e7)][w3(0x2c2)][w3(0x2bb)]({'parameters':{'projectId':a,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':l}}),A=U['data'][w3(0x2bb)][w3(0x243)](D=>D['id']+w3(0x2ba)+D[w3(0x24e)]+')');return v&&A[w3(0x2db)](O),{'elements':A,'nextCursor':(B=U[w3(0x204)])===null||B===void 0x0?void 0x0:B[w3(0x2e2)]};});return this[w4(0x2c8)](w4(0x1f0),Z,h,w4(0x297)+P+'\x27')[w4(0x2cc)](a=>{const w5=w4,l=a[w5(0x2a0)]('\x20')[0x0];if(l===O)return undefined;return l;});}if(G!==undefined){const a=l=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=w4;var U;const A=yield this['apiClient'][w6(0x2e7)][w6(0x28b)][w6(0x2bb)]({'parameters':{'projectId':l,'serviceId':G},'options':{'per_page':this[w6(0x2f5)],'cursor':B}}),D=A[w6(0x28a)][w6(0x2bb)][w6(0x243)](p=>p['id']+w6(0x2ba)+p['createdAt']+')');if(v)D[w6(0x2db)](O);return{'elements':D,'nextCursor':(U=A[w6(0x204)])===null||U===void 0x0?void 0x0:U[w6(0x2e2)]};});return this[w4(0x2c8)](w4(0x21d),a,h,'service:\x20\x27'+P+'\x27')[w4(0x2cc)](l=>{const w7=w4,B=l[w7(0x2a0)]('\x20')[0x0];if(B===O)return undefined;return B;});}throw new Error('No\x20builds\x20found');}),this[i(0x26b)]=(h,G,P,v=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w8=i,O=w8(0x25c);if(P!==undefined){const Z=a=>l=>__awaiter(this,void 0x0,void 0x0,function*(){const w9=w8;var B,U;const A=yield this['apiClient'][w9(0x2e7)][w9(0x2c2)]['containers']({'parameters':{'projectId':a,'jobId':P},'options':{'per_page':this[w9(0x2f5)],'cursor':l}}),D=(B=A[w9(0x28a)][w9(0x22b)])!==null&&B!==void 0x0?B:[],p=D===null||D===void 0x0?void 0x0:D[w9(0x243)](s=>s[w9(0x268)]+'\x20(startedAt:\x20'+s[w9(0x24e)]+')');return v&&p['unshift'](O),{'elements':p,'nextCursor':(U=A['pagination'])===null||U===void 0x0?void 0x0:U['cursor']};});return this['askForProjectScopedResourcePaginated'](w8(0x239),Z,h,'job:\x20\x27'+P+'\x27')[w8(0x2cc)](a=>{const ww=w8,l=a[ww(0x2a0)]('\x20')[0x0];if(l===O)return undefined;return l;});}if(G!==undefined){const a=l=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const wh=w8;var U,A;const D=yield this['apiClient'][wh(0x2e7)][wh(0x28b)]['containers']({'parameters':{'projectId':l,'serviceId':G},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}}),p=(U=D[wh(0x28a)][wh(0x22b)])!==null&&U!==void 0x0?U:[],s=p[wh(0x243)](W=>W[wh(0x268)]+wh(0x2ba)+W['createdAt']+')');if(v)s===null||s===void 0x0?void 0x0:s[wh(0x2db)](O);return{'elements':s,'nextCursor':(A=D[wh(0x204)])===null||A===void 0x0?void 0x0:A[wh(0x2e2)]};});return this[w8(0x2c8)](w8(0x203),a,h,w8(0x2f1)+P+'\x27')[w8(0x2cc)](l=>{const wG=w8,B=l[wG(0x2a0)]('\x20')[0x0];if(B===O)return undefined;return B;});}throw new Error(w8(0x25a));}),this[i(0x23f)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wv=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const wP=a8h;var O;const Z=yield this[wP(0x2f4)][wP(0x235)]['addons']({'parameters':{'projectId':P},'options':{'per_page':this[wP(0x2f5)],'cursor':v}});return{'elements':Z[wP(0x28a)][wP(0x223)][wP(0x243)](a=>a['id']),'nextCursor':(O=Z['pagination'])===null||O===void 0x0?void 0x0:O[wP(0x2e2)]};});return this['askForProjectScopedResourcePaginated'](wv(0x238),G,h);}),this[i(0x200)]=(h,G)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=v=>O=>__awaiter(this,void 0x0,void 0x0,function*(){const wO=a8h;var Z;const a=yield this[wO(0x2f4)]['get'][wO(0x238)][wO(0x2b3)]({'parameters':{'projectId':v,'addonId':G},'options':{'per_page':this[wO(0x2f5)],'cursor':O}});return{'elements':a[wO(0x28a)][wO(0x2b3)][wO(0x243)](l=>l['id']+wO(0x236)+(l[wO(0x2a3)]||wO(0x29d))+')'),'nextCursor':(Z=a[wO(0x204)])===null||Z===void 0x0?void 0x0:Z['cursor']};});return this['askForProjectScopedResourcePaginated']('backups',P,h,'addon:\x20\x27'+G+'\x27')['then'](v=>v['split']('\x20')[0x0]);}),this[i(0x24a)]=(h,G,P)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wa=i,v=O=>Z=>__awaiter(this,void 0x0,void 0x0,function*(){const wZ=a8h;var a;const l=yield this[wZ(0x2f4)][wZ(0x2e7)][wZ(0x238)]['restores']({'parameters':{'projectId':O,'addonId':G,'backupId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Z}});return{'elements':l[wZ(0x28a)][wZ(0x2d8)][wZ(0x243)](B=>B['id']+wZ(0x236)+(B['completedAt']||'not\x20completed')+')'),'nextCursor':(a=l['pagination'])===null||a===void 0x0?void 0x0:a['cursor']};});return this[wa(0x2c8)](wa(0x23b),v,h,wa(0x248)+G+'\x27')['then'](O=>O[wa(0x2a0)]('\x20')[0x0]);}),this[i(0x2ed)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=P=>__awaiter(this,void 0x0,void 0x0,function*(){const wl=a8h;return(yield this['apiClient'][wl(0x235)]['volumes']({'parameters':{'projectId':P}}))[wl(0x28a)][wl(0x243)](v=>v['id']);});return this['askForProjectScopedResource']('volume',G,h);}),this[i(0x2be)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wU=i,G=P=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const wB=a8h;var O;const Z=yield this[wB(0x2f4)][wB(0x235)][wB(0x1f3)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}});return{'elements':Z[wB(0x28a)][wB(0x1f3)][wB(0x243)](a=>a['id']),'nextCursor':(O=Z['pagination'])===null||O===void 0x0?void 0x0:O['cursor']};});return this[wU(0x2c8)](wU(0x220),G,h);}),this[i(0x291)]=h=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const wA=i,G=yield this[wA(0x2f4)][wA(0x2e7)]['domain']({'parameters':{'domain':h}}),P=G[wA(0x28a)][wA(0x2a2)][wA(0x243)](O=>O[wA(0x268)]+wA(0x276)+O[wA(0x292)]+')'),v=wA(0x27a)+h+')';return this['askForResource'](wA(0x2ec),P,v)[wA(0x2cc)](O=>O['split']('\x20')[0x0]);}),this[i(0x28e)]=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wD=i;return(yield inquirer[wD(0x2f3)]([{'type':wD(0x21b),'name':'confirmation','message':chalk_1[wD(0x240)][wD(0x229)]('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(h||wD(0x2da))+wD(0x2b2)),'default':![]}]))[wD(0x23d)];}),this[i(0x251)]=(h,G)=>__awaiter(this,void 0x0,void 0x0,function*(){const wp=i;_[wp(0x259)](h[wp(0x268)])&&(G['length']<=0x0?_[wp(0x2b4)](h,wp(0x268),wp(0x240)):yield(0x0,utils_1['retry'])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const ws=wp,{name:P}=yield inquirer[ws(0x2f3)]([{'type':ws(0x1f4),'name':ws(0x268),'message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':ws(0x27d)}]);if(!h[ws(0x21e)]&&G[ws(0x250)](v=>v[ws(0x268)]===P)){const {c:v}=yield inquirer[ws(0x2f3)]([{'type':'confirm','name':'c','message':ws(0x20d)+P+ws(0x28c),'default':![]}]);if(v===![])throw new Error('Context\x20name\x20already\x20exists.');_['set'](h,ws(0x21e),!![]);}_[ws(0x2b4)](h,'name',P);})));if(_[wp(0x259)](h[wp(0x299)])){const P=yield this[wp(0x2b8)]();_[wp(0x2b4)](h,'token',P);}return h;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const wW=i,{token:h}=yield inquirer[wW(0x2f3)]([{'type':wW(0x29b),'name':wW(0x299),'mask':'*','message':wW(0x282)}]);return h;}),inquirer[i(0x2c5)]('search-list',inquirerSearchList),inquirer[i(0x2c5)](i(0x29f),inquirer_pagination_prompt_1['DynamicReloadPaginationPrompt']);}[a8T(0x2b0)](w,h){return __awaiter(this,void 0x0,void 0x0,function*(){const wX=a8h,G=yaml[wX(0x298)](w),P=_[wX(0x2bd)](G[wX(0x2a0)]('\x0a')['map'](Z=>Z['length'])),v=chalk_1[wX(0x240)]['grey']('-'[wX(0x2df)](P)+'\x0a'),{confirm:O}=yield inquirer['prompt']([{'type':wX(0x235),'name':wX(0x21b),'message':''+chalk_1['default'][wX(0x25e)][wX(0x26e)](wX(0x269))+v+chalk_1[wX(0x240)][wX(0x1fc)](G)+v,'choices':Object[wX(0x244)](ConfirmChoices)}]);switch(O){case ConfirmChoices['YES']:return w;case ConfirmChoices[wX(0x1f1)]:throw new Error(wX(0x2ee));case ConfirmChoices[wX(0x257)]:return this['retrievePayloadViaInteractiveCli'](h);case ConfirmChoices['EDIT']:return this[wX(0x2b0)](yield this[wX(0x249)](w),h);case ConfirmChoices[wX(0x29a)]:yield this['saveFile'](w);return this[wX(0x2b0)](w,h);default:throw new Error(wX(0x2a8));}});}[a8T(0x275)](w,h){return __awaiter(this,void 0x0,void 0x0,function*(){const wT=a8h;if((h===null||h===void 0x0?void 0x0:h[wT(0x2c9)])!==undefined)this[wT(0x2c9)]=h===null||h===void 0x0?void 0x0:h['resultCache'];this[wT(0x21c)]=h===null||h===void 0x0?void 0x0:h['cmdPath'];const G={};return yield this[wT(0x230)]([],w[wT(0x2d5)][wT(0x20f)],G),this[wT(0x2c9)]=G,yield this['confirmationPrompt'](G,w);});}[a8T(0x230)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wI=a8h;let v;if(h[wI(0x2a1)]&&!_[wI(0x27e)](h,wI(0x225))){if(h[wI(0x2a1)][wI(0x2b5)]>0x1){const {choice:O}=yield inquirer[wI(0x2f3)]([{'type':'list','name':wI(0x2cd),'message':wI(0x27f)+(w[w[wI(0x2b5)]-0x1]||'')+wI(0x22e),'choices':h[wI(0x2a1)]['map'](Z=>{const wk=wI;var a;return(a=Z[wk(0x27b)])!==null&&a!==void 0x0?a:'??';})}]);v=yield this[wI(0x2c3)](w,h[wI(0x2a1)][wI(0x250)](Z=>Z[wI(0x27b)]===O),G,P);}else{const Z=h[wI(0x2a1)][0x0];_['set'](Z,wI(0x27b),h[wI(0x27b)]),v=yield this[wI(0x2c3)](w,Z,G,P);}v={};}else v=yield this[wI(0x2c3)](w,h,G,P);return v;});}['getInnerType'](w,h,G,P){var v;return __awaiter(this,void 0x0,void 0x0,function*(){const wY=a8h;if(P===![]){const {addEntry:a}=yield inquirer[wY(0x2f3)]([{'type':wY(0x21b),'name':'addEntry','message':this[wY(0x1f2)](h,wY(0x2b6),w===null||w===void 0x0?void 0x0:w[wY(0x27b)]),'default':![]}]);if(!a)return G;}const O=Object[wY(0x25f)]((v=w===null||w===void 0x0?void 0x0:w[wY(0x225)])!==null&&v!==void 0x0?v:[]),Z=w['required']||[];if(O[wY(0x2b5)]>0x0)for(const l of O){const B=h[wY(0x2ea)](l);if(h['length']>0x0&&!_[wY(0x27e)](G,h[wY(0x26d)]('.')))_[wY(0x2b4)](G,h[wY(0x26d)]('.'),{});yield this['propToType'](B,w['properties'][l],G,Z[wY(0x2e0)](l));}else yield this[wY(0x2c3)](h,Object['assign'](Object['assign']({},w),{'type':wY(0x234)}),G,P);return G;});}[a8T(0x287)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wx=a8h;if(h&&G)return!![];const v=h?wx(0x2b6):wx(0x258),{addEntry:O}=yield inquirer['prompt']([{'type':'confirm','name':wx(0x295),'message':this[wx(0x1f2)](w,v,h?P:undefined),'default':![]}]);return O;});}[a8T(0x2c3)](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wb=a8h;let v;const O=w[wb(0x26d)]('.');switch(h===null||h===void 0x0?void 0x0:h[wb(0x26c)]){case wb(0x266):{let Z=!![];while(yield this[wb(0x287)](w,Z,P,h===null||h===void 0x0?void 0x0:h['description'])){const a=_[wb(0x2e7)](G,O);_[wb(0x267)](G,O),yield this['getType'](w,h[wb(0x2e6)],G);const l=_['get'](G,O);!_['isArray'](a)?_[wb(0x2b4)](G,O,[l]):(a[wb(0x25d)](l),_[wb(0x2b4)](G,O,a)),Z=![];}return v||[];}case wb(0x226):{return v=yield this[wb(0x2c7)](h,w,G,P),v;}case wb(0x234):v=(0x0,utils_1[wb(0x25b)])(yield this[wb(0x202)](w,h,P))||undefined;break;case wb(0x21a):case wb(0x2c1):case wb(0x2dc):default:v=yield this[wb(0x202)](w,h,P,G);break;}return!_['isUndefined'](v)&&_['set'](G,O,v),v;});}[a8T(0x202)](w,h,G,P){var v;return __awaiter(this,void 0x0,void 0x0,function*(){const wq=a8h,O=w[w['length']-0x1],{defaultValue:defaultValue=(v=h===null||h===void 0x0?void 0x0:h[wq(0x2ad)])!==null&&v!==void 0x0?v:h===null||h===void 0x0?void 0x0:h['default'],choices:choices=h===null||h===void 0x0?void 0x0:h['enum'],pagination:Z}=yield(0x0,api_helpers_1[wq(0x296)])(O,this[wq(0x2f4)],this[wq(0x21c)],P,this['pathVars'],w);let a=wq(0x1f4);if(!_[wq(0x259)](choices)&&choices['length']>0x0){if(Z!==undefined&&Z['nextPageCursor']!==undefined)a='pagination-prompt';else choices[wq(0x2b5)]>0x4&&typeof choices[0x0]===wq(0x21a)?a=wq(0x20e):a=wq(0x235);}else{if((h===null||h===void 0x0?void 0x0:h[wq(0x26c)])===wq(0x2c1))a=wq(0x21b);else{if((h===null||h===void 0x0?void 0x0:h['type'])===wq(0x2dc))a='input';else(h===null||h===void 0x0?void 0x0:h[wq(0x26c)])===wq(0x234)&&(a=wq(0x2cf));}}let l=G!==![]?!_[wq(0x2ca)](defaultValue)?defaultValue:JSON[wq(0x224)](defaultValue):_[wq(0x281)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)l=l['toString']();_[wq(0x27e)](this[wq(0x2c9)],w['join']('.'))&&(l=this[wq(0x2c9)][w[wq(0x26d)]('.')]);const B=choices&&G===![]?[wq(0x2d9),...choices]:choices,U=(h===null||h===void 0x0?void 0x0:h['type'])==='integer',A=Object[wq(0x272)]({'type':a,'name':'id','message':this['getQuestionString'](w,h),'choices':B,'default':l,'filter':this[wq(0x242)](a,G),'validate':this['validate'](h,G,U)},Z),D=(yield inquirer[wq(0x2f3)]([A]))['id'];if(D===wq(0x2d9)||D==='')return undefined;if(U)return parseInt(D,0xa);return D;});}['getQuestionString'](w,h){const wf=a8T,G=(h===null||h===void 0x0?void 0x0:h[wf(0x26c)])!==wf(0x2c1)?'What\x20do\x20you\x20want\x20to\x20use\x20as':wf(0x285);return this[wf(0x1f2)](w,G,h===null||h===void 0x0?void 0x0:h[wf(0x27b)]);}[a8T(0x2a6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wi=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const we=a8h;var G;const P=yield this[we(0x2f4)]['list'][we(0x280)]({'options':{'per_page':this[we(0x2f5)],'cursor':h}}),v=P[we(0x28a)][we(0x280)][we(0x243)](O=>O['id']);return{'elements':v,'nextCursor':(G=P[we(0x204)])===null||G===void 0x0?void 0x0:G[we(0x2e2)]};});return yield this[wi(0x2d0)](wi(0x2e9),w);});}['askForProjectScopedResource'](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wu=a8h,v=G||this[wu(0x2f4)]['contextProvider'][wu(0x205)]();if(_['isUndefined'](v))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const O=yield h(v);return yield this[wu(0x237)](w,O,(P?P+wu(0x26a):'')+'project:\x20\x27'+v+'\x27');});}['askForProjectScopedResourcePaginated'](w,h,G,P){return __awaiter(this,void 0x0,void 0x0,function*(){const wt=a8h,v=G||this['apiClient'][wt(0x206)][wt(0x205)]();if(_[wt(0x259)](v))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const O=yield h(v);return yield this[wt(0x2d0)](w,O,(P?P+'\x20in\x20':'')+wt(0x256)+v+'\x27');});}[a8T(0x271)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wV=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wS=a8h;var G;const P=yield this[wS(0x2f4)][wS(0x235)][wS(0x283)]({'options':{'per_page':this[wS(0x2f5)],'cursor':h}});return{'elements':P[wS(0x28a)][wS(0x283)]['map'](v=>v[wS(0x268)]),'nextCursor':(G=P[wS(0x204)])===null||G===void 0x0?void 0x0:G[wS(0x2e2)]};});return this[wV(0x2d0)]('domain',w);});}[a8T(0x23c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const wM=a8h,w=h=>__awaiter(this,void 0x0,void 0x0,function*(){const wC=a8h;var G;const P=yield this[wC(0x2f4)][wC(0x235)][wC(0x274)]({'options':{'per_page':this[wC(0x2f5)],'cursor':h}});return{'elements':P[wC(0x28a)][wC(0x2d2)][wC(0x243)](v=>v['id']),'nextCursor':(G=P[wC(0x204)])===null||G===void 0x0?void 0x0:G[wC(0x2e2)]};});return this[wM(0x2d0)](wM(0x2d2),w);});}[a8T(0x26f)](w){const wQ=a8T;this[wQ(0x2a7)]=w;}}exports[a8T(0x1f9)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9D=a9p;(function(T,p){const U=a9p,y=T();while(!![]){try{const G=-parseInt(U(0x1b7))/0x1+-parseInt(U(0x18f))/0x2*(-parseInt(U(0x1a3))/0x3)+parseInt(U(0x1a5))/0x4+parseInt(U(0x18a))/0x5*(parseInt(U(0x1b0))/0x6)+parseInt(U(0x1b2))/0x7*(parseInt(U(0x1a0))/0x8)+-parseInt(U(0x18b))/0x9*(-parseInt(U(0x188))/0xa)+parseInt(U(0x19c))/0xb*(-parseInt(U(0x185))/0xc);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a9T,0x2b01f));function a9T(){const P=['3108193EbrSbR','message','parse','success','149096seqJZj','NorthflankApiBrowserLogin','unable\x20to\x20parse\x20message:\x20','18VkarBp','init','672820JhyorQ','duplex','Unable\x20to\x20open\x20browser:\x20','initPackage','/v1/cli-login','stringify','end','next','getOwnPropertyDescriptor','type','SIGINT','132954EgxpvJ','baseUrl','14szKJuq','Login\x20process\x20stopped\x20before\x20completed','exit','login-failure','configurable','341609hFACmI','http:','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','__createBinding','EventEmitter','https:','hasOwnProperty','startLogin','create','createWebSocketStream','error\x20happened\x20during\x20browser\x20login:\x20','prototype','emit','__importStar','openBrowser','events','handleError','Unexpected\x20response','__awaiter','finally','status','12lfLyZw','toString','browser-opened','10PXFbYW','replace','65INiuGW','667323eLXNaS','Failure\x20during\x20login:\x20','idle','catch','77546eJBJWm','__esModule','write','aborted','wss:','error','defineProperty','default','ws:','writable','data','value','removeListener'];a9T=function(){return P;};return a9T();}function a9p(T,p){const y=a9T();return a9p=function(G,q){G=G-0x181;let S=y[G];return S;},a9p(T,p);}var __createBinding=this&&this[a9D(0x1ba)]||(Object['create']?function(T,p,y,G){const w=a9D;if(G===undefined)G=y;var q=Object[w(0x1ad)](p,y);(!q||('get'in q?!p[w(0x190)]:q[w(0x198)]||q[w(0x1b6)]))&&(q={'enumerable':!![],'get':function(){return p[y];}}),Object['defineProperty'](T,G,q);}:function(T,p,y,G){if(G===undefined)G=y;T[G]=p[y];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a9D(0x1bf)]?function(T,p){const A=a9D;Object[A(0x195)](T,A(0x196),{'enumerable':!![],'value':p});}:function(T,p){T['default']=p;}),__importStar=this&&this[a9D(0x1c4)]||function(T){const c=a9D;if(T&&T[c(0x190)])return T;var p={};if(T!=null){for(var y in T)if(y!==c(0x196)&&Object[c(0x1c2)][c(0x1bd)]['call'](T,y))__createBinding(p,T,y);}return __setModuleDefault(p,T),p;},__awaiter=this&&this[a9D(0x182)]||function(T,p,y,G){function q(S){return S instanceof y?S:new y(function(K){K(S);});}return new(y||(y=Promise))(function(S,K){const j=a9p;function s(i){const F=a9p;try{M(G[F(0x1ac)](i));}catch(m){K(m);}}function N(i){try{M(G['throw'](i));}catch(m){K(m);}}function M(i){const Z=a9p;i['done']?S(i[Z(0x19a)]):q(i[Z(0x19a)])['then'](s,N);}M((G=G['apply'](T,p||[]))[j(0x1ac)]());});},__importDefault=this&&this['__importDefault']||function(T){const V=a9D;return T&&T[V(0x190)]?T:{'default':T};};Object[a9D(0x195)](exports,a9D(0x190),{'value':!![]}),exports[a9D(0x1a1)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require('open')),events_1=require(a9D(0x1c6));class NorthflankApiBrowserLogin extends events_1[a9D(0x1bb)]{constructor(T,p=!![]){const h=a9D;super(),this['baseUrl']=T,this[h(0x1c5)]=p,this[h(0x184)]=h(0x18d),this[h(0x1a8)]=()=>JSON[h(0x1aa)]({'type':h(0x1a4)});}[a9D(0x1be)](){const v=a9D;var T;const p=this[v(0x1b1)][v(0x189)](v(0x1bc),v(0x193))['replace'](v(0x1b8),v(0x197)),y=p+v(0x1a9),G=new ws_1[(v(0x196))](y),q=()=>__awaiter(this,void 0x0,void 0x0,function*(){const g=v;yield new Promise(K=>{const t=a9p;var s;(s=this[t(0x1a6)])===null||s===void 0x0?void 0x0:s[t(0x1ab)](JSON[t(0x1aa)]({'type':t(0x192)}),()=>K());}),process[g(0x1b4)]();}),S=new Promise((K,s)=>{const I=v;var N,M,i;try{this['duplex']=(0x0,ws_1[I(0x1c0)])(G),process['on'](I(0x1af),q);}catch(m){s(new Error(I(0x1b9)+m[I(0x19d)]));}(N=this[I(0x1a6)])===null||N===void 0x0?void 0x0:N['on'](I(0x199),R=>{const r=I;var u;const b=JSON[r(0x19e)](R[r(0x186)]());switch(b===null||b===void 0x0?void 0x0:b[r(0x1ae)]){case'init-ack':{const {loginPage:B}=b;if(B===undefined){this['handleError'](r(0x181),s);return;}this[r(0x1c5)]&&(0x0,open_1['default'])(B)[r(0x18e)](o=>{const Y=r,f=Y(0x1a7)+o[Y(0x19d)];this[Y(0x1c7)](f,s);});this[r(0x1c3)](r(0x187),{'url':B});break;}case'login-success':{const {apiToken:o,contextName:f}=b;if(o===undefined){this[r(0x1c7)]('Unexpected\x20response,\x20api\x20token\x20missing',s);return;}(u=this['duplex'])===null||u===void 0x0?void 0x0:u[r(0x1ab)](),K({'token':o,'contextName':f}),this[r(0x184)]='success';break;}case r(0x1b5):{const d=r(0x18c)+(b===null||b===void 0x0?void 0x0:b[r(0x19d)]);this['handleError'](d,s);break;}default:{const Q=r(0x1a2)+JSON[r(0x1aa)](b);this[r(0x1c7)](Q,s);}}}),(M=this[I(0x1a6)])===null||M===void 0x0?void 0x0:M['on']('error',R=>{const z=I;this['handleError'](z(0x1c1)+R[z(0x19d)],s);}),(i=this[I(0x1a6)])===null||i===void 0x0?void 0x0:i['on'](I(0x1ab),()=>{const x=I;if(this['status']===x(0x19f)){}else this[x(0x1c7)](x(0x1b3),s);});});return(T=this[v(0x1a6)])===null||T===void 0x0?void 0x0:T[v(0x191)](this[v(0x1a8)]()),this['status']=v(0x1a4),S[v(0x183)](()=>{const W=v;process[W(0x19b)](W(0x1af),q);});}[a9D(0x1c7)](T,p){const e=a9D;var y,G;p?(y=this[e(0x1a6)])===null||y===void 0x0?void 0x0:y['end'](()=>p(new Error(T))):(G=this[e(0x1a6)])===null||G===void 0x0?void 0x0:G['end'](),this[e(0x184)]=e(0x194);}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9x=a9h;(function(w,h){const Y=a9h,G=w();while(!![]){try{const P=-parseInt(Y(0x187))/0x1+-parseInt(Y(0x176))/0x2*(-parseInt(Y(0x170))/0x3)+-parseInt(Y(0x18c))/0x4*(parseInt(Y(0x196))/0x5)+parseInt(Y(0x165))/0x6+parseInt(Y(0x168))/0x7*(-parseInt(Y(0x17b))/0x8)+parseInt(Y(0x18f))/0x9+-parseInt(Y(0x195))/0xa;if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a9w,0x99646));function a9w(){const E=['message','Failure\x20during\x20login:\x20','stringify','ws:','toString','openBrowser','26736fHaNEz','EventEmitter','success','error\x20happened\x20during\x20browser\x20login:\x20','SIGINT','write','142yjuloW','then','error','baseUrl','events','136czLbEo','__importStar','throw','/v1/cli-login','__importDefault','duplex','exit','data','parse','wss:','apply','finally','245421YfhXNP','status','handleError','next','open','4ypnUWI','__createBinding','__esModule','5919138qVGpaI','browser-opened','prototype','__awaiter','emit','Unexpected\x20response,\x20api\x20token\x20missing','9745590RZEVQi','3103445RoNkkI','default','idle','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','init-ack','init','initPackage','removeListener','getOwnPropertyDescriptor','value','http:','create','hasOwnProperty','login-failure','replace','7395840AWunyW','https:','defineProperty','22281eHONLn','end'];a9w=function(){return E;};return a9w();}var __createBinding=this&&this[a9x(0x18d)]||(Object[a9x(0x161)]?function(w,h,G,P){const b=a9x;if(P===undefined)P=G;var v=Object[b(0x19e)](h,G);(!v||('get'in v?!h[b(0x18e)]:v['writable']||v['configurable']))&&(v={'enumerable':!![],'get':function(){return h[G];}}),Object[b(0x167)](w,P,v);}:function(w,h,G,P){if(P===undefined)P=G;w[P]=h[G];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(w,h){const q=a9x;Object[q(0x167)](w,'default',{'enumerable':!![],'value':h});}:function(w,h){w['default']=h;}),__importStar=this&&this[a9x(0x17c)]||function(w){const f=a9x;if(w&&w['__esModule'])return w;var h={};if(w!=null){for(var G in w)if(G!==f(0x197)&&Object[f(0x191)][f(0x162)]['call'](w,G))__createBinding(h,w,G);}return __setModuleDefault(h,w),h;},__awaiter=this&&this[a9x(0x192)]||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const t=a9h;function l(A){const e=a9h;try{U(v[e(0x18a)](A));}catch(D){a(D);}}function B(A){const i=a9h;try{U(v[i(0x17d)](A));}catch(D){a(D);}}function U(A){const u=a9h;A['done']?Z(A[u(0x19f)]):O(A[u(0x19f)])[u(0x177)](l,B);}U((v=v[t(0x185)](w,h||[]))['next']());});},__importDefault=this&&this[a9x(0x17f)]||function(w){const S=a9x;return w&&w[S(0x18e)]?w:{'default':w};};function a9h(w,h){const G=a9w();return a9h=function(P,v){P=P-0x161;let O=G[P];return O;},a9h(w,h);}Object[a9x(0x167)](exports,'__esModule',{'value':!![]}),exports['NorthflankApiBrowserLogin']=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9x(0x18b))),events_1=require(a9x(0x17a));class NorthflankApiBrowserLogin extends events_1[a9x(0x171)]{constructor(w,h=!![]){const V=a9x;super(),this[V(0x179)]=w,this['openBrowser']=h,this[V(0x188)]=V(0x198),this[V(0x19c)]=()=>JSON[V(0x16c)]({'type':'init'});}['startLogin'](){const C=a9x;var w;const h=this['baseUrl']['replace'](C(0x166),C(0x184))[C(0x164)](C(0x1a0),C(0x16d)),G=h+C(0x17e),P=new ws_1['default'](G),v=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=C;yield new Promise(Z=>{const M=a9h;var a;(a=this[M(0x180)])===null||a===void 0x0?void 0x0:a[M(0x169)](JSON[M(0x16c)]({'type':'aborted'}),()=>Z());}),process[Q(0x181)]();}),O=new Promise((Z,a)=>{const H=C;var l,B,U;try{this[H(0x180)]=(0x0,ws_1['createWebSocketStream'])(P),process['on'](H(0x174),v);}catch(A){a(new Error(H(0x199)+A['message']));}(l=this['duplex'])===null||l===void 0x0?void 0x0:l['on'](H(0x182),D=>{const n=H;var p;const s=JSON[n(0x183)](D[n(0x16e)]());switch(s===null||s===void 0x0?void 0x0:s['type']){case n(0x19a):{const {loginPage:W}=s;if(W===undefined){this[n(0x189)]('Unexpected\x20response',a);return;}this[n(0x16f)]&&(0x0,open_1[n(0x197)])(W)['catch'](X=>{const c=n,T='Unable\x20to\x20open\x20browser:\x20'+X[c(0x16a)];this[c(0x189)](T,a);});this[n(0x193)](n(0x190),{'url':W});break;}case'login-success':{const {apiToken:X,contextName:T}=s;if(X===undefined){this['handleError'](n(0x194),a);return;}(p=this[n(0x180)])===null||p===void 0x0?void 0x0:p[n(0x169)](),Z({'token':X,'contextName':T}),this['status']=n(0x172);break;}case n(0x163):{const I=n(0x16b)+(s===null||s===void 0x0?void 0x0:s[n(0x16a)]);this[n(0x189)](I,a);break;}default:{const k='unable\x20to\x20parse\x20message:\x20'+JSON[n(0x16c)](s);this['handleError'](k,a);}}}),(B=this[H(0x180)])===null||B===void 0x0?void 0x0:B['on']('error',D=>{const r=H;this[r(0x189)](r(0x173)+D[r(0x16a)],a);}),(U=this['duplex'])===null||U===void 0x0?void 0x0:U['on']('end',()=>{const j=H;if(this[j(0x188)]===j(0x172)){}else this[j(0x189)]('Login\x20process\x20stopped\x20before\x20completed',a);});});return(w=this[C(0x180)])===null||w===void 0x0?void 0x0:w[C(0x175)](this[C(0x19c)]()),this[C(0x188)]=C(0x19b),O[C(0x186)](()=>{const m=C;process[m(0x19d)](m(0x174),v);});}[a9x(0x189)](w,h){const y=a9x;var G,P;h?(G=this[y(0x180)])===null||G===void 0x0?void 0x0:G[y(0x169)](()=>h(new Error(w))):(P=this[y(0x180)])===null||P===void 0x0?void 0x0:P[y(0x169)](),this[y(0x188)]=y(0x178);}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10e=a10p;(function(T,p){const W=a10p,y=T();while(!![]){try{const G=parseInt(W(0x1fd))/0x1+-parseInt(W(0x1f8))/0x2+parseInt(W(0x190))/0x3*(-parseInt(W(0x1ab))/0x4)+parseInt(W(0x1bd))/0x5*(-parseInt(W(0x1b9))/0x6)+-parseInt(W(0x1dc))/0x7*(-parseInt(W(0x1c9))/0x8)+-parseInt(W(0x1c4))/0x9*(parseInt(W(0x205))/0xa)+-parseInt(W(0x216))/0xb*(-parseInt(W(0x20c))/0xc);if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a10T,0x31620));var __awaiter=this&&this[a10e(0x1db)]||function(T,p,y,G){function q(S){return S instanceof y?S:new y(function(K){K(S);});}return new(y||(y=Promise))(function(S,K){const J=a10p;function s(i){try{M(G['next'](i));}catch(m){K(m);}}function N(i){const P=a10p;try{M(G[P(0x1fe)](i));}catch(m){K(m);}}function M(i){const X=a10p;i['done']?S(i[X(0x1ac)]):q(i[X(0x1ac)])[X(0x1c7)](s,N);}M((G=G[J(0x1f5)](T,p||[]))['next']());});},__importDefault=this&&this[a10e(0x1cb)]||function(T){const n=a10e;return T&&T[n(0x18e)]?T:{'default':T};};Object[a10e(0x192)](exports,a10e(0x18e),{'value':!![]}),exports['CliLogs']=void 0x0;function a10T(){const T2=['start','apiClient','tail','\x27Ctrl+C\x27','yaml','askForContainer',',\x20to:\x20','--regexNotIncludes\x20<regex>','apply','textNotIncludes','inquirerHelper','218054yuUWdr','askForProject','runId','\x0aDetails:\x20','cursor','399363oehnof','throw','argParser','logs-received','option','close','default','log','8610PljIUs','addonId','Container\x20logs\x20','--noDefaults','askForJobRun','../formatting/console-format-helpers','ApiClient','24EKQGNp','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','serviceId','parseDateInput','service','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','printResponse','toISOString','bold','getFormatter','1801283yMyxib','message','yml','__esModule','job','582imcvAH','Build\x20to\x20get\x20logs\x20from','defineProperty','charAt','alias','getCurrentProjectName','assertContextExisting','for\x20','chalk','Option','Id]','textIncludes','logsApiClient','askForBuild','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','noDefaults','formatLogLine','details','../inquirer-helper','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','CliLogs','Log\x20session\x20ended','apiContext','getStandardLogCommand','--duration\x20[duration]','forward','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','8152lWaTON','value','addOption','--endTime\x20<timestamp>','error','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','assign','name','jobId','printInitInfo','stringify','with\x20live-tailing\x20','--project\x20--projectId\x20[projectId]','1195194MqRwAd','../utils','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','action','5ubKKah','format','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','container\x20','containerId','backward','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','783aCvCuw','build-','values','then','\x20in\x20project\x20','2031264GoPuPQ','\x20to\x20get\x20logs\x20from','__importDefault','length','\x20of\x20','Id\x20[','--regexIncludes\x20<regex>','-o,\x20--output\x20[output]','regexNotIncludes','Error\x20while\x20fetching\x20log\x20lines:\x20','logTail','(exit\x20with\x20','--startTime\x20<timestamp>','tsHint','getCurrentServiceName','conflicts','./log-formatter','-f,\x20--tail','__awaiter','7qDZeBF','buildId','Number\x20of\x20lines\x20to\x20return.','choices','pagination','--run\x20--runId\x20[runId]','hasNextPage','customUserAgent','--container\x20--containerId\x20[containerId]','json','-d,\x20--direction\x20<order>','slice','--build\x20--buildId\x20[buildId]',',\x20from:\x20','regexIncludes','askForService','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression'];a10T=function(){return T2;};return a10T();}const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10e(0x198))),utils_1=require(a10e(0x1ba)),inquirer_helper_1=require(a10e(0x1a2)),commander_1=require('commander'),console_format_helpers_1=require(a10e(0x20a)),log_formatter_1=require(a10e(0x1d9));function a10p(T,p){const y=a10T();return a10p=function(G,q){G=G-0x18d;let S=y[G];return S;},a10p(T,p);}class CliLogs{constructor(T){const k=a10e;this[k(0x1a6)]=T,this[k(0x1a7)]=(p,y)=>{const a=k,G=(0x0,utils_1['getCommand'])(!![])[a(0x1b3)]((y?a(0x1c5):'')+'logs')[a(0x194)]((y?a(0x1c5):'')+'log')['description']('Get\x20log\x20for\x20the\x20specified\x20'+p)['option'](a(0x1b8),'Project\x20for\x20logs')[a(0x201)]('--'+p+'\x20--'+p+a(0x1ce)+p+a(0x19a),p[a(0x193)](0x0)['toUpperCase']()+p[a(0x1e7)](0x1)+a(0x1ca))[a(0x201)](a(0x1e4),a(0x1c3))[a(0x201)](a(0x1da),a(0x1b1))[a(0x201)]('-l,\x20--lineLimit\x20[limit]',a(0x1de))[a(0x201)](a(0x1d5),a(0x1b0)+utils_1[a(0x1d6)],utils_1[a(0x20f)])[a(0x1ad)](new commander_1[(a(0x199))](a(0x1ae),a(0x1bb)+utils_1['tsHint'])[a(0x1ff)](utils_1['parseDateInput'])['conflicts']([a(0x1ef)]))[a(0x201)](a(0x1a8),'Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set')[a(0x1ad)](new commander_1['Option'](a(0x1e6),a(0x1aa))[a(0x1df)]([a(0x1c2),a(0x1a9)])[a(0x1d8)]([a(0x1ef)]))[a(0x1ad)](new commander_1['Option']('--textIncludes\x20<text>',a(0x211))['conflicts']([a(0x1f6),a(0x1ea),a(0x1d1)]))[a(0x1ad)](new commander_1[(a(0x199))]('--textNotIncludes\x20<text>',a(0x1bf))[a(0x1d8)]([a(0x19b),a(0x1ea),'regexNotIncludes']))[a(0x1ad)](new commander_1[(a(0x199))](a(0x1cf),'Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression')[a(0x1d8)]([a(0x1f6),a(0x19b),'regexNotIncludes']))[a(0x1ad)](new commander_1[(a(0x199))](a(0x1f4),a(0x1ec))[a(0x1d8)]([a(0x1f6),a(0x1ea),a(0x19b)]))[a(0x201)](a(0x208),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[a(0x1ad)](new commander_1[(a(0x199))](a(0x1d0),a(0x1a3))[a(0x1df)](Object[a(0x1c6)]([a(0x1be),a(0x1e5),a(0x1f1)])));if(y)G['option'](a(0x1e8),a(0x191));if(p===a(0x18f))G[a(0x201)](a(0x1e1),'Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0');return G;},this[k(0x1b5)]=(p,y,G,q)=>{const L=k,{containerId:S,quiet:K,tail:s,startTime:N,endTime:M,duration:i}=q;if(K===!![])return;const m=s?L(0x1d4)+chalk_1['default'][L(0x214)](L(0x1f0))+')':'',R=s?L(0x1b7):'',u=N?L(0x1e9)+N['toISOString']():'',b=M?L(0x1f3)+M[L(0x213)]():'',B=i?',\x20duration:\x20'+i+'\x20seconds':'',o=S?L(0x1c0)+chalk_1[L(0x203)][L(0x214)](S):'all\x20containers',f=p+'\x20'+chalk_1['default'][L(0x214)](y)+L(0x1c8)+chalk_1[L(0x203)][L(0x214)](G),d=''+u+b+B;console[L(0x204)](L(0x207)+R+L(0x197)+o+L(0x1cd)+f+d+'\x20'+m);},this[k(0x215)]=(p,y)=>(G,q)=>{const O=k;if(!p){if(G[O(0x1cc)]===0x0)console[O(0x204)](O(0x20d));G['forEach'](S=>(0x0,log_formatter_1[O(0x1a0)])(S,y));}else(0x0,console_format_helpers_1[O(0x212)])(p,G);(q===null||q===void 0x0?void 0x0:q[O(0x1e2)])&&(0x0,utils_1['warning'])(O(0x19e)+q[O(0x1fc)]);},this['apiClient']=new js_client_1[(k(0x20b))](T,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[k(0x1e3)]}),this[k(0x19c)]=this[k(0x1ee)],this[k(0x1f7)]=new inquirer_helper_1['InquirerHelper'](this[k(0x1ee)]);}['getLogsCommand'](T,p=![]){const T0=a10e,y=(K,s)=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a10p,N=s[H(0x19f)],{apiContext:M,inquirerHelper:i}=this;switch(T){case H(0x210):{const m=N?undefined:M[H(0x1d7)]();return s[H(0x20e)]||m||(yield i[H(0x1eb)](K)());}case'job':{const R=N?undefined:M[H(0x1d7)]();return s[H(0x1b4)]||R||(yield i['askForJob'](K)());}case'addon':{const u=N?undefined:M[H(0x1d7)]();return s[H(0x206)]||u||(yield i['askForAddon'](K)());}}}),G=(K,s,N)=>__awaiter(this,void 0x0,void 0x0,function*(){const l=a10p;if(p)return N[l(0x1dd)]||(yield this[l(0x1f7)][l(0x19d)](K,T===l(0x210)?s:undefined,T===l(0x18f)?s:undefined,!![])());return undefined;}),q=(K,s,N)=>__awaiter(this,void 0x0,void 0x0,function*(){const C=a10p;if(!p&&N[C(0x1c1)]!==undefined){if(N[C(0x1c1)]!==!![])return N[C(0x1c1)];return yield this[C(0x1f7)][C(0x1f2)](K,T===C(0x210)?s:undefined,T===C(0x18f)?s:undefined,!![])();}return undefined;}),S=(K,s,N)=>__awaiter(this,void 0x0,void 0x0,function*(){const E=a10p;if(T===E(0x18f))return N[E(0x1fa)]||(yield this['inquirerHelper'][E(0x209)](s,K,!![])());return undefined;});return this[T0(0x1a7)](T,p)[T0(0x1bc)](K=>__awaiter(this,void 0x0,void 0x0,function*(){const T1=T0,{noDefaults:s,projectId:N,quiet:M,tail:i,textIncludes:m,textNotIncludes:R,regexIncludes:u,regexNotIncludes:b,direction:B,lineLimit:o,startTime:f,endTime:d,duration:Q,output:U}=K;(0x0,utils_1[T1(0x196)])(this[T1(0x1ee)]);const {apiContext:D,inquirerHelper:w,logsApiClient:A}=this,c=s?undefined:D[T1(0x195)](),F=N||c||(yield w[T1(0x1f9)]()),Z=yield y(F,K),j=yield G(F,Z,K),V=yield S(F,Z,K),h=yield q(F,Z,K);if(!M&&U!==T1(0x1f1)&&U!==T1(0x18d)&&U!==T1(0x1e5))this['printInitInfo'](T,Z,F,K);if(f&&d&&Q)throw new Error('Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.');const v={'projectId':F,'entityId':Z},t={'containerName':h,'textIncludes':m,'textNotIncludes':R,'regexIncludes':u,'regexNotIncludes':b,'lineLimit':o,'startTime':f,'duration':Q,'runId':V,'buildId':j,'isBuild':p!==null&&p!==void 0x0?p:![]},g=this[T1(0x215)](U,m!==null&&m!==void 0x0?m:u);if(i){const I=yield A['logs'][T1(0x1d3)](v,t,T);I['on'](T1(0x200),g),I['on'](T1(0x1af),r=>(0x0,utils_1['error'])('Error\x20while\x20tailing\x20log\x20lines:\x20'+r['message'])),I['on'](T1(0x202),()=>console[T1(0x204)](T1(0x1a5))),yield I[T1(0x1ed)]();}else{const r=Object['assign'](Object[T1(0x1b2)]({},t),{'endTime':d,'direction':B}),Y=yield A['logs']['logRange'](v,r,T);if(Y[T1(0x1af)]){const z=Y[T1(0x1af)][T1(0x1a1)],x=z?T1(0x1fb)+JSON[T1(0x1b6)](z,null,'\x20'):'';(0x0,utils_1[T1(0x1af)])(T1(0x1d2)+Y[T1(0x1af)][T1(0x217)]+x);}else g(Y['data'],Y[T1(0x1e0)]);}}));}}exports[a10e(0x1a4)]=CliLogs;
1
+ 'use strict';const a10o=a10h;function a10h(w,h){const G=a10w();return a10h=function(P,v){P=P-0x6b;let O=G[P];return O;},a10h(w,h);}(function(w,h){const R=a10h,G=w();while(!![]){try{const P=-parseInt(R(0x6f))/0x1+-parseInt(R(0xa1))/0x2*(parseInt(R(0x8a))/0x3)+-parseInt(R(0xfa))/0x4+-parseInt(R(0x75))/0x5*(parseInt(R(0xd5))/0x6)+parseInt(R(0x7a))/0x7*(-parseInt(R(0xc1))/0x8)+-parseInt(R(0xa9))/0x9+parseInt(R(0xe0))/0xa*(parseInt(R(0x6e))/0xb);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a10w,0x8b00e));function a10w(){const wh=['yaml','service','bold','warning','jobId','close','forward','__importDefault','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','tail','getLogsCommand','ApiClient','Option','Backup\x20to\x20get\x20logs\x20from','Restore\x20to\x20get\x20logs\x20from','askForContainer','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','--restore\x20--restoreId\x20[restoreId]','58120KsupQr','log','getSeconds','--textIncludes\x20<text>','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','getFormatter','Project\x20for\x20logs','data','textNotIncludes','--project\x20--projectId\x20[projectId]','../utils','Number\x20of\x20lines\x20to\x20return.','json','yml','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','addonId','assertContextExisting','logsApiClient','\x27Ctrl+C\x27','logs-received','102wzlXIf','backupId',',\x20backup\x20id\x20','forEach','askForProject','defaultDurationSeconds','./log-formatter','--regexNotIncludes\x20<regex>','valueOf','--regexIncludes\x20<regex>','@northflank/js-client','480KEvlqz','Id]','Build\x20to\x20get\x20logs\x20from','assign','textIncludes','chalk','toUpperCase','--run\x20--runId\x20[runId]','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','\x20for\x20all\x20containers','then','option','regexIncludes','\x20of\x20','backward','Error\x20while\x20fetching\x20log\x20lines:\x20','askForAddon','setSeconds',',\x20duration:\x20','Log\x20session\x20ended','logTail','../formatting/console-format-helpers','askForAddonBackup','start','printInitInfo','error','4180080FBLQAo','askForService','tsHint','cursor','InquirerHelper','containerId','-l,\x20--lineLimit\x20[limit]','default','regexNotIncludes','1229822axHbKp','645539qfandf','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','serviceId','__esModule','Get\x20log\x20for\x20the\x20specified\x20','--backup\x20--backupId\x20[backupId]','199025zHwSvg','--container\x20--containerId\x20[containerId]','charAt','getCurrentServiceName','formatLogLine','385vtgEeT','askForBuild','conflicts','choices','inquirerHelper','addOption','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','CliLogs','length','--noDefaults','--textNotIncludes\x20<text>','toISOString','restoreId','getStandardLogCommand',',\x20from:\x20','details','213oNHbAk','customUserAgent','action','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','format','name','slice','next','\x20in\x20project\x20','logs','--duration\x20[duration]','apiContext','pagination','Error\x20while\x20tailing\x20log\x20lines:\x20','message','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','apiClient','askForAddonRestore','getCurrentProjectName','value','values','job','getCommand','26998BlCfJA','alias',',\x20to:\x20','-f,\x20--tail','parseDateInput','argParser','\x20seconds','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','9647010KZQTGL','\x20--','stringify','../inquirer-helper','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','--startTime\x20<timestamp>'];a10w=function(){return wh;};return a10w();}var __awaiter=this&&this['__awaiter']||function(w,h,G,v){function O(Z){return Z instanceof G?Z:new G(function(a){a(Z);});}return new(G||(G=Promise))(function(Z,a){const F=a10h;function l(A){const N=a10h;try{U(v[N(0x91)](A));}catch(D){a(D);}}function B(A){try{U(v['throw'](A));}catch(D){a(D);}}function U(A){const z=a10h;A['done']?Z(A[z(0x9d)]):O(A['value'])[z(0xea)](l,B);}U((v=v['apply'](w,h||[]))[F(0x91)]());});},__importDefault=this&&this[a10o(0xb6)]||function(w){const L=a10o;return w&&w[L(0x72)]?w:{'default':w};};Object['defineProperty'](exports,a10o(0x72),{'value':!![]}),exports[a10o(0x81)]=void 0x0;const js_client_1=require(a10o(0xdf)),chalk_1=__importDefault(require(a10o(0xe5))),utils_1=require(a10o(0xcb)),inquirer_helper_1=require(a10o(0xac)),commander_1=require('commander'),console_format_helpers_1=require(a10o(0xf5)),log_formatter_1=require(a10o(0xdb));class CliLogs{constructor(w){const d=a10o;this[d(0x95)]=w,this[d(0xda)]=0x708,this[d(0x87)]=(h,G,P,v)=>{const w0=d,O=(0x0,utils_1[w0(0xa0)])(!![])[w0(0x8f)]((G?'build-':'')+w0(0x93))[w0(0xa2)]((G?'build-':'')+w0(0xc2))['description'](w0(0x73)+h)[w0(0xeb)](w0(0xca),w0(0xc7))['option']('--'+h+w0(0xaa)+h+'Id\x20['+h+w0(0xe1),h[w0(0x77)](0x0)[w0(0xe6)]()+h[w0(0x90)](0x1)+'\x20to\x20get\x20logs\x20from')[w0(0xeb)](w0(0x76),w0(0x8d));if(G)O[w0(0xeb)]('--build\x20--buildId\x20[buildId]',w0(0xe2));if(h==='job')O['option'](w0(0xe7),'Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0');if(P)O[w0(0xeb)](w0(0x74),w0(0xbc));if(v)O[w0(0xeb)](w0(0xc0),w0(0xbd));return O['option'](w0(0xa4),'Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')[w0(0xeb)](w0(0x6b),w0(0xcc))[w0(0xeb)](w0(0xae),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1['tsHint'],utils_1[w0(0xa5)])['addOption'](new commander_1[(w0(0xbb))]('--endTime\x20<timestamp>',w0(0xe8)+utils_1[w0(0xfc)])[w0(0xa6)](utils_1[w0(0xa5)])[w0(0x7c)](['tail']))[w0(0xeb)](w0(0x94),w0(0xa8))[w0(0x7f)](new commander_1[(w0(0xbb))]('-d,\x20--direction\x20<order>',w0(0xad))[w0(0x7d)]([w0(0xee),w0(0xb5)])[w0(0x7c)]([w0(0xb8)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xc4),w0(0xbf))['conflicts']([w0(0xc9),'regexIncludes',w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0x84),w0(0xcf))['conflicts']([w0(0xe4),w0(0xec),w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xde),w0(0x80))[w0(0x7c)]([w0(0xc9),'textIncludes',w0(0x6d)]))[w0(0x7f)](new commander_1[(w0(0xbb))](w0(0xdc),'Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[w0(0x7c)]([w0(0xc9),w0(0xec),w0(0xe4)]))[w0(0xeb)](w0(0x83),w0(0xb7),![])[w0(0x7f)](new commander_1[(w0(0xbb))]('-o,\x20--output\x20[output]',w0(0x99))['choices'](Object[w0(0x9e)]([w0(0x8e),w0(0xcd),w0(0xaf)]))),O;},this[d(0xf8)]=(h,G,P,v)=>{const w1=d,{containerName:O,restoreId:Z,backupId:a,quiet:l,tail:B,startTime:U,endTime:A,duration:D}=v;if(l===!![])return;const p=B?'\x20(exit\x20with\x20'+chalk_1[w1(0x6c)][w1(0xb1)](w1(0xd3))+')':'',s=B?'\x20with\x20live-tailing':'',W=new Date(),X=U!==null&&U!==void 0x0?U:new Date(new Date((A!==null&&A!==void 0x0?A:W)[w1(0xdd)]())[w1(0xf1)]((A!==null&&A!==void 0x0?A:W)[w1(0xc3)]()-(D!==null&&D!==void 0x0?D:this[w1(0xda)]))),T=(A!==null&&A!==void 0x0?A:U!==undefined)?new Date(new Date(U[w1(0xdd)]())['setSeconds'](U[w1(0xc3)]()+(D!==null&&D!==void 0x0?D:this[w1(0xda)]))):W,I=a!==undefined,k=X&&!I?w1(0x88)+chalk_1['default'][w1(0xb1)](X['toISOString']()):'',Y=T&&!I?w1(0xa3)+chalk_1['default'][w1(0xb1)](T[w1(0x85)]()):'',x=D?w1(0xf2)+D+w1(0xa7):'',b=O?'\x20for\x20container\x20'+chalk_1['default'][w1(0xb1)](O):I?'':w1(0xe9),q=a?w1(0xd7)+a:'',f=Z?',\x20restore\x20id\x20'+Z:'',e=h+'\x20'+chalk_1['default'][w1(0xb1)](G)+q+f+w1(0x92)+chalk_1['default']['bold'](P),i=''+k+Y+x;console[w1(0xc2)]('>\x20Container\x20logs'+s+b+w1(0xed)+e+i+p+':');},this[d(0xc6)]=(h,G)=>(P,v)=>{const w2=d;if(!h){if(P[w2(0x82)]===0x0)console['log']('No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.');P[w2(0xd8)](O=>(0x0,log_formatter_1[w2(0x79)])(O,G));}else(0x0,console_format_helpers_1['printResponse'])(h,P);(v===null||v===void 0x0?void 0x0:v['hasNextPage'])&&(0x0,utils_1[w2(0xb2)])(w2(0x70)+v[w2(0xfd)]);},this[d(0x9a)]=new js_client_1[(d(0xba))](w,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[d(0x8b)]}),this[d(0xd2)]=this[d(0x9a)],this[d(0x7e)]=new inquirer_helper_1[(d(0xfe))](this[d(0x9a)]);}[a10o(0xb9)](w,h=![],G=![],P=![]){const w9=a10o,v=(U,A)=>__awaiter(this,void 0x0,void 0x0,function*(){const w3=a10h,D=A['noDefaults'],{apiContext:p,inquirerHelper:s}=this;switch(w){case'service':{const W=D?undefined:p[w3(0x78)]();return A[w3(0x71)]||W||(yield s[w3(0xfb)](U)());}case w3(0x9f):{const X=D?undefined:p['getCurrentJobName']();return A[w3(0xb3)]||X||(yield s['askForJob'](U)());}case'addon':{return A[w3(0xd0)]||(yield s[w3(0xf0)](U)());}}}),O=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w4=a10h;if(h)return D['buildId']||(yield this['inquirerHelper'][w4(0x7b)](U,w===w4(0xb0)?A:undefined,w===w4(0x9f)?A:undefined,!![])());return undefined;}),Z=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w5=a10h;if(G||P)return D[w5(0xd6)]||(yield this[w5(0x7e)][w5(0xf6)](U,A)());return undefined;}),a=(U,A,D,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const w6=a10h;if(P)return p[w6(0x86)]||(yield this['inquirerHelper'][w6(0x9b)](U,A,D)());return undefined;}),l=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w7=a10h;if(!h&&D[w7(0xff)]!==undefined){if(D[w7(0xff)]!==!![])return D[w7(0xff)];return yield this[w7(0x7e)][w7(0xbe)](U,w===w7(0xb0)?A:undefined,w===w7(0x9f)?A:undefined,!![])();}return undefined;}),B=(U,A,D)=>__awaiter(this,void 0x0,void 0x0,function*(){const w8=a10h;if(w==='job')return D['runId']||(yield this[w8(0x7e)]['askForJobRun'](A,U,!![])());return undefined;});return this[w9(0x87)](w,h,G,P)[w9(0x8c)](U=>__awaiter(this,void 0x0,void 0x0,function*(){const ww=w9,{noDefaults:A,projectId:D,quiet:p,tail:s,textIncludes:W,textNotIncludes:X,regexIncludes:T,regexNotIncludes:I,direction:k,lineLimit:Y,startTime:x,endTime:b,duration:q,output:f}=U;(0x0,utils_1[ww(0xd1)])(this['apiClient']);const {apiContext:e,inquirerHelper:i,logsApiClient:u}=this,t=A?undefined:e[ww(0x9c)](),S=D||t||(yield i[ww(0xd9)]()),V=yield v(S,U),C=yield O(S,V,U),M=yield Z(S,V,U),Q=yield a(S,V,M,U),H=yield B(S,V,U),n=yield l(S,V,U);if(x&&b&&q)throw new Error(ww(0xc5));const c={'projectId':S,'entityId':V},r={'containerName':n,'textIncludes':W,'textNotIncludes':X,'regexIncludes':T,'regexNotIncludes':I,'lineLimit':Y,'startTime':x,'duration':q,'runId':H,'buildId':C,'backupId':M,'restoreId':Q,'isBuild':h!==null&&h!==void 0x0?h:![]},j=P?'addonRestore':G?'addonBackup':w,m=Object[ww(0xe3)](Object[ww(0xe3)]({},r),{'endTime':b,'direction':k});if(!p&&f!==ww(0xaf)&&f!==ww(0xce)&&f!==ww(0xcd))this[ww(0xf8)](w,V,S,Object['assign'](Object[ww(0xe3)]({},m),U));const y=this[ww(0xc6)](f,W!==null&&W!==void 0x0?W:T);if(s){const E=yield u['logs'][ww(0xf4)](c,r,j);E['on'](ww(0xd4),y),E['on'](ww(0xf9),K=>(0x0,utils_1['error'])(ww(0x97)+K[ww(0x98)])),E['on'](ww(0xb4),()=>console['log'](ww(0xf3))),yield E[ww(0xf7)]();}else{const K=yield u[ww(0x93)]['logRange'](c,m,j);if(K[ww(0xf9)]){const g=K[ww(0xf9)][ww(0x89)],J=g?'\x0aDetails:\x20'+JSON[ww(0xab)](g,null,'\x20'):'';(0x0,utils_1[ww(0xf9)])(ww(0xef)+K[ww(0xf9)]['message']+J);}else y(K[ww(0xc8)],K[ww(0x96)]);}}));}}exports[a10o(0x81)]=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11i=a11p;function a11p(T,p){const y=a11T();return a11p=function(G,q){G=G-0x64;let S=y[G];return S;},a11p(T,p);}(function(T,p){const M=a11p,y=T();while(!![]){try{const G=parseInt(M(0x7d))/0x1*(parseInt(M(0x7b))/0x2)+parseInt(M(0x6e))/0x3+parseInt(M(0x71))/0x4+parseInt(M(0x77))/0x5*(parseInt(M(0x78))/0x6)+-parseInt(M(0x75))/0x7*(parseInt(M(0x66))/0x8)+parseInt(M(0x67))/0x9+-parseInt(M(0x74))/0xa;if(G===p)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(a11T,0xb1a19));var __importDefault=this&&this[a11i(0x82)]||function(T){const m=a11i;return T&&T[m(0x80)]?T:{'default':T};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11i(0x83)]=exports[a11i(0x73)]=void 0x0;const chalk_1=__importDefault(require(a11i(0x65)));exports[a11i(0x73)]=[{'color':a11i(0x7c),'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':a11i(0x7c),'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':a11i(0x7c),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':'grey','pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11i(0x72),'pattern':new RegExp(a11i(0x69),'i')},{'color':a11i(0x68),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11i(0x68),'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':'blue','pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11i(0x76),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':'red','pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11i(0x7e),'pattern':/\b(information|info|debug)\b/i},{'color':a11i(0x6a),'pattern':/\b(warning|warn)\b/i},{'color':a11i(0x64),'pattern':/[0-9a-f]{64}/i},{'color':a11i(0x64),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(T,p)=>{const R=a11i,y=chalk_1[R(0x6b)][R(0x7f)](T['ts'][R(0x7a)]()),G=chalk_1[R(0x6b)]['cyan'](T[R(0x70)]),q=exports[R(0x73)][R(0x84)]((K,s)=>{const u=R;return K[u(0x6d)](s[u(0x79)],N=>s['color']?chalk_1[u(0x6b)][s[u(0x6c)]](N):chalk_1['default'][u(0x7c)](N));},T[R(0x81)]),S=p?q['replace'](new RegExp(p,'g'),K=>chalk_1['default'][R(0x72)](K)):q;console[R(0x81)](y+'\x20'+G+R(0x6f)+S);};function a11T(){const b=['5504zQAmsE','7126686AQGARx','green','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','yellow','default','color','replace','105471XkiGph','\x20--\x20','containerId','5684876VbYGlb','bold','defaultLogSyntax','15999530ZgBFZq','14000BBbZXi','greenBright','113320nFXBHD','18ZPQYnU','pattern','toISOString','52FNIDss','grey','53358xrmBbI','gray','dim','__esModule','log','__importDefault','formatLogLine','reduce','blue','chalk'];a11T=function(){return b;};return a11T();}exports[a11i(0x83)]=formatLogLine;
1
+ 'use strict';function a11w(){const X=['pattern','red','gray','chalk','log','3966684vQZBcU','replace','yellow','blue','547906oSaHql','294042OWMpkF','color','bold','__esModule','336nccMWW','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','dim','\x20--\x20','1230eoZwGz','__importDefault','2392rfCTEP','defineProperty','grey','reduce','cyan','9225DNPsXQ','green','8178255mBBbdq','toISOString','defaultLogSyntax','default','containerId','5886668ogdziy','formatLogLine'];a11w=function(){return X;};return a11w();}const a11D=a11h;(function(w,h){const A=a11h,G=w();while(!![]){try{const P=-parseInt(A(0x16b))/0x1+parseInt(A(0x16a))/0x2+parseInt(A(0x166))/0x3+parseInt(A(0x15f))/0x4+-parseInt(A(0x15a))/0x5+-parseInt(A(0x151))/0x6*(parseInt(A(0x16f))/0x7)+-parseInt(A(0x153))/0x8*(parseInt(A(0x158))/0x9);if(P===h)break;else G['push'](G['shift']());}catch(v){G['push'](G['shift']());}}}(a11w,0xc8a50));function a11h(w,h){const G=a11w();return a11h=function(P,v){P=P-0x150;let O=G[P];return O;},a11h(w,h);}var __importDefault=this&&this[a11D(0x152)]||function(w){const p=a11D;return w&&w[p(0x16e)]?w:{'default':w};};Object[a11D(0x154)](exports,a11D(0x16e),{'value':!![]}),exports[a11D(0x160)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require(a11D(0x164)));exports['defaultLogSyntax']=[{'color':a11D(0x155),'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':a11D(0x155),'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':a11D(0x155),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11D(0x155),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11D(0x16d),'pattern':new RegExp(a11D(0x170),'i')},{'color':a11D(0x159),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':'green','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':a11D(0x169),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11D(0x162),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11D(0x163),'pattern':/\b(information|info|debug)\b/i},{'color':a11D(0x168),'pattern':/\b(warning|warn)\b/i},{'color':a11D(0x169),'pattern':/[0-9a-f]{64}/i},{'color':a11D(0x169),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(w,h)=>{const s=a11D,G=chalk_1[s(0x15d)][s(0x171)](w['ts'][s(0x15b)]()),P=chalk_1[s(0x15d)][s(0x157)](w[s(0x15e)]),v=exports[s(0x15c)][s(0x156)]((Z,B)=>{const W=s;return Z[W(0x167)](B[W(0x161)],U=>B['color']?chalk_1[W(0x15d)][B[W(0x16c)]](U):chalk_1['default'][W(0x155)](U));},w[s(0x165)]),O=h?v[s(0x167)](new RegExp(h,'g'),Z=>chalk_1['default'][s(0x16d)](Z)):v;console[s(0x165)](G+'\x20'+P+s(0x150)+O);};exports[a11D(0x160)]=formatLogLine;