@seed-design/codemod 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,35 @@
1
- var ku=Object.create;var Pr=Object.defineProperty;var Nu=Object.getOwnPropertyDescriptor;var Iu=Object.getOwnPropertyNames;var Fu=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty;var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Hu=(r,e)=>{for(var t in e)Pr(r,t,{get:e[t],enumerable:!0})},Oi=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Iu(e))!Uu.call(r,i)&&i!==t&&Pr(r,i,{get:()=>e[i],enumerable:!(n=Nu(e,i))||n.enumerable});return r};var Wu=(r,e,t)=>(t=r!=null?ku(Fu(r)):{},Oi(e||!r||!r.__esModule?Pr(t,"default",{value:r,enumerable:!0}):t,r)),zu=r=>Oi(Pr({},"__esModule",{value:!0}),r);var J=f((Tg,ji)=>{"use strict";var Ht=class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ var ou=Object.create;var Lt=Object.defineProperty;var su=Object.getOwnPropertyDescriptor;var au=Object.getOwnPropertyNames;var lu=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cu=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},wi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of au(e))!uu.call(t,i)&&i!==r&&Lt(t,i,{get:()=>e[i],enumerable:!(n=su(e,i))||n.enumerable});return t};var fu=(t,e,r)=>(r=t!=null?ou(lu(t)):{},wi(e||!t||!t.__esModule?Lt(r,"default",{value:t,enumerable:!0}):r,t)),hu=t=>wi(Lt({},"__esModule",{value:!0}),t);var Z=f((X0,Mi)=>{"use strict";var Dr=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: ${e.toString().split(`
3
3
  `)[0]}
4
- `),Error.captureStackTrace(this,r)}};ji.exports=r=>{if(r.length>2)throw new Ht(r);function e(n={}){this.options=n}e.prototype.transform=r;function t(n){return new e(n)}return t.Format=e,t}});var Ni=f((Ag,ki)=>{var Di={};ki.exports=Di;var Ci={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Ci).forEach(function(r){var e=Ci[r],t=Di[r]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Fi=f((Lg,Ii)=>{"use strict";Ii.exports=function(r,e){e=e||process.argv||[];var t=e.indexOf("--"),n=/^-{1,2}/.test(r)?"":"--",i=e.indexOf(n+r);return i!==-1&&(t===-1?!0:i<t)}});var Hi=f((Pg,Ui)=>{"use strict";var ic=require("os"),ae=Fi(),V=process.env,Fe=void 0;ae("no-color")||ae("no-colors")||ae("color=false")?Fe=!1:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Fe=!0);"FORCE_COLOR"in V&&(Fe=V.FORCE_COLOR.length===0||parseInt(V.FORCE_COLOR,10)!==0);function ac(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function oc(r){if(Fe===!1)return 0;if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2;if(r&&!r.isTTY&&Fe!==!0)return 0;var e=Fe?1:0;if(process.platform==="win32"){var t=ic.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in V})||V.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in V){var n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:(V.TERM==="dumb",e)}function Wt(r){var e=oc(r);return ac(e)}Ui.exports={supportsColor:Wt,stdout:Wt(process.stdout),stderr:Wt(process.stderr)}});var zi=f((jg,Wi)=>{Wi.exports=function(e,t){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(a){a=a.toLowerCase();var o=i[a]||[" "],s=Math.floor(Math.random()*o.length);typeof i[a]<"u"?n+=i[a][s]:n+=a}),n}});var Yi=f((Cg,Bi)=>{Bi.exports=function(e,t){e=e||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function a(l){var u=Math.floor(Math.random()*l);return u}function o(l){var u=!1;return i.filter(function(p){u=p===l}),u}function s(l,u){var p="",g,h;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(h in l)if(!o(h)){switch(p=p+l[h],g={up:0,down:0,mid:0},u.size){case"mini":g.up=a(8),g.mid=a(2),g.down=a(8);break;case"maxi":g.up=a(16)+3,g.mid=a(4)+1,g.down=a(64)+3;break;default:g.up=a(8)+1,g.mid=a(6)/2,g.down=a(8)+1;break}var v=["up","mid","down"];for(var c in v)for(var m=v[c],_=0;_<=g[m];_++)u[m]&&(p=p+n[m][a(n[m].length)])}return p}return s(e,t)}});var Gi=f((Dg,Vi)=>{Vi.exports=function(r){return function(e,t,n){if(e===" ")return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}}});var Ji=f((kg,Ki)=>{Ki.exports=function(r){return function(e,t,n){return t%2===0?e:r.inverse(e)}}});var Xi=f((Ng,Zi)=>{Zi.exports=function(r){var e=["red","yellow","green","blue","magenta"];return function(t,n,i){return t===" "?t:r[e[n++%e.length]](t)}}});var ea=f((Ig,Qi)=>{Qi.exports=function(r){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,n,i){return t===" "?t:r[e[Math.round(Math.random()*(e.length-2))]](t)}}});var oa=f((Ug,aa)=>{var S={};aa.exports=S;S.themes={};var sc=require("util"),Se=S.styles=Ni(),ta=Object.defineProperties,lc=new RegExp(/[\r\n]+/g);S.supportsColor=Hi().supportsColor;typeof S.enabled>"u"&&(S.enabled=S.supportsColor()!==!1);S.enable=function(){S.enabled=!0};S.disable=function(){S.enabled=!1};S.stripColors=S.strip=function(r){return(""+r).replace(/\x1B\[\d+m/g,"")};var Fg=S.stylize=function(e,t){if(!S.enabled)return e+"";var n=Se[t];return!n&&t in S?S[t](e):n.open+e+n.close},uc=/[|\\{}()[\]^$+*?.]/g,cc=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(uc,"\\$&")};function na(r){var e=function t(){return hc.apply(t,arguments)};return e._styles=r,e.__proto__=fc,e}var ia=(function(){var r={};return Se.grey=Se.gray,Object.keys(Se).forEach(function(e){Se[e].closeRe=new RegExp(cc(Se[e].close),"g"),r[e]={get:function(){return na(this._styles.concat(e))}}}),r})(),fc=ta(function(){},ia);function hc(){var r=Array.prototype.slice.call(arguments),e=r.map(function(o){return o!=null&&o.constructor===String?o:sc.inspect(o)}).join(" ");if(!S.enabled||!e)return e;for(var t=e.indexOf(`
5
- `)!=-1,n=this._styles,i=n.length;i--;){var a=Se[n[i]];e=a.open+e.replace(a.closeRe,a.open)+a.close,t&&(e=e.replace(lc,function(o){return a.close+o+a.open}))}return e}S.setTheme=function(r){if(typeof r=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in r)(function(t){S[t]=function(n){if(typeof r[t]=="object"){var i=n;for(var a in r[t])i=S[r[t][a]](i);return i}return S[r[t]](n)}})(e)};function dc(){var r={};return Object.keys(ia).forEach(function(e){r[e]={get:function(){return na([e])}}}),r}var pc=function(e,t){var n=t.split("");return n=n.map(e),n.join("")};S.trap=zi();S.zalgo=Yi();S.maps={};S.maps.america=Gi()(S);S.maps.zebra=Ji()(S);S.maps.rainbow=Xi()(S);S.maps.random=ea()(S);for(ra in S.maps)(function(r){S[r]=function(e){return pc(S.maps[r],e)}})(ra);var ra;ta(S,dc())});var zt=f((Hg,sa)=>{var gc=oa();sa.exports=gc});var la=f(Bt=>{"use strict";Bt.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Bt.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var ua=f(Yt=>{"use strict";Yt.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Yt.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var ca=f(Vt=>{"use strict";Vt.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Vt.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var fa=f(jr=>{"use strict";Object.defineProperty(jr,"cli",{value:la()});Object.defineProperty(jr,"npm",{value:ua()});Object.defineProperty(jr,"syslog",{value:ca()})});var N=f(tr=>{"use strict";Object.defineProperty(tr,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(tr,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(tr,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(tr,"configs",{value:fa()})});var kr=f((Gg,Dr)=>{"use strict";var Jt=zt(),{LEVEL:Gt,MESSAGE:Kt}=N();Jt.enabled=!0;var ha=/\s+/,Cr=class r{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let t=Object.keys(e).reduce((n,i)=>(n[i]=ha.test(e[i])?e[i].split(ha):e[i],n),{});return r.allColors=Object.assign({},r.allColors||{},t),r.allColors}addColors(e){return r.addColors(e)}colorize(e,t,n){if(typeof n>"u"&&(n=t),!Array.isArray(r.allColors[e]))return Jt[r.allColors[e]](n);for(let i=0,a=r.allColors[e].length;i<a;i++)n=Jt[r.allColors[e][i]](n);return n}transform(e,t){return t.all&&typeof e[Kt]=="string"&&(e[Kt]=this.colorize(e[Gt],e.level,e[Kt])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[Gt],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[Gt],e.level,e.message)),e}};Dr.exports=r=>new Cr(r);Dr.exports.Colorizer=Dr.exports.Format=Cr});var pa=f((Kg,da)=>{"use strict";var{Colorizer:mc}=kr();da.exports=r=>(mc.addColors(r.colors||r),r)});var ma=f((Jg,ga)=>{"use strict";var vc=J();ga.exports=vc(r=>(r.message=` ${r.message}`,r))});var ba=f((Zg,ya)=>{"use strict";var yc=J(),{LEVEL:va,MESSAGE:Zt}=N();ya.exports=yc((r,{stack:e,cause:t})=>{if(r instanceof Error){let i=Object.assign({},r,{level:r.level,[va]:r[va]||r.level,message:r.message,[Zt]:r[Zt]||r.message});return e&&(i.stack=r.stack),t&&(i.cause=r.cause),i}if(!(r.message instanceof Error))return r;let n=r.message;return Object.assign(r,n),r.message=n.message,r[Zt]=n.message,e&&(r.stack=n.stack),t&&(r.cause=n.cause),r})});var Qt=f((Xg,Ir)=>{"use strict";var{configs:bc,LEVEL:wa,MESSAGE:Xt}=N(),Nr=class r{constructor(e={levels:bc.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let t=Object.keys(e).map(n=>n.length);return Math.max(...t)}static paddingForLevel(e,t,n){let i=n+1-e.length,a=Math.floor(i/t.length);return`${t}${t.repeat(a)}`.slice(0,i)}static paddingForLevels(e,t=" "){let n=r.getLongestLevel(e);return Object.keys(e).reduce((i,a)=>(i[a]=r.paddingForLevel(a,t,n),i),{})}transform(e,t){return e.message=`${this.paddings[e[wa]]}${e.message}`,e[Xt]&&(e[Xt]=`${this.paddings[e[wa]]}${e[Xt]}`),e}};Ir.exports=r=>new Nr(r);Ir.exports.Padder=Ir.exports.Format=Nr});var _a=f((Qg,en)=>{"use strict";var{Colorizer:wc}=kr(),{Padder:_c}=Qt(),{configs:xc,MESSAGE:Ec}=N(),Fr=class{constructor(e={}){e.levels||(e.levels=xc.cli.levels),this.colorizer=new wc(e),this.padder=new _c(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[Ec]=`${e.level}:${e.message}`,e}};en.exports=r=>new Fr(r);en.exports.Format=Fr});var Ea=f((em,rn)=>{"use strict";var $c=J();function xa(r){if(r.every(Sc))return e=>{let t=e;for(let n=0;n<r.length;n++)if(t=r[n].transform(t,r[n].options),!t)return!1;return t}}function Sc(r){if(typeof r.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
6
- `));return!0}rn.exports=(...r)=>{let e=$c(xa(r)),t=e();return t.Format=e.Format,t};rn.exports.cascade=xa});var ir=f((on,Ma)=>{"use strict";var{hasOwnProperty:nr}=Object.prototype,Re=an();Re.configure=an;Re.stringify=Re;Re.default=Re;on.stringify=Re;on.configure=an;Ma.exports=Re;var Mc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function me(r){return r.length<5e3&&!Mc.test(r)?`"${r}"`:JSON.stringify(r)}function tn(r,e){if(r.length>200||e)return r.sort(e);for(let t=1;t<r.length;t++){let n=r[t],i=t;for(;i!==0&&r[i-1]>n;)r[i]=r[i-1],i--;r[i]=n}return r}var Rc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function nn(r){return Rc.call(r)!==void 0&&r.length!==0}function $a(r,e,t){r.length<t&&(t=r.length);let n=e===","?"":" ",i=`"0":${n}${r[0]}`;for(let a=1;a<t;a++)i+=`${e}"${a}":${n}${r[a]}`;return i}function qc(r){if(nr.call(r,"circularValue")){let e=r.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Oc(r){let e;if(nr.call(r,"deterministic")&&(e=r.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function Tc(r,e){let t;if(nr.call(r,e)&&(t=r[e],typeof t!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return t===void 0?!0:t}function Sa(r,e){let t;if(nr.call(r,e)){if(t=r[e],typeof t!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(t))throw new TypeError(`The "${e}" argument must be an integer`);if(t<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return t===void 0?1/0:t}function Me(r){return r===1?"1 item":`${r} items`}function Ac(r){let e=new Set;for(let t of r)(typeof t=="string"||typeof t=="number")&&e.add(String(t));return e}function Lc(r){if(nr.call(r,"strict")){let e=r.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return t=>{let n=`Object can not safely be stringified. Received type ${typeof t}`;throw typeof t!="function"&&(n+=` (${t.toString()})`),new Error(n)}}}function an(r){r={...r};let e=Lc(r);e&&(r.bigint===void 0&&(r.bigint=!1),"circularValue"in r||(r.circularValue=Error));let t=qc(r),n=Tc(r,"bigint"),i=Oc(r),a=typeof i=="function"?i:void 0,o=Sa(r,"maximumDepth"),s=Sa(r,"maximumBreadth");function l(v,c,m,_,E,R){let w=c[v];switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(v)),w=_.call(c,v,w),typeof w){case"string":return me(w);case"object":{if(w===null)return"null";if(m.indexOf(w)!==-1)return t;let M="",P=",",j=R;if(Array.isArray(w)){if(w.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(w),E!==""&&(R+=E,M+=`
7
- ${R}`,P=`,
8
- ${R}`);let W=Math.min(w.length,s),X=0;for(;X<W-1;X++){let Ne=l(String(X),w,m,_,E,R);M+=Ne!==void 0?Ne:"null",M+=P}let Q=l(String(X),w,m,_,E,R);if(M+=Q!==void 0?Q:"null",w.length-1>s){let Ne=w.length-s-1;M+=`${P}"... ${Me(Ne)} not stringified"`}return E!==""&&(M+=`
9
- ${j}`),m.pop(),`[${M}]`}let T=Object.keys(w),C=T.length;if(C===0)return"{}";if(o<m.length+1)return'"[Object]"';let q="",H="";E!==""&&(R+=E,P=`,
10
- ${R}`,q=" ");let Y=Math.min(C,s);i&&!nn(w)&&(T=tn(T,a)),m.push(w);for(let W=0;W<Y;W++){let X=T[W],Q=l(X,w,m,_,E,R);Q!==void 0&&(M+=`${H}${me(X)}:${q}${Q}`,H=P)}if(C>s){let W=C-s;M+=`${H}"...":${q}"${Me(W)} not stringified"`,H=P}return E!==""&&H.length>1&&(M=`
4
+ `),Error.captureStackTrace(this,t)}};Mi.exports=t=>{if(t.length>2)throw new Dr(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var qi=f((Q0,Ti)=>{var Oi={};Ti.exports=Oi;var Ri={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],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],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Ri).forEach(function(t){var e=Ri[t],r=Oi[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var Li=f((eg,Ai)=>{"use strict";Ai.exports=function(t,e){e=e||process.argv||[];var r=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(n+t);return i!==-1&&(r===-1?!0:i<r)}});var Ni=f((tg,ji)=>{"use strict";var Mu=require("os"),ie=Li(),K=process.env,Fe=void 0;ie("no-color")||ie("no-colors")||ie("color=false")?Fe=!1:(ie("color")||ie("colors")||ie("color=true")||ie("color=always"))&&(Fe=!0);"FORCE_COLOR"in K&&(Fe=K.FORCE_COLOR.length===0||parseInt(K.FORCE_COLOR,10)!==0);function Ru(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ou(t){if(Fe===!1)return 0;if(ie("color=16m")||ie("color=full")||ie("color=truecolor"))return 3;if(ie("color=256"))return 2;if(t&&!t.isTTY&&Fe!==!0)return 0;var e=Fe?1:0;if(process.platform==="win32"){var r=Mu.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 K)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in K})||K.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in K){var n=parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(K.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM)||"COLORTERM"in K?1:(K.TERM==="dumb",e)}function kr(t){var e=Ou(t);return Ru(e)}ji.exports={supportsColor:kr,stdout:kr(process.stdout),stderr:kr(process.stderr)}});var Ci=f((rg,Pi)=>{Pi.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=i[o]||[" "],a=Math.floor(Math.random()*s.length);typeof i[o]<"u"?n+=i[o][a]:n+=o}),n}});var ki=f((ng,Di)=>{Di.exports=function(e,r){e=e||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function o(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return i.filter(function(p){u=p===l}),u}function a(l,u){var p="",g,h;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(h in l)if(!s(h)){switch(p=p+l[h],g={up:0,down:0,mid:0},u.size){case"mini":g.up=o(8),g.mid=o(2),g.down=o(8);break;case"maxi":g.up=o(16)+3,g.mid=o(4)+1,g.down=o(64)+3;break;default:g.up=o(8)+1,g.mid=o(6)/2,g.down=o(8)+1;break}var b=["up","mid","down"];for(var c in b)for(var y=b[c],w=0;w<=g[y];w++)u[y]&&(p=p+n[y][o(n[y].length)])}return p}return a(e,r)}});var Fi=f((ig,Ii)=>{Ii.exports=function(t){return function(e,r,n){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var Ui=f((og,Hi)=>{Hi.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var Bi=f((sg,Wi)=>{Wi.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,i){return r===" "?r:t[e[n++%e.length]](r)}}});var Yi=f((ag,zi)=>{zi.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return r===" "?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var Xi=f((ug,Zi)=>{var S={};Zi.exports=S;S.themes={};var Tu=require("util"),Me=S.styles=qi(),Gi=Object.defineProperties,qu=new RegExp(/[\r\n]+/g);S.supportsColor=Ni().supportsColor;typeof S.enabled>"u"&&(S.enabled=S.supportsColor()!==!1);S.enable=function(){S.enabled=!0};S.disable=function(){S.enabled=!1};S.stripColors=S.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var lg=S.stylize=function(e,r){if(!S.enabled)return e+"";var n=Me[r];return!n&&r in S?S[r](e):n.open+e+n.close},Au=/[|\\{}()[\]^$+*?.]/g,Lu=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(Au,"\\$&")};function Ki(t){var e=function r(){return Nu.apply(r,arguments)};return e._styles=t,e.__proto__=ju,e}var Ji=(function(){var t={};return Me.grey=Me.gray,Object.keys(Me).forEach(function(e){Me[e].closeRe=new RegExp(Lu(Me[e].close),"g"),t[e]={get:function(){return Ki(this._styles.concat(e))}}}),t})(),ju=Gi(function(){},Ji);function Nu(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:Tu.inspect(s)}).join(" ");if(!S.enabled||!e)return e;for(var r=e.indexOf(`
5
+ `)!=-1,n=this._styles,i=n.length;i--;){var o=Me[n[i]];e=o.open+e.replace(o.closeRe,o.open)+o.close,r&&(e=e.replace(qu,function(s){return o.close+s+o.open}))}return e}S.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(r){S[r]=function(n){if(typeof t[r]=="object"){var i=n;for(var o in t[r])i=S[t[r][o]](i);return i}return S[t[r]](n)}})(e)};function Pu(){var t={};return Object.keys(Ji).forEach(function(e){t[e]={get:function(){return Ki([e])}}}),t}var Cu=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};S.trap=Ci();S.zalgo=ki();S.maps={};S.maps.america=Fi()(S);S.maps.zebra=Ui()(S);S.maps.rainbow=Bi()(S);S.maps.random=Yi()(S);for(Vi in S.maps)(function(t){S[t]=function(e){return Cu(S.maps[t],e)}})(Vi);var Vi;Gi(S,Pu())});var Ir=f((cg,Qi)=>{var Du=Xi();Qi.exports=Du});var eo=f(Fr=>{"use strict";Fr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Fr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var to=f(Hr=>{"use strict";Hr.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Hr.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var ro=f(Ur=>{"use strict";Ur.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Ur.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var no=f(jt=>{"use strict";Object.defineProperty(jt,"cli",{value:eo()});Object.defineProperty(jt,"npm",{value:to()});Object.defineProperty(jt,"syslog",{value:ro()})});var k=f(nt=>{"use strict";Object.defineProperty(nt,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(nt,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(nt,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(nt,"configs",{value:no()})});var Ct=f((mg,Pt)=>{"use strict";var zr=Ir(),{LEVEL:Wr,MESSAGE:Br}=k();zr.enabled=!0;var io=/\s+/,Nt=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let r=Object.keys(e).reduce((n,i)=>(n[i]=io.test(e[i])?e[i].split(io):e[i],n),{});return t.allColors=Object.assign({},t.allColors||{},r),t.allColors}addColors(e){return t.addColors(e)}colorize(e,r,n){if(typeof n>"u"&&(n=r),!Array.isArray(t.allColors[e]))return zr[t.allColors[e]](n);for(let i=0,o=t.allColors[e].length;i<o;i++)n=zr[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[Br]=="string"&&(e[Br]=this.colorize(e[Wr],e.level,e[Br])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[Wr],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[Wr],e.level,e.message)),e}};Pt.exports=t=>new Nt(t);Pt.exports.Colorizer=Pt.exports.Format=Nt});var so=f((yg,oo)=>{"use strict";var{Colorizer:ku}=Ct();oo.exports=t=>(ku.addColors(t.colors||t),t)});var lo=f((bg,ao)=>{"use strict";var Iu=Z();ao.exports=Iu(t=>(t.message=` ${t.message}`,t))});var fo=f((vg,co)=>{"use strict";var Fu=Z(),{LEVEL:uo,MESSAGE:Yr}=k();co.exports=Fu((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[uo]:t[uo]||t.level,message:t.message,[Yr]:t[Yr]||t.message});return e&&(i.stack=t.stack),r&&(i.cause=t.cause),i}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Yr]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var Gr=f((_g,kt)=>{"use strict";var{configs:Hu,LEVEL:ho,MESSAGE:Vr}=k(),Dt=class t{constructor(e={levels:Hu.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(n=>n.length);return Math.max(...r)}static paddingForLevel(e,r,n){let i=n+1-e.length,o=Math.floor(i/r.length);return`${r}${r.repeat(o)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,o)=>(i[o]=t.paddingForLevel(o,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[ho]]}${e.message}`,e[Vr]&&(e[Vr]=`${this.paddings[e[ho]]}${e[Vr]}`),e}};kt.exports=t=>new Dt(t);kt.exports.Padder=kt.exports.Format=Dt});var po=f((wg,Kr)=>{"use strict";var{Colorizer:Uu}=Ct(),{Padder:Wu}=Gr(),{configs:Bu,MESSAGE:zu}=k(),It=class{constructor(e={}){e.levels||(e.levels=Bu.cli.levels),this.colorizer=new Uu(e),this.padder=new Wu(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[zu]=`${e.level}:${e.message}`,e}};Kr.exports=t=>new It(t);Kr.exports.Format=It});var mo=f((xg,Jr)=>{"use strict";var Yu=Z();function go(t){if(t.every(Vu))return e=>{let r=e;for(let n=0;n<t.length;n++)if(r=t[n].transform(r,t[n].options),!r)return!1;return r}}function Vu(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
6
+ `));return!0}Jr.exports=(...t)=>{let e=Yu(go(t)),r=e();return r.Format=e.Format,r};Jr.exports.cascade=go});var ot=f((en,vo)=>{"use strict";var{hasOwnProperty:it}=Object.prototype,Oe=Qr();Oe.configure=Qr;Oe.stringify=Oe;Oe.default=Oe;en.stringify=Oe;en.configure=Qr;vo.exports=Oe;var Gu=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function ye(t){return t.length<5e3&&!Gu.test(t)?`"${t}"`:JSON.stringify(t)}function Zr(t,e){if(t.length>200||e)return t.sort(e);for(let r=1;r<t.length;r++){let n=t[r],i=r;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var Ku=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Xr(t){return Ku.call(t)!==void 0&&t.length!==0}function yo(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let o=1;o<r;o++)i+=`${e}"${o}":${n}${t[o]}`;return i}function Ju(t){if(it.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Zu(t){let e;if(it.call(t,"deterministic")&&(e=t.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function Xu(t,e){let r;if(it.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}function bo(t,e){let r;if(it.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function Re(t){return t===1?"1 item":`${t} items`}function Qu(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function ec(t){if(it.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Qr(t){t={...t};let e=ec(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Ju(t),n=Xu(t,"bigint"),i=Zu(t),o=typeof i=="function"?i:void 0,s=bo(t,"maximumDepth"),a=bo(t,"maximumBreadth");function l(b,c,y,w,E,R){let _=c[b];switch(typeof _=="object"&&_!==null&&typeof _.toJSON=="function"&&(_=_.toJSON(b)),_=w.call(c,b,_),typeof _){case"string":return ye(_);case"object":{if(_===null)return"null";if(y.indexOf(_)!==-1)return r;let M="",j=",",N=R;if(Array.isArray(_)){if(_.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(_),E!==""&&(R+=E,M+=`
7
+ ${R}`,j=`,
8
+ ${R}`);let Y=Math.min(_.length,a),Q=0;for(;Q<Y-1;Q++){let ke=l(String(Q),_,y,w,E,R);M+=ke!==void 0?ke:"null",M+=j}let ee=l(String(Q),_,y,w,E,R);if(M+=ee!==void 0?ee:"null",_.length-1>a){let ke=_.length-a-1;M+=`${j}"... ${Re(ke)} not stringified"`}return E!==""&&(M+=`
9
+ ${N}`),y.pop(),`[${M}]`}let q=Object.keys(_),P=q.length;if(P===0)return"{}";if(s<y.length+1)return'"[Object]"';let O="",z="";E!==""&&(R+=E,j=`,
10
+ ${R}`,O=" ");let G=Math.min(P,a);i&&!Xr(_)&&(q=Zr(q,o)),y.push(_);for(let Y=0;Y<G;Y++){let Q=q[Y],ee=l(Q,_,y,w,E,R);ee!==void 0&&(M+=`${z}${ye(Q)}:${O}${ee}`,z=j)}if(P>a){let Y=P-a;M+=`${z}"...":${O}"${Re(Y)} not stringified"`,z=j}return E!==""&&z.length>1&&(M=`
11
11
  ${R}${M}
12
- ${j}`),m.pop(),`{${M}}`}case"number":return isFinite(w)?String(w):e?e(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(w);default:return e?e(w):void 0}}function u(v,c,m,_,E,R){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(v)),typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(m.indexOf(c)!==-1)return t;let w=R,M="",P=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c),E!==""&&(R+=E,M+=`
13
- ${R}`,P=`,
14
- ${R}`);let C=Math.min(c.length,s),q=0;for(;q<C-1;q++){let Y=u(String(q),c[q],m,_,E,R);M+=Y!==void 0?Y:"null",M+=P}let H=u(String(q),c[q],m,_,E,R);if(M+=H!==void 0?H:"null",c.length-1>s){let Y=c.length-s-1;M+=`${P}"... ${Me(Y)} not stringified"`}return E!==""&&(M+=`
15
- ${w}`),m.pop(),`[${M}]`}m.push(c);let j="";E!==""&&(R+=E,P=`,
16
- ${R}`,j=" ");let T="";for(let C of _){let q=u(C,c[C],m,_,E,R);q!==void 0&&(M+=`${T}${me(C)}:${j}${q}`,T=P)}return E!==""&&T.length>1&&(M=`
12
+ ${N}`),y.pop(),`{${M}}`}case"number":return isFinite(_)?String(_):e?e(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(_);default:return e?e(_):void 0}}function u(b,c,y,w,E,R){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(b)),typeof c){case"string":return ye(c);case"object":{if(c===null)return"null";if(y.indexOf(c)!==-1)return r;let _=R,M="",j=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(c),E!==""&&(R+=E,M+=`
13
+ ${R}`,j=`,
14
+ ${R}`);let P=Math.min(c.length,a),O=0;for(;O<P-1;O++){let G=u(String(O),c[O],y,w,E,R);M+=G!==void 0?G:"null",M+=j}let z=u(String(O),c[O],y,w,E,R);if(M+=z!==void 0?z:"null",c.length-1>a){let G=c.length-a-1;M+=`${j}"... ${Re(G)} not stringified"`}return E!==""&&(M+=`
15
+ ${_}`),y.pop(),`[${M}]`}y.push(c);let N="";E!==""&&(R+=E,j=`,
16
+ ${R}`,N=" ");let q="";for(let P of w){let O=u(P,c[P],y,w,E,R);O!==void 0&&(M+=`${q}${ye(P)}:${N}${O}`,q=j)}return E!==""&&q.length>1&&(M=`
17
17
  ${R}${M}
18
- ${w}`),m.pop(),`{${M}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function p(v,c,m,_,E){switch(typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return p(v,c,m,_,E);if(c===null)return"null"}if(m.indexOf(c)!==-1)return t;let R=E;if(Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c),E+=_;let q=`
19
- ${E}`,H=`,
20
- ${E}`,Y=Math.min(c.length,s),W=0;for(;W<Y-1;W++){let Q=p(String(W),c[W],m,_,E);q+=Q!==void 0?Q:"null",q+=H}let X=p(String(W),c[W],m,_,E);if(q+=X!==void 0?X:"null",c.length-1>s){let Q=c.length-s-1;q+=`${H}"... ${Me(Q)} not stringified"`}return q+=`
21
- ${R}`,m.pop(),`[${q}]`}let w=Object.keys(c),M=w.length;if(M===0)return"{}";if(o<m.length+1)return'"[Object]"';E+=_;let P=`,
22
- ${E}`,j="",T="",C=Math.min(M,s);nn(c)&&(j+=$a(c,P,s),w=w.slice(c.length),C-=c.length,T=P),i&&(w=tn(w,a)),m.push(c);for(let q=0;q<C;q++){let H=w[q],Y=p(H,c[H],m,_,E);Y!==void 0&&(j+=`${T}${me(H)}: ${Y}`,T=P)}if(M>s){let q=M-s;j+=`${T}"...": "${Me(q)} not stringified"`,T=P}return T!==""&&(j=`
23
- ${E}${j}
24
- ${R}`),m.pop(),`{${j}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function g(v,c,m){switch(typeof c){case"string":return me(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return g(v,c,m);if(c===null)return"null"}if(m.indexOf(c)!==-1)return t;let _="",E=c.length!==void 0;if(E&&Array.isArray(c)){if(c.length===0)return"[]";if(o<m.length+1)return'"[Array]"';m.push(c);let j=Math.min(c.length,s),T=0;for(;T<j-1;T++){let q=g(String(T),c[T],m);_+=q!==void 0?q:"null",_+=","}let C=g(String(T),c[T],m);if(_+=C!==void 0?C:"null",c.length-1>s){let q=c.length-s-1;_+=`,"... ${Me(q)} not stringified"`}return m.pop(),`[${_}]`}let R=Object.keys(c),w=R.length;if(w===0)return"{}";if(o<m.length+1)return'"[Object]"';let M="",P=Math.min(w,s);E&&nn(c)&&(_+=$a(c,",",s),R=R.slice(c.length),P-=c.length,M=","),i&&(R=tn(R,a)),m.push(c);for(let j=0;j<P;j++){let T=R[j],C=g(T,c[T],m);C!==void 0&&(_+=`${M}${me(T)}:${C}`,M=",")}if(w>s){let j=w-s;_+=`${M}"...":"${Me(j)} not stringified"`}return m.pop(),`{${_}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function h(v,c,m){if(arguments.length>1){let _="";if(typeof m=="number"?_=" ".repeat(Math.min(m,10)):typeof m=="string"&&(_=m.slice(0,10)),c!=null){if(typeof c=="function")return l("",{"":v},[],c,_,"");if(Array.isArray(c))return u("",v,[],Ac(c),_,"")}if(_.length!==0)return p("",v,[],_,"")}return g("",v,[])}return h}});var sn=f((rm,Ra)=>{"use strict";var Pc=J(),{MESSAGE:jc}=N(),Cc=ir();function Dc(r,e){return typeof e=="bigint"?e.toString():e}Ra.exports=Pc((r,e)=>{let t=Cc.configure(e);return r[jc]=t(r,e.replacer||Dc,e.space),r})});var Oa=f((tm,qa)=>{"use strict";var kc=J();qa.exports=kc((r,e)=>e.message?(r.message=`[${e.label}] ${r.message}`,r):(r.label=e.label,r))});var Aa=f((nm,Ta)=>{"use strict";var Nc=J(),{MESSAGE:Ic}=N(),Fc=ir();Ta.exports=Nc(r=>{let e={};return r.message&&(e["@message"]=r.message,delete r.message),r.timestamp&&(e["@timestamp"]=r.timestamp,delete r.timestamp),e["@fields"]=r,r[Ic]=Fc(e),r})});var Pa=f((im,La)=>{"use strict";var Uc=J();function Hc(r,e,t){let n=e.reduce((a,o)=>(a[o]=r[o],delete r[o],a),{}),i=Object.keys(r).reduce((a,o)=>(a[o]=r[o],delete r[o],a),{});return Object.assign(r,n,{[t]:i}),r}function Wc(r,e,t){return r[t]=e.reduce((n,i)=>(n[i]=r[i],delete r[i],n),{}),r}La.exports=Uc((r,e={})=>{let t="metadata";e.key&&(t=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?Hc(r,n,t):e.fillWith?Wc(r,e.fillWith,t):r})});var Ca=f((am,ja)=>{var Ue=1e3,He=Ue*60,We=He*60,qe=We*24,zc=qe*7,Bc=qe*365.25;ja.exports=function(r,e){e=e||{};var t=typeof r;if(t==="string"&&r.length>0)return Yc(r);if(t==="number"&&isFinite(r))return e.long?Gc(r):Vc(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function Yc(r){if(r=String(r),!(r.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(r);if(e){var t=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Bc;case"weeks":case"week":case"w":return t*zc;case"days":case"day":case"d":return t*qe;case"hours":case"hour":case"hrs":case"hr":case"h":return t*We;case"minutes":case"minute":case"mins":case"min":case"m":return t*He;case"seconds":case"second":case"secs":case"sec":case"s":return t*Ue;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Vc(r){var e=Math.abs(r);return e>=qe?Math.round(r/qe)+"d":e>=We?Math.round(r/We)+"h":e>=He?Math.round(r/He)+"m":e>=Ue?Math.round(r/Ue)+"s":r+"ms"}function Gc(r){var e=Math.abs(r);return e>=qe?Ur(r,e,qe,"day"):e>=We?Ur(r,e,We,"hour"):e>=He?Ur(r,e,He,"minute"):e>=Ue?Ur(r,e,Ue,"second"):r+" ms"}function Ur(r,e,t,n){var i=e>=t*1.5;return Math.round(r/t)+" "+n+(i?"s":"")}});var ka=f((ar,Da)=>{"use strict";var Kc=J(),Jc=Ca();Da.exports=Kc(r=>{let e=+new Date;return ar.diff=e-(ar.prevTime||e),ar.prevTime=e,r.ms=`+${Jc(ar.diff)}`,r})});var Fa=f((om,Ia)=>{"use strict";var Zc=require("util").inspect,Xc=J(),{LEVEL:Qc,MESSAGE:Na,SPLAT:ef}=N();Ia.exports=Xc((r,e={})=>{let t=Object.assign({},r);return delete t[Qc],delete t[Na],delete t[ef],r[Na]=Zc(t,!1,e.depth||null,e.colorize),r})});var Ua=f((sm,Wr)=>{"use strict";var{MESSAGE:rf}=N(),Hr=class{constructor(e){this.template=e}transform(e){return e[rf]=this.template(e),e}};Wr.exports=r=>new Hr(r);Wr.exports.Printf=Wr.exports.Format=Hr});var za=f((lm,Wa)=>{"use strict";var tf=J(),{MESSAGE:Ha}=N(),nf=ir();Wa.exports=tf(r=>{let e=nf(Object.assign({},r,{level:void 0,message:void 0,splat:void 0})),t=r.padding&&r.padding[r.level]||"";return e!=="{}"?r[Ha]=`${r.level}:${t} ${r.message} ${e}`:r[Ha]=`${r.level}:${t} ${r.message}`,r})});var Va=f((um,Ya)=>{"use strict";var af=require("util"),{SPLAT:Ba}=N(),of=/%[scdjifoO%]/g,sf=/%%/g,ln=class{constructor(e){this.options=e}_splat(e,t){let n=e.message,i=e[Ba]||e.splat||[],a=n.match(sf),o=a&&a.length||0,l=t.length-o-i.length,u=l<0?i.splice(l,-1*l):[],p=u.length;if(p)for(let g=0;g<p;g++)Object.assign(e,u[g]);return e.message=af.format(n,...i),e}transform(e){let t=e.message,n=e[Ba]||e.splat;if(!n||!n.length)return e;let i=t&&t.match&&t.match(of);if(!i&&(n||n.length)){let a=n.length>1?n.splice(0):n,o=a.length;if(o)for(let s=0;s<o;s++)Object.assign(e,a[s]);return e}return i?this._splat(e,i):e}};Ya.exports=r=>new ln(r)});var Ka=f((zr,Ga)=>{(function(r,e){typeof zr=="object"&&typeof Ga<"u"?e(zr):typeof define=="function"&&define.amd?define(["exports"],e):e(r.fecha={})})(zr,(function(r){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,t="\\d\\d?",n="\\d\\d",i="\\d{3}",a="\\d{4}",o="[^\\s]+",s=/\[([^]*?)\]/gm;function l(d,y){for(var L=[],K=0,x=d.length;K<x;K++)L.push(d[K].substr(0,y));return L}var u=function(d){return function(y,L){var K=L[d].map(function(le){return le.toLowerCase()}),x=K.indexOf(y.toLowerCase());return x>-1?x:null}};function p(d){for(var y=[],L=1;L<arguments.length;L++)y[L-1]=arguments[L];for(var K=0,x=y;K<x.length;K++){var le=x[K];for(var $e in le)d[$e]=le[$e]}return d}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"],v=l(h,3),c=l(g,3),m={dayNamesShort:c,dayNames:g,monthNamesShort:v,monthNames:h,amPm:["am","pm"],DoFn:function(d){return d+["th","st","nd","rd"][d%10>3?0:(d-d%10!==10?1:0)*d%10]}},_=p({},m),E=function(d){return _=p(_,d)},R=function(d){return d.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(d,y){for(y===void 0&&(y=2),d=String(d);d.length<y;)d="0"+d;return d},M={D:function(d){return String(d.getDate())},DD:function(d){return w(d.getDate())},Do:function(d,y){return y.DoFn(d.getDate())},d:function(d){return String(d.getDay())},dd:function(d){return w(d.getDay())},ddd:function(d,y){return y.dayNamesShort[d.getDay()]},dddd:function(d,y){return y.dayNames[d.getDay()]},M:function(d){return String(d.getMonth()+1)},MM:function(d){return w(d.getMonth()+1)},MMM:function(d,y){return y.monthNamesShort[d.getMonth()]},MMMM:function(d,y){return y.monthNames[d.getMonth()]},YY:function(d){return w(String(d.getFullYear()),4).substr(2)},YYYY:function(d){return w(d.getFullYear(),4)},h:function(d){return String(d.getHours()%12||12)},hh:function(d){return w(d.getHours()%12||12)},H:function(d){return String(d.getHours())},HH:function(d){return w(d.getHours())},m:function(d){return String(d.getMinutes())},mm:function(d){return w(d.getMinutes())},s:function(d){return String(d.getSeconds())},ss:function(d){return w(d.getSeconds())},S:function(d){return String(Math.round(d.getMilliseconds()/100))},SS:function(d){return w(Math.round(d.getMilliseconds()/10),2)},SSS:function(d){return w(d.getMilliseconds(),3)},a:function(d,y){return d.getHours()<12?y.amPm[0]:y.amPm[1]},A:function(d,y){return d.getHours()<12?y.amPm[0].toUpperCase():y.amPm[1].toUpperCase()},ZZ:function(d){var y=d.getTimezoneOffset();return(y>0?"-":"+")+w(Math.floor(Math.abs(y)/60)*100+Math.abs(y)%60,4)},Z:function(d){var y=d.getTimezoneOffset();return(y>0?"-":"+")+w(Math.floor(Math.abs(y)/60),2)+":"+w(Math.abs(y)%60,2)}},P=function(d){return+d-1},j=[null,t],T=[null,o],C=["isPm",o,function(d,y){var L=d.toLowerCase();return L===y.amPm[0]?0:L===y.amPm[1]?1:null}],q=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(d){var y=(d+"").match(/([+-]|\d\d)/gi);if(y){var L=+y[1]*60+parseInt(y[2],10);return y[0]==="+"?L:-L}return 0}],H={D:["day",t],DD:["day",n],Do:["day",t+o,function(d){return parseInt(d,10)}],M:["month",t,P],MM:["month",n,P],YY:["year",n,function(d){var y=new Date,L=+(""+y.getFullYear()).substr(0,2);return+(""+(+d>68?L-1:L)+d)}],h:["hour",t,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",t],HH:["hour",n],m:["minute",t],mm:["minute",n],s:["second",t],ss:["second",n],YYYY:["year",a],S:["millisecond","\\d",function(d){return+d*100}],SS:["millisecond",n,function(d){return+d*10}],SSS:["millisecond",i],d:j,dd:j,ddd:T,dddd:T,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:C,A:C,ZZ:q,Z:q},Y={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},W=function(d){return p(Y,d)},X=function(d,y,L){if(y===void 0&&(y=Y.default),L===void 0&&(L={}),typeof d=="number"&&(d=new Date(d)),Object.prototype.toString.call(d)!=="[object Date]"||isNaN(d.getTime()))throw new Error("Invalid Date pass to format");y=Y[y]||y;var K=[];y=y.replace(s,function(le,$e){return K.push($e),"@@@"});var x=p(p({},_),L);return y=y.replace(e,function(le){return M[le](d,x)}),y.replace(/@@@/g,function(){return K.shift()})};function Q(d,y,L){if(L===void 0&&(L={}),typeof y!="string")throw new Error("Invalid format in fecha parse");if(y=Y[y]||y,d.length>1e3)return null;var K=new Date,x={year:K.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},le=[],$e=[],er=y.replace(s,function(rr,Ie){return $e.push(R(Ie)),"@@@"}),Or={},$i={};er=R(er).replace(e,function(rr){var Ie=H[rr],Ft=Ie[0],Du=Ie[1],qi=Ie[3];if(Or[Ft])throw new Error("Invalid format. "+Ft+" specified twice in format");return Or[Ft]=!0,qi&&($i[qi]=!0),le.push(Ie),"("+Du+")"}),Object.keys($i).forEach(function(rr){if(!Or[rr])throw new Error("Invalid format. "+rr+" is required in specified format")}),er=er.replace(/@@@/g,function(){return $e.shift()});var Tr=d.match(new RegExp(er,"i"));if(!Tr)return null;for(var Pu=p(p({},_),L),ie=1;ie<Tr.length;ie++){var Si=le[ie-1],ju=Si[0],Mi=Si[2],Ri=Mi?Mi(Tr[ie],Pu):+Tr[ie];if(Ri==null)return null;x[ju]=Ri}x.isPm===1&&x.hour!=null&&+x.hour!=12?x.hour=+x.hour+12:x.isPm===0&&+x.hour==12&&(x.hour=0);var Ar;if(x.timezoneOffset==null){Ar=new Date(x.year,x.month,x.day,x.hour,x.minute,x.second,x.millisecond);for(var Lr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ie=0,Cu=Lr.length;ie<Cu;ie++)if(Or[Lr[ie][0]]&&x[Lr[ie][0]]!==Ar[Lr[ie][1]]())return null}else if(Ar=new Date(Date.UTC(x.year,x.month,x.day,x.hour,x.minute-x.timezoneOffset,x.second,x.millisecond)),x.month>11||x.month<0||x.day>31||x.day<1||x.hour>23||x.hour<0||x.minute>59||x.minute<0||x.second>59||x.second<0)return null;return Ar}var Ne={format:X,parse:Q,defaultI18n:m,setGlobalDateI18n:E,setGlobalDateMasks:W};r.assign=p,r.default=Ne,r.format=X,r.parse=Q,r.defaultI18n=m,r.setGlobalDateI18n=E,r.setGlobalDateMasks=W,Object.defineProperty(r,"__esModule",{value:!0})}))});var Za=f((cm,Ja)=>{"use strict";var lf=Ka(),uf=J();Ja.exports=uf((r,e={})=>(e.format&&(r.timestamp=typeof e.format=="function"?e.format():lf.format(new Date,e.format)),r.timestamp||(r.timestamp=new Date().toISOString()),e.alias&&(r[e.alias]=r.timestamp),r))});var Qa=f((fm,Xa)=>{"use strict";var un=zt(),cf=J(),{MESSAGE:cn}=N();Xa.exports=cf((r,e)=>(e.level!==!1&&(r.level=un.strip(r.level)),e.message!==!1&&(r.message=un.strip(String(r.message))),e.raw!==!1&&r[cn]&&(r[cn]=un.strip(String(r[cn]))),r))});var hn=f(fn=>{"use strict";var ff=fn.format=J();fn.levels=pa();function z(r,e){Object.defineProperty(ff,r,{get(){return e()},configurable:!0})}z("align",function(){return ma()});z("errors",function(){return ba()});z("cli",function(){return _a()});z("combine",function(){return Ea()});z("colorize",function(){return kr()});z("json",function(){return sn()});z("label",function(){return Oa()});z("logstash",function(){return Aa()});z("metadata",function(){return Pa()});z("ms",function(){return ka()});z("padLevels",function(){return Qt()});z("prettyPrint",function(){return Fa()});z("printf",function(){return Ua()});z("simple",function(){return za()});z("splat",function(){return Va()});z("timestamp",function(){return Za()});z("uncolorize",function(){return Qa()})});var dn=f(Br=>{"use strict";var{format:eo}=require("util");Br.warn={deprecated(r){return()=>{throw new Error(eo("{ %s } was removed in winston@3.0.0.",r))}},useFormat(r){return()=>{throw new Error([eo("{ %s } was removed in winston@3.0.0.",r),"Use a custom winston.format = winston.format(function) instead."].join(`
25
- `))}},forFunctions(r,e,t){t.forEach(n=>{r[n]=Br.warn[e](n)})},forProperties(r,e,t){t.forEach(n=>{let i=Br.warn[e](n);Object.defineProperty(r,n,{get:i,set:i})})}}});var ro=f((pm,hf)=>{hf.exports={name:"winston",description:"A logger for just about everything.",version:"3.17.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var no=f((gm,to)=>{to.exports=require("util").deprecate});var pn=f((mm,io)=>{io.exports=require("stream")});var mn=f((vm,oo)=>{"use strict";function df(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(gn,this,r)):process.nextTick(gn,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(a){!e&&a?t._writableState?t._writableState.errorEmitted?process.nextTick(Yr,t):(t._writableState.errorEmitted=!0,process.nextTick(ao,t,a)):process.nextTick(ao,t,a):e?(process.nextTick(Yr,t),e(a)):process.nextTick(Yr,t)}),this)}function ao(r,e){gn(r,e),Yr(r)}function Yr(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function pf(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function gn(r,e){r.emit("error",e)}function gf(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}oo.exports={destroy:df,undestroy:pf,errorOrDestroy:gf}});var ve=f((ym,uo)=>{"use strict";var lo={};function te(r,e,t){t||(t=Error);function n(a,o,s){return typeof e=="string"?e:e(a,o,s)}class i extends t{constructor(o,s,l){super(n(o,s,l))}}i.prototype.name=t.name,i.prototype.code=r,lo[r]=i}function so(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(n=>String(n)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function mf(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function vf(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function yf(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}te("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(r,e,t){let n;typeof e=="string"&&mf(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(vf(r," argument"))i=`The ${r} ${n} ${so(e,"type")}`;else{let a=yf(r,".")?"property":"argument";i=`The "${r}" ${a} ${n} ${so(e,"type")}`}return i+=`. Received type ${typeof t}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uo.exports.codes=lo});var vn=f((bm,co)=>{"use strict";var bf=ve().codes.ERR_INVALID_OPT_VALUE;function wf(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function _f(r,e,t,n){var i=wf(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?t:"highWaterMark";throw new bf(a,i)}return Math.floor(i)}return r.objectMode?16:16*1024}co.exports={getHighWaterMark:_f}});var fo=f((wm,yn)=>{typeof Object.create=="function"?yn.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:yn.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ze=f((_m,wn)=>{try{if(bn=require("util"),typeof bn.inherits!="function")throw"";wn.exports=bn.inherits}catch{wn.exports=fo()}var bn});var yo=f((xm,vo)=>{"use strict";function ho(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function po(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ho(Object(t),!0).forEach(function(n){xf(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ho(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function xf(r,e,t){return e=mo(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ef(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function go(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,mo(n.key),n)}}function $f(r,e,t){return e&&go(r.prototype,e),t&&go(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function mo(r){var e=Sf(r,"string");return typeof e=="symbol"?e:String(e)}function Sf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Mf=require("buffer"),Vr=Mf.Buffer,Rf=require("util"),_n=Rf.inspect,qf=_n&&_n.custom||"inspect";function Of(r,e,t){Vr.prototype.copy.call(r,e,t)}vo.exports=(function(){function r(){Ef(this,r),this.head=null,this.tail=null,this.length=0}return $f(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Vr.alloc(0);for(var n=Vr.allocUnsafe(t>>>0),i=this.head,a=0;i;)Of(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,a=n.data;for(t-=a.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?a+=o:a+=o.slice(0,t),t-=s,t===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(t){var n=Vr.allocUnsafe(t),i=this.head,a=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,t===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:qf,value:function(t,n){return _n(this,po(po({},n),{},{depth:0,customInspect:!1}))}}]),r})()});var _o=f((xn,wo)=>{var Gr=require("buffer"),ue=Gr.Buffer;function bo(r,e){for(var t in r)e[t]=r[t]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?wo.exports=Gr:(bo(Gr,xn),xn.Buffer=Oe);function Oe(r,e,t){return ue(r,e,t)}Oe.prototype=Object.create(ue.prototype);bo(ue,Oe);Oe.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ue(r,e,t)};Oe.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ue(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Oe.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ue(r)};Oe.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Gr.SlowBuffer(r)}});var Sn=f(Eo=>{"use strict";var $n=_o().Buffer,xo=$n.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Tf(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function Af(r){var e=Tf(r);if(typeof e!="string"&&($n.isEncoding===xo||!xo(r)))throw new Error("Unknown encoding: "+r);return e||r}Eo.StringDecoder=or;function or(r){this.encoding=Af(r);var e;switch(this.encoding){case"utf16le":this.text=kf,this.end=Nf,e=4;break;case"utf8":this.fillLast=jf,e=4;break;case"base64":this.text=If,this.end=Ff,e=3;break;default:this.write=Uf,this.end=Hf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$n.allocUnsafe(e)}or.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};or.prototype.end=Df;or.prototype.text=Cf;or.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function En(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Lf(r,e,t){var n=e.length-1;if(n<t)return 0;var i=En(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=En(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Pf(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function jf(r){var e=this.lastTotal-this.lastNeed,t=Pf(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function Cf(r,e){var t=Lf(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function Df(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function kf(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function Nf(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function If(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Ff(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Uf(r){return r.toString(this.encoding)}function Hf(r){return r&&r.length?this.write(r):""}});var Kr=f(($m,Mo)=>{"use strict";var $o=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function Wf(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function zf(){}function Bf(r){return r.setHeader&&typeof r.abort=="function"}function So(r,e,t){if(typeof e=="function")return So(r,null,e);e||(e={}),t=Wf(t||zf);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,a=function(){r.writable||s()},o=r._writableState&&r._writableState.finished,s=function(){i=!1,o=!0,n||t.call(r)},l=r._readableState&&r._readableState.endEmitted,u=function(){n=!1,l=!0,i||t.call(r)},p=function(c){t.call(r,c)},g=function(){var c;if(n&&!l)return(!r._readableState||!r._readableState.ended)&&(c=new $o),t.call(r,c);if(i&&!o)return(!r._writableState||!r._writableState.ended)&&(c=new $o),t.call(r,c)},h=function(){r.req.on("finish",s)};return Bf(r)?(r.on("complete",s),r.on("abort",g),r.req?h():r.on("request",h)):i&&!r._writableState&&(r.on("end",a),r.on("close",a)),r.on("end",u),r.on("finish",s),e.error!==!1&&r.on("error",p),r.on("close",g),function(){r.removeListener("complete",s),r.removeListener("abort",g),r.removeListener("request",h),r.req&&r.req.removeListener("finish",s),r.removeListener("end",a),r.removeListener("close",a),r.removeListener("finish",s),r.removeListener("end",u),r.removeListener("error",p),r.removeListener("close",g)}}Mo.exports=So});var qo=f((Sm,Ro)=>{"use strict";var Jr;function ye(r,e,t){return e=Yf(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Yf(r){var e=Vf(r,"string");return typeof e=="symbol"?e:String(e)}function Vf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Gf=Kr(),be=Symbol("lastResolve"),Te=Symbol("lastReject"),sr=Symbol("error"),Zr=Symbol("ended"),Ae=Symbol("lastPromise"),Mn=Symbol("handlePromise"),Le=Symbol("stream");function we(r,e){return{value:r,done:e}}function Kf(r){var e=r[be];if(e!==null){var t=r[Le].read();t!==null&&(r[Ae]=null,r[be]=null,r[Te]=null,e(we(t,!1)))}}function Jf(r){process.nextTick(Kf,r)}function Zf(r,e){return function(t,n){r.then(function(){if(e[Zr]){t(we(void 0,!0));return}e[Mn](t,n)},n)}}var Xf=Object.getPrototypeOf(function(){}),Qf=Object.setPrototypeOf((Jr={get stream(){return this[Le]},next:function(){var e=this,t=this[sr];if(t!==null)return Promise.reject(t);if(this[Zr])return Promise.resolve(we(void 0,!0));if(this[Le].destroyed)return new Promise(function(o,s){process.nextTick(function(){e[sr]?s(e[sr]):o(we(void 0,!0))})});var n=this[Ae],i;if(n)i=new Promise(Zf(n,this));else{var a=this[Le].read();if(a!==null)return Promise.resolve(we(a,!1));i=new Promise(this[Mn])}return this[Ae]=i,i}},ye(Jr,Symbol.asyncIterator,function(){return this}),ye(Jr,"return",function(){var e=this;return new Promise(function(t,n){e[Le].destroy(null,function(i){if(i){n(i);return}t(we(void 0,!0))})})}),Jr),Xf),eh=function(e){var t,n=Object.create(Qf,(t={},ye(t,Le,{value:e,writable:!0}),ye(t,be,{value:null,writable:!0}),ye(t,Te,{value:null,writable:!0}),ye(t,sr,{value:null,writable:!0}),ye(t,Zr,{value:e._readableState.endEmitted,writable:!0}),ye(t,Mn,{value:function(a,o){var s=n[Le].read();s?(n[Ae]=null,n[be]=null,n[Te]=null,a(we(s,!1))):(n[be]=a,n[Te]=o)},writable:!0}),t));return n[Ae]=null,Gf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[Te];a!==null&&(n[Ae]=null,n[be]=null,n[Te]=null,a(i)),n[sr]=i;return}var o=n[be];o!==null&&(n[Ae]=null,n[be]=null,n[Te]=null,o(we(void 0,!0))),n[Zr]=!0}),e.on("readable",Jf.bind(null,n)),n};Ro.exports=eh});var Lo=f((Mm,Ao)=>{"use strict";function Oo(r,e,t,n,i,a,o){try{var s=r[a](o),l=s.value}catch(u){t(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function rh(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(l){Oo(a,n,i,o,s,"next",l)}function s(l){Oo(a,n,i,o,s,"throw",l)}o(void 0)})}}function To(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function th(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?To(Object(t),!0).forEach(function(n){nh(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):To(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function nh(r,e,t){return e=ih(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ih(r){var e=ah(r,"string");return typeof e=="symbol"?e:String(e)}function ah(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var oh=ve().codes.ERR_INVALID_ARG_TYPE;function sh(r,e,t){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new oh("iterable",["Iterable"],e);var i=new r(th({objectMode:!0},t)),a=!1;i._read=function(){a||(a=!0,o())};function o(){return s.apply(this,arguments)}function s(){return s=rh(function*(){try{var l=yield n.next(),u=l.value,p=l.done;p?i.push(null):i.push(yield u)?o():a=!1}catch(g){i.destroy(g)}}),s.apply(this,arguments)}return i}Ao.exports=sh});var Dn=f((qm,Ho)=>{"use strict";Ho.exports=O;var Be;O.ReadableState=Do;var Rm=require("events").EventEmitter,Co=function(e,t){return e.listeners(t).length},ur=pn(),Xr=require("buffer").Buffer,lh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function uh(r){return Xr.from(r)}function ch(r){return Xr.isBuffer(r)||r instanceof lh}var Rn=require("util"),$;Rn&&Rn.debuglog?$=Rn.debuglog("stream"):$=function(){};var fh=yo(),jn=mn(),hh=vn(),dh=hh.getHighWaterMark,Qr=ve().codes,ph=Qr.ERR_INVALID_ARG_TYPE,gh=Qr.ERR_STREAM_PUSH_AFTER_EOF,mh=Qr.ERR_METHOD_NOT_IMPLEMENTED,vh=Qr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ye,qn,On;ze()(O,ur);var lr=jn.errorOrDestroy,Tn=["error","close","destroy","pause","resume"];function yh(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function Do(r,e,t){Be=Be||Pe(),r=r||{},typeof t!="boolean"&&(t=e instanceof Be),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=dh(this,r,"readableHighWaterMark",t),this.buffer=new fh,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(Ye||(Ye=Sn().StringDecoder),this.decoder=new Ye(r.encoding),this.encoding=r.encoding)}function O(r){if(Be=Be||Pe(),!(this instanceof O))return new O(r);var e=this instanceof Be;this._readableState=new Do(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),ur.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=jn.destroy;O.prototype._undestroy=jn.undestroy;O.prototype._destroy=function(r,e){e(r)};O.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Xr.from(r,e),e=""),n=!0),ko(this,r,e,!1,n)};O.prototype.unshift=function(r){return ko(this,r,null,!0,!1)};function ko(r,e,t,n,i){$("readableAddChunk",e);var a=r._readableState;if(e===null)a.reading=!1,_h(r,a);else{var o;if(i||(o=bh(a,e)),o)lr(r,o);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Xr.prototype&&(e=uh(e)),n)a.endEmitted?lr(r,new vh):An(r,a,e,!0);else if(a.ended)lr(r,new gh);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!t?(e=a.decoder.write(e),a.objectMode||e.length!==0?An(r,a,e,!1):Pn(r,a)):An(r,a,e,!1)}else n||(a.reading=!1,Pn(r,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function An(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&et(r)),Pn(r,e)}function bh(r,e){var t;return!ch(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new ph("chunk",["string","Buffer","Uint8Array"],e)),t}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(r){Ye||(Ye=Sn().StringDecoder);var e=new Ye(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Po=1073741824;function wh(r){return r>=Po?r=Po:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function jo(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=wh(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(r){$("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ln(this):et(this),null;if(r=jo(r,e),r===0&&e.ended)return e.length===0&&Ln(this),null;var n=e.needReadable;$("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,$("length less than watermark",n)),e.ended||e.reading?(n=!1,$("reading or ended",n)):n&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=jo(t,e)));var i;return r>0?i=Fo(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ln(this)),i!==null&&this.emit("data",i),i};function _h(r,e){if($("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?et(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,No(r)))}}function et(r){var e=r._readableState;$("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(No,r))}function No(r){var e=r._readableState;$("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Cn(r)}function Pn(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(xh,r,e))}function xh(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if($("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}O.prototype._read=function(r){lr(this,new mh("_read()"))};O.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,$("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,a=i?s:m;n.endEmitted?process.nextTick(a):t.once("end",a),r.on("unpipe",o);function o(_,E){$("onunpipe"),_===t&&E&&E.hasUnpiped===!1&&(E.hasUnpiped=!0,p())}function s(){$("onend"),r.end()}var l=Eh(t);r.on("drain",l);var u=!1;function p(){$("cleanup"),r.removeListener("close",v),r.removeListener("finish",c),r.removeListener("drain",l),r.removeListener("error",h),r.removeListener("unpipe",o),t.removeListener("end",s),t.removeListener("end",m),t.removeListener("data",g),u=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l()}t.on("data",g);function g(_){$("ondata");var E=r.write(_);$("dest.write",E),E===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&Uo(n.pipes,r)!==-1)&&!u&&($("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function h(_){$("onerror",_),m(),r.removeListener("error",h),Co(r,"error")===0&&lr(r,_)}yh(r,"error",h);function v(){r.removeListener("finish",c),m()}r.once("close",v);function c(){$("onfinish"),r.removeListener("close",v),m()}r.once("finish",c);function m(){$("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||($("pipe resume"),t.resume()),r};function Eh(r){return function(){var t=r._readableState;$("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Co(r,"data")&&(t.flowing=!0,Cn(r))}}O.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Uo(e.pipes,r);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};O.prototype.on=function(r,e){var t=ur.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,$("on readable",n.length,n.reading),n.length?et(this):n.reading||process.nextTick($h,this)),t};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(r,e){var t=ur.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Io,this),t};O.prototype.removeAllListeners=function(r){var e=ur.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(Io,this),e};function Io(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function $h(r){$("readable nexttick read 0"),r.read(0)}O.prototype.resume=function(){var r=this._readableState;return r.flowing||($("resume"),r.flowing=!r.readableListening,Sh(this,r)),r.paused=!1,this};function Sh(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Mh,r,e))}function Mh(r,e){$("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Cn(r),e.flowing&&!e.reading&&r.read(0)}O.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Cn(r){var e=r._readableState;for($("flow",e.flowing);e.flowing&&r.read()!==null;);}O.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if($("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),r.on("data",function(o){if($("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var s=e.push(o);s||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(s){return function(){return r[s].apply(r,arguments)}})(i));for(var a=0;a<Tn.length;a++)r.on(Tn[a],this.emit.bind(this,Tn[a]));return this._read=function(o){$("wrapped _read",o),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return qn===void 0&&(qn=qo()),qn(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=Fo;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Fo(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ln(r){var e=r._readableState;$("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Rh,e,r))}function Rh(r,e){if($("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(r,e){return On===void 0&&(On=Lo()),On(O,r,e)});function Uo(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var Pe=f((Om,zo)=>{"use strict";var qh=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};zo.exports=ce;var Wo=Dn(),Nn=nt();ze()(ce,Wo);for(kn=qh(Nn.prototype),rt=0;rt<kn.length;rt++)tt=kn[rt],ce.prototype[tt]||(ce.prototype[tt]=Nn.prototype[tt]);var kn,tt,rt;function ce(r){if(!(this instanceof ce))return new ce(r);Wo.call(this,r),Nn.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Oh)))}Object.defineProperty(ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Oh(){this._writableState.ended||process.nextTick(Th,this)}function Th(r){r.end()}Object.defineProperty(ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var nt=f((Tm,Jo)=>{"use strict";Jo.exports=D;function Yo(r){var e=this;this.next=null,this.entry=null,this.finish=function(){nd(e,r)}}var Ve;D.WritableState=fr;var Ah={deprecate:no()},Vo=pn(),at=require("buffer").Buffer,Lh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ph(r){return at.from(r)}function jh(r){return at.isBuffer(r)||r instanceof Lh}var Fn=mn(),Ch=vn(),Dh=Ch.getHighWaterMark,_e=ve().codes,kh=_e.ERR_INVALID_ARG_TYPE,Nh=_e.ERR_METHOD_NOT_IMPLEMENTED,Ih=_e.ERR_MULTIPLE_CALLBACK,Fh=_e.ERR_STREAM_CANNOT_PIPE,Uh=_e.ERR_STREAM_DESTROYED,Hh=_e.ERR_STREAM_NULL_VALUES,Wh=_e.ERR_STREAM_WRITE_AFTER_END,zh=_e.ERR_UNKNOWN_ENCODING,Ge=Fn.errorOrDestroy;ze()(D,Vo);function Bh(){}function fr(r,e,t){Ve=Ve||Pe(),r=r||{},typeof t!="boolean"&&(t=e instanceof Ve),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Dh(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Xh(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Yo(this)}fr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(fr.prototype,"buffer",{get:Ah.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var it;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(it=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(e){return it.call(this,e)?!0:this!==D?!1:e&&e._writableState instanceof fr}})):it=function(e){return e instanceof this};function D(r){Ve=Ve||Pe();var e=this instanceof Ve;if(!e&&!it.call(D,this))return new D(r);this._writableState=new fr(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Vo.call(this)}D.prototype.pipe=function(){Ge(this,new Fh)};function Yh(r,e){var t=new Wh;Ge(r,t),process.nextTick(e,t)}function Vh(r,e,t,n){var i;return t===null?i=new Hh:typeof t!="string"&&!e.objectMode&&(i=new kh("chunk",["string","Buffer"],t)),i?(Ge(r,i),process.nextTick(n,i),!1):!0}D.prototype.write=function(r,e,t){var n=this._writableState,i=!1,a=!n.objectMode&&jh(r);return a&&!at.isBuffer(r)&&(r=Ph(r)),typeof e=="function"&&(t=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Bh),n.ending?Yh(this,t):(a||Vh(this,n,r,t))&&(n.pendingcb++,i=Kh(this,n,a,r,e,t)),i};D.prototype.cork=function(){this._writableState.corked++};D.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Go(this,r))};D.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new zh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Gh(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=at.from(e,t)),e}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kh(r,e,t,n,i,a){if(!t){var o=Gh(e,n,i);n!==o&&(t=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else In(r,e,!1,s,n,i,a);return l}function In(r,e,t,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Uh("write")):t?r._writev(i,e.onwrite):r._write(i,a,e.onwrite),e.sync=!1}function Jh(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(cr,r,e),r._writableState.errorEmitted=!0,Ge(r,n)):(i(n),r._writableState.errorEmitted=!0,Ge(r,n),cr(r,e))}function Zh(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Xh(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Ih;if(Zh(t),e)Jh(r,t,n,e,i);else{var a=Ko(t)||r.destroyed;!a&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Go(r,t),n?process.nextTick(Bo,r,t,a,i):Bo(r,t,a,i)}}function Bo(r,e,t,n){t||Qh(r,e),e.pendingcb--,n(),cr(r,e)}function Qh(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Go(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=t;for(var o=0,s=!0;t;)i[o]=t,t.isBuf||(s=!1),t=t.next,o+=1;i.allBuffers=s,In(r,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Yo(e),e.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,u=t.encoding,p=t.callback,g=e.objectMode?1:l.length;if(In(r,e,!1,g,l,u,p),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}D.prototype._write=function(r,e,t){t(new Nh("_write()"))};D.prototype._writev=null;D.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||td(this,n,t),this};Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ko(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function ed(r,e){r._final(function(t){e.pendingcb--,t&&Ge(r,t),e.prefinished=!0,r.emit("prefinish"),cr(r,e)})}function rd(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(ed,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function cr(r,e){var t=Ko(e);if(t&&(rd(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function td(r,e,t){e.ending=!0,cr(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function nd(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});D.prototype.destroy=Fn.destroy;D.prototype._undestroy=Fn.undestroy;D.prototype._destroy=function(r,e){e(r)}});var Un=f((Am,Qo)=>{"use strict";var id=require("util"),Zo=nt(),{LEVEL:Xo}=N(),hr=Qo.exports=function(e={}){Zo.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",t=>{this.levels=t.levels,this.parent=t}),this.once("unpipe",t=>{t===this.parent&&(this.parent=null,this.close&&this.close())})};id.inherits(hr,Zo);hr.prototype._write=function(e,t,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Xo]]){if(e&&!this.format)return this.log(e,n);let a,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(s){a=s}if(a||!o){if(n(),a)throw a;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};hr.prototype._writev=function(e,t){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,a;try{a=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!a){if(e[n].callback(),i)throw t(null),i}else this.log(a,e[n].callback)}return t(null)};hr.prototype._accept=function(e){let t=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((t.exception===!0||!n||this.levels[n]>=this.levels[t[Xo]])&&(this.handleExceptions||t.exception!==!0))};hr.prototype._nop=function(){}});var Wn=f((Lm,rs)=>{"use strict";var ad=require("util"),{LEVEL:Hn}=N(),es=Un(),dr=rs.exports=function(e={}){if(es.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function t(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};ad.inherits(dr,es);dr.prototype._write=function(e,t,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Hn]])&&this.transport.log(e[Hn],e.message,e,this._nop),n(null)};dr.prototype._writev=function(e,t){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Hn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return t(null)};dr.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
26
- `))};dr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Ke=f((Pm,zn)=>{"use strict";zn.exports=Un();zn.exports.LegacyTransportStream=Wn()});var is=f((Cm,ns)=>{"use strict";var od=require("os"),{LEVEL:ts,MESSAGE:Je}=N(),sd=Ke();ns.exports=class extends sd{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:od.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[ts]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Je]}${this.eol}`):this._consoleError(e[Je]),t&&t();return}else if(this.consoleWarnLevels[e[ts]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Je]}${this.eol}`):this._consoleWarn(e[Je]),t&&t();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Je]}${this.eol}`):this._consoleLog(e[Je]),t&&t()}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(t);return n[i]=!0,n},{})}}});var st=f((ot,as)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.default=ld;function ld(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}as.exports=ot.default});var ss=f((lt,os)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.default=function(r){return function(...e){var t=e.pop();return r.call(this,e,t)}};os.exports=lt.default});var cs=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.fallback=ls;xe.wrap=us;var ud=xe.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,cd=xe.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,fd=xe.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function ls(r){setTimeout(r,0)}function us(r){return(e,...t)=>r(()=>e(...t))}var pr;ud?pr=queueMicrotask:cd?pr=setImmediate:fd?pr=process.nextTick:pr=ls;xe.default=us(pr)});var gs=f((ut,ps)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.default=vd;var hd=ss(),dd=ds(hd),pd=cs(),gd=ds(pd),md=je();function ds(r){return r&&r.__esModule?r:{default:r}}function vd(r){return(0,md.isAsync)(r)?function(...e){let t=e.pop(),n=r.apply(this,e);return fs(n,t)}:(0,dd.default)(function(e,t){var n;try{n=r.apply(this,e)}catch(i){return t(i)}if(n&&typeof n.then=="function")return fs(n,t);t(null,n)})}function fs(r,e){return r.then(t=>{hs(e,null,t)},t=>{hs(e,t&&(t instanceof Error||t.message)?t:new Error(t))})}function hs(r,e,t){try{r(e,t)}catch(n){(0,gd.default)(i=>{throw i},n)}}ps.exports=ut.default});var je=f(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.isAsyncIterable=pe.isAsyncGenerator=pe.isAsync=void 0;var yd=gs(),bd=wd(yd);function wd(r){return r&&r.__esModule?r:{default:r}}function ms(r){return r[Symbol.toStringTag]==="AsyncFunction"}function _d(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function xd(r){return typeof r[Symbol.asyncIterator]=="function"}function Ed(r){if(typeof r!="function")throw new Error("expected a function");return ms(r)?(0,bd.default)(r):r}pe.default=Ed;pe.isAsync=ms;pe.isAsyncGenerator=_d;pe.isAsyncIterable=xd});var Ze=f((ct,vs)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.default=$d;function $d(r,e){if(e||(e=r.length),!e)throw new Error("arity is undefined");function t(...n){return typeof n[e-1]=="function"?r.apply(this,n):new Promise((i,a)=>{n[e-1]=(o,...s)=>{if(o)return a(o);i(s.length>1?s:s[0])},r.apply(this,n)})}return t}vs.exports=ct.default});var bs=f((ft,ys)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});var Sd=st(),Md=Bn(Sd),Rd=je(),qd=Bn(Rd),Od=Ze(),Td=Bn(Od);function Bn(r){return r&&r.__esModule?r:{default:r}}ft.default=(0,Td.default)((r,e,t)=>{var n=(0,Md.default)(e)?[]:{};r(e,(i,a,o)=>{(0,qd.default)(i)((s,...l)=>{l.length<2&&([l]=l),n[a]=l,o(s)})},i=>t(i,n))},3);ys.exports=ft.default});var Yn=f((ht,ws)=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.default=Ad;function Ad(r){function e(...t){if(r!==null){var n=r;r=null,n.apply(this,t)}}return Object.assign(e,r),e}ws.exports=ht.default});var xs=f((dt,_s)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()};_s.exports=dt.default});var Ss=f((pt,$s)=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.default=Id;var Ld=st(),Pd=Es(Ld),jd=xs(),Cd=Es(jd);function Es(r){return r&&r.__esModule?r:{default:r}}function Dd(r){var e=-1,t=r.length;return function(){return++e<t?{value:r[e],key:e}:null}}function kd(r){var e=-1;return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})}}function Nd(r){var e=r?Object.keys(r):[],t=-1,n=e.length;return function i(){var a=e[++t];return a==="__proto__"?i():t<n?{value:r[a],key:a}:null}}function Id(r){if((0,Pd.default)(r))return Dd(r);var e=(0,Cd.default)(r);return e?kd(e):Nd(r)}$s.exports=pt.default});var Vn=f((gt,Ms)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Fd;function Fd(r){return function(...e){if(r===null)throw new Error("Callback was already called.");var t=r;r=null,t.apply(this,e)}}Ms.exports=gt.default});var vt=f((mt,Rs)=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});var Ud={};mt.default=Ud;Rs.exports=mt.default});var Os=f((yt,qs)=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.default=Bd;var Hd=vt(),Wd=zd(Hd);function zd(r){return r&&r.__esModule?r:{default:r}}function Bd(r,e,t,n){let i=!1,a=!1,o=!1,s=0,l=0;function u(){s>=e||o||i||(o=!0,r.next().then(({value:h,done:v})=>{if(!(a||i)){if(o=!1,v){i=!0,s<=0&&n(null);return}s++,t(h,l,p),l++,u()}}).catch(g))}function p(h,v){if(s-=1,!a){if(h)return g(h);if(h===!1){i=!0,a=!0;return}if(v===Wd.default||i&&s<=0)return i=!0,n(null);u()}}function g(h){a||(o=!1,i=!0,n(h))}u()}qs.exports=yt.default});var Ps=f((bt,Ls)=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});var Yd=Yn(),Vd=gr(Yd),Gd=Ss(),Kd=gr(Gd),Jd=Vn(),Zd=gr(Jd),Ts=je(),Xd=Os(),As=gr(Xd),Qd=vt(),ep=gr(Qd);function gr(r){return r&&r.__esModule?r:{default:r}}bt.default=r=>(e,t,n)=>{if(n=(0,Vd.default)(n),r<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,Ts.isAsyncGenerator)(e))return(0,As.default)(e,r,t,n);if((0,Ts.isAsyncIterable)(e))return(0,As.default)(e[Symbol.asyncIterator](),r,t,n);var i=(0,Kd.default)(e),a=!1,o=!1,s=0,l=!1;function u(g,h){if(!o)if(s-=1,g)a=!0,n(g);else if(g===!1)a=!0,o=!0;else{if(h===ep.default||a&&s<=0)return a=!0,n(null);l||p()}}function p(){for(l=!0;s<r&&!a;){var g=i();if(g===null){a=!0,s<=0&&n(null);return}s+=1,t(g.value,g.key,(0,Zd.default)(u))}l=!1}p()};Ls.exports=bt.default});var Kn=f((wt,js)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});var rp=Ps(),tp=Gn(rp),np=je(),ip=Gn(np),ap=Ze(),op=Gn(ap);function Gn(r){return r&&r.__esModule?r:{default:r}}function sp(r,e,t,n){return(0,tp.default)(e)(r,(0,ip.default)(t),n)}wt.default=(0,op.default)(sp,4);js.exports=wt.default});var ks=f((_t,Ds)=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});var lp=Kn(),up=Cs(lp),cp=Ze(),fp=Cs(cp);function Cs(r){return r&&r.__esModule?r:{default:r}}function hp(r,e,t){return(0,up.default)(r,1,e,t)}_t.default=(0,fp.default)(hp,3);Ds.exports=_t.default});var Fs=f((xt,Is)=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.default=vp;var dp=bs(),pp=Ns(dp),gp=ks(),mp=Ns(gp);function Ns(r){return r&&r.__esModule?r:{default:r}}function vp(r,e){return(0,pp.default)(mp.default,r,e)}Is.exports=xt.default});var Jn=f((Nm,Hs)=>{"use strict";Hs.exports=ge;var Et=ve().codes,yp=Et.ERR_METHOD_NOT_IMPLEMENTED,bp=Et.ERR_MULTIPLE_CALLBACK,wp=Et.ERR_TRANSFORM_ALREADY_TRANSFORMING,_p=Et.ERR_TRANSFORM_WITH_LENGTH_0,$t=Pe();ze()(ge,$t);function xp(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new bp);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(r){if(!(this instanceof ge))return new ge(r);$t.call(this,r),this._transformState={afterTransform:xp.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Ep)}function Ep(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Us(r,e,t)}):Us(this,null,null)}ge.prototype.push=function(r,e){return this._transformState.needTransform=!1,$t.prototype.push.call(this,r,e)};ge.prototype._transform=function(r,e,t){t(new yp("_transform()"))};ge.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ge.prototype._destroy=function(r,e){$t.prototype._destroy.call(this,r,function(t){e(t)})};function Us(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new _p;if(r._transformState.transforming)throw new wp;return r.push(null)}});var Bs=f((Im,zs)=>{"use strict";zs.exports=mr;var Ws=Jn();ze()(mr,Ws);function mr(r){if(!(this instanceof mr))return new mr(r);Ws.call(this,r)}mr.prototype._transform=function(r,e,t){t(null,r)}});var Js=f((Fm,Ks)=>{"use strict";var Zn;function $p(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Gs=ve().codes,Sp=Gs.ERR_MISSING_ARGS,Mp=Gs.ERR_STREAM_DESTROYED;function Ys(r){if(r)throw r}function Rp(r){return r.setHeader&&typeof r.abort=="function"}function qp(r,e,t,n){n=$p(n);var i=!1;r.on("close",function(){i=!0}),Zn===void 0&&(Zn=Kr()),Zn(r,{readable:e,writable:t},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Rp(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(o||new Mp("pipe"))}}}function Vs(r){r()}function Op(r,e){return r.pipe(e)}function Tp(r){return!r.length||typeof r[r.length-1]!="function"?Ys:r.pop()}function Ap(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Tp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Sp("streams");var i,a=e.map(function(o,s){var l=s<e.length-1,u=s>0;return qp(o,l,u,function(p){i||(i=p),p&&a.forEach(Vs),!l&&(a.forEach(Vs),n(i))})});return e.reduce(Op)}Ks.exports=Ap});var Ce=f((ne,yr)=>{var vr=require("stream");process.env.READABLE_STREAM==="disable"&&vr?(yr.exports=vr.Readable,Object.assign(yr.exports,vr),yr.exports.Stream=vr):(ne=yr.exports=Dn(),ne.Stream=vr||ne,ne.Readable=ne,ne.Writable=nt(),ne.Duplex=Pe(),ne.Transform=Jn(),ne.PassThrough=Bs(),ne.finished=Kr(),ne.pipeline=Js())});var ii=f((Um,Xs)=>{var Xe=[],br=[],Xn=function(){};function ei(r){return~Xe.indexOf(r)?!1:(Xe.push(r),!0)}function ri(r){Xn=r}function Lp(r){for(var e=[],t=0;t<Xe.length;t++){if(Xe[t].async){e.push(Xe[t]);continue}if(Xe[t](r))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(r)})).then(function(o){i(o.some(Boolean))})}):!1}function ti(r){return~br.indexOf(r)?!1:(br.push(r),!0)}function Qn(){Xn.apply(Xn,arguments)}function Zs(r){for(var e=0;e<br.length;e++)r=br[e].apply(br[e],arguments);return r}function ni(r,e){var t=Object.prototype.hasOwnProperty;for(var n in e)t.call(e,n)&&(r[n]=e[n]);return r}function Pp(r){return r.enabled=!1,r.modify=ti,r.set=ri,r.use=ei,ni(function(){return!1},r)}function jp(r){function e(){var t=Array.prototype.slice.call(arguments,0);return Qn.call(Qn,r,Zs(t,r)),!0}return r.enabled=!0,r.modify=ti,r.set=ri,r.use=ei,ni(e,r)}Xs.exports=function(e){return e.introduce=ni,e.enabled=Lp,e.process=Zs,e.modify=ti,e.write=Qn,e.nope=Pp,e.yep=jp,e.set=ri,e.use=ei,e}});var el=f((Hm,Qs)=>{var Cp=ii(),Dp=Cp(function r(e,t){return t=t||{},t.namespace=e,t.prod=!0,t.dev=!1,t.force||r.force?r.yep(t):r.nope(t)});Qs.exports=Dp});var tl=f((Wm,rl)=>{"use strict";rl.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 il=f((zm,nl)=>{nl.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var sl=f((Bm,ol)=>{"use strict";var kp=il(),Np=Array.prototype.concat,Ip=Array.prototype.slice,al=ol.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var a=e[n];kp(a)?t=Np.call(t,Ip.call(a)):t.push(a)}return t};al.wrap=function(r){return function(){return r(al(arguments))}}});var fl=f((Ym,cl)=>{var wr=tl(),_r=sl(),ll=Object.hasOwnProperty,ul=Object.create(null);for(St in wr)ll.call(wr,St)&&(ul[wr[St]]=St);var St,ee=cl.exports={to:{},get:{}};ee.get=function(r){var e=r.substring(0,3).toLowerCase(),t,n;switch(e){case"hsl":t=ee.get.hsl(r),n="hsl";break;case"hwb":t=ee.get.hwb(r),n="hwb";break;default:t=ee.get.rgb(r),n="rgb";break}return t?{model:n,value:t}:null};ee.get.rgb=function(r){if(!r)return null;var e=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],s,l,u;if(s=r.match(t)){for(u=s[2],s=s[1],l=0;l<3;l++){var p=l*2;o[l]=parseInt(s.slice(p,p+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(s=r.match(e)){for(s=s[1],u=s[3],l=0;l<3;l++)o[l]=parseInt(s[l]+s[l],16);u&&(o[3]=parseInt(u+u,16)/255)}else if(s=r.match(n)){for(l=0;l<3;l++)o[l]=parseInt(s[l+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=r.match(i)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=r.match(a))?s[1]==="transparent"?[0,0,0,0]:ll.call(wr,s[1])?(o=wr[s[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=Ee(o[l],0,255);return o[3]=Ee(o[3],0,1),o};ee.get.hsl=function(r){if(!r)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,a=Ee(parseFloat(t[2]),0,100),o=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};ee.get.hwb=function(r){if(!r)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,a=Ee(parseFloat(t[2]),0,100),o=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};ee.to.hex=function(){var r=_r(arguments);return"#"+Mt(r[0])+Mt(r[1])+Mt(r[2])+(r[3]<1?Mt(Math.round(r[3]*255)):"")};ee.to.rgb=function(){var r=_r(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};ee.to.rgb.percent=function(){var r=_r(arguments),e=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+e+"%, "+t+"%, "+n+"%)":"rgba("+e+"%, "+t+"%, "+n+"%, "+r[3]+")"};ee.to.hsl=function(){var r=_r(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};ee.to.hwb=function(){var r=_r(arguments),e="";return r.length>=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};ee.to.keyword=function(r){return ul[r.slice(0,3)]};function Ee(r,e,t){return Math.min(Math.max(e,r),t)}function Mt(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var dl=f((Vm,hl)=>{"use strict";hl.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 ai=f((Gm,vl)=>{var De=dl(),ml={};for(Rt in De)De.hasOwnProperty(Rt)&&(ml[De[Rt]]=Rt);var Rt,b=vl.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(G in b)if(b.hasOwnProperty(G)){if(!("channels"in b[G]))throw new Error("missing channels property: "+G);if(!("labels"in b[G]))throw new Error("missing channel labels property: "+G);if(b[G].labels.length!==b[G].channels)throw new Error("channel and label counts mismatch: "+G);pl=b[G].channels,gl=b[G].labels,delete b[G].channels,delete b[G].labels,Object.defineProperty(b[G],"channels",{value:pl}),Object.defineProperty(b[G],"labels",{value:gl})}var pl,gl,G;b.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s,l,u;return a===i?s=0:e===a?s=(t-n)/o:t===a?s=2+(n-e)/o:n===a&&(s=4+(e-t)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]};b.rgb.hsv=function(r){var e,t,n,i,a,o=r[0]/255,s=r[1]/255,l=r[2]/255,u=Math.max(o,s,l),p=u-Math.min(o,s,l),g=function(h){return(u-h)/6/p+1/2};return p===0?i=a=0:(a=p/u,e=g(o),t=g(s),n=g(l),o===u?i=n-t:s===u?i=1/3+e-n:l===u&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};b.rgb.hwb=function(r){var e=r[0],t=r[1],n=r[2],i=b.rgb.hsl(r)[0],a=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[i,a*100,n*100]};b.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i,a,o,s;return s=Math.min(1-e,1-t,1-n),i=(1-e-s)/(1-s)||0,a=(1-t-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function Fp(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}b.rgb.keyword=function(r){var e=ml[r];if(e)return e;var t=1/0,n;for(var i in De)if(De.hasOwnProperty(i)){var a=De[i],o=Fp(r,a);o<t&&(t=o,n=i)}return n};b.keyword.rgb=function(r){return De[r]};b.rgb.xyz=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+t*.3576+n*.1805,a=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[i*100,a*100,o*100]};b.rgb.lab=function(r){var e=b.rgb.xyz(r),t=e[0],n=e[1],i=e[2],a,o,s;return t/=95.047,n/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+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,a=116*n-16,o=500*(t-n),s=200*(n-i),[a,o,s]};b.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i,a,o,s,l;if(t===0)return l=n*255,[l,l,l];n<.5?a=n*(1+t):a=n+t-n*t,i=2*n-a,s=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(a-i)*6*o:2*o<1?l=a:3*o<2?l=i+(a-i)*(2/3-o)*6:l=i,s[u]=l*255;return s};b.hsl.hsv=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=t,a=Math.max(n,.01),o,s;return n*=2,t*=n<=1?n:2-n,i*=a<=1?a:2-a,s=(n+t)/2,o=n===0?2*i/(a+i):2*t/(n+t),[e,o*100,s*100]};b.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,n=r[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),o=255*n*(1-t),s=255*n*(1-t*a),l=255*n*(1-t*(1-a));switch(n*=255,i){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}};b.hsv.hsl=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=Math.max(n,.01),a,o,s;return s=(2-t)*n,a=(2-t)*i,o=t*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};b.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i=t+n,a,o,s,l;i>1&&(t/=i,n/=i),a=Math.floor(6*e),o=1-n,s=6*e-a,(a&1)!==0&&(s=1-s),l=t+s*(o-t);var u,p,g;switch(a){default:case 6:case 0:u=o,p=l,g=t;break;case 1:u=l,p=o,g=t;break;case 2:u=t,p=o,g=l;break;case 3:u=t,p=l,g=o;break;case 4:u=l,p=t,g=o;break;case 5:u=o,p=t,g=l;break}return[u*255,p*255,g*255]};b.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i=r[3]/100,a,o,s;return a=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[a*255,o*255,s*255]};b.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i,a,o;return i=e*3.2406+t*-1.5372+n*-.4986,a=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*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),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};b.xyz.lab=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*t-16,a=500*(e-t),o=200*(t-n),[i,a,o]};b.lab.xyz=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;a=(e+16)/116,i=t/500+a,o=a-n/200;var s=Math.pow(a,3),l=Math.pow(i,3),u=Math.pow(o,3);return a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};b.lab.lch=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return i=Math.atan2(n,t),a=i*360/2/Math.PI,a<0&&(a+=360),o=Math.sqrt(t*t+n*n),[e,o,a]};b.lch.lab=function(r){var e=r[0],t=r[1],n=r[2],i,a,o;return o=n/360*2*Math.PI,i=t*Math.cos(o),a=t*Math.sin(o),[e,i,a]};b.rgb.ansi16=function(r){var e=r[0],t=r[1],n=r[2],i=1 in arguments?arguments[1]:b.rgb.hsv(r)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return i===2&&(a+=60),a};b.hsv.ansi16=function(r){return b.rgb.ansi16(b.hsv.rgb(r),r[2])};b.rgb.ansi256=function(r){var e=r[0],t=r[1],n=r[2];if(e===t&&t===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5);return i};b.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,n=(e&1)*t*255,i=(e>>1&1)*t*255,a=(e>>2&1)*t*255;return[n,i,a]};b.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,n=Math.floor(r/36)/5*255,i=Math.floor((t=r%36)/6)/5*255,a=t%6/5*255;return[n,i,a]};b.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};b.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var n=parseInt(t,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};b.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(Math.max(e,t),n),a=Math.min(Math.min(e,t),n),o=i-a,s,l;return o<1?s=a/(1-o):s=0,o<=0?l=0:i===e?l=(t-n)/o%6:i===t?l=2+(n-e)/o:l=4+(e-t)/o+4,l/=6,l%=1,[l*360,o*100,s*100]};b.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1,i=0;return t<.5?n=2*e*t:n=2*e*(1-t),n<1&&(i=(t-.5*n)/(1-n)),[r[0],n*100,i*100]};b.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=e*t,i=0;return n<1&&(i=(t-n)/(1-n)),[r[0],n*100,i*100]};b.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];var i=[0,0,0],a=e%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,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]=s,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]=s}return l=(1-t)*n,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};b.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e),i=0;return n>0&&(i=e/n),[r[0],i*100,n*100]};b.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,n=t*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[r[0],i*100,n*100]};b.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};b.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1-t,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[r[0],i*100,a*100]};b.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};b.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};b.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};b.gray.hsl=b.gray.hsv=function(r){return[0,0,r[0]]};b.gray.hwb=function(r){return[0,100,r[0]]};b.gray.cmyk=function(r){return[0,0,0,r[0]]};b.gray.lab=function(r){return[r[0],0,0]};b.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};b.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]}});var bl=f((Km,yl)=>{var qt=ai();function Up(){for(var r={},e=Object.keys(qt),t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function Hp(r){var e=Up(),t=[r];for(e[r].distance=0;t.length;)for(var n=t.pop(),i=Object.keys(qt[n]),a=i.length,o=0;o<a;o++){var s=i[o],l=e[s];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,t.unshift(s))}return e}function Wp(r,e){return function(t){return e(r(t))}}function zp(r,e){for(var t=[e[r].parent,r],n=qt[e[r].parent][r],i=e[r].parent;e[i].parent;)t.unshift(e[i].parent),n=Wp(qt[e[i].parent][i],n),i=e[i].parent;return n.conversion=t,n}yl.exports=function(r){for(var e=Hp(r),t={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var o=n[a],s=e[o];s.parent!==null&&(t[o]=zp(o,e))}return t}});var _l=f((Jm,wl)=>{var oi=ai(),Bp=bl(),Qe={},Yp=Object.keys(oi);function Vp(r){var e=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Gp(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=r(t);if(typeof n=="object")for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in r&&(e.conversion=r.conversion),e}Yp.forEach(function(r){Qe[r]={},Object.defineProperty(Qe[r],"channels",{value:oi[r].channels}),Object.defineProperty(Qe[r],"labels",{value:oi[r].labels});var e=Bp(r),t=Object.keys(e);t.forEach(function(n){var i=e[n];Qe[r][n]=Gp(i),Qe[r][n].raw=Vp(i)})});wl.exports=Qe});var $l=f((Zm,El)=>{"use strict";var xr=fl(),re=_l(),ui=[].slice,xl=["keyword","gray","hex"],si={};Object.keys(re).forEach(function(r){si[ui.call(re[r].labels).sort().join("")]=r});var Ot={};function B(r,e){if(!(this instanceof B))return new B(r,e);if(e&&e in xl&&(e=null),e&&!(e in re))throw new Error("Unknown model: "+e);var t,n;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof B)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var i=xr.get(r);if(i===null)throw new Error("Unable to parse color from string: "+r);this.model=i.model,n=re[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(r.length){this.model=e||"rgb",n=re[this.model].channels;var a=ui.call(r,0,n);this.color=li(a,n),this.valpha=typeof r[n]=="number"?r[n]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(r);"alpha"in r&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var s=o.sort().join("");if(!(s in si))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=si[s];var l=re[this.model].labels,u=[];for(t=0;t<l.length;t++)u.push(r[l[t]]);this.color=li(u)}if(Ot[this.model])for(n=re[this.model].channels,t=0;t<n;t++){var p=Ot[this.model][t];p&&(this.color[t]=p(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var e=this.model in xr.to?this:this.rgb();e=e.round(typeof r=="number"?r:1);var t=e.valpha===1?e.color:e.color.concat(this.valpha);return xr.to[e.model](t)},percentString:function(r){var e=this.rgb().round(typeof r=="number"?r:1),t=e.valpha===1?e.color:e.color.concat(this.valpha);return xr.to.rgb.percent(t)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},e=re[this.model].channels,t=re[this.model].labels,n=0;n<e;n++)r[t[n]]=this.color[n];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new B(this.color.map(Jp(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:k("rgb",0,I(255)),green:k("rgb",1,I(255)),blue:k("rgb",2,I(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:k("hsl",1,I(100)),lightness:k("hsl",2,I(100)),saturationv:k("hsv",1,I(100)),value:k("hsv",2,I(100)),chroma:k("hcg",1,I(100)),gray:k("hcg",2,I(100)),white:k("hwb",1,I(100)),wblack:k("hwb",2,I(100)),cyan:k("cmyk",0,I(100)),magenta:k("cmyk",1,I(100)),yellow:k("cmyk",2,I(100)),black:k("cmyk",3,I(100)),x:k("xyz",0,I(100)),y:k("xyz",1,I(100)),z:k("xyz",2,I(100)),l:k("lab",0,I(100)),a:k("lab",1),b:k("lab",2),keyword:function(r){return arguments.length?new B(r):re[this.model].keyword(this.color)},hex:function(r){return arguments.length?new B(r):xr.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,e=[],t=0;t<r.length;t++){var n=r[t]/255;e[t]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(r){var e=this.luminosity(),t=r.luminosity();return e>t?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return B.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),n=this.rgb(),i=e===void 0?.5:e,a=2*i-1,o=t.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return B.rgb(s*t.red()+l*n.red(),s*t.green()+l*n.green(),s*t.blue()+l*n.blue(),t.alpha()*i+n.alpha()*(1-i))}};Object.keys(re).forEach(function(r){if(xl.indexOf(r)===-1){var e=re[r].channels;B.prototype[r]=function(){if(this.model===r)return new B(this);if(arguments.length)return new B(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new B(Zp(re[this.model][r].raw(this.color)).concat(t),r)},B[r]=function(t){return typeof t=="number"&&(t=li(ui.call(arguments),e)),new B(t,r)}}});function Kp(r,e){return Number(r.toFixed(e))}function Jp(r){return function(e){return Kp(e,r)}}function k(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(n){(Ot[n]||(Ot[n]=[]))[e]=t}),r=r[0],function(n){var i;return arguments.length?(t&&(n=t(n)),i=this[r](),i.color[e]=n,i):(i=this[r]().color[e],t&&(i=t(i)),i)}}function I(r){return function(e){return Math.max(0,Math.min(r,e))}}function Zp(r){return Array.isArray(r)?r:[r]}function li(r,e){for(var t=0;t<e;t++)typeof r[t]!="number"&&(r[t]=0);return r}El.exports=B});var Ml=f((Xm,Sl)=>{"use strict";Sl.exports=function(e){for(var t=0,n=0;t<e.length;n=e.charCodeAt(t++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var Tl=f((Qm,Ol)=>{"use strict";var Rl=$l(),ql=Ml();Ol.exports=function(e,t){var n=e.split(t||":"),i=ql(n[0]);if(!n.length)return i;for(var a=0,o=n.length-1;a<o;a++)i=Rl(i).mix(Rl(ql(n[a+1]))).saturate(1).hex();return i}});var Ll=f((ev,Al)=>{"use strict";function oe(r,e){if(e)return new oe(r).style(e);if(!(this instanceof oe))return new oe(r);this.text=r}oe.prototype.prefix="\x1B[";oe.prototype.suffix="m";oe.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(t,16),parseInt(n,16),parseInt(i,16)]};oe.prototype.rgb=function(e,t,n){var i=e/255*5,a=t/255*5,o=n/255*5;return this.ansi(i,a,o)};oe.prototype.ansi=function(e,t,n){var i=Math.round(e),a=Math.round(t),o=Math.round(n);return 16+i*36+a*6+o};oe.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};oe.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Al.exports=oe});var jl=f((rv,Pl)=>{var Xp=Tl(),Qp=Ll();Pl.exports=function(e,t){var n=t.namespace,i=t.colors!==!1?Qp(n+":",Xp(n)):n+":";return e[0]=i+" "+e[0],e}});var Dl=f((tv,Cl)=>{"use strict";Cl.exports=function(e,t){if(!t)return!1;for(var n=t.split(/[\s,]+/),i=0;i<n.length;i++){if(t=n[i].replace("*",".*?"),t.charAt(0)==="-"){if(new RegExp("^"+t.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+t+"$").test(e))return!0}return!1}});var Nl=f((nv,kl)=>{var e0=Dl();kl.exports=function(e){return function(n){try{return e0(n,e())}catch{}return!1}}});var Fl=f((iv,Il)=>{var r0=Nl();Il.exports=r0(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Hl=f((av,Ul)=>{Ul.exports=function(r,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var zl=f((ov,Wl)=>{var t0=ii(),n0=require("tty").isatty(1),Tt=t0(function r(e,t){return t=t||{},t.colors="colors"in t?t.colors:n0,t.namespace=e,t.prod=!1,t.dev=!0,!r.enabled(e)&&!(t.force||r.force)?r.nope(t):r.yep(t)});Tt.modify(jl());Tt.use(Fl());Tt.set(Hl());Wl.exports=Tt});var Er=f((sv,ci)=>{process.env.NODE_ENV==="production"?ci.exports=el():ci.exports=zl()});var Yl=f((lv,Bl)=>{"use strict";var fi=require("fs"),{StringDecoder:i0}=require("string_decoder"),{Stream:a0}=Ce();function o0(){}Bl.exports=(r,e)=>{let t=Buffer.alloc(65536),n=new i0("utf8"),i=new a0,a="",o=0,s=0;return r.start===-1&&delete r.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},fi.open(r.file,"a+","0644",(l,u)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function p(){if(i.destroyed){fi.close(u,o0);return}return fi.read(u,t,0,t.length,o,(g,h)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!h)return a&&((r.start==null||s>r.start)&&(e?e(null,a):i.emit("line",a)),s++,a=""),setTimeout(p,1e3);let v=n.write(t.slice(0,h));e||i.emit("data",v),v=(a+v).split(/\n+/);let c=v.length-1,m=0;for(;m<c;m++)(r.start==null||s>r.start)&&(e?e(null,v[m]):i.emit("line",v[m])),s++;return a=v[c],o+=h,p()})})()}),e?i.destroy:i}});var Jl=f((cv,Kl)=>{"use strict";var Z=require("fs"),F=require("path"),Vl=Fs(),s0=require("zlib"),{MESSAGE:l0}=N(),{Stream:u0,PassThrough:Gl}=Ce(),c0=Ke(),se=Er()("winston:file"),f0=require("os"),h0=Yl();Kl.exports=class extends c0{constructor(e={}){super(e),this.name=e.name||"file";function t(n,...i){i.slice(1).forEach(a=>{if(e[a])throw new Error(`Cannot set ${a} and ${n} together`)})}if(this._stream=new Gl,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?F.basename(e.filename):"winston.log",this.dirname=e.dirname||F.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=F.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:f0.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,t)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,t)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,t)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,t)})});return}}let n=`${e[l0]}${this.eol}`,i=Buffer.byteLength(n);function a(){if(this._size+=i,this._pendingSize-=i,se("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,a.bind(this));return o?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),se("written",o,this._drain),this.finishIfEnding(),o}query(e,t){typeof e=="function"&&(t=e,e={}),e=g(e);let n=F.join(this.dirname,this.filename),i="",a=[],o=0,s=Z.createReadStream(n,{encoding:"utf8"});s.on("error",h=>{if(s.readable&&s.destroy(),!!t)return h.code!=="ENOENT"?t(h):t(null,a)}),s.on("data",h=>{h=(i+h).split(/\n+/);let v=h.length-1,c=0;for(;c<v;c++)(!e.start||o>=e.start)&&l(h[c]),o++;i=h[v]}),s.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(a=a.reverse()),t&&t(null,a)});function l(h,v){try{let c=JSON.parse(h);p(c)&&u(c)}catch(c){v||s.emit("error",c)}}function u(h){if(e.rows&&a.length>=e.rows&&e.order!=="desc"){s.readable&&s.destroy();return}e.fields&&(h=e.fields.reduce((v,c)=>(v[c]=h[c],v),{})),e.order==="desc"&&a.length>=e.rows&&a.shift(),a.push(h)}function p(h){if(!h||typeof h!="object")return;let v=new Date(h.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==h.level))return!0}function g(h){return h=h||{},h.rows=h.rows||h.limit||10,h.start=h.start||0,h.until=h.until||new Date,typeof h.until!="object"&&(h.until=new Date(h.until)),h.from=h.from||h.until-1440*60*1e3,typeof h.from!="object"&&(h.from=new Date(h.from)),h.order=h.order||"desc",h}}stream(e={}){let t=F.join(this.dirname,this.filename),n=new u0,i={file:t,start:e.start};return n.destroy=h0(i,(a,o)=>{if(a)return n.emit("error",a);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(s){n.emit("error",s)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);se("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let t=this._getFile(),n=F.join(this.dirname,t);Z.stat(n,(i,a)=>{if(i&&i.code==="ENOENT")return se("ENOENT\xA0ok",n),this.filename=t,e(null,0);if(i)return se(`err ${i.code} ${n}`),e(i);if(!a||this._needsNewFile(a.size))return this._incFile(()=>this.stat(e));this.filename=t,e(null,a.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let t=F.join(this.dirname,this.filename);se("create stream start",t,this.options);let n=Z.createWriteStream(t,this.options).on("error",i=>se(i)).on("close",()=>se("close",n.path,n.bytesWritten)).on("open",()=>{se("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Gl,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return se("create stream ok",t),n}_incFile(e){se("_incFile",this.filename);let t=F.extname(this._basename),n=F.basename(this._basename,t),i=[];this.zippedArchive&&i.push(function(a){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(F.join(this.dirname,`${n}${o}${t}`),F.join(this.dirname,`${n}${o}${t}.gz`),a)}.bind(this)),i.push(function(a){this.tailable?this._checkMaxFilesTailable(t,n,a):(this._created+=1,this._checkMaxFilesIncrementing(t,n,a))}.bind(this)),Vl(i,e)}_getFile(){let e=F.extname(this._basename),t=F.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,a=i!==0?i:"",o=this.zippedArchive?".gz":"",s=`${t}${a}${e}${o}`,l=F.join(this.dirname,s);Z.unlink(l,n)}_checkMaxFilesTailable(e,t,n){let i=[];if(!this.maxFiles)return;let a=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(s,l){let u=`${t}${s-1}${e}${a}`,p=F.join(this.dirname,u);Z.exists(p,g=>{if(!g)return l(null);u=`${t}${s}${e}${a}`,Z.rename(p,F.join(this.dirname,u),l)})}.bind(this,o));Vl(i,()=>{Z.rename(F.join(this.dirname,`${t}${e}${a}`),F.join(this.dirname,`${t}1${e}${a}`),n)})}_compressFile(e,t,n){Z.access(e,Z.F_OK,i=>{if(i)return n();var a=s0.createGzip(),o=Z.createReadStream(e),s=Z.createWriteStream(t);s.on("finish",()=>{Z.unlink(e,n)}),o.pipe(a).pipe(s)})}_createLogDirIfNotExist(e){Z.existsSync(e)||Z.mkdirSync(e,{recursive:!0})}}});var Xl=f((hv,Zl)=>{"use strict";var d0=require("http"),p0=require("https"),{Stream:g0}=Ce(),m0=Ke(),{configure:v0}=ir();Zl.exports=class extends m0{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),t&&setImmediate(t)}query(e,t){typeof e=="function"&&(t=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(a,o,s)=>{if(o&&o.statusCode!==200&&(a=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),a)return t(a);if(typeof s=="string")try{s=JSON.parse(s)}catch(l){return t(l)}t(null,s)})}stream(e={}){let t=new g0;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let a="",o=this._request(e,i,n);return t.destroy=()=>o.destroy(),o.on("data",s=>{s=(a+s).split(/\n+/);let l=s.length-1,u=0;for(;u<l;u++)try{t.emit("log",JSON.parse(s[u]))}catch(p){t.emit("error",p)}a=s[l]}),o.on("error",s=>t.emit("error",s)),t}_request(e,t,n,i){e=e||{},t=t||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,t,n):this._doRequest(e,i,t,n)}_doBatch(e,t,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let a=this;this.batchCallback=t,this.batchTimeoutID=setTimeout(function(){a.batchTimeoutID=-1,a._doBatchRequest(a.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,t,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,t,n)}_doRequest(e,t,n,i){let a=Object.assign({},this.headers);n&&n.bearer&&(a.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?p0:d0).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:a,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",t),o.on("response",l=>l.on("end",()=>t(null,l)).resume());let s=v0({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(s(e,this.options.replacer),"utf8"))}}});var hi=f((dv,Ql)=>{"use strict";var fe=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";fe.writable=r=>fe(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";fe.readable=r=>fe(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";fe.duplex=r=>fe.writable(r)&&fe.readable(r);fe.transform=r=>fe.duplex(r)&&typeof r._transform=="function";Ql.exports=fe});var ru=f((gv,eu)=>{"use strict";var y0=hi(),{MESSAGE:b0}=N(),w0=require("os"),_0=Ke();eu.exports=class extends _0{constructor(e={}){if(super(e),!e.stream||!y0(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:w0.EOL}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),t&&t();return}this._stream.write(`${e[b0]}${this.eol}`),t&&t()}}});var tu=f($r=>{"use strict";Object.defineProperty($r,"Console",{configurable:!0,enumerable:!0,get(){return is()}});Object.defineProperty($r,"File",{configurable:!0,enumerable:!0,get(){return Jl()}});Object.defineProperty($r,"Http",{configurable:!0,enumerable:!0,get(){return Xl()}});Object.defineProperty($r,"Stream",{configurable:!0,enumerable:!0,get(){return ru()}})});var Lt=f(Sr=>{"use strict";var At=hn(),{configs:di}=N();Sr.cli=At.levels(di.cli);Sr.npm=At.levels(di.npm);Sr.syslog=At.levels(di.syslog);Sr.addColors=At.levels});var iu=f((Pt,nu)=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});var x0=st(),E0=ke(x0),$0=vt(),S0=ke($0),M0=Kn(),R0=ke(M0),q0=Yn(),O0=ke(q0),T0=Vn(),A0=ke(T0),L0=je(),P0=ke(L0),j0=Ze(),C0=ke(j0);function ke(r){return r&&r.__esModule?r:{default:r}}function D0(r,e,t){t=(0,O0.default)(t);var n=0,i=0,{length:a}=r,o=!1;a===0&&t(null);function s(l,u){l===!1&&(o=!0),o!==!0&&(l?t(l):(++i===a||u===S0.default)&&t(null))}for(;n<a;n++)e(r[n],n,(0,A0.default)(s))}function k0(r,e,t){return(0,R0.default)(r,1/0,e,t)}function N0(r,e,t){var n=(0,E0.default)(r)?D0:k0;return n(r,(0,P0.default)(e),t)}Pt.default=(0,C0.default)(N0,3);nu.exports=Pt.default});var ou=f((jt,au)=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.default=I0;function I0(r){return(e,t,n)=>r(e,n)}au.exports=jt.default});var kt=f((Dt,su)=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});var F0=iu(),U0=Ct(F0),H0=ou(),W0=Ct(H0),z0=je(),B0=Ct(z0),Y0=Ze(),V0=Ct(Y0);function Ct(r){return r&&r.__esModule?r:{default:r}}function G0(r,e,t){return(0,U0.default)(r,(0,W0.default)((0,B0.default)(e)),t)}Dt.default=(0,V0.default)(G0,3);su.exports=Dt.default});var uu=f((yv,lu)=>{"use strict";var K0=Object.prototype.toString;lu.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var t=e.toString(),n=K0.call(e).slice(8,-1);return n==="Function"?t=t.substring(t.indexOf("(")+1,t.indexOf(")")):t=n,t||"anonymous"}});var pi=f((bv,cu)=>{"use strict";var J0=uu();cu.exports=function(e){var t=0,n;function i(){return t||(t=1,n=e.apply(this,arguments),e=null),n}return i.displayName=J0(e),i}});var gi=f(Rr=>{Rr.get=function(r){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var t={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(a,o){return o},Error.captureStackTrace(t,r||Rr.get);var i=t.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Rr.parse=function(r){if(!r.stack)return[];var e=this,t=r.stack.split(`
27
- `).slice(1);return t.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var a=null,o=null,s=null,l=null,u=null,p=i[5]==="native";if(i[1]){s=i[1];var g=s.lastIndexOf(".");if(s[g-1]=="."&&g--,g>0){a=s.substr(0,g),o=s.substr(g+1);var h=a.indexOf(".Module");h>0&&(s=s.substr(h+1),a=a.substr(0,h))}l=null}o&&(l=a,u=o),o==="<anonymous>"&&(u=null,s=null);var v={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:s,typeName:l,methodName:u,columnNumber:parseInt(i[4],10)||null,native:p};return e._createParsedCallSite(v)}}).filter(function(n){return!!n})};function Mr(r){for(var e in r)this[e]=r[e]}var Z0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],X0=["topLevel","eval","native","constructor"];Z0.forEach(function(r){Mr.prototype[r]=null,Mr.prototype["get"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});X0.forEach(function(r){Mr.prototype[r]=!1,Mr.prototype["is"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});Rr._createParsedCallSite=function(r){return new Mr(r)}});var hu=f((xv,fu)=>{"use strict";var{Writable:Q0}=Ce();fu.exports=class extends Q0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var vi=f(($v,gu)=>{"use strict";var du=require("os"),eg=kt(),mi=Er()("winston:exception"),rg=pi(),pu=gi(),tg=hu();gu.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
28
- `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:du.loadavg(),uptime:du.uptime()}}getTrace(e){return(e?pu.parse(e):pu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let t=new tg(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){let t=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,a;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function o(){mi("doExit",i),mi("process._exiting",process._exiting),i&&!process._exiting&&(a&&clearTimeout(a),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);eg(n,(s,l)=>{let u=rg(l),p=s.transport||s;function g(h){return()=>{mi(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&o()),this.logger.log(t),i&&(a=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var vu=f((Mv,mu)=>{"use strict";var{Writable:ng}=Ce();mu.exports=class extends ng{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var bi=f((qv,wu)=>{"use strict";var yu=require("os"),ig=kt(),yi=Er()("winston:rejection"),ag=pi(),bu=gi(),og=vu();wu.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
- `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:yu.loadavg(),uptime:yu.uptime()}}getTrace(e){return(e?bu.parse(e):bu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let t=new og(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){let t=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,a;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function o(){yi("doExit",i),yi("process._exiting",process._exiting),i&&!process._exiting&&(a&&clearTimeout(a),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);ig(n,(s,l)=>{let u=ag(l),p=s.transport||s;function g(h){return()=>{yi(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&o()),this.logger.log(t),i&&(a=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var xu=f((Ov,_u)=>{"use strict";var wi=class{constructor(e){let t=Nt();if(typeof e!="object"||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let t=typeof e[e.length-1]=="object"?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}};_u.exports=wi});var Nt=f((Tv,Mu)=>{"use strict";var{Stream:sg,Transform:lg}=Ce(),Eu=kt(),{LEVEL:he,SPLAT:$u}=N(),Su=hi(),ug=vi(),cg=bi(),fg=Wn(),hg=xu(),{warn:dg}=dn(),pg=Lt(),gg=/%[scdjifoO%]/g,It=class extends lg{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let t=this;return Object.create(t,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),t.write(i)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:a="info",exitOnError:o=!0,transports:s,colors:l,emitErrs:u,formatters:p,padLevels:g,rewriters:h,stripColors:v,exceptionHandlers:c,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||sn()(),this.defaultMeta=n||null,this.levels=i||this.levels||pg.npm.levels,this.level=a,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new ug(this),this.rejections=new cg(this),this.profilers={},this.exitOnError=o,s&&(s=Array.isArray(s)?s:[s],s.forEach(_=>this.add(_))),l||u||p||g||h||v)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
- `));c&&this.exceptions.handle(c),m&&this.rejections.handle(m)}isLevelEnabled(e){let t=_i(this.levels,e);if(t===null)return!1;let n=_i(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=t:this.transports.findIndex(a=>{let o=_i(this.levels,a.level);return o===null&&(o=n),o>=t})!==-1}log(e,t,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return t&&typeof t=="object"?(t[he]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[he]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(t&&t.match&&t.match(gg))){let o=Object.assign({},this.defaultMeta,i,{[he]:e,[$u]:n,level:e,message:t});return i.message&&(o.message=`${o.message} ${i.message}`),i.stack&&(o.stack=i.stack),i.cause&&(o.cause=i.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[$u]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let t=this.transports.slice();Eu(t,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let t=!Su(e)||e.log.length>2?new fg({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!Su(e)||e.log.length>2)&&(t=this.transports.filter(n=>n.transport===e)[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){dg.deprecated("setLevels")}query(e,t){typeof e=="function"&&(t=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function a(s,l){e.query&&typeof s.formatQuery=="function"&&(e.query=s.formatQuery(i)),s.query(e,(u,p)=>{if(u)return l(u);typeof s.formatResults=="function"&&(p=s.formatResults(p,e.format)),l(null,p)})}function o(s,l){a(s,(u,p)=>{l&&(p=u||p,p&&(n[s.name]=p),l()),l=null})}Eu(this.transports.filter(s=>!!s.query),o,()=>t(null,n))}stream(e={}){let t=new sg,n=[];return t._streams=n,t.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let a=i.stream(e);a&&(n.push(a),a.on("log",o=>{o.transport=o.transport||[],o.transport.push(i.name),t.emit("log",o)}),a.on("error",o=>{o.transport=o.transport||[],o.transport.push(i.name),t.emit("error",o)}))}),t}startTimer(){return new hg(this)}profile(e,...t){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof t[t.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());let a=typeof t[t.length-1]=="object"?t.pop():{};return a.level=a.level||"info",a.durationMs=n-i,a.message=a.message||e,this.write(a)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
- `))}_onEvent(e,t){function n(i){e==="error"&&!this.transports.includes(t)&&this.add(t),this.emit(e,i,t)}t["__winston"+e]||(t["__winston"+e]=n.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function _i(r,e){let t=r[e];return!t&&t!==0?null:t}Object.defineProperty(It.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:r}=this._readableState;return Array.isArray(r)?r:[r].filter(Boolean)}});Mu.exports=It});var xi=f((Av,Ru)=>{"use strict";var{LEVEL:mg}=N(),vg=Lt(),yg=Nt(),bg=Er()("winston:create-logger");function wg(r){return"is"+r.charAt(0).toUpperCase()+r.slice(1)+"Enabled"}Ru.exports=function(r={}){r.levels=r.levels||vg.npm.levels;class e extends yg{constructor(i){super(i)}}let t=new e(r);return Object.keys(r.levels).forEach(function(n){if(bg('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let a=this||t;if(i.length===1){let[o]=i,s=o&&o.message&&o||{message:o};return s.level=s[mg]=n,a._addDefaultMeta(s),a.write(s),this||t}return i.length===0?(a.log(n,""),a):a.log(n,...i)},e.prototype[wg(n)]=function(){return(this||t).isLevelEnabled(n)}}),t}});var Ou=f((Pv,qu)=>{"use strict";var _g=xi();qu.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){t=Object.assign({},t||this.options);let n=t.transports||this.options.transports;n?t.transports=Array.isArray(n)?n.slice():[n]:t.transports=[];let i=_g(t);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((t,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Au=f(A=>{"use strict";var Tu=hn(),{warn:qr}=dn();A.version=ro().version;A.transports=tu();A.config=Lt();A.addColors=Tu.levels;A.format=Tu.format;A.createLogger=xi();A.Logger=Nt();A.ExceptionHandler=vi();A.RejectionHandler=bi();A.Container=Ou();A.Transport=Ke();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(r=>A[r]=(...e)=>de[r](...e));Object.defineProperty(A,"level",{get(){return de.level},set(r){de.level=r}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(r=>{Object.defineProperty(A,r,{get(){return de[r]},set(e){de[r]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});qr.deprecated(A,"setLevels");qr.forFunctions(A,"useFormat",["cli"]);qr.forProperties(A,"useFormat",["padLevels","stripColors"]);qr.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);qr.forProperties(A,"deprecated",["emitErrs","levelLength"])});var Mg={};Hu(Mg,{default:()=>Sg});module.exports=zu(Mg);var Bu=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],Yu=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.neutral-subtle"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],Vu=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],Ti=[...Bu,...Yu,...Vu];var Gu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Ku=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ju=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Zu=/[^\p{L}\d]+/giu,Ai="$1\0$2",Li="";function Pi(r){let e=r.trim();e=e.replace(Gu,Ai).replace(Ku,Ai),e=e.replace(Zu,"\0");let t=0,n=e.length;for(;e.charAt(t)==="\0";)t++;if(t===n)return[];for(;e.charAt(n-1)==="\0";)n--;return e.slice(t,n).split(/\0/g)}function Xu(r){let e=Pi(r);for(let t=0;t<e.length;t++){let n=e[t],i=Ju.exec(n);if(i){let a=i.index+(i[1]??i[2]).length;e.splice(t,1,n.slice(0,a),n.slice(a))}}return e}function Ut(r,e){let[t,n,i]=nc(r,e),a=Qu(e==null?void 0:e.locale),o=ec(e==null?void 0:e.locale),s=e!=null&&e.mergeAmbiguousCharacters?rc(a,o):tc(a,o);return t+n.map((l,u)=>u===0?a(l):s(l,u)).join((e==null?void 0:e.delimiter)??"")+i}function Qu(r){return r===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r)}function ec(r){return r===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(r)}function rc(r,e){return t=>`${e(t[0])}${r(t.slice(1))}`}function tc(r,e){return(t,n)=>{let i=t[0];return(n>0&&i>="0"&&i<="9"?"_"+i:e(i))+r(t.slice(1))}}function nc(r,e={}){let t=e.split??(e.separateNumbers?Xu:Pi),n=e.prefixCharacters??Li,i=e.suffixCharacters??Li,a=0,o=r.length;for(;a<r.length;){let s=r.charAt(a);if(!n.includes(s))break;a++}for(;o>a;){let s=o-1,l=r.charAt(s);if(!i.includes(l))break;o=s}return[r.slice(0,a),t(r.slice(a,o)),r.slice(o)]}var U=Wu(Au());function Lu(r){let e=U.format.printf(({message:s,timestamp:l,metadata:u})=>{let{previousToken:p,nextToken:g,line:h}=u,v=h?`(line ${h})`:"";return`${l} ${s}: ${p} \u2192 ${g} ${v}`}),t=U.format.printf(({level:s,message:l,timestamp:u,failureReason:p,metadata:g})=>{let{previousToken:h,description:v}=g,c=v||p||"";return`${u} [${s.toUpperCase()}]: ${l}
32
- \u21B3 reason: ${h} ${c}`}),n=U.format.printf(({level:s,message:l,timestamp:u})=>`${u} [${s.toUpperCase()}]: ${l}`),i=(0,U.format)(s=>{let l=s.metadata;return(l==null?void 0:l.status)==="success"?s:!1}),a=(0,U.format)(s=>{let l=s.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?s:!1}),o=(0,U.createLogger)({level:"debug",transports:[new U.transports.File({filename:`.report/${r}-success.log`,format:U.format.combine(i(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new U.transports.File({filename:`.report/${r}-issues.log`,format:U.format.combine(a(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),t)}),new U.transports.File({filename:`.report/${r}-debug.log`,level:"debug",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:o,logTransformResult(s,l){let{status:u,failureReason:p,needsVerification:g,description:h,previousToken:v,nextToken:c}=l,m=u==="success"?"info":u==="warning"?"warn":"error",_=l.line?`(line: ${l.line})`:"";o.log({level:m,message:`${s} ${_}`,...p&&{failureReason:p},...h&&{description:h},metadata:l}),g&&u==="success"&&o.log({level:"warn",message:`${s} ${_}`,metadata:{previousToken:v,nextToken:c,status:"warning",description:h||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(s){o.debug(`Starting transformation of ${s}`)},finishFile(s){o.debug(`Finished transformation of ${s}`)}}}function xg(r){let e=r.replace(/^\$(semantic|static|scale)\.color\./,"").split(".").join("-");return Ut(e,{mergeAmbiguousCharacters:!0})}function Eg(r){let e=r.next.find(n=>n.startsWith("$color.fg"));if(e)return e;let t=r.next.find(n=>n.startsWith("$color.palette"));if(t)return t;if(r.alternative&&r.alternative.length>0){let n=r.alternative.find(i=>i.startsWith("$color.palette"));if(n)return n}return null}function Ei(r){if(r.includes("."))return r;for(let e of Ti)if(xg(e.previous)===r){let n=Eg(e);if(n)return n.replace("$color.","").split(".").map((i,a)=>a===0?i:Ut(i,{mergeAmbiguousCharacters:!0})).join(".")}return`palette.${r}`}var $g=(r,e)=>{let t=Lu("replace-custom-text-component-color-prop"),n=e.jscodeshift,i=n(r.source);return t.startFile(r.path),i.find(n.JSXElement).filter(a=>{let o=a.node.openingElement.name;return o.type==="JSXIdentifier"&&o.name==="Text"}).forEach(a=>{var l,u,p,g;let s=a.node.openingElement.attributes.find(h=>h.type==="JSXAttribute"&&h.name.name==="color");if(!(!s||s.type!=="JSXAttribute")){if(((l=s.value)==null?void 0:l.type)==="StringLiteral"){let h=s.value.value,v=Ei(h);h!==v&&(s.value.value=v,t.logTransformResult(r.path,{previousToken:h,nextToken:v,status:"success",line:(u=s.loc)==null?void 0:u.start.line}))}else if(((p=s.value)==null?void 0:p.type)==="JSXExpressionContainer"){let h=s.value.expression;h.type==="ConditionalExpression"&&(h.consequent.type==="StringLiteral"&&(h.consequent.value=Ei(h.consequent.value)),h.alternate.type==="StringLiteral"&&(h.alternate.value=Ei(h.alternate.value)),t.logTransformResult(r.path,{previousToken:"conditional expression",nextToken:"transformed conditional expression",status:"success",line:(g=s.loc)==null?void 0:g.start.line}))}}}),t.finishFile(r.path),i.toSource()},Sg=$g;
18
+ ${_}`),y.pop(),`{${M}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function p(b,c,y,w,E){switch(typeof c){case"string":return ye(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(b),typeof c!="object")return p(b,c,y,w,E);if(c===null)return"null"}if(y.indexOf(c)!==-1)return r;let R=E;if(Array.isArray(c)){if(c.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(c),E+=w;let O=`
19
+ ${E}`,z=`,
20
+ ${E}`,G=Math.min(c.length,a),Y=0;for(;Y<G-1;Y++){let ee=p(String(Y),c[Y],y,w,E);O+=ee!==void 0?ee:"null",O+=z}let Q=p(String(Y),c[Y],y,w,E);if(O+=Q!==void 0?Q:"null",c.length-1>a){let ee=c.length-a-1;O+=`${z}"... ${Re(ee)} not stringified"`}return O+=`
21
+ ${R}`,y.pop(),`[${O}]`}let _=Object.keys(c),M=_.length;if(M===0)return"{}";if(s<y.length+1)return'"[Object]"';E+=w;let j=`,
22
+ ${E}`,N="",q="",P=Math.min(M,a);Xr(c)&&(N+=yo(c,j,a),_=_.slice(c.length),P-=c.length,q=j),i&&(_=Zr(_,o)),y.push(c);for(let O=0;O<P;O++){let z=_[O],G=p(z,c[z],y,w,E);G!==void 0&&(N+=`${q}${ye(z)}: ${G}`,q=j)}if(M>a){let O=M-a;N+=`${q}"...": "${Re(O)} not stringified"`,q=j}return q!==""&&(N=`
23
+ ${E}${N}
24
+ ${R}`),y.pop(),`{${N}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function g(b,c,y){switch(typeof c){case"string":return ye(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(b),typeof c!="object")return g(b,c,y);if(c===null)return"null"}if(y.indexOf(c)!==-1)return r;let w="",E=c.length!==void 0;if(E&&Array.isArray(c)){if(c.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(c);let N=Math.min(c.length,a),q=0;for(;q<N-1;q++){let O=g(String(q),c[q],y);w+=O!==void 0?O:"null",w+=","}let P=g(String(q),c[q],y);if(w+=P!==void 0?P:"null",c.length-1>a){let O=c.length-a-1;w+=`,"... ${Re(O)} not stringified"`}return y.pop(),`[${w}]`}let R=Object.keys(c),_=R.length;if(_===0)return"{}";if(s<y.length+1)return'"[Object]"';let M="",j=Math.min(_,a);E&&Xr(c)&&(w+=yo(c,",",a),R=R.slice(c.length),j-=c.length,M=","),i&&(R=Zr(R,o)),y.push(c);for(let N=0;N<j;N++){let q=R[N],P=g(q,c[q],y);P!==void 0&&(w+=`${M}${ye(q)}:${P}`,M=",")}if(_>a){let N=_-a;w+=`${M}"...":"${Re(N)} not stringified"`}return y.pop(),`{${w}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function h(b,c,y){if(arguments.length>1){let w="";if(typeof y=="number"?w=" ".repeat(Math.min(y,10)):typeof y=="string"&&(w=y.slice(0,10)),c!=null){if(typeof c=="function")return l("",{"":b},[],c,w,"");if(Array.isArray(c))return u("",b,[],Qu(c),w,"")}if(w.length!==0)return p("",b,[],w,"")}return g("",b,[])}return h}});var tn=f((Eg,_o)=>{"use strict";var tc=Z(),{MESSAGE:rc}=k(),nc=ot();function ic(t,e){return typeof e=="bigint"?e.toString():e}_o.exports=tc((t,e)=>{let r=nc.configure(e);return t[rc]=r(t,e.replacer||ic,e.space),t})});var xo=f(($g,wo)=>{"use strict";var oc=Z();wo.exports=oc((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var $o=f((Sg,Eo)=>{"use strict";var sc=Z(),{MESSAGE:ac}=k(),lc=ot();Eo.exports=sc(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[ac]=lc(e),t})});var Mo=f((Mg,So)=>{"use strict";var uc=Z();function cc(t,e,r){let n=e.reduce((o,s)=>(o[s]=t[s],delete t[s],o),{}),i=Object.keys(t).reduce((o,s)=>(o[s]=t[s],delete t[s],o),{});return Object.assign(t,n,{[r]:i}),t}function fc(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}So.exports=uc((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?cc(t,n,r):e.fillWith?fc(t,e.fillWith,r):t})});var Oo=f((Rg,Ro)=>{var He=1e3,Ue=He*60,We=Ue*60,Te=We*24,hc=Te*7,dc=Te*365.25;Ro.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return pc(t);if(r==="number"&&isFinite(t))return e.long?mc(t):gc(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function pc(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*dc;case"weeks":case"week":case"w":return r*hc;case"days":case"day":case"d":return r*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return r*We;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ue;case"seconds":case"second":case"secs":case"sec":case"s":return r*He;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function gc(t){var e=Math.abs(t);return e>=Te?Math.round(t/Te)+"d":e>=We?Math.round(t/We)+"h":e>=Ue?Math.round(t/Ue)+"m":e>=He?Math.round(t/He)+"s":t+"ms"}function mc(t){var e=Math.abs(t);return e>=Te?Ft(t,e,Te,"day"):e>=We?Ft(t,e,We,"hour"):e>=Ue?Ft(t,e,Ue,"minute"):e>=He?Ft(t,e,He,"second"):t+" ms"}function Ft(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var qo=f((st,To)=>{"use strict";var yc=Z(),bc=Oo();To.exports=yc(t=>{let e=+new Date;return st.diff=e-(st.prevTime||e),st.prevTime=e,t.ms=`+${bc(st.diff)}`,t})});var jo=f((Og,Lo)=>{"use strict";var vc=require("util").inspect,_c=Z(),{LEVEL:wc,MESSAGE:Ao,SPLAT:xc}=k();Lo.exports=_c((t,e={})=>{let r=Object.assign({},t);return delete r[wc],delete r[Ao],delete r[xc],t[Ao]=vc(r,!1,e.depth||null,e.colorize),t})});var No=f((Tg,Ut)=>{"use strict";var{MESSAGE:Ec}=k(),Ht=class{constructor(e){this.template=e}transform(e){return e[Ec]=this.template(e),e}};Ut.exports=t=>new Ht(t);Ut.exports.Printf=Ut.exports.Format=Ht});var Do=f((qg,Co)=>{"use strict";var $c=Z(),{MESSAGE:Po}=k(),Sc=ot();Co.exports=$c(t=>{let e=Sc(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Po]=`${t.level}:${r} ${t.message} ${e}`:t[Po]=`${t.level}:${r} ${t.message}`,t})});var Fo=f((Ag,Io)=>{"use strict";var Mc=require("util"),{SPLAT:ko}=k(),Rc=/%[scdjifoO%]/g,Oc=/%%/g,rn=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[ko]||e.splat||[],o=n.match(Oc),s=o&&o.length||0,l=r.length-s-i.length,u=l<0?i.splice(l,-1*l):[],p=u.length;if(p)for(let g=0;g<p;g++)Object.assign(e,u[g]);return e.message=Mc.format(n,...i),e}transform(e){let r=e.message,n=e[ko]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(Rc);if(!i&&(n||n.length)){let o=n.length>1?n.splice(0):n,s=o.length;if(s)for(let a=0;a<s;a++)Object.assign(e,o[a]);return e}return i?this._splat(e,i):e}};Io.exports=t=>new rn(t)});var Uo=f((Wt,Ho)=>{(function(t,e){typeof Wt=="object"&&typeof Ho<"u"?e(Wt):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Wt,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",o="\\d{4}",s="[^\\s]+",a=/\[([^]*?)\]/gm;function l(d,v){for(var L=[],J=0,x=d.length;J<x;J++)L.push(d[J].substr(0,v));return L}var u=function(d){return function(v,L){var J=L[d].map(function(ae){return ae.toLowerCase()}),x=J.indexOf(v.toLowerCase());return x>-1?x:null}};function p(d){for(var v=[],L=1;L<arguments.length;L++)v[L-1]=arguments[L];for(var J=0,x=v;J<x.length;J++){var ae=x[J];for(var Se in ae)d[Se]=ae[Se]}return d}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"],b=l(h,3),c=l(g,3),y={dayNamesShort:c,dayNames:g,monthNamesShort:b,monthNames:h,amPm:["am","pm"],DoFn:function(d){return d+["th","st","nd","rd"][d%10>3?0:(d-d%10!==10?1:0)*d%10]}},w=p({},y),E=function(d){return w=p(w,d)},R=function(d){return d.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_=function(d,v){for(v===void 0&&(v=2),d=String(d);d.length<v;)d="0"+d;return d},M={D:function(d){return String(d.getDate())},DD:function(d){return _(d.getDate())},Do:function(d,v){return v.DoFn(d.getDate())},d:function(d){return String(d.getDay())},dd:function(d){return _(d.getDay())},ddd:function(d,v){return v.dayNamesShort[d.getDay()]},dddd:function(d,v){return v.dayNames[d.getDay()]},M:function(d){return String(d.getMonth()+1)},MM:function(d){return _(d.getMonth()+1)},MMM:function(d,v){return v.monthNamesShort[d.getMonth()]},MMMM:function(d,v){return v.monthNames[d.getMonth()]},YY:function(d){return _(String(d.getFullYear()),4).substr(2)},YYYY:function(d){return _(d.getFullYear(),4)},h:function(d){return String(d.getHours()%12||12)},hh:function(d){return _(d.getHours()%12||12)},H:function(d){return String(d.getHours())},HH:function(d){return _(d.getHours())},m:function(d){return String(d.getMinutes())},mm:function(d){return _(d.getMinutes())},s:function(d){return String(d.getSeconds())},ss:function(d){return _(d.getSeconds())},S:function(d){return String(Math.round(d.getMilliseconds()/100))},SS:function(d){return _(Math.round(d.getMilliseconds()/10),2)},SSS:function(d){return _(d.getMilliseconds(),3)},a:function(d,v){return d.getHours()<12?v.amPm[0]:v.amPm[1]},A:function(d,v){return d.getHours()<12?v.amPm[0].toUpperCase():v.amPm[1].toUpperCase()},ZZ:function(d){var v=d.getTimezoneOffset();return(v>0?"-":"+")+_(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4)},Z:function(d){var v=d.getTimezoneOffset();return(v>0?"-":"+")+_(Math.floor(Math.abs(v)/60),2)+":"+_(Math.abs(v)%60,2)}},j=function(d){return+d-1},N=[null,r],q=[null,s],P=["isPm",s,function(d,v){var L=d.toLowerCase();return L===v.amPm[0]?0:L===v.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(d){var v=(d+"").match(/([+-]|\d\d)/gi);if(v){var L=+v[1]*60+parseInt(v[2],10);return v[0]==="+"?L:-L}return 0}],z={D:["day",r],DD:["day",n],Do:["day",r+s,function(d){return parseInt(d,10)}],M:["month",r,j],MM:["month",n,j],YY:["year",n,function(d){var v=new Date,L=+(""+v.getFullYear()).substr(0,2);return+(""+(+d>68?L-1:L)+d)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",o],S:["millisecond","\\d",function(d){return+d*100}],SS:["millisecond",n,function(d){return+d*10}],SSS:["millisecond",i],d:N,dd:N,ddd:q,dddd:q,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:P,A:P,ZZ:O,Z:O},G={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Y=function(d){return p(G,d)},Q=function(d,v,L){if(v===void 0&&(v=G.default),L===void 0&&(L={}),typeof d=="number"&&(d=new Date(d)),Object.prototype.toString.call(d)!=="[object Date]"||isNaN(d.getTime()))throw new Error("Invalid Date pass to format");v=G[v]||v;var J=[];v=v.replace(a,function(ae,Se){return J.push(Se),"@@@"});var x=p(p({},w),L);return v=v.replace(e,function(ae){return M[ae](d,x)}),v.replace(/@@@/g,function(){return J.shift()})};function ee(d,v,L){if(L===void 0&&(L={}),typeof v!="string")throw new Error("Invalid format in fecha parse");if(v=G[v]||v,d.length>1e3)return null;var J=new Date,x={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ae=[],Se=[],tt=v.replace(a,function(rt,Ie){return Se.push(R(Ie)),"@@@"}),Ot={},mi={};tt=R(tt).replace(e,function(rt){var Ie=z[rt],Pr=Ie[0],iu=Ie[1],_i=Ie[3];if(Ot[Pr])throw new Error("Invalid format. "+Pr+" specified twice in format");return Ot[Pr]=!0,_i&&(mi[_i]=!0),ae.push(Ie),"("+iu+")"}),Object.keys(mi).forEach(function(rt){if(!Ot[rt])throw new Error("Invalid format. "+rt+" is required in specified format")}),tt=tt.replace(/@@@/g,function(){return Se.shift()});var Tt=d.match(new RegExp(tt,"i"));if(!Tt)return null;for(var tu=p(p({},w),L),ne=1;ne<Tt.length;ne++){var yi=ae[ne-1],ru=yi[0],bi=yi[2],vi=bi?bi(Tt[ne],tu):+Tt[ne];if(vi==null)return null;x[ru]=vi}x.isPm===1&&x.hour!=null&&+x.hour!=12?x.hour=+x.hour+12:x.isPm===0&&+x.hour==12&&(x.hour=0);var qt;if(x.timezoneOffset==null){qt=new Date(x.year,x.month,x.day,x.hour,x.minute,x.second,x.millisecond);for(var At=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ne=0,nu=At.length;ne<nu;ne++)if(Ot[At[ne][0]]&&x[At[ne][0]]!==qt[At[ne][1]]())return null}else if(qt=new Date(Date.UTC(x.year,x.month,x.day,x.hour,x.minute-x.timezoneOffset,x.second,x.millisecond)),x.month>11||x.month<0||x.day>31||x.day<1||x.hour>23||x.hour<0||x.minute>59||x.minute<0||x.second>59||x.second<0)return null;return qt}var ke={format:Q,parse:ee,defaultI18n:y,setGlobalDateI18n:E,setGlobalDateMasks:Y};t.assign=p,t.default=ke,t.format=Q,t.parse=ee,t.defaultI18n=y,t.setGlobalDateI18n=E,t.setGlobalDateMasks=Y,Object.defineProperty(t,"__esModule",{value:!0})}))});var Bo=f((Lg,Wo)=>{"use strict";var Tc=Uo(),qc=Z();Wo.exports=qc((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Tc.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Yo=f((jg,zo)=>{"use strict";var nn=Ir(),Ac=Z(),{MESSAGE:on}=k();zo.exports=Ac((t,e)=>(e.level!==!1&&(t.level=nn.strip(t.level)),e.message!==!1&&(t.message=nn.strip(String(t.message))),e.raw!==!1&&t[on]&&(t[on]=nn.strip(String(t[on]))),t))});var an=f(sn=>{"use strict";var Lc=sn.format=Z();sn.levels=so();function V(t,e){Object.defineProperty(Lc,t,{get(){return e()},configurable:!0})}V("align",function(){return lo()});V("errors",function(){return fo()});V("cli",function(){return po()});V("combine",function(){return mo()});V("colorize",function(){return Ct()});V("json",function(){return tn()});V("label",function(){return xo()});V("logstash",function(){return $o()});V("metadata",function(){return Mo()});V("ms",function(){return qo()});V("padLevels",function(){return Gr()});V("prettyPrint",function(){return jo()});V("printf",function(){return No()});V("simple",function(){return Do()});V("splat",function(){return Fo()});V("timestamp",function(){return Bo()});V("uncolorize",function(){return Yo()})});var ln=f(Bt=>{"use strict";var{format:Vo}=require("util");Bt.warn={deprecated(t){return()=>{throw new Error(Vo("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Vo("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
25
+ `))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=Bt.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=Bt.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Go=f((Cg,jc)=>{jc.exports={name:"winston",description:"A logger for just about everything.",version:"3.18.3",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.8","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var Jo=f((Dg,Ko)=>{Ko.exports=require("util").deprecate});var un=f((kg,Zo)=>{Zo.exports=require("stream")});var fn=f((Ig,Qo)=>{"use strict";function Nc(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(cn,this,t)):process.nextTick(cn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(zt,r):(r._writableState.errorEmitted=!0,process.nextTick(Xo,r,o)):process.nextTick(Xo,r,o):e?(process.nextTick(zt,r),e(o)):process.nextTick(zt,r)}),this)}function Xo(t,e){cn(t,e),zt(t)}function zt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Pc(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function cn(t,e){t.emit("error",e)}function Cc(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Qo.exports={destroy:Nc,undestroy:Pc,errorOrDestroy:Cc}});var be=f((Fg,rs)=>{"use strict";var ts={};function te(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=t,ts[t]=i}function es(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Dc(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function kc(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Ic(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}te("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Dc(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(kc(t," argument"))i=`The ${t} ${n} ${es(e,"type")}`;else{let o=Ic(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${es(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");rs.exports.codes=ts});var hn=f((Hg,ns)=>{"use strict";var Fc=be().codes.ERR_INVALID_OPT_VALUE;function Hc(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Uc(t,e,r,n){var i=Hc(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Fc(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ns.exports={getHighWaterMark:Uc}});var is=f((Ug,dn)=>{typeof Object.create=="function"?dn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Be=f((Wg,gn)=>{try{if(pn=require("util"),typeof pn.inherits!="function")throw"";gn.exports=pn.inherits}catch{gn.exports=is()}var pn});var cs=f((Bg,us)=>{"use strict";function os(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 ss(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?os(Object(r),!0).forEach(function(n){Wc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wc(t,e,r){return e=ls(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function as(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,ls(n.key),n)}}function zc(t,e,r){return e&&as(t.prototype,e),r&&as(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ls(t){var e=Yc(t,"string");return typeof e=="symbol"?e:String(e)}function Yc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vc=require("buffer"),Yt=Vc.Buffer,Gc=require("util"),mn=Gc.inspect,Kc=mn&&mn.custom||"inspect";function Jc(t,e,r){Yt.prototype.copy.call(t,e,r)}us.exports=(function(){function t(){Bc(this,t),this.head=null,this.tail=null,this.length=0}return zc(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Yt.alloc(0);for(var n=Yt.allocUnsafe(r>>>0),i=this.head,o=0;i;)Jc(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Yt.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:Kc,value:function(r,n){return mn(this,ss(ss({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var ds=f((yn,hs)=>{var Vt=require("buffer"),le=Vt.Buffer;function fs(t,e){for(var r in t)e[r]=t[r]}le.from&&le.alloc&&le.allocUnsafe&&le.allocUnsafeSlow?hs.exports=Vt:(fs(Vt,yn),yn.Buffer=qe);function qe(t,e,r){return le(t,e,r)}qe.prototype=Object.create(le.prototype);fs(le,qe);qe.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return le(t,e,r)};qe.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=le(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};qe.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return le(t)};qe.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Vt.SlowBuffer(t)}});var _n=f(gs=>{"use strict";var vn=ds().Buffer,ps=vn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Zc(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Xc(t){var e=Zc(t);if(typeof e!="string"&&(vn.isEncoding===ps||!ps(t)))throw new Error("Unknown encoding: "+t);return e||t}gs.StringDecoder=at;function at(t){this.encoding=Xc(t);var e;switch(this.encoding){case"utf16le":this.text=of,this.end=sf,e=4;break;case"utf8":this.fillLast=tf,e=4;break;case"base64":this.text=af,this.end=lf,e=3;break;default:this.write=uf,this.end=cf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vn.allocUnsafe(e)}at.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};at.prototype.end=nf;at.prototype.text=rf;at.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function bn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Qc(t,e,r){var n=e.length-1;if(n<r)return 0;var i=bn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=bn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=bn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function ef(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function tf(t){var e=this.lastTotal-this.lastNeed,r=ef(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function rf(t,e){var r=Qc(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function nf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function of(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function sf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function af(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function lf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function uf(t){return t.toString(this.encoding)}function cf(t){return t&&t.length?this.write(t):""}});var Gt=f((Yg,bs)=>{"use strict";var ms=be().codes.ERR_STREAM_PREMATURE_CLOSE;function ff(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function hf(){}function df(t){return t.setHeader&&typeof t.abort=="function"}function ys(t,e,r){if(typeof e=="function")return ys(t,null,e);e||(e={}),r=ff(r||hf);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(t)},p=function(c){r.call(t,c)},g=function(){var c;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(c=new ms),r.call(t,c);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(c=new ms),r.call(t,c)},h=function(){t.req.on("finish",a)};return df(t)?(t.on("complete",a),t.on("abort",g),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",g),function(){t.removeListener("complete",a),t.removeListener("abort",g),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",g)}}bs.exports=ys});var _s=f((Vg,vs)=>{"use strict";var Kt;function ve(t,e,r){return e=pf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pf(t){var e=gf(t,"string");return typeof e=="symbol"?e:String(e)}function gf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mf=Gt(),_e=Symbol("lastResolve"),Ae=Symbol("lastReject"),lt=Symbol("error"),Jt=Symbol("ended"),Le=Symbol("lastPromise"),wn=Symbol("handlePromise"),je=Symbol("stream");function we(t,e){return{value:t,done:e}}function yf(t){var e=t[_e];if(e!==null){var r=t[je].read();r!==null&&(t[Le]=null,t[_e]=null,t[Ae]=null,e(we(r,!1)))}}function bf(t){process.nextTick(yf,t)}function vf(t,e){return function(r,n){t.then(function(){if(e[Jt]){r(we(void 0,!0));return}e[wn](r,n)},n)}}var _f=Object.getPrototypeOf(function(){}),wf=Object.setPrototypeOf((Kt={get stream(){return this[je]},next:function(){var e=this,r=this[lt];if(r!==null)return Promise.reject(r);if(this[Jt])return Promise.resolve(we(void 0,!0));if(this[je].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[lt]?a(e[lt]):s(we(void 0,!0))})});var n=this[Le],i;if(n)i=new Promise(vf(n,this));else{var o=this[je].read();if(o!==null)return Promise.resolve(we(o,!1));i=new Promise(this[wn])}return this[Le]=i,i}},ve(Kt,Symbol.asyncIterator,function(){return this}),ve(Kt,"return",function(){var e=this;return new Promise(function(r,n){e[je].destroy(null,function(i){if(i){n(i);return}r(we(void 0,!0))})})}),Kt),_f),xf=function(e){var r,n=Object.create(wf,(r={},ve(r,je,{value:e,writable:!0}),ve(r,_e,{value:null,writable:!0}),ve(r,Ae,{value:null,writable:!0}),ve(r,lt,{value:null,writable:!0}),ve(r,Jt,{value:e._readableState.endEmitted,writable:!0}),ve(r,wn,{value:function(o,s){var a=n[je].read();a?(n[Le]=null,n[_e]=null,n[Ae]=null,o(we(a,!1))):(n[_e]=o,n[Ae]=s)},writable:!0}),r));return n[Le]=null,mf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ae];o!==null&&(n[Le]=null,n[_e]=null,n[Ae]=null,o(i)),n[lt]=i;return}var s=n[_e];s!==null&&(n[Le]=null,n[_e]=null,n[Ae]=null,s(we(void 0,!0))),n[Jt]=!0}),e.on("readable",bf.bind(null,n)),n};vs.exports=xf});var $s=f((Gg,Es)=>{"use strict";function ws(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Ef(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(l){ws(o,n,i,s,a,"next",l)}function a(l){ws(o,n,i,s,a,"throw",l)}s(void 0)})}}function xs(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 $f(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xs(Object(r),!0).forEach(function(n){Sf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sf(t,e,r){return e=Mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mf(t){var e=Rf(t,"string");return typeof e=="symbol"?e:String(e)}function Rf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Of=be().codes.ERR_INVALID_ARG_TYPE;function Tf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Of("iterable",["Iterable"],e);var i=new t($f({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Ef(function*(){try{var l=yield n.next(),u=l.value,p=l.done;p?i.push(null):i.push(yield u)?s():o=!1}catch(g){i.destroy(g)}}),a.apply(this,arguments)}return i}Es.exports=Tf});var An=f((Jg,Ns)=>{"use strict";Ns.exports=T;var ze;T.ReadableState=Os;var Kg=require("events").EventEmitter,Rs=function(e,r){return e.listeners(r).length},ct=un(),Zt=require("buffer").Buffer,qf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Af(t){return Zt.from(t)}function Lf(t){return Zt.isBuffer(t)||t instanceof qf}var xn=require("util"),$;xn&&xn.debuglog?$=xn.debuglog("stream"):$=function(){};var jf=cs(),Tn=fn(),Nf=hn(),Pf=Nf.getHighWaterMark,Xt=be().codes,Cf=Xt.ERR_INVALID_ARG_TYPE,Df=Xt.ERR_STREAM_PUSH_AFTER_EOF,kf=Xt.ERR_METHOD_NOT_IMPLEMENTED,If=Xt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ye,En,$n;Be()(T,ct);var ut=Tn.errorOrDestroy,Sn=["error","close","destroy","pause","resume"];function Ff(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Os(t,e,r){ze=ze||Ne(),t=t||{},typeof r!="boolean"&&(r=e instanceof ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Pf(this,t,"readableHighWaterMark",r),this.buffer=new jf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ye||(Ye=_n().StringDecoder),this.decoder=new Ye(t.encoding),this.encoding=t.encoding)}function T(t){if(ze=ze||Ne(),!(this instanceof T))return new T(t);var e=this instanceof ze;this._readableState=new Os(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ct.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=Tn.destroy;T.prototype._undestroy=Tn.undestroy;T.prototype._destroy=function(t,e){e(t)};T.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Zt.from(t,e),e=""),n=!0),Ts(this,t,e,!1,n)};T.prototype.unshift=function(t){return Ts(this,t,null,!0,!1)};function Ts(t,e,r,n,i){$("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,Wf(t,o);else{var s;if(i||(s=Hf(o,e)),s)ut(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Zt.prototype&&(e=Af(e)),n)o.endEmitted?ut(t,new If):Mn(t,o,e,!0);else if(o.ended)ut(t,new Df);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Mn(t,o,e,!1):On(t,o)):Mn(t,o,e,!1)}else n||(o.reading=!1,On(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Mn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Qt(t)),On(t,e)}function Hf(t,e){var r;return!Lf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Cf("chunk",["string","Buffer","Uint8Array"],e)),r}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(t){Ye||(Ye=_n().StringDecoder);var e=new Ye(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ss=1073741824;function Uf(t){return t>=Ss?t=Ss:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ms(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Uf(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}T.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Rn(this):Qt(this),null;if(t=Ms(t,e),t===0&&e.ended)return e.length===0&&Rn(this),null;var n=e.needReadable;$("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,$("length less than watermark",n)),e.ended||e.reading?(n=!1,$("reading or ended",n)):n&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ms(r,e)));var i;return t>0?i=Ls(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Rn(this)),i!==null&&this.emit("data",i),i};function Wf(t,e){if($("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Qt(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,qs(t)))}}function Qt(t){var e=t._readableState;$("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(qs,t))}function qs(t){var e=t._readableState;$("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,qn(t)}function On(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Bf,t,e))}function Bf(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if($("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}T.prototype._read=function(t){ut(this,new kf("_read()"))};T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,$("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:y;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(w,E){$("onunpipe"),w===r&&E&&E.hasUnpiped===!1&&(E.hasUnpiped=!0,p())}function a(){$("onend"),t.end()}var l=zf(r);t.on("drain",l);var u=!1;function p(){$("cleanup"),t.removeListener("close",b),t.removeListener("finish",c),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",g),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",g);function g(w){$("ondata");var E=t.write(w);$("dest.write",E),E===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&js(n.pipes,t)!==-1)&&!u&&($("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(w){$("onerror",w),y(),t.removeListener("error",h),Rs(t,"error")===0&&ut(t,w)}Ff(t,"error",h);function b(){t.removeListener("finish",c),y()}t.once("close",b);function c(){$("onfinish"),t.removeListener("close",b),y()}t.once("finish",c);function y(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||($("pipe resume"),r.resume()),t};function zf(t){return function(){var r=t._readableState;$("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Rs(t,"data")&&(r.flowing=!0,qn(t))}}T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=js(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};T.prototype.on=function(t,e){var r=ct.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,$("on readable",n.length,n.reading),n.length?Qt(this):n.reading||process.nextTick(Yf,this)),r};T.prototype.addListener=T.prototype.on;T.prototype.removeListener=function(t,e){var r=ct.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(As,this),r};T.prototype.removeAllListeners=function(t){var e=ct.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(As,this),e};function As(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Yf(t){$("readable nexttick read 0"),t.read(0)}T.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!t.readableListening,Vf(this,t)),t.paused=!1,this};function Vf(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Gf,t,e))}function Gf(t,e){$("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qn(t),e.flowing&&!e.reading&&t.read(0)}T.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function qn(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if($("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var o=0;o<Sn.length;o++)t.on(Sn[o],this.emit.bind(this,Sn[o]));return this._read=function(s){$("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return En===void 0&&(En=_s()),En(this)});Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});T._fromList=Ls;Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ls(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Rn(t){var e=t._readableState;$("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Kf,e,t))}function Kf(t,e){if($("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(T.from=function(t,e){return $n===void 0&&($n=$s()),$n(T,t,e)});function js(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Ne=f((Zg,Cs)=>{"use strict";var Jf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Cs.exports=ue;var Ps=An(),jn=rr();Be()(ue,Ps);for(Ln=Jf(jn.prototype),er=0;er<Ln.length;er++)tr=Ln[er],ue.prototype[tr]||(ue.prototype[tr]=jn.prototype[tr]);var Ln,tr,er;function ue(t){if(!(this instanceof ue))return new ue(t);Ps.call(this,t),jn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Zf)))}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Zf(){this._writableState.ended||process.nextTick(Xf,this)}function Xf(t){t.end()}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var rr=f((Xg,Us)=>{"use strict";Us.exports=C;function ks(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Sh(e,t)}}var Ve;C.WritableState=ht;var Qf={deprecate:Jo()},Is=un(),ir=require("buffer").Buffer,eh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function th(t){return ir.from(t)}function rh(t){return ir.isBuffer(t)||t instanceof eh}var Pn=fn(),nh=hn(),ih=nh.getHighWaterMark,xe=be().codes,oh=xe.ERR_INVALID_ARG_TYPE,sh=xe.ERR_METHOD_NOT_IMPLEMENTED,ah=xe.ERR_MULTIPLE_CALLBACK,lh=xe.ERR_STREAM_CANNOT_PIPE,uh=xe.ERR_STREAM_DESTROYED,ch=xe.ERR_STREAM_NULL_VALUES,fh=xe.ERR_STREAM_WRITE_AFTER_END,hh=xe.ERR_UNKNOWN_ENCODING,Ge=Pn.errorOrDestroy;Be()(C,Is);function dh(){}function ht(t,e,r){Ve=Ve||Ne(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ve),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=ih(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){_h(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ks(this)}ht.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(ht.prototype,"buffer",{get:Qf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var nr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(nr=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return nr.call(this,e)?!0:this!==C?!1:e&&e._writableState instanceof ht}})):nr=function(e){return e instanceof this};function C(t){Ve=Ve||Ne();var e=this instanceof Ve;if(!e&&!nr.call(C,this))return new C(t);this._writableState=new ht(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Is.call(this)}C.prototype.pipe=function(){Ge(this,new lh)};function ph(t,e){var r=new fh;Ge(t,r),process.nextTick(e,r)}function gh(t,e,r,n){var i;return r===null?i=new ch:typeof r!="string"&&!e.objectMode&&(i=new oh("chunk",["string","Buffer"],r)),i?(Ge(t,i),process.nextTick(n,i),!1):!0}C.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&rh(t);return o&&!ir.isBuffer(t)&&(t=th(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=dh),n.ending?ph(this,r):(o||gh(this,n,t,r))&&(n.pendingcb++,i=yh(this,n,o,t,e,r)),i};C.prototype.cork=function(){this._writableState.corked++};C.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Fs(this,t))};C.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new hh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function mh(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ir.from(e,r)),e}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yh(t,e,r,n,i,o){if(!r){var s=mh(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Nn(t,e,!1,a,n,i,o);return l}function Nn(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new uh("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function bh(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ft,t,e),t._writableState.errorEmitted=!0,Ge(t,n)):(i(n),t._writableState.errorEmitted=!0,Ge(t,n),ft(t,e))}function vh(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function _h(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new ah;if(vh(r),e)bh(t,r,n,e,i);else{var o=Hs(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fs(t,r),n?process.nextTick(Ds,t,r,o,i):Ds(t,r,o,i)}}function Ds(t,e,r,n){r||wh(t,e),e.pendingcb--,n(),ft(t,e)}function wh(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Fs(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Nn(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new ks(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,g=e.objectMode?1:l.length;if(Nn(t,e,!1,g,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}C.prototype._write=function(t,e,r){r(new sh("_write()"))};C.prototype._writev=null;C.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||$h(this,n,r),this};Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Hs(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function xh(t,e){t._final(function(r){e.pendingcb--,r&&Ge(t,r),e.prefinished=!0,t.emit("prefinish"),ft(t,e)})}function Eh(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(xh,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ft(t,e){var r=Hs(e);if(r&&(Eh(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function $h(t,e,r){e.ending=!0,ft(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Sh(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});C.prototype.destroy=Pn.destroy;C.prototype._undestroy=Pn.undestroy;C.prototype._destroy=function(t,e){e(t)}});var Cn=f((Qg,zs)=>{"use strict";var Mh=require("util"),Ws=rr(),{LEVEL:Bs}=k(),dt=zs.exports=function(e={}){Ws.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};Mh.inherits(dt,Ws);dt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Bs]]){if(e&&!this.format)return this.log(e,n);let o,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(a){o=a}if(o||!s){if(n(),o)throw o;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};dt.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,o;try{o=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(s){i=s}if(i||!o){if(e[n].callback(),i)throw r(null),i}else this.log(o,e[n].callback)}return r(null)};dt.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[Bs]])&&(this.handleExceptions||r.exception!==!0))};dt.prototype._nop=function(){}});var kn=f((em,Vs)=>{"use strict";var Rh=require("util"),{LEVEL:Dn}=k(),Ys=Cn(),pt=Vs.exports=function(e={}){if(Ys.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};Rh.inherits(pt,Ys);pt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Dn]])&&this.transport.log(e[Dn],e.message,e,this._nop),n(null)};pt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Dn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};pt.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
26
+ `))};pt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Ke=f((tm,In)=>{"use strict";In.exports=Cn();In.exports.LegacyTransportStream=kn()});var Js=f((nm,Ks)=>{"use strict";var Oh=require("os"),{LEVEL:Gs,MESSAGE:Je}=k(),Th=Ke();Ks.exports=class extends Th{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Oh.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[Gs]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Je]}${this.eol}`):this._consoleError(e[Je]),r&&r();return}else if(this.consoleWarnLevels[e[Gs]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Je]}${this.eol}`):this._consoleWarn(e[Je]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Je]}${this.eol}`):this._consoleLog(e[Je]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var sr=f((or,Zs)=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.default=qh;function qh(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Zs.exports=or.default});var Qs=f((ar,Xs)=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Xs.exports=ar.default});var ra=f(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.fallback=ea;Ee.wrap=ta;var Ah=Ee.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Lh=Ee.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,jh=Ee.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function ea(t){setTimeout(t,0)}function ta(t){return(e,...r)=>t(()=>e(...r))}var gt;Ah?gt=queueMicrotask:Lh?gt=setImmediate:jh?gt=process.nextTick:gt=ea;Ee.default=ta(gt)});var aa=f((lr,sa)=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=Ih;var Nh=Qs(),Ph=oa(Nh),Ch=ra(),Dh=oa(Ch),kh=Pe();function oa(t){return t&&t.__esModule?t:{default:t}}function Ih(t){return(0,kh.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return na(n,r)}:(0,Ph.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return na(n,r);r(null,n)})}function na(t,e){return t.then(r=>{ia(e,null,r)},r=>{ia(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function ia(t,e,r){try{t(e,r)}catch(n){(0,Dh.default)(i=>{throw i},n)}}sa.exports=lr.default});var Pe=f(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.isAsyncIterable=pe.isAsyncGenerator=pe.isAsync=void 0;var Fh=aa(),Hh=Uh(Fh);function Uh(t){return t&&t.__esModule?t:{default:t}}function la(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Wh(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Bh(t){return typeof t[Symbol.asyncIterator]=="function"}function zh(t){if(typeof t!="function")throw new Error("expected a function");return la(t)?(0,Hh.default)(t):t}pe.default=zh;pe.isAsync=la;pe.isAsyncGenerator=Wh;pe.isAsyncIterable=Bh});var Ze=f((ur,ua)=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.default=Yh;function Yh(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,o)=>{n[e-1]=(s,...a)=>{if(s)return o(s);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}ua.exports=ur.default});var fa=f((cr,ca)=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});var Vh=sr(),Gh=Fn(Vh),Kh=Pe(),Jh=Fn(Kh),Zh=Ze(),Xh=Fn(Zh);function Fn(t){return t&&t.__esModule?t:{default:t}}cr.default=(0,Xh.default)((t,e,r)=>{var n=(0,Gh.default)(e)?[]:{};t(e,(i,o,s)=>{(0,Jh.default)(i)((a,...l)=>{l.length<2&&([l]=l),n[o]=l,s(a)})},i=>r(i,n))},3);ca.exports=cr.default});var Hn=f((fr,ha)=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Qh;function Qh(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}ha.exports=fr.default});var pa=f((hr,da)=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};da.exports=hr.default});var ya=f((dr,ma)=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=ad;var ed=sr(),td=ga(ed),rd=pa(),nd=ga(rd);function ga(t){return t&&t.__esModule?t:{default:t}}function id(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function od(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function sd(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var o=e[++r];return o==="__proto__"?i():r<n?{value:t[o],key:o}:null}}function ad(t){if((0,td.default)(t))return id(t);var e=(0,nd.default)(t);return e?od(e):sd(t)}ma.exports=dr.default});var Un=f((pr,ba)=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=ld;function ld(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}ba.exports=pr.default});var mr=f((gr,va)=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});var ud={};gr.default=ud;va.exports=gr.default});var wa=f((yr,_a)=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=dd;var cd=mr(),fd=hd(cd);function hd(t){return t&&t.__esModule?t:{default:t}}function dd(t,e,r,n){let i=!1,o=!1,s=!1,a=0,l=0;function u(){a>=e||s||i||(s=!0,t.next().then(({value:h,done:b})=>{if(!(o||i)){if(s=!1,b){i=!0,a<=0&&n(null);return}a++,r(h,l,p),l++,u()}}).catch(g))}function p(h,b){if(a-=1,!o){if(h)return g(h);if(h===!1){i=!0,o=!0;return}if(b===fd.default||i&&a<=0)return i=!0,n(null);u()}}function g(h){o||(s=!1,i=!0,n(h))}u()}_a.exports=yr.default});var Sa=f((br,$a)=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var pd=Hn(),gd=mt(pd),md=ya(),yd=mt(md),bd=Un(),vd=mt(bd),xa=Pe(),_d=wa(),Ea=mt(_d),wd=mr(),xd=mt(wd);function mt(t){return t&&t.__esModule?t:{default:t}}br.default=t=>(e,r,n)=>{if(n=(0,gd.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,xa.isAsyncGenerator)(e))return(0,Ea.default)(e,t,r,n);if((0,xa.isAsyncIterable)(e))return(0,Ea.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,yd.default)(e),o=!1,s=!1,a=0,l=!1;function u(g,h){if(!s)if(a-=1,g)o=!0,n(g);else if(g===!1)o=!0,s=!0;else{if(h===xd.default||o&&a<=0)return o=!0,n(null);l||p()}}function p(){for(l=!0;a<t&&!o;){var g=i();if(g===null){o=!0,a<=0&&n(null);return}a+=1,r(g.value,g.key,(0,vd.default)(u))}l=!1}p()};$a.exports=br.default});var Bn=f((vr,Ma)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var Ed=Sa(),$d=Wn(Ed),Sd=Pe(),Md=Wn(Sd),Rd=Ze(),Od=Wn(Rd);function Wn(t){return t&&t.__esModule?t:{default:t}}function Td(t,e,r,n){return(0,$d.default)(e)(t,(0,Md.default)(r),n)}vr.default=(0,Od.default)(Td,4);Ma.exports=vr.default});var Ta=f((_r,Oa)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var qd=Bn(),Ad=Ra(qd),Ld=Ze(),jd=Ra(Ld);function Ra(t){return t&&t.__esModule?t:{default:t}}function Nd(t,e,r){return(0,Ad.default)(t,1,e,r)}_r.default=(0,jd.default)(Nd,3);Oa.exports=_r.default});var La=f((wr,Aa)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.default=Id;var Pd=fa(),Cd=qa(Pd),Dd=Ta(),kd=qa(Dd);function qa(t){return t&&t.__esModule?t:{default:t}}function Id(t,e){return(0,Cd.default)(kd.default,t,e)}Aa.exports=wr.default});var zn=f((sm,Na)=>{"use strict";Na.exports=ge;var xr=be().codes,Fd=xr.ERR_METHOD_NOT_IMPLEMENTED,Hd=xr.ERR_MULTIPLE_CALLBACK,Ud=xr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Wd=xr.ERR_TRANSFORM_WITH_LENGTH_0,Er=Ne();Be()(ge,Er);function Bd(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Hd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(t){if(!(this instanceof ge))return new ge(t);Er.call(this,t),this._transformState={afterTransform:Bd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",zd)}function zd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){ja(t,e,r)}):ja(this,null,null)}ge.prototype.push=function(t,e){return this._transformState.needTransform=!1,Er.prototype.push.call(this,t,e)};ge.prototype._transform=function(t,e,r){r(new Fd("_transform()"))};ge.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ge.prototype._destroy=function(t,e){Er.prototype._destroy.call(this,t,function(r){e(r)})};function ja(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Wd;if(t._transformState.transforming)throw new Ud;return t.push(null)}});var Da=f((am,Ca)=>{"use strict";Ca.exports=yt;var Pa=zn();Be()(yt,Pa);function yt(t){if(!(this instanceof yt))return new yt(t);Pa.call(this,t)}yt.prototype._transform=function(t,e,r){r(null,t)}});var Ua=f((lm,Ha)=>{"use strict";var Yn;function Yd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Fa=be().codes,Vd=Fa.ERR_MISSING_ARGS,Gd=Fa.ERR_STREAM_DESTROYED;function ka(t){if(t)throw t}function Kd(t){return t.setHeader&&typeof t.abort=="function"}function Jd(t,e,r,n){n=Yd(n);var i=!1;t.on("close",function(){i=!0}),Yn===void 0&&(Yn=Gt()),Yn(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Kd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Gd("pipe"))}}}function Ia(t){t()}function Zd(t,e){return t.pipe(e)}function Xd(t){return!t.length||typeof t[t.length-1]!="function"?ka:t.pop()}function Qd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Xd(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Vd("streams");var i,o=e.map(function(s,a){var l=a<e.length-1,u=a>0;return Jd(s,l,u,function(p){i||(i=p),p&&o.forEach(Ia),!l&&(o.forEach(Ia),n(i))})});return e.reduce(Zd)}Ha.exports=Qd});var Ce=f((re,vt)=>{var bt=require("stream");process.env.READABLE_STREAM==="disable"&&bt?(vt.exports=bt.Readable,Object.assign(vt.exports,bt),vt.exports.Stream=bt):(re=vt.exports=An(),re.Stream=bt||re,re.Readable=re,re.Writable=rr(),re.Duplex=Ne(),re.Transform=zn(),re.PassThrough=Da(),re.finished=Gt(),re.pipeline=Ua())});var Qn=f((um,Ba)=>{var Xe=[],_t=[],Vn=function(){};function Kn(t){return~Xe.indexOf(t)?!1:(Xe.push(t),!0)}function Jn(t){Vn=t}function ep(t){for(var e=[],r=0;r<Xe.length;r++){if(Xe[r].async){e.push(Xe[r]);continue}if(Xe[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(s){return s(t)})).then(function(s){i(s.some(Boolean))})}):!1}function Zn(t){return~_t.indexOf(t)?!1:(_t.push(t),!0)}function Gn(){Vn.apply(Vn,arguments)}function Wa(t){for(var e=0;e<_t.length;e++)t=_t[e].apply(_t[e],arguments);return t}function Xn(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function tp(t){return t.enabled=!1,t.modify=Zn,t.set=Jn,t.use=Kn,Xn(function(){return!1},t)}function rp(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Gn.call(Gn,t,Wa(r,t)),!0}return t.enabled=!0,t.modify=Zn,t.set=Jn,t.use=Kn,Xn(e,t)}Ba.exports=function(e){return e.introduce=Xn,e.enabled=ep,e.process=Wa,e.modify=Zn,e.write=Gn,e.nope=tp,e.yep=rp,e.set=Jn,e.use=Kn,e}});var Ya=f((cm,za)=>{var np=Qn(),ip=np(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});za.exports=ip});var Xa=f((fm,Za)=>{"use strict";var ce={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]},Ga=Object.create(null);for(let t in ce)Object.hasOwn(ce,t)&&(Ga[ce[t]]=t);var H={to:{},get:{}};H.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=H.get.hsl(t),n="hsl";break}case"hwb":{r=H.get.hwb(t),n="hwb";break}default:{r=H.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};H.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,s=[0,0,0,1],a,l,u;if(a=t.match(r)){for(u=a[2],a=a[1],l=0;l<3;l++){let p=l*2;s[l]=Number.parseInt(a.slice(p,p+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(a=t.match(e)){for(a=a[1],u=a[3],l=0;l<3;l++)s[l]=Number.parseInt(a[l]+a[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(a=t.match(n)){for(l=0;l<3;l++)s[l]=Number.parseInt(a[l+1],10);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(o))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ce,a[1])?(s=ce[a[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=$e(s[l],0,255);return s[3]=$e(s[3],0,1),s};H.get.hsl=function(t){if(!t)return null;let e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,o=$e(Number.parseFloat(r[2]),0,100),s=$e(Number.parseFloat(r[3]),0,100),a=$e(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};H.get.hwb=function(t){if(!t)return null;let e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,o=$e(Number.parseFloat(r[2]),0,100),s=$e(Number.parseFloat(r[3]),0,100),a=$e(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};H.to.hex=function(...t){return"#"+$r(t[0])+$r(t[1])+$r(t[2])+(t[3]<1?$r(Math.round(t[3]*255)):"")};H.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};H.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};H.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};H.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};H.to.keyword=function(...t){return Ga[t.slice(0,3)]};function $e(t,e,r){return Math.min(Math.max(e,t),r)}function $r(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Ka={};for(let t of Object.keys(ce))Ka[ce[t]]=t;var m={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},me=(6/29)**3;function Qe(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function et(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(m)){if(!("channels"in m[t]))throw new Error("missing channels property: "+t);if(!("labels"in m[t]))throw new Error("missing channel labels property: "+t);if(m[t].labels.length!==m[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=m[t];delete m[t].channels,delete m[t].labels,Object.defineProperty(m[t],"channels",{value:e}),Object.defineProperty(m[t],"labels",{value:r})}m.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,l;switch(o){case i:{a=0;break}case e:{a=(r-n)/s;break}case r:{a=2+(n-e)/s;break}case n:{a=4+(e-r)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+o)/2;return o===i?l=0:u<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,u*100]};m.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(s,a,l),p=u-Math.min(s,a,l),g=function(h){return(u-h)/6/p+1/2};if(p===0)i=0,o=0;else{switch(o=p/u,e=g(s),r=g(a),n=g(l),u){case s:{i=n-r;break}case a:{i=1/3+e-n;break}case l:{i=2/3+r-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,o*100,u*100]};m.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=m.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]};m.rgb.oklab=function(t){let e=et(t[0]/255),r=et(t[1]/255),n=et(t[2]/255),i=Math.cbrt(.4122214708*e+.5363325363*r+.0514459929*n),o=Math.cbrt(.2119034982*e+.6806995451*r+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*r+.6299787005*n),a=.2104542553*i+.793617785*o-.0040720468*s,l=1.9779984951*i-2.428592205*o+.4505937099*s,u=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,l*100,u*100]};m.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 op(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}m.rgb.keyword=function(t){let e=Ka[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(ce)){let o=ce[i],s=op(t,o);s<r&&(r=s,n=i)}return n};m.keyword.rgb=function(t){return ce[t]};m.rgb.xyz=function(t){let e=et(t[0]/255),r=et(t[1]/255),n=et(t[2]/255),i=e*.4124564+r*.3575761+n*.1804375,o=e*.2126729+r*.7151522+n*.072175,s=e*.0193339+r*.119192+n*.9503041;return[i*100,o*100,s*100]};m.rgb.lab=function(t){let e=m.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>me?r**(1/3):7.787*r+16/116,n=n>me?n**(1/3):7.787*n+16/116,i=i>me?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]};m.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o;if(r===0)return o=n*255,[o,o,o];let s=n<.5?n*(1+r):n+r-n*r,a=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)i=e+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(s-a)*6*i:2*i<1?o=s:3*i<2?o=a+(s-a)*(2/3-i)*6:o=a,l[u]=o*255;return l};m.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]};m.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),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};m.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]};m.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 l=r+o*(a-r),u,p,g;switch(s){default:case 6:case 0:{u=a,p=l,g=r;break}case 1:{u=l,p=a,g=r;break}case 2:{u=r,p=a,g=l;break}case 3:{u=r,p=l,g=a;break}case 4:{u=l,p=r,g=a;break}case 5:{u=a,p=r,g=l;break}}return[u*255,p*255,g*255]};m.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]};m.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2404542+r*-1.5371385+n*-.4985314,o=e*-.969266+r*1.8760108+n*.041556,s=e*.0556434+r*-.2040259+n*1.0572252,i=Qe(i),o=Qe(o),s=Qe(s),[i*255,o*255,s*255]};m.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>me?e**(1/3):7.787*e+16/116,r=r>me?r**(1/3):7.787*r+16/116,n=n>me?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]};m.xyz.oklab=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=Math.cbrt(.8189330101*e+.3618667424*r-.1288597137*n),o=Math.cbrt(.0329845436*e+.9293118715*r+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*r+.633851707*n),a=.2104542553*i+.793617785*o-.0040720468*s,l=1.9779984951*i-2.428592205*o+.4505937099*s,u=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,l*100,u*100]};m.oklab.oklch=function(t){return m.lab.lch(t)};m.oklab.xyz=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(.999999998*e+.396337792*r+.215803758*n)**3,o=(1.000000008*e-.105561342*r-.063854175*n)**3,s=(1.000000055*e-.089484182*r-1.291485538*n)**3,a=1.227013851*i-.55779998*o+.281256149*s,l=-.040580178*i+1.11225687*o-.071676679*s,u=-.076381285*i-.421481978*o+1.58616322*s;return[a*100,l*100,u*100]};m.oklab.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(e+.3963377774*r+.2158037573*n)**3,o=(e-.1055613458*r-.0638541728*n)**3,s=(e-.0894841775*r-1.291485548*n)**3,a=Qe(4.0767416621*i-3.3077115913*o+.2309699292*s),l=Qe(-1.2684380046*i+2.6097574011*o-.3413193965*s),u=Qe(-.0041960863*i-.7034186147*o+1.707614701*s);return[a*255,l*255,u*255]};m.oklch.oklab=function(t){return m.lch.lab(t)};m.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,l=i**3,u=s**3;return o=a>me?a:(o-16/116)/7.787,i=l>me?l:(i-16/116)/7.787,s=u>me?u:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};m.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]};m.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]};m.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?m.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};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e>>4===r>>4&&r>>4===n>>4?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)};m.ansi16.rgb=function(t){t=t[0];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=(Math.trunc(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]};m.ansi256.rgb=function(t){if(t=t[0],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]};m.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".slice(r.length)+r};m.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=[...r].map(a=>a+a).join(""));let n=Number.parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};m.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,l=s<1?o/(1-s):0;return s<=0?a=0:i===e?a=(r-n)/s%6:i===r?a=2+(n-e)/s:a=4+(e-r)/s,a/=6,a%=1,[a*360,s*100,l*100]};m.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]};m.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]};m.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,l=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 l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};m.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]};m.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]};m.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]};m.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]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=function(t){return[0,0,t[0]]};m.gray.hsv=m.gray.hsl;m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};m.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function sp(){let t={},e=Object.keys(m);for(let{length:r}=e,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function ap(t){let e=sp(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(m[n]);for(let{length:o}=i,s=0;s<o;s++){let a=i[s],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function lp(t,e){return function(r){return e(t(r))}}function up(t,e){let r=[e[t].parent,t],n=m[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=lp(m[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function cp(t){let e=ap(t),r={},n=Object.keys(e);for(let{length:i}=n,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=up(s,e))}return r}var U={},fp=Object.keys(m);function hp(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 dp(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{length:o}=i,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(let t of fp){U[t]={},Object.defineProperty(U[t],"channels",{value:m[t].channels}),Object.defineProperty(U[t],"labels",{value:m[t].labels});let e=cp(t),r=Object.keys(e);for(let n of r){let i=e[n];U[t][n]=dp(i),U[t][n].raw=hp(i)}}var Ja=["keyword","gray","hex"],ei={};for(let t of Object.keys(U))ei[[...U[t].labels].sort().join("")]=t;var ti={};function F(t,e){if(!(this instanceof F))return new F(t,e);if(e&&e in Ja&&(e=null),e&&!(e in U))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof F)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=H.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=U[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=U[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=ri(i,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let o=i.sort().join("");if(!(o in ei))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ei[o];let{labels:s}=U[this.model],a=[];for(r=0;r<s.length;r++)a.push(t[s[r]]);this.color=ri(a)}if(ti[this.model])for(n=U[this.model].channels,r=0;r<n;r++){let i=ti[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}F.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in H.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return H.to[e.model](...r)},percentString(t){let e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:[...e.color,this.valpha];return H.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=U[this.model],{labels:r}=U[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new F([...this.color.map(gp(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new F([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:D("rgb",0,I(255)),green:D("rgb",1,I(255)),blue:D("rgb",2,I(255)),hue:D(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:D("hsl",1,I(100)),lightness:D("hsl",2,I(100)),saturationv:D("hsv",1,I(100)),value:D("hsv",2,I(100)),chroma:D("hcg",1,I(100)),gray:D("hcg",2,I(100)),white:D("hwb",1,I(100)),wblack:D("hwb",2,I(100)),cyan:D("cmyk",0,I(100)),magenta:D("cmyk",1,I(100)),yellow:D("cmyk",2,I(100)),black:D("cmyk",3,I(100)),x:D("xyz",0,I(95.047)),y:D("xyz",1,I(100)),z:D("xyz",2,I(108.833)),l:D("lab",0,I(100)),a:D("lab",1),b:D("lab",2),keyword(t){return t!==void 0?new F(t):U[this.model].keyword(this.color)},hex(t){return t!==void 0?new F(t):H.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new F(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),H.to.hex(...e)+r},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,e=[];for(let[r,n]of t.entries()){let i=n/255;e[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){let e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){let e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){let e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){let e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){let e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){let e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){let e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){let e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){let t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return F.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,o=2*i-1,s=r.alpha()-n.alpha(),a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,l=1-a;return F.rgb(a*r.red()+l*n.red(),a*r.green()+l*n.green(),a*r.blue()+l*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(let t of Object.keys(U)){if(Ja.includes(t))continue;let{channels:e}=U[t];F.prototype[t]=function(...r){return this.model===t?new F(this):r.length>0?new F(r,t):new F([...mp(U[this.model][t].raw(this.color)),this.valpha],t)},F[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=ri(r,e)),new F(n,t)}}function pp(t,e){return Number(t.toFixed(e))}function gp(t){return function(e){return pp(e,t)}}function D(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(ti[n]||=[])[e]=r;return t=t[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function I(t){return function(e){return Math.max(0,Math.min(t,e))}}function mp(t){return Array.isArray(t)?t:[t]}function ri(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function yp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bp=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i},Va=yp(bp);function vp(t,e){let r=t.split(e||":"),n=Va(r[0]);if(!r.length)return n;for(let i=0,o=r.length-1;i<o;i++)n=F(n).mix(F(Va(r[i+1]))).saturate(1).hex();return n}Za.exports=vp});var el=f((hm,Qa)=>{"use strict";function oe(t,e){if(e)return new oe(t).style(e);if(!(this instanceof oe))return new oe(t);this.text=t}oe.prototype.prefix="\x1B[";oe.prototype.suffix="m";oe.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};oe.prototype.rgb=function(e,r,n){var i=e/255*5,o=r/255*5,s=n/255*5;return this.ansi(i,o,s)};oe.prototype.ansi=function(e,r,n){var i=Math.round(e),o=Math.round(r),s=Math.round(n);return 16+i*36+o*6+s};oe.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};oe.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Qa.exports=oe});var rl=f((dm,tl)=>{var _p=Xa(),wp=el();tl.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?wp(n+":",_p(n)):n+":";return e[0]=i+" "+e[0],e}});var il=f((pm,nl)=>{"use strict";nl.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var sl=f((gm,ol)=>{var xp=il();ol.exports=function(e){return function(n){try{return xp(n,e())}catch{}return!1}}});var ll=f((mm,al)=>{var Ep=sl();al.exports=Ep(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var cl=f((ym,ul)=>{ul.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var hl=f((bm,fl)=>{var $p=Qn(),Sp=require("tty").isatty(1),Sr=$p(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:Sp,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Sr.modify(rl());Sr.use(ll());Sr.set(cl());fl.exports=Sr});var wt=f((vm,ni)=>{process.env.NODE_ENV==="production"?ni.exports=Ya():ni.exports=hl()});var pl=f((_m,dl)=>{"use strict";var ii=require("fs"),{StringDecoder:Mp}=require("string_decoder"),{Stream:Rp}=Ce();function Op(){}dl.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new Mp("utf8"),i=new Rp,o="",s=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},ii.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function p(){if(i.destroyed){ii.close(u,Op);return}return ii.read(u,r,0,r.length,s,(g,h)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!h)return o&&((t.start==null||a>t.start)&&(e?e(null,o):i.emit("line",o)),a++,o=""),setTimeout(p,1e3);let b=n.write(r.slice(0,h));e||i.emit("data",b),b=(o+b).split(/\n+/);let c=b.length-1,y=0;for(;y<c;y++)(t.start==null||a>t.start)&&(e?e(null,b[y]):i.emit("line",b[y])),a++;return o=b[c],s+=h,p()})})()}),e?i.destroy:i}});var bl=f((xm,yl)=>{"use strict";var X=require("fs"),W=require("path"),gl=La(),Tp=require("zlib"),{MESSAGE:qp}=k(),{Stream:Ap,PassThrough:ml}=Ce(),Lp=Ke(),se=wt()("winston:file"),jp=require("os"),Np=pl();yl.exports=class extends Lp{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(o=>{if(e[o])throw new Error(`Cannot set ${o} and ${n} together`)})}if(this._stream=new ml,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?W.basename(e.filename):"winston.log",this.dirname=e.dirname||W.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=W.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:jp.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[qp]}${this.eol}`,i=Buffer.byteLength(n);function o(){if(this._size+=i,this._pendingSize-=i,se("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let s=this._stream.write(n,o.bind(this));return s?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),se("written",s,this._drain),this.finishIfEnding(),s}query(e,r){typeof e=="function"&&(r=e,e={}),e=g(e);let n=W.join(this.dirname,this.filename),i="",o=[],s=0,a=X.createReadStream(n,{encoding:"utf8"});a.on("error",h=>{if(a.readable&&a.destroy(),!!r)return h.code!=="ENOENT"?r(h):r(null,o)}),a.on("data",h=>{h=(i+h).split(/\n+/);let b=h.length-1,c=0;for(;c<b;c++)(!e.start||s>=e.start)&&l(h[c]),s++;i=h[b]}),a.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(o=o.reverse()),r&&r(null,o)});function l(h,b){try{let c=JSON.parse(h);p(c)&&u(c)}catch(c){b||a.emit("error",c)}}function u(h){if(e.rows&&o.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(h=e.fields.reduce((b,c)=>(b[c]=h[c],b),{})),e.order==="desc"&&o.length>=e.rows&&o.shift(),o.push(h)}function p(h){if(!h||typeof h!="object")return;let b=new Date(h.timestamp);if(!(e.from&&b<e.from||e.until&&b>e.until||e.level&&e.level!==h.level))return!0}function g(h){return h=h||{},h.rows=h.rows||h.limit||10,h.start=h.start||0,h.until=h.until||new Date,typeof h.until!="object"&&(h.until=new Date(h.until)),h.from=h.from||h.until-1440*60*1e3,typeof h.from!="object"&&(h.from=new Date(h.from)),h.order=h.order||"desc",h}}stream(e={}){let r=W.join(this.dirname,this.filename),n=new Ap,i={file:r,start:e.start};return n.destroy=Np(i,(o,s)=>{if(o)return n.emit("error",o);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(a){n.emit("error",a)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);se("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let r=this._getFile(),n=W.join(this.dirname,r);X.stat(n,(i,o)=>{if(i&&i.code==="ENOENT")return se("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return se(`err ${i.code} ${n}`),e(i);if(!o||this._needsNewFile(o.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,o.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=W.join(this.dirname,this.filename);se("create stream start",r,this.options);let n=X.createWriteStream(r,this.options).on("error",i=>se(i)).on("close",()=>se("close",n.path,n.bytesWritten)).on("open",()=>{se("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new ml,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return se("create stream ok",r),n}_incFile(e){se("_incFile",this.filename);let r=W.extname(this._basename),n=W.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(o){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(W.join(this.dirname,`${n}${s}${r}`),W.join(this.dirname,`${n}${s}${r}.gz`),o)}.bind(this)),i.push(function(o){this.tailable?this._checkMaxFilesTailable(r,n,o):(this._created+=1,this._checkMaxFilesIncrementing(r,n,o))}.bind(this)),gl(i,e)}_getFile(){let e=W.extname(this._basename),r=W.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,o=i!==0?i:"",s=this.zippedArchive?".gz":"",a=`${r}${o}${e}${s}`,l=W.join(this.dirname,a);X.unlink(l,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let o=this.zippedArchive?".gz":"";for(let s=this.maxFiles-1;s>1;s--)i.push(function(a,l){let u=`${r}${a-1}${e}${o}`,p=W.join(this.dirname,u);X.exists(p,g=>{if(!g)return l(null);u=`${r}${a}${e}${o}`,X.rename(p,W.join(this.dirname,u),l)})}.bind(this,s));gl(i,()=>{X.rename(W.join(this.dirname,`${r}${e}${o}`),W.join(this.dirname,`${r}1${e}${o}`),n)})}_compressFile(e,r,n){X.access(e,X.F_OK,i=>{if(i)return n();var o=Tp.createGzip(),s=X.createReadStream(e),a=X.createWriteStream(r);a.on("finish",()=>{X.unlink(e,n)}),s.pipe(o).pipe(a)})}_createLogDirIfNotExist(e){X.existsSync(e)||X.mkdirSync(e,{recursive:!0})}}});var _l=f(($m,vl)=>{"use strict";var Pp=require("http"),Cp=require("https"),{Stream:Dp}=Ce(),kp=Ke(),{configure:Ip}=ot();vl.exports=class extends kp{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(o,s,a)=>{if(s&&s.statusCode!==200&&(o=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),o)return r(o);if(typeof a=="string")try{a=JSON.parse(a)}catch(l){return r(l)}r(null,a)})}stream(e={}){let r=new Dp;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let o="",s=this._request(e,i,n);return r.destroy=()=>s.destroy(),s.on("data",a=>{a=(o+a).split(/\n+/);let l=a.length-1,u=0;for(;u<l;u++)try{r.emit("log",JSON.parse(a[u]))}catch(p){r.emit("error",p)}o=a[l]}),s.on("error",a=>r.emit("error",a)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let o=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){o.batchTimeoutID=-1,o._doBatchRequest(o.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let o=Object.assign({},this.headers);n&&n.bearer&&(o.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?Cp:Pp).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:o,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",r),s.on("response",l=>l.on("end",()=>r(null,l)).resume());let a=Ip({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var oi=f((Sm,wl)=>{"use strict";var fe=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fe.writable=t=>fe(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fe.readable=t=>fe(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";fe.duplex=t=>fe.writable(t)&&fe.readable(t);fe.transform=t=>fe.duplex(t)&&typeof t._transform=="function";wl.exports=fe});var El=f((Rm,xl)=>{"use strict";var Fp=oi(),{MESSAGE:Hp}=k(),Up=require("os"),Wp=Ke();xl.exports=class extends Wp{constructor(e={}){if(super(e),!e.stream||!Fp(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:Up.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Hp]}${this.eol}`),r&&r()}}});var $l=f(xt=>{"use strict";Object.defineProperty(xt,"Console",{configurable:!0,enumerable:!0,get(){return Js()}});Object.defineProperty(xt,"File",{configurable:!0,enumerable:!0,get(){return bl()}});Object.defineProperty(xt,"Http",{configurable:!0,enumerable:!0,get(){return _l()}});Object.defineProperty(xt,"Stream",{configurable:!0,enumerable:!0,get(){return El()}})});var Rr=f(Et=>{"use strict";var Mr=an(),{configs:si}=k();Et.cli=Mr.levels(si.cli);Et.npm=Mr.levels(si.npm);Et.syslog=Mr.levels(si.syslog);Et.addColors=Mr.levels});var Ml=f((Or,Sl)=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});var Bp=sr(),zp=De(Bp),Yp=mr(),Vp=De(Yp),Gp=Bn(),Kp=De(Gp),Jp=Hn(),Zp=De(Jp),Xp=Un(),Qp=De(Xp),e0=Pe(),t0=De(e0),r0=Ze(),n0=De(r0);function De(t){return t&&t.__esModule?t:{default:t}}function i0(t,e,r){r=(0,Zp.default)(r);var n=0,i=0,{length:o}=t,s=!1;o===0&&r(null);function a(l,u){l===!1&&(s=!0),s!==!0&&(l?r(l):(++i===o||u===Vp.default)&&r(null))}for(;n<o;n++)e(t[n],n,(0,Qp.default)(a))}function o0(t,e,r){return(0,Kp.default)(t,1/0,e,r)}function s0(t,e,r){var n=(0,zp.default)(t)?i0:o0;return n(t,(0,t0.default)(e),r)}Or.default=(0,n0.default)(s0,3);Sl.exports=Or.default});var Ol=f((Tr,Rl)=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=a0;function a0(t){return(e,r,n)=>t(e,n)}Rl.exports=Tr.default});var Lr=f((Ar,Tl)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var l0=Ml(),u0=qr(l0),c0=Ol(),f0=qr(c0),h0=Pe(),d0=qr(h0),p0=Ze(),g0=qr(p0);function qr(t){return t&&t.__esModule?t:{default:t}}function m0(t,e,r){return(0,u0.default)(t,(0,f0.default)((0,d0.default)(e)),r)}Ar.default=(0,g0.default)(m0,3);Tl.exports=Ar.default});var Al=f((qm,ql)=>{"use strict";var y0=Object.prototype.toString;ql.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=y0.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var ai=f((Am,Ll)=>{"use strict";var b0=Al();Ll.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=b0(e),i}});var li=f(St=>{St.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(o,s){return s},Error.captureStackTrace(r,t||St.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};St.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
27
+ `).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var o=null,s=null,a=null,l=null,u=null,p=i[5]==="native";if(i[1]){a=i[1];var g=a.lastIndexOf(".");if(a[g-1]=="."&&g--,g>0){o=a.substr(0,g),s=a.substr(g+1);var h=o.indexOf(".Module");h>0&&(a=a.substr(h+1),o=o.substr(0,h))}l=null}s&&(l=o,u=s),s==="<anonymous>"&&(u=null,a=null);var b={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:l,methodName:u,columnNumber:parseInt(i[4],10)||null,native:p};return e._createParsedCallSite(b)}}).filter(function(n){return!!n})};function $t(t){for(var e in t)this[e]=t[e]}var v0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],_0=["topLevel","eval","native","constructor"];v0.forEach(function(t){$t.prototype[t]=null,$t.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});_0.forEach(function(t){$t.prototype[t]=!1,$t.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});St._createParsedCallSite=function(t){return new $t(t)}});var Nl=f((Nm,jl)=>{"use strict";var{Writable:w0}=Ce();jl.exports=class extends w0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,r,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var ci=f((Cm,Dl)=>{"use strict";var Pl=require("os"),x0=Lr(),ui=wt()("winston:exception"),E0=ai(),Cl=li(),$0=Nl();Dl.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
28
+ `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Pl.loadavg(),uptime:Pl.uptime()}}getTrace(e){return(e?Cl.parse(e):Cl.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let r=new $0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function s(){ui("doExit",i),ui("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);x0(n,(a,l)=>{let u=E0(l),p=a.transport||a;function g(h){return()=>{ui(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Il=f((km,kl)=>{"use strict";var{Writable:S0}=Ce();kl.exports=class extends S0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,r,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var hi=f((Fm,Ul)=>{"use strict";var Fl=require("os"),M0=Lr(),fi=wt()("winston:rejection"),R0=ai(),Hl=li(),O0=Il();Ul.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
+ `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Fl.loadavg(),uptime:Fl.uptime()}}getTrace(e){return(e?Hl.parse(e):Hl.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let r=new O0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function s(){fi("doExit",i),fi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);M0(n,(a,l)=>{let u=R0(l),p=a.transport||a;function g(h){return()=>{fi(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Bl=f((Hm,Wl)=>{"use strict";var di=class{constructor(e){let r=jr();if(typeof e!="object"||Array.isArray(e)||!(e instanceof r))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let r=typeof e[e.length-1]=="object"?e.pop():{};return r.level=r.level||"info",r.durationMs=Date.now()-this.start,this.logger.write(r)}};Wl.exports=di});var jr=f((Um,Gl)=>{"use strict";var{Stream:T0,Transform:q0}=Ce(),zl=Lr(),{LEVEL:he,SPLAT:Yl}=k(),Vl=oi(),A0=ci(),L0=hi(),j0=kn(),N0=Bl(),{warn:P0}=ln(),C0=Rr(),D0=/%[scdjifoO%]/g,Nr=class extends q0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:l,emitErrs:u,formatters:p,padLevels:g,rewriters:h,stripColors:b,exceptionHandlers:c,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||tn()(),this.defaultMeta=n||null,this.levels=i||this.levels||C0.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new A0(this),this.rejections=new L0(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a],a.forEach(w=>this.add(w))),l||u||p||g||h||b)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
+ `));c&&this.exceptions.handle(c),y&&this.rejections.handle(y)}getHighestLogLevel(){let e=Mt(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Mt(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Mt(this.levels,e);if(r===null)return!1;let n=Mt(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(o=>{let s=Mt(this.levels,o.level);return s===null&&(s=n),s>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[he]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[he]:e,level:e,message:r},this._addDefaultMeta(r),this.write(r),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(r&&r.match&&r.match(D0))){let s=Object.assign({},this.defaultMeta,i,{[he]:e,[Yl]:n,level:e,message:r});return i.message&&(s.message=`${s.message} ${i.message}`),i.stack&&(s.stack=i.stack),i.cause&&(s.cause=i.cause),this.write(s),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[Yl]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let r=this.transports.slice();zl(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Vl(e)||e.log.length>2?new j0({transport:e}):e;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let r=e;return(!Vl(e)||e.log.length>2)&&(r=this.transports.filter(n=>n.transport===e)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){P0.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function o(a,l){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(u,p)=>{if(u)return l(u);typeof a.formatResults=="function"&&(p=a.formatResults(p,e.format)),l(null,p)})}function s(a,l){o(a,(u,p)=>{l&&(p=u||p,p&&(n[a.name]=p),l()),l=null})}zl(this.transports.filter(a=>!!a.query),s,()=>r(null,n))}stream(e={}){let r=new T0,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let o=i.stream(e);o&&(n.push(o),o.on("log",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("log",s)}),o.on("error",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("error",s)}))}),r}startTimer(){return new N0(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let o=typeof r[r.length-1]=="object"?r.pop():{};return o.level=o.level||"info",o.durationMs=n-i,o.message=o.message||e,this.write(o)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
+ `))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Mt(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Nr.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Gl.exports=Nr});var pi=f((Wm,Kl)=>{"use strict";var{LEVEL:k0}=k(),I0=Rr(),F0=jr(),H0=wt()("winston:create-logger");function U0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Kl.exports=function(t={}){t.levels=t.levels||I0.npm.levels;class e extends F0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(H0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let o=this||r;if(i.length===1){let[s]=i,a=s&&s.message&&s||{message:s};return a.level=a[k0]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[U0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Zl=f((zm,Jl)=>{"use strict";var W0=pi();Jl.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=W0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Ql=f(A=>{"use strict";var Xl=an(),{warn:Rt}=ln();A.version=Go().version;A.transports=$l();A.config=Rr();A.addColors=Xl.levels;A.format=Xl.format;A.createLogger=pi();A.Logger=jr();A.ExceptionHandler=ci();A.RejectionHandler=hi();A.Container=Zl();A.Transport=Ke();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>A[t]=(...e)=>de[t](...e));Object.defineProperty(A,"level",{get(){return de.level},set(t){de.level=t}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(A,t,{get(){return de[t]},set(e){de[t]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});Rt.deprecated(A,"setLevels");Rt.forFunctions(A,"useFormat",["cli"]);Rt.forProperties(A,"useFormat",["padLevels","stripColors"]);Rt.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);Rt.forProperties(A,"deprecated",["emitErrs","levelLength"])});var G0={};cu(G0,{default:()=>V0});module.exports=hu(G0);var du=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],pu=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.neutral-subtle"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],gu=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],xi=[...du,...pu,...gu];var mu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),yu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),bu=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),vu=/[^\p{L}\d]+/giu,Ei="$1\0$2",$i="";function Si(t){let e=t.trim();e=e.replace(mu,Ei).replace(yu,Ei),e=e.replace(vu,"\0");let r=0,n=e.length;for(;e.charAt(r)==="\0";)r++;if(r===n)return[];for(;e.charAt(n-1)==="\0";)n--;return e.slice(r,n).split(/\0/g)}function _u(t){let e=Si(t);for(let r=0;r<e.length;r++){let n=e[r],i=bu.exec(n);if(i){let o=i.index+(i[1]??i[2]).length;e.splice(r,1,n.slice(0,o),n.slice(o))}}return e}function Cr(t,e){let[r,n,i]=Su(t,e),o=wu(e==null?void 0:e.locale),s=xu(e==null?void 0:e.locale),a=e!=null&&e.mergeAmbiguousCharacters?Eu(o,s):$u(o,s);return r+n.map((l,u)=>u===0?o(l):a(l,u)).join((e==null?void 0:e.delimiter)??"")+i}function wu(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function xu(t){return t===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t)}function Eu(t,e){return r=>`${e(r[0])}${t(r.slice(1))}`}function $u(t,e){return(r,n)=>{let i=r[0];return(n>0&&i>="0"&&i<="9"?"_"+i:e(i))+t(r.slice(1))}}function Su(t,e={}){let r=e.split??(e.separateNumbers?_u:Si),n=e.prefixCharacters??$i,i=e.suffixCharacters??$i,o=0,s=t.length;for(;o<t.length;){let a=t.charAt(o);if(!n.includes(a))break;o++}for(;s>o;){let a=s-1,l=t.charAt(a);if(!i.includes(l))break;s=a}return[t.slice(0,o),r(t.slice(o,s)),t.slice(s)]}var B=fu(Ql());function eu(t){let e=B.format.printf(({message:a,timestamp:l,metadata:u})=>{let{previousToken:p,nextToken:g,line:h}=u,b=h?`(line ${h})`:"";return`${l} ${a}: ${p} \u2192 ${g} ${b}`}),r=B.format.printf(({level:a,message:l,timestamp:u,failureReason:p,metadata:g})=>{let{previousToken:h,description:b}=g,c=b||p||"";return`${u} [${a.toUpperCase()}]: ${l}
32
+ \u21B3 reason: ${h} ${c}`}),n=B.format.printf(({level:a,message:l,timestamp:u})=>`${u} [${a.toUpperCase()}]: ${l}`),i=(0,B.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="success"?a:!1}),o=(0,B.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?a:!1}),s=(0,B.createLogger)({level:"debug",transports:[new B.transports.File({filename:`.report/${t}-success.log`,format:B.format.combine(i(),B.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new B.transports.File({filename:`.report/${t}-issues.log`,format:B.format.combine(o(),B.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),r)}),new B.transports.File({filename:`.report/${t}-debug.log`,level:"debug",format:B.format.combine(B.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:s,logTransformResult(a,l){let{status:u,failureReason:p,needsVerification:g,description:h,previousToken:b,nextToken:c}=l,y=u==="success"?"info":u==="warning"?"warn":"error",w=l.line?`(line: ${l.line})`:"";s.log({level:y,message:`${a} ${w}`,...p&&{failureReason:p},...h&&{description:h},metadata:l}),g&&u==="success"&&s.log({level:"warn",message:`${a} ${w}`,metadata:{previousToken:b,nextToken:c,status:"warning",description:h||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(a){s.debug(`Starting transformation of ${a}`)},finishFile(a){s.debug(`Finished transformation of ${a}`)}}}function B0(t){let e=t.replace(/^\$(semantic|static|scale)\.color\./,"").split(".").join("-");return Cr(e,{mergeAmbiguousCharacters:!0})}function z0(t){let e=t.next.find(n=>n.startsWith("$color.fg"));if(e)return e;let r=t.next.find(n=>n.startsWith("$color.palette"));if(r)return r;if(t.alternative&&t.alternative.length>0){let n=t.alternative.find(i=>i.startsWith("$color.palette"));if(n)return n}return null}function gi(t){if(t.includes("."))return t;for(let e of xi)if(B0(e.previous)===t){let n=z0(e);if(n)return n.replace("$color.","").split(".").map((i,o)=>o===0?i:Cr(i,{mergeAmbiguousCharacters:!0})).join(".")}return`palette.${t}`}var Y0=(t,e)=>{let r=eu("replace-custom-text-component-color-prop"),n=e.jscodeshift,i=n(t.source);return r.startFile(t.path),i.find(n.JSXElement).filter(o=>{let s=o.node.openingElement.name;return s.type==="JSXIdentifier"&&s.name==="Text"}).forEach(o=>{var l,u,p,g;let a=o.node.openingElement.attributes.find(h=>h.type==="JSXAttribute"&&h.name.name==="color");if(!(!a||a.type!=="JSXAttribute")){if(((l=a.value)==null?void 0:l.type)==="StringLiteral"){let h=a.value.value,b=gi(h);h!==b&&(a.value.value=b,r.logTransformResult(t.path,{previousToken:h,nextToken:b,status:"success",line:(u=a.loc)==null?void 0:u.start.line}))}else if(((p=a.value)==null?void 0:p.type)==="JSXExpressionContainer"){let h=a.value.expression;h.type==="ConditionalExpression"&&(h.consequent.type==="StringLiteral"&&(h.consequent.value=gi(h.consequent.value)),h.alternate.type==="StringLiteral"&&(h.alternate.value=gi(h.alternate.value)),r.logTransformResult(t.path,{previousToken:"conditional expression",nextToken:"transformed conditional expression",status:"success",line:(g=a.loc)==null?void 0:g.start.line}))}}}),r.finishFile(t.path),i.toSource()},V0=Y0;
33
33
  /*! Bundled license information:
34
34
 
35
35
  safe-buffer/index.js: