sparkar-bundler
Version:
TypeScript bundler for Meta Spark Studio
12 lines (11 loc) • 1.49 MB
JavaScript
"use strict";var Lue=Object.create;var AA=Object.defineProperty;var kue=Object.getOwnPropertyDescriptor;var jue=Object.getOwnPropertyNames;var Nue=Object.getPrototypeOf,Mue=Object.prototype.hasOwnProperty;var Uue=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $ue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of jue(t))!Mue.call(e,i)&&i!==r&&AA(e,i,{get:()=>t[i],enumerable:!(n=kue(t,i))||n.enumerable});return e};var G=(e,t,r)=>(r=e!=null?Lue(Nue(e)):{},$ue(t||!e||!e.__esModule?AA(r,"default",{value:e,enumerable:!0}):r,e));var Wue,p,c=Uue(()=>{Wue=()=>typeof document>"u"?new URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,p=Wue()});var PA=m((pGe,ml)=>{"use strict";c();var zue=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Gue=typeof process<"u"&&process.platform==="win32",OA=typeof process<"u"&&process.platform==="linux",Zy={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},TA=Object.assign({},Zy,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),RA=Object.assign({},Zy,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:OA?"\u25B8":"\u276F",pointerSmall:OA?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});ml.exports=Gue&&!zue?TA:RA;Reflect.defineProperty(ml.exports,"common",{enumerable:!1,value:Zy});Reflect.defineProperty(ml.exports,"windows",{enumerable:!1,value:TA});Reflect.defineProperty(ml.exports,"other",{enumerable:!1,value:RA})});var gl=m((mGe,Jy)=>{"use strict";c();var Hue=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Vue=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Kue=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,BA=()=>{let e={enabled:Kue(),visible:!0,styles:{},keys:{}},t=s=>{let o=s.open=`\x1B[${s.codes[0]}m`,u=s.close=`\x1B[${s.codes[1]}m`,l=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(h,x)=>{h.includes(u)&&(h=h.replace(l,u+o));let v=o+h+u;return x?v.replace(/\r*\n/g,`${u}$&${o}`):v},s},r=(s,o,u)=>typeof s=="function"?s(o):s.wrap(o,u),n=(s,o)=>{if(s===""||s==null)return"";if(e.enabled===!1)return s;if(e.visible===!1)return"";let u=""+s,l=u.includes(`
`),h=o.length;for(h>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());h-- >0;)u=r(e.styles[o[h]],u,l);return u},i=(s,o,u)=>{e.styles[s]=t({name:s,codes:o}),(e.keys[u]||(e.keys[u]=[])).push(s),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(h){e.alias(s,h)},get(){let h=x=>n(x,h.stack);return Reflect.setPrototypeOf(h,e),h.stack=this.stack?this.stack.concat(s):[s],h}})};return i("reset",[0,0],"modifier"),i("bold",[1,22],"modifier"),i("dim",[2,22],"modifier"),i("italic",[3,23],"modifier"),i("underline",[4,24],"modifier"),i("inverse",[7,27],"modifier"),i("hidden",[8,28],"modifier"),i("strikethrough",[9,29],"modifier"),i("black",[30,39],"color"),i("red",[31,39],"color"),i("green",[32,39],"color"),i("yellow",[33,39],"color"),i("blue",[34,39],"color"),i("magenta",[35,39],"color"),i("cyan",[36,39],"color"),i("white",[37,39],"color"),i("gray",[90,39],"color"),i("grey",[90,39],"color"),i("bgBlack",[40,49],"bg"),i("bgRed",[41,49],"bg"),i("bgGreen",[42,49],"bg"),i("bgYellow",[43,49],"bg"),i("bgBlue",[44,49],"bg"),i("bgMagenta",[45,49],"bg"),i("bgCyan",[46,49],"bg"),i("bgWhite",[47,49],"bg"),i("blackBright",[90,39],"bright"),i("redBright",[91,39],"bright"),i("greenBright",[92,39],"bright"),i("yellowBright",[93,39],"bright"),i("blueBright",[94,39],"bright"),i("magentaBright",[95,39],"bright"),i("cyanBright",[96,39],"bright"),i("whiteBright",[97,39],"bright"),i("bgBlackBright",[100,49],"bgBright"),i("bgRedBright",[101,49],"bgBright"),i("bgGreenBright",[102,49],"bgBright"),i("bgYellowBright",[103,49],"bgBright"),i("bgBlueBright",[104,49],"bgBright"),i("bgMagentaBright",[105,49],"bgBright"),i("bgCyanBright",[106,49],"bgBright"),i("bgWhiteBright",[107,49],"bgBright"),e.ansiRegex=Vue,e.hasColor=e.hasAnsi=s=>(e.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&e.ansiRegex.test(s)),e.alias=(s,o)=>{let u=typeof o=="string"?e[o]:o;if(typeof u!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");u.stack||(Reflect.defineProperty(u,"name",{value:s}),e.styles[s]=u,u.stack=[s]),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(l){e.alias(s,l)},get(){let l=h=>n(h,l.stack);return Reflect.setPrototypeOf(l,e),l.stack=this.stack?this.stack.concat(u.stack):u.stack,l}})},e.theme=s=>{if(!Hue(s))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(s))e.alias(o,s[o]);return e},e.alias("unstyle",s=>typeof s=="string"&&s!==""?(e.ansiRegex.lastIndex=0,s.replace(e.ansiRegex,"")):""),e.alias("noop",s=>s),e.none=e.clear=e.noop,e.stripColor=e.unstyle,e.symbols=PA(),e.define=i,e};Jy.exports=BA();Jy.exports.create=BA});var Qo=m((Xy,Qy)=>{c();(function(e,t){typeof Xy=="object"&&typeof Qy<"u"?Qy.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.arrayBack=t())})(Xy,function(){"use strict";function e(n){return typeof n=="object"&&n!==null}function t(n){return e(n)&&typeof n.length=="number"}function r(n){return Array.isArray(n)?n:n===void 0?[]:t(n)||n instanceof Set?Array.from(n):[n]}return r})});var qA=m((bGe,IA)=>{"use strict";c();var Yue=/[|\\{}()[\]^$+*?.]/g;IA.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Yue,"\\$&")}});var kA=m((DGe,LA)=>{"use strict";c();LA.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 eD=m((EGe,UA)=>{c();var ea=kA(),MA={};for(bp in ea)ea.hasOwnProperty(bp)&&(MA[ea[bp]]=bp);var bp,he=UA.exports={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"]}};for(_r in he)if(he.hasOwnProperty(_r)){if(!("channels"in he[_r]))throw new Error("missing channels property: "+_r);if(!("labels"in he[_r]))throw new Error("missing channel labels property: "+_r);if(he[_r].labels.length!==he[_r].channels)throw new Error("channel and label counts mismatch: "+_r);jA=he[_r].channels,NA=he[_r].labels,delete he[_r].channels,delete he[_r].labels,Object.defineProperty(he[_r],"channels",{value:jA}),Object.defineProperty(he[_r],"labels",{value:NA})}var jA,NA,_r;he.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,u,l,h;return s===i?u=0:t===s?u=(r-n)/o:r===s?u=2+(n-t)/o:n===s&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+s)/2,s===i?l=0:h<=.5?l=o/(s+i):l=o/(2-s-i),[u,l*100,h*100]};he.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,u=e[1]/255,l=e[2]/255,h=Math.max(o,u,l),x=h-Math.min(o,u,l),v=function(b){return(h-b)/6/x+1/2};return x===0?i=s=0:(s=x/h,t=v(o),r=v(u),n=v(l),o===h?i=n-r:u===h?i=1/3+t-n:l===h&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};he.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=he.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};he.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,u;return u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,s=(1-r-u)/(1-u)||0,o=(1-n-u)/(1-u)||0,[i*100,s*100,o*100,u*100]};function Zue(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}he.rgb.keyword=function(e){var t=MA[e];if(t)return t;var r=1/0,n;for(var i in ea)if(ea.hasOwnProperty(i)){var s=ea[i],o=Zue(e,s);o<r&&(r=o,n=i)}return n};he.keyword.rgb=function(e){return ea[e]};he.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};he.rgb.lab=function(e){var t=he.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,u;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),u=200*(n-i),[s,o,u]};he.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,u,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,u=[0,0,0];for(var h=0;h<3;h++)o=t+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(s-i)*6*o:2*o<1?l=s:3*o<2?l=i+(s-i)*(2/3-o)*6:l=i,u[h]=l*255;return u};he.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,u;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,u=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,u*100]};he.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[u,n,o];case 2:return[o,n,l];case 3:return[o,u,n];case 4:return[l,o,n];case 5:return[n,o,u]}};he.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,u;return u=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,u/=2,[t,o*100,u*100]};he.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,u,l;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,u=6*t-s,(s&1)!==0&&(u=1-u),l=r+u*(o-r);var h,x,v;switch(s){default:case 6:case 0:h=o,x=l,v=r;break;case 1:h=l,x=o,v=r;break;case 2:h=r,x=o,v=l;break;case 3:h=r,x=l,v=o;break;case 4:h=l,x=r,v=o;break;case 5:h=o,x=r,v=l;break}return[h*255,x*255,v*255]};he.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,u;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),u=1-Math.min(1,n*(1-i)+i),[s*255,o*255,u*255]};he.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};he.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};he.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var u=Math.pow(s,3),l=Math.pow(i,3),h=Math.pow(o,3);return s=u>.008856?u:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};he.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};he.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};he.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:he.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};he.hsv.ansi16=function(e){return he.rgb.ansi16(he.hsv.rgb(e),e[2])};he.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};he.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};he.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};he.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};he.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};he.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,u,l;return o<1?u=s/(1-o):u=0,o<=0?l=0:i===t?l=(r-n)/o%6:i===r?l=2+(n-t)/o:l=4+(t-r)/o+4,l/=6,l%=1,[l*360,o*100,u*100]};he.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};he.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};he.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,u=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};he.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};he.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};he.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};he.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};he.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};he.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};he.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};he.gray.hsl=he.gray.hsv=function(e){return[0,0,e[0]]};he.gray.hwb=function(e){return[0,100,e[0]]};he.gray.cmyk=function(e){return[0,0,0,e[0]]};he.gray.lab=function(e){return[e[0],0,0]};he.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};he.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var WA=m((CGe,$A)=>{c();var yp=eD();function Jue(){for(var e={},t=Object.keys(yp),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xue(e){var t=Jue(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(yp[n]),s=i.length,o=0;o<s;o++){var u=i[o],l=t[u];l.distance===-1&&(l.distance=t[n].distance+1,l.parent=n,r.unshift(u))}return t}function Que(e,t){return function(r){return t(e(r))}}function ece(e,t){for(var r=[t[e].parent,e],n=yp[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Que(yp[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}$A.exports=function(e){for(var t=Xue(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],u=t[o];u.parent!==null&&(r[o]=ece(o,t))}return r}});var GA=m((SGe,zA)=>{c();var tD=eD(),tce=WA(),Lu={},rce=Object.keys(tD);function nce(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function ice(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}rce.forEach(function(e){Lu[e]={},Object.defineProperty(Lu[e],"channels",{value:tD[e].channels}),Object.defineProperty(Lu[e],"labels",{value:tD[e].labels});var t=tce(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Lu[e][n]=ice(i),Lu[e][n].raw=nce(i)})});zA.exports=Lu});var VA=m((OGe,HA)=>{"use strict";c();var ku=GA(),Dp=(e,t)=>function(){return`\x1B[${e.apply(ku,arguments)+t}m`},_p=(e,t)=>function(){let r=e.apply(ku,arguments);return`\x1B[${38+t};5;${r}m`},Ep=(e,t)=>function(){let r=e.apply(ku,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function sce(){let e=new Map,t={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],gray:[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]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let u=s[o];t[o]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},s[o]=t[o],e.set(u[0],u[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Dp(r,0)},t.color.ansi256={ansi256:_p(r,0)},t.color.ansi16m={rgb:Ep(n,0)},t.bgColor.ansi={ansi:Dp(r,10)},t.bgColor.ansi256={ansi256:_p(r,10)},t.bgColor.ansi16m={rgb:Ep(n,10)};for(let i of Object.keys(ku)){if(typeof ku[i]!="object")continue;let s=ku[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=Dp(s.ansi16,0),t.bgColor.ansi[i]=Dp(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=_p(s.ansi256,0),t.bgColor.ansi256[i]=_p(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Ep(s.rgb,0),t.bgColor.ansi16m[i]=Ep(s.rgb,10))}return t}Object.defineProperty(HA,"exports",{enumerable:!0,get:sce})});var YA=m((RGe,KA)=>{"use strict";c();KA.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var JA=m((BGe,ZA)=>{"use strict";c();var oce=require("os"),$n=YA(),cr=process.env,ju;$n("no-color")||$n("no-colors")||$n("color=false")?ju=!1:($n("color")||$n("colors")||$n("color=true")||$n("color=always"))&&(ju=!0);"FORCE_COLOR"in cr&&(ju=cr.FORCE_COLOR.length===0||parseInt(cr.FORCE_COLOR,10)!==0);function ace(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function uce(e){if(ju===!1)return 0;if($n("color=16m")||$n("color=full")||$n("color=truecolor"))return 3;if($n("color=256"))return 2;if(e&&!e.isTTY&&ju!==!0)return 0;let t=ju?1:0;if(process.platform==="win32"){let r=oce.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in cr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in cr)||cr.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in cr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(cr.TEAMCITY_VERSION)?1:0;if(cr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in cr){let r=parseInt((cr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(cr.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(cr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(cr.TERM)||"COLORTERM"in cr?1:(cr.TERM==="dumb",t)}function rD(e){let t=uce(e);return ace(t)}ZA.exports={supportsColor:rD,stdout:rD(process.stdout),stderr:rD(process.stderr)}});var rO=m((qGe,tO)=>{"use strict";c();var cce=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,XA=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,fce=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,lce=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,hce=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function eO(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):hce.get(e)||e}function dce(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(fce))r.push(i[2].replace(lce,(o,u,l)=>u?eO(u):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function pce(e){XA.lastIndex=0;let t=[],r;for(;(r=XA.exec(e))!==null;){let n=r[1];if(r[2]){let i=dce(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function QA(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}tO.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(cce,(s,o,u,l,h,x)=>{if(o)i.push(eO(o));else if(l){let v=i.join("");i=[],n.push(r.length===0?v:QA(e,r)(v)),r.push({inverse:u,styles:pce(l)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(QA(e,r)(i.join(""))),i=[],r.pop()}else i.push(x)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Cp=m((kGe,bl)=>{"use strict";c();var iD=qA(),Rt=VA(),nD=JA().stdout,xce=rO(),iO=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),sO=["ansi","ansi","ansi256","ansi16m"],oO=new Set(["gray"]),Nu=Object.create(null);function nO(e,t){t=t||{};let r=nD?nD.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function vl(e){if(!this||!(this instanceof vl)||this.template){let t={};return nO(t,e),t.template=function(){let r=[].slice.call(arguments);return vce.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,vl.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=vl,t.template}nO(this,e)}iO&&(Rt.blue.open="\x1B[94m");for(let e of Object.keys(Rt))Rt[e].closeRe=new RegExp(iD(Rt[e].close),"g"),Nu[e]={get(){let t=Rt[e];return wp.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Nu.visible={get(){return wp.call(this,this._styles||[],!0,"visible")}};Rt.color.closeRe=new RegExp(iD(Rt.color.close),"g");for(let e of Object.keys(Rt.color.ansi))oO.has(e)||(Nu[e]={get(){let t=this.level;return function(){let n={open:Rt.color[sO[t]][e].apply(null,arguments),close:Rt.color.close,closeRe:Rt.color.closeRe};return wp.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Rt.bgColor.closeRe=new RegExp(iD(Rt.bgColor.close),"g");for(let e of Object.keys(Rt.bgColor.ansi)){if(oO.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Nu[t]={get(){let r=this.level;return function(){let i={open:Rt.bgColor[sO[r]][e].apply(null,arguments),close:Rt.bgColor.close,closeRe:Rt.bgColor.closeRe};return wp.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var mce=Object.defineProperties(()=>{},Nu);function wp(e,t,r){let n=function(){return gce.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=mce,n}function gce(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Rt.dim.open;iO&&this.hasGrey&&(Rt.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Rt.dim.open=n,r}function vce(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return xce(e,n.join(""))}Object.defineProperties(vl.prototype,Nu);bl.exports=vl();bl.exports.supportsColor=nD;bl.exports.default=bl.exports});var oD=m((NGe,aO)=>{c();var sD=class{constructor(){this.lines=[]}add(t){t?Qo()(t).forEach(n=>this.lines.push(n)):this.lines.push("")}toString(){let t=require("os");return this.lines.join(t.EOL)}header(t){let r=Cp();t&&(this.add(r.underline.bold(t)),this.add())}};aO.exports=sD});var uD=m((UGe,hO)=>{"use strict";c();function cO(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function fO(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function lO(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=lO(r):cO(r)?t[n]=fO(r):t[n]=aD({},r):t[n]=r}),t}function uO(e,t){return t==="__proto__"?void 0:e[t]}var aD=hO.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),r,n,i;return t.forEach(function(s){typeof s!="object"||s===null||Array.isArray(s)||Object.keys(s).forEach(function(o){if(n=uO(e,o),r=uO(s,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=lO(r);return}else if(cO(r)){e[o]=fO(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[o]=aD({},r);return}else{e[o]=aD(n,r);return}})}),e}});var Ps=m((Fp,dO)=>{c();(function(e,t){typeof Fp=="object"&&typeof dO<"u"?t(Fp):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.typical={}))})(Fp,function(e){"use strict";function t(_){return!isNaN(parseFloat(_))&&isFinite(_)}function r(_){return _!==null&&typeof _=="object"&&_.constructor===Object}function n(_){return i(_)&&typeof _.length=="number"}function i(_){return typeof _=="object"&&_!==null}function s(_){return typeof _<"u"}function o(_){return!s(_)}function u(_){return _===null}function l(_){return s(_)&&!u(_)&&!Number.isNaN(_)}function h(_){return typeof _=="function"?/^class /.test(Function.prototype.toString.call(_)):!1}function x(_){if(_===null)return!0;switch(typeof _){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function v(_){if(_){let A=s(Promise)&&_ instanceof Promise,k=_.then&&typeof _.then=="function";return!!(A||k)}else return!1}function b(_){return _===null||!s(_)?!1:typeof _[Symbol.iterator]=="function"||typeof _[Symbol.asyncIterator]=="function"}function y(_){return typeof _=="string"}function w(_){return typeof _=="function"}var E={isNumber:t,isPlainObject:r,isArrayLike:n,isObject:i,isDefined:s,isUndefined:o,isNull:u,isDefinedValue:l,isClass:h,isPrimitive:x,isPromise:v,isIterable:b,isString:y,isFunction:w};e.default=E,e.isArrayLike=n,e.isClass=h,e.isDefined=s,e.isDefinedValue=l,e.isFunction=w,e.isIterable=b,e.isNull=u,e.isNumber=t,e.isObject=i,e.isPlainObject=r,e.isPrimitive=x,e.isPromise=v,e.isString=y,e.isUndefined=o,Object.defineProperty(e,"__esModule",{value:!0})})});var fD=m((GGe,mO)=>{c();var zGe=Ps(),pO=new WeakMap,xO=new WeakMap,cD=class{constructor(t,r){this.value=t,xO.set(this,r)}set value(t){pO.set(this,t)}get value(){let t=pO.get(this);return typeof t=="function"&&(t=t.call(xO.get(this))),t===void 0?t="":t=String(t),t}};mO.exports=cD});var vO=m((VGe,gO)=>{c();var bce=Qo(),yce=fD(),Dce=Ps(),lD=class{constructor(t,r){this.list=[],this.load(t,r)}load(t,r){bce(t).forEach(n=>{this.list.push(new Map(_ce(n,r)))})}static removeEmptyColumns(t){let n=t.reduce((i,s)=>(Object.keys(s).forEach(o=>{i.indexOf(o)===-1&&i.push(o)}),i),[]).filter(i=>!t.some(o=>{let u=o[i];return Dce.isDefined(u)&&typeof u!="string"||typeof u=="string"&&/\S+/.test(u)}));return t.map(i=>(n.forEach(s=>delete i[s]),i))}};function _ce(e,t){return t.list.map(r=>[r,new yce(e[r.name],r)])}gO.exports=lD});var yO=m((YGe,bO)=>{c();var hD=class{constructor(t){this.left=t.left,this.right=t.right}length(){return this.left.length+this.right.length}};bO.exports=hD});var EO=m((JGe,_O)=>{c();var ui=Ps(),Ece=yO(),DO=new WeakMap,dD=class{constructor(t){ui.isDefined(t.name)&&(this.name=t.name),ui.isDefined(t.width)&&(this.width=t.width),ui.isDefined(t.maxWidth)&&(this.maxWidth=t.maxWidth),ui.isDefined(t.minWidth)&&(this.minWidth=t.minWidth),ui.isDefined(t.noWrap)&&(this.noWrap=t.noWrap),ui.isDefined(t.break)&&(this.break=t.break),ui.isDefined(t.contentWrappable)&&(this.contentWrappable=t.contentWrappable),ui.isDefined(t.contentWidth)&&(this.contentWidth=t.contentWidth),ui.isDefined(t.minContentWidth)&&(this.minContentWidth=t.minContentWidth),this.padding=t.padding||{left:" ",right:" "},this.generatedWidth=null}set padding(t){DO.set(this,new Ece(t))}get padding(){return DO.get(this)}get wrappedContentWidth(){return Math.max(this.generatedWidth-this.padding.length(),0)}isResizable(){return!this.isFixed()}isFixed(){return ui.isDefined(this.width)||this.noWrap||!this.contentWrappable}generateWidth(){this.generatedWidth=this.width||this.contentWidth+this.padding.length()}generateMinWidth(){this.minWidth=this.minContentWidth+this.padding.length()}};_O.exports=dD});var CO=m((QGe,wO)=>{c();wO.exports=wce;function wce(e,t){return e.concat(t)}});var mD=m((tHe,AO)=>{c();var Cce=require("os"),FO=Ps(),Sp={chunk:/[^\s-]+?-\b|\S+|\s+|\r\n?|\n/g,ansiEscapeSequence:/\u001b.*?m/g},pD=class{constructor(t,r){r=r||{},FO.isDefined(t)||(t=""),this._lines=String(t).split(/\r\n|\n/g),this.options=r,this.options.width=r.width===void 0?30:r.width}lines(){let t=CO();return this._lines.map(SO.bind(this)).map(r=>r.match(Sp.chunk)||["~~empty~~"]).map(r=>this.options.break?r.map(Fce.bind(this)):r).map(r=>r.reduce(t,[])).map(r=>r.reduce((n,i)=>{let s=n[n.length-1];return xD(i).length+xD(s).length>this.options.width?n.push(i):n[n.length-1]+=i,n},[""])).reduce(t,[]).map(SO.bind(this)).filter(r=>r.trim()).map(r=>r.replace("~~empty~~",""))}wrap(){return this.lines().join(Cce.EOL)}toString(){return this.wrap()}static wrap(t,r){return new this(t,r).wrap()}static lines(t,r){return new this(t,r).lines()}static isWrappable(t){if(FO.isDefined(t)){t=String(t);var r=t.match(Sp.chunk);return r?r.length>1:!1}}static getChunks(t){return t.match(Sp.chunk)||[]}};function SO(e){return this.options.noTrim?e:e.trim()}function xD(e){return e.replace(Sp.ansiEscapeSequence,"")}function Fce(e){if(xD(e).length>this.options.width){let t=e.split(""),r,n=[];for(;(r=t.splice(0,this.options.width)).length;)n.push(r.join(""));return n}else return e}AO.exports=pD});var vD=m(gD=>{c();var OO=/\u001b.*?m/g;gD.remove=Sce;gD.has=Ace;function Sce(e){return e.replace(OO,"")}function Ace(e){return OO.test(e)}});var kO=m((sHe,LO)=>{c();var TO=Ps(),RO=Qo(),PO=EO(),qO=mD(),Oce=fD(),BO=vD(),IO=new WeakMap,yl=class{constructor(t){this.list=[],RO(t).forEach(this.add.bind(this))}totalWidth(){return this.list.length?this.list.map(t=>t.generatedWidth).reduce((t,r)=>t+r):0}totalFixedWidth(){return this.getFixed().map(t=>t.generatedWidth).reduce((t,r)=>t+r,0)}get(t){return this.list.find(r=>r.name===t)}getResizable(){return this.list.filter(t=>t.isResizable())}getFixed(){return this.list.filter(t=>t.isFixed())}add(t){let r=t instanceof PO?t:new PO(t);return this.list.push(r),r}set maxWidth(t){IO.set(this,t)}autoSize(){let t=IO.get(this);this.list.forEach(n=>{n.generateWidth(),n.generateMinWidth()}),this.list.forEach(n=>{TO.isDefined(n.maxWidth)&&n.generatedWidth>n.maxWidth&&(n.generatedWidth=n.maxWidth),TO.isDefined(n.minWidth)&&n.generatedWidth<n.minWidth&&(n.generatedWidth=n.minWidth)});let r={total:this.totalWidth(),view:t,diff:this.totalWidth()-t,totalFixed:this.totalFixedWidth(),totalResizable:Math.max(t-this.totalFixedWidth(),0)};if(r.diff>0){let n=this.getResizable();n.forEach(u=>{u.generatedWidth=Math.floor(r.totalResizable/n.length)});let i=this.list.filter(u=>u.generatedWidth>u.contentWidth),s=this.list.filter(u=>u.generatedWidth<u.contentWidth),o=0;i.forEach(u=>{let l=u.generatedWidth;u.generateWidth(),o+=l-u.generatedWidth}),s.forEach(u=>{u.generatedWidth+=Math.floor(o/s.length)})}return this}static getColumns(t){var r=new yl;return RO(t).forEach(n=>{for(let i in n){let s=r.get(i);s||(s=r.add({name:i,contentWidth:0,minContentWidth:0}));let u=new Oce(n[i],s).value;BO.has(u)&&(u=BO.remove(u)),u.length>s.contentWidth&&(s.contentWidth=u.length);let l=Tce(u);l>s.minContentWidth&&(s.minContentWidth=l),s.contentWrappable||(s.contentWrappable=qO.isWrappable(u))}}),r}};function Tce(e){return qO.getChunks(e).reduce((r,n)=>Math.max(n.length,r),0)}LO.exports=yl});var DD=m((aHe,jO)=>{c();var bD=require("os"),yD=class{constructor(t,r){let n=process&&(process.stdout.columns||process.stderr.columns)||0;n&&bD.platform()==="win32"&&n--;let i={padding:{left:" ",right:" "},maxWidth:n||80,columns:[]},s=uD();this.options=s(i,r),this.load(t)}load(t){let r=vO(),n=kO(),i=this.options;return i.ignoreEmptyColumns&&(t=r.removeEmptyColumns(t)),this.columns=n.getColumns(t),this.rows=new r(t,this.columns),this.columns.maxWidth=i.maxWidth,this.columns.list.forEach(s=>{i.padding&&(s.padding=i.padding),i.noWrap&&(s.noWrap=i.noWrap),i.break&&(s.break=i.break,s.contentWrappable=!0)}),i.columns.forEach(s=>{let o=this.columns.get(s.name);o&&(s.padding&&(o.padding.left=s.padding.left,o.padding.right=s.padding.right),s.width&&(o.width=s.width),s.maxWidth&&(o.maxWidth=s.maxWidth),s.minWidth&&(o.minWidth=s.minWidth),s.noWrap&&(o.noWrap=s.noWrap),s.break&&(o.break=s.break,o.contentWrappable=!0))}),this.columns.autoSize(),this}getWrapped(){let t=mD();return this.columns.autoSize(),this.rows.list.map(r=>{let n=[];return r.forEach((i,s)=>{s.noWrap?n.push(i.value.split(/\r\n?|\n/)):n.push(t.lines(i.value,{width:s.wrappedContentWidth,break:s.break,noTrim:this.options.noTrim}))}),n})}getLines(){var t=this.getWrapped(),r=[];return t.forEach(n=>{let i=Rce(n);for(let s=0;s<i;s++){let o=[];n.forEach(u=>{o.push(u[s]||"")}),r.push(o)}}),r}renderLines(){var t=this.getLines();return t.map(r=>r.reduce((n,i,s)=>{let o=this.columns.list[s];return n+Pce(i,o.padding,o.generatedWidth)},""))}toString(){return this.renderLines().join(bD.EOL)+bD.EOL}};function Rce(e){var t=e.map(r=>r.length);return Math.max.apply(null,t)}function Pce(e,t,r){let n=vD();var i=e.length-n.remove(e).length;return e=e||"",(t.left||"")+e.padEnd(r-t.length()+i)+(t.right||"")}jO.exports=yD});var _D=m((cHe,NO)=>{c();function Bce(e){return e?(e=e.replace(/`/g,"\\`"),Cp()(Object.assign([],{raw:[e]}))):""}NO.exports=Bce});var UO=m((lHe,MO)=>{c();var Ice=oD(),qce=DD(),ta=_D(),Lce=Ps(),Ap=Qo(),ED=class extends Ice{constructor(t){super();let r=Ap(t.optionList),n=Ap(t.hide),i=Ap(t.group);n.length&&(r=r.filter(l=>n.indexOf(l.name)===-1)),t.header&&this.header(t.header),i.length&&(r=r.filter(l=>{let h=i.indexOf("_none")>-1&&!Lce.isDefined(l.group),x=jce(Ap(l.group),i);if(h||x)return l}));let s=r.map(l=>({option:kce(l,t.reverseNameOrder),description:ta(l.description)})),o=t.tableOptions||{padding:{left:" ",right:" "},columns:[{name:"option",noWrap:!0},{name:"description",maxWidth:80}]},u=new qce(s,o);this.add(u.renderLines()),this.add()}};function kce(e,t){let r=e.type?e.type.name.toLowerCase():"string",n=e.multiple||e.lazyMultiple?"[]":"";r&&(r=r==="boolean"?"":`{underline ${r}${n}}`),r=ta(e.typeLabel||r);let i="";return e.alias?e.name?t?i=ta(`{bold --${e.name}}, {bold -${e.alias}} ${r}`):i=ta(`{bold -${e.alias}}, {bold --${e.name}} ${r}`):t?i=ta(`{bold -${e.alias}} ${r}`):i=ta(`{bold -${e.alias}} ${r}`):i=ta(`{bold --${e.name}} ${r}`),i}function jce(e,t){return e.some(function(r){return t.some(function(n){return r===n})})}MO.exports=ED});var zO=m((dHe,WO)=>{c();var Nce=oD(),Op=Ps(),Tp=DD(),Rp=_D(),wD=class extends Nce{constructor(t){if(super(),this.header(t.header),t.content){if(t.raw){let n=Qo()(t.content).map(i=>Rp(i));this.add(n)}else this.add(Mce(t.content));this.add()}}};function Mce(e){let t={left:" ",right:" "};if(e){if(Op.isString(e))return new Tp({column:Rp(e)},{padding:t,maxWidth:80}).renderLines();if(Array.isArray(e)&&e.every(Op.isString)){let r=e.map(i=>({column:Rp(i)}));return new Tp(r,{padding:t,maxWidth:80}).renderLines()}else{if(Array.isArray(e)&&e.every(Op.isPlainObject))return new Tp(e.map(n=>$O(n)),{padding:t}).renderLines();if(Op.isPlainObject(e)){if(!e.options||!e.data)throw new Error(`must have an "options" or "data" property
`+JSON.stringify(e));let r=Object.assign({padding:t},e.options);return r.columns&&(r.columns=r.columns.map(i=>(i.nowrap&&(i.noWrap=i.nowrap,delete i.nowrap),i))),new Tp(e.data.map(i=>$O(i)),r).renderLines()}else{let r=`invalid input - 'content' must be a string, array of strings, or array of plain objects:
${JSON.stringify(e)}`;throw new Error(r)}}}}function $O(e){for(let t in e)e[t]=Rp(e[t]);return e}WO.exports=wD});var HO=m((xHe,GO)=>{c();function Uce(e){if(e=Qo()(e),e.length){let r=UO(),n=zO();return`
`+e.map(s=>s.optionList?new r(s):new n(s)).join(`
`)}else return""}GO.exports=Uce});var KO=m((gHe,VO)=>{"use strict";c();var $ce=Object.prototype.toString;VO.exports=function(e){var t;return $ce.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var ZO=m((bHe,YO)=>{"use strict";c();YO.exports=function(e){return e==null?[]:Array.isArray(e)?e:[e]}});var QO=m((DHe,XO)=>{c();var Wce=Object.prototype.toString;XO.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return Kce(t)?"generatorfunction":"function";if(zce(t))return"array";if(Jce(t))return"buffer";if(Zce(t))return"arguments";if(Hce(t))return"date";if(Gce(t))return"error";if(Vce(t))return"regexp";switch(JO(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Yce(t))return"generator";switch(r=Wce.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function JO(e){return typeof e.constructor=="function"?e.constructor.name:null}function zce(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Gce(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Hce(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Vce(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function Kce(e,t){return JO(e)==="GeneratorFunction"}function Yce(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Zce(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Jce(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var s5=m((EHe,SD)=>{"use strict";c();var Xce=KO(),Qce=ZO(),CD=QO(),e5=(e,t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},t5=(e,t,r,n)=>{e[t]||(e[t]={}),e[t][r]=n},Pp=e=>Array.isArray(e)?`[${e.map(Pp).join(", ")}]`:CD(e)==="string"?JSON.stringify(e):e,efe=e=>{if(Array.isArray(e)&&e.length>0){let[t]=e;return`${CD(t)}-array`}return CD(e)},tfe=(e,t)=>{let r=e==="array"?"string-array":e;return FD.includes(r)&&Array.isArray(t)&&t.length===0?"array":r},rfe=["stopEarly","unknown","--"],n5=["string","boolean","number"],FD=n5.map(e=>`${e}-array`),r5=[...n5,"array",...FD],i5=e=>{e=e||{};let t={};return rfe.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{let n=e[r];if(r==="arguments"&&(r="_"),typeof n=="string"&&(n={type:n}),Xce(n)){let i=n,{type:s}=i;if(s){if(!r5.includes(s))throw new TypeError(`Expected type of "${r}" to be one of ${Pp(r5)}, got ${Pp(s)}`);if(FD.includes(s)){let[o]=s.split("-");e5(t,"array",{key:r,[o]:!0})}else e5(t,s,r)}if({}.hasOwnProperty.call(i,"default")){let{default:o}=i,u=efe(o),l=tfe(s,o);if(l&&l!==u)throw new TypeError(`Expected "${r}" default value to be of type "${l}", got ${Pp(u)}`);t5(t,"default",r,o)}Qce(i.alias).forEach(o=>{t5(t,"alias",o,r)})}}),t};SD.exports=i5;SD.exports.default=i5});var g5=m((MHe,BD)=>{"use strict";c();var x5=e=>typeof e=="object"&&e!==null,m5=Symbol("skip"),p5=e=>x5(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),PD=(e,t,r,n=new WeakMap)=>{if(r={deep:!1,target:{},...r},n.has(e))return n.get(e);n.set(e,r.target);let{target:i}=r;delete r.target;let s=o=>o.map(u=>p5(u)?PD(u,t,r,n):u);if(Array.isArray(e))return s(e);for(let[o,u]of Object.entries(e)){let l=t(o,u,e);if(l===m5)continue;let[h,x,{shouldRecurse:v=!0}={}]=l;h!=="__proto__"&&(r.deep&&v&&p5(x)&&(x=Array.isArray(x)?s(x):PD(x,t,r,n)),i[h]=x)}return i};BD.exports=(e,t,r)=>{if(!x5(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return PD(e,t,r)};BD.exports.mapObjectSkip=m5});var C5=m((XHe,w5)=>{"use strict";c();w5.exports=function(e,t){for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var s=n[i],o=t(s,e[s],e);r[o[0]]=o[1]}return r}});var S5=m((eVe,F5)=>{"use strict";c();F5.exports=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}});var O5=m((rVe,A5)=>{"use strict";c();var pfe=C5(),xfe=S5();A5.exports=function(e,t,r){typeof t!="string"&&(r=t,t=null),r=r||{},t=t||r.separator;var n=r.exclude||[];return pfe(e,function(i,s){return i=n.indexOf(i)===-1?xfe(i,t):i,[i,s]})}});var R5=m((oVe,T5)=>{"use strict";c();T5.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var U5=m((jVe,M5)=>{"use strict";c();M5.exports=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1}});var W5=m((MVe,$5)=>{"use strict";c();var _fe=require("util"),Efe=U5(),zD=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var n=function i(s){if(!this)return new i(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,n),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var x=s.split(/\r?\n/g);for(var v in r)if(!!r.hasOwnProperty(v)){var b=r[v];"message"in b&&(x=b.message(this[v],x)||x,Efe(x)||(x=[x]))}return x.join(`
`)},set:function(x){s=x}});var o=null,u=Object.getOwnPropertyDescriptor(this,"stack"),l=u.get,h=u.value;delete u.value,delete u.writable,u.set=function(x){o=x},u.get=function(){var x=(o||(l?l.call(this):h)).split(/\r?\n+/g);o||(x[0]=this.name+": "+this.message);var v=1;for(var b in r)if(!!r.hasOwnProperty(b)){var y=r[b];if("line"in y){var w=y.line(this[b]);w&&x.splice(v++,0," "+w)}"stack"in y&&y.stack(this[b],x)}return x.join(`
`)},Object.defineProperty(this,"stack",u)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):_fe.inherits(n,Error),n};zD.append=function(e,t){return{message:function(r,n){return r=r||t,r&&(n[0]+=" "+e.replace("%s",r.toString())),n}}};zD.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};$5.exports=zD});var H5=m(($Ve,G5)=>{"use strict";c();var wfe=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},Cfe=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${wfe(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,u=i+r>=t.length?t.length:i+r,l=(o===0?"":"...")+t.slice(o,u)+(u===t.length?"":"...");return{message:s+` while parsing ${t===l?"":"near "}${JSON.stringify(l)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},Np=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=Cfe(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},Ffe=Symbol.for("indent"),Sfe=Symbol.for("newline"),Afe=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,Ofe=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,Mp=(e,t,r)=>{let n=z5(e);r=r||20;try{let[,i=`
`,s=" "]=n.match(Ofe)||n.match(Afe)||[,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[Sfe]=i,o[Ffe]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new Np(i,n,r,Mp)}},z5=e=>String(e).replace(/^\uFEFF/,"");G5.exports=Mp;Mp.JSONParseError=Np;Mp.noExceptions=(e,t)=>{try{return JSON.parse(z5(e),t)}catch{}}});var Y5=m(Fl=>{"use strict";c();Fl.__esModule=!0;Fl.LinesAndColumns=void 0;var Up=`
`,V5="\r",K5=function(){function e(t){this.string=t;for(var r=[0],n=0;n<t.length;)switch(t[n]){case Up:n+=Up.