@capgo/cli 7.0.12 → 7.0.14
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.
- package/dist/index.js +8 -8
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -35,16 +35,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35
35
|
`)}),e.__defineSetter__("stack",function(r){return[r].concat(e.stack).join(`
|
|
36
36
|
|
|
37
37
|
`)}),e}});var hx=D((Nle,dx)=>{var Jn=require("constants"),vz=process.cwd,jf=null,bz=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return jf||(jf=vz.call(process)),jf};try{process.cwd()}catch{}typeof process.chdir=="function"&&(my=process.chdir,process.chdir=function(t){jf=null,my.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,my));var my;dx.exports=wz;function wz(t){Jn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),bz==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function f(h,d,m){var b=Date.now(),y=0;c(h,d,function E(F){if(F&&(F.code==="EACCES"||F.code==="EPERM"||F.code==="EBUSY")&&Date.now()-b<6e4){setTimeout(function(){t.stat(d,function(g,C){g&&g.code==="ENOENT"?c(h,d,E):m(F)})},y),y<100&&(y+=10);return}m&&m(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function f(h,d,m,b,y,E){var F;if(E&&typeof E=="function"){var g=0;F=function(C,A,T){if(C&&C.code==="EAGAIN"&&g<10)return g++,c.call(t,h,d,m,b,y,F);E.apply(this,arguments)}}return c.call(t,h,d,m,b,y,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(f,h,d,m,b){for(var y=0;;)try{return c.call(t,f,h,d,m,b)}catch(E){if(E.code==="EAGAIN"&&y<10){y++;continue}throw E}}}(t.readSync);function e(c){c.lchmod=function(f,h,d){c.open(f,Jn.O_WRONLY|Jn.O_SYMLINK,h,function(m,b){if(m){d&&d(m);return}c.fchmod(b,h,function(y){c.close(b,function(E){d&&d(y||E)})})})},c.lchmodSync=function(f,h){var d=c.openSync(f,Jn.O_WRONLY|Jn.O_SYMLINK,h),m=!0,b;try{b=c.fchmodSync(d,h),m=!1}finally{if(m)try{c.closeSync(d)}catch{}else c.closeSync(d)}return b}}function r(c){Jn.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,h,d,m){c.open(f,Jn.O_SYMLINK,function(b,y){if(b){m&&m(b);return}c.futimes(y,h,d,function(E){c.close(y,function(F){m&&m(E||F)})})})},c.lutimesSync=function(f,h,d){var m=c.openSync(f,Jn.O_SYMLINK),b,y=!0;try{b=c.futimesSync(m,h,d),y=!1}finally{if(y)try{c.closeSync(m)}catch{}else c.closeSync(m)}return b}):c.futimes&&(c.lutimes=function(f,h,d,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(f,h,d){return c.call(t,f,h,function(m){l(m)&&(m=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(f,h){try{return c.call(t,f,h)}catch(d){if(!l(d))throw d}}}function o(c){return c&&function(f,h,d,m){return c.call(t,f,h,d,function(b){l(b)&&(b=null),m&&m.apply(this,arguments)})}}function s(c){return c&&function(f,h,d){try{return c.call(t,f,h,d)}catch(m){if(!l(m))throw m}}}function a(c){return c&&function(f,h,d){typeof h=="function"&&(d=h,h=null);function m(b,y){y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),d&&d.apply(this,arguments)}return h?c.call(t,f,h,m):c.call(t,f,m)}}function u(c){return c&&function(f,h){var d=h?c.call(t,f,h):c.call(t,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var gx=D((Lle,mx)=>{var px=require("stream").Stream;mx.exports=_z;function _z(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);px.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){o.emit("error",c),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);px.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var u=o[s];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Dx=D((Ble,yx)=>{"use strict";yx.exports=Cz;var Ez=Object.getPrototypeOf||function(t){return t.__proto__};function Cz(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ez(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Xn=D((qle,Dy)=>{var ze=require("fs"),Sz=hx(),xz=gx(),Fz=Dx(),Nf=require("util"),wt,Bf;typeof Symbol=="function"&&typeof Symbol.for=="function"?(wt=Symbol.for("graceful-fs.queue"),Bf=Symbol.for("graceful-fs.previous")):(wt="___graceful-fs.queue",Bf="___graceful-fs.previous");function Oz(){}function wx(t,e){Object.defineProperty(t,wt,{get:function(){return e}})}var Ji=Oz;Nf.debuglog?Ji=Nf.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ji=function(){var t=Nf.format.apply(Nf,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
38
|
-
GFS4: `),console.error(t)});ze[wt]||(vx=global[wt]||[],wx(ze,vx),ze.close=function(t){function e(r,n){return t.call(ze,r,function(i){i||bx(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Bf,{value:t}),e}(ze.close),ze.closeSync=function(t){function e(r){t.apply(ze,arguments),bx()}return Object.defineProperty(e,Bf,{value:t}),e}(ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ji(ze[wt]),require("assert").equal(ze[wt].length,0)}));var vx;global[wt]||wx(global,ze[wt]);Dy.exports=gy(Fz(ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ze.__patched&&(Dy.exports=gy(ze),ze.__patched=!0);function gy(t){Sz(t),t.gracefulify=gy,t.createReadStream=A,t.createWriteStream=T;var e=t.readFile;t.readFile=r;function r(S,I,$){return typeof I=="function"&&($=I,I=null),B(S,I,$);function B(q,K,V,_){return e(q,K,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?ws([B,[q,K,V],v,_||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return n(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=s);function s(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return o(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(S,I,$,B){return typeof $=="function"&&(B=$,$=0),q(S,I,$,B);function q(K,V,_,v,w){return a(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(S,I,$){typeof I=="function"&&($=I,I=null);var B=c.test(process.version)?function(V,_,v,w){return l(V,q(V,_,v,w))}:function(V,_,v,w){return l(V,_,q(V,_,v,w))};return B(S,I,$);function q(K,V,_,v){return function(w,O){w&&(w.code==="EMFILE"||w.code==="ENFILE")?ws([B,[K,V,_],w,v||Date.now(),Date.now()]):(O&&O.sort&&O.sort(),typeof _=="function"&&_.call(this,w,O))}}}if(process.version.substr(0,4)==="v0.8"){var h=xz(t);E=h.ReadStream,g=h.WriteStream}var d=t.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=F);var m=t.WriteStream;m&&(g.prototype=Object.create(m.prototype),g.prototype.open=C),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(S){E=S},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return g},set:function(S){g=S},enumerable:!0,configurable:!0});var b=E;Object.defineProperty(t,"FileReadStream",{get:function(){return b},set:function(S){b=S},enumerable:!0,configurable:!0});var y=g;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0});function E(S,I){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function F(){var S=this;L(S.path,S.flags,S.mode,function(I,$){I?(S.autoClose&&S.destroy(),S.emit("error",I)):(S.fd=$,S.emit("open",$),S.read())})}function g(S,I){return this instanceof g?(m.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var S=this;L(S.path,S.flags,S.mode,function(I,$){I?(S.destroy(),S.emit("error",I)):(S.fd=$,S.emit("open",$))})}function A(S,I){return new t.ReadStream(S,I)}function T(S,I){return new t.WriteStream(S,I)}var x=t.open;t.open=L;function L(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return x(K,V,_,function(O,j){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}return t}function ws(t){Ji("ENQUEUE",t[0].name,t[1]),ze[wt].push(t),yy()}var Lf;function bx(){for(var t=Date.now(),e=0;e<ze[wt].length;++e)ze[wt][e].length>2&&(ze[wt][e][3]=t,ze[wt][e][4]=t);yy()}function yy(){if(clearTimeout(Lf),Lf=void 0,ze[wt].length!==0){var t=ze[wt].shift(),e=t[0],r=t[1],n=t[2],i=t[3],o=t[4];if(i===void 0)Ji("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Ji("TIMEOUT",e.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,u=Math.max(o-i,1),l=Math.min(u*1.2,100);a>=l?(Ji("RETRY",e.name,r),e.apply(null,r.concat([i]))):ze[wt].push(t)}Lf===void 0&&(Lf=setTimeout(yy,0))}}});var Ex=D((Mle,_x)=>{function pr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}_x.exports=pr;pr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};pr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};pr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};pr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};pr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};pr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};pr.prototype.start=pr.prototype.try;pr.prototype.errors=function(){return this._errors};pr.prototype.attempts=function(){return this._attempts};pr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,s=(t[o]||0)+1;t[o]=s,s>=r&&(e=i,r=s)}return e}});var Cx=D(Xi=>{var Az=Ex();Xi.operation=function(t){var e=Xi.timeouts(t);return new Az(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Xi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(o,s){return o-s}),n};Xi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Xi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var o=r[i],s=t[o];t[o]=function(u){var l=Xi.operation(e),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(h){l.retry(h)||(h&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){u.apply(t,c)})}.bind(t,s),t[o].options=e}}});var xx=D((Hle,Sx)=>{Sx.exports=Cx()});var Fx=D((Vle,qf)=>{qf.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qf.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qf.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var wy=D((zle,Cs)=>{var Be=global.process,Zi=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Zi(Be)?(Ox=require("assert"),_s=Fx(),Ax=/^win/i.test(Be.platform),Iu=require("events"),typeof Iu!="function"&&(Iu=Iu.EventEmitter),Be.__signal_exit_emitter__?ft=Be.__signal_exit_emitter__:(ft=Be.__signal_exit_emitter__=new Iu,ft.count=0,ft.emitted={}),ft.infinite||(ft.setMaxListeners(1/0),ft.infinite=!0),Cs.exports=function(t,e){if(!Zi(global.process))return function(){};Ox.equal(typeof t,"function","a callback must be provided for exit handler"),Es===!1&&vy();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ft.removeListener(r,t),ft.listeners("exit").length===0&&ft.listeners("afterexit").length===0&&Mf()};return ft.on(r,t),n},Mf=function(){!Es||!Zi(global.process)||(Es=!1,_s.forEach(function(e){try{Be.removeListener(e,Uf[e])}catch{}}),Be.emit=Hf,Be.reallyExit=by,ft.count-=1)},Cs.exports.unload=Mf,Qi=function(e,r,n){ft.emitted[e]||(ft.emitted[e]=!0,ft.emit(e,r,n))},Uf={},_s.forEach(function(t){Uf[t]=function(){if(Zi(global.process)){var r=Be.listeners(t);r.length===ft.count&&(Mf(),Qi("exit",null,t),Qi("afterexit",null,t),Ax&&t==="SIGHUP"&&(t="SIGINT"),Be.kill(Be.pid,t))}}}),Cs.exports.signals=function(){return _s},Es=!1,vy=function(){Es||!Zi(global.process)||(Es=!0,ft.count+=1,_s=_s.filter(function(e){try{return Be.on(e,Uf[e]),!0}catch{return!1}}),Be.emit=Tx,Be.reallyExit=kx)},Cs.exports.load=vy,by=Be.reallyExit,kx=function(e){Zi(global.process)&&(Be.exitCode=e||0,Qi("exit",Be.exitCode,null),Qi("afterexit",Be.exitCode,null),by.call(Be,Be.exitCode))},Hf=Be.emit,Tx=function(e,r){if(e==="exit"&&Zi(global.process)){r!==void 0&&(Be.exitCode=r);var n=Hf.apply(this,arguments);return Qi("exit",Be.exitCode,null),Qi("afterexit",Be.exitCode,null),n}else return Hf.apply(this,arguments)}):Cs.exports=function(){return function(){}};var Ox,_s,Ax,Iu,ft,Mf,Qi,Uf,Es,vy,by,kx,Hf,Tx});var Rx=D((Gle,_y)=>{"use strict";var Px=Symbol();function kz(t,e,r){let n=e[Px];if(n)return e.stat(t,(o,s)=>{if(o)return r(o);r(null,s.mtime,n)});let i=new Date(Math.ceil(Date.now()/1e3)*1e3+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(s,a)=>{if(s)return r(s);let u=a.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(e,Px,{value:u}),r(null,a.mtime,u)})})}function Tz(t){let e=Date.now();return t==="s"&&(e=Math.ceil(e/1e3)*1e3),new Date(e)}_y.exports.probe=kz;_y.exports.getMtime=Tz});var Lx=D((Wle,Nu)=>{"use strict";var Pz=require("path"),Sy=Xn(),Rz=xx(),$z=wy(),$x=Rx(),gn={};function ju(t,e){return e.lockfilePath||`${t}.lock`}function xy(t,e,r){if(!e.realpath)return r(null,Pz.resolve(t));e.fs.realpath(t,r)}function Cy(t,e,r){let n=ju(t,e);e.fs.mkdir(n,i=>{if(!i)return $x.probe(n,e.fs,(o,s,a)=>{if(o)return e.fs.rmdir(n,()=>{}),r(o);r(null,s,a)});if(i.code!=="EEXIST")return r(i);if(e.stale<=0)return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));e.fs.stat(n,(o,s)=>{if(o)return o.code==="ENOENT"?Cy(t,{...e,stale:0},r):r(o);if(!Ix(s,e))return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));jx(t,e,a=>{if(a)return r(a);Cy(t,{...e,stale:0},r)})})})}function Ix(t,e){return t.mtime.getTime()<Date.now()-e.stale}function jx(t,e,r){e.fs.rmdir(ju(t,e),n=>{if(n&&n.code!=="ENOENT")return r(n);r()})}function Vf(t,e){let r=gn[t];r.updateTimeout||(r.updateDelay=r.updateDelay||e.update,r.updateTimeout=setTimeout(()=>{r.updateTimeout=null,e.fs.stat(r.lockfilePath,(n,i)=>{let o=r.lastUpdate+e.stale<Date.now();if(n)return n.code==="ENOENT"||o?Ey(t,r,Object.assign(n,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Vf(t,e));if(!(r.mtime.getTime()===i.mtime.getTime()))return Ey(t,r,Object.assign(new Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=$x.getMtime(r.mtimePrecision);e.fs.utimes(r.lockfilePath,a,a,u=>{let l=r.lastUpdate+e.stale<Date.now();if(!r.released){if(u)return u.code==="ENOENT"||l?Ey(t,r,Object.assign(u,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Vf(t,e));r.mtime=a,r.lastUpdate=Date.now(),r.updateDelay=null,Vf(t,e)}})})},r.updateDelay),r.updateTimeout.unref&&r.updateTimeout.unref())}function Ey(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),gn[t]===e&&delete gn[t],e.options.onCompromised(r)}function Iz(t,e,r){e={stale:1e4,update:null,realpath:!0,retries:0,fs:Sy,onCompromised:n=>{throw n},...e},e.retries=e.retries||0,e.retries=typeof e.retries=="number"?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=e.update==null?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),xy(t,e,(n,i)=>{if(n)return r(n);let o=Rz.operation(e.retries);o.attempt(()=>{Cy(i,e,(s,a,u)=>{if(o.retry(s))return;if(s)return r(o.mainError());let l=gn[i]={lockfilePath:ju(i,e),mtime:a,mtimePrecision:u,options:e,lastUpdate:Date.now()};Vf(i,e),r(null,c=>{if(l.released)return c&&c(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));Nx(i,{...e,realpath:!1},c)})})})})}function Nx(t,e,r){e={fs:Sy,realpath:!0,...e},xy(t,e,(n,i)=>{if(n)return r(n);let o=gn[i];if(!o)return r(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete gn[i],jx(i,e,r)})}function jz(t,e,r){e={stale:1e4,realpath:!0,fs:Sy,...e},e.stale=Math.max(e.stale||0,2e3),xy(t,e,(n,i)=>{if(n)return r(n);e.fs.stat(ju(i,e),(o,s)=>o?o.code==="ENOENT"?r(null,!1):r(o):r(null,!Ix(s,e)))})}function Nz(){return gn}$z(()=>{for(let t in gn){let e=gn[t].options;try{e.fs.rmdirSync(ju(t,e))}catch{}}});Nu.exports.lock=Iz;Nu.exports.unlock=Nx;Nu.exports.check=jz;Nu.exports.getLocks=Nz});var qx=D((Kle,Bx)=>{"use strict";var Lz=Xn();function Bz(t){let e=["mkdir","realpath","stat","rmdir","utimes"],r={...t};return e.forEach(n=>{r[n]=(...i)=>{let o=i.pop(),s;try{s=t[`${n}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),r}function qz(t){return(...e)=>new Promise((r,n)=>{e.push((i,o)=>{i?n(i):r(o)}),t(...e)})}function Mz(t){return(...e)=>{let r,n;if(e.push((i,o)=>{r=i,n=o}),t(...e),r)throw r;return n}}function Uz(t){if(t={...t},t.fs=Bz(t.fs||Lz),typeof t.retries=="number"&&t.retries>0||t.retries&&typeof t.retries.retries=="number"&&t.retries.retries>0)throw Object.assign(new Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}Bx.exports={toPromise:qz,toSync:Mz,toSyncOptions:Uz}});var Ux=D((Yle,Zn)=>{"use strict";var Ss=Lx(),{toPromise:zf,toSync:Gf,toSyncOptions:Fy}=qx();async function Mx(t,e){let r=await zf(Ss.lock)(t,e);return zf(r)}function Hz(t,e){let r=Gf(Ss.lock)(t,Fy(e));return Gf(r)}function Vz(t,e){return zf(Ss.unlock)(t,e)}function zz(t,e){return Gf(Ss.unlock)(t,Fy(e))}function Gz(t,e){return zf(Ss.check)(t,e)}function Wz(t,e){return Gf(Ss.check)(t,Fy(e))}Zn.exports=Mx;Zn.exports.lock=Mx;Zn.exports.unlock=Vz;Zn.exports.lockSync=Hz;Zn.exports.unlockSync=zz;Zn.exports.check=Gz;Zn.exports.checkSync=Wz});var Wx=D(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.canStoreURLs=xs.FileUrlStorage=void 0;var Hx=require("fs"),Kz=Jz(fx()),Vx=Yz(Ux());function Gx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Gx=function(n){return n?r:e})(t)}function Yz(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=Gx(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&{}.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function Jz(t){return t&&t.__esModule?t:{default:t}}function Lu(t){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lu(t)}function Xz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qz(n.key),n)}}function Zz(t,e,r){return e&&zx(t.prototype,e),r&&zx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qz(t){var e=eG(t,"string");return Lu(e)=="symbol"?e:e+""}function eG(t,e){if(Lu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jle=xs.canStoreURLs=!0,Xle=xs.FileUrlStorage=function(){function t(e){Xz(this,t),this.path=e}return Zz(t,[{key:"findAllUploads",value:function(){var r=this;return new Promise(function(n,i){r._getItems("tus::",function(o,s){o?i(o):n(s)})})}},{key:"findUploadsByFingerprint",value:function(r){var n=this;return new Promise(function(i,o){n._getItems("tus::".concat(r),function(s,a){s?o(s):i(a)})})}},{key:"removeUpload",value:function(r){var n=this;return new Promise(function(i,o){n._removeItem(r,function(s){s?o(s):i()})})}},{key:"addUpload",value:function(r,n){var i=this,o=Math.round(Math.random()*1e12),s="tus::".concat(r,"::").concat(o);return new Promise(function(a,u){i._setItem(s,n,function(l){l?u(l):a(s)})})}},{key:"_setItem",value:function(r,n,i){var o=this;Vx.lock(this.path,this._lockfileOptions()).then(function(s){i=o._releaseAndCb(s,i),o._getData(function(a,u){if(a){i(a);return}u[r]=n,o._writeData(u,function(l){return i(l)})})}).catch(i)}},{key:"_getItems",value:function(r,n){this._getData(function(i,o){if(i){n(i);return}var s=Object.keys(o).filter(function(a){return a.startsWith(r)}).map(function(a){var u=o[a];return u.urlStorageKey=a,u});n(null,s)})}},{key:"_removeItem",value:function(r,n){var i=this;Vx.lock(this.path,this._lockfileOptions()).then(function(o){n=i._releaseAndCb(o,n),i._getData(function(s,a){if(s){n(s);return}delete a[r],i._writeData(a,function(u){return n(u)})})}).catch(n)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(r,n){return function(i){if(i){r().then(function(){return n(i)}).catch(function(o){return n((0,Kz.default)([i,o]))});return}r().then(n).catch(n)}}},{key:"_writeData",value:function(r,n){var i={encoding:"utf8",mode:432,flag:"w"};(0,Hx.writeFile)(this.path,JSON.stringify(r),i,function(o){return n(o)})}},{key:"_getData",value:function(r){(0,Hx.readFile)(this.path,"utf8",function(n,i){if(n){n.code==="ENOENT"?r(null,{}):r(n);return}try{i=i.trim().length?JSON.parse(i):{}}catch(o){r(o);return}r(null,i)})}}])}()});var ky=D(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Object.defineProperty(Vt,"DefaultHttpStack",{enumerable:!0,get:function(){return Xx.default}});Object.defineProperty(Vt,"DetailedError",{enumerable:!0,get:function(){return tG.default}});Object.defineProperty(Vt,"FileUrlStorage",{enumerable:!0,get:function(){return Zx.FileUrlStorage}});Object.defineProperty(Vt,"StreamSource",{enumerable:!0,get:function(){return sG.default}});Vt.Upload=void 0;Object.defineProperty(Vt,"canStoreURLs",{enumerable:!0,get:function(){return Zx.canStoreURLs}});Vt.defaultOptions=void 0;Object.defineProperty(Vt,"enableDebugLog",{enumerable:!0,get:function(){return rG.enableDebugLog}});Vt.isSupported=void 0;var tG=eo(Eg()),rG=Cg(),nG=eo(WC()),Oy=eo(ES()),iG=eo(jS()),oG=eo(qS()),Xx=eo(e1()),sG=eo(Lg()),Zx=Wx();function eo(t){return t&&t.__esModule?t:{default:t}}function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function aG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,e2(n.key),n)}}function uG(t,e,r){return e&&Kx(t.prototype,e),r&&Kx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lG(t,e,r){return e=Wf(e),cG(t,Qx()?Reflect.construct(e,r||[],Wf(t).constructor):e.apply(t,r))}function cG(t,e){if(e&&(Os(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fG(t)}function fG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qx=function(){return!!t})()}function Wf(t){return Wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wf(t)}function dG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ay(t,e)}function Ay(t,e){return Ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ay(t,e)}function Yx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yx(Object(r),!0).forEach(function(n){hG(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hG(t,e,r){return e=e2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e2(t){var e=pG(t,"string");return Os(e)=="symbol"?e:e+""}function pG(t,e){if(Os(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jx=Vt.defaultOptions=Fs(Fs({},Oy.default.defaultOptions),{},{httpStack:new Xx.default,fileReader:new iG.default,urlStorage:new nG.default,fingerprint:oG.default}),Qle=Vt.Upload=function(t){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aG(this,e),n=Fs(Fs({},Jx),n),lG(this,e,[r,n])}return dG(e,t),uG(e,null,[{key:"terminate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=Fs(Fs({},Jx),i),Oy.default.terminate(n,i)}}])}(Oy.default),ece=Vt.isSupported=!0});var rr={};gi(rr,{__addDisposableResource:()=>S2,__assign:()=>Kf,__asyncDelegator:()=>y2,__asyncGenerator:()=>g2,__asyncValues:()=>D2,__await:()=>As,__awaiter:()=>c2,__classPrivateFieldGet:()=>_2,__classPrivateFieldIn:()=>C2,__classPrivateFieldSet:()=>E2,__createBinding:()=>Jf,__decorate:()=>n2,__disposeResources:()=>x2,__esDecorate:()=>o2,__exportStar:()=>d2,__extends:()=>t2,__generator:()=>f2,__importDefault:()=>w2,__importStar:()=>b2,__makeTemplateObject:()=>v2,__metadata:()=>l2,__param:()=>i2,__propKey:()=>a2,__read:()=>Ry,__rest:()=>r2,__rewriteRelativeImportExtension:()=>F2,__runInitializers:()=>s2,__setFunctionName:()=>u2,__spread:()=>h2,__spreadArray:()=>m2,__spreadArrays:()=>p2,__values:()=>Yf,default:()=>yG});function t2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ty(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function r2(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function n2(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function i2(t,e){return function(r,n){e(r,n,t)}}function o2(t,e,r,n,i,o){function s(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var a=n.kind,u=a==="getter"?"get":a==="setter"?"set":"value",l=!e&&t?n.static?t:t.prototype:null,c=e||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f,h=!1,d=r.length-1;d>=0;d--){var m={};for(var b in n)m[b]=b==="access"?{}:n[b];for(var b in n.access)m.access[b]=n.access[b];m.addInitializer=function(E){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(E||null))};var y=(0,r[d])(a==="accessor"?{get:c.get,set:c.set}:c[u],m);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(f=s(y.get))&&(c.get=f),(f=s(y.set))&&(c.set=f),(f=s(y.init))&&i.unshift(f)}else(f=s(y))&&(a==="field"?i.unshift(f):c[u]=f)}l&&Object.defineProperty(l,n.name,c),h=!0}function s2(t,e,r){for(var n=arguments.length>2,i=0;i<e.length;i++)r=n?e[i].call(t,r):e[i].call(t);return n?r:void 0}function a2(t){return typeof t=="symbol"?t:"".concat(t)}function u2(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function l2(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function c2(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{l(n.next(c))}catch(f){s(f)}}function u(c){try{l(n.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):i(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function f2(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function d2(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Jf(e,t,r)}function Yf(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ry(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function h2(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ry(arguments[e]));return t}function p2(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function m2(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function As(t){return this instanceof As?(this.v=t,this):new As(t)}function g2(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(d){return function(m){return Promise.resolve(m).then(d,f)}}function a(d,m){n[d]&&(i[d]=function(b){return new Promise(function(y,E){o.push([d,b,y,E])>1||u(d,b)})},m&&(i[d]=m(i[d])))}function u(d,m){try{l(n[d](m))}catch(b){h(o[0][3],b)}}function l(d){d.value instanceof As?Promise.resolve(d.value.v).then(c,f):h(o[0][2],d)}function c(d){u("next",d)}function f(d){u("throw",d)}function h(d,m){d(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function y2(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,o){e[i]=t[i]?function(s){return(r=!r)?{value:As(t[i](s)),done:!1}:o?o(s):s}:o}}function D2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Yf=="function"?Yf(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}}function v2(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function b2(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=Py(t),n=0;n<r.length;n++)r[n]!=="default"&&Jf(e,t,r[n]);return mG(e,t),e}function w2(t){return t&&t.__esModule?t:{default:t}}function _2(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function E2(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function C2(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function S2(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}function x2(t){function e(o){t.error=t.hasError?new gG(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var r,n=0;function i(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(s){return e(s),i()})}else n|=1}catch(s){e(s)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i()}function F2(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,s){return n?e?".jsx":".js":i&&(!o||!s)?r:i+o+"."+s.toLowerCase()+"js"}):t}var Ty,Kf,Jf,mG,Py,gG,yG,nr=Ct(()=>{Ty=function(t,e){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ty(t,e)};Kf=function(){return Kf=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Kf.apply(this,arguments)};Jf=Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};mG=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},Py=function(t){return Py=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},Py(t)};gG=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};yG={__extends:t2,__assign:Kf,__rest:r2,__decorate:n2,__param:i2,__esDecorate:o2,__runInitializers:s2,__propKey:a2,__setFunctionName:u2,__metadata:l2,__awaiter:c2,__generator:f2,__createBinding:Jf,__exportStar:d2,__values:Yf,__read:Ry,__spread:h2,__spreadArrays:p2,__spreadArray:m2,__await:As,__asyncGenerator:g2,__asyncDelegator:y2,__asyncValues:D2,__makeTemplateObject:v2,__importStar:b2,__importDefault:w2,__classPrivateFieldGet:_2,__classPrivateFieldSet:E2,__classPrivateFieldIn:C2,__addDisposableResource:S2,__disposeResources:x2,__rewriteRelativeImportExtension:F2}});var A2=D((rce,O2)=>{var ks=1e3,Ts=ks*60,Ps=Ts*60,to=Ps*24,DG=to*7,vG=to*365.25;O2.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return bG(t);if(r==="number"&&isFinite(t))return e.long?_G(t):wG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function bG(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*vG;case"weeks":case"week":case"w":return r*DG;case"days":case"day":case"d":return r*to;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ps;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ts;case"seconds":case"second":case"secs":case"sec":case"s":return r*ks;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wG(t){var e=Math.abs(t);return e>=to?Math.round(t/to)+"d":e>=Ps?Math.round(t/Ps)+"h":e>=Ts?Math.round(t/Ts)+"m":e>=ks?Math.round(t/ks)+"s":t+"ms"}function _G(t){var e=Math.abs(t);return e>=to?Xf(t,e,to,"day"):e>=Ps?Xf(t,e,Ps,"hour"):e>=Ts?Xf(t,e,Ts,"minute"):e>=ks?Xf(t,e,ks,"second"):t+" ms"}function Xf(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var $y=D((nce,k2)=>{function EG(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=a,r.humanize=A2(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let h=0;h<c.length;h++)f=(f<<5)-f+c.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,h=null,d,m;function b(...y){if(!b.enabled)return;let E=b,F=Number(new Date),g=F-(f||F);E.diff=g,E.prev=f,E.curr=F,f=F,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let C=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(T,x)=>{if(T==="%%")return"%";C++;let L=r.formatters[x];if(typeof L=="function"){let S=y[C];T=L.call(E,S),y.splice(C,1),C--}return T}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return b.namespace=c,b.useColors=r.useColors(),b.color=r.selectColor(c),b.extend=n,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==r.namespaces&&(d=r.namespaces,m=r.enabled(c)),m),set:y=>{h=y}}),typeof r.init=="function"&&r.init(b),b}function n(c,f){let h=r(this.namespace+(typeof f>"u"?":":f)+c);return h.log=this.log,h}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function o(c,f){let h=0,d=0,m=-1,b=0;for(;h<c.length;)if(d<f.length&&(f[d]===c[h]||f[d]==="*"))f[d]==="*"?(m=d,b=h,d++):(h++,d++);else if(m!==-1)d=m+1,b++,h=b;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}function s(){let c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function a(c){for(let f of r.skips)if(o(c,f))return!1;for(let f of r.names)if(o(c,f))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}k2.exports=EG});var T2=D((ir,Zf)=>{ir.formatArgs=SG;ir.save=xG;ir.load=FG;ir.useColors=CG;ir.storage=OG();ir.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ir.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function CG(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function SG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Zf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}ir.log=console.debug||console.log||(()=>{});function xG(t){try{t?ir.storage.setItem("debug",t):ir.storage.removeItem("debug")}catch{}}function FG(){let t;try{t=ir.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function OG(){try{return localStorage}catch{}}Zf.exports=$y()(ir);var{formatters:AG}=Zf.exports;AG.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var R2=D((ice,P2)=>{"use strict";P2.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var j2=D((oce,I2)=>{"use strict";var kG=require("os"),$2=require("tty"),mr=R2(),{env:dt}=process,Qn;mr("no-color")||mr("no-colors")||mr("color=false")||mr("color=never")?Qn=0:(mr("color")||mr("colors")||mr("color=true")||mr("color=always"))&&(Qn=1);"FORCE_COLOR"in dt&&(dt.FORCE_COLOR==="true"?Qn=1:dt.FORCE_COLOR==="false"?Qn=0:Qn=dt.FORCE_COLOR.length===0?1:Math.min(parseInt(dt.FORCE_COLOR,10),3));function Iy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function jy(t,e){if(Qn===0)return 0;if(mr("color=16m")||mr("color=full")||mr("color=truecolor"))return 3;if(mr("color=256"))return 2;if(t&&!e&&Qn===void 0)return 0;let r=Qn||0;if(dt.TERM==="dumb")return r;if(process.platform==="win32"){let n=kG.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in dt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in dt)||dt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in dt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dt.TEAMCITY_VERSION)?1:0;if(dt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dt){let n=parseInt((dt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dt.TERM)||"COLORTERM"in dt?1:r}function TG(t){let e=jy(t,t&&t.isTTY);return Iy(e)}I2.exports={supportsColor:TG,stdout:Iy(jy(!0,$2.isatty(1))),stderr:Iy(jy(!0,$2.isatty(2)))}});var L2=D((ht,ed)=>{var PG=require("tty"),Qf=require("util");ht.init=BG;ht.log=jG;ht.formatArgs=$G;ht.save=NG;ht.load=LG;ht.useColors=RG;ht.destroy=Qf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ht.colors=[6,2,3,4,5,1];try{let t=j2();t&&(t.stderr||t).level>=2&&(ht.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ht.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function RG(){return"colors"in ht.inspectOpts?!!ht.inspectOpts.colors:PG.isatty(process.stderr.fd)}function $G(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
|
|
38
|
+
GFS4: `),console.error(t)});ze[wt]||(vx=global[wt]||[],wx(ze,vx),ze.close=function(t){function e(r,n){return t.call(ze,r,function(i){i||bx(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Bf,{value:t}),e}(ze.close),ze.closeSync=function(t){function e(r){t.apply(ze,arguments),bx()}return Object.defineProperty(e,Bf,{value:t}),e}(ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ji(ze[wt]),require("assert").equal(ze[wt].length,0)}));var vx;global[wt]||wx(global,ze[wt]);Dy.exports=gy(Fz(ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ze.__patched&&(Dy.exports=gy(ze),ze.__patched=!0);function gy(t){Sz(t),t.gracefulify=gy,t.createReadStream=A,t.createWriteStream=T;var e=t.readFile;t.readFile=r;function r(S,I,$){return typeof I=="function"&&($=I,I=null),B(S,I,$);function B(q,K,V,_){return e(q,K,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?ws([B,[q,K,V],v,_||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return n(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=s);function s(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return o(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(S,I,$,B){return typeof $=="function"&&(B=$,$=0),q(S,I,$,B);function q(K,V,_,v,w){return a(K,V,_,function(O){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(S,I,$){typeof I=="function"&&($=I,I=null);var B=c.test(process.version)?function(V,_,v,w){return l(V,q(V,_,v,w))}:function(V,_,v,w){return l(V,_,q(V,_,v,w))};return B(S,I,$);function q(K,V,_,v){return function(w,O){w&&(w.code==="EMFILE"||w.code==="ENFILE")?ws([B,[K,V,_],w,v||Date.now(),Date.now()]):(O&&O.sort&&O.sort(),typeof _=="function"&&_.call(this,w,O))}}}if(process.version.substr(0,4)==="v0.8"){var h=xz(t);E=h.ReadStream,g=h.WriteStream}var d=t.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=F);var m=t.WriteStream;m&&(g.prototype=Object.create(m.prototype),g.prototype.open=C),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(S){E=S},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return g},set:function(S){g=S},enumerable:!0,configurable:!0});var b=E;Object.defineProperty(t,"FileReadStream",{get:function(){return b},set:function(S){b=S},enumerable:!0,configurable:!0});var y=g;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0});function E(S,I){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function F(){var S=this;L(S.path,S.flags,S.mode,function(I,$){I?(S.autoClose&&S.destroy(),S.emit("error",I)):(S.fd=$,S.emit("open",$),S.read())})}function g(S,I){return this instanceof g?(m.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var S=this;L(S.path,S.flags,S.mode,function(I,$){I?(S.destroy(),S.emit("error",I)):(S.fd=$,S.emit("open",$))})}function A(S,I){return new t.ReadStream(S,I)}function T(S,I){return new t.WriteStream(S,I)}var x=t.open;t.open=L;function L(S,I,$,B){return typeof $=="function"&&(B=$,$=null),q(S,I,$,B);function q(K,V,_,v,w){return x(K,V,_,function(O,j){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ws([q,[K,V,_,v],O,w||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}return t}function ws(t){Ji("ENQUEUE",t[0].name,t[1]),ze[wt].push(t),yy()}var Lf;function bx(){for(var t=Date.now(),e=0;e<ze[wt].length;++e)ze[wt][e].length>2&&(ze[wt][e][3]=t,ze[wt][e][4]=t);yy()}function yy(){if(clearTimeout(Lf),Lf=void 0,ze[wt].length!==0){var t=ze[wt].shift(),e=t[0],r=t[1],n=t[2],i=t[3],o=t[4];if(i===void 0)Ji("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Ji("TIMEOUT",e.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,u=Math.max(o-i,1),l=Math.min(u*1.2,100);a>=l?(Ji("RETRY",e.name,r),e.apply(null,r.concat([i]))):ze[wt].push(t)}Lf===void 0&&(Lf=setTimeout(yy,0))}}});var Ex=D((Mle,_x)=>{function pr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}_x.exports=pr;pr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};pr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};pr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};pr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};pr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};pr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};pr.prototype.start=pr.prototype.try;pr.prototype.errors=function(){return this._errors};pr.prototype.attempts=function(){return this._attempts};pr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,s=(t[o]||0)+1;t[o]=s,s>=r&&(e=i,r=s)}return e}});var Cx=D(Xi=>{var Az=Ex();Xi.operation=function(t){var e=Xi.timeouts(t);return new Az(e,{forever:t&&t.forever,unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Xi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(o,s){return o-s}),n};Xi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*e.minTimeout*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Xi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var o=r[i],s=t[o];t[o]=function(u){var l=Xi.operation(e),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(h){l.retry(h)||(h&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){u.apply(t,c)})}.bind(t,s),t[o].options=e}}});var xx=D((Hle,Sx)=>{Sx.exports=Cx()});var Fx=D((Vle,qf)=>{qf.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qf.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qf.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var wy=D((zle,Cs)=>{var Be=global.process,Zi=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Zi(Be)?(Ox=require("assert"),_s=Fx(),Ax=/^win/i.test(Be.platform),Iu=require("events"),typeof Iu!="function"&&(Iu=Iu.EventEmitter),Be.__signal_exit_emitter__?ft=Be.__signal_exit_emitter__:(ft=Be.__signal_exit_emitter__=new Iu,ft.count=0,ft.emitted={}),ft.infinite||(ft.setMaxListeners(1/0),ft.infinite=!0),Cs.exports=function(t,e){if(!Zi(global.process))return function(){};Ox.equal(typeof t,"function","a callback must be provided for exit handler"),Es===!1&&vy();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){ft.removeListener(r,t),ft.listeners("exit").length===0&&ft.listeners("afterexit").length===0&&Mf()};return ft.on(r,t),n},Mf=function(){!Es||!Zi(global.process)||(Es=!1,_s.forEach(function(e){try{Be.removeListener(e,Uf[e])}catch{}}),Be.emit=Hf,Be.reallyExit=by,ft.count-=1)},Cs.exports.unload=Mf,Qi=function(e,r,n){ft.emitted[e]||(ft.emitted[e]=!0,ft.emit(e,r,n))},Uf={},_s.forEach(function(t){Uf[t]=function(){if(Zi(global.process)){var r=Be.listeners(t);r.length===ft.count&&(Mf(),Qi("exit",null,t),Qi("afterexit",null,t),Ax&&t==="SIGHUP"&&(t="SIGINT"),Be.kill(Be.pid,t))}}}),Cs.exports.signals=function(){return _s},Es=!1,vy=function(){Es||!Zi(global.process)||(Es=!0,ft.count+=1,_s=_s.filter(function(e){try{return Be.on(e,Uf[e]),!0}catch{return!1}}),Be.emit=Tx,Be.reallyExit=kx)},Cs.exports.load=vy,by=Be.reallyExit,kx=function(e){Zi(global.process)&&(Be.exitCode=e||0,Qi("exit",Be.exitCode,null),Qi("afterexit",Be.exitCode,null),by.call(Be,Be.exitCode))},Hf=Be.emit,Tx=function(e,r){if(e==="exit"&&Zi(global.process)){r!==void 0&&(Be.exitCode=r);var n=Hf.apply(this,arguments);return Qi("exit",Be.exitCode,null),Qi("afterexit",Be.exitCode,null),n}else return Hf.apply(this,arguments)}):Cs.exports=function(){return function(){}};var Ox,_s,Ax,Iu,ft,Mf,Qi,Uf,Es,vy,by,kx,Hf,Tx});var Rx=D((Gle,_y)=>{"use strict";var Px=Symbol();function kz(t,e,r){let n=e[Px];if(n)return e.stat(t,(o,s)=>{if(o)return r(o);r(null,s.mtime,n)});let i=new Date(Math.ceil(Date.now()/1e3)*1e3+5);e.utimes(t,i,i,o=>{if(o)return r(o);e.stat(t,(s,a)=>{if(s)return r(s);let u=a.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(e,Px,{value:u}),r(null,a.mtime,u)})})}function Tz(t){let e=Date.now();return t==="s"&&(e=Math.ceil(e/1e3)*1e3),new Date(e)}_y.exports.probe=kz;_y.exports.getMtime=Tz});var Lx=D((Wle,Nu)=>{"use strict";var Pz=require("path"),Sy=Xn(),Rz=xx(),$z=wy(),$x=Rx(),gn={};function ju(t,e){return e.lockfilePath||`${t}.lock`}function xy(t,e,r){if(!e.realpath)return r(null,Pz.resolve(t));e.fs.realpath(t,r)}function Cy(t,e,r){let n=ju(t,e);e.fs.mkdir(n,i=>{if(!i)return $x.probe(n,e.fs,(o,s,a)=>{if(o)return e.fs.rmdir(n,()=>{}),r(o);r(null,s,a)});if(i.code!=="EEXIST")return r(i);if(e.stale<=0)return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));e.fs.stat(n,(o,s)=>{if(o)return o.code==="ENOENT"?Cy(t,{...e,stale:0},r):r(o);if(!Ix(s,e))return r(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:t}));jx(t,e,a=>{if(a)return r(a);Cy(t,{...e,stale:0},r)})})})}function Ix(t,e){return t.mtime.getTime()<Date.now()-e.stale}function jx(t,e,r){e.fs.rmdir(ju(t,e),n=>{if(n&&n.code!=="ENOENT")return r(n);r()})}function Vf(t,e){let r=gn[t];r.updateTimeout||(r.updateDelay=r.updateDelay||e.update,r.updateTimeout=setTimeout(()=>{r.updateTimeout=null,e.fs.stat(r.lockfilePath,(n,i)=>{let o=r.lastUpdate+e.stale<Date.now();if(n)return n.code==="ENOENT"||o?Ey(t,r,Object.assign(n,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Vf(t,e));if(!(r.mtime.getTime()===i.mtime.getTime()))return Ey(t,r,Object.assign(new Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=$x.getMtime(r.mtimePrecision);e.fs.utimes(r.lockfilePath,a,a,u=>{let l=r.lastUpdate+e.stale<Date.now();if(!r.released){if(u)return u.code==="ENOENT"||l?Ey(t,r,Object.assign(u,{code:"ECOMPROMISED"})):(r.updateDelay=1e3,Vf(t,e));r.mtime=a,r.lastUpdate=Date.now(),r.updateDelay=null,Vf(t,e)}})})},r.updateDelay),r.updateTimeout.unref&&r.updateTimeout.unref())}function Ey(t,e,r){e.released=!0,e.updateTimeout&&clearTimeout(e.updateTimeout),gn[t]===e&&delete gn[t],e.options.onCompromised(r)}function Iz(t,e,r){e={stale:1e4,update:null,realpath:!0,retries:0,fs:Sy,onCompromised:n=>{throw n},...e},e.retries=e.retries||0,e.retries=typeof e.retries=="number"?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=e.update==null?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),xy(t,e,(n,i)=>{if(n)return r(n);let o=Rz.operation(e.retries);o.attempt(()=>{Cy(i,e,(s,a,u)=>{if(o.retry(s))return;if(s)return r(o.mainError());let l=gn[i]={lockfilePath:ju(i,e),mtime:a,mtimePrecision:u,options:e,lastUpdate:Date.now()};Vf(i,e),r(null,c=>{if(l.released)return c&&c(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));Nx(i,{...e,realpath:!1},c)})})})})}function Nx(t,e,r){e={fs:Sy,realpath:!0,...e},xy(t,e,(n,i)=>{if(n)return r(n);let o=gn[i];if(!o)return r(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete gn[i],jx(i,e,r)})}function jz(t,e,r){e={stale:1e4,realpath:!0,fs:Sy,...e},e.stale=Math.max(e.stale||0,2e3),xy(t,e,(n,i)=>{if(n)return r(n);e.fs.stat(ju(i,e),(o,s)=>o?o.code==="ENOENT"?r(null,!1):r(o):r(null,!Ix(s,e)))})}function Nz(){return gn}$z(()=>{for(let t in gn){let e=gn[t].options;try{e.fs.rmdirSync(ju(t,e))}catch{}}});Nu.exports.lock=Iz;Nu.exports.unlock=Nx;Nu.exports.check=jz;Nu.exports.getLocks=Nz});var qx=D((Kle,Bx)=>{"use strict";var Lz=Xn();function Bz(t){let e=["mkdir","realpath","stat","rmdir","utimes"],r={...t};return e.forEach(n=>{r[n]=(...i)=>{let o=i.pop(),s;try{s=t[`${n}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),r}function qz(t){return(...e)=>new Promise((r,n)=>{e.push((i,o)=>{i?n(i):r(o)}),t(...e)})}function Mz(t){return(...e)=>{let r,n;if(e.push((i,o)=>{r=i,n=o}),t(...e),r)throw r;return n}}function Uz(t){if(t={...t},t.fs=Bz(t.fs||Lz),typeof t.retries=="number"&&t.retries>0||t.retries&&typeof t.retries.retries=="number"&&t.retries.retries>0)throw Object.assign(new Error("Cannot use retries with the sync api"),{code:"ESYNC"});return t}Bx.exports={toPromise:qz,toSync:Mz,toSyncOptions:Uz}});var Ux=D((Yle,Zn)=>{"use strict";var Ss=Lx(),{toPromise:zf,toSync:Gf,toSyncOptions:Fy}=qx();async function Mx(t,e){let r=await zf(Ss.lock)(t,e);return zf(r)}function Hz(t,e){let r=Gf(Ss.lock)(t,Fy(e));return Gf(r)}function Vz(t,e){return zf(Ss.unlock)(t,e)}function zz(t,e){return Gf(Ss.unlock)(t,Fy(e))}function Gz(t,e){return zf(Ss.check)(t,e)}function Wz(t,e){return Gf(Ss.check)(t,Fy(e))}Zn.exports=Mx;Zn.exports.lock=Mx;Zn.exports.unlock=Vz;Zn.exports.lockSync=Hz;Zn.exports.unlockSync=zz;Zn.exports.check=Gz;Zn.exports.checkSync=Wz});var Wx=D(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.canStoreURLs=xs.FileUrlStorage=void 0;var Hx=require("fs"),Kz=Jz(fx()),Vx=Yz(Ux());function Gx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Gx=function(n){return n?r:e})(t)}function Yz(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=Gx(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&{}.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function Jz(t){return t&&t.__esModule?t:{default:t}}function Lu(t){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lu(t)}function Xz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qz(n.key),n)}}function Zz(t,e,r){return e&&zx(t.prototype,e),r&&zx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qz(t){var e=eG(t,"string");return Lu(e)=="symbol"?e:e+""}function eG(t,e){if(Lu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jle=xs.canStoreURLs=!0,Xle=xs.FileUrlStorage=function(){function t(e){Xz(this,t),this.path=e}return Zz(t,[{key:"findAllUploads",value:function(){var r=this;return new Promise(function(n,i){r._getItems("tus::",function(o,s){o?i(o):n(s)})})}},{key:"findUploadsByFingerprint",value:function(r){var n=this;return new Promise(function(i,o){n._getItems("tus::".concat(r),function(s,a){s?o(s):i(a)})})}},{key:"removeUpload",value:function(r){var n=this;return new Promise(function(i,o){n._removeItem(r,function(s){s?o(s):i()})})}},{key:"addUpload",value:function(r,n){var i=this,o=Math.round(Math.random()*1e12),s="tus::".concat(r,"::").concat(o);return new Promise(function(a,u){i._setItem(s,n,function(l){l?u(l):a(s)})})}},{key:"_setItem",value:function(r,n,i){var o=this;Vx.lock(this.path,this._lockfileOptions()).then(function(s){i=o._releaseAndCb(s,i),o._getData(function(a,u){if(a){i(a);return}u[r]=n,o._writeData(u,function(l){return i(l)})})}).catch(i)}},{key:"_getItems",value:function(r,n){this._getData(function(i,o){if(i){n(i);return}var s=Object.keys(o).filter(function(a){return a.startsWith(r)}).map(function(a){var u=o[a];return u.urlStorageKey=a,u});n(null,s)})}},{key:"_removeItem",value:function(r,n){var i=this;Vx.lock(this.path,this._lockfileOptions()).then(function(o){n=i._releaseAndCb(o,n),i._getData(function(s,a){if(s){n(s);return}delete a[r],i._writeData(a,function(u){return n(u)})})}).catch(n)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(r,n){return function(i){if(i){r().then(function(){return n(i)}).catch(function(o){return n((0,Kz.default)([i,o]))});return}r().then(n).catch(n)}}},{key:"_writeData",value:function(r,n){var i={encoding:"utf8",mode:432,flag:"w"};(0,Hx.writeFile)(this.path,JSON.stringify(r),i,function(o){return n(o)})}},{key:"_getData",value:function(r){(0,Hx.readFile)(this.path,"utf8",function(n,i){if(n){n.code==="ENOENT"?r(null,{}):r(n);return}try{i=i.trim().length?JSON.parse(i):{}}catch(o){r(o);return}r(null,i)})}}])}()});var ky=D(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Object.defineProperty(Vt,"DefaultHttpStack",{enumerable:!0,get:function(){return Xx.default}});Object.defineProperty(Vt,"DetailedError",{enumerable:!0,get:function(){return tG.default}});Object.defineProperty(Vt,"FileUrlStorage",{enumerable:!0,get:function(){return Zx.FileUrlStorage}});Object.defineProperty(Vt,"StreamSource",{enumerable:!0,get:function(){return sG.default}});Vt.Upload=void 0;Object.defineProperty(Vt,"canStoreURLs",{enumerable:!0,get:function(){return Zx.canStoreURLs}});Vt.defaultOptions=void 0;Object.defineProperty(Vt,"enableDebugLog",{enumerable:!0,get:function(){return rG.enableDebugLog}});Vt.isSupported=void 0;var tG=eo(Eg()),rG=Cg(),nG=eo(WC()),Oy=eo(ES()),iG=eo(jS()),oG=eo(qS()),Xx=eo(e1()),sG=eo(Lg()),Zx=Wx();function eo(t){return t&&t.__esModule?t:{default:t}}function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function aG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eF(n.key),n)}}function uG(t,e,r){return e&&Kx(t.prototype,e),r&&Kx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lG(t,e,r){return e=Wf(e),cG(t,Qx()?Reflect.construct(e,r||[],Wf(t).constructor):e.apply(t,r))}function cG(t,e){if(e&&(Os(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fG(t)}function fG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qx=function(){return!!t})()}function Wf(t){return Wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wf(t)}function dG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ay(t,e)}function Ay(t,e){return Ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ay(t,e)}function Yx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yx(Object(r),!0).forEach(function(n){hG(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hG(t,e,r){return e=eF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eF(t){var e=pG(t,"string");return Os(e)=="symbol"?e:e+""}function pG(t,e){if(Os(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jx=Vt.defaultOptions=Fs(Fs({},Oy.default.defaultOptions),{},{httpStack:new Xx.default,fileReader:new iG.default,urlStorage:new nG.default,fingerprint:oG.default}),Qle=Vt.Upload=function(t){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aG(this,e),n=Fs(Fs({},Jx),n),lG(this,e,[r,n])}return dG(e,t),uG(e,null,[{key:"terminate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=Fs(Fs({},Jx),i),Oy.default.terminate(n,i)}}])}(Oy.default),ece=Vt.isSupported=!0});var rr={};gi(rr,{__addDisposableResource:()=>SF,__assign:()=>Kf,__asyncDelegator:()=>yF,__asyncGenerator:()=>gF,__asyncValues:()=>DF,__await:()=>As,__awaiter:()=>cF,__classPrivateFieldGet:()=>_F,__classPrivateFieldIn:()=>CF,__classPrivateFieldSet:()=>EF,__createBinding:()=>Jf,__decorate:()=>nF,__disposeResources:()=>xF,__esDecorate:()=>oF,__exportStar:()=>dF,__extends:()=>tF,__generator:()=>fF,__importDefault:()=>wF,__importStar:()=>bF,__makeTemplateObject:()=>vF,__metadata:()=>lF,__param:()=>iF,__propKey:()=>aF,__read:()=>Ry,__rest:()=>rF,__rewriteRelativeImportExtension:()=>FF,__runInitializers:()=>sF,__setFunctionName:()=>uF,__spread:()=>hF,__spreadArray:()=>mF,__spreadArrays:()=>pF,__values:()=>Yf,default:()=>yG});function tF(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ty(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function rF(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function nF(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function iF(t,e){return function(r,n){e(r,n,t)}}function oF(t,e,r,n,i,o){function s(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var a=n.kind,u=a==="getter"?"get":a==="setter"?"set":"value",l=!e&&t?n.static?t:t.prototype:null,c=e||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f,h=!1,d=r.length-1;d>=0;d--){var m={};for(var b in n)m[b]=b==="access"?{}:n[b];for(var b in n.access)m.access[b]=n.access[b];m.addInitializer=function(E){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(E||null))};var y=(0,r[d])(a==="accessor"?{get:c.get,set:c.set}:c[u],m);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(f=s(y.get))&&(c.get=f),(f=s(y.set))&&(c.set=f),(f=s(y.init))&&i.unshift(f)}else(f=s(y))&&(a==="field"?i.unshift(f):c[u]=f)}l&&Object.defineProperty(l,n.name,c),h=!0}function sF(t,e,r){for(var n=arguments.length>2,i=0;i<e.length;i++)r=n?e[i].call(t,r):e[i].call(t);return n?r:void 0}function aF(t){return typeof t=="symbol"?t:"".concat(t)}function uF(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function lF(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function cF(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{l(n.next(c))}catch(f){s(f)}}function u(c){try{l(n.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):i(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function fF(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function dF(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Jf(e,t,r)}function Yf(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ry(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function hF(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ry(arguments[e]));return t}function pF(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function mF(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}function As(t){return this instanceof As?(this.v=t,this):new As(t)}function gF(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(d){return function(m){return Promise.resolve(m).then(d,f)}}function a(d,m){n[d]&&(i[d]=function(b){return new Promise(function(y,E){o.push([d,b,y,E])>1||u(d,b)})},m&&(i[d]=m(i[d])))}function u(d,m){try{l(n[d](m))}catch(b){h(o[0][3],b)}}function l(d){d.value instanceof As?Promise.resolve(d.value.v).then(c,f):h(o[0][2],d)}function c(d){u("next",d)}function f(d){u("throw",d)}function h(d,m){d(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function yF(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,o){e[i]=t[i]?function(s){return(r=!r)?{value:As(t[i](s)),done:!1}:o?o(s):s}:o}}function DF(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Yf=="function"?Yf(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}}function vF(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function bF(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=Py(t),n=0;n<r.length;n++)r[n]!=="default"&&Jf(e,t,r[n]);return mG(e,t),e}function wF(t){return t&&t.__esModule?t:{default:t}}function _F(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function EF(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function CF(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function SF(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}function xF(t){function e(o){t.error=t.hasError?new gG(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}var r,n=0;function i(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(s){return e(s),i()})}else n|=1}catch(s){e(s)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i()}function FF(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,s){return n?e?".jsx":".js":i&&(!o||!s)?r:i+o+"."+s.toLowerCase()+"js"}):t}var Ty,Kf,Jf,mG,Py,gG,yG,nr=Ct(()=>{Ty=function(t,e){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ty(t,e)};Kf=function(){return Kf=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Kf.apply(this,arguments)};Jf=Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};mG=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},Py=function(t){return Py=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},Py(t)};gG=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};yG={__extends:tF,__assign:Kf,__rest:rF,__decorate:nF,__param:iF,__esDecorate:oF,__runInitializers:sF,__propKey:aF,__setFunctionName:uF,__metadata:lF,__awaiter:cF,__generator:fF,__createBinding:Jf,__exportStar:dF,__values:Yf,__read:Ry,__spread:hF,__spreadArrays:pF,__spreadArray:mF,__await:As,__asyncGenerator:gF,__asyncDelegator:yF,__asyncValues:DF,__makeTemplateObject:vF,__importStar:bF,__importDefault:wF,__classPrivateFieldGet:_F,__classPrivateFieldSet:EF,__classPrivateFieldIn:CF,__addDisposableResource:SF,__disposeResources:xF,__rewriteRelativeImportExtension:FF}});var AF=D((rce,OF)=>{var ks=1e3,Ts=ks*60,Ps=Ts*60,to=Ps*24,DG=to*7,vG=to*365.25;OF.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return bG(t);if(r==="number"&&isFinite(t))return e.long?_G(t):wG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function bG(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*vG;case"weeks":case"week":case"w":return r*DG;case"days":case"day":case"d":return r*to;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ps;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ts;case"seconds":case"second":case"secs":case"sec":case"s":return r*ks;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wG(t){var e=Math.abs(t);return e>=to?Math.round(t/to)+"d":e>=Ps?Math.round(t/Ps)+"h":e>=Ts?Math.round(t/Ts)+"m":e>=ks?Math.round(t/ks)+"s":t+"ms"}function _G(t){var e=Math.abs(t);return e>=to?Xf(t,e,to,"day"):e>=Ps?Xf(t,e,Ps,"hour"):e>=Ts?Xf(t,e,Ts,"minute"):e>=ks?Xf(t,e,ks,"second"):t+" ms"}function Xf(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var $y=D((nce,kF)=>{function EG(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=a,r.humanize=AF(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let h=0;h<c.length;h++)f=(f<<5)-f+c.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,h=null,d,m;function b(...y){if(!b.enabled)return;let E=b,F=Number(new Date),g=F-(f||F);E.diff=g,E.prev=f,E.curr=F,f=F,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let C=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(T,x)=>{if(T==="%%")return"%";C++;let L=r.formatters[x];if(typeof L=="function"){let S=y[C];T=L.call(E,S),y.splice(C,1),C--}return T}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return b.namespace=c,b.useColors=r.useColors(),b.color=r.selectColor(c),b.extend=n,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==r.namespaces&&(d=r.namespaces,m=r.enabled(c)),m),set:y=>{h=y}}),typeof r.init=="function"&&r.init(b),b}function n(c,f){let h=r(this.namespace+(typeof f>"u"?":":f)+c);return h.log=this.log,h}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function o(c,f){let h=0,d=0,m=-1,b=0;for(;h<c.length;)if(d<f.length&&(f[d]===c[h]||f[d]==="*"))f[d]==="*"?(m=d,b=h,d++):(h++,d++);else if(m!==-1)d=m+1,b++,h=b;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}function s(){let c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function a(c){for(let f of r.skips)if(o(c,f))return!1;for(let f of r.names)if(o(c,f))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}kF.exports=EG});var TF=D((ir,Zf)=>{ir.formatArgs=SG;ir.save=xG;ir.load=FG;ir.useColors=CG;ir.storage=OG();ir.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ir.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function CG(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function SG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Zf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}ir.log=console.debug||console.log||(()=>{});function xG(t){try{t?ir.storage.setItem("debug",t):ir.storage.removeItem("debug")}catch{}}function FG(){let t;try{t=ir.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function OG(){try{return localStorage}catch{}}Zf.exports=$y()(ir);var{formatters:AG}=Zf.exports;AG.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var RF=D((ice,PF)=>{"use strict";PF.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var jF=D((oce,IF)=>{"use strict";var kG=require("os"),$F=require("tty"),mr=RF(),{env:dt}=process,Qn;mr("no-color")||mr("no-colors")||mr("color=false")||mr("color=never")?Qn=0:(mr("color")||mr("colors")||mr("color=true")||mr("color=always"))&&(Qn=1);"FORCE_COLOR"in dt&&(dt.FORCE_COLOR==="true"?Qn=1:dt.FORCE_COLOR==="false"?Qn=0:Qn=dt.FORCE_COLOR.length===0?1:Math.min(parseInt(dt.FORCE_COLOR,10),3));function Iy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function jy(t,e){if(Qn===0)return 0;if(mr("color=16m")||mr("color=full")||mr("color=truecolor"))return 3;if(mr("color=256"))return 2;if(t&&!e&&Qn===void 0)return 0;let r=Qn||0;if(dt.TERM==="dumb")return r;if(process.platform==="win32"){let n=kG.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in dt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in dt)||dt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in dt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dt.TEAMCITY_VERSION)?1:0;if(dt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dt){let n=parseInt((dt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dt.TERM)||"COLORTERM"in dt?1:r}function TG(t){let e=jy(t,t&&t.isTTY);return Iy(e)}IF.exports={supportsColor:TG,stdout:Iy(jy(!0,$F.isatty(1))),stderr:Iy(jy(!0,$F.isatty(2)))}});var LF=D((ht,ed)=>{var PG=require("tty"),Qf=require("util");ht.init=BG;ht.log=jG;ht.formatArgs=$G;ht.save=NG;ht.load=LG;ht.useColors=RG;ht.destroy=Qf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ht.colors=[6,2,3,4,5,1];try{let t=jF();t&&(t.stderr||t).level>=2&&(ht.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ht.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function RG(){return"colors"in ht.inspectOpts?!!ht.inspectOpts.colors:PG.isatty(process.stderr.fd)}function $G(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
|
|
39
39
|
`).join(`
|
|
40
40
|
`+o),t.push(i+"m+"+ed.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=IG()+e+" "+t[0]}function IG(){return ht.inspectOpts.hideDate?"":new Date().toISOString()+" "}function jG(...t){return process.stderr.write(Qf.formatWithOptions(ht.inspectOpts,...t)+`
|
|
41
|
-
`)}function NG(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function LG(){return process.env.DEBUG}function BG(t){t.inspectOpts={};let e=Object.keys(ht.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ht.inspectOpts[e[r]]}ed.exports=$y()(ht);var{formatters:
|
|
42
|
-
`).map(e=>e.trim()).join(" ")};
|
|
41
|
+
`)}function NG(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function LG(){return process.env.DEBUG}function BG(t){t.inspectOpts={};let e=Object.keys(ht.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ht.inspectOpts[e[r]]}ed.exports=$y()(ht);var{formatters:NF}=ed.exports;NF.o=function(t){return this.inspectOpts.colors=this.useColors,Qf.inspect(t,this.inspectOpts).split(`
|
|
42
|
+
`).map(e=>e.trim()).join(" ")};NF.O=function(t){return this.inspectOpts.colors=this.useColors,Qf.inspect(t,this.inspectOpts)}});var Ly=D((sce,Ny)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ny.exports=TF():Ny.exports=LF()});var pt=D(By=>{"use strict";By.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{e.push((i,o)=>i!=null?n(i):r(o)),t.apply(this,e)})},"name",{value:t.name})};By.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(n=>r(null,n),r)},"name",{value:t.name})}});var Pt=D(yn=>{"use strict";var BF=pt().fromCallback,Tt=Xn(),qG=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Tt[t]=="function");Object.assign(yn,Tt);qG.forEach(t=>{yn[t]=BF(Tt[t])});yn.exists=function(t,e){return typeof e=="function"?Tt.exists(t,e):new Promise(r=>Tt.exists(t,r))};yn.read=function(t,e,r,n,i,o){return typeof o=="function"?Tt.read(t,e,r,n,i,o):new Promise((s,a)=>{Tt.read(t,e,r,n,i,(u,l,c)=>{if(u)return a(u);s({bytesRead:l,buffer:c})})})};yn.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Tt.write(t,e,...r):new Promise((n,i)=>{Tt.write(t,e,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};yn.readv=function(t,e,...r){return typeof r[r.length-1]=="function"?Tt.readv(t,e,...r):new Promise((n,i)=>{Tt.readv(t,e,...r,(o,s,a)=>{if(o)return i(o);n({bytesRead:s,buffers:a})})})};yn.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?Tt.writev(t,e,...r):new Promise((n,i)=>{Tt.writev(t,e,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})};typeof Tt.realpath.native=="function"?yn.realpath.native=BF(Tt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var MF=D((lce,qF)=>{"use strict";var MG=require("path");qF.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(MG.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var zF=D((cce,qy)=>{"use strict";var UF=Pt(),{checkPath:HF}=MF(),VF=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};qy.exports.makeDir=async(t,e)=>(HF(t),UF.mkdir(t,{mode:VF(e),recursive:!0}));qy.exports.makeDirSync=(t,e)=>(HF(t),UF.mkdirSync(t,{mode:VF(e),recursive:!0}))});var xr=D((fce,GF)=>{"use strict";var UG=pt().fromPromise,{makeDir:HG,makeDirSync:My}=zF(),Uy=UG(HG);GF.exports={mkdirs:Uy,mkdirsSync:My,mkdirp:Uy,mkdirpSync:My,ensureDir:Uy,ensureDirSync:My}});var ei=D((dce,KF)=>{"use strict";var VG=pt().fromPromise,WF=Pt();function zG(t){return WF.access(t).then(()=>!0).catch(()=>!1)}KF.exports={pathExists:VG(zG),pathExistsSync:WF.existsSync}});var Hy=D((hce,YF)=>{"use strict";var Rs=Pt(),GG=pt().fromPromise;async function WG(t,e,r){let n=await Rs.open(t,"r+"),i=null;try{await Rs.futimes(n,e,r)}finally{try{await Rs.close(n)}catch(o){i=o}}if(i)throw i}function KG(t,e,r){let n=Rs.openSync(t,"r+");return Rs.futimesSync(n,e,r),Rs.closeSync(n)}YF.exports={utimesMillis:GG(WG),utimesMillisSync:KG}});var ro=D((pce,QF)=>{"use strict";var $s=Pt(),mt=require("path"),JF=pt().fromPromise;function YG(t,e,r){let n=r.dereference?i=>$s.stat(i,{bigint:!0}):i=>$s.lstat(i,{bigint:!0});return Promise.all([n(t),n(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function JG(t,e,r){let n,i=r.dereference?s=>$s.statSync(s,{bigint:!0}):s=>$s.lstatSync(s,{bigint:!0}),o=i(t);try{n=i(e)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:n}}async function XG(t,e,r,n){let{srcStat:i,destStat:o}=await YG(t,e,n);if(o){if(Bu(i,o)){let s=mt.basename(t),a=mt.basename(e);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(i.isDirectory()&&Vy(t,e))throw new Error(td(t,e,r));return{srcStat:i,destStat:o}}function ZG(t,e,r,n){let{srcStat:i,destStat:o}=JG(t,e,n);if(o){if(Bu(i,o)){let s=mt.basename(t),a=mt.basename(e);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(i.isDirectory()&&Vy(t,e))throw new Error(td(t,e,r));return{srcStat:i,destStat:o}}async function XF(t,e,r,n){let i=mt.resolve(mt.dirname(t)),o=mt.resolve(mt.dirname(r));if(o===i||o===mt.parse(o).root)return;let s;try{s=await $s.stat(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Bu(e,s))throw new Error(td(t,r,n));return XF(t,e,o,n)}function ZF(t,e,r,n){let i=mt.resolve(mt.dirname(t)),o=mt.resolve(mt.dirname(r));if(o===i||o===mt.parse(o).root)return;let s;try{s=$s.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(Bu(e,s))throw new Error(td(t,r,n));return ZF(t,e,o,n)}function Bu(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Vy(t,e){let r=mt.resolve(t).split(mt.sep).filter(i=>i),n=mt.resolve(e).split(mt.sep).filter(i=>i);return r.every((i,o)=>n[o]===i)}function td(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}QF.exports={checkPaths:JF(XG),checkPathsSync:ZG,checkParentPaths:JF(XF),checkParentPathsSync:ZF,isSrcSubdir:Vy,areIdentical:Bu}});var i2=D((mce,n2)=>{"use strict";var xt=Pt(),qu=require("path"),{mkdirs:QG}=xr(),{pathExists:eW}=ei(),{utimesMillis:tW}=Hy(),Mu=ro();async function rW(t,e,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
43
43
|
|
|
44
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await Mu.checkPaths(t,e,"copy",r);if(await Mu.checkParentPaths(t,n,e,"copy"),!await
|
|
44
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await Mu.checkPaths(t,e,"copy",r);if(await Mu.checkParentPaths(t,n,e,"copy"),!await t2(t,e,r))return;let s=qu.dirname(e);await eW(s)||await QG(s),await r2(i,t,e,r)}async function t2(t,e,r){return r.filter?r.filter(t,e):!0}async function r2(t,e,r,n){let o=await(n.dereference?xt.stat:xt.lstat)(e);if(o.isDirectory())return sW(o,t,e,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return nW(o,t,e,r,n);if(o.isSymbolicLink())return aW(t,e,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function nW(t,e,r,n,i){if(!e)return e2(t,r,n,i);if(i.overwrite)return await xt.unlink(n),e2(t,r,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}async function e2(t,e,r,n){if(await xt.copyFile(e,r),n.preserveTimestamps){iW(t.mode)&&await oW(r,t.mode);let i=await xt.stat(e);await tW(r,i.atime,i.mtime)}return xt.chmod(r,t.mode)}function iW(t){return(t&128)===0}function oW(t,e){return xt.chmod(t,e|128)}async function sW(t,e,r,n,i){e||await xt.mkdir(n);let o=[];for await(let s of await xt.opendir(r)){let a=qu.join(r,s.name),u=qu.join(n,s.name);o.push(t2(a,u,i).then(l=>{if(l)return Mu.checkPaths(a,u,"copy",i).then(({destStat:c})=>r2(c,a,u,i))}))}await Promise.all(o),e||await xt.chmod(n,t.mode)}async function aW(t,e,r,n){let i=await xt.readlink(e);if(n.dereference&&(i=qu.resolve(process.cwd(),i)),!t)return xt.symlink(i,r);let o=null;try{o=await xt.readlink(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return xt.symlink(i,r);throw s}if(n.dereference&&(o=qu.resolve(process.cwd(),o)),Mu.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Mu.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return await xt.unlink(r),xt.symlink(i,r)}n2.exports=rW});var l2=D((gce,u2)=>{"use strict";var Rt=Xn(),Uu=require("path"),uW=xr().mkdirsSync,lW=Hy().utimesMillisSync,Hu=ro();function cW(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
45
45
|
|
|
46
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=Hu.checkPathsSync(t,e,"copy",r);if(Hu.checkParentPathsSync(t,n,e,"copy"),r.filter&&!r.filter(t,e))return;let o=Uu.dirname(e);return Rt.existsSync(o)||uW(o),
|
|
47
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+o}function ZW(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}WF.exports={stringify:XW,stripBom:ZW}});var XF=D((Fce,JF)=>{var Is;try{Is=Xn()}catch{Is=require("fs")}var id=pt(),{stringify:KF,stripBom:YF}=nd();async function QW(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Is,n="throws"in e?e.throws:!0,i=await id.fromCallback(r.readFile)(t,e);i=YF(i);let o;try{o=JSON.parse(i,e?e.reviver:null)}catch(s){if(n)throw s.message=`${t}: ${s.message}`,s;return null}return o}var eK=id.fromPromise(QW);function tK(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Is,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=YF(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function rK(t,e,r={}){let n=r.fs||Is,i=KF(e,r);await id.fromCallback(n.writeFile)(t,i,r)}var nK=id.fromPromise(rK);function iK(t,e,r={}){let n=r.fs||Is,i=KF(e,r);return n.writeFileSync(t,i,r)}var oK={readFile:eK,readFileSync:tK,writeFile:nK,writeFileSync:iK};JF.exports=oK});var QF=D((Oce,ZF)=>{"use strict";var od=XF();ZF.exports={readJson:od.readFile,readJsonSync:od.readFileSync,writeJson:od.writeFile,writeJsonSync:od.writeFileSync}});var sd=D((Ace,rO)=>{"use strict";var sK=pt().fromPromise,Gy=Pt(),eO=require("path"),tO=xr(),aK=ei().pathExists;async function uK(t,e,r="utf-8"){let n=eO.dirname(t);return await aK(n)||await tO.mkdirs(n),Gy.writeFile(t,e,r)}function lK(t,...e){let r=eO.dirname(t);Gy.existsSync(r)||tO.mkdirsSync(r),Gy.writeFileSync(t,...e)}rO.exports={outputFile:sK(uK),outputFileSync:lK}});var iO=D((kce,nO)=>{"use strict";var{stringify:cK}=nd(),{outputFile:fK}=sd();async function dK(t,e,r={}){let n=cK(e,r);await fK(t,n,r)}nO.exports=dK});var sO=D((Tce,oO)=>{"use strict";var{stringify:hK}=nd(),{outputFileSync:pK}=sd();function mK(t,e,r){let n=hK(e,r);pK(t,n,r)}oO.exports=mK});var uO=D((Pce,aO)=>{"use strict";var gK=pt().fromPromise,$t=QF();$t.outputJson=gK(iO());$t.outputJsonSync=sO();$t.outputJSON=$t.outputJson;$t.outputJSONSync=$t.outputJsonSync;$t.writeJSON=$t.writeJson;$t.writeJSONSync=$t.writeJsonSync;$t.readJSON=$t.readJson;$t.readJSONSync=$t.readJsonSync;aO.exports=$t});var hO=D((Rce,dO)=>{"use strict";var yK=Pt(),lO=require("path"),{copy:DK}=rd(),{remove:fO}=Vu(),{mkdirp:vK}=xr(),{pathExists:bK}=ei(),cO=ro();async function wK(t,e,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=await cO.checkPaths(t,e,"move",r);await cO.checkParentPaths(t,i,e,"move");let s=lO.dirname(e);return lO.parse(s).root!==s&&await vK(s),_K(t,e,n,o)}async function _K(t,e,r,n){if(!n){if(r)await fO(e);else if(await bK(e))throw new Error("dest already exists.")}try{await yK.rename(t,e)}catch(i){if(i.code!=="EXDEV")throw i;await EK(t,e,r)}}async function EK(t,e,r){return await DK(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),fO(t)}dO.exports=wK});var DO=D(($ce,yO)=>{"use strict";var mO=Xn(),Ky=require("path"),CK=rd().copySync,gO=Vu().removeSync,SK=xr().mkdirpSync,pO=ro();function xK(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=pO.checkPathsSync(t,e,"move",r);return pO.checkParentPathsSync(t,i,e,"move"),FK(e)||SK(Ky.dirname(e)),OK(t,e,n,o)}function FK(t){let e=Ky.dirname(t);return Ky.parse(e).root===e}function OK(t,e,r,n){if(n)return Wy(t,e,r);if(r)return gO(e),Wy(t,e,r);if(mO.existsSync(e))throw new Error("dest already exists.");return Wy(t,e,r)}function Wy(t,e,r){try{mO.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return AK(t,e,r)}}function AK(t,e,r){return CK(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),gO(t)}yO.exports=xK});var bO=D((Ice,vO)=>{"use strict";var kK=pt().fromPromise;vO.exports={move:kK(hO()),moveSync:DO()}});var js=D((jce,wO)=>{"use strict";wO.exports={...Pt(),...rd(),...bF(),...GF(),...uO(),...xr(),...bO(),...sd(),...ei(),...Vu()}});var OO=D((Nce,FO)=>{"use strict";var Yy,EO,CO,SO,xO=!0;typeof process<"u"&&({FORCE_COLOR:Yy,NODE_DISABLE_COLORS:EO,NO_COLOR:CO,TERM:SO}=process.env||{},xO=process.stdout&&process.stdout.isTTY);var be={enabled:!EO&&CO==null&&SO!=="dumb"&&(Yy!=null&&Yy!=="0"||xO),reset:xe(0,0),bold:xe(1,22),dim:xe(2,22),italic:xe(3,23),underline:xe(4,24),inverse:xe(7,27),hidden:xe(8,28),strikethrough:xe(9,29),black:xe(30,39),red:xe(31,39),green:xe(32,39),yellow:xe(33,39),blue:xe(34,39),magenta:xe(35,39),cyan:xe(36,39),white:xe(37,39),gray:xe(90,39),grey:xe(90,39),bgBlack:xe(40,49),bgRed:xe(41,49),bgGreen:xe(42,49),bgYellow:xe(43,49),bgBlue:xe(44,49),bgMagenta:xe(45,49),bgCyan:xe(46,49),bgWhite:xe(47,49)};function _O(t,e){let r=0,n,i="",o="";for(;r<t.length;r++)n=t[r],i+=n.open,o+=n.close,~e.indexOf(n.close)&&(e=e.replace(n.rgx,n.close+n.open));return i+e+o}function TK(t,e){let r={has:t,keys:e};return r.reset=be.reset.bind(r),r.bold=be.bold.bind(r),r.dim=be.dim.bind(r),r.italic=be.italic.bind(r),r.underline=be.underline.bind(r),r.inverse=be.inverse.bind(r),r.hidden=be.hidden.bind(r),r.strikethrough=be.strikethrough.bind(r),r.black=be.black.bind(r),r.red=be.red.bind(r),r.green=be.green.bind(r),r.yellow=be.yellow.bind(r),r.blue=be.blue.bind(r),r.magenta=be.magenta.bind(r),r.cyan=be.cyan.bind(r),r.white=be.white.bind(r),r.gray=be.gray.bind(r),r.grey=be.grey.bind(r),r.bgBlack=be.bgBlack.bind(r),r.bgRed=be.bgRed.bind(r),r.bgGreen=be.bgGreen.bind(r),r.bgYellow=be.bgYellow.bind(r),r.bgBlue=be.bgBlue.bind(r),r.bgMagenta=be.bgMagenta.bind(r),r.bgCyan=be.bgCyan.bind(r),r.bgWhite=be.bgWhite.bind(r),r}function xe(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),n===void 0?this:be.enabled?_O(this.keys,n+""):n+""):n===void 0?TK([t],[r]):be.enabled?_O([r],n+""):n+""}}FO.exports=be});var Ns=D(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.ancillary=rt.failure=rt.success=rt.input=rt.weak=rt.strong=void 0;var PK=(nr(),je(rr)),Gr=PK.__importDefault(OO());rt.strong=Gr.default.bold;rt.weak=Gr.default.dim;rt.input=Gr.default.cyan;rt.success=Gr.default.green;rt.failure=Gr.default.red;rt.ancillary=Gr.default.cyan;var RK={strong:rt.strong,weak:rt.weak,input:rt.input,success:rt.success,failure:rt.failure,ancillary:rt.ancillary,log:{DEBUG:Gr.default.magenta,INFO:Gr.default.cyan,WARN:Gr.default.yellow,ERROR:Gr.default.red}};rt.default=RK});var Jy=D(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.EscapeCode=void 0;var Fr="\x1B[",gt=class{};ad.EscapeCode=gt;gt.cursorLeft=()=>`${Fr}G`;gt.cursorUp=(t=1)=>`${Fr}${t}A`;gt.cursorDown=(t=1)=>`${Fr}${t}B`;gt.cursorForward=(t=1)=>`${Fr}${t}C`;gt.cursorBackward=(t=1)=>`${Fr}${t}D`;gt.cursorHide=()=>`${Fr}?25l`;gt.cursorShow=()=>`${Fr}?25h`;gt.eraseLine=()=>`${Fr}2K`;gt.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=gt.eraseLine(),r<t-1&&(e+=gt.cursorUp());return`${e}${gt.cursorLeft()}`};gt.eraseUp=()=>`${Fr}1J`;gt.eraseDown=()=>`${Fr}J`;gt.eraseScreen=()=>`${Fr}2J`});var kO=D(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.Cursor=void 0;var $K=(nr(),je(rr)),IK=$K.__importDefault(wy()),AO=Jy(),Ls=class t{static show(){t.stream.isTTY&&(t._isVisible=!0,t.stream.write(AO.EscapeCode.cursorShow()))}static hide(){t.stream.isTTY&&(t._listenerAttached||((0,IK.default)(()=>{t.show()}),t._listenerAttached=!0),t._isVisible=!1,t.stream.write(AO.EscapeCode.cursorHide()))}static toggle(){t._isVisible?t.hide():t.show()}};ud.Cursor=Ls;Ls.stream=process.stderr;Ls._isVisible=!0;Ls._listenerAttached=!1});var Zy=D((Mce,Xy)=>{"use strict";var TO=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Xy.exports=TO;Xy.exports.default=TO});var $O=D((Uce,RO)=>{"use strict";var PO="[\uD800-\uDBFF][\uDC00-\uDFFF]",jK=t=>t&&t.exact?new RegExp(`^${PO}$`):new RegExp(PO,"g");RO.exports=jK});var jO=D((Hce,IO)=>{"use strict";IO.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Qy=D((Vce,LO)=>{var Gu=jO(),NO={};for(let t of Object.keys(Gu))NO[Gu[t]]=t;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};LO.exports=Y;for(let t of Object.keys(Y)){if(!("channels"in Y[t]))throw new Error("missing channels property: "+t);if(!("labels"in Y[t]))throw new Error("missing channel labels property: "+t);if(Y[t].labels.length!==Y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=Y[t];delete Y[t].channels,delete Y[t].labels,Object.defineProperty(Y[t],"channels",{value:e}),Object.defineProperty(Y[t],"labels",{value:r})}Y.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,u;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+o)/2;return o===i?u=0:l<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,l*100]};Y.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),f=function(h){return(l-h)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,e=f(s),r=f(a),n=f(u),s===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]};Y.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=Y.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,o*100,n*100]};Y.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),o=(1-e-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function NK(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Y.rgb.keyword=function(t){let e=NO[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Gu)){let o=Gu[i],s=NK(t,o);s<r&&(r=s,n=i)}return n};Y.keyword.rgb=function(t){return Gu[t]};Y.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,o=e*.2126+r*.7152+n*.0722,s=e*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};Y.rgb.lab=function(t){let e=Y.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};Y.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,u[l]=s*255;return u};Y.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[e,a*100,s*100]};Y.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};Y.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};Y.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,(s&1)!==0&&(o=1-o);let u=r+o*(a-r),l,c,f;switch(s){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};Y.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};Y.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2406+r*-1.5372+n*-.4986,o=e*-.9689+r*1.8758+n*.0415,s=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};Y.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(e-r),s=200*(r-n);return[i,o,s]};Y.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,u=i**3,l=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};Y.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[e,s,i]};Y.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[e,o,s]};Y.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?Y.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};Y.hsv.ansi16=function(t){return Y.rgb.ansi16(Y.hsv.rgb(t),t[2])};Y.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Y.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,o=(e>>2&1)*r*255;return[n,i,o]};Y.ansi256.rgb=function(t){if(t>=232){let o=(t-232)*10+8;return[o,o,o]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};Y.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};Y.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===e?u=(r-n)/s%6:i===r?u=2+(n-e)/s:u=4+(e-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};Y.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};Y.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};Y.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Y.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};Y.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};Y.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};Y.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],i*100,o*100]};Y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Y.gray.hsl=function(t){return[0,0,t[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(t){return[0,100,t[0]]};Y.gray.cmyk=function(t){return[0,0,0,t[0]]};Y.gray.lab=function(t){return[t[0],0,0]};Y.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var qO=D((zce,BO)=>{var ld=Qy();function LK(){let t={},e=Object.keys(ld);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function BK(t){let e=LK(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(ld[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function qK(t,e){return function(r){return e(t(r))}}function MK(t,e){let r=[e[t].parent,t],n=ld[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=qK(ld[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}BO.exports=function(t){let e=BK(t),r={},n=Object.keys(e);for(let i=n.length,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=MK(s,e))}return r}});var UO=D((Gce,MO)=>{var eD=Qy(),UK=qO(),Bs={},HK=Object.keys(eD);function VK(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function zK(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}HK.forEach(t=>{Bs[t]={},Object.defineProperty(Bs[t],"channels",{value:eD[t].channels}),Object.defineProperty(Bs[t],"labels",{value:eD[t].labels});let e=UK(t);Object.keys(e).forEach(n=>{let i=e[n];Bs[t][n]=zK(i),Bs[t][n].raw=VK(i)})});MO.exports=Bs});var rD=D((Wce,WO)=>{"use strict";var HO=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,VO=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},zO=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},cd=t=>t,GO=(t,e,r)=>[t,e,r],qs=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},tD,Ms=(t,e,r,n)=>{tD===void 0&&(tD=UO());let i=n?10:0,o={};for(let[s,a]of Object.entries(tD)){let u=s==="ansi16"?"ansi":s;s===e?o[u]=t(r,i):typeof a=="object"&&(o[u]=t(a[e],i))}return o};function GK(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,o]of Object.entries(n))e[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=e[i],t.set(o[0],o[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",qs(e.color,"ansi",()=>Ms(HO,"ansi16",cd,!1)),qs(e.color,"ansi256",()=>Ms(VO,"ansi256",cd,!1)),qs(e.color,"ansi16m",()=>Ms(zO,"rgb",GO,!1)),qs(e.bgColor,"ansi",()=>Ms(HO,"ansi16",cd,!0)),qs(e.bgColor,"ansi256",()=>Ms(VO,"ansi256",cd,!0)),qs(e.bgColor,"ansi16m",()=>Ms(zO,"rgb",GO,!0)),e}Object.defineProperty(WO,"exports",{enumerable:!0,get:GK})});var ZO=D((Kce,XO)=>{"use strict";var WK=Zy(),KK=$O(),KO=rD(),JO=["\x1B","\x9B"],fd=t=>`${JO[0]}[${t}m`,YO=(t,e,r)=>{let n=[];t=[...t];for(let i of t){let o=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let s=KO.codes.get(Number.parseInt(i,10));if(s){let a=t.indexOf(s.toString());a===-1?n.push(fd(e?s:o)):t.splice(a,1)}else if(e){n.push(fd(0));break}else n.push(fd(o))}if(e&&(n=n.filter((i,o)=>n.indexOf(i)===o),r!==void 0)){let i=fd(KO.codes.get(Number.parseInt(r,10)));n=n.reduce((o,s)=>s===i?[s,...o]:[...o,s],[])}return n.join("")};XO.exports=(t,e,r)=>{let n=[...t],i=[],o=typeof r=="number"?r:n.length,s=!1,a,u=0,l="";for(let[c,f]of n.entries()){let h=!1;if(JO.includes(f)){let d=/\d[^m]*/.exec(t.slice(c,c+18));a=d&&d.length>0?d[0]:void 0,u<o&&(s=!0,a!==void 0&&i.push(a))}else s&&f==="m"&&(s=!1,h=!0);if(!s&&!h&&u++,!KK({exact:!0}).test(f)&&WK(f.codePointAt())&&(u++,typeof r!="number"&&o++),u>e&&u<=o)l+=f;else if(u===e&&!s&&a!==void 0)l=YO(i);else if(u>=o){l+=YO(i,!0,a);break}}return l}});var eA=D((Yce,QO)=>{"use strict";QO.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var dd=D((Jce,tA)=>{"use strict";var YK=eA();tA.exports=t=>typeof t=="string"?t.replace(YK(),""):t});var nA=D((Xce,rA)=>{"use strict";rA.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var iD=D((Zce,nD)=>{"use strict";var JK=dd(),XK=Zy(),ZK=nA(),iA=t=>{if(typeof t!="string"||t.length===0||(t=JK(t),t.length===0))return 0;t=t.replace(ZK()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=XK(n)?2:1)}return e};nD.exports=iA;nD.exports.default=iA});var cA=D((Qce,lA)=>{"use strict";var Wu=iD(),QK=dd(),eY=rD(),hd=new Set(["\x1B","\x9B"]),tY=39,sD="\x07",aA="[",rY="]",uA="m",aD=`${rY}8;;`,oA=t=>`${hd.values().next().value}${aA}${t}${uA}`,sA=t=>`${hd.values().next().value}${aD}${t}${sD}`,nY=t=>t.split(" ").map(e=>Wu(e)),oD=(t,e,r)=>{let n=[...e],i=!1,o=!1,s=Wu(QK(t[t.length-1]));for(let[a,u]of n.entries()){let l=Wu(u);if(s+l<=r?t[t.length-1]+=u:(t.push(u),s=0),hd.has(u)&&(i=!0,o=n.slice(a+1).join("").startsWith(aD)),i){o?u===sD&&(i=!1,o=!1):u===uA&&(i=!1);continue}s+=l,s===r&&a<n.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},iY=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(Wu(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},oY=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,o,s=nY(t),a=[""];for(let[l,c]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Wu(a[a.length-1]);if(l!==0&&(f>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[l]>e){let h=e-f,d=1+Math.floor((s[l]-h-1)/e);Math.floor((s[l]-1)/e)<d&&a.push(""),oD(a,c,e);continue}if(f+s[l]>e&&f>0&&s[l]>0){if(r.wordWrap===!1&&f<e){oD(a,c,e);continue}a.push("")}if(f+s[l]>e&&r.wordWrap===!1){oD(a,c,e);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(iY));let u=[...a.join(`
|
|
46
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=Hu.checkPathsSync(t,e,"copy",r);if(Hu.checkParentPathsSync(t,n,e,"copy"),r.filter&&!r.filter(t,e))return;let o=Uu.dirname(e);return Rt.existsSync(o)||uW(o),o2(i,t,e,r)}function o2(t,e,r,n){let o=(n.dereference?Rt.statSync:Rt.lstatSync)(e);if(o.isDirectory())return yW(o,t,e,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return fW(o,t,e,r,n);if(o.isSymbolicLink())return bW(t,e,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${e}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function fW(t,e,r,n,i){return e?dW(t,r,n,i):s2(t,r,n,i)}function dW(t,e,r,n){if(n.overwrite)return Rt.unlinkSync(r),s2(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function s2(t,e,r,n){return Rt.copyFileSync(e,r),n.preserveTimestamps&&hW(t.mode,e,r),zy(r,t.mode)}function hW(t,e,r){return pW(t)&&mW(r,t),gW(e,r)}function pW(t){return(t&128)===0}function mW(t,e){return zy(t,e|128)}function zy(t,e){return Rt.chmodSync(t,e)}function gW(t,e){let r=Rt.statSync(t);return lW(e,r.atime,r.mtime)}function yW(t,e,r,n,i){return e?a2(r,n,i):DW(t.mode,r,n,i)}function DW(t,e,r,n){return Rt.mkdirSync(r),a2(e,r,n),zy(r,t)}function a2(t,e,r){let n=Rt.opendirSync(t);try{let i;for(;(i=n.readSync())!==null;)vW(i.name,t,e,r)}finally{n.closeSync()}}function vW(t,e,r,n){let i=Uu.join(e,t),o=Uu.join(r,t);if(n.filter&&!n.filter(i,o))return;let{destStat:s}=Hu.checkPathsSync(i,o,"copy",n);return o2(s,i,o,n)}function bW(t,e,r,n){let i=Rt.readlinkSync(e);if(n.dereference&&(i=Uu.resolve(process.cwd(),i)),t){let o;try{o=Rt.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Rt.symlinkSync(i,r);throw s}if(n.dereference&&(o=Uu.resolve(process.cwd(),o)),Hu.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Hu.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return wW(i,r)}else return Rt.symlinkSync(i,r)}function wW(t,e){return Rt.unlinkSync(e),Rt.symlinkSync(t,e)}u2.exports=cW});var rd=D((yce,c2)=>{"use strict";var _W=pt().fromPromise;c2.exports={copy:_W(i2()),copySync:l2()}});var Vu=D((Dce,d2)=>{"use strict";var f2=Xn(),EW=pt().fromCallback;function CW(t,e){f2.rm(t,{recursive:!0,force:!0},e)}function SW(t){f2.rmSync(t,{recursive:!0,force:!0})}d2.exports={remove:EW(CW),removeSync:SW}});var b2=D((vce,v2)=>{"use strict";var xW=pt().fromPromise,m2=Pt(),g2=require("path"),y2=xr(),D2=Vu(),h2=xW(async function(e){let r;try{r=await m2.readdir(e)}catch{return y2.mkdirs(e)}return Promise.all(r.map(n=>D2.remove(g2.join(e,n))))});function p2(t){let e;try{e=m2.readdirSync(t)}catch{return y2.mkdirsSync(t)}e.forEach(r=>{r=g2.join(t,r),D2.removeSync(r)})}v2.exports={emptyDirSync:p2,emptydirSync:p2,emptyDir:h2,emptydir:h2}});var C2=D((bce,E2)=>{"use strict";var FW=pt().fromPromise,w2=require("path"),Dn=Pt(),_2=xr();async function OW(t){let e;try{e=await Dn.stat(t)}catch{}if(e&&e.isFile())return;let r=w2.dirname(t),n=null;try{n=await Dn.stat(r)}catch(i){if(i.code==="ENOENT"){await _2.mkdirs(r),await Dn.writeFile(t,"");return}else throw i}n.isDirectory()?await Dn.writeFile(t,""):await Dn.readdir(r)}function AW(t){let e;try{e=Dn.statSync(t)}catch{}if(e&&e.isFile())return;let r=w2.dirname(t);try{Dn.statSync(r).isDirectory()||Dn.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")_2.mkdirsSync(r);else throw n}Dn.writeFileSync(t,"")}E2.exports={createFile:FW(OW),createFileSync:AW}});var A2=D((wce,O2)=>{"use strict";var kW=pt().fromPromise,S2=require("path"),ti=Pt(),x2=xr(),{pathExists:TW}=ei(),{areIdentical:F2}=ro();async function PW(t,e){let r;try{r=await ti.lstat(e)}catch{}let n;try{n=await ti.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}if(r&&F2(n,r))return;let i=S2.dirname(e);await TW(i)||await x2.mkdirs(i),await ti.link(t,e)}function RW(t,e){let r;try{r=ti.lstatSync(e)}catch{}try{let o=ti.lstatSync(t);if(r&&F2(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=S2.dirname(e);return ti.existsSync(n)||x2.mkdirsSync(n),ti.linkSync(t,e)}O2.exports={createLink:kW(PW),createLinkSync:RW}});var T2=D((_ce,k2)=>{"use strict";var ri=require("path"),zu=Pt(),{pathExists:$W}=ei(),IW=pt().fromPromise;async function jW(t,e){if(ri.isAbsolute(t)){try{await zu.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureSymlink"),o}return{toCwd:t,toDst:t}}let r=ri.dirname(e),n=ri.join(r,t);if(await $W(n))return{toCwd:n,toDst:t};try{await zu.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureSymlink"),o}return{toCwd:t,toDst:ri.relative(r,t)}}function NW(t,e){if(ri.isAbsolute(t)){if(!zu.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let r=ri.dirname(e),n=ri.join(r,t);if(zu.existsSync(n))return{toCwd:n,toDst:t};if(!zu.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:ri.relative(r,t)}}k2.exports={symlinkPaths:IW(jW),symlinkPathsSync:NW}});var $2=D((Ece,R2)=>{"use strict";var P2=Pt(),LW=pt().fromPromise;async function BW(t,e){if(e)return e;let r;try{r=await P2.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}function qW(t,e){if(e)return e;let r;try{r=P2.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}R2.exports={symlinkType:LW(BW),symlinkTypeSync:qW}});var L2=D((Cce,N2)=>{"use strict";var MW=pt().fromPromise,I2=require("path"),zr=Pt(),{mkdirs:UW,mkdirsSync:HW}=xr(),{symlinkPaths:VW,symlinkPathsSync:zW}=T2(),{symlinkType:GW,symlinkTypeSync:WW}=$2(),{pathExists:KW}=ei(),{areIdentical:j2}=ro();async function YW(t,e,r){let n;try{n=await zr.lstat(e)}catch{}if(n&&n.isSymbolicLink()){let[a,u]=await Promise.all([zr.stat(t),zr.stat(e)]);if(j2(a,u))return}let i=await VW(t,e);t=i.toDst;let o=await GW(i.toCwd,r),s=I2.dirname(e);return await KW(s)||await UW(s),zr.symlink(t,e,o)}function JW(t,e,r){let n;try{n=zr.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let a=zr.statSync(t),u=zr.statSync(e);if(j2(a,u))return}let i=zW(t,e);t=i.toDst,r=WW(i.toCwd,r);let o=I2.dirname(e);return zr.existsSync(o)||HW(o),zr.symlinkSync(t,e,r)}N2.exports={createSymlink:MW(YW),createSymlinkSync:JW}});var G2=D((Sce,z2)=>{"use strict";var{createFile:B2,createFileSync:q2}=C2(),{createLink:M2,createLinkSync:U2}=A2(),{createSymlink:H2,createSymlinkSync:V2}=L2();z2.exports={createFile:B2,createFileSync:q2,ensureFile:B2,ensureFileSync:q2,createLink:M2,createLinkSync:U2,ensureLink:M2,ensureLinkSync:U2,createSymlink:H2,createSymlinkSync:V2,ensureSymlink:H2,ensureSymlinkSync:V2}});var nd=D((xce,W2)=>{function XW(t,{EOL:e=`
|
|
47
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+o}function ZW(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}W2.exports={stringify:XW,stripBom:ZW}});var X2=D((Fce,J2)=>{var Is;try{Is=Xn()}catch{Is=require("fs")}var id=pt(),{stringify:K2,stripBom:Y2}=nd();async function QW(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Is,n="throws"in e?e.throws:!0,i=await id.fromCallback(r.readFile)(t,e);i=Y2(i);let o;try{o=JSON.parse(i,e?e.reviver:null)}catch(s){if(n)throw s.message=`${t}: ${s.message}`,s;return null}return o}var eK=id.fromPromise(QW);function tK(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Is,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Y2(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function rK(t,e,r={}){let n=r.fs||Is,i=K2(e,r);await id.fromCallback(n.writeFile)(t,i,r)}var nK=id.fromPromise(rK);function iK(t,e,r={}){let n=r.fs||Is,i=K2(e,r);return n.writeFileSync(t,i,r)}var oK={readFile:eK,readFileSync:tK,writeFile:nK,writeFileSync:iK};J2.exports=oK});var Q2=D((Oce,Z2)=>{"use strict";var od=X2();Z2.exports={readJson:od.readFile,readJsonSync:od.readFileSync,writeJson:od.writeFile,writeJsonSync:od.writeFileSync}});var sd=D((Ace,rO)=>{"use strict";var sK=pt().fromPromise,Gy=Pt(),eO=require("path"),tO=xr(),aK=ei().pathExists;async function uK(t,e,r="utf-8"){let n=eO.dirname(t);return await aK(n)||await tO.mkdirs(n),Gy.writeFile(t,e,r)}function lK(t,...e){let r=eO.dirname(t);Gy.existsSync(r)||tO.mkdirsSync(r),Gy.writeFileSync(t,...e)}rO.exports={outputFile:sK(uK),outputFileSync:lK}});var iO=D((kce,nO)=>{"use strict";var{stringify:cK}=nd(),{outputFile:fK}=sd();async function dK(t,e,r={}){let n=cK(e,r);await fK(t,n,r)}nO.exports=dK});var sO=D((Tce,oO)=>{"use strict";var{stringify:hK}=nd(),{outputFileSync:pK}=sd();function mK(t,e,r){let n=hK(e,r);pK(t,n,r)}oO.exports=mK});var uO=D((Pce,aO)=>{"use strict";var gK=pt().fromPromise,$t=Q2();$t.outputJson=gK(iO());$t.outputJsonSync=sO();$t.outputJSON=$t.outputJson;$t.outputJSONSync=$t.outputJsonSync;$t.writeJSON=$t.writeJson;$t.writeJSONSync=$t.writeJsonSync;$t.readJSON=$t.readJson;$t.readJSONSync=$t.readJsonSync;aO.exports=$t});var hO=D((Rce,dO)=>{"use strict";var yK=Pt(),lO=require("path"),{copy:DK}=rd(),{remove:fO}=Vu(),{mkdirp:vK}=xr(),{pathExists:bK}=ei(),cO=ro();async function wK(t,e,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=await cO.checkPaths(t,e,"move",r);await cO.checkParentPaths(t,i,e,"move");let s=lO.dirname(e);return lO.parse(s).root!==s&&await vK(s),_K(t,e,n,o)}async function _K(t,e,r,n){if(!n){if(r)await fO(e);else if(await bK(e))throw new Error("dest already exists.")}try{await yK.rename(t,e)}catch(i){if(i.code!=="EXDEV")throw i;await EK(t,e,r)}}async function EK(t,e,r){return await DK(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),fO(t)}dO.exports=wK});var DO=D(($ce,yO)=>{"use strict";var mO=Xn(),Ky=require("path"),CK=rd().copySync,gO=Vu().removeSync,SK=xr().mkdirpSync,pO=ro();function xK(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=pO.checkPathsSync(t,e,"move",r);return pO.checkParentPathsSync(t,i,e,"move"),FK(e)||SK(Ky.dirname(e)),OK(t,e,n,o)}function FK(t){let e=Ky.dirname(t);return Ky.parse(e).root===e}function OK(t,e,r,n){if(n)return Wy(t,e,r);if(r)return gO(e),Wy(t,e,r);if(mO.existsSync(e))throw new Error("dest already exists.");return Wy(t,e,r)}function Wy(t,e,r){try{mO.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return AK(t,e,r)}}function AK(t,e,r){return CK(t,e,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),gO(t)}yO.exports=xK});var bO=D((Ice,vO)=>{"use strict";var kK=pt().fromPromise;vO.exports={move:kK(hO()),moveSync:DO()}});var js=D((jce,wO)=>{"use strict";wO.exports={...Pt(),...rd(),...b2(),...G2(),...uO(),...xr(),...bO(),...sd(),...ei(),...Vu()}});var OO=D((Nce,FO)=>{"use strict";var Yy,EO,CO,SO,xO=!0;typeof process<"u"&&({FORCE_COLOR:Yy,NODE_DISABLE_COLORS:EO,NO_COLOR:CO,TERM:SO}=process.env||{},xO=process.stdout&&process.stdout.isTTY);var be={enabled:!EO&&CO==null&&SO!=="dumb"&&(Yy!=null&&Yy!=="0"||xO),reset:xe(0,0),bold:xe(1,22),dim:xe(2,22),italic:xe(3,23),underline:xe(4,24),inverse:xe(7,27),hidden:xe(8,28),strikethrough:xe(9,29),black:xe(30,39),red:xe(31,39),green:xe(32,39),yellow:xe(33,39),blue:xe(34,39),magenta:xe(35,39),cyan:xe(36,39),white:xe(37,39),gray:xe(90,39),grey:xe(90,39),bgBlack:xe(40,49),bgRed:xe(41,49),bgGreen:xe(42,49),bgYellow:xe(43,49),bgBlue:xe(44,49),bgMagenta:xe(45,49),bgCyan:xe(46,49),bgWhite:xe(47,49)};function _O(t,e){let r=0,n,i="",o="";for(;r<t.length;r++)n=t[r],i+=n.open,o+=n.close,~e.indexOf(n.close)&&(e=e.replace(n.rgx,n.close+n.open));return i+e+o}function TK(t,e){let r={has:t,keys:e};return r.reset=be.reset.bind(r),r.bold=be.bold.bind(r),r.dim=be.dim.bind(r),r.italic=be.italic.bind(r),r.underline=be.underline.bind(r),r.inverse=be.inverse.bind(r),r.hidden=be.hidden.bind(r),r.strikethrough=be.strikethrough.bind(r),r.black=be.black.bind(r),r.red=be.red.bind(r),r.green=be.green.bind(r),r.yellow=be.yellow.bind(r),r.blue=be.blue.bind(r),r.magenta=be.magenta.bind(r),r.cyan=be.cyan.bind(r),r.white=be.white.bind(r),r.gray=be.gray.bind(r),r.grey=be.grey.bind(r),r.bgBlack=be.bgBlack.bind(r),r.bgRed=be.bgRed.bind(r),r.bgGreen=be.bgGreen.bind(r),r.bgYellow=be.bgYellow.bind(r),r.bgBlue=be.bgBlue.bind(r),r.bgMagenta=be.bgMagenta.bind(r),r.bgCyan=be.bgCyan.bind(r),r.bgWhite=be.bgWhite.bind(r),r}function xe(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),n===void 0?this:be.enabled?_O(this.keys,n+""):n+""):n===void 0?TK([t],[r]):be.enabled?_O([r],n+""):n+""}}FO.exports=be});var Ns=D(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.ancillary=rt.failure=rt.success=rt.input=rt.weak=rt.strong=void 0;var PK=(nr(),je(rr)),Gr=PK.__importDefault(OO());rt.strong=Gr.default.bold;rt.weak=Gr.default.dim;rt.input=Gr.default.cyan;rt.success=Gr.default.green;rt.failure=Gr.default.red;rt.ancillary=Gr.default.cyan;var RK={strong:rt.strong,weak:rt.weak,input:rt.input,success:rt.success,failure:rt.failure,ancillary:rt.ancillary,log:{DEBUG:Gr.default.magenta,INFO:Gr.default.cyan,WARN:Gr.default.yellow,ERROR:Gr.default.red}};rt.default=RK});var Jy=D(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.EscapeCode=void 0;var Fr="\x1B[",gt=class{};ad.EscapeCode=gt;gt.cursorLeft=()=>`${Fr}G`;gt.cursorUp=(t=1)=>`${Fr}${t}A`;gt.cursorDown=(t=1)=>`${Fr}${t}B`;gt.cursorForward=(t=1)=>`${Fr}${t}C`;gt.cursorBackward=(t=1)=>`${Fr}${t}D`;gt.cursorHide=()=>`${Fr}?25l`;gt.cursorShow=()=>`${Fr}?25h`;gt.eraseLine=()=>`${Fr}2K`;gt.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=gt.eraseLine(),r<t-1&&(e+=gt.cursorUp());return`${e}${gt.cursorLeft()}`};gt.eraseUp=()=>`${Fr}1J`;gt.eraseDown=()=>`${Fr}J`;gt.eraseScreen=()=>`${Fr}2J`});var kO=D(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.Cursor=void 0;var $K=(nr(),je(rr)),IK=$K.__importDefault(wy()),AO=Jy(),Ls=class t{static show(){t.stream.isTTY&&(t._isVisible=!0,t.stream.write(AO.EscapeCode.cursorShow()))}static hide(){t.stream.isTTY&&(t._listenerAttached||((0,IK.default)(()=>{t.show()}),t._listenerAttached=!0),t._isVisible=!1,t.stream.write(AO.EscapeCode.cursorHide()))}static toggle(){t._isVisible?t.hide():t.show()}};ud.Cursor=Ls;Ls.stream=process.stderr;Ls._isVisible=!0;Ls._listenerAttached=!1});var Zy=D((Mce,Xy)=>{"use strict";var TO=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Xy.exports=TO;Xy.exports.default=TO});var $O=D((Uce,RO)=>{"use strict";var PO="[\uD800-\uDBFF][\uDC00-\uDFFF]",jK=t=>t&&t.exact?new RegExp(`^${PO}$`):new RegExp(PO,"g");RO.exports=jK});var jO=D((Hce,IO)=>{"use strict";IO.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Qy=D((Vce,LO)=>{var Gu=jO(),NO={};for(let t of Object.keys(Gu))NO[Gu[t]]=t;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};LO.exports=Y;for(let t of Object.keys(Y)){if(!("channels"in Y[t]))throw new Error("missing channels property: "+t);if(!("labels"in Y[t]))throw new Error("missing channel labels property: "+t);if(Y[t].labels.length!==Y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=Y[t];delete Y[t].channels,delete Y[t].labels,Object.defineProperty(Y[t],"channels",{value:e}),Object.defineProperty(Y[t],"labels",{value:r})}Y.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,u;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+o)/2;return o===i?u=0:l<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,l*100]};Y.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),f=function(h){return(l-h)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,e=f(s),r=f(a),n=f(u),s===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]};Y.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=Y.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,o*100,n*100]};Y.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),o=(1-e-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function NK(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Y.rgb.keyword=function(t){let e=NO[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Gu)){let o=Gu[i],s=NK(t,o);s<r&&(r=s,n=i)}return n};Y.keyword.rgb=function(t){return Gu[t]};Y.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,o=e*.2126+r*.7152+n*.0722,s=e*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};Y.rgb.lab=function(t){let e=Y.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};Y.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,u[l]=s*255;return u};Y.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[e,a*100,s*100]};Y.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};Y.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};Y.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,(s&1)!==0&&(o=1-o);let u=r+o*(a-r),l,c,f;switch(s){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};Y.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};Y.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2406+r*-1.5372+n*-.4986,o=e*-.9689+r*1.8758+n*.0415,s=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};Y.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(e-r),s=200*(r-n);return[i,o,s]};Y.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,u=i**3,l=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};Y.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[e,s,i]};Y.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[e,o,s]};Y.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?Y.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};Y.hsv.ansi16=function(t){return Y.rgb.ansi16(Y.hsv.rgb(t),t[2])};Y.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Y.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,o=(e>>2&1)*r*255;return[n,i,o]};Y.ansi256.rgb=function(t){if(t>=232){let o=(t-232)*10+8;return[o,o,o]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};Y.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};Y.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o,a,u;return s<1?a=o/(1-s):a=0,s<=0?u=0:i===e?u=(r-n)/s%6:i===r?u=2+(n-e)/s:u=4+(e-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};Y.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};Y.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};Y.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Y.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};Y.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};Y.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};Y.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],i*100,o*100]};Y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Y.gray.hsl=function(t){return[0,0,t[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(t){return[0,100,t[0]]};Y.gray.cmyk=function(t){return[0,0,0,t[0]]};Y.gray.lab=function(t){return[t[0],0,0]};Y.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var qO=D((zce,BO)=>{var ld=Qy();function LK(){let t={},e=Object.keys(ld);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function BK(t){let e=LK(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(ld[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function qK(t,e){return function(r){return e(t(r))}}function MK(t,e){let r=[e[t].parent,t],n=ld[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=qK(ld[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}BO.exports=function(t){let e=BK(t),r={},n=Object.keys(e);for(let i=n.length,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=MK(s,e))}return r}});var UO=D((Gce,MO)=>{var eD=Qy(),UK=qO(),Bs={},HK=Object.keys(eD);function VK(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function zK(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}HK.forEach(t=>{Bs[t]={},Object.defineProperty(Bs[t],"channels",{value:eD[t].channels}),Object.defineProperty(Bs[t],"labels",{value:eD[t].labels});let e=UK(t);Object.keys(e).forEach(n=>{let i=e[n];Bs[t][n]=zK(i),Bs[t][n].raw=VK(i)})});MO.exports=Bs});var rD=D((Wce,WO)=>{"use strict";var HO=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,VO=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},zO=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},cd=t=>t,GO=(t,e,r)=>[t,e,r],qs=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},tD,Ms=(t,e,r,n)=>{tD===void 0&&(tD=UO());let i=n?10:0,o={};for(let[s,a]of Object.entries(tD)){let u=s==="ansi16"?"ansi":s;s===e?o[u]=t(r,i):typeof a=="object"&&(o[u]=t(a[e],i))}return o};function GK(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,o]of Object.entries(n))e[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=e[i],t.set(o[0],o[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",qs(e.color,"ansi",()=>Ms(HO,"ansi16",cd,!1)),qs(e.color,"ansi256",()=>Ms(VO,"ansi256",cd,!1)),qs(e.color,"ansi16m",()=>Ms(zO,"rgb",GO,!1)),qs(e.bgColor,"ansi",()=>Ms(HO,"ansi16",cd,!0)),qs(e.bgColor,"ansi256",()=>Ms(VO,"ansi256",cd,!0)),qs(e.bgColor,"ansi16m",()=>Ms(zO,"rgb",GO,!0)),e}Object.defineProperty(WO,"exports",{enumerable:!0,get:GK})});var ZO=D((Kce,XO)=>{"use strict";var WK=Zy(),KK=$O(),KO=rD(),JO=["\x1B","\x9B"],fd=t=>`${JO[0]}[${t}m`,YO=(t,e,r)=>{let n=[];t=[...t];for(let i of t){let o=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let s=KO.codes.get(Number.parseInt(i,10));if(s){let a=t.indexOf(s.toString());a===-1?n.push(fd(e?s:o)):t.splice(a,1)}else if(e){n.push(fd(0));break}else n.push(fd(o))}if(e&&(n=n.filter((i,o)=>n.indexOf(i)===o),r!==void 0)){let i=fd(KO.codes.get(Number.parseInt(r,10)));n=n.reduce((o,s)=>s===i?[s,...o]:[...o,s],[])}return n.join("")};XO.exports=(t,e,r)=>{let n=[...t],i=[],o=typeof r=="number"?r:n.length,s=!1,a,u=0,l="";for(let[c,f]of n.entries()){let h=!1;if(JO.includes(f)){let d=/\d[^m]*/.exec(t.slice(c,c+18));a=d&&d.length>0?d[0]:void 0,u<o&&(s=!0,a!==void 0&&i.push(a))}else s&&f==="m"&&(s=!1,h=!0);if(!s&&!h&&u++,!KK({exact:!0}).test(f)&&WK(f.codePointAt())&&(u++,typeof r!="number"&&o++),u>e&&u<=o)l+=f;else if(u===e&&!s&&a!==void 0)l=YO(i);else if(u>=o){l+=YO(i,!0,a);break}}return l}});var eA=D((Yce,QO)=>{"use strict";QO.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var dd=D((Jce,tA)=>{"use strict";var YK=eA();tA.exports=t=>typeof t=="string"?t.replace(YK(),""):t});var nA=D((Xce,rA)=>{"use strict";rA.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var iD=D((Zce,nD)=>{"use strict";var JK=dd(),XK=Zy(),ZK=nA(),iA=t=>{if(typeof t!="string"||t.length===0||(t=JK(t),t.length===0))return 0;t=t.replace(ZK()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=XK(n)?2:1)}return e};nD.exports=iA;nD.exports.default=iA});var cA=D((Qce,lA)=>{"use strict";var Wu=iD(),QK=dd(),eY=rD(),hd=new Set(["\x1B","\x9B"]),tY=39,sD="\x07",aA="[",rY="]",uA="m",aD=`${rY}8;;`,oA=t=>`${hd.values().next().value}${aA}${t}${uA}`,sA=t=>`${hd.values().next().value}${aD}${t}${sD}`,nY=t=>t.split(" ").map(e=>Wu(e)),oD=(t,e,r)=>{let n=[...e],i=!1,o=!1,s=Wu(QK(t[t.length-1]));for(let[a,u]of n.entries()){let l=Wu(u);if(s+l<=r?t[t.length-1]+=u:(t.push(u),s=0),hd.has(u)&&(i=!0,o=n.slice(a+1).join("").startsWith(aD)),i){o?u===sD&&(i=!1,o=!1):u===uA&&(i=!1);continue}s+=l,s===r&&a<n.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},iY=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(Wu(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},oY=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,o,s=nY(t),a=[""];for(let[l,c]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Wu(a[a.length-1]);if(l!==0&&(f>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[l]>e){let h=e-f,d=1+Math.floor((s[l]-h-1)/e);Math.floor((s[l]-1)/e)<d&&a.push(""),oD(a,c,e);continue}if(f+s[l]>e&&f>0&&s[l]>0){if(r.wordWrap===!1&&f<e){oD(a,c,e);continue}a.push("")}if(f+s[l]>e&&r.wordWrap===!1){oD(a,c,e);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(iY));let u=[...a.join(`
|
|
48
48
|
`)];for(let[l,c]of u.entries()){if(n+=c,hd.has(c)){let{groups:h}=new RegExp(`(?:\\${aA}(?<code>\\d+)m|\\${aD}(?<uri>.*)${sD})`).exec(u.slice(l).join(""))||{groups:{}};if(h.code!==void 0){let d=Number.parseFloat(h.code);i=d===tY?void 0:d}else h.uri!==void 0&&(o=h.uri.length===0?void 0:h.uri)}let f=eY.codes.get(Number(i));u[l+1]===`
|
|
49
49
|
`?(o&&(n+=sA("")),i&&f&&(n+=oA(f))):c===`
|
|
50
50
|
`&&(i&&f&&(n+=oA(i)),o&&(n+=sA(o)))}return n};lA.exports=(t,e,r)=>String(t).normalize().replace(/\r\n/g,`
|
|
@@ -201,7 +201,7 @@ GFS4: `),console.error(t)});Ke[_t]||(ZI=global[_t]||[],ej(Ke,ZI),Ke.close=functi
|
|
|
201
201
|
`;function aj(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var i=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(o,s,a){var u=t[o];u&&Array.isArray(u)?u.forEach(function(l){n+=ha(o+"[]")+i+ha(l)+`
|
|
202
202
|
`}):u&&typeof u=="object"?r.push(o):n+=ha(o)+i+ha(u)+Tv}),e.section&&n.length&&(n="["+ha(e.section)+"]"+Tv+n),r.forEach(function(o,s,a){var u=uj(o).join("\\."),l=(e.section?e.section+".":"")+u,c=aj(t[o],{section:l,whitespace:e.whitespace});n.length&&c.length&&(n+=Tv),n+=c}),n}function uj(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Xne(t){var e={},r=e,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=t.split(/[\r\n]+/g);return o.forEach(function(s,a,u){if(!(!s||s.match(/^\s*[;#]/))){var l=s.match(i);if(l){if(l[1]!==void 0){if(n=yh(l[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var c=yh(l[2]);if(c!=="__proto__"){var f=l[3]?yh(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(e).filter(function(s,a,u){if(!e[s]||typeof e[s]!="object"||Array.isArray(e[s]))return!1;var l=uj(s),c=e,f=l.pop(),h=f.replace(/\\\./g,".");return l.forEach(function(d,m,b){d!=="__proto__"&&((!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d])}),c===e&&h===f?!1:(c[h]=e[s],!0)}).forEach(function(s,a,u){delete e[s]}),e}function lj(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function ha(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&lj(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function yh(t,e){if(t=(t||"").trim(),lj(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",i=0,o=t.length;i<o;i++){var s=t.charAt(i);if(r)"\\;#".indexOf(s)!==-1?n+=s:n+="\\"+s,r=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?r=!0:n+=s}}return r&&(n+="\\"),n.trim()}return t}});var pj=D((An,hj)=>{var fj=sj(),xl=require("path"),Dh=require("fs"),Pv=cj(),Rv=require("events").EventEmitter,Zne=require("url"),Qne=require("http"),An=hj.exports=function(){for(var t=[].slice.call(arguments),e=new At;t.length;){var r=t.shift();r&&e.push(typeof r=="string"?tie(r):r)}return e},dpe=An.find=function(){var t=xl.join.apply(null,[].slice.call(arguments));function e(r,n){var i=xl.join(r,n);try{return Dh.statSync(i),i}catch{if(xl.dirname(r)!==r)return e(xl.dirname(r),n)}}return e(__dirname,t)},eie=An.parse=function(t,e,r){if(t=""+t,r)if(r==="json")if(this.emit)try{return JSON.parse(t)}catch(n){this.emit("error",n)}else return JSON.parse(t);else return Pv.parse(t);else try{return JSON.parse(t)}catch{return Pv.parse(t)}},tie=An.json=function(){var t=[].slice.call(arguments).filter(function(n){return n!=null}),e=xl.join.apply(null,t),r;try{r=Dh.readFileSync(e,"utf-8")}catch{return}return eie(r,e,"json")},hpe=An.env=function(t,e){e=e||process.env;var r={},n=t.length;for(var i in e)i.indexOf(t)===0&&(r[i.substring(n)]=e[i]);return r};An.ConfigChain=At;function At(){Rv.apply(this),fj.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var dj={constructor:{value:At}};Object.keys(Rv.prototype).forEach(function(t){dj[t]=Object.getOwnPropertyDescriptor(Rv.prototype,t)});At.prototype=Object.create(fj.prototype,dj);At.prototype.del=function(t,e){if(e){var r=this.sources[e];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+e));delete r[t]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][t];return this};At.prototype.set=function(t,e,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[t]=e,this};At.prototype.get=function(t,e){return e?(e=this.sources[e],e&&(e=e.data),e&&Object.hasOwnProperty.call(e,t)?e[t]:void 0):this.list[0][t]};At.prototype.save=function(t,o,r){typeof o=="function"&&(r=o,o=null);var n=this.sources[t];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+t));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var o=o||n.type,s=n.data;return n.type==="json"?s=JSON.stringify(s):s=Pv.stringify(s),this._saving++,Dh.writeFile(n.path,s,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};At.prototype.addFile=function(t,e,r){r=r||t;var n={__source__:r};return this.sources[r]={path:t,type:e},this.push(n),this._await(),Dh.readFile(t,"utf8",function(i,o){i&&this.emit("error",i),this.addString(o,t,e,n)}.bind(this)),this};At.prototype.addEnv=function(t,e,r){r=r||"env";var n=An.env(t,e);return this.sources[r]={data:n,source:e,prefix:t},this.add(n,r)};At.prototype.addUrl=function(t,e,r){this._await();var n=Zne.format(t);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:e},this.push(i),Qne.request(t,function(o){var s=[],a=o.headers["content-type"];e||(e=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=e),o.on("data",s.push.bind(s)).on("end",function(){this.addString(Buffer.concat(s),n,e,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};At.prototype.addString=function(t,e,r,n){return t=this.parse(t,e,r),this.add(t,n),this};At.prototype.add=function(t,e){if(e&&typeof e=="object"){var r=this.list.indexOf(e);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,t),e=e.__source__,this.sources[e]=this.sources[e]||{},this.sources[e].data=t,this._resolve()}else typeof e=="string"&&(this.sources[e]=this.sources[e]||{},this.sources[e].data=t),this._await(),this.push(t),process.nextTick(this._resolve.bind(this));return this};At.prototype.parse=An.parse;At.prototype._await=function(){this._awaiting++};At.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var gj=D((ppe,mj)=>{mj.exports=function(t){let e=t.indexOf(":");if(e===-1)return $v(t);let r=t.substr(0,e),n=t.substr(e+1);return`${$v(r)}:${$v(n)}`};function $v(t){if(t=t.toLowerCase(),t==="_authtoken")return"_authToken";let e=t[0];for(let r=1;r<t.length;r++)e+=t[r]==="_"?"-":t[r];return e}});var yj=D(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.envReplace=void 0;var rie=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function nie(t,e){return t.replace(rie,iie.bind(null,e))}vh.envReplace=nie;function iie(t,e,r,n){if(r.length%2)return e.slice((r.length+1)/2);let i=sie(t,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${e}`);return`${r.slice(r.length/2)}${i}`}var oie=/([^:-]+)(:?)-(.+)/;function sie(t,e){let r=e.match(oie);if(!r)return t[e];let[,n,i,o]=r;return Object.prototype.hasOwnProperty.call(t,n)?!t[n]&&i?o:t[n]:o}});var Dj=D(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.envReplace=void 0;var aie=yj();Object.defineProperty(bh,"envReplace",{enumerable:!0,get:function(){return aie.envReplace}})});var vj=D(Fl=>{"use strict";var uie=require("fs"),wo=require("path"),{envReplace:Iv}=Dj(),lie=t=>typeof t!="string"?t:Iv(t,process.env),cie=(t,e,r)=>{if(typeof e!="string")return e;let n=[].concat(t[r]),i=n.indexOf(wo)!==-1,o=n.indexOf(Boolean)!==-1,s=n.indexOf(String)!==-1,a=n.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${e}`)}if(o&&!s&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return e=Iv(e,process.env),i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=wo.resolve(process.env.HOME,e.substr(2))),e=wo.resolve(e)),a&&!isNaN(e)&&(e=Number(e)),e},fie=t=>{t=wo.resolve(t);let e=!1;for(;wo.basename(t)==="node_modules";)t=wo.dirname(t),e=!0;if(e)return t;let r=(n,i)=>{let o=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&o.test(n))return i;try{let s=uie.readdirSync(n);if(s.includes("node_modules")||s.includes("package.json")||s.includes("package.json5")||s.includes("package.yaml")||s.includes("pnpm-workspace.yaml"))return n;let a=wo.dirname(n);return a===n?i:r(a,i)}catch(s){if(n===i){if(s.code==="ENOENT")return i;throw s}return i}};return r(t,t)};Fl.envReplace=Iv;Fl.findPrefix=fie;Fl.parseField=cie;Fl.parseKey=lie});var _j=D(wj=>{"use strict";var _o=require("path"),die=require("stream").Stream,wh=require("url"),hie=()=>{},pie=()=>[],bj=()=>{};wj.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:_o,cache:_o,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:_o,"global-style":Boolean,group:[Number,String],"https-proxy":[null,wh],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":_o,"init-author-name":String,"init-author-email":String,"init-author-url":["",wh],"init-license":String,"init-version":bj,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":pie(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:die,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,bj],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:_o,production:Boolean,progress:Boolean,proxy:[null,!1,wh],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,wh],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:_o,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:_o,umask:hie,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var Sj=D((vpe,Cj)=>{"use strict";var{readCAFileSync:mie}=nj(),Ej=require("fs"),jv=require("path"),{ConfigChain:gie}=pj(),yie=gj(),Nv=vj(),Lv=class extends gie{constructor(e,r){super(e),this.root=e,this._parseField=Nv.parseField.bind(null,r||_j())}add(e,r){try{for(let[n,i]of Object.entries(e)){let o=Nv.parseKey(n);o!==n&&delete e[n],e[o]=this._parseField(i,o)}}catch(n){throw n}return super.add(e,r)}addFile(e,r){r=r||e;let n={__source__:r};this.sources[r]={path:e,type:"ini"},this.push(n),this._await();try{let i=Ej.readFileSync(e,"utf8");this.addString(i,e,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else if(i.code!=="EISDIR")return`Issue while reading "${e}". ${i.message}`}}addEnv(e){e=e||process.env;let r={};return Object.keys(e).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{if(!e[n])return;let i=yie(n.substr(11)),o=e[n];r[i]=Die(i,o)}),super.addEnv("",r,"env")}loadPrefix(){let e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>jv.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(e,"prefix"))r=jv.resolve(e.prefix);else try{r=Nv.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(e){if(!e)return;let r=mie(e);r&&this.set("ca",r)}loadUser(){let e=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let r=jv.resolve(this.get("prefix"));try{let n=Ej.statSync(r);e.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};function Die(t,e){function r(n){let i=`
|
|
203
203
|
|
|
204
|
-
`;return n.indexOf(i)?n.split(i):n.split(",")}switch(t){case"hoist-pattern":case"public-hoist-pattern":return r(e)}return e}Cj.exports=Lv});var Tj=D(kj=>{"use strict";var Oj=require("os"),kn=require("path"),Aj=Oj.tmpdir(),vie=process.getuid?process.getuid():process.pid,bie=()=>!0,xj=process.platform==="win32",Fj={editor:()=>process.env.EDITOR||process.env.VISUAL||(xj?"notepad.exe":"vi"),shell:()=>xj?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},wie={fromString:()=>process.umask()},pa=Oj.homedir();pa?process.env.HOME=pa:pa=kn.resolve(Aj,"npm-"+vie);var _ie=process.platform==="win32"?"npm-cache":".npm",Eie=process.platform==="win32"&&process.env.APPDATA||pa,Cie=kn.resolve(Eie,_ie),_h,Eo;Object.defineProperty(kj,"defaults",{get:function(){return _h||(process.env.PREFIX?Eo=process.env.PREFIX:process.platform==="win32"?Eo=kn.dirname(process.execPath):(Eo=kn.dirname(kn.dirname(process.execPath)),process.env.DESTDIR&&(Eo=kn.join(process.env.DESTDIR,Eo))),_h={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:Cie,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Fj.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:kn.resolve(Eo,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":kn.resolve(pa,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Eo,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:Fj.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:Aj,unicode:bie(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:kn.resolve(pa,".npmrc"),umask:process.umask?process.umask():wie.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},_h)}})});var Rj=D((wpe,Bv)=>{"use strict";var Co=require("path"),Sie=Sj(),Pj=Tj();Bv.exports=(t,e,r)=>{let n=new Sie(Object.assign({},Pj.defaults,r),e);n.add(Object.assign({},t),"cli");let i=[],o=!1;if(require.resolve.paths){let l=require.resolve.paths("npm"),c;try{c=require.resolve("npm",{paths:l.slice(-1)})}catch{o=!0}c&&i.push(n.addFile(Co.resolve(Co.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let s=Co.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&s!==a?i.push(n.addFile(s,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==s){let l=Co.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(l,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let l=Co.resolve(n.get("prefix"),"etc");n.root.globalconfig=Co.resolve(l,"npmrc"),n.root.globalignorefile=Co.resolve(l,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let u=n.get("cafile");return u&&n.loadCAFile(u),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:o}};Object.defineProperty(Bv.exports,"defaults",{get(){return Pj.defaults},enumerable:!0})});var Mj=D((_pe,qj)=>{var qv=require("url"),$j=Rj(),Ij=":_authToken",jj=":_auth",Nj=":username",Lj=":_password";qj.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:$j()).config,e=e||r.npmrc.get("registry")||$j.defaults.registry,Bj(e,r)||xie(r.npmrc)};function Bj(t,e){let r=qv.parse(t,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),o=Oie(i,e.npmrc);if(o)return o;if(!e.recursive)return/\/$/.test(t)?void 0:Bj(qv.resolve(t,"."),e);r.pathname=qv.resolve(Fie(n),"..")||"/"}}function xie(t){return t.get("_auth")?{token:Eh(t.get("_auth")),type:"Basic"}:void 0}function Fie(t){return t[t.length-1]==="/"?t:t+"/"}function Oie(t,e){let r=Aie(e.get(t+Ij)||e.get(t+"/"+Ij));if(r)return r;let n=e.get(t+Nj)||e.get(t+"/"+Nj),i=e.get(t+Lj)||e.get(t+"/"+Lj),o=kie(n,i);if(o)return o;let s=Tie(e.get(t+jj)||e.get(t+"/"+jj));if(s)return s}function Eh(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function Aie(t){return t?{token:Eh(t),type:"Bearer"}:void 0}function kie(t,e){if(!t||!e)return;let r=Buffer.from(Eh(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function Tie(t){return t?{token:Eh(t),type:"Basic"}:void 0}});var I8=D((v0e,jn)=>{var ot=require("fs"),_b=require("os"),ur=require("path"),b8=require("crypto"),sn={fs:ot.constants,os:_b.constants},w8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",E8=/XXXXXX/,_oe=3,C8=(sn.O_CREAT||sn.fs.O_CREAT)|(sn.O_EXCL||sn.fs.O_EXCL)|(sn.O_RDWR||sn.fs.O_RDWR),Eoe=_b.platform()==="win32",Coe=sn.EBADF||sn.os.errno.EBADF,Soe=sn.ENOENT||sn.os.errno.ENOENT,S8=448,x8=384,xoe="exit",Ca=[],F8=ot.rmdirSync.bind(ot),O8=!1;function Foe(t,e){return ot.rm(t,{recursive:!0},e)}function A8(t){return ot.rmSync(t,{recursive:!0})}function Eb(t,e){let r=Sa(t,e),n=r[0],i=r[1];try{P8(n)}catch(s){return i(s)}let o=n.tries;(function s(){try{let a=T8(n);ot.stat(a,function(u){if(!u)return o-- >0?s():i(new Error("Could not get a unique tmp filename, max tries reached "+a));i(null,a)})}catch(a){i(a)}})()}function Cb(t){let e=Sa(t),r=e[0];P8(r);let n=r.tries;do{let i=T8(r);try{ot.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Ooe(t,e){let r=Sa(t,e),n=r[0],i=r[1];Eb(n,function(s,a){if(s)return i(s);ot.open(a,C8,n.mode||x8,function(l,c){if(l)return i(l);if(n.discardDescriptor)return ot.close(c,function(h){return i(h,a,void 0,vb(a,-1,n,!1))});{let f=n.discardDescriptor||n.detachDescriptor;i(null,a,c,vb(a,f?-1:c,n,!1))}})})}function Aoe(t){let e=Sa(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,i=Cb(r);var o=ot.openSync(i,C8,r.mode||x8);return r.discardDescriptor&&(ot.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:vb(i,n?-1:o,r,!0)}}function koe(t,e){let r=Sa(t,e),n=r[0],i=r[1];Eb(n,function(s,a){if(s)return i(s);ot.mkdir(a,n.mode||S8,function(l){if(l)return i(l);i(null,a,k8(a,n,!1))})})}function Toe(t){let e=Sa(t),r=e[0],n=Cb(r);return ot.mkdirSync(n,r.mode||S8),{name:n,removeCallback:k8(n,r,!0)}}function Poe(t,e){let r=function(n){if(n&&!wb(n))return e(n);e()};0<=t[0]?ot.close(t[0],function(){ot.unlink(t[1],r)}):ot.unlink(t[1],r)}function Roe(t){let e=null;try{0<=t[0]&&ot.closeSync(t[0])}catch(r){if(!joe(r)&&!wb(r))throw r}finally{try{ot.unlinkSync(t[1])}catch(r){wb(r)||(e=r)}}if(e!==null)throw e}function vb(t,e,r,n){let i=Hh(Roe,[e,t],n),o=Hh(Poe,[e,t],n,i);return r.keep||Ca.unshift(i),n?i:o}function k8(t,e,r){let n=e.unsafeCleanup?Foe:ot.rmdir.bind(ot),i=e.unsafeCleanup?A8:F8,o=Hh(i,t,r),s=Hh(n,t,r,o);return e.keep||Ca.unshift(o),r?o:s}function Hh(t,e,r,n){let i=!1;return function o(s){if(!i){let a=n||o,u=Ca.indexOf(a);return u>=0&&Ca.splice(u,1),i=!0,r||t===F8||t===A8?t(e):t(e,s||function(){})}}}function $oe(){if(O8)for(;Ca.length;)try{Ca[0]()}catch{}}function _8(t){let e=[],r=null;try{r=b8.randomBytes(t)}catch{r=b8.pseudoRandomBytes(t)}for(var n=0;n<t;n++)e.push(w8[r[n]%w8.length]);return e.join("")}function Ioe(t){return t===null||Zt(t)||!t.trim()}function Zt(t){return typeof t>"u"}function Sa(t,e){if(typeof t=="function")return[{},t];if(Zt(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}function T8(t){let e=t.tmpdir;if(!Zt(t.name))return ur.join(e,t.dir,t.name);if(!Zt(t.template))return ur.join(e,t.dir,t.template).replace(E8,_8(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",_8(12),t.postfix?"-"+t.postfix:""].join("");return ur.join(e,t.dir,r)}function P8(t){t.tmpdir=$8(t);let e=t.tmpdir;if(Zt(t.name)||Db(t.name,"name",e),Zt(t.dir)||Db(t.dir,"dir",e),!Zt(t.template)&&(Db(t.template,"template",e),!t.template.match(E8)))throw new Error(`Invalid template, found "${t.template}".`);if(!Zt(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Zt(t.name)?t.tries||_oe:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.dir=Zt(t.dir)?"":ur.relative(e,bb(t.dir,e)),t.template=Zt(t.template)?void 0:ur.relative(e,bb(t.template,e)),t.template=Ioe(t.template)?void 0:ur.relative(t.dir,t.template),t.name=Zt(t.name)?void 0:t.name,t.prefix=Zt(t.prefix)?"":t.prefix,t.postfix=Zt(t.postfix)?"":t.postfix}function bb(t,e){return t.startsWith(e)?ur.resolve(t):ur.resolve(ur.join(e,t))}function Db(t,e,r){if(e==="name"){if(ur.isAbsolute(t))throw new Error(`${e} option must not contain an absolute path, found "${t}".`);let n=ur.basename(t);if(n===".."||n==="."||n!==t)throw new Error(`${e} option must not contain a path, found "${t}".`)}else{if(ur.isAbsolute(t)&&!t.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${t}".`);let n=bb(t,r);if(!n.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${n}".`)}}function joe(t){return R8(t,-Coe,"EBADF")}function wb(t){return R8(t,-Soe,"ENOENT")}function R8(t,e,r){return Eoe?t.code===r:t.code===r&&t.errno===e}function Noe(){O8=!0}function $8(t){return ur.resolve(t&&t.tmpdir||_b.tmpdir())}process.addListener(xoe,$oe);Object.defineProperty(jn.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return $8()}});jn.exports.dir=koe;jn.exports.dirSync=Toe;jn.exports.file=Ooe;jn.exports.fileSync=Aoe;jn.exports.tmpName=Eb;jn.exports.tmpNameSync=Cb;jn.exports.setGracefulCleanup=Noe});var Hb=ue(Ub(),1),{program:k,createCommand:cse,createArgument:fse,createOption:dse,CommanderError:hse,InvalidArgumentError:pse,InvalidOptionArgumentError:mse,Command:gse,Argument:yse,Option:Dse,Help:vse}=Hb.default;var Cr={name:"@capgo/cli",version:"7.0.12",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},dependencies:{"@antfu/eslint-config":"^4.1.1","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^7.0.1","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.10.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver","@supabase/supabase-js":"^2.48.1","@tomasklaen/checksum":"^1.1.0","@types/adm-zip":"^0.5.7","@types/node":"^22.13.1","@types/prettyjson":"^0.0.33","@types/semver":"^7.5.8","@types/tmp":"^0.2.6","@vercel/ncc":"^0.38.3","adm-zip":"^0.5.16","ci-info":"^4.1.0",commander:"13.0.0",esbuild:"^0.25.0",eslint:"9.20.1","git-format-staged":"3.1.1",husky:"^9.1.7","is-wsl":"^3.1.0",ky:"^1.7.4","latest-version":"^9.0.0",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",semver:"^7.7.1",tmp:"^0.2.3","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.3.1",typescript:"5.7.3"}};var ma=require("node:fs"),Vj=require("node:process");var St=ue(Te(),1),$o=require("node:process"),Ln=ue(require("node:readline"),1),gp=ue(require("node:readline"),1),ew=require("node:tty"),tw=ue(hp(),1);function vN({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var bN=vN();function rw(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(bN,"")}function nw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var iw={exports:{}};(function(t){var e={};t.exports=e,e.eastAsianWidth=function(n){var i=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,s=i;return 55296<=i&&i<=56319&&56320<=o&&o<=57343&&(i&=1023,o&=1023,s=i<<10|o,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},e.characterLength=function(n){var i=this.eastAsianWidth(n);return i=="F"||i=="W"||i=="A"?2:1};function r(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}e.length=function(n){for(var i=r(n),o=0,s=0;s<i.length;s++)o=o+this.characterLength(i[s]);return o},e.slice=function(n,i,o){textLen=e.length(n),i=i||0,o=o||1,i<0&&(i=textLen+i),o<0&&(o=textLen+o);for(var s="",a=0,u=r(n),l=0;l<u.length;l++){var c=u[l],f=e.length(c);if(a>=i-(f==2?1:0))if(a+f<=o)s+=c;else break;a+=f}return s}})(iw);var wN=iw.exports,_N=nw(wN),EN=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},CN=nw(EN);function Aa(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=rw(t),t.length===0))return 0;t=t.replace(CN()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let o=i.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(_N.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}var pp=10,Wb=(t=0)=>e=>`\x1B[${e+t}m`,Kb=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Yb=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,Ne={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Ne.modifier);var SN=Object.keys(Ne.color),xN=Object.keys(Ne.bgColor);[...SN,...xN];function FN(){let t=new Map;for(let[e,r]of Object.entries(Ne)){for(let[n,i]of Object.entries(r))Ne[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ne[n],t.set(i[0],i[1]);Object.defineProperty(Ne,e,{value:r,enumerable:!1})}return Object.defineProperty(Ne,"codes",{value:t,enumerable:!1}),Ne.color.close="\x1B[39m",Ne.bgColor.close="\x1B[49m",Ne.color.ansi=Wb(),Ne.color.ansi256=Kb(),Ne.color.ansi16m=Yb(),Ne.bgColor.ansi=Wb(pp),Ne.bgColor.ansi256=Kb(pp),Ne.bgColor.ansi16m=Yb(pp),Object.defineProperties(Ne,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>Ne.rgbToAnsi256(...Ne.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>Ne.ansi256ToAnsi(Ne.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>Ne.ansi256ToAnsi(Ne.hexToAnsi256(e)),enumerable:!1}}),Ne}var ON=FN(),Zl=new Set(["\x1B","\x9B"]),AN=39,Dp="\x07",ow="[",kN="]",sw="m",vp=`${kN}8;;`,Jb=t=>`${Zl.values().next().value}${ow}${t}${sw}`,Xb=t=>`${Zl.values().next().value}${vp}${t}${Dp}`,TN=t=>t.split(" ").map(e=>Aa(e)),mp=(t,e,r)=>{let n=[...e],i=!1,o=!1,s=Aa(rw(t[t.length-1]));for(let[a,u]of n.entries()){let l=Aa(u);if(s+l<=r?t[t.length-1]+=u:(t.push(u),s=0),Zl.has(u)&&(i=!0,o=n.slice(a+1).join("").startsWith(vp)),i){o?u===Dp&&(i=!1,o=!1):u===sw&&(i=!1);continue}s+=l,s===r&&a<n.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},PN=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(Aa(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},RN=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,o,s=TN(t),a=[""];for(let[l,c]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Aa(a[a.length-1]);if(l!==0&&(f>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[l]>e){let h=e-f,d=1+Math.floor((s[l]-h-1)/e);Math.floor((s[l]-1)/e)<d&&a.push(""),mp(a,c,e);continue}if(f+s[l]>e&&f>0&&s[l]>0){if(r.wordWrap===!1&&f<e){mp(a,c,e);continue}a.push("")}if(f+s[l]>e&&r.wordWrap===!1){mp(a,c,e);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(l=>PN(l)));let u=[...a.join(`
|
|
204
|
+
`;return n.indexOf(i)?n.split(i):n.split(",")}switch(t){case"hoist-pattern":case"public-hoist-pattern":return r(e)}return e}Cj.exports=Lv});var Tj=D(kj=>{"use strict";var Oj=require("os"),kn=require("path"),Aj=Oj.tmpdir(),vie=process.getuid?process.getuid():process.pid,bie=()=>!0,xj=process.platform==="win32",Fj={editor:()=>process.env.EDITOR||process.env.VISUAL||(xj?"notepad.exe":"vi"),shell:()=>xj?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},wie={fromString:()=>process.umask()},pa=Oj.homedir();pa?process.env.HOME=pa:pa=kn.resolve(Aj,"npm-"+vie);var _ie=process.platform==="win32"?"npm-cache":".npm",Eie=process.platform==="win32"&&process.env.APPDATA||pa,Cie=kn.resolve(Eie,_ie),_h,Eo;Object.defineProperty(kj,"defaults",{get:function(){return _h||(process.env.PREFIX?Eo=process.env.PREFIX:process.platform==="win32"?Eo=kn.dirname(process.execPath):(Eo=kn.dirname(kn.dirname(process.execPath)),process.env.DESTDIR&&(Eo=kn.join(process.env.DESTDIR,Eo))),_h={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:Cie,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:Fj.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:kn.resolve(Eo,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":kn.resolve(pa,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Eo,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:Fj.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:Aj,unicode:bie(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:kn.resolve(pa,".npmrc"),umask:process.umask?process.umask():wie.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},_h)}})});var Rj=D((wpe,Bv)=>{"use strict";var Co=require("path"),Sie=Sj(),Pj=Tj();Bv.exports=(t,e,r)=>{let n=new Sie(Object.assign({},Pj.defaults,r),e);n.add(Object.assign({},t),"cli");let i=[],o=!1;if(require.resolve.paths){let l=require.resolve.paths("npm"),c;try{c=require.resolve("npm",{paths:l.slice(-1)})}catch{o=!0}c&&i.push(n.addFile(Co.resolve(Co.dirname(c),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let s=Co.resolve(n.localPrefix,".npmrc"),a=n.get("userconfig");if(!n.get("global")&&s!==a?i.push(n.addFile(s,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==s){let l=Co.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(l,"workspace"))}if(i.push(n.addFile(n.get("userconfig"),"user")),n.get("prefix")){let l=Co.resolve(n.get("prefix"),"etc");n.root.globalconfig=Co.resolve(l,"npmrc"),n.root.globalignorefile=Co.resolve(l,"npmignore")}i.push(n.addFile(n.get("globalconfig"),"global")),n.loadUser();let u=n.get("cafile");return u&&n.loadCAFile(u),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:o}};Object.defineProperty(Bv.exports,"defaults",{get(){return Pj.defaults},enumerable:!0})});var Mj=D((_pe,qj)=>{var qv=require("url"),$j=Rj(),Ij=":_authToken",jj=":_auth",Nj=":username",Lj=":_password";qj.exports=function(){let e,r;arguments.length>=2?(e=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?e=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:$j()).config,e=e||r.npmrc.get("registry")||$j.defaults.registry,Bj(e,r)||xie(r.npmrc)};function Bj(t,e){let r=qv.parse(t,!1,!0),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),o=Oie(i,e.npmrc);if(o)return o;if(!e.recursive)return/\/$/.test(t)?void 0:Bj(qv.resolve(t,"."),e);r.pathname=qv.resolve(Fie(n),"..")||"/"}}function xie(t){return t.get("_auth")?{token:Eh(t.get("_auth")),type:"Basic"}:void 0}function Fie(t){return t[t.length-1]==="/"?t:t+"/"}function Oie(t,e){let r=Aie(e.get(t+Ij)||e.get(t+"/"+Ij));if(r)return r;let n=e.get(t+Nj)||e.get(t+"/"+Nj),i=e.get(t+Lj)||e.get(t+"/"+Lj),o=kie(n,i);if(o)return o;let s=Tie(e.get(t+jj)||e.get(t+"/"+jj));if(s)return s}function Eh(t){return t.replace(/^\$\{?([^}]*)\}?$/,function(e,r){return process.env[r]})}function Aie(t){return t?{token:Eh(t),type:"Bearer"}:void 0}function kie(t,e){if(!t||!e)return;let r=Buffer.from(Eh(e),"base64").toString("utf8");return{token:Buffer.from(t+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:t}}function Tie(t){return t?{token:Eh(t),type:"Basic"}:void 0}});var I8=D((v0e,jn)=>{var ot=require("fs"),_b=require("os"),ur=require("path"),b8=require("crypto"),sn={fs:ot.constants,os:_b.constants},w8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",E8=/XXXXXX/,_oe=3,C8=(sn.O_CREAT||sn.fs.O_CREAT)|(sn.O_EXCL||sn.fs.O_EXCL)|(sn.O_RDWR||sn.fs.O_RDWR),Eoe=_b.platform()==="win32",Coe=sn.EBADF||sn.os.errno.EBADF,Soe=sn.ENOENT||sn.os.errno.ENOENT,S8=448,x8=384,xoe="exit",Ca=[],F8=ot.rmdirSync.bind(ot),O8=!1;function Foe(t,e){return ot.rm(t,{recursive:!0},e)}function A8(t){return ot.rmSync(t,{recursive:!0})}function Eb(t,e){let r=Sa(t,e),n=r[0],i=r[1];try{P8(n)}catch(s){return i(s)}let o=n.tries;(function s(){try{let a=T8(n);ot.stat(a,function(u){if(!u)return o-- >0?s():i(new Error("Could not get a unique tmp filename, max tries reached "+a));i(null,a)})}catch(a){i(a)}})()}function Cb(t){let e=Sa(t),r=e[0];P8(r);let n=r.tries;do{let i=T8(r);try{ot.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Ooe(t,e){let r=Sa(t,e),n=r[0],i=r[1];Eb(n,function(s,a){if(s)return i(s);ot.open(a,C8,n.mode||x8,function(l,c){if(l)return i(l);if(n.discardDescriptor)return ot.close(c,function(h){return i(h,a,void 0,vb(a,-1,n,!1))});{let f=n.discardDescriptor||n.detachDescriptor;i(null,a,c,vb(a,f?-1:c,n,!1))}})})}function Aoe(t){let e=Sa(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,i=Cb(r);var o=ot.openSync(i,C8,r.mode||x8);return r.discardDescriptor&&(ot.closeSync(o),o=void 0),{name:i,fd:o,removeCallback:vb(i,n?-1:o,r,!0)}}function koe(t,e){let r=Sa(t,e),n=r[0],i=r[1];Eb(n,function(s,a){if(s)return i(s);ot.mkdir(a,n.mode||S8,function(l){if(l)return i(l);i(null,a,k8(a,n,!1))})})}function Toe(t){let e=Sa(t),r=e[0],n=Cb(r);return ot.mkdirSync(n,r.mode||S8),{name:n,removeCallback:k8(n,r,!0)}}function Poe(t,e){let r=function(n){if(n&&!wb(n))return e(n);e()};0<=t[0]?ot.close(t[0],function(){ot.unlink(t[1],r)}):ot.unlink(t[1],r)}function Roe(t){let e=null;try{0<=t[0]&&ot.closeSync(t[0])}catch(r){if(!joe(r)&&!wb(r))throw r}finally{try{ot.unlinkSync(t[1])}catch(r){wb(r)||(e=r)}}if(e!==null)throw e}function vb(t,e,r,n){let i=Hh(Roe,[e,t],n),o=Hh(Poe,[e,t],n,i);return r.keep||Ca.unshift(i),n?i:o}function k8(t,e,r){let n=e.unsafeCleanup?Foe:ot.rmdir.bind(ot),i=e.unsafeCleanup?A8:F8,o=Hh(i,t,r),s=Hh(n,t,r,o);return e.keep||Ca.unshift(o),r?o:s}function Hh(t,e,r,n){let i=!1;return function o(s){if(!i){let a=n||o,u=Ca.indexOf(a);return u>=0&&Ca.splice(u,1),i=!0,r||t===F8||t===A8?t(e):t(e,s||function(){})}}}function $oe(){if(O8)for(;Ca.length;)try{Ca[0]()}catch{}}function _8(t){let e=[],r=null;try{r=b8.randomBytes(t)}catch{r=b8.pseudoRandomBytes(t)}for(var n=0;n<t;n++)e.push(w8[r[n]%w8.length]);return e.join("")}function Ioe(t){return t===null||Zt(t)||!t.trim()}function Zt(t){return typeof t>"u"}function Sa(t,e){if(typeof t=="function")return[{},t];if(Zt(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}function T8(t){let e=t.tmpdir;if(!Zt(t.name))return ur.join(e,t.dir,t.name);if(!Zt(t.template))return ur.join(e,t.dir,t.template).replace(E8,_8(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",_8(12),t.postfix?"-"+t.postfix:""].join("");return ur.join(e,t.dir,r)}function P8(t){t.tmpdir=$8(t);let e=t.tmpdir;if(Zt(t.name)||Db(t.name,"name",e),Zt(t.dir)||Db(t.dir,"dir",e),!Zt(t.template)&&(Db(t.template,"template",e),!t.template.match(E8)))throw new Error(`Invalid template, found "${t.template}".`);if(!Zt(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Zt(t.name)?t.tries||_oe:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.dir=Zt(t.dir)?"":ur.relative(e,bb(t.dir,e)),t.template=Zt(t.template)?void 0:ur.relative(e,bb(t.template,e)),t.template=Ioe(t.template)?void 0:ur.relative(t.dir,t.template),t.name=Zt(t.name)?void 0:t.name,t.prefix=Zt(t.prefix)?"":t.prefix,t.postfix=Zt(t.postfix)?"":t.postfix}function bb(t,e){return t.startsWith(e)?ur.resolve(t):ur.resolve(ur.join(e,t))}function Db(t,e,r){if(e==="name"){if(ur.isAbsolute(t))throw new Error(`${e} option must not contain an absolute path, found "${t}".`);let n=ur.basename(t);if(n===".."||n==="."||n!==t)throw new Error(`${e} option must not contain a path, found "${t}".`)}else{if(ur.isAbsolute(t)&&!t.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${t}".`);let n=bb(t,r);if(!n.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${n}".`)}}function joe(t){return R8(t,-Coe,"EBADF")}function wb(t){return R8(t,-Soe,"ENOENT")}function R8(t,e,r){return Eoe?t.code===r:t.code===r&&t.errno===e}function Noe(){O8=!0}function $8(t){return ur.resolve(t&&t.tmpdir||_b.tmpdir())}process.addListener(xoe,$oe);Object.defineProperty(jn.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return $8()}});jn.exports.dir=koe;jn.exports.dirSync=Toe;jn.exports.file=Ooe;jn.exports.fileSync=Aoe;jn.exports.tmpName=Eb;jn.exports.tmpNameSync=Cb;jn.exports.setGracefulCleanup=Noe});var Hb=ue(Ub(),1),{program:k,createCommand:cse,createArgument:fse,createOption:dse,CommanderError:hse,InvalidArgumentError:pse,InvalidOptionArgumentError:mse,Command:gse,Argument:yse,Option:Dse,Help:vse}=Hb.default;var Cr={name:"@capgo/cli",version:"7.0.14",description:"A CLI to upload to capgo servers",author:"github.com/riderx",license:"Apache 2.0",homepage:"https://github.com/Cap-go/CLIl#readme",repository:{type:"git",url:"git+https://github.com/Cap-go/CLI.git"},bugs:{url:"https://github.com/Cap-go/CLI/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli"],main:"dist/index.js",bin:{capgo:"dist/index.js"},engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && node build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js",test:"npx --yes ts-node -T src/index.ts","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",test_rls:"ts-node ./test/test_headers_rls.ts",lint:'eslint "src/**/*.ts" --fix',"check-posix-paths":"node test/check-posix-paths.js"},devDependencies:{"@antfu/eslint-config":"^4.1.1","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client","@capacitor/cli":"^7.0.1","@capgo/find-package-manager":"^0.0.17","@clack/prompts":"^0.10.0","@sauber/table":"npm:@jsr/sauber__table","@std/semver":"npm:@jsr/std__semver","@supabase/supabase-js":"^2.48.1","@tomasklaen/checksum":"^1.1.0","@types/adm-zip":"^0.5.7","@types/node":"^22.13.1","@types/prettyjson":"^0.0.33","@types/semver":"^7.5.8","@types/tmp":"^0.2.6","@vercel/ncc":"^0.38.3","adm-zip":"^0.5.16","ci-info":"^4.1.0",commander:"13.0.0",esbuild:"^0.25.0",eslint:"9.20.1","git-format-staged":"3.1.1",husky:"^9.1.7","is-wsl":"^3.1.0",ky:"^1.7.4","latest-version":"^9.0.0",open:"^10.1.0",pkg:"5.8.1",prettyjson:"^1.2.5",semver:"^7.7.1",tmp:"^0.2.3","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"4.2.0","tus-js-client":"^4.3.1",typescript:"5.7.3"}};var ma=require("node:fs"),Vj=require("node:process");var St=ue(Te(),1),$o=require("node:process"),Ln=ue(require("node:readline"),1),gp=ue(require("node:readline"),1),ew=require("node:tty"),tw=ue(hp(),1);function vN({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}var bN=vN();function rw(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(bN,"")}function nw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var iw={exports:{}};(function(t){var e={};t.exports=e,e.eastAsianWidth=function(n){var i=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,s=i;return 55296<=i&&i<=56319&&56320<=o&&o<=57343&&(i&=1023,o&=1023,s=i<<10|o,s+=65536),s==12288||65281<=s&&s<=65376||65504<=s&&s<=65510?"F":s==8361||65377<=s&&s<=65470||65474<=s&&s<=65479||65482<=s&&s<=65487||65490<=s&&s<=65495||65498<=s&&s<=65500||65512<=s&&s<=65518?"H":4352<=s&&s<=4447||4515<=s&&s<=4519||4602<=s&&s<=4607||9001<=s&&s<=9002||11904<=s&&s<=11929||11931<=s&&s<=12019||12032<=s&&s<=12245||12272<=s&&s<=12283||12289<=s&&s<=12350||12353<=s&&s<=12438||12441<=s&&s<=12543||12549<=s&&s<=12589||12593<=s&&s<=12686||12688<=s&&s<=12730||12736<=s&&s<=12771||12784<=s&&s<=12830||12832<=s&&s<=12871||12880<=s&&s<=13054||13056<=s&&s<=19903||19968<=s&&s<=42124||42128<=s&&s<=42182||43360<=s&&s<=43388||44032<=s&&s<=55203||55216<=s&&s<=55238||55243<=s&&s<=55291||63744<=s&&s<=64255||65040<=s&&s<=65049||65072<=s&&s<=65106||65108<=s&&s<=65126||65128<=s&&s<=65131||110592<=s&&s<=110593||127488<=s&&s<=127490||127504<=s&&s<=127546||127552<=s&&s<=127560||127568<=s&&s<=127569||131072<=s&&s<=194367||177984<=s&&s<=196605||196608<=s&&s<=262141?"W":32<=s&&s<=126||162<=s&&s<=163||165<=s&&s<=166||s==172||s==175||10214<=s&&s<=10221||10629<=s&&s<=10630?"Na":s==161||s==164||167<=s&&s<=168||s==170||173<=s&&s<=174||176<=s&&s<=180||182<=s&&s<=186||188<=s&&s<=191||s==198||s==208||215<=s&&s<=216||222<=s&&s<=225||s==230||232<=s&&s<=234||236<=s&&s<=237||s==240||242<=s&&s<=243||247<=s&&s<=250||s==252||s==254||s==257||s==273||s==275||s==283||294<=s&&s<=295||s==299||305<=s&&s<=307||s==312||319<=s&&s<=322||s==324||328<=s&&s<=331||s==333||338<=s&&s<=339||358<=s&&s<=359||s==363||s==462||s==464||s==466||s==468||s==470||s==472||s==474||s==476||s==593||s==609||s==708||s==711||713<=s&&s<=715||s==717||s==720||728<=s&&s<=731||s==733||s==735||768<=s&&s<=879||913<=s&&s<=929||931<=s&&s<=937||945<=s&&s<=961||963<=s&&s<=969||s==1025||1040<=s&&s<=1103||s==1105||s==8208||8211<=s&&s<=8214||8216<=s&&s<=8217||8220<=s&&s<=8221||8224<=s&&s<=8226||8228<=s&&s<=8231||s==8240||8242<=s&&s<=8243||s==8245||s==8251||s==8254||s==8308||s==8319||8321<=s&&s<=8324||s==8364||s==8451||s==8453||s==8457||s==8467||s==8470||8481<=s&&s<=8482||s==8486||s==8491||8531<=s&&s<=8532||8539<=s&&s<=8542||8544<=s&&s<=8555||8560<=s&&s<=8569||s==8585||8592<=s&&s<=8601||8632<=s&&s<=8633||s==8658||s==8660||s==8679||s==8704||8706<=s&&s<=8707||8711<=s&&s<=8712||s==8715||s==8719||s==8721||s==8725||s==8730||8733<=s&&s<=8736||s==8739||s==8741||8743<=s&&s<=8748||s==8750||8756<=s&&s<=8759||8764<=s&&s<=8765||s==8776||s==8780||s==8786||8800<=s&&s<=8801||8804<=s&&s<=8807||8810<=s&&s<=8811||8814<=s&&s<=8815||8834<=s&&s<=8835||8838<=s&&s<=8839||s==8853||s==8857||s==8869||s==8895||s==8978||9312<=s&&s<=9449||9451<=s&&s<=9547||9552<=s&&s<=9587||9600<=s&&s<=9615||9618<=s&&s<=9621||9632<=s&&s<=9633||9635<=s&&s<=9641||9650<=s&&s<=9651||9654<=s&&s<=9655||9660<=s&&s<=9661||9664<=s&&s<=9665||9670<=s&&s<=9672||s==9675||9678<=s&&s<=9681||9698<=s&&s<=9701||s==9711||9733<=s&&s<=9734||s==9737||9742<=s&&s<=9743||9748<=s&&s<=9749||s==9756||s==9758||s==9792||s==9794||9824<=s&&s<=9825||9827<=s&&s<=9829||9831<=s&&s<=9834||9836<=s&&s<=9837||s==9839||9886<=s&&s<=9887||9918<=s&&s<=9919||9924<=s&&s<=9933||9935<=s&&s<=9953||s==9955||9960<=s&&s<=9983||s==10045||s==10071||10102<=s&&s<=10111||11093<=s&&s<=11097||12872<=s&&s<=12879||57344<=s&&s<=63743||65024<=s&&s<=65039||s==65533||127232<=s&&s<=127242||127248<=s&&s<=127277||127280<=s&&s<=127337||127344<=s&&s<=127386||917760<=s&&s<=917999||983040<=s&&s<=1048573||1048576<=s&&s<=1114109?"A":"N"},e.characterLength=function(n){var i=this.eastAsianWidth(n);return i=="F"||i=="W"||i=="A"?2:1};function r(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}e.length=function(n){for(var i=r(n),o=0,s=0;s<i.length;s++)o=o+this.characterLength(i[s]);return o},e.slice=function(n,i,o){textLen=e.length(n),i=i||0,o=o||1,i<0&&(i=textLen+i),o<0&&(o=textLen+o);for(var s="",a=0,u=r(n),l=0;l<u.length;l++){var c=u[l],f=e.length(c);if(a>=i-(f==2?1:0))if(a+f<=o)s+=c;else break;a+=f}return s}})(iw);var wN=iw.exports,_N=nw(wN),EN=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},CN=nw(EN);function Aa(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=rw(t),t.length===0))return 0;t=t.replace(CN()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let o=i.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(_N.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}var pp=10,Wb=(t=0)=>e=>`\x1B[${e+t}m`,Kb=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Yb=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,Ne={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Ne.modifier);var SN=Object.keys(Ne.color),xN=Object.keys(Ne.bgColor);[...SN,...xN];function FN(){let t=new Map;for(let[e,r]of Object.entries(Ne)){for(let[n,i]of Object.entries(r))Ne[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ne[n],t.set(i[0],i[1]);Object.defineProperty(Ne,e,{value:r,enumerable:!1})}return Object.defineProperty(Ne,"codes",{value:t,enumerable:!1}),Ne.color.close="\x1B[39m",Ne.bgColor.close="\x1B[49m",Ne.color.ansi=Wb(),Ne.color.ansi256=Kb(),Ne.color.ansi16m=Yb(),Ne.bgColor.ansi=Wb(pp),Ne.bgColor.ansi256=Kb(pp),Ne.bgColor.ansi16m=Yb(pp),Object.defineProperties(Ne,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>Ne.rgbToAnsi256(...Ne.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>Ne.ansi256ToAnsi(Ne.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>Ne.ansi256ToAnsi(Ne.hexToAnsi256(e)),enumerable:!1}}),Ne}var ON=FN(),Zl=new Set(["\x1B","\x9B"]),AN=39,Dp="\x07",ow="[",kN="]",sw="m",vp=`${kN}8;;`,Jb=t=>`${Zl.values().next().value}${ow}${t}${sw}`,Xb=t=>`${Zl.values().next().value}${vp}${t}${Dp}`,TN=t=>t.split(" ").map(e=>Aa(e)),mp=(t,e,r)=>{let n=[...e],i=!1,o=!1,s=Aa(rw(t[t.length-1]));for(let[a,u]of n.entries()){let l=Aa(u);if(s+l<=r?t[t.length-1]+=u:(t.push(u),s=0),Zl.has(u)&&(i=!0,o=n.slice(a+1).join("").startsWith(vp)),i){o?u===Dp&&(i=!1,o=!1):u===sw&&(i=!1);continue}s+=l,s===r&&a<n.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},PN=t=>{let e=t.split(" "),r=e.length;for(;r>0&&!(Aa(e[r-1])>0);)r--;return r===e.length?t:e.slice(0,r).join(" ")+e.slice(r).join("")},RN=(t,e,r={})=>{if(r.trim!==!1&&t.trim()==="")return"";let n="",i,o,s=TN(t),a=[""];for(let[l,c]of t.split(" ").entries()){r.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Aa(a[a.length-1]);if(l!==0&&(f>=e&&(r.wordWrap===!1||r.trim===!1)&&(a.push(""),f=0),(f>0||r.trim===!1)&&(a[a.length-1]+=" ",f++)),r.hard&&s[l]>e){let h=e-f,d=1+Math.floor((s[l]-h-1)/e);Math.floor((s[l]-1)/e)<d&&a.push(""),mp(a,c,e);continue}if(f+s[l]>e&&f>0&&s[l]>0){if(r.wordWrap===!1&&f<e){mp(a,c,e);continue}a.push("")}if(f+s[l]>e&&r.wordWrap===!1){mp(a,c,e);continue}a[a.length-1]+=c}r.trim!==!1&&(a=a.map(l=>PN(l)));let u=[...a.join(`
|
|
205
205
|
`)];for(let[l,c]of u.entries()){if(n+=c,Zl.has(c)){let{groups:h}=new RegExp(`(?:\\${ow}(?<code>\\d+)m|\\${vp}(?<uri>.*)${Dp})`).exec(u.slice(l).join(""))||{groups:{}};if(h.code!==void 0){let d=Number.parseFloat(h.code);i=d===AN?void 0:d}else h.uri!==void 0&&(o=h.uri.length===0?void 0:h.uri)}let f=ON.codes.get(Number(i));u[l+1]===`
|
|
206
206
|
`?(o&&(n+=Xb("")),i&&f&&(n+=Jb(f))):c===`
|
|
207
207
|
`&&(i&&f&&(n+=Jb(i)),o&&(n+=Xb(o)))}return n};function Zb(t,e,r){return String(t).normalize().replace(/\r\n/g,`
|
|
@@ -335,7 +335,7 @@ ${Vh};
|
|
|
335
335
|
${M8};
|
|
336
336
|
|
|
337
337
|
${Vh};
|
|
338
|
-
`)}async function Joe(t,e,r){let n=await kr(),i=Xt(n.get("@capacitor/core")?.replace("^","").replace("~","")??"");i||p.warn("Cannot find @capacitor/core in package.json. It is likely that you are using a monorepo. Please NOTE that encryption is not supported in Capacitor V5.");let o=Jt(),s=await Pe({message:`Automatic configure end-to-end encryption in ${r} updates?`});if(await un(s,t,e),s){if(i&&So(i,Xt("6.0.0"))){p.warn("Encryption is not supported in Capacitor V5.");return}let a=_e();a.start(`Running: ${o.runner} @capgo/cli@latest key create`),await Sb({force:!0},!1)?a.stop("key created \u{1F511}"):(a.stop("Error"),p.warn("Cannot create key \u274C"),J("Bye \u{1F44B}"),(0,ke.exit)(1)),Tn("onboarding-v2",t,e,"Use encryption v2")}await Tr(t,e,6)}async function Xoe(t,e,r){let n=Jt(),i=await Pe({message:`Automatic build ${r} with "${n.pm} run build" ?`});if(await un(i,t,e),i){let o=_e(),s=await bv(),a=await fI(s);o.start(`Running: ${n.pm} run ${a} && ${n.runner} cap sync`),(await vr()).scripts[a]||(o.stop("Error"),p.warn(`Cannot find ${a} script in package.json, please add it and run \`capgo init\` again`),J("Bye \u{1F44B}"),(0,ke.exit)()),(0,Ll.execSync)(`${n.pm} run ${a} && ${n.runner} cap sync`,U8),o.stop("Build & Sync Done \u2705")}else p.info(`Build yourself with command: ${n.pm} run build && ${n.runner} cap sync`);await Tr(t,e,7)}async function Zoe(t,e,r){let n=Jt(),i=await Pe({message:`Automatic upload ${r} bundle to Capgo?`});if(await un(i,t,e),i){let o=_e(),s;o.start(`Running: ${n.runner} @capgo/cli@latest bundle upload`);let a=nI((0,ke.cwd)());Ro&&a&&(p.warn("You are most likely using a monorepo, please provide the path to your package.json file AND node_modules path folder when uploading your bundle"),p.warn(`Example: ${n.runner} @capgo/cli@latest bundle upload --package-json ./packages/my-app/package.json --node-modules ./packages/my-app/node_modules`),s=(0,pi.join)(On((0,ke.cwd)()),"node_modules"),p.warn(`Guessed node modules path at: ${s}`),(0,Ie.existsSync)(s)||(p.error("Node modules path does not exist, upload skipped"),J("Bye \u{1F44B}"),(0,ke.exit)(1))),await mb(r,{channel:Nl,apikey:e,packageJson:a?Ro:void 0,nodeModules:a?s:void 0},!1)?o.stop("Upload Done \u2705"):(o.stop("Error"),p.warn("Upload failed \u274C"),J("Bye \u{1F44B}"),(0,ke.exit)())}else p.info(`Upload yourself with command: ${n.runner} @capgo/cli@latest bundle upload`);await Tr(t,e,8)}async function Qoe(t,e){let r=Jt(),n=await Pe({message:"Run in device now ?"});if(await un(n,t,e),n){let i=await yi({message:"Pick a platform to run your app",options:[{value:"ios",label:"IOS"},{value:"android",label:"Android"}]});st(i)&&(J("Bye \u{1F44B}"),(0,ke.exit)());let o=i,s=_e();s.start(`Running: ${r.runner} cap run ${o}`),await(0,Ll.spawnSync)(r.runner,["cap","run",o],{stdio:"inherit"}),s.stop("Started Done \u2705")}else p.info(`If you change your mind, run it for yourself with: ${r.runner} cap run <ios|android>`);await Tr(t,e,9)}async function ese(t,e,r,n){let i=await Pe({message:"Automatic check if update working in device ?"});if(await un(i,t,e),i)p.info(`Wait logs sent to Capgo from ${r} device, Please open your app \u{1F4AA}`),await Gv("onboarding-v2",e,r,e,t);else{let o=mo(r);p.info(`Check logs in ${n}/app/p/${o}/logs to see if update works.`)}await Tr(t,e,10)}async function V8(t,e,r){let n=Jt();Z("Capgo onboarding \u{1F6EB}"),await Ae();let i=!r.supaAnon||!r.supaHost?await te():await _l({statsUrl:`${r.supaHost}/functions/v1/stats`,channelUrl:`${r.supaHost}/functions/v1/channel_self`,updateUrl:`${r.supaHost}/functions/v1/updates`,localApiFiles:`${r.supaHost}/functions/v1`,localS3:!0,localSupa:r.supaHost,localSupaAnon:r.supaAnon}),o=await br();e=pe(e,i?.config),r.apikey=t||de(),e===void 0&&(e=await ec({message:"Enter your appId:"}),st(e)&&(Di("Operation cancelled."),(0,ke.exit)(1)));let s=_e();(!B8()||t)&&(s.start(`Running: ${n.runner} @capgo/cli@latest login ***`),await Ob(r.apikey,r,!1),s.stop("Login Done \u2705"));let a=await fe(r.apikey);await he(a,r.apikey,["upload","all","read","write"]);let u=await sa(a,["admin","super_admin"]),l=u.gid,c=await Moe(l,r.apikey)??0;try{c<1&&await Tr(l,r.apikey,1),c<2&&(await Hoe(u,r.apikey,e,r),an(2)),c<3&&(await Voe(l,r.apikey,e),an(3)),c<4&&(await Koe(l,r.apikey,e),an(4)),c<5&&(await Yoe(l,r.apikey,e),an(5)),c<6&&(await Joe(l,r.apikey,e),an(6)),c<7&&(await Xoe(l,r.apikey,e),an(7)),c<8&&(await Zoe(l,r.apikey,e),an(8)),c<9&&(await Qoe(l,r.apikey),an(9)),await ese(l,r.apikey,e,o.hostWeb),await Tr(l,r.apikey,0),Uoe()}catch(f){console.error(f),p.error("Error during onboarding, please try again later"),(0,ke.exit)(1)}p.info("Welcome onboard \u2708\uFE0F!"),p.info("Your Capgo update system is setup"),p.info(`Next time use \`${n.runner} @capgo/cli@latest bundle upload\` to only upload your bundle`),p.info(`If you have any issue try to use the debug command \`${n.runner} @capgo/cli@latest app debug\``),J("Bye \u{1F44B}"),(0,ke.exit)()}async function z8(t){Z("Getting user id"),t.apikey=t.apikey||de();let e=await fe(t.apikey),r=await he(e,t.apikey,["read","all","write"]);J(`Done \u2705: ${r}`)}k.name(Cr.name).description("Manage packages and bundle versions in Capgo Cloud").version(Cr.version,"-v, --version","output the current version");k.command("login [apikey]").alias("l").description("Save apikey to your machine or folder").action(q8).option("--local","Only save in local folder");k.command("doctor").description("Get info about your Capgo app install").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").action(Yj);k.command("init [apikey] [appId]").alias("i").description("Init a new app").action(V8).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("--supa-host <supaHost>","Supabase host URL").option("--supa-anon <supaAnon>","Supabase anon token");var Fa=k.command("app").description("Manage app");Fa.command("add [appId]").alias("a").description("Add a new app in Capgo Cloud").action(zj).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("delete [appId]").description("Delete an app in Capgo Cloud").action(Kj).option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("list").alias("l").description("list apps in Capgo Cloud").action(Xj).option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("debug [appId]").description("Listen for live updates event in Capgo Cloud to debug your app").option("-a, --apikey <apikey>","apikey to link to your account").option("-d, --device <device>","the specific device to debug").action(Gj);Fa.command("setting [path]").description("Modifies capacitor config programmatically").option("--bool <bool>","A value for the setting to modify as a boolean").option("--string <string>","A value for the setting to modify as a string").action(t6);Fa.command("set [appId]").alias("s").description("Set an app in Capgo Cloud").action(e6).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("-a, --apikey <apikey>","apikey to link to your account").option("-r, --retention <retention>","retention period of app bundle in days");var mi=k.command("bundle").description("Manage bundle");mi.command("upload [appId]").alias("u").description("Upload a new bundle in Capgo Cloud").action(o8).option("-a, --apikey <apikey>","apikey to link to your account").option("-p, --path <path>","path of the folder to upload, if not provided it will use the webDir set in capacitor.config").option("-c, --channel <channel>","channel to link to").option("-e, --external <url>","link to external url intead of upload to Capgo Cloud").option("--iv-session-key <key>","Set the iv and session key for bundle url external").option("--s3-region <region>","Region for your S3 bucket").option("--s3-apikey <apikey>","Apikey for your S3 endpoint").option("--s3-apisecret <apisecret>","Api secret for your S3 endpoint").option("--s3-endoint <s3Endpoint>","Url of S3 endpoint").option("--s3-bucket-name <bucketName>","Name for your AWS S3 bucket").option("--s3-port <port>","Port for your S3 endpoint").option("--no-s3-ssl","Disable SSL for S3 upload").option("--key-v2 <key>","custom path for private signing key (v2 system)").option("--key-data-v2 <keyDataV2>","private signing key (v2 system)").option("--bundle-url","prints bundle url into stdout").option("--no-key","ignore signing key and send clear update").option("--no-code-check","Ignore checking if notifyAppReady() is called in soure code and index present in root folder").option("--display-iv-session","Show in the console the iv and session key used to encrypt the update").option("-b, --bundle <bundle>","bundle version number of the bundle to upload").option("--min-update-version <minUpdateVersion>","Minimal version required to update to this version. Used only if the disable auto update is set to metadata in channel").option("--auto-min-update-version","Set the min update version based on native packages").option("--ignore-metadata-check","Ignores the metadata (node_modules) check when uploading").option("--ignore-checksum-check","Ignores the checksum check when uploading").option("--timeout <timeout>","Timeout for the upload process in seconds").option("--multipart","Uses multipart protocol to upload data to S3, Deprecated, use tus instead").option("--tus","Upload the bundle using TUS to Capgo cloud").option("--tus-chunk-size <tusChunkSize>","Chunk size for the TUS upload").option("--partial","Upload partial files to Capgo cloud").option("--partial-only","Upload only partial files to Capgo cloud, skip the zipped file, useful for big bundle").option("--encrypted-checksum <encryptedChecksum>","An encrypted checksum (signature). Used only when uploading an external bundle.").option("--auto-set-bundle","Set the bundle in capacitor.config.json").option("--dry-upload","Dry upload the bundle process, mean it will not upload the files but add the row in database (useful for testing)").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").option("--node-modules <nodeModules>","A list of path to node_modules. Usefull for monorepos (comma separated ex: ../../node_modules,./node_modules)").option("--encrypt-partial","Encrypt the partial update files").option("--delete-linked-bundle-on-upload","Locates the currently linked bundle in the channel you are trying to upload to, and deletes it");mi.command("compatibility [appId]").action(F6).option("-a, --apikey <apikey>","apikey to link to your account").option("-c, --channel <channel>","channel to check the compatibility with").option("--text","output text instead of emojis").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").option("--node-modules <nodeModules>","A list of path to node_modules. Usefull for monorepos (comma separated ex: ../../node_modules,./node_modules)");mi.command("delete [bundleId] [appId]").alias("d").description("Delete a bundle in Capgo Cloud").action(j6).option("-a, --apikey <apikey>","apikey to link to your account");mi.command("list [appId]").alias("l").description("List bundle in Capgo Cloud").action(q6).option("-a, --apikey <apikey>","apikey to link to your account");mi.command("cleanup [appId]").alias("c").action(S6).description("Cleanup bundle in Capgo Cloud").option("-b, --bundle <bundle>","bundle version number of the app to delete").option("-a, --apikey <apikey>","apikey to link to your account").option("-k, --keep <keep>","number of version to keep").option("-f, --force","force removal");mi.command("encrypt [zipPath]").description("Encrypt a zip bundle using the new encryption method").action(L6).option("--key <key>","custom path for private signing key").option("--key-data <keyData>","private signing key").option("-j, --json","output in JSON");mi.command("decrypt [zipPath] [checksum]").description("Decrypt a zip bundle using the new encryption method").action($6).option("--key <key>","custom path for private signing key").option("--key-data <keyData>","private signing key").option("--checksum <checksum>","checksum of the bundle, to verify the integrity of the bundle");mi.command("zip [appId]").description("Zip a bundle").action(u8).option("-p, --path <path>","path of the folder to upload, if not provided it will use the webDir set in capacitor.config").option("-b, --bundle <bundle>","bundle version number to name the zip file").option("-n, --name <name>","name of the zip file").option("-j, --json","output in JSON").option("--no-code-check","Ignore checking if notifyAppReady() is called in soure code and index present in root folder").option("--key-v2","use encryption v2").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)");var Bl=k.command("channel").description("Manage channel");Bl.command("add [channelId] [appId]").alias("a").description("Create channel").action(c8).option("-d, --default","set the channel as default").option("-a, --apikey <apikey>","apikey to link to your account");Bl.command("delete [channelId] [appId]").alias("d").description("Delete channel").action(p8).option("-a, --apikey <apikey>","apikey to link to your account").option("--delete-bundle","delete the bundle associated with the channel");Bl.command("list [appId]").alias("l").description("List channel").action(g8).option("-a, --apikey <apikey>","apikey to link to your account");Bl.command("currentBundle [channel] [appId]").description("Get current bundle for specific channel in Capgo Cloud").action(d8).option("-c, --channel <channel>","channel to get the current bundle from").option("-a, --apikey <apikey>","apikey to link to your account").option("--quiet","only print the bundle version");Bl.command("set [channelId] [appId]").alias("s").description("Set channel").action(v8).option("-a, --apikey <apikey>","apikey to link to your account").option("-b, --bundle <bundle>","bundle version number of the file to set").option("-s, --state <state>","set the state of the channel, default or normal").option("--latest","get the latest version key in the package.json to set it to the channel").option("--downgrade","Allow to downgrade to version under native one").option("--no-downgrade","Disable downgrade to version under native one").option("--upgrade","Allow to upgrade to version above native one").option("--no-upgrade","Disable upgrade to version above native one").option("--ios","Allow sending update to ios devices").option("--no-ios","Disable sending update to ios devices").option("--android","Allow sending update to android devices").option("--no-android","Disable sending update to android devices").option("--self-assign","Allow to device to self assign to this channel").option("--no-self-assign","Disable devices to self assign to this channel").option("--disable-auto-update <disableAutoUpdate>","Disable auto update strategy for this channel.The possible options are: major, minor, metadata, patch, none").option("--dev","Allow sending update to development devices").option("--no-dev","Disable sending update to development devices").option("--emulator","Allow sending update to emulator devices").option("--no-emulator","Disable sending update to emulator devices").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)");var Ab=k.command("key").description("Manage encryption key");Ab.command("save").description("Save base64 encryption key in capacitor config, usefull for CI").action(j8).option("-f, --force","force generate a new one").option("--key","key path to save in capacitor config").option("--key-data","key data to save in capacitor config");Ab.command("create").description("Create a new encryption key").action(N8).option("-f, --force","force generate a new one");Ab.command("delete_old").description("Delete the old encryption key").action(L8);var tse=k.command("account").description("Manage account");tse.command("id").description("Get your account ID, it's safe to share it in discord or other places").action(z8).option("-a, --apikey <apikey>","apikey to link to your account");k.parseAsync();
|
|
338
|
+
`)}async function Joe(t,e,r){let n=await kr(),i=Xt(n.get("@capacitor/core")?.replace("^","").replace("~","")??"");i||p.warn("Cannot find @capacitor/core in package.json. It is likely that you are using a monorepo. Please NOTE that encryption is not supported in Capacitor V5.");let o=Jt(),s=await Pe({message:`Automatic configure end-to-end encryption in ${r} updates?`});if(await un(s,t,e),s){if(i&&So(i,Xt("6.0.0"))){p.warn("Encryption is not supported in Capacitor V5.");return}let a=_e();a.start(`Running: ${o.runner} @capgo/cli@latest key create`),await Sb({force:!0},!1)?a.stop("key created \u{1F511}"):(a.stop("Error"),p.warn("Cannot create key \u274C"),J("Bye \u{1F44B}"),(0,ke.exit)(1)),Tn("onboarding-v2",t,e,"Use encryption v2")}await Tr(t,e,6)}async function Xoe(t,e,r){let n=Jt(),i=await Pe({message:`Automatic build ${r} with "${n.pm} run build" ?`});if(await un(i,t,e),i){let o=_e(),s=await bv(),a=await fI(s);o.start(`Running: ${n.pm} run ${a} && ${n.runner} cap sync`),(await vr()).scripts[a]||(o.stop("Error"),p.warn(`Cannot find ${a} script in package.json, please add it and run \`capgo init\` again`),J("Bye \u{1F44B}"),(0,ke.exit)()),(0,Ll.execSync)(`${n.pm} run ${a} && ${n.runner} cap sync`,U8),o.stop("Build & Sync Done \u2705")}else p.info(`Build yourself with command: ${n.pm} run build && ${n.runner} cap sync`);await Tr(t,e,7)}async function Zoe(t,e,r){let n=Jt(),i=await Pe({message:`Automatic upload ${r} bundle to Capgo?`});if(await un(i,t,e),i){let o=_e(),s;o.start(`Running: ${n.runner} @capgo/cli@latest bundle upload`);let a=nI((0,ke.cwd)());Ro&&a&&(p.warn("You are most likely using a monorepo, please provide the path to your package.json file AND node_modules path folder when uploading your bundle"),p.warn(`Example: ${n.runner} @capgo/cli@latest bundle upload --package-json ./packages/my-app/package.json --node-modules ./packages/my-app/node_modules`),s=(0,pi.join)(On((0,ke.cwd)()),"node_modules"),p.warn(`Guessed node modules path at: ${s}`),(0,Ie.existsSync)(s)||(p.error("Node modules path does not exist, upload skipped"),J("Bye \u{1F44B}"),(0,ke.exit)(1))),await mb(r,{channel:Nl,apikey:e,packageJson:a?Ro:void 0,nodeModules:a?s:void 0},!1)?o.stop("Upload Done \u2705"):(o.stop("Error"),p.warn("Upload failed \u274C"),J("Bye \u{1F44B}"),(0,ke.exit)())}else p.info(`Upload yourself with command: ${n.runner} @capgo/cli@latest bundle upload`);await Tr(t,e,8)}async function Qoe(t,e){let r=Jt(),n=await Pe({message:"Run in device now ?"});if(await un(n,t,e),n){let i=await yi({message:"Pick a platform to run your app",options:[{value:"ios",label:"IOS"},{value:"android",label:"Android"}]});st(i)&&(J("Bye \u{1F44B}"),(0,ke.exit)());let o=i,s=_e();s.start(`Running: ${r.runner} cap run ${o}`),await(0,Ll.spawnSync)(r.runner,["cap","run",o],{stdio:"inherit"}),s.stop("Started Done \u2705")}else p.info(`If you change your mind, run it for yourself with: ${r.runner} cap run <ios|android>`);await Tr(t,e,9)}async function ese(t,e,r,n){let i=await Pe({message:"Automatic check if update working in device ?"});if(await un(i,t,e),i)p.info(`Wait logs sent to Capgo from ${r} device, Please open your app \u{1F4AA}`),await Gv("onboarding-v2",e,r,e,t);else{let o=mo(r);p.info(`Check logs in ${n}/app/p/${o}/logs to see if update works.`)}await Tr(t,e,10)}async function V8(t,e,r){let n=Jt();Z("Capgo onboarding \u{1F6EB}"),await Ae();let i=!r.supaAnon||!r.supaHost?await te():await _l({statsUrl:`${r.supaHost}/functions/v1/stats`,channelUrl:`${r.supaHost}/functions/v1/channel_self`,updateUrl:`${r.supaHost}/functions/v1/updates`,localApiFiles:`${r.supaHost}/functions/v1`,localS3:!0,localSupa:r.supaHost,localSupaAnon:r.supaAnon}),o=await br();e=pe(e,i?.config),r.apikey=t||de(),e===void 0&&(e=await ec({message:"Enter your appId:"}),st(e)&&(Di("Operation cancelled."),(0,ke.exit)(1)));let s=_e();(!B8()||t)&&(s.start(`Running: ${n.runner} @capgo/cli@latest login ***`),await Ob(r.apikey,r,!1),s.stop("Login Done \u2705"));let a=await fe(r.apikey);await he(a,r.apikey,["upload","all","read","write"]);let u=await sa(a,["admin","super_admin"]),l=u.gid,c=await Moe(l,r.apikey)??0;try{c<1&&await Tr(l,r.apikey,1),c<2&&(await Hoe(u,r.apikey,e,r),an(2)),c<3&&(await Voe(l,r.apikey,e),an(3)),c<4&&(await Koe(l,r.apikey,e),an(4)),c<5&&(await Yoe(l,r.apikey,e),an(5)),c<6&&(await Joe(l,r.apikey,e),an(6)),c<7&&(await Xoe(l,r.apikey,e),an(7)),c<8&&(await Zoe(l,r.apikey,e),an(8)),c<9&&(await Qoe(l,r.apikey),an(9)),await ese(l,r.apikey,e,o.hostWeb),await Tr(l,r.apikey,0),Uoe()}catch(f){console.error(f),p.error("Error during onboarding, please try again later"),(0,ke.exit)(1)}p.info("Welcome onboard \u2708\uFE0F!"),p.info("Your Capgo update system is setup"),p.info(`Next time use \`${n.runner} @capgo/cli@latest bundle upload\` to only upload your bundle`),p.info(`If you have any issue try to use the debug command \`${n.runner} @capgo/cli@latest app debug\``),J("Bye \u{1F44B}"),(0,ke.exit)()}async function z8(t){Z("Getting user id"),t.apikey=t.apikey||de();let e=await fe(t.apikey),r=await he(e,t.apikey,["read","all","write"]);J(`Done \u2705: ${r}`)}k.name(Cr.name).description("Manage packages and bundle versions in Capgo Cloud").version(Cr.version,"-v, --version","output the current version");k.command("login [apikey]").alias("l").description("Save apikey to your machine or folder").action(q8).option("--local","Only save in local folder");k.command("doctor").description("Get info about your Capgo app install").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").action(Yj);k.command("init [apikey] [appId]").alias("i").description("Init a new app").action(V8).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("--supa-host <supaHost>","Supabase host URL").option("--supa-anon <supaAnon>","Supabase anon token");var Fa=k.command("app").description("Manage app");Fa.command("add [appId]").alias("a").description("Add a new app in Capgo Cloud").action(zj).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("delete [appId]").description("Delete an app in Capgo Cloud").action(Kj).option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("list").alias("l").description("list apps in Capgo Cloud").action(Xj).option("-a, --apikey <apikey>","apikey to link to your account");Fa.command("debug [appId]").description("Listen for live updates event in Capgo Cloud to debug your app").option("-a, --apikey <apikey>","apikey to link to your account").option("-d, --device <device>","the specific device to debug").action(Gj);Fa.command("setting [path]").description("Modifies capacitor config programmatically").option("--bool <bool>","A value for the setting to modify as a boolean").option("--string <string>","A value for the setting to modify as a string").action(t6);Fa.command("set [appId]").alias("s").description("Set an app in Capgo Cloud").action(e6).option("-n, --name <name>","app name").option("-i, --icon <icon>","app icon path").option("-a, --apikey <apikey>","apikey to link to your account").option("-r, --retention <retention>","retention period of app bundle in days");var mi=k.command("bundle").description("Manage bundle");mi.command("upload [appId]").alias("u").description("Upload a new bundle in Capgo Cloud").action(o8).option("-a, --apikey <apikey>","apikey to link to your account").option("-p, --path <path>","path of the folder to upload, if not provided it will use the webDir set in capacitor.config").option("-c, --channel <channel>","channel to link to").option("-e, --external <url>","link to external url intead of upload to Capgo Cloud").option("--iv-session-key <key>","Set the iv and session key for bundle url external").option("--s3-region <region>","Region for your S3 bucket").option("--s3-apikey <apikey>","Apikey for your S3 endpoint").option("--s3-apisecret <apisecret>","Api secret for your S3 endpoint").option("--s3-endoint <s3Endpoint>","Url of S3 endpoint").option("--s3-bucket-name <bucketName>","Name for your AWS S3 bucket").option("--s3-port <port>","Port for your S3 endpoint").option("--no-s3-ssl","Disable SSL for S3 upload").option("--key-v2 <key>","custom path for private signing key (v2 system)").option("--key-data-v2 <keyDataV2>","private signing key (v2 system)").option("--bundle-url","prints bundle url into stdout").option("--no-key","ignore signing key and send clear update").option("--no-code-check","Ignore checking if notifyAppReady() is called in soure code and index present in root folder").option("--display-iv-session","Show in the console the iv and session key used to encrypt the update").option("-b, --bundle <bundle>","bundle version number of the bundle to upload").option("--min-update-version <minUpdateVersion>","Minimal version required to update to this version. Used only if the disable auto update is set to metadata in channel").option("--auto-min-update-version","Set the min update version based on native packages").option("--ignore-metadata-check","Ignores the metadata (node_modules) check when uploading").option("--ignore-checksum-check","Ignores the checksum check when uploading").option("--timeout <timeout>","Timeout for the upload process in seconds").option("--multipart","Uses multipart protocol to upload data to S3, Deprecated, use tus instead").option("--tus","Upload the bundle using TUS to Capgo cloud").option("--tus-chunk-size <tusChunkSize>","Chunk size for the TUS upload").option("--partial","Upload partial files to Capgo cloud").option("--partial-only","Upload only partial files to Capgo cloud, skip the zipped file, useful for big bundle").option("--encrypted-checksum <encryptedChecksum>","An encrypted checksum (signature). Used only when uploading an external bundle.").option("--auto-set-bundle","Set the bundle in capacitor.config.json").option("--dry-upload","Dry upload the bundle process, mean it will not upload the files but add the row in database (useful for testing)").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").option("--node-modules <nodeModules>","A list of path to node_modules. Usefull for monorepos (comma separated ex: ../../node_modules,./node_modules)").option("--encrypt-partial","Encrypt the partial update files").option("--delete-linked-bundle-on-upload","Locates the currently linked bundle in the channel you are trying to upload to, and deletes it");mi.command("compatibility [appId]").action(F6).option("-a, --apikey <apikey>","apikey to link to your account").option("-c, --channel <channel>","channel to check the compatibility with").option("--text","output text instead of emojis").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)").option("--node-modules <nodeModules>","A list of path to node_modules. Usefull for monorepos (comma separated ex: ../../node_modules,./node_modules)");mi.command("delete [bundleId] [appId]").alias("d").description("Delete a bundle in Capgo Cloud").action(j6).option("-a, --apikey <apikey>","apikey to link to your account");mi.command("list [appId]").alias("l").description("List bundle in Capgo Cloud").action(q6).option("-a, --apikey <apikey>","apikey to link to your account");mi.command("cleanup [appId]").alias("c").action(S6).description("Cleanup bundle in Capgo Cloud").option("-b, --bundle <bundle>","bundle version number of the app to delete").option("-a, --apikey <apikey>","apikey to link to your account").option("-k, --keep <keep>","number of version to keep").option("-f, --force","force removal");mi.command("encrypt [zipPath] [checksum]").description("Encrypt a zip bundle using the new encryption method").action(L6).option("--key <key>","custom path for private signing key").option("--key-data <keyData>","private signing key").option("-j, --json","output in JSON");mi.command("decrypt [zipPath] [checksum]").description("Decrypt a zip bundle using the new encryption method").action($6).option("--key <key>","custom path for private signing key").option("--key-data <keyData>","private signing key").option("--checksum <checksum>","checksum of the bundle, to verify the integrity of the bundle");mi.command("zip [appId]").description("Zip a bundle").action(u8).option("-p, --path <path>","path of the folder to upload, if not provided it will use the webDir set in capacitor.config").option("-b, --bundle <bundle>","bundle version number to name the zip file").option("-n, --name <name>","name of the zip file").option("-j, --json","output in JSON").option("--no-code-check","Ignore checking if notifyAppReady() is called in soure code and index present in root folder").option("--key-v2","use encryption v2").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)");var Bl=k.command("channel").description("Manage channel");Bl.command("add [channelId] [appId]").alias("a").description("Create channel").action(c8).option("-d, --default","set the channel as default").option("-a, --apikey <apikey>","apikey to link to your account");Bl.command("delete [channelId] [appId]").alias("d").description("Delete channel").action(p8).option("-a, --apikey <apikey>","apikey to link to your account").option("--delete-bundle","delete the bundle associated with the channel");Bl.command("list [appId]").alias("l").description("List channel").action(g8).option("-a, --apikey <apikey>","apikey to link to your account");Bl.command("currentBundle [channel] [appId]").description("Get current bundle for specific channel in Capgo Cloud").action(d8).option("-c, --channel <channel>","channel to get the current bundle from").option("-a, --apikey <apikey>","apikey to link to your account").option("--quiet","only print the bundle version");Bl.command("set [channelId] [appId]").alias("s").description("Set channel").action(v8).option("-a, --apikey <apikey>","apikey to link to your account").option("-b, --bundle <bundle>","bundle version number of the file to set").option("-s, --state <state>","set the state of the channel, default or normal").option("--latest","get the latest version key in the package.json to set it to the channel").option("--downgrade","Allow to downgrade to version under native one").option("--no-downgrade","Disable downgrade to version under native one").option("--upgrade","Allow to upgrade to version above native one").option("--no-upgrade","Disable upgrade to version above native one").option("--ios","Allow sending update to ios devices").option("--no-ios","Disable sending update to ios devices").option("--android","Allow sending update to android devices").option("--no-android","Disable sending update to android devices").option("--self-assign","Allow to device to self assign to this channel").option("--no-self-assign","Disable devices to self assign to this channel").option("--disable-auto-update <disableAutoUpdate>","Disable auto update strategy for this channel.The possible options are: major, minor, metadata, patch, none").option("--dev","Allow sending update to development devices").option("--no-dev","Disable sending update to development devices").option("--emulator","Allow sending update to emulator devices").option("--no-emulator","Disable sending update to emulator devices").option("--package-json <packageJson>","A list of path to package.json. Usefull for monorepos (comma separated ex: ../../package.json,./package.json)");var Ab=k.command("key").description("Manage encryption key");Ab.command("save").description("Save base64 encryption key in capacitor config, usefull for CI").action(j8).option("-f, --force","force generate a new one").option("--key","key path to save in capacitor config").option("--key-data","key data to save in capacitor config");Ab.command("create").description("Create a new encryption key").action(N8).option("-f, --force","force generate a new one");Ab.command("delete_old").description("Delete the old encryption key").action(L8);var tse=k.command("account").description("Manage account");tse.command("id").description("Get your account ID, it's safe to share it in discord or other places").action(z8).option("-a, --apikey <apikey>","apikey to link to your account");k.parseAsync();
|
|
339
339
|
/*! Bundled license information:
|
|
340
340
|
|
|
341
341
|
safe-buffer/index.js:
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14",
|
|
4
4
|
"description": "A CLI to upload to capgo servers",
|
|
5
5
|
"author": "github.com/riderx",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
44
44
|
"check-posix-paths": "node test/check-posix-paths.js"
|
|
45
45
|
},
|
|
46
|
-
"
|
|
46
|
+
"devDependencies": {
|
|
47
47
|
"@antfu/eslint-config": "^4.1.1",
|
|
48
48
|
"@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
|
|
49
49
|
"@capacitor/cli": "^7.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14",
|
|
4
4
|
"description": "A CLI to upload to capgo servers",
|
|
5
5
|
"author": "github.com/riderx",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
44
44
|
"check-posix-paths": "node test/check-posix-paths.js"
|
|
45
45
|
},
|
|
46
|
-
"
|
|
46
|
+
"devDependencies": {
|
|
47
47
|
"@antfu/eslint-config": "^4.1.1",
|
|
48
48
|
"@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
|
|
49
49
|
"@capacitor/cli": "^7.0.1",
|