@transai/connector-runner-file 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -6,7 +6,7 @@ Line: `+b.line+`
6
6
  Column: `+b.column+`
7
7
  Char: `+b.c),f=new Error(f),b.error=f,T(b,"onerror",f),b}function $(b){return b.sawRoot&&!b.closedRoot&&x(b,"Unclosed root tag"),b.state!==p.BEGIN&&b.state!==p.BEGIN_WHITESPACE&&b.state!==p.TEXT&&B(b,"Unexpected end"),L(b),b.c="",b.closed=!0,T(b,"onend"),r.call(b,b.strict,b.opt),b}function x(b,f){if(typeof b!="object"||!(b instanceof r))throw new Error("bad call to strictFail");b.strict&&B(b,f)}function q(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var f=b.tags[b.tags.length-1]||b,A=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(A.ns=f.ns),b.attribList.length=0,P(b,"onopentagstart",A)}function j(b,f){var A=b.indexOf(":"),O=A<0?["",b]:b.split(":"),K=O[0],Y=O[1];return f&&b==="xmlns"&&(K="xmlns",Y=""),{prefix:K,local:Y}}function J(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var f=j(b.attribName,!0),A=f.prefix,O=f.local;if(A==="xmlns")if(O==="xml"&&b.attribValue!==y)x(b,"xml: prefix must be bound to "+y+`
8
8
  Actual: `+b.attribValue);else if(O==="xmlns"&&b.attribValue!==m)x(b,"xmlns: prefix must be bound to "+m+`
9
- Actual: `+b.attribValue);else{var K=b.tag,Y=b.tags[b.tags.length-1]||b;K.ns===Y.ns&&(K.ns=Object.create(Y.ns)),K.ns[O]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,P(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function k(b,f){if(b.opt.xmlns){var A=b.tag,O=j(b.tagName);A.prefix=O.prefix,A.local=O.local,A.uri=A.ns[O.prefix]||"",A.prefix&&!A.uri&&(x(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),A.uri=O.prefix);var K=b.tags[b.tags.length-1]||b;A.ns&&K.ns!==A.ns&&Object.keys(A.ns).forEach(function(ba){P(b,"onopennamespace",{prefix:ba,uri:A.ns[ba]})});for(var Y=0,Q=b.attribList.length;Y<Q;Y++){var ie=b.attribList[Y],oe=ie[0],Ke=ie[1],z=j(oe,!0),de=z.prefix,tr=z.local,en=de===""?"":A.ns[de]||"",xt={name:oe,value:Ke,prefix:de,local:tr,uri:en};de&&de!=="xmlns"&&!en&&(x(b,"Unbound namespace prefix: "+JSON.stringify(de)),xt.uri=de),b.tag.attributes[oe]=xt,P(b,"onattribute",xt)}b.attribList.length=0}b.tag.isSelfClosing=!!f,b.sawRoot=!0,b.tags.push(b.tag),P(b,"onopentag",b.tag),f||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=p.SCRIPT:b.state=p.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function me(b){if(!b.tagName){x(b,"Weird empty close tag."),b.textNode+="</>",b.state=p.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=p.SCRIPT;return}P(b,"onscript",b.script),b.script=""}var f=b.tags.length,A=b.tagName;b.strict||(A=A[b.looseCase]());for(var O=A;f--;){var K=b.tags[f];if(K.name!==O)x(b,"Unexpected close tag");else break}if(f<0){x(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=p.TEXT;return}b.tagName=A;for(var Y=b.tags.length;Y-- >f;){var Q=b.tag=b.tags.pop();b.tagName=b.tag.name,P(b,"onclosetag",b.tagName);var ie={};for(var oe in Q.ns)ie[oe]=Q.ns[oe];var Ke=b.tags[b.tags.length-1]||b;b.opt.xmlns&&Q.ns!==Ke.ns&&Object.keys(Q.ns).forEach(function(z){var de=Q.ns[z];P(b,"onclosenamespace",{prefix:z,uri:de})})}f===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=p.TEXT}function Fe(b){var f=b.entity,A=f.toLowerCase(),O,K="";return b.ENTITIES[f]?b.ENTITIES[f]:b.ENTITIES[A]?b.ENTITIES[A]:(f=A,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),O=parseInt(f,16),K=O.toString(16)):(f=f.slice(1),O=parseInt(f,10),K=O.toString(10))),f=f.replace(/^0+/,""),isNaN(O)||K.toLowerCase()!==f||O<0||O>1114111?(x(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(O))}function We(b,f){f==="<"?(b.state=p.OPEN_WAKA,b.startTagPosition=b.position):g(f)||(x(b,"Non-whitespace before first tag."),b.textNode=f,b.state=p.TEXT)}function Xe(b,f){var A="";return f<b.length&&(A=b.charAt(f)),A}function Zr(b){var f=this;if(this.error)throw this.error;if(f.closed)return B(f,"Cannot write after close. Assign an onready handler.");if(b===null)return $(f);typeof b=="object"&&(b=b.toString());for(var A=0,O="";O=Xe(b,A++),f.c=O,!!O;)switch(f.trackPosition&&(f.position++,O===`
9
+ Actual: `+b.attribValue);else{var K=b.tag,Y=b.tags[b.tags.length-1]||b;K.ns===Y.ns&&(K.ns=Object.create(Y.ns)),K.ns[O]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,P(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function k(b,f){if(b.opt.xmlns){var A=b.tag,O=j(b.tagName);A.prefix=O.prefix,A.local=O.local,A.uri=A.ns[O.prefix]||"",A.prefix&&!A.uri&&(x(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),A.uri=O.prefix);var K=b.tags[b.tags.length-1]||b;A.ns&&K.ns!==A.ns&&Object.keys(A.ns).forEach(function(ba){P(b,"onopennamespace",{prefix:ba,uri:A.ns[ba]})});for(var Y=0,Q=b.attribList.length;Y<Q;Y++){var ie=b.attribList[Y],oe=ie[0],Ke=ie[1],z=j(oe,!0),pe=z.prefix,tr=z.local,en=pe===""?"":A.ns[pe]||"",xt={name:oe,value:Ke,prefix:pe,local:tr,uri:en};pe&&pe!=="xmlns"&&!en&&(x(b,"Unbound namespace prefix: "+JSON.stringify(pe)),xt.uri=pe),b.tag.attributes[oe]=xt,P(b,"onattribute",xt)}b.attribList.length=0}b.tag.isSelfClosing=!!f,b.sawRoot=!0,b.tags.push(b.tag),P(b,"onopentag",b.tag),f||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=p.SCRIPT:b.state=p.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function me(b){if(!b.tagName){x(b,"Weird empty close tag."),b.textNode+="</>",b.state=p.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=p.SCRIPT;return}P(b,"onscript",b.script),b.script=""}var f=b.tags.length,A=b.tagName;b.strict||(A=A[b.looseCase]());for(var O=A;f--;){var K=b.tags[f];if(K.name!==O)x(b,"Unexpected close tag");else break}if(f<0){x(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=p.TEXT;return}b.tagName=A;for(var Y=b.tags.length;Y-- >f;){var Q=b.tag=b.tags.pop();b.tagName=b.tag.name,P(b,"onclosetag",b.tagName);var ie={};for(var oe in Q.ns)ie[oe]=Q.ns[oe];var Ke=b.tags[b.tags.length-1]||b;b.opt.xmlns&&Q.ns!==Ke.ns&&Object.keys(Q.ns).forEach(function(z){var pe=Q.ns[z];P(b,"onclosenamespace",{prefix:z,uri:pe})})}f===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=p.TEXT}function Fe(b){var f=b.entity,A=f.toLowerCase(),O,K="";return b.ENTITIES[f]?b.ENTITIES[f]:b.ENTITIES[A]?b.ENTITIES[A]:(f=A,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),O=parseInt(f,16),K=O.toString(16)):(f=f.slice(1),O=parseInt(f,10),K=O.toString(10))),f=f.replace(/^0+/,""),isNaN(O)||K.toLowerCase()!==f||O<0||O>1114111?(x(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(O))}function We(b,f){f==="<"?(b.state=p.OPEN_WAKA,b.startTagPosition=b.position):g(f)||(x(b,"Non-whitespace before first tag."),b.textNode=f,b.state=p.TEXT)}function Xe(b,f){var A="";return f<b.length&&(A=b.charAt(f)),A}function Zr(b){var f=this;if(this.error)throw this.error;if(f.closed)return B(f,"Cannot write after close. Assign an onready handler.");if(b===null)return $(f);typeof b=="object"&&(b=b.toString());for(var A=0,O="";O=Xe(b,A++),f.c=O,!!O;)switch(f.trackPosition&&(f.position++,O===`
10
10
  `?(f.line++,f.column=0):f.column++),f.state){case p.BEGIN:if(f.state=p.BEGIN_WHITESPACE,O==="\uFEFF")continue;We(f,O);continue;case p.BEGIN_WHITESPACE:We(f,O);continue;case p.TEXT:if(f.sawRoot&&!f.closedRoot){for(var Y=A-1;O&&O!=="<"&&O!=="&";)O=Xe(b,A++),O&&f.trackPosition&&(f.position++,O===`
11
11
  `?(f.line++,f.column=0):f.column++);f.textNode+=b.substring(Y,A-1)}O==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=p.OPEN_WAKA,f.startTagPosition=f.position):(!g(O)&&(!f.sawRoot||f.closedRoot)&&x(f,"Text data outside of root node."),O==="&"?f.state=p.TEXT_ENTITY:f.textNode+=O);continue;case p.SCRIPT:O==="<"?f.state=p.SCRIPT_ENDING:f.script+=O;continue;case p.SCRIPT_ENDING:O==="/"?f.state=p.CLOSE_TAG:(f.script+="<"+O,f.state=p.SCRIPT);continue;case p.OPEN_WAKA:if(O==="!")f.state=p.SGML_DECL,f.sgmlDecl="";else if(!g(O))if(_(v,O))f.state=p.OPEN_TAG,f.tagName=O;else if(O==="/")f.state=p.CLOSE_TAG,f.tagName="";else if(O==="?")f.state=p.PROC_INST,f.procInstName=f.procInstBody="";else{if(x(f,"Unencoded <"),f.startTagPosition+1<f.position){var K=f.position-f.startTagPosition;O=new Array(K).join(" ")+O}f.textNode+="<"+O,f.state=p.TEXT}continue;case p.SGML_DECL:if(f.sgmlDecl+O==="--"){f.state=p.COMMENT,f.comment="",f.sgmlDecl="";continue}f.doctype&&f.doctype!==!0&&f.sgmlDecl?(f.state=p.DOCTYPE_DTD,f.doctype+="<!"+f.sgmlDecl+O,f.sgmlDecl=""):(f.sgmlDecl+O).toUpperCase()===w?(P(f,"onopencdata"),f.state=p.CDATA,f.sgmlDecl="",f.cdata=""):(f.sgmlDecl+O).toUpperCase()===E?(f.state=p.DOCTYPE,(f.doctype||f.sawRoot)&&x(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):O===">"?(P(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=p.TEXT):(c(O)&&(f.state=p.SGML_DECL_QUOTED),f.sgmlDecl+=O);continue;case p.SGML_DECL_QUOTED:O===f.q&&(f.state=p.SGML_DECL,f.q=""),f.sgmlDecl+=O;continue;case p.DOCTYPE:O===">"?(f.state=p.TEXT,P(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=O,O==="["?f.state=p.DOCTYPE_DTD:c(O)&&(f.state=p.DOCTYPE_QUOTED,f.q=O));continue;case p.DOCTYPE_QUOTED:f.doctype+=O,O===f.q&&(f.q="",f.state=p.DOCTYPE);continue;case p.DOCTYPE_DTD:O==="]"?(f.doctype+=O,f.state=p.DOCTYPE):O==="<"?(f.state=p.OPEN_WAKA,f.startTagPosition=f.position):c(O)?(f.doctype+=O,f.state=p.DOCTYPE_DTD_QUOTED,f.q=O):f.doctype+=O;continue;case p.DOCTYPE_DTD_QUOTED:f.doctype+=O,O===f.q&&(f.state=p.DOCTYPE_DTD,f.q="");continue;case p.COMMENT:O==="-"?f.state=p.COMMENT_ENDING:f.comment+=O;continue;case p.COMMENT_ENDING:O==="-"?(f.state=p.COMMENT_ENDED,f.comment=C(f.opt,f.comment),f.comment&&P(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+O,f.state=p.COMMENT);continue;case p.COMMENT_ENDED:O!==">"?(x(f,"Malformed comment"),f.comment+="--"+O,f.state=p.COMMENT):f.doctype&&f.doctype!==!0?f.state=p.DOCTYPE_DTD:f.state=p.TEXT;continue;case p.CDATA:for(var Y=A-1;O&&O!=="]";)O=Xe(b,A++),O&&f.trackPosition&&(f.position++,O===`
12
12
  `?(f.line++,f.column=0):f.column++);f.cdata+=b.substring(Y,A-1),O==="]"&&(f.state=p.CDATA_ENDING);continue;case p.CDATA_ENDING:O==="]"?f.state=p.CDATA_ENDING_2:(f.cdata+="]"+O,f.state=p.CDATA);continue;case p.CDATA_ENDING_2:O===">"?(f.cdata&&P(f,"oncdata",f.cdata),P(f,"onclosecdata"),f.cdata="",f.state=p.TEXT):O==="]"?f.cdata+="]":(f.cdata+="]]"+O,f.state=p.CDATA);continue;case p.PROC_INST:O==="?"?f.state=p.PROC_INST_ENDING:g(O)?f.state=p.PROC_INST_BODY:f.procInstName+=O;continue;case p.PROC_INST_BODY:if(!f.procInstBody&&g(O))continue;O==="?"?f.state=p.PROC_INST_ENDING:f.procInstBody+=O;continue;case p.PROC_INST_ENDING:O===">"?(P(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=p.TEXT):(f.procInstBody+="?"+O,f.state=p.PROC_INST_BODY);continue;case p.OPEN_TAG:_(I,O)?f.tagName+=O:(q(f),O===">"?k(f):O==="/"?f.state=p.OPEN_TAG_SLASH:(g(O)||x(f,"Invalid character in tag name"),f.state=p.ATTRIB));continue;case p.OPEN_TAG_SLASH:O===">"?(k(f,!0),me(f)):(x(f,"Forward-slash in opening tag not followed by >"),f.state=p.ATTRIB);continue;case p.ATTRIB:if(g(O))continue;O===">"?k(f):O==="/"?f.state=p.OPEN_TAG_SLASH:_(v,O)?(f.attribName=O,f.attribValue="",f.state=p.ATTRIB_NAME):x(f,"Invalid attribute name");continue;case p.ATTRIB_NAME:O==="="?f.state=p.ATTRIB_VALUE:O===">"?(x(f,"Attribute without value"),f.attribValue=f.attribName,J(f),k(f)):g(O)?f.state=p.ATTRIB_NAME_SAW_WHITE:_(I,O)?f.attribName+=O:x(f,"Invalid attribute name");continue;case p.ATTRIB_NAME_SAW_WHITE:if(O==="=")f.state=p.ATTRIB_VALUE;else{if(g(O))continue;x(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",P(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",O===">"?k(f):_(v,O)?(f.attribName=O,f.state=p.ATTRIB_NAME):(x(f,"Invalid attribute name"),f.state=p.ATTRIB)}continue;case p.ATTRIB_VALUE:if(g(O))continue;c(O)?(f.q=O,f.state=p.ATTRIB_VALUE_QUOTED):(f.opt.unquotedAttributeValues||B(f,"Unquoted attribute value"),f.state=p.ATTRIB_VALUE_UNQUOTED,f.attribValue=O);continue;case p.ATTRIB_VALUE_QUOTED:if(O!==f.q){O==="&"?f.state=p.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=O;continue}J(f),f.q="",f.state=p.ATTRIB_VALUE_CLOSED;continue;case p.ATTRIB_VALUE_CLOSED:g(O)?f.state=p.ATTRIB:O===">"?k(f):O==="/"?f.state=p.OPEN_TAG_SLASH:_(v,O)?(x(f,"No whitespace between attributes"),f.attribName=O,f.attribValue="",f.state=p.ATTRIB_NAME):x(f,"Invalid attribute name");continue;case p.ATTRIB_VALUE_UNQUOTED:if(!l(O)){O==="&"?f.state=p.ATTRIB_VALUE_ENTITY_U:f.attribValue+=O;continue}J(f),O===">"?k(f):f.state=p.ATTRIB;continue;case p.CLOSE_TAG:if(f.tagName)O===">"?me(f):_(I,O)?f.tagName+=O:f.script?(f.script+="</"+f.tagName,f.tagName="",f.state=p.SCRIPT):(g(O)||x(f,"Invalid tagname in closing tag"),f.state=p.CLOSE_TAG_SAW_WHITE);else{if(g(O))continue;N(v,O)?f.script?(f.script+="</"+O,f.state=p.SCRIPT):x(f,"Invalid tagname in closing tag."):f.tagName=O}continue;case p.CLOSE_TAG_SAW_WHITE:if(g(O))continue;O===">"?me(f):x(f,"Invalid characters in closing tag");continue;case p.TEXT_ENTITY:case p.ATTRIB_VALUE_ENTITY_Q:case p.ATTRIB_VALUE_ENTITY_U:var Q,ie;switch(f.state){case p.TEXT_ENTITY:Q=p.TEXT,ie="textNode";break;case p.ATTRIB_VALUE_ENTITY_Q:Q=p.ATTRIB_VALUE_QUOTED,ie="attribValue";break;case p.ATTRIB_VALUE_ENTITY_U:Q=p.ATTRIB_VALUE_UNQUOTED,ie="attribValue";break}if(O===";"){var oe=Fe(f);f.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(oe)?(f.entity="",f.state=Q,f.write(oe)):(f[ie]+=oe,f.entity="",f.state=Q)}else _(f.entity.length?D:R,O)?f.entity+=O:(x(f,"Invalid character in entity name"),f[ie]+="&"+f.entity+O,f.entity="",f.state=Q);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&n(f),f}String.fromCodePoint||(function(){var b=String.fromCharCode,f=Math.floor,A=function(){var O=16384,K=[],Y,Q,ie=-1,oe=arguments.length;if(!oe)return"";for(var Ke="";++ie<oe;){var z=Number(arguments[ie]);if(!isFinite(z)||z<0||z>1114111||f(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?K.push(z):(z-=65536,Y=(z>>10)+55296,Q=z%1024+56320,K.push(Y,Q)),(ie+1===oe||K.length>O)&&(Ke+=b.apply(null,K),K.length=0)}return Ke};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A})()})(typeof vn>"u"?vn.sax={}:vn)});var Vu=S(no=>{"use strict";(function(){"use strict";no.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(no)});var io=S(ft=>{"use strict";(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),ft.normalize=function(e){return e.toLowerCase()},ft.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},ft.stripPrefix=function(e){return e.replace(t,"")},ft.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},ft.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()==="true"),e}}).call(ft)});var Hu=S(je=>{"use strict";(function(){"use strict";var t,e,r,n,i,o,s,a,u,d=function(y,m){return function(){return y.apply(m,arguments)}},w=function(y,m){for(var h in m)E.call(m,h)&&(y[h]=m[h]);function v(){this.constructor=y}return v.prototype=m.prototype,y.prototype=new v,y.__super__=m.prototype,y},E={}.hasOwnProperty;a=Uu(),n=require("events"),t=Vu(),s=io(),u=require("timers").setImmediate,e=sn().defaults,i=function(y){return typeof y=="object"&&y!=null&&Object.keys(y).length===0},o=function(y,m,h){var v,I,R;for(v=0,I=y.length;v<I;v++)R=y[v],m=R(m,h);return m},r=function(y,m,h){var v;return v=Object.create(null),v.value=h,v.writable=!0,v.enumerable=!0,v.configurable=!0,Object.defineProperty(y,m,v)},je.Parser=(function(y){w(m,y);function m(h){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var v,I,R;if(!(this instanceof je.Parser))return new je.Parser(h);this.options={},I=e["0.2"];for(v in I)E.call(I,v)&&(R=I[v],this.options[v]=R);for(v in h)E.call(h,v)&&(R=h[v],this.options[v]=R);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(s.normalize)),this.reset()}return m.prototype.processAsync=function(){var h,v;try{return this.remaining.length<=this.options.chunkSize?(h=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(h),this.saxParser.close()):(h=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(h),u(this.processAsync))}catch(I){if(v=I,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},m.prototype.assignOrPush=function(h,v,I){return v in h?(h[v]instanceof Array||r(h,v,[h[v]]),h[v].push(I)):this.options.explicitArray?r(h,v,[I]):r(h,v,I)},m.prototype.reset=function(){var h,v,I,R;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(D){return function(g){if(D.saxParser.resume(),!D.saxParser.errThrown)return D.saxParser.errThrown=!0,D.emit("error",g)}})(this),this.saxParser.onend=(function(D){return function(){if(!D.saxParser.ended)return D.saxParser.ended=!0,D.emit("end",D.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,R=[],h=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=(function(D){return function(g){var c,l,_,N,p;if(_={},_[v]="",!D.options.ignoreAttrs){p=g.attributes;for(c in p)E.call(p,c)&&(!(h in _)&&!D.options.mergeAttrs&&(_[h]={}),l=D.options.attrValueProcessors?o(D.options.attrValueProcessors,g.attributes[c],c):g.attributes[c],N=D.options.attrNameProcessors?o(D.options.attrNameProcessors,c):c,D.options.mergeAttrs?D.assignOrPush(_,N,l):r(_[h],N,l))}return _["#name"]=D.options.tagNameProcessors?o(D.options.tagNameProcessors,g.name):g.name,D.options.xmlns&&(_[D.options.xmlnskey]={uri:g.uri,local:g.local}),R.push(_)}})(this),this.saxParser.onclosetag=(function(D){return function(){var g,c,l,_,N,p,M,T,P,L;if(p=R.pop(),N=p["#name"],(!D.options.explicitChildren||!D.options.preserveChildrenOrder)&&delete p["#name"],p.cdata===!0&&(g=p.cdata,delete p.cdata),P=R[R.length-1],p[v].match(/^\s*$/)&&!g?(c=p[v],delete p[v]):(D.options.trim&&(p[v]=p[v].trim()),D.options.normalize&&(p[v]=p[v].replace(/\s{2,}/g," ").trim()),p[v]=D.options.valueProcessors?o(D.options.valueProcessors,p[v],N):p[v],Object.keys(p).length===1&&v in p&&!D.EXPLICIT_CHARKEY&&(p=p[v])),i(p)&&(typeof D.options.emptyTag=="function"?p=D.options.emptyTag():p=D.options.emptyTag!==""?D.options.emptyTag:c),D.options.validator!=null&&(L="/"+(function(){var C,B,$;for($=[],C=0,B=R.length;C<B;C++)_=R[C],$.push(_["#name"]);return $})().concat(N).join("/"),(function(){var C;try{return p=D.options.validator(L,P&&P[N],p)}catch(B){return C=B,D.emit("error",C)}})()),D.options.explicitChildren&&!D.options.mergeAttrs&&typeof p=="object"){if(!D.options.preserveChildrenOrder)_={},D.options.attrkey in p&&(_[D.options.attrkey]=p[D.options.attrkey],delete p[D.options.attrkey]),!D.options.charsAsChildren&&D.options.charkey in p&&(_[D.options.charkey]=p[D.options.charkey],delete p[D.options.charkey]),Object.getOwnPropertyNames(p).length>0&&(_[D.options.childkey]=p),p=_;else if(P){P[D.options.childkey]=P[D.options.childkey]||[],M={};for(l in p)E.call(p,l)&&r(M,l,p[l]);P[D.options.childkey].push(M),delete p["#name"],Object.keys(p).length===1&&v in p&&!D.EXPLICIT_CHARKEY&&(p=p[v])}}return R.length>0?D.assignOrPush(P,N,p):(D.options.explicitRoot&&(T=p,p={},r(p,N,T)),D.resultObject=p,D.saxParser.ended=!0,D.emit("end",D.resultObject))}})(this),I=(function(D){return function(g){var c,l;if(l=R[R.length-1],l)return l[v]+=g,D.options.explicitChildren&&D.options.preserveChildrenOrder&&D.options.charsAsChildren&&(D.options.includeWhiteChars||g.replace(/\\n/g,"").trim()!=="")&&(l[D.options.childkey]=l[D.options.childkey]||[],c={"#name":"__text__"},c[v]=g,D.options.normalize&&(c[v]=c[v].replace(/\s{2,}/g," ").trim()),l[D.options.childkey].push(c)),l}})(this),this.saxParser.ontext=I,this.saxParser.oncdata=(function(D){return function(g){var c;if(c=I(g),c)return c.cdata=!0}})(this)},m.prototype.parseString=function(h,v){var I;v!=null&&typeof v=="function"&&(this.on("end",function(R){return this.reset(),v(null,R)}),this.on("error",function(R){return this.reset(),v(R)}));try{return h=h.toString(),h.trim()===""?(this.emit("end",null),!0):(h=t.stripBOM(h),this.options.async?(this.remaining=h,u(this.processAsync),this.saxParser):this.saxParser.write(h).close())}catch(R){if(I=R,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw I}else return this.emit("error",I),this.saxParser.errThrown=!0}},m.prototype.parseStringPromise=function(h){return new Promise((function(v){return function(I,R){return v.parseString(h,function(D,g){return D?R(D):I(g)})}})(this))},m})(n),je.parseString=function(y,m,h){var v,I,R;return h!=null?(typeof h=="function"&&(v=h),typeof m=="object"&&(I=m)):(typeof m=="function"&&(v=m),I={}),R=new je.Parser(I),R.parseString(y,v)},je.parseStringPromise=function(y,m){var h,v;return typeof m=="object"&&(h=m),v=new je.Parser(h),v.parseStringPromise(y)}}).call(je)});var Wu=S(ke=>{"use strict";(function(){"use strict";var t,e,r,n,i=function(s,a){for(var u in a)o.call(a,u)&&(s[u]=a[u]);function d(){this.constructor=s}return d.prototype=a.prototype,s.prototype=new d,s.__super__=a.prototype,s},o={}.hasOwnProperty;e=sn(),t=$u(),r=Hu(),n=io(),ke.defaults=e.defaults,ke.processors=n,ke.ValidationError=(function(s){i(a,s);function a(u){this.message=u}return a})(Error),ke.Builder=t.Builder,ke.Parser=r.Parser,ke.parseString=r.parseString,ke.parseStringPromise=r.parseStringPromise}).call(ke)});var Xu=S(sr=>{"use strict";var Xm=sr&&sr.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(sr,"__esModule",{value:!0});sr.mergeParams=Km;function Km(t){var e={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};t||(t={});for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])?e[r]=Xm([],t[r],!0):e[r]=t[r]);return e}});var Ku=S(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.initParseRuntime=Gm;function Gm(t){var e=t.parseParam,r={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:t.parseParam.delimiter,eol:t.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return e.ignoreColumns&&(r.needProcessIgnoreColumn=!0),e.includeColumns&&(r.needProcessIncludeColumn=!0),r}});var Gu=S(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Processor=void 0;var Ym=(function(){function t(e){this.converter=e,this.params=e.parseParam,this.runtime=e.parseRuntime}return t})();En.Processor=Ym});var Yu=S(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.prepareData=Jm;function zm(t){if(typeof t!="string")throw new TypeError("Expected a string, got ".concat(typeof t));return t.charCodeAt(0)===65279?t.slice(1):t}function Jm(t,e){var r=Qm(t,e);e.csvLineBuffer=void 0;var n=Zm(r,e).toString("utf8");return e.started===!1?zm(n):n}function Qm(t,e){return e.csvLineBuffer&&e.csvLineBuffer.length>0?Buffer.concat([e.csvLineBuffer,t]):t}function Zm(t,e){var r=t.length-1;if((t[r]&128)!=0){for(;(t[r]&192)===128;)r--;r--}return r!=t.length-1?(e.csvLineBuffer=t.slice(r+1),t.slice(0,r+1)):t}});var Sn=S(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=ey;function ey(t,e){if(!e.eol&&t){for(var r=0,n=t.length;r<n;r++)if(t[r]==="\r"){if(t[r+1]===`
@@ -38,14 +38,14 @@ ${R}`,P=Math.min(h.length,a),L=0;for(;L<P-1;L++){let B=w(String(L),h[L],v,I,R);M
38
38
  ${D}`,v.pop(),`[${M}]`}let g=Object.keys(h),c=g.length;if(c===0)return"{}";if(s<v.length+1)return'"[Object]"';R+=I;let l=`,
39
39
  ${R}`,_="",N="",p=Math.min(c,a);Ao(h)&&(_+=lh(h,l,a),g=g.slice(h.length),p-=h.length,N=l),i&&(g=Io(g,o)),v.push(h);for(let M=0;M<p;M++){let T=g[M],P=w(T,h[T],v,I,R);P!==void 0&&(_+=`${N}${Je(T)}: ${P}`,N=l)}if(c>a){let M=c-a;_+=`${N}"...": "${ht(M)} not stringified"`,N=l}return N!==""&&(_=`
40
40
  ${R}${_}
41
- ${D}`),v.pop(),`{${_}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function E(m,h,v){switch(typeof h){case"string":return Je(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return E(m,h,v);if(h===null)return"null"}if(v.indexOf(h)!==-1)return r;let I="",R=h.length!==void 0;if(R&&Array.isArray(h)){if(h.length===0)return"[]";if(s<v.length+1)return'"[Array]"';v.push(h);let _=Math.min(h.length,a),N=0;for(;N<_-1;N++){let M=E(String(N),h[N],v);I+=M!==void 0?M:"null",I+=","}let p=E(String(N),h[N],v);if(I+=p!==void 0?p:"null",h.length-1>a){let M=h.length-a-1;I+=`,"... ${ht(M)} not stringified"`}return v.pop(),`[${I}]`}let D=Object.keys(h),g=D.length;if(g===0)return"{}";if(s<v.length+1)return'"[Object]"';let c="",l=Math.min(g,a);R&&Ao(h)&&(I+=lh(h,",",a),D=D.slice(h.length),l-=h.length,c=","),i&&(D=Io(D,o)),v.push(h);for(let _=0;_<l;_++){let N=D[_],p=E(N,h[N],v);p!==void 0&&(I+=`${c}${Je(N)}:${p}`,c=",")}if(g>a){let _=g-a;I+=`${c}"...":"${ht(_)} not stringified"`}return v.pop(),`{${I}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function y(m,h,v){if(arguments.length>1){let I="";if(typeof v=="number"?I=" ".repeat(Math.min(v,10)):typeof v=="string"&&(I=v.slice(0,10)),h!=null){if(typeof h=="function")return u("",{"":m},[],h,I,"");if(Array.isArray(h))return d("",m,[],m_(h),I,"")}if(I.length!==0)return w("",m,[],I,"")}return E("",m,[])}return y}});var qo=S((bP,hh)=>{"use strict";var b_=ye(),{MESSAGE:w_}=ne(),__=br();function v_(t,e){return typeof e=="bigint"?e.toString():e}hh.exports=b_((t,e)=>{let r=__.configure(e);return t[w_]=r(t,e.replacer||v_,e.space),t})});var ph=S((wP,dh)=>{"use strict";var E_=ye();dh.exports=E_((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var mh=S((_P,gh)=>{"use strict";var S_=ye(),{MESSAGE:T_}=ne(),O_=br();gh.exports=S_(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[T_]=O_(e),t})});var bh=S((vP,yh)=>{"use strict";var D_=ye();function x_(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 P_(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}yh.exports=D_((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?x_(t,n,r):e.fillWith?P_(t,e.fillWith,r):t})});var _h=S((EP,wh)=>{"use strict";var qt=1e3,Ft=qt*60,jt=Ft*60,pt=jt*24,M_=pt*7,N_=pt*365.25;wh.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return R_(t);if(r==="number"&&isFinite(t))return e.long?A_(t):I_(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function R_(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*N_;case"weeks":case"week":case"w":return r*M_;case"days":case"day":case"d":return r*pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*jt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ft;case"seconds":case"second":case"secs":case"sec":case"s":return r*qt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function I_(t){var e=Math.abs(t);return e>=pt?Math.round(t/pt)+"d":e>=jt?Math.round(t/jt)+"h":e>=Ft?Math.round(t/Ft)+"m":e>=qt?Math.round(t/qt)+"s":t+"ms"}function A_(t){var e=Math.abs(t);return e>=pt?Bn(t,e,pt,"day"):e>=jt?Bn(t,e,jt,"hour"):e>=Ft?Bn(t,e,Ft,"minute"):e>=qt?Bn(t,e,qt,"second"):t+" ms"}function Bn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Eh=S((wr,vh)=>{"use strict";var L_=ye(),C_=_h();vh.exports=L_(t=>{let e=+new Date;return wr.diff=e-(wr.prevTime||e),wr.prevTime=e,t.ms=`+${C_(wr.diff)}`,t})});var Oh=S((SP,Th)=>{"use strict";var q_=require("util").inspect,F_=ye(),{LEVEL:j_,MESSAGE:Sh,SPLAT:k_}=ne();Th.exports=F_((t,e={})=>{let r=Object.assign({},t);return delete r[j_],delete r[Sh],delete r[k_],t[Sh]=q_(r,!1,e.depth||null,e.colorize),t})});var Dh=S((TP,Un)=>{"use strict";var{MESSAGE:B_}=ne(),$n=class{constructor(e){this.template=e}transform(e){return e[B_]=this.template(e),e}};Un.exports=t=>new $n(t);Un.exports.Printf=Un.exports.Format=$n});var Mh=S((OP,Ph)=>{"use strict";var $_=ye(),{MESSAGE:xh}=ne(),U_=br();Ph.exports=$_(t=>{let e=U_(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[xh]=`${t.level}:${r} ${t.message} ${e}`:t[xh]=`${t.level}:${r} ${t.message}`,t})});var Ih=S((DP,Rh)=>{"use strict";var V_=require("util"),{SPLAT:Nh}=ne(),H_=/%[scdjifoO%]/g,W_=/%%/g,Fo=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Nh]||e.splat||[],o=n.match(W_),s=o&&o.length||0,u=r.length-s-i.length,d=u<0?i.splice(u,-1*u):[],w=d.length;if(w)for(let E=0;E<w;E++)Object.assign(e,d[E]);return e.message=V_.format(n,...i),e}transform(e){let r=e.message,n=e[Nh]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(H_);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}};Rh.exports=t=>new Fo(t)});var Lh=S((Vn,Ah)=>{"use strict";(function(t,e){typeof Vn=="object"&&typeof Ah<"u"?e(Vn):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Vn,(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 u(x,q){for(var j=[],J=0,k=x.length;J<k;J++)j.push(x[J].substr(0,q));return j}var d=function(x){return function(q,j){var J=j[x].map(function(me){return me.toLowerCase()}),k=J.indexOf(q.toLowerCase());return k>-1?k:null}};function w(x){for(var q=[],j=1;j<arguments.length;j++)q[j-1]=arguments[j];for(var J=0,k=q;J<k.length;J++){var me=k[J];for(var Fe in me)x[Fe]=me[Fe]}return x}var E=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=u(y,3),h=u(E,3),v={dayNamesShort:h,dayNames:E,monthNamesShort:m,monthNames:y,amPm:["am","pm"],DoFn:function(x){return x+["th","st","nd","rd"][x%10>3?0:(x-x%10!==10?1:0)*x%10]}},I=w({},v),R=function(x){return I=w(I,x)},D=function(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},g=function(x,q){for(q===void 0&&(q=2),x=String(x);x.length<q;)x="0"+x;return x},c={D:function(x){return String(x.getDate())},DD:function(x){return g(x.getDate())},Do:function(x,q){return q.DoFn(x.getDate())},d:function(x){return String(x.getDay())},dd:function(x){return g(x.getDay())},ddd:function(x,q){return q.dayNamesShort[x.getDay()]},dddd:function(x,q){return q.dayNames[x.getDay()]},M:function(x){return String(x.getMonth()+1)},MM:function(x){return g(x.getMonth()+1)},MMM:function(x,q){return q.monthNamesShort[x.getMonth()]},MMMM:function(x,q){return q.monthNames[x.getMonth()]},YY:function(x){return g(String(x.getFullYear()),4).substr(2)},YYYY:function(x){return g(x.getFullYear(),4)},h:function(x){return String(x.getHours()%12||12)},hh:function(x){return g(x.getHours()%12||12)},H:function(x){return String(x.getHours())},HH:function(x){return g(x.getHours())},m:function(x){return String(x.getMinutes())},mm:function(x){return g(x.getMinutes())},s:function(x){return String(x.getSeconds())},ss:function(x){return g(x.getSeconds())},S:function(x){return String(Math.round(x.getMilliseconds()/100))},SS:function(x){return g(Math.round(x.getMilliseconds()/10),2)},SSS:function(x){return g(x.getMilliseconds(),3)},a:function(x,q){return x.getHours()<12?q.amPm[0]:q.amPm[1]},A:function(x,q){return x.getHours()<12?q.amPm[0].toUpperCase():q.amPm[1].toUpperCase()},ZZ:function(x){var q=x.getTimezoneOffset();return(q>0?"-":"+")+g(Math.floor(Math.abs(q)/60)*100+Math.abs(q)%60,4)},Z:function(x){var q=x.getTimezoneOffset();return(q>0?"-":"+")+g(Math.floor(Math.abs(q)/60),2)+":"+g(Math.abs(q)%60,2)}},l=function(x){return+x-1},_=[null,r],N=[null,s],p=["isPm",s,function(x,q){var j=x.toLowerCase();return j===q.amPm[0]?0:j===q.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(x){var q=(x+"").match(/([+-]|\d\d)/gi);if(q){var j=+q[1]*60+parseInt(q[2],10);return q[0]==="+"?j:-j}return 0}],T={D:["day",r],DD:["day",n],Do:["day",r+s,function(x){return parseInt(x,10)}],M:["month",r,l],MM:["month",n,l],YY:["year",n,function(x){var q=new Date,j=+(""+q.getFullYear()).substr(0,2);return+(""+(+x>68?j-1:j)+x)}],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(x){return+x*100}],SS:["millisecond",n,function(x){return+x*10}],SSS:["millisecond",i],d:_,dd:_,ddd:N,dddd:N,MMM:["month",s,d("monthNamesShort")],MMMM:["month",s,d("monthNames")],a:p,A:p,ZZ:M,Z:M},P={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"},L=function(x){return w(P,x)},C=function(x,q,j){if(q===void 0&&(q=P.default),j===void 0&&(j={}),typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date pass to format");q=P[q]||q;var J=[];q=q.replace(a,function(me,Fe){return J.push(Fe),"@@@"});var k=w(w({},I),j);return q=q.replace(e,function(me){return c[me](x,k)}),q.replace(/@@@/g,function(){return J.shift()})};function B(x,q,j){if(j===void 0&&(j={}),typeof q!="string")throw new Error("Invalid format in fecha parse");if(q=P[q]||q,x.length>1e3)return null;var J=new Date,k={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},me=[],Fe=[],We=q.replace(a,function(z,de){return Fe.push(D(de)),"@@@"}),Xe={},Zr={};We=D(We).replace(e,function(z){var de=T[z],tr=de[0],en=de[1],xt=de[3];if(Xe[tr])throw new Error("Invalid format. "+tr+" specified twice in format");return Xe[tr]=!0,xt&&(Zr[xt]=!0),me.push(de),"("+en+")"}),Object.keys(Zr).forEach(function(z){if(!Xe[z])throw new Error("Invalid format. "+z+" is required in specified format")}),We=We.replace(/@@@/g,function(){return Fe.shift()});var b=x.match(new RegExp(We,"i"));if(!b)return null;for(var f=w(w({},I),j),A=1;A<b.length;A++){var O=me[A-1],K=O[0],Y=O[2],Q=Y?Y(b[A],f):+b[A];if(Q==null)return null;k[K]=Q}k.isPm===1&&k.hour!=null&&+k.hour!=12?k.hour=+k.hour+12:k.isPm===0&&+k.hour==12&&(k.hour=0);var ie;if(k.timezoneOffset==null){ie=new Date(k.year,k.month,k.day,k.hour,k.minute,k.second,k.millisecond);for(var oe=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],A=0,Ke=oe.length;A<Ke;A++)if(Xe[oe[A][0]]&&k[oe[A][0]]!==ie[oe[A][1]]())return null}else if(ie=new Date(Date.UTC(k.year,k.month,k.day,k.hour,k.minute-k.timezoneOffset,k.second,k.millisecond)),k.month>11||k.month<0||k.day>31||k.day<1||k.hour>23||k.hour<0||k.minute>59||k.minute<0||k.second>59||k.second<0)return null;return ie}var $={format:C,parse:B,defaultI18n:v,setGlobalDateI18n:R,setGlobalDateMasks:L};t.assign=w,t.default=$,t.format=C,t.parse=B,t.defaultI18n=v,t.setGlobalDateI18n=R,t.setGlobalDateMasks=L,Object.defineProperty(t,"__esModule",{value:!0})}))});var qh=S((xP,Ch)=>{"use strict";var X_=Lh(),K_=ye();Ch.exports=K_((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():X_.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var jh=S((PP,Fh)=>{"use strict";var jo=_o(),G_=ye(),{MESSAGE:ko}=ne();Fh.exports=G_((t,e)=>(e.level!==!1&&(t.level=jo.strip(t.level)),e.message!==!1&&(t.message=jo.strip(String(t.message))),e.raw!==!1&&t[ko]&&(t[ko]=jo.strip(String(t[ko]))),t))});var $o=S(Bo=>{"use strict";var Y_=Bo.format=ye();Bo.levels=Zc();function he(t,e){Object.defineProperty(Y_,t,{get(){return e()},configurable:!0})}he("align",function(){return th()});he("errors",function(){return ih()});he("cli",function(){return sh()});he("combine",function(){return uh()});he("colorize",function(){return qn()});he("json",function(){return qo()});he("label",function(){return ph()});he("logstash",function(){return mh()});he("metadata",function(){return bh()});he("ms",function(){return Eh()});he("padLevels",function(){return Mo()});he("prettyPrint",function(){return Oh()});he("printf",function(){return Dh()});he("simple",function(){return Mh()});he("splat",function(){return Ih()});he("timestamp",function(){return qh()});he("uncolorize",function(){return jh()})});var Uo=S(Hn=>{"use strict";var{format:kh}=require("util");Hn.warn={deprecated(t){return()=>{throw new Error(kh("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([kh("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
41
+ ${D}`),v.pop(),`{${_}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function E(m,h,v){switch(typeof h){case"string":return Je(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return E(m,h,v);if(h===null)return"null"}if(v.indexOf(h)!==-1)return r;let I="",R=h.length!==void 0;if(R&&Array.isArray(h)){if(h.length===0)return"[]";if(s<v.length+1)return'"[Array]"';v.push(h);let _=Math.min(h.length,a),N=0;for(;N<_-1;N++){let M=E(String(N),h[N],v);I+=M!==void 0?M:"null",I+=","}let p=E(String(N),h[N],v);if(I+=p!==void 0?p:"null",h.length-1>a){let M=h.length-a-1;I+=`,"... ${ht(M)} not stringified"`}return v.pop(),`[${I}]`}let D=Object.keys(h),g=D.length;if(g===0)return"{}";if(s<v.length+1)return'"[Object]"';let c="",l=Math.min(g,a);R&&Ao(h)&&(I+=lh(h,",",a),D=D.slice(h.length),l-=h.length,c=","),i&&(D=Io(D,o)),v.push(h);for(let _=0;_<l;_++){let N=D[_],p=E(N,h[N],v);p!==void 0&&(I+=`${c}${Je(N)}:${p}`,c=",")}if(g>a){let _=g-a;I+=`${c}"...":"${ht(_)} not stringified"`}return v.pop(),`{${I}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function y(m,h,v){if(arguments.length>1){let I="";if(typeof v=="number"?I=" ".repeat(Math.min(v,10)):typeof v=="string"&&(I=v.slice(0,10)),h!=null){if(typeof h=="function")return u("",{"":m},[],h,I,"");if(Array.isArray(h))return d("",m,[],m_(h),I,"")}if(I.length!==0)return w("",m,[],I,"")}return E("",m,[])}return y}});var qo=S((bP,hh)=>{"use strict";var b_=ye(),{MESSAGE:w_}=ne(),__=br();function v_(t,e){return typeof e=="bigint"?e.toString():e}hh.exports=b_((t,e)=>{let r=__.configure(e);return t[w_]=r(t,e.replacer||v_,e.space),t})});var ph=S((wP,dh)=>{"use strict";var E_=ye();dh.exports=E_((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var mh=S((_P,gh)=>{"use strict";var S_=ye(),{MESSAGE:T_}=ne(),O_=br();gh.exports=S_(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[T_]=O_(e),t})});var bh=S((vP,yh)=>{"use strict";var D_=ye();function x_(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 P_(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}yh.exports=D_((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?x_(t,n,r):e.fillWith?P_(t,e.fillWith,r):t})});var _h=S((EP,wh)=>{"use strict";var qt=1e3,Ft=qt*60,jt=Ft*60,pt=jt*24,M_=pt*7,N_=pt*365.25;wh.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return R_(t);if(r==="number"&&isFinite(t))return e.long?A_(t):I_(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function R_(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*N_;case"weeks":case"week":case"w":return r*M_;case"days":case"day":case"d":return r*pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*jt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ft;case"seconds":case"second":case"secs":case"sec":case"s":return r*qt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function I_(t){var e=Math.abs(t);return e>=pt?Math.round(t/pt)+"d":e>=jt?Math.round(t/jt)+"h":e>=Ft?Math.round(t/Ft)+"m":e>=qt?Math.round(t/qt)+"s":t+"ms"}function A_(t){var e=Math.abs(t);return e>=pt?Bn(t,e,pt,"day"):e>=jt?Bn(t,e,jt,"hour"):e>=Ft?Bn(t,e,Ft,"minute"):e>=qt?Bn(t,e,qt,"second"):t+" ms"}function Bn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Eh=S((wr,vh)=>{"use strict";var L_=ye(),C_=_h();vh.exports=L_(t=>{let e=+new Date;return wr.diff=e-(wr.prevTime||e),wr.prevTime=e,t.ms=`+${C_(wr.diff)}`,t})});var Oh=S((SP,Th)=>{"use strict";var q_=require("util").inspect,F_=ye(),{LEVEL:j_,MESSAGE:Sh,SPLAT:k_}=ne();Th.exports=F_((t,e={})=>{let r=Object.assign({},t);return delete r[j_],delete r[Sh],delete r[k_],t[Sh]=q_(r,!1,e.depth||null,e.colorize),t})});var Dh=S((TP,Un)=>{"use strict";var{MESSAGE:B_}=ne(),$n=class{constructor(e){this.template=e}transform(e){return e[B_]=this.template(e),e}};Un.exports=t=>new $n(t);Un.exports.Printf=Un.exports.Format=$n});var Mh=S((OP,Ph)=>{"use strict";var $_=ye(),{MESSAGE:xh}=ne(),U_=br();Ph.exports=$_(t=>{let e=U_(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[xh]=`${t.level}:${r} ${t.message} ${e}`:t[xh]=`${t.level}:${r} ${t.message}`,t})});var Ih=S((DP,Rh)=>{"use strict";var V_=require("util"),{SPLAT:Nh}=ne(),H_=/%[scdjifoO%]/g,W_=/%%/g,Fo=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Nh]||e.splat||[],o=n.match(W_),s=o&&o.length||0,u=r.length-s-i.length,d=u<0?i.splice(u,-1*u):[],w=d.length;if(w)for(let E=0;E<w;E++)Object.assign(e,d[E]);return e.message=V_.format(n,...i),e}transform(e){let r=e.message,n=e[Nh]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(H_);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}};Rh.exports=t=>new Fo(t)});var Lh=S((Vn,Ah)=>{"use strict";(function(t,e){typeof Vn=="object"&&typeof Ah<"u"?e(Vn):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Vn,(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 u(x,q){for(var j=[],J=0,k=x.length;J<k;J++)j.push(x[J].substr(0,q));return j}var d=function(x){return function(q,j){var J=j[x].map(function(me){return me.toLowerCase()}),k=J.indexOf(q.toLowerCase());return k>-1?k:null}};function w(x){for(var q=[],j=1;j<arguments.length;j++)q[j-1]=arguments[j];for(var J=0,k=q;J<k.length;J++){var me=k[J];for(var Fe in me)x[Fe]=me[Fe]}return x}var E=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=u(y,3),h=u(E,3),v={dayNamesShort:h,dayNames:E,monthNamesShort:m,monthNames:y,amPm:["am","pm"],DoFn:function(x){return x+["th","st","nd","rd"][x%10>3?0:(x-x%10!==10?1:0)*x%10]}},I=w({},v),R=function(x){return I=w(I,x)},D=function(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},g=function(x,q){for(q===void 0&&(q=2),x=String(x);x.length<q;)x="0"+x;return x},c={D:function(x){return String(x.getDate())},DD:function(x){return g(x.getDate())},Do:function(x,q){return q.DoFn(x.getDate())},d:function(x){return String(x.getDay())},dd:function(x){return g(x.getDay())},ddd:function(x,q){return q.dayNamesShort[x.getDay()]},dddd:function(x,q){return q.dayNames[x.getDay()]},M:function(x){return String(x.getMonth()+1)},MM:function(x){return g(x.getMonth()+1)},MMM:function(x,q){return q.monthNamesShort[x.getMonth()]},MMMM:function(x,q){return q.monthNames[x.getMonth()]},YY:function(x){return g(String(x.getFullYear()),4).substr(2)},YYYY:function(x){return g(x.getFullYear(),4)},h:function(x){return String(x.getHours()%12||12)},hh:function(x){return g(x.getHours()%12||12)},H:function(x){return String(x.getHours())},HH:function(x){return g(x.getHours())},m:function(x){return String(x.getMinutes())},mm:function(x){return g(x.getMinutes())},s:function(x){return String(x.getSeconds())},ss:function(x){return g(x.getSeconds())},S:function(x){return String(Math.round(x.getMilliseconds()/100))},SS:function(x){return g(Math.round(x.getMilliseconds()/10),2)},SSS:function(x){return g(x.getMilliseconds(),3)},a:function(x,q){return x.getHours()<12?q.amPm[0]:q.amPm[1]},A:function(x,q){return x.getHours()<12?q.amPm[0].toUpperCase():q.amPm[1].toUpperCase()},ZZ:function(x){var q=x.getTimezoneOffset();return(q>0?"-":"+")+g(Math.floor(Math.abs(q)/60)*100+Math.abs(q)%60,4)},Z:function(x){var q=x.getTimezoneOffset();return(q>0?"-":"+")+g(Math.floor(Math.abs(q)/60),2)+":"+g(Math.abs(q)%60,2)}},l=function(x){return+x-1},_=[null,r],N=[null,s],p=["isPm",s,function(x,q){var j=x.toLowerCase();return j===q.amPm[0]?0:j===q.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(x){var q=(x+"").match(/([+-]|\d\d)/gi);if(q){var j=+q[1]*60+parseInt(q[2],10);return q[0]==="+"?j:-j}return 0}],T={D:["day",r],DD:["day",n],Do:["day",r+s,function(x){return parseInt(x,10)}],M:["month",r,l],MM:["month",n,l],YY:["year",n,function(x){var q=new Date,j=+(""+q.getFullYear()).substr(0,2);return+(""+(+x>68?j-1:j)+x)}],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(x){return+x*100}],SS:["millisecond",n,function(x){return+x*10}],SSS:["millisecond",i],d:_,dd:_,ddd:N,dddd:N,MMM:["month",s,d("monthNamesShort")],MMMM:["month",s,d("monthNames")],a:p,A:p,ZZ:M,Z:M},P={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"},L=function(x){return w(P,x)},C=function(x,q,j){if(q===void 0&&(q=P.default),j===void 0&&(j={}),typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date pass to format");q=P[q]||q;var J=[];q=q.replace(a,function(me,Fe){return J.push(Fe),"@@@"});var k=w(w({},I),j);return q=q.replace(e,function(me){return c[me](x,k)}),q.replace(/@@@/g,function(){return J.shift()})};function B(x,q,j){if(j===void 0&&(j={}),typeof q!="string")throw new Error("Invalid format in fecha parse");if(q=P[q]||q,x.length>1e3)return null;var J=new Date,k={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},me=[],Fe=[],We=q.replace(a,function(z,pe){return Fe.push(D(pe)),"@@@"}),Xe={},Zr={};We=D(We).replace(e,function(z){var pe=T[z],tr=pe[0],en=pe[1],xt=pe[3];if(Xe[tr])throw new Error("Invalid format. "+tr+" specified twice in format");return Xe[tr]=!0,xt&&(Zr[xt]=!0),me.push(pe),"("+en+")"}),Object.keys(Zr).forEach(function(z){if(!Xe[z])throw new Error("Invalid format. "+z+" is required in specified format")}),We=We.replace(/@@@/g,function(){return Fe.shift()});var b=x.match(new RegExp(We,"i"));if(!b)return null;for(var f=w(w({},I),j),A=1;A<b.length;A++){var O=me[A-1],K=O[0],Y=O[2],Q=Y?Y(b[A],f):+b[A];if(Q==null)return null;k[K]=Q}k.isPm===1&&k.hour!=null&&+k.hour!=12?k.hour=+k.hour+12:k.isPm===0&&+k.hour==12&&(k.hour=0);var ie;if(k.timezoneOffset==null){ie=new Date(k.year,k.month,k.day,k.hour,k.minute,k.second,k.millisecond);for(var oe=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],A=0,Ke=oe.length;A<Ke;A++)if(Xe[oe[A][0]]&&k[oe[A][0]]!==ie[oe[A][1]]())return null}else if(ie=new Date(Date.UTC(k.year,k.month,k.day,k.hour,k.minute-k.timezoneOffset,k.second,k.millisecond)),k.month>11||k.month<0||k.day>31||k.day<1||k.hour>23||k.hour<0||k.minute>59||k.minute<0||k.second>59||k.second<0)return null;return ie}var $={format:C,parse:B,defaultI18n:v,setGlobalDateI18n:R,setGlobalDateMasks:L};t.assign=w,t.default=$,t.format=C,t.parse=B,t.defaultI18n=v,t.setGlobalDateI18n=R,t.setGlobalDateMasks=L,Object.defineProperty(t,"__esModule",{value:!0})}))});var qh=S((xP,Ch)=>{"use strict";var X_=Lh(),K_=ye();Ch.exports=K_((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():X_.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var jh=S((PP,Fh)=>{"use strict";var jo=_o(),G_=ye(),{MESSAGE:ko}=ne();Fh.exports=G_((t,e)=>(e.level!==!1&&(t.level=jo.strip(t.level)),e.message!==!1&&(t.message=jo.strip(String(t.message))),e.raw!==!1&&t[ko]&&(t[ko]=jo.strip(String(t[ko]))),t))});var $o=S(Bo=>{"use strict";var Y_=Bo.format=ye();Bo.levels=Zc();function he(t,e){Object.defineProperty(Y_,t,{get(){return e()},configurable:!0})}he("align",function(){return th()});he("errors",function(){return ih()});he("cli",function(){return sh()});he("combine",function(){return uh()});he("colorize",function(){return qn()});he("json",function(){return qo()});he("label",function(){return ph()});he("logstash",function(){return mh()});he("metadata",function(){return bh()});he("ms",function(){return Eh()});he("padLevels",function(){return Mo()});he("prettyPrint",function(){return Oh()});he("printf",function(){return Dh()});he("simple",function(){return Mh()});he("splat",function(){return Ih()});he("timestamp",function(){return qh()});he("uncolorize",function(){return jh()})});var Uo=S(Hn=>{"use strict";var{format:kh}=require("util");Hn.warn={deprecated(t){return()=>{throw new Error(kh("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([kh("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
42
42
  `))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=Hn.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=Hn.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Bh=S((RP,z_)=>{z_.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 Vo=S((IP,$h)=>{"use strict";$h.exports=require("util").deprecate});var Ho=S((AP,Uh)=>{"use strict";Uh.exports=require("stream")});var Xo=S((LP,Hh)=>{"use strict";function J_(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(Wo,this,t)):process.nextTick(Wo,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(Wn,r):(r._writableState.errorEmitted=!0,process.nextTick(Vh,r,o)):process.nextTick(Vh,r,o):e?(process.nextTick(Wn,r),e(o)):process.nextTick(Wn,r)}),this)}function Vh(t,e){Wo(t,e),Wn(t)}function Wn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Q_(){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 Wo(t,e){t.emit("error",e)}function Z_(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Hh.exports={destroy:J_,undestroy:Q_,errorOrDestroy:Z_}});var kt=S((CP,Kh)=>{"use strict";var Xh={};function ve(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,u){super(n(s,a,u))}}i.prototype.name=r.name,i.prototype.code=t,Xh[t]=i}function Wh(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 ev(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function tv(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function rv(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ve("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ve("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&ev(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(tv(t," argument"))i=`The ${t} ${n} ${Wh(e,"type")}`;else{let o=rv(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${Wh(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ve("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ve("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ve("ERR_STREAM_PREMATURE_CLOSE","Premature close");ve("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ve("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ve("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ve("ERR_STREAM_WRITE_AFTER_END","write after end");ve("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ve("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ve("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Kh.exports.codes=Xh});var Ko=S((qP,Gh)=>{"use strict";var nv=kt().codes.ERR_INVALID_OPT_VALUE;function iv(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function ov(t,e,r,n){var i=iv(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new nv(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Gh.exports={getHighWaterMark:ov}});var Yh=S((FP,Go)=>{"use strict";typeof Object.create=="function"?Go.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Go.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 $e=S((jP,zo)=>{"use strict";try{if(Yo=require("util"),typeof Yo.inherits!="function")throw"";zo.exports=Yo.inherits}catch{zo.exports=Yh()}var Yo});var td=S((kP,ed)=>{"use strict";function zh(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 Jh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zh(Object(r),!0).forEach(function(n){sv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function sv(t,e,r){return e=Zh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function av(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qh(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,Zh(n.key),n)}}function uv(t,e,r){return e&&Qh(t.prototype,e),r&&Qh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zh(t){var e=lv(t,"string");return typeof e=="symbol"?e:String(e)}function lv(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 fv=require("buffer"),Xn=fv.Buffer,cv=require("util"),Jo=cv.inspect,hv=Jo&&Jo.custom||"inspect";function dv(t,e,r){Xn.prototype.copy.call(t,e,r)}ed.exports=(function(){function t(){av(this,t),this.head=null,this.tail=null,this.length=0}return uv(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 Xn.alloc(0);for(var n=Xn.allocUnsafe(r>>>0),i=this.head,o=0;i;)dv(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=Xn.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:hv,value:function(r,n){return Jo(this,Jh(Jh({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var id=S((Qo,nd)=>{"use strict";var Kn=require("buffer"),Ne=Kn.Buffer;function rd(t,e){for(var r in t)e[r]=t[r]}Ne.from&&Ne.alloc&&Ne.allocUnsafe&&Ne.allocUnsafeSlow?nd.exports=Kn:(rd(Kn,Qo),Qo.Buffer=gt);function gt(t,e,r){return Ne(t,e,r)}gt.prototype=Object.create(Ne.prototype);rd(Ne,gt);gt.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Ne(t,e,r)};gt.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Ne(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};gt.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ne(t)};gt.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Kn.SlowBuffer(t)}});var vr=S(sd=>{"use strict";var es=id().Buffer,od=es.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 pv(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 gv(t){var e=pv(t);if(typeof e!="string"&&(es.isEncoding===od||!od(t)))throw new Error("Unknown encoding: "+t);return e||t}sd.StringDecoder=_r;function _r(t){this.encoding=gv(t);var e;switch(this.encoding){case"utf16le":this.text=vv,this.end=Ev,e=4;break;case"utf8":this.fillLast=bv,e=4;break;case"base64":this.text=Sv,this.end=Tv,e=3;break;default:this.write=Ov,this.end=Dv;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=es.allocUnsafe(e)}_r.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||""};_r.prototype.end=_v;_r.prototype.text=wv;_r.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 Zo(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function mv(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Zo(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Zo(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Zo(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function yv(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 bv(t){var e=this.lastTotal-this.lastNeed,r=yv(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 wv(t,e){var r=mv(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 _v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function vv(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 Ev(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 Sv(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 Tv(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Ov(t){return t.toString(this.encoding)}function Dv(t){return t&&t.length?this.write(t):""}});var fd=S(($P,ld)=>{"use strict";var ad=kt().codes.ERR_STREAM_PREMATURE_CLOSE;function xv(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 Pv(){}function Mv(t){return t.setHeader&&typeof t.abort=="function"}function ud(t,e,r){if(typeof e=="function")return ud(t,null,e);e||(e={}),r=xv(r||Pv);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)},u=t._readableState&&t._readableState.endEmitted,d=function(){n=!1,u=!0,i||r.call(t)},w=function(h){r.call(t,h)},E=function(){var h;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(h=new ad),r.call(t,h);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(h=new ad),r.call(t,h)},y=function(){t.req.on("finish",a)};return Mv(t)?(t.on("complete",a),t.on("abort",E),t.req?y():t.on("request",y)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",d),t.on("finish",a),e.error!==!1&&t.on("error",w),t.on("close",E),function(){t.removeListener("complete",a),t.removeListener("abort",E),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",d),t.removeListener("error",w),t.removeListener("close",E)}}ld.exports=ud});var hd=S((UP,cd)=>{"use strict";var Gn;function Qe(t,e,r){return e=Nv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nv(t){var e=Rv(t,"string");return typeof e=="symbol"?e:String(e)}function Rv(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 Iv=fd(),Ze=Symbol("lastResolve"),mt=Symbol("lastReject"),Er=Symbol("error"),Yn=Symbol("ended"),yt=Symbol("lastPromise"),ts=Symbol("handlePromise"),bt=Symbol("stream");function et(t,e){return{value:t,done:e}}function Av(t){var e=t[Ze];if(e!==null){var r=t[bt].read();r!==null&&(t[yt]=null,t[Ze]=null,t[mt]=null,e(et(r,!1)))}}function Lv(t){process.nextTick(Av,t)}function Cv(t,e){return function(r,n){t.then(function(){if(e[Yn]){r(et(void 0,!0));return}e[ts](r,n)},n)}}var qv=Object.getPrototypeOf(function(){}),Fv=Object.setPrototypeOf((Gn={get stream(){return this[bt]},next:function(){var e=this,r=this[Er];if(r!==null)return Promise.reject(r);if(this[Yn])return Promise.resolve(et(void 0,!0));if(this[bt].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[Er]?a(e[Er]):s(et(void 0,!0))})});var n=this[yt],i;if(n)i=new Promise(Cv(n,this));else{var o=this[bt].read();if(o!==null)return Promise.resolve(et(o,!1));i=new Promise(this[ts])}return this[yt]=i,i}},Qe(Gn,Symbol.asyncIterator,function(){return this}),Qe(Gn,"return",function(){var e=this;return new Promise(function(r,n){e[bt].destroy(null,function(i){if(i){n(i);return}r(et(void 0,!0))})})}),Gn),qv),jv=function(e){var r,n=Object.create(Fv,(r={},Qe(r,bt,{value:e,writable:!0}),Qe(r,Ze,{value:null,writable:!0}),Qe(r,mt,{value:null,writable:!0}),Qe(r,Er,{value:null,writable:!0}),Qe(r,Yn,{value:e._readableState.endEmitted,writable:!0}),Qe(r,ts,{value:function(o,s){var a=n[bt].read();a?(n[yt]=null,n[Ze]=null,n[mt]=null,o(et(a,!1))):(n[Ze]=o,n[mt]=s)},writable:!0}),r));return n[yt]=null,Iv(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[mt];o!==null&&(n[yt]=null,n[Ze]=null,n[mt]=null,o(i)),n[Er]=i;return}var s=n[Ze];s!==null&&(n[yt]=null,n[Ze]=null,n[mt]=null,s(et(void 0,!0))),n[Yn]=!0}),e.on("readable",Lv.bind(null,n)),n};cd.exports=jv});var md=S((VP,gd)=>{"use strict";function dd(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(d){r(d);return}a.done?e(u):Promise.resolve(u).then(n,i)}function kv(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(u){dd(o,n,i,s,a,"next",u)}function a(u){dd(o,n,i,s,a,"throw",u)}s(void 0)})}}function pd(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 Bv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pd(Object(r),!0).forEach(function(n){$v(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $v(t,e,r){return e=Uv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uv(t){var e=Vv(t,"string");return typeof e=="symbol"?e:String(e)}function Vv(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 Hv=kt().codes.ERR_INVALID_ARG_TYPE;function Wv(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 Hv("iterable",["Iterable"],e);var i=new t(Bv({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=kv(function*(){try{var u=yield n.next(),d=u.value,w=u.done;w?i.push(null):i.push(yield d)?s():o=!1}catch(E){i.destroy(E)}}),a.apply(this,arguments)}return i}gd.exports=Wv});var xd=S((WP,Dd)=>{"use strict";Dd.exports=W;var Bt;W.ReadableState=_d;var HP=require("events").EventEmitter,wd=function(e,r){return e.listeners(r).length},Tr=Ho(),zn=require("buffer").Buffer,Xv=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Kv(t){return zn.from(t)}function Gv(t){return zn.isBuffer(t)||t instanceof Xv}var rs=require("util"),U;rs&&rs.debuglog?U=rs.debuglog("stream"):U=function(){};var Yv=td(),ls=Xo(),zv=Ko(),Jv=zv.getHighWaterMark,Jn=kt().codes,Qv=Jn.ERR_INVALID_ARG_TYPE,Zv=Jn.ERR_STREAM_PUSH_AFTER_EOF,eE=Jn.ERR_METHOD_NOT_IMPLEMENTED,tE=Jn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,$t,ns,is;$e()(W,Tr);var Sr=ls.errorOrDestroy,os=["error","close","destroy","pause","resume"];function rE(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 _d(t,e,r){Bt=Bt||Or(),t=t||{},typeof r!="boolean"&&(r=e instanceof Bt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Jv(this,t,"readableHighWaterMark",r),this.buffer=new Yv,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&&($t||($t=vr().StringDecoder),this.decoder=new $t(t.encoding),this.encoding=t.encoding)}function W(t){if(Bt=Bt||Or(),!(this instanceof W))return new W(t);var e=this instanceof Bt;this._readableState=new _d(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Tr.call(this)}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});W.prototype.destroy=ls.destroy;W.prototype._undestroy=ls.undestroy;W.prototype._destroy=function(t,e){e(t)};W.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=zn.from(t,e),e=""),n=!0),vd(this,t,e,!1,n)};W.prototype.unshift=function(t){return vd(this,t,null,!0,!1)};function vd(t,e,r,n,i){U("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,oE(t,o);else{var s;if(i||(s=nE(o,e)),s)Sr(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==zn.prototype&&(e=Kv(e)),n)o.endEmitted?Sr(t,new tE):ss(t,o,e,!0);else if(o.ended)Sr(t,new Zv);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?ss(t,o,e,!1):us(t,o)):ss(t,o,e,!1)}else n||(o.reading=!1,us(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function ss(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&&Qn(t)),us(t,e)}function nE(t,e){var r;return!Gv(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Qv("chunk",["string","Buffer","Uint8Array"],e)),r}W.prototype.isPaused=function(){return this._readableState.flowing===!1};W.prototype.setEncoding=function(t){$t||($t=vr().StringDecoder);var e=new $t(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 yd=1073741824;function iE(t){return t>=yd?t=yd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function bd(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=iE(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}W.prototype.read=function(t){U("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 U("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?as(this):Qn(this),null;if(t=bd(t,e),t===0&&e.ended)return e.length===0&&as(this),null;var n=e.needReadable;U("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,U("length less than watermark",n)),e.ended||e.reading?(n=!1,U("reading or ended",n)):n&&(U("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=bd(r,e)));var i;return t>0?i=Td(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&&as(this)),i!==null&&this.emit("data",i),i};function oE(t,e){if(U("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?Qn(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ed(t)))}}function Qn(t){var e=t._readableState;U("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(U("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Ed,t))}function Ed(t){var e=t._readableState;U("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,fs(t)}function us(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(sE,t,e))}function sE(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(U("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}W.prototype._read=function(t){Sr(this,new eE("_read()"))};W.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,U("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:v;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(I,R){U("onunpipe"),I===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,w())}function a(){U("onend"),t.end()}var u=aE(r);t.on("drain",u);var d=!1;function w(){U("cleanup"),t.removeListener("close",m),t.removeListener("finish",h),t.removeListener("drain",u),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",E),d=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",E);function E(I){U("ondata");var R=t.write(I);U("dest.write",R),R===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Od(n.pipes,t)!==-1)&&!d&&(U("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(I){U("onerror",I),v(),t.removeListener("error",y),wd(t,"error")===0&&Sr(t,I)}rE(t,"error",y);function m(){t.removeListener("finish",h),v()}t.once("close",m);function h(){U("onfinish"),t.removeListener("close",m),v()}t.once("finish",h);function v(){U("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(U("pipe resume"),r.resume()),t};function aE(t){return function(){var r=t._readableState;U("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&wd(t,"data")&&(r.flowing=!0,fs(t))}}W.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=Od(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)};W.prototype.on=function(t,e){var r=Tr.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,U("on readable",n.length,n.reading),n.length?Qn(this):n.reading||process.nextTick(uE,this)),r};W.prototype.addListener=W.prototype.on;W.prototype.removeListener=function(t,e){var r=Tr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Sd,this),r};W.prototype.removeAllListeners=function(t){var e=Tr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Sd,this),e};function Sd(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 uE(t){U("readable nexttick read 0"),t.read(0)}W.prototype.resume=function(){var t=this._readableState;return t.flowing||(U("resume"),t.flowing=!t.readableListening,lE(this,t)),t.paused=!1,this};function lE(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(fE,t,e))}function fE(t,e){U("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),fs(t),e.flowing&&!e.reading&&t.read(0)}W.prototype.pause=function(){return U("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(U("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function fs(t){var e=t._readableState;for(U("flow",e.flowing);e.flowing&&t.read()!==null;);}W.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(U("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(U("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<os.length;o++)t.on(os[o],this.emit.bind(this,os[o]));return this._read=function(s){U("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(W.prototype[Symbol.asyncIterator]=function(){return ns===void 0&&(ns=hd()),ns(this)});Object.defineProperty(W.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(W.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(W.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});W._fromList=Td;Object.defineProperty(W.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Td(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 as(t){var e=t._readableState;U("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(cE,e,t))}function cE(t,e){if(U("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"&&(W.from=function(t,e){return is===void 0&&(is=md()),is(W,t,e)});function Od(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Or=S((XP,Md)=>{"use strict";var hE=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Md.exports=Re;var Pd=xd(),hs=ds();$e()(Re,Pd);for(cs=hE(hs.prototype),Zn=0;Zn<cs.length;Zn++)ei=cs[Zn],Re.prototype[ei]||(Re.prototype[ei]=hs.prototype[ei]);var cs,ei,Zn;function Re(t){if(!(this instanceof Re))return new Re(t);Pd.call(this,t),hs.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",dE)))}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Re.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function dE(){this._writableState.ended||process.nextTick(pE,this)}function pE(t){t.end()}Object.defineProperty(Re.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 ds=S((KP,Cd)=>{"use strict";Cd.exports=Z;function Rd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){$E(e,t)}}var Ut;Z.WritableState=xr;var gE={deprecate:Vo()},Id=Ho(),ri=require("buffer").Buffer,mE=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function yE(t){return ri.from(t)}function bE(t){return ri.isBuffer(t)||t instanceof mE}var gs=Xo(),wE=Ko(),_E=wE.getHighWaterMark,tt=kt().codes,vE=tt.ERR_INVALID_ARG_TYPE,EE=tt.ERR_METHOD_NOT_IMPLEMENTED,SE=tt.ERR_MULTIPLE_CALLBACK,TE=tt.ERR_STREAM_CANNOT_PIPE,OE=tt.ERR_STREAM_DESTROYED,DE=tt.ERR_STREAM_NULL_VALUES,xE=tt.ERR_STREAM_WRITE_AFTER_END,PE=tt.ERR_UNKNOWN_ENCODING,Vt=gs.errorOrDestroy;$e()(Z,Id);function ME(){}function xr(t,e,r){Ut=Ut||Or(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ut),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=_E(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){qE(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 Rd(this)}xr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(xr.prototype,"buffer",{get:gE.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ti;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ti=Function.prototype[Symbol.hasInstance],Object.defineProperty(Z,Symbol.hasInstance,{value:function(e){return ti.call(this,e)?!0:this!==Z?!1:e&&e._writableState instanceof xr}})):ti=function(e){return e instanceof this};function Z(t){Ut=Ut||Or();var e=this instanceof Ut;if(!e&&!ti.call(Z,this))return new Z(t);this._writableState=new xr(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)),Id.call(this)}Z.prototype.pipe=function(){Vt(this,new TE)};function NE(t,e){var r=new xE;Vt(t,r),process.nextTick(e,r)}function RE(t,e,r,n){var i;return r===null?i=new DE:typeof r!="string"&&!e.objectMode&&(i=new vE("chunk",["string","Buffer"],r)),i?(Vt(t,i),process.nextTick(n,i),!1):!0}Z.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&bE(t);return o&&!ri.isBuffer(t)&&(t=yE(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=ME),n.ending?NE(this,r):(o||RE(this,n,t,r))&&(n.pendingcb++,i=AE(this,n,o,t,e,r)),i};Z.prototype.cork=function(){this._writableState.corked++};Z.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ad(this,t))};Z.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 PE(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function IE(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ri.from(e,r)),e}Object.defineProperty(Z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function AE(t,e,r,n,i,o){if(!r){var s=IE(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ps(t,e,!1,a,n,i,o);return u}function ps(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new OE("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function LE(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Dr,t,e),t._writableState.errorEmitted=!0,Vt(t,n)):(i(n),t._writableState.errorEmitted=!0,Vt(t,n),Dr(t,e))}function CE(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function qE(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new SE;if(CE(r),e)LE(t,r,n,e,i);else{var o=Ld(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ad(t,r),n?process.nextTick(Nd,t,r,o,i):Nd(t,r,o,i)}}function Nd(t,e,r,n){r||FE(t,e),e.pendingcb--,n(),Dr(t,e)}function FE(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Ad(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,ps(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 Rd(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,d=r.encoding,w=r.callback,E=e.objectMode?1:u.length;if(ps(t,e,!1,E,u,d,w),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Z.prototype._write=function(t,e,r){r(new EE("_write()"))};Z.prototype._writev=null;Z.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||BE(this,n,r),this};Object.defineProperty(Z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ld(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function jE(t,e){t._final(function(r){e.pendingcb--,r&&Vt(t,r),e.prefinished=!0,t.emit("prefinish"),Dr(t,e)})}function kE(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(jE,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Dr(t,e){var r=Ld(e);if(r&&(kE(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 BE(t,e,r){e.ending=!0,Dr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function $E(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(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Z.prototype.destroy=gs.destroy;Z.prototype._undestroy=gs.undestroy;Z.prototype._destroy=function(t,e){e(t)}});var ms=S((GP,jd)=>{"use strict";var UE=require("util"),qd=ds(),{LEVEL:Fd}=ne(),Pr=jd.exports=function(e={}){qd.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())})};UE.inherits(Pr,qd);Pr.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[Fd]]){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)};Pr.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)};Pr.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[Fd]])&&(this.handleExceptions||r.exception!==!0))};Pr.prototype._nop=function(){}});var bs=S((YP,Bd)=>{"use strict";var VE=require("util"),{LEVEL:ys}=ne(),kd=ms(),Mr=Bd.exports=function(e={}){if(kd.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))};VE.inherits(Mr,kd);Mr.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[ys]])&&this.transport.log(e[ys],e.message,e,this._nop),n(null)};Mr.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[ys],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};Mr.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(`
43
43
  `))};Mr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Ht=S((zP,ws)=>{"use strict";ws.exports=ms();ws.exports.LegacyTransportStream=bs()});var Vd=S((QP,Ud)=>{"use strict";var HE=require("os"),{LEVEL:$d,MESSAGE:Wt}=ne(),WE=Ht();Ud.exports=class extends WE{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:HE.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[$d]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Wt]}${this.eol}`):this._consoleError(e[Wt]),r&&r();return}else if(this.consoleWarnLevels[e[$d]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Wt]}${this.eol}`):this._consoleWarn(e[Wt]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Wt]}${this.eol}`):this._consoleLog(e[Wt]),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 ii=S((ni,Hd)=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.default=XE;function XE(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Hd.exports=ni.default});var Xd=S((oi,Wd)=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Wd.exports=oi.default});var Yd=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.fallback=Kd;rt.wrap=Gd;var KE=rt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,GE=rt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,YE=rt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Kd(t){setTimeout(t,0)}function Gd(t){return(e,...r)=>t(()=>e(...r))}var Nr;KE?Nr=queueMicrotask:GE?Nr=setImmediate:YE?Nr=process.nextTick:Nr=Kd;rt.default=Gd(Nr)});var ep=S((si,Zd)=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.default=t1;var zE=Xd(),JE=Qd(zE),QE=Yd(),ZE=Qd(QE),e1=wt();function Qd(t){return t&&t.__esModule?t:{default:t}}function t1(t){return(0,e1.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return zd(n,r)}:(0,JE.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return zd(n,r);r(null,n)})}function zd(t,e){return t.then(r=>{Jd(e,null,r)},r=>{Jd(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function Jd(t,e,r){try{t(e,r)}catch(n){(0,ZE.default)(i=>{throw i},n)}}Zd.exports=si.default});var wt=S(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.isAsyncIterable=Ue.isAsyncGenerator=Ue.isAsync=void 0;var r1=ep(),n1=i1(r1);function i1(t){return t&&t.__esModule?t:{default:t}}function tp(t){return t[Symbol.toStringTag]==="AsyncFunction"}function o1(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function s1(t){return typeof t[Symbol.asyncIterator]=="function"}function a1(t){if(typeof t!="function")throw new Error("expected a function");return tp(t)?(0,n1.default)(t):t}Ue.default=a1;Ue.isAsync=tp;Ue.isAsyncGenerator=o1;Ue.isAsyncIterable=s1});var Xt=S((ai,rp)=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.default=u1;function u1(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}rp.exports=ai.default});var ip=S((ui,np)=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var l1=ii(),f1=_s(l1),c1=wt(),h1=_s(c1),d1=Xt(),p1=_s(d1);function _s(t){return t&&t.__esModule?t:{default:t}}ui.default=(0,p1.default)((t,e,r)=>{var n=(0,f1.default)(e)?[]:{};t(e,(i,o,s)=>{(0,h1.default)(i)((a,...u)=>{u.length<2&&([u]=u),n[o]=u,s(a)})},i=>r(i,n))},3);np.exports=ui.default});var vs=S((li,op)=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.default=g1;function g1(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}op.exports=li.default});var ap=S((fi,sp)=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};sp.exports=fi.default});var fp=S((ci,lp)=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.default=S1;var m1=ii(),y1=up(m1),b1=ap(),w1=up(b1);function up(t){return t&&t.__esModule?t:{default:t}}function _1(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function v1(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function E1(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 S1(t){if((0,y1.default)(t))return _1(t);var e=(0,w1.default)(t);return e?v1(e):E1(t)}lp.exports=ci.default});var Es=S((hi,cp)=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.default=T1;function T1(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}cp.exports=hi.default});var pi=S((di,hp)=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var O1={};di.default=O1;hp.exports=di.default});var pp=S((gi,dp)=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.default=M1;var D1=pi(),x1=P1(D1);function P1(t){return t&&t.__esModule?t:{default:t}}function M1(t,e,r,n){let i=!1,o=!1,s=!1,a=0,u=0;function d(){a>=e||s||i||(s=!0,t.next().then(({value:y,done:m})=>{if(!(o||i)){if(s=!1,m){i=!0,a<=0&&n(null);return}a++,r(y,u,w),u++,d()}}).catch(E))}function w(y,m){if(a-=1,!o){if(y)return E(y);if(y===!1){i=!0,o=!0;return}if(m===x1.default||i&&a<=0)return i=!0,n(null);d()}}function E(y){o||(s=!1,i=!0,n(y))}d()}dp.exports=gi.default});var bp=S((mi,yp)=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var N1=vs(),R1=Rr(N1),I1=fp(),A1=Rr(I1),L1=Es(),C1=Rr(L1),gp=wt(),q1=pp(),mp=Rr(q1),F1=pi(),j1=Rr(F1);function Rr(t){return t&&t.__esModule?t:{default:t}}mi.default=t=>(e,r,n)=>{if(n=(0,R1.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,gp.isAsyncGenerator)(e))return(0,mp.default)(e,t,r,n);if((0,gp.isAsyncIterable)(e))return(0,mp.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,A1.default)(e),o=!1,s=!1,a=0,u=!1;function d(E,y){if(!s)if(a-=1,E)o=!0,n(E);else if(E===!1)o=!0,s=!0;else{if(y===j1.default||o&&a<=0)return o=!0,n(null);u||w()}}function w(){for(u=!0;a<t&&!o;){var E=i();if(E===null){o=!0,a<=0&&n(null);return}a+=1,r(E.value,E.key,(0,C1.default)(d))}u=!1}w()};yp.exports=mi.default});var Ts=S((yi,wp)=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var k1=bp(),B1=Ss(k1),$1=wt(),U1=Ss($1),V1=Xt(),H1=Ss(V1);function Ss(t){return t&&t.__esModule?t:{default:t}}function W1(t,e,r,n){return(0,B1.default)(e)(t,(0,U1.default)(r),n)}yi.default=(0,H1.default)(W1,4);wp.exports=yi.default});var Ep=S((bi,vp)=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var X1=Ts(),K1=_p(X1),G1=Xt(),Y1=_p(G1);function _p(t){return t&&t.__esModule?t:{default:t}}function z1(t,e,r){return(0,K1.default)(t,1,e,r)}bi.default=(0,Y1.default)(z1,3);vp.exports=bi.default});var Op=S((wi,Tp)=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.default=tS;var J1=ip(),Q1=Sp(J1),Z1=Ep(),eS=Sp(Z1);function Sp(t){return t&&t.__esModule?t:{default:t}}function tS(t,e){return(0,Q1.default)(eS.default,t,e)}Tp.exports=wi.default});var Os=S((tM,Dp)=>{"use strict";Dp.exports=require("stream")});var Ip=S((rM,Rp)=>{"use strict";function xp(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 Pp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xp(Object(r),!0).forEach(function(n){rS(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xp(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rS(t,e,r){return e=Np(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mp(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,Np(n.key),n)}}function iS(t,e,r){return e&&Mp(t.prototype,e),r&&Mp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Np(t){var e=oS(t,"string");return typeof e=="symbol"?e:String(e)}function oS(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 sS=require("buffer"),_i=sS.Buffer,aS=require("util"),Ds=aS.inspect,uS=Ds&&Ds.custom||"inspect";function lS(t,e,r){_i.prototype.copy.call(t,e,r)}Rp.exports=(function(){function t(){nS(this,t),this.head=null,this.tail=null,this.length=0}return iS(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 _i.alloc(0);for(var n=_i.allocUnsafe(r>>>0),i=this.head,o=0;i;)lS(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=_i.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:uS,value:function(r,n){return Ds(this,Pp(Pp({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var Ps=S((nM,Lp)=>{"use strict";function fS(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(xs,this,t)):process.nextTick(xs,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(vi,r):(r._writableState.errorEmitted=!0,process.nextTick(Ap,r,o)):process.nextTick(Ap,r,o):e?(process.nextTick(vi,r),e(o)):process.nextTick(vi,r)}),this)}function Ap(t,e){xs(t,e),vi(t)}function vi(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function cS(){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 xs(t,e){t.emit("error",e)}function hS(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Lp.exports={destroy:fS,undestroy:cS,errorOrDestroy:hS}});var nt=S((iM,Fp)=>{"use strict";var qp={};function Ee(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,u){super(n(s,a,u))}}i.prototype.name=r.name,i.prototype.code=t,qp[t]=i}function Cp(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 dS(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function pS(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function gS(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Ee("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Ee("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&dS(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(pS(t," argument"))i=`The ${t} ${n} ${Cp(e,"type")}`;else{let o=gS(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${Cp(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);Ee("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ee("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Ee("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ee("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Ee("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ee("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ee("ERR_STREAM_WRITE_AFTER_END","write after end");Ee("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ee("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Ee("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fp.exports.codes=qp});var Ms=S((oM,jp)=>{"use strict";var mS=nt().codes.ERR_INVALID_OPT_VALUE;function yS(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function bS(t,e,r,n){var i=yS(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new mS(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}jp.exports={getHighWaterMark:bS}});var Is=S((sM,Hp)=>{"use strict";Hp.exports=ee;function Bp(t){var e=this;this.next=null,this.entry=null,this.finish=function(){WS(e,t)}}var Kt;ee.WritableState=Ar;var wS={deprecate:Vo()},$p=Os(),Si=require("buffer").Buffer,_S=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vS(t){return Si.from(t)}function ES(t){return Si.isBuffer(t)||t instanceof _S}var Rs=Ps(),SS=Ms(),TS=SS.getHighWaterMark,it=nt().codes,OS=it.ERR_INVALID_ARG_TYPE,DS=it.ERR_METHOD_NOT_IMPLEMENTED,xS=it.ERR_MULTIPLE_CALLBACK,PS=it.ERR_STREAM_CANNOT_PIPE,MS=it.ERR_STREAM_DESTROYED,NS=it.ERR_STREAM_NULL_VALUES,RS=it.ERR_STREAM_WRITE_AFTER_END,IS=it.ERR_UNKNOWN_ENCODING,Gt=Rs.errorOrDestroy;$e()(ee,$p);function AS(){}function Ar(t,e,r){Kt=Kt||_t(),t=t||{},typeof r!="boolean"&&(r=e instanceof Kt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=TS(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){BS(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 Bp(this)}Ar.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ar.prototype,"buffer",{get:wS.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ei;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ei=Function.prototype[Symbol.hasInstance],Object.defineProperty(ee,Symbol.hasInstance,{value:function(e){return Ei.call(this,e)?!0:this!==ee?!1:e&&e._writableState instanceof Ar}})):Ei=function(e){return e instanceof this};function ee(t){Kt=Kt||_t();var e=this instanceof Kt;if(!e&&!Ei.call(ee,this))return new ee(t);this._writableState=new Ar(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)),$p.call(this)}ee.prototype.pipe=function(){Gt(this,new PS)};function LS(t,e){var r=new RS;Gt(t,r),process.nextTick(e,r)}function CS(t,e,r,n){var i;return r===null?i=new NS:typeof r!="string"&&!e.objectMode&&(i=new OS("chunk",["string","Buffer"],r)),i?(Gt(t,i),process.nextTick(n,i),!1):!0}ee.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&ES(t);return o&&!Si.isBuffer(t)&&(t=vS(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=AS),n.ending?LS(this,r):(o||CS(this,n,t,r))&&(n.pendingcb++,i=FS(this,n,o,t,e,r)),i};ee.prototype.cork=function(){this._writableState.corked++};ee.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Up(this,t))};ee.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 IS(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qS(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Si.from(e,r)),e}Object.defineProperty(ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function FS(t,e,r,n,i,o){if(!r){var s=qS(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ns(t,e,!1,a,n,i,o);return u}function Ns(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new MS("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function jS(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ir,t,e),t._writableState.errorEmitted=!0,Gt(t,n)):(i(n),t._writableState.errorEmitted=!0,Gt(t,n),Ir(t,e))}function kS(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function BS(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new xS;if(kS(r),e)jS(t,r,n,e,i);else{var o=Vp(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Up(t,r),n?process.nextTick(kp,t,r,o,i):kp(t,r,o,i)}}function kp(t,e,r,n){r||$S(t,e),e.pendingcb--,n(),Ir(t,e)}function $S(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Up(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,Ns(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 Bp(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,d=r.encoding,w=r.callback,E=e.objectMode?1:u.length;if(Ns(t,e,!1,E,u,d,w),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}ee.prototype._write=function(t,e,r){r(new DS("_write()"))};ee.prototype._writev=null;ee.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||HS(this,n,r),this};Object.defineProperty(ee.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Vp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function US(t,e){t._final(function(r){e.pendingcb--,r&&Gt(t,r),e.prefinished=!0,t.emit("prefinish"),Ir(t,e)})}function VS(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(US,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ir(t,e){var r=Vp(e);if(r&&(VS(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 HS(t,e,r){e.ending=!0,Ir(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function WS(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(ee.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ee.prototype.destroy=Rs.destroy;ee.prototype._undestroy=Rs.undestroy;ee.prototype._destroy=function(t,e){e(t)}});var _t=S((aM,Xp)=>{"use strict";var XS=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Xp.exports=Ie;var Wp=Cs(),Ls=Is();$e()(Ie,Wp);for(As=XS(Ls.prototype),Ti=0;Ti<As.length;Ti++)Oi=As[Ti],Ie.prototype[Oi]||(Ie.prototype[Oi]=Ls.prototype[Oi]);var As,Oi,Ti;function Ie(t){if(!(this instanceof Ie))return new Ie(t);Wp.call(this,t),Ls.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",KS)))}Object.defineProperty(Ie.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ie.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ie.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function KS(){this._writableState.ended||process.nextTick(GS,this)}function GS(t){t.end()}Object.defineProperty(Ie.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 Di=S((uM,Yp)=>{"use strict";var Kp=nt().codes.ERR_STREAM_PREMATURE_CLOSE;function YS(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 zS(){}function JS(t){return t.setHeader&&typeof t.abort=="function"}function Gp(t,e,r){if(typeof e=="function")return Gp(t,null,e);e||(e={}),r=YS(r||zS);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)},u=t._readableState&&t._readableState.endEmitted,d=function(){n=!1,u=!0,i||r.call(t)},w=function(h){r.call(t,h)},E=function(){var h;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(h=new Kp),r.call(t,h);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(h=new Kp),r.call(t,h)},y=function(){t.req.on("finish",a)};return JS(t)?(t.on("complete",a),t.on("abort",E),t.req?y():t.on("request",y)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",d),t.on("finish",a),e.error!==!1&&t.on("error",w),t.on("close",E),function(){t.removeListener("complete",a),t.removeListener("abort",E),t.removeListener("request",y),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",d),t.removeListener("error",w),t.removeListener("close",E)}}Yp.exports=Gp});var Jp=S((lM,zp)=>{"use strict";var xi;function ot(t,e,r){return e=QS(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QS(t){var e=ZS(t,"string");return typeof e=="symbol"?e:String(e)}function ZS(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 eT=Di(),st=Symbol("lastResolve"),vt=Symbol("lastReject"),Lr=Symbol("error"),Pi=Symbol("ended"),Et=Symbol("lastPromise"),qs=Symbol("handlePromise"),St=Symbol("stream");function at(t,e){return{value:t,done:e}}function tT(t){var e=t[st];if(e!==null){var r=t[St].read();r!==null&&(t[Et]=null,t[st]=null,t[vt]=null,e(at(r,!1)))}}function rT(t){process.nextTick(tT,t)}function nT(t,e){return function(r,n){t.then(function(){if(e[Pi]){r(at(void 0,!0));return}e[qs](r,n)},n)}}var iT=Object.getPrototypeOf(function(){}),oT=Object.setPrototypeOf((xi={get stream(){return this[St]},next:function(){var e=this,r=this[Lr];if(r!==null)return Promise.reject(r);if(this[Pi])return Promise.resolve(at(void 0,!0));if(this[St].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[Lr]?a(e[Lr]):s(at(void 0,!0))})});var n=this[Et],i;if(n)i=new Promise(nT(n,this));else{var o=this[St].read();if(o!==null)return Promise.resolve(at(o,!1));i=new Promise(this[qs])}return this[Et]=i,i}},ot(xi,Symbol.asyncIterator,function(){return this}),ot(xi,"return",function(){var e=this;return new Promise(function(r,n){e[St].destroy(null,function(i){if(i){n(i);return}r(at(void 0,!0))})})}),xi),iT),sT=function(e){var r,n=Object.create(oT,(r={},ot(r,St,{value:e,writable:!0}),ot(r,st,{value:null,writable:!0}),ot(r,vt,{value:null,writable:!0}),ot(r,Lr,{value:null,writable:!0}),ot(r,Pi,{value:e._readableState.endEmitted,writable:!0}),ot(r,qs,{value:function(o,s){var a=n[St].read();a?(n[Et]=null,n[st]=null,n[vt]=null,o(at(a,!1))):(n[st]=o,n[vt]=s)},writable:!0}),r));return n[Et]=null,eT(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[vt];o!==null&&(n[Et]=null,n[st]=null,n[vt]=null,o(i)),n[Lr]=i;return}var s=n[st];s!==null&&(n[Et]=null,n[st]=null,n[vt]=null,s(at(void 0,!0))),n[Pi]=!0}),e.on("readable",rT.bind(null,n)),n};zp.exports=sT});var tg=S((fM,eg)=>{"use strict";function Qp(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(d){r(d);return}a.done?e(u):Promise.resolve(u).then(n,i)}function aT(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(u){Qp(o,n,i,s,a,"next",u)}function a(u){Qp(o,n,i,s,a,"throw",u)}s(void 0)})}}function Zp(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 uT(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zp(Object(r),!0).forEach(function(n){lT(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lT(t,e,r){return e=fT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fT(t){var e=cT(t,"string");return typeof e=="symbol"?e:String(e)}function cT(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 hT=nt().codes.ERR_INVALID_ARG_TYPE;function dT(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 hT("iterable",["Iterable"],e);var i=new t(uT({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=aT(function*(){try{var u=yield n.next(),d=u.value,w=u.done;w?i.push(null):i.push(yield d)?s():o=!1}catch(E){i.destroy(E)}}),a.apply(this,arguments)}return i}eg.exports=dT});var Cs=S((hM,cg)=>{"use strict";cg.exports=X;var Yt;X.ReadableState=og;var cM=require("events").EventEmitter,ig=function(e,r){return e.listeners(r).length},qr=Os(),Mi=require("buffer").Buffer,pT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function gT(t){return Mi.from(t)}function mT(t){return Mi.isBuffer(t)||t instanceof pT}var Fs=require("util"),V;Fs&&Fs.debuglog?V=Fs.debuglog("stream"):V=function(){};var yT=Ip(),Hs=Ps(),bT=Ms(),wT=bT.getHighWaterMark,Ni=nt().codes,_T=Ni.ERR_INVALID_ARG_TYPE,vT=Ni.ERR_STREAM_PUSH_AFTER_EOF,ET=Ni.ERR_METHOD_NOT_IMPLEMENTED,ST=Ni.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,zt,js,ks;$e()(X,qr);var Cr=Hs.errorOrDestroy,Bs=["error","close","destroy","pause","resume"];function TT(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 og(t,e,r){Yt=Yt||_t(),t=t||{},typeof r!="boolean"&&(r=e instanceof Yt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=wT(this,t,"readableHighWaterMark",r),this.buffer=new yT,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&&(zt||(zt=vr().StringDecoder),this.decoder=new zt(t.encoding),this.encoding=t.encoding)}function X(t){if(Yt=Yt||_t(),!(this instanceof X))return new X(t);var e=this instanceof Yt;this._readableState=new og(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),qr.call(this)}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});X.prototype.destroy=Hs.destroy;X.prototype._undestroy=Hs.undestroy;X.prototype._destroy=function(t,e){e(t)};X.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=Mi.from(t,e),e=""),n=!0),sg(this,t,e,!1,n)};X.prototype.unshift=function(t){return sg(this,t,null,!0,!1)};function sg(t,e,r,n,i){V("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,xT(t,o);else{var s;if(i||(s=OT(o,e)),s)Cr(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Mi.prototype&&(e=gT(e)),n)o.endEmitted?Cr(t,new ST):$s(t,o,e,!0);else if(o.ended)Cr(t,new vT);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?$s(t,o,e,!1):Vs(t,o)):$s(t,o,e,!1)}else n||(o.reading=!1,Vs(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function $s(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&&Ri(t)),Vs(t,e)}function OT(t,e){var r;return!mT(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new _T("chunk",["string","Buffer","Uint8Array"],e)),r}X.prototype.isPaused=function(){return this._readableState.flowing===!1};X.prototype.setEncoding=function(t){zt||(zt=vr().StringDecoder);var e=new zt(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 rg=1073741824;function DT(t){return t>=rg?t=rg:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ng(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=DT(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}X.prototype.read=function(t){V("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 V("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Us(this):Ri(this),null;if(t=ng(t,e),t===0&&e.ended)return e.length===0&&Us(this),null;var n=e.needReadable;V("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,V("length less than watermark",n)),e.ended||e.reading?(n=!1,V("reading or ended",n)):n&&(V("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ng(r,e)));var i;return t>0?i=lg(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&&Us(this)),i!==null&&this.emit("data",i),i};function xT(t,e){if(V("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?Ri(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ag(t)))}}function Ri(t){var e=t._readableState;V("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(V("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ag,t))}function ag(t){var e=t._readableState;V("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,Ws(t)}function Vs(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(PT,t,e))}function PT(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(V("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}X.prototype._read=function(t){Cr(this,new ET("_read()"))};X.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,V("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:v;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(I,R){V("onunpipe"),I===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,w())}function a(){V("onend"),t.end()}var u=MT(r);t.on("drain",u);var d=!1;function w(){V("cleanup"),t.removeListener("close",m),t.removeListener("finish",h),t.removeListener("drain",u),t.removeListener("error",y),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",E),d=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",E);function E(I){V("ondata");var R=t.write(I);V("dest.write",R),R===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&fg(n.pipes,t)!==-1)&&!d&&(V("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(I){V("onerror",I),v(),t.removeListener("error",y),ig(t,"error")===0&&Cr(t,I)}TT(t,"error",y);function m(){t.removeListener("finish",h),v()}t.once("close",m);function h(){V("onfinish"),t.removeListener("close",m),v()}t.once("finish",h);function v(){V("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(V("pipe resume"),r.resume()),t};function MT(t){return function(){var r=t._readableState;V("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ig(t,"data")&&(r.flowing=!0,Ws(t))}}X.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=fg(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)};X.prototype.on=function(t,e){var r=qr.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,V("on readable",n.length,n.reading),n.length?Ri(this):n.reading||process.nextTick(NT,this)),r};X.prototype.addListener=X.prototype.on;X.prototype.removeListener=function(t,e){var r=qr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ug,this),r};X.prototype.removeAllListeners=function(t){var e=qr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ug,this),e};function ug(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 NT(t){V("readable nexttick read 0"),t.read(0)}X.prototype.resume=function(){var t=this._readableState;return t.flowing||(V("resume"),t.flowing=!t.readableListening,RT(this,t)),t.paused=!1,this};function RT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(IT,t,e))}function IT(t,e){V("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Ws(t),e.flowing&&!e.reading&&t.read(0)}X.prototype.pause=function(){return V("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(V("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ws(t){var e=t._readableState;for(V("flow",e.flowing);e.flowing&&t.read()!==null;);}X.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(V("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(V("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<Bs.length;o++)t.on(Bs[o],this.emit.bind(this,Bs[o]));return this._read=function(s){V("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(X.prototype[Symbol.asyncIterator]=function(){return js===void 0&&(js=Jp()),js(this)});Object.defineProperty(X.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(X.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(X.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});X._fromList=lg;Object.defineProperty(X.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function lg(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 Us(t){var e=t._readableState;V("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(AT,e,t))}function AT(t,e){if(V("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"&&(X.from=function(t,e){return ks===void 0&&(ks=tg()),ks(X,t,e)});function fg(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Xs=S((dM,dg)=>{"use strict";dg.exports=Ve;var Ii=nt().codes,LT=Ii.ERR_METHOD_NOT_IMPLEMENTED,CT=Ii.ERR_MULTIPLE_CALLBACK,qT=Ii.ERR_TRANSFORM_ALREADY_TRANSFORMING,FT=Ii.ERR_TRANSFORM_WITH_LENGTH_0,Ai=_t();$e()(Ve,Ai);function jT(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new CT);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 Ve(t){if(!(this instanceof Ve))return new Ve(t);Ai.call(this,t),this._transformState={afterTransform:jT.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",kT)}function kT(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){hg(t,e,r)}):hg(this,null,null)}Ve.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ai.prototype.push.call(this,t,e)};Ve.prototype._transform=function(t,e,r){r(new LT("_transform()"))};Ve.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)}};Ve.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};Ve.prototype._destroy=function(t,e){Ai.prototype._destroy.call(this,t,function(r){e(r)})};function hg(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new FT;if(t._transformState.transforming)throw new qT;return t.push(null)}});var mg=S((pM,gg)=>{"use strict";gg.exports=Fr;var pg=Xs();$e()(Fr,pg);function Fr(t){if(!(this instanceof Fr))return new Fr(t);pg.call(this,t)}Fr.prototype._transform=function(t,e,r){r(null,t)}});var vg=S((gM,_g)=>{"use strict";var Ks;function BT(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var wg=nt().codes,$T=wg.ERR_MISSING_ARGS,UT=wg.ERR_STREAM_DESTROYED;function yg(t){if(t)throw t}function VT(t){return t.setHeader&&typeof t.abort=="function"}function HT(t,e,r,n){n=BT(n);var i=!1;t.on("close",function(){i=!0}),Ks===void 0&&(Ks=Di()),Ks(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,VT(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new UT("pipe"))}}}function bg(t){t()}function WT(t,e){return t.pipe(e)}function XT(t){return!t.length||typeof t[t.length-1]!="function"?yg:t.pop()}function KT(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=XT(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new $T("streams");var i,o=e.map(function(s,a){var u=a<e.length-1,d=a>0;return HT(s,u,d,function(w){i||(i=w),w&&o.forEach(bg),!u&&(o.forEach(bg),n(i))})});return e.reduce(WT)}_g.exports=KT});var Tt=S((Se,kr)=>{"use strict";var jr=require("stream");process.env.READABLE_STREAM==="disable"&&jr?(kr.exports=jr.Readable,Object.assign(kr.exports,jr),kr.exports.Stream=jr):(Se=kr.exports=Cs(),Se.Stream=jr||Se,Se.Readable=Se,Se.Writable=Is(),Se.Duplex=_t(),Se.Transform=Xs(),Se.PassThrough=mg(),Se.finished=Di(),Se.pipeline=vg())});var ea=S((mM,Sg)=>{"use strict";var Jt=[],Br=[],Gs=function(){};function zs(t){return~Jt.indexOf(t)?!1:(Jt.push(t),!0)}function Js(t){Gs=t}function GT(t){for(var e=[],r=0;r<Jt.length;r++){if(Jt[r].async){e.push(Jt[r]);continue}if(Jt[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 Qs(t){return~Br.indexOf(t)?!1:(Br.push(t),!0)}function Ys(){Gs.apply(Gs,arguments)}function Eg(t){for(var e=0;e<Br.length;e++)t=Br[e].apply(Br[e],arguments);return t}function Zs(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function YT(t){return t.enabled=!1,t.modify=Qs,t.set=Js,t.use=zs,Zs(function(){return!1},t)}function zT(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Ys.call(Ys,t,Eg(r,t)),!0}return t.enabled=!0,t.modify=Qs,t.set=Js,t.use=zs,Zs(e,t)}Sg.exports=function(e){return e.introduce=Zs,e.enabled=GT,e.process=Eg,e.modify=Qs,e.write=Ys,e.nope=YT,e.yep=zT,e.set=Js,e.use=zs,e}});var Og=S((yM,Tg)=>{"use strict";var JT=ea(),QT=JT(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)});Tg.exports=QT});var Rg=S((bM,Ng)=>{"use strict";var Ae={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]},xg=Object.create(null);for(let t in Ae)Object.hasOwn(Ae,t)&&(xg[Ae[t]]=t);var ue={to:{},get:{}};ue.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=ue.get.hsl(t),n="hsl";break}case"hwb":{r=ue.get.hwb(t),n="hwb";break}default:{r=ue.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};ue.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,u,d;if(a=t.match(r)){for(d=a[2],a=a[1],u=0;u<3;u++){let w=u*2;s[u]=Number.parseInt(a.slice(w,w+2),16)}d&&(s[3]=Number.parseInt(d,16)/255)}else if(a=t.match(e)){for(a=a[1],d=a[3],u=0;u<3;u++)s[u]=Number.parseInt(a[u]+a[u],16);d&&(s[3]=Number.parseInt(d+d,16)/255)}else if(a=t.match(n)){for(u=0;u<3;u++)s[u]=Number.parseInt(a[u+1],10);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(u=0;u<3;u++)s[u]=Math.round(Number.parseFloat(a[u+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(Ae,a[1])?(s=Ae[a[1]],s[3]=1,s):null:null;for(u=0;u<3;u++)s[u]=ut(s[u],0,255);return s[3]=ut(s[3],0,1),s};ue.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=ut(Number.parseFloat(r[2]),0,100),s=ut(Number.parseFloat(r[3]),0,100),a=ut(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};ue.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=ut(Number.parseFloat(r[2]),0,100),s=ut(Number.parseFloat(r[3]),0,100),a=ut(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};ue.to.hex=function(...t){return"#"+Li(t[0])+Li(t[1])+Li(t[2])+(t[3]<1?Li(Math.round(t[3]*255)):"")};ue.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]+")"};ue.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]+")"};ue.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]+")"};ue.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ue.to.keyword=function(...t){return xg[t.slice(0,3)]};function ut(t,e,r){return Math.min(Math.max(e,t),r)}function Li(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Pg={};for(let t of Object.keys(Ae))Pg[Ae[t]]=t;var F={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"]}},He=(6/29)**3;function Qt(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function Zt(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(F)){if(!("channels"in F[t]))throw new Error("missing channels property: "+t);if(!("labels"in F[t]))throw new Error("missing channel labels property: "+t);if(F[t].labels.length!==F[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=F[t];delete F[t].channels,delete F[t].labels,Object.defineProperty(F[t],"channels",{value:e}),Object.defineProperty(F[t],"labels",{value:r})}F.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,u;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 d=(i+o)/2;return o===i?u=0:d<=.5?u=s/(o+i):u=s/(2-o-i),[a,u*100,d*100]};F.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,u=t[2]/255,d=Math.max(s,a,u),w=d-Math.min(s,a,u),E=function(y){return(d-y)/6/w+1/2};if(w===0)i=0,o=0;else{switch(o=w/d,e=E(s),r=E(a),n=E(u),d){case s:{i=n-r;break}case a:{i=1/3+e-n;break}case u:{i=2/3+r-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,o*100,d*100]};F.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=F.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]};F.rgb.oklab=function(t){let e=Zt(t[0]/255),r=Zt(t[1]/255),n=Zt(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,u=1.9779984951*i-2.428592205*o+.4505937099*s,d=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,u*100,d*100]};F.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 ZT(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}F.rgb.keyword=function(t){let e=Pg[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(Ae)){let o=Ae[i],s=ZT(t,o);s<r&&(r=s,n=i)}return n};F.keyword.rgb=function(t){return Ae[t]};F.rgb.xyz=function(t){let e=Zt(t[0]/255),r=Zt(t[1]/255),n=Zt(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]};F.rgb.lab=function(t){let e=F.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>He?r**(1/3):7.787*r+16/116,n=n>He?n**(1/3):7.787*n+16/116,i=i>He?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]};F.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,u=[0,0,0];for(let d=0;d<3;d++)i=e+1/3*-(d-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,u[d]=o*255;return u};F.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]};F.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};F.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]};F.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,(s&1)!==0&&(o=1-o);let u=r+o*(a-r),d,w,E;switch(s){default:case 6:case 0:{d=a,w=u,E=r;break}case 1:{d=u,w=a,E=r;break}case 2:{d=r,w=a,E=u;break}case 3:{d=r,w=u,E=a;break}case 4:{d=u,w=r,E=a;break}case 5:{d=a,w=r,E=u;break}}return[d*255,w*255,E*255]};F.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]};F.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=Qt(i),o=Qt(o),s=Qt(s),[i*255,o*255,s*255]};F.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>He?e**(1/3):7.787*e+16/116,r=r>He?r**(1/3):7.787*r+16/116,n=n>He?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]};F.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,u=1.9779984951*i-2.428592205*o+.4505937099*s,d=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,u*100,d*100]};F.oklab.oklch=function(t){return F.lab.lch(t)};F.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,u=-.040580178*i+1.11225687*o-.071676679*s,d=-.076381285*i-.421481978*o+1.58616322*s;return[a*100,u*100,d*100]};F.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=Qt(4.0767416621*i-3.3077115913*o+.2309699292*s),u=Qt(-1.2684380046*i+2.6097574011*o-.3413193965*s),d=Qt(-.0041960863*i-.7034186147*o+1.707614701*s);return[a*255,u*255,d*255]};F.oklch.oklab=function(t){return F.lch.lab(t)};F.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,u=i**3,d=s**3;return o=a>He?a:(o-16/116)/7.787,i=u>He?u:(i-16/116)/7.787,s=d>He?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};F.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]};F.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]};F.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?F.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};F.hsv.ansi16=function(t){return F.rgb.ansi16(F.hsv.rgb(t),t[2])};F.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)};F.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]};F.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]};F.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};F.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]};F.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o,a,u=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,u*100]};F.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]};F.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]};F.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,u=0;switch(Math.floor(o)){case 0:{i[0]=1,i[1]=s,i[2]=0;break}case 1:{i[0]=a,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=s;break}case 3:{i[0]=0,i[1]=a,i[2]=1;break}case 4:{i[0]=s,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};F.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]};F.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]};F.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]};F.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]};F.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};F.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};F.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};F.gray.hsl=function(t){return[0,0,t[0]]};F.gray.hsv=F.gray.hsl;F.gray.hwb=function(t){return[0,100,t[0]]};F.gray.cmyk=function(t){return[0,0,0,t[0]]};F.gray.lab=function(t){return[t[0],0,0]};F.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};F.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function eO(){let t={},e=Object.keys(F);for(let{length:r}=e,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function tO(t){let e=eO(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(F[n]);for(let{length:o}=i,s=0;s<o;s++){let a=i[s],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function rO(t,e){return function(r){return e(t(r))}}function nO(t,e){let r=[e[t].parent,t],n=F[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=rO(F[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function iO(t){let e=tO(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]=nO(s,e))}return r}var le={},oO=Object.keys(F);function sO(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 aO(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 oO){le[t]={},Object.defineProperty(le[t],"channels",{value:F[t].channels}),Object.defineProperty(le[t],"labels",{value:F[t].labels});let e=iO(t),r=Object.keys(e);for(let n of r){let i=e[n];le[t][n]=aO(i),le[t][n].raw=sO(i)}}var Mg=["keyword","gray","hex"],ta={};for(let t of Object.keys(le))ta[[...le[t].labels].sort().join("")]=t;var ra={};function ae(t,e){if(!(this instanceof ae))return new ae(t,e);if(e&&e in Mg&&(e=null),e&&!(e in le))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 ae)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=ue.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=le[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=le[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=na(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 ta))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ta[o];let{labels:s}=le[this.model],a=[];for(r=0;r<s.length;r++)a.push(t[s[r]]);this.color=na(a)}if(ra[this.model])for(n=le[this.model].channels,r=0;r<n;r++){let i=ra[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)}ae.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in ue.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return ue.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 ue.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=le[this.model],{labels:r}=le[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 ae([...this.color.map(lO(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new ae([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:te("rgb",0,se(255)),green:te("rgb",1,se(255)),blue:te("rgb",2,se(255)),hue:te(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:te("hsl",1,se(100)),lightness:te("hsl",2,se(100)),saturationv:te("hsv",1,se(100)),value:te("hsv",2,se(100)),chroma:te("hcg",1,se(100)),gray:te("hcg",2,se(100)),white:te("hwb",1,se(100)),wblack:te("hwb",2,se(100)),cyan:te("cmyk",0,se(100)),magenta:te("cmyk",1,se(100)),yellow:te("cmyk",2,se(100)),black:te("cmyk",3,se(100)),x:te("xyz",0,se(95.047)),y:te("xyz",1,se(100)),z:te("xyz",2,se(108.833)),l:te("lab",0,se(100)),a:te("lab",1),b:te("lab",2),keyword(t){return t!==void 0?new ae(t):le[this.model].keyword(this.color)},hex(t){return t!==void 0?new ae(t):ue.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ae(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),ue.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 ae.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,u=1-a;return ae.rgb(a*r.red()+u*n.red(),a*r.green()+u*n.green(),a*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(let t of Object.keys(le)){if(Mg.includes(t))continue;let{channels:e}=le[t];ae.prototype[t]=function(...r){return this.model===t?new ae(this):r.length>0?new ae(r,t):new ae([...fO(le[this.model][t].raw(this.color)),this.valpha],t)},ae[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=na(r,e)),new ae(n,t)}}function uO(t,e){return Number(t.toFixed(e))}function lO(t){return function(e){return uO(e,t)}}function te(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(ra[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 se(t){return function(e){return Math.max(0,Math.min(t,e))}}function fO(t){return Array.isArray(t)?t:[t]}function na(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function cO(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hO=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},Dg=cO(hO);function dO(t,e){let r=t.split(e||":"),n=Dg(r[0]);if(!r.length)return n;for(let i=0,o=r.length-1;i<o;i++)n=ae(n).mix(ae(Dg(r[i+1]))).saturate(1).hex();return n}Ng.exports=dO});var Ag=S((wM,Ig)=>{"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()};Ig.exports=Oe});var Cg=S((_M,Lg)=>{"use strict";var pO=Rg(),gO=Ag();Lg.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?gO(n+":",pO(n)):n+":";return e[0]=i+" "+e[0],e}});var Fg=S((vM,qg)=>{"use strict";qg.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 kg=S((EM,jg)=>{"use strict";var mO=Fg();jg.exports=function(e){return function(n){try{return mO(n,e())}catch{}return!1}}});var $g=S((SM,Bg)=>{"use strict";var yO=kg();Bg.exports=yO(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Vg=S((TM,Ug)=>{"use strict";Ug.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Wg=S((OM,Hg)=>{"use strict";var bO=ea(),wO=require("tty").isatty(1),Ci=bO(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:wO,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Ci.modify(Cg());Ci.use($g());Ci.set(Vg());Hg.exports=Ci});var $r=S((DM,ia)=>{"use strict";process.env.NODE_ENV==="production"?ia.exports=Og():ia.exports=Wg()});var Kg=S((xM,Xg)=>{"use strict";var oa=require("fs"),{StringDecoder:_O}=require("string_decoder"),{Stream:vO}=Tt();function EO(){}Xg.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new _O("utf8"),i=new vO,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")},oa.open(t.file,"a+","0644",(u,d)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function w(){if(i.destroyed){oa.close(d,EO);return}return oa.read(d,r,0,r.length,s,(E,y)=>{if(E){e?e(E):i.emit("error",E),i.destroy();return}if(!y)return o&&((t.start==null||a>t.start)&&(e?e(null,o):i.emit("line",o)),a++,o=""),setTimeout(w,1e3);let m=n.write(r.slice(0,y));e||i.emit("data",m),m=(o+m).split(/\n+/);let h=m.length-1,v=0;for(;v<h;v++)(t.start==null||a>t.start)&&(e?e(null,m[v]):i.emit("line",m[v])),a++;return o=m[h],s+=y,w()})})()}),e?i.destroy:i}});var Jg=S((MM,zg)=>{"use strict";var be=require("fs"),fe=require("path"),Gg=Op(),SO=require("zlib"),{MESSAGE:TO}=ne(),{Stream:OO,PassThrough:Yg}=Tt(),DO=Ht(),De=$r()("winston:file"),xO=require("os"),PO=Kg();zg.exports=class extends DO{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 Yg,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?fe.basename(e.filename):"winston.log",this.dirname=e.dirname||fe.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=fe.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:xO.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[TO]}${this.eol}`,i=Buffer.byteLength(n);function o(){if(this._size+=i,this._pendingSize-=i,De("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()})),De("written",s,this._drain),this.finishIfEnding(),s}query(e,r){typeof e=="function"&&(r=e,e={}),e=E(e);let n=fe.join(this.dirname,this.filename),i="",o=[],s=0,a=be.createReadStream(n,{encoding:"utf8"});a.on("error",y=>{if(a.readable&&a.destroy(),!!r)return y.code!=="ENOENT"?r(y):r(null,o)}),a.on("data",y=>{y=(i+y).split(/\n+/);let m=y.length-1,h=0;for(;h<m;h++)(!e.start||s>=e.start)&&u(y[h]),s++;i=y[m]}),a.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(o=o.reverse()),r&&r(null,o)});function u(y,m){try{let h=JSON.parse(y);w(h)&&d(h)}catch(h){m||a.emit("error",h)}}function d(y){if(e.rows&&o.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(y=e.fields.reduce((m,h)=>(m[h]=y[h],m),{})),e.order==="desc"&&o.length>=e.rows&&o.shift(),o.push(y)}function w(y){if(!y||typeof y!="object")return;let m=new Date(y.timestamp);if(!(e.from&&m<e.from||e.until&&m>e.until||e.level&&e.level!==y.level))return!0}function E(y){return y=y||{},y.rows=y.rows||y.limit||10,y.start=y.start||0,y.until=y.until||new Date,typeof y.until!="object"&&(y.until=new Date(y.until)),y.from=y.from||y.until-1440*60*1e3,typeof y.from!="object"&&(y.from=new Date(y.from)),y.order=y.order||"desc",y}}stream(e={}){let r=fe.join(this.dirname,this.filename),n=new OO,i={file:r,start:e.start};return n.destroy=PO(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);De("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=fe.join(this.dirname,r);be.stat(n,(i,o)=>{if(i&&i.code==="ENOENT")return De("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return De(`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=fe.join(this.dirname,this.filename);De("create stream start",r,this.options);let n=be.createWriteStream(r,this.options).on("error",i=>De(i)).on("close",()=>De("close",n.path,n.bytesWritten)).on("open",()=>{De("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Yg,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return De("create stream ok",r),n}_incFile(e){De("_incFile",this.filename);let r=fe.extname(this._basename),n=fe.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(o){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(fe.join(this.dirname,`${n}${s}${r}`),fe.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)),Gg(i,e)}_getFile(){let e=fe.extname(this._basename),r=fe.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}`,u=fe.join(this.dirname,a);be.unlink(u,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,u){let d=`${r}${a-1}${e}${o}`,w=fe.join(this.dirname,d);be.exists(w,E=>{if(!E)return u(null);d=`${r}${a}${e}${o}`,be.rename(w,fe.join(this.dirname,d),u)})}.bind(this,s));Gg(i,()=>{be.rename(fe.join(this.dirname,`${r}${e}${o}`),fe.join(this.dirname,`${r}1${e}${o}`),n)})}_compressFile(e,r,n){be.access(e,be.F_OK,i=>{if(i)return n();var o=SO.createGzip(),s=be.createReadStream(e),a=be.createWriteStream(r);a.on("finish",()=>{be.unlink(e,n)}),s.pipe(o).pipe(a)})}_createLogDirIfNotExist(e){be.existsSync(e)||be.mkdirSync(e,{recursive:!0})}}});var Zg=S((RM,Qg)=>{"use strict";var MO=require("http"),NO=require("https"),{Stream:RO}=Tt(),IO=Ht(),{configure:AO}=br();Qg.exports=class extends IO{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(u){return r(u)}r(null,a)})}stream(e={}){let r=new RO;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 u=a.length-1,d=0;for(;d<u;d++)try{r.emit("log",JSON.parse(a[d]))}catch(w){r.emit("error",w)}o=a[u]}),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?NO:MO).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",u=>u.on("end",()=>r(null,u)).resume());let a=AO({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var sa=S((IM,em)=>{"use strict";var Le=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Le.writable=t=>Le(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Le.readable=t=>Le(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Le.duplex=t=>Le.writable(t)&&Le.readable(t);Le.transform=t=>Le.duplex(t)&&typeof t._transform=="function";em.exports=Le});var rm=S((LM,tm)=>{"use strict";var LO=sa(),{MESSAGE:CO}=ne(),qO=require("os"),FO=Ht();tm.exports=class extends FO{constructor(e={}){if(super(e),!e.stream||!LO(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:qO.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[CO]}${this.eol}`),r&&r()}}});var nm=S(Ur=>{"use strict";Object.defineProperty(Ur,"Console",{configurable:!0,enumerable:!0,get(){return Vd()}});Object.defineProperty(Ur,"File",{configurable:!0,enumerable:!0,get(){return Jg()}});Object.defineProperty(Ur,"Http",{configurable:!0,enumerable:!0,get(){return Zg()}});Object.defineProperty(Ur,"Stream",{configurable:!0,enumerable:!0,get(){return rm()}})});var Fi=S(Vr=>{"use strict";var qi=$o(),{configs:aa}=ne();Vr.cli=qi.levels(aa.cli);Vr.npm=qi.levels(aa.npm);Vr.syslog=qi.levels(aa.syslog);Vr.addColors=qi.levels});var om=S((ji,im)=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var jO=ii(),kO=Ot(jO),BO=pi(),$O=Ot(BO),UO=Ts(),VO=Ot(UO),HO=vs(),WO=Ot(HO),XO=Es(),KO=Ot(XO),GO=wt(),YO=Ot(GO),zO=Xt(),JO=Ot(zO);function Ot(t){return t&&t.__esModule?t:{default:t}}function QO(t,e,r){r=(0,WO.default)(r);var n=0,i=0,{length:o}=t,s=!1;o===0&&r(null);function a(u,d){u===!1&&(s=!0),s!==!0&&(u?r(u):(++i===o||d===$O.default)&&r(null))}for(;n<o;n++)e(t[n],n,(0,KO.default)(a))}function ZO(t,e,r){return(0,VO.default)(t,1/0,e,r)}function e2(t,e,r){var n=(0,kO.default)(t)?QO:ZO;return n(t,(0,YO.default)(e),r)}ji.default=(0,JO.default)(e2,3);im.exports=ji.default});var am=S((ki,sm)=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.default=t2;function t2(t){return(e,r,n)=>t(e,n)}sm.exports=ki.default});var Ui=S(($i,um)=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var r2=om(),n2=Bi(r2),i2=am(),o2=Bi(i2),s2=wt(),a2=Bi(s2),u2=Xt(),l2=Bi(u2);function Bi(t){return t&&t.__esModule?t:{default:t}}function f2(t,e,r){return(0,n2.default)(t,(0,o2.default)((0,a2.default)(e)),r)}$i.default=(0,l2.default)(f2,3);um.exports=$i.default});var fm=S((FM,lm)=>{"use strict";var c2=Object.prototype.toString;lm.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=c2.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var ua=S((jM,cm)=>{"use strict";var h2=fm();cm.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=h2(e),i}});var la=S(Wr=>{"use strict";Wr.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||Wr.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Wr.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
44
44
  `).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,u=null,d=null,w=i[5]==="native";if(i[1]){a=i[1];var E=a.lastIndexOf(".");if(a[E-1]=="."&&E--,E>0){o=a.substr(0,E),s=a.substr(E+1);var y=o.indexOf(".Module");y>0&&(a=a.substr(y+1),o=o.substr(0,y))}u=null}s&&(u=o,d=s),s==="<anonymous>"&&(d=null,a=null);var m={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:u,methodName:d,columnNumber:parseInt(i[4],10)||null,native:w};return e._createParsedCallSite(m)}}).filter(function(n){return!!n})};function Hr(t){for(var e in t)this[e]=t[e]}var d2=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],p2=["topLevel","eval","native","constructor"];d2.forEach(function(t){Hr.prototype[t]=null,Hr.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});p2.forEach(function(t){Hr.prototype[t]=!1,Hr.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Wr._createParsedCallSite=function(t){return new Hr(t)}});var dm=S(($M,hm)=>{"use strict";var{Writable:g2}=Tt();hm.exports=class extends g2{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 ca=S((VM,mm)=>{"use strict";var pm=require("os"),m2=Ui(),fa=$r()("winston:exception"),y2=ua(),gm=la(),b2=dm();mm.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(`
45
45
  `),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:pm.loadavg(),uptime:pm.uptime()}}getTrace(e){return(e?gm.parse(e):gm.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 b2(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(){fa("doExit",i),fa("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);m2(n,(a,u)=>{let d=y2(u),w=a.transport||a;function E(y){return()=>{fa(y),d()}}w._ending=!0,w.once("finish",E("finished")),w.once("error",E("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var bm=S((WM,ym)=>{"use strict";var{Writable:w2}=Tt();ym.exports=class extends w2{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 da=S((KM,vm)=>{"use strict";var wm=require("os"),_2=Ui(),ha=$r()("winston:rejection"),v2=ua(),_m=la(),E2=bm();vm.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(`
46
46
  `),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:wm.loadavg(),uptime:wm.uptime()}}getTrace(e){return(e?_m.parse(e):_m.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 E2(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(){ha("doExit",i),ha("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);_2(n,(a,u)=>{let d=v2(u),w=a.transport||a;function E(y){return()=>{ha(y),d()}}w._ending=!0,w.once("finish",E("finished")),w.once("error",E("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Sm=S((GM,Em)=>{"use strict";var pa=class{constructor(e){let r=Vi();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)}};Em.exports=pa});var Vi=S((YM,xm)=>{"use strict";var{Stream:S2,Transform:T2}=Tt(),Tm=Ui(),{LEVEL:Ce,SPLAT:Om}=ne(),Dm=sa(),O2=ca(),D2=da(),x2=bs(),P2=Sm(),{warn:M2}=Uo(),N2=Fi(),R2=/%[scdjifoO%]/g,Hi=class extends T2{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:u,emitErrs:d,formatters:w,padLevels:E,rewriters:y,stripColors:m,exceptionHandlers:h,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||qo()(),this.defaultMeta=n||null,this.levels=i||this.levels||N2.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new O2(this),this.rejections=new D2(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a],a.forEach(I=>this.add(I))),u||d||w||E||y||m)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(`
47
47
  `));h&&this.exceptions.handle(h),v&&this.rejections.handle(v)}getHighestLogLevel(){let e=Xr(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Xr(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Xr(this.levels,e);if(r===null)return!1;let n=Xr(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(o=>{let s=Xr(this.levels,o.level);return s===null&&(s=n),s>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[Ce]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[Ce]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[Ce]: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(R2))){let s=Object.assign({},this.defaultMeta,i,{[Ce]:e,[Om]: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,{[Ce]:e,[Om]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[Ce]||(e[Ce]=e.level),!this.levels[e[Ce]]&&this.levels[e[Ce]]!==0&&console.error("[winston] Unknown logger level: %s",e[Ce]),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();Tm(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Dm(e)||e.log.length>2?new x2({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(!Dm(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(){M2.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function o(a,u){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(d,w)=>{if(d)return u(d);typeof a.formatResults=="function"&&(w=a.formatResults(w,e.format)),u(null,w)})}function s(a,u){o(a,(d,w)=>{u&&(w=d||w,w&&(n[a.name]=w),u()),u=null})}Tm(this.transports.filter(a=>!!a.query),s,()=>r(null,n))}stream(e={}){let r=new S2,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 P2(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(`
48
- `))}_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 Xr(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Hi.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});xm.exports=Hi});var ga=S((zM,Pm)=>{"use strict";var{LEVEL:I2}=ne(),A2=Fi(),L2=Vi(),C2=$r()("winston:create-logger");function q2(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Pm.exports=function(t={}){t.levels=t.levels||A2.npm.levels;class e extends L2{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(C2('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[I2]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[q2(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Nm=S((QM,Mm)=>{"use strict";var F2=ga();Mm.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=F2(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 Im=S(G=>{"use strict";var Rm=$o(),{warn:Kr}=Uo();G.version=Bh().version;G.transports=nm();G.config=Fi();G.addColors=Rm.levels;G.format=Rm.format;G.createLogger=ga();G.Logger=Vi();G.ExceptionHandler=ca();G.RejectionHandler=da();G.Container=Nm();G.Transport=Ht();G.loggers=new G.Container;var qe=G.createLogger();Object.keys(G.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>G[t]=(...e)=>qe[t](...e));Object.defineProperty(G,"level",{get(){return qe.level},set(t){qe.level=t}});Object.defineProperty(G,"exceptions",{get(){return qe.exceptions}});Object.defineProperty(G,"rejections",{get(){return qe.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(G,t,{get(){return qe[t]},set(e){qe[t]=e}})});Object.defineProperty(G,"default",{get(){return{exceptionHandlers:qe.exceptionHandlers,rejectionHandlers:qe.rejectionHandlers,transports:qe.transports}}});Kr.deprecated(G,"setLevels");Kr.forFunctions(G,"useFormat",["cli"]);Kr.forProperties(G,"useFormat",["padLevels","stripColors"]);Kr.forFunctions(G,"deprecated",["addRewriter","addFilter","clone","extend"]);Kr.forProperties(G,"deprecated",["emitErrs","levelLength"])});var j2={};Vm(j2,{ConnectorRunnerFile:()=>ya});module.exports=Hm(j2);var lt=Pe(require("node:process")),rn=class{constructor(e,r){this.#e="connector-runtime";this.init=()=>Promise.resolve();this.start=()=>Promise.resolve();this.stop=()=>Promise.resolve();this.#t=r,lt.on?lt.on("message",n=>{n.cmd===this.#e&&r.logger.verbose(`${lt.pid} Received message from parent process:`,n)}):r.logger.warn("IPC channel is not available. process.on is undefined."),lt.send||r.logger.warn("IPC channel is not available. process.send is undefined."),e.actions?.forEach(n=>{if(n.config.templates===void 0)return;let i={};Object.entries(n.config.templates).forEach(([o,s])=>{try{i[o]=r.templating.compile(s)}catch(a){r.logger.error(`Error compiling template ${o} for action ${n.identifier}`,a)}}),n.config.parsedTemplates=i})}#e;#t;set callbackFunction(e){this.connectorSDK.receiver.registerCallback(this.#r(e))}get connectorSDK(){return this.#t}#r(e){return async r=>{let n=await this.#t.receiver.getActionConfig(r);return n?e(r,n):this.#t.receiver.responses.badRequest("Action not found")(r)}}};var _e=class{info(){}debug(){}error(){}warn(){}verbose(){}};var Fm=Pe(require("node:events"));var rr=class{static{this.TYPE="file.delete"}#e;#t;constructor(e,r=new _e){this.#e=e,this.#t=r}async execute(e){let{remotePath:r}=e;if(!r)throw new Error("Missing required parameter: remotePath");this.#t.debug(`Deleting file at ${r}`);try{await this.#e.delete(r)}catch(n){throw this.#t.error(`Error deleting file at ${r}: ${n instanceof Error?n.message:"Unknown error"}`),n}}};var _a=Pe(require("crypto")),on=new Uint8Array(256),nn=on.length;function Xi(){return nn>on.length-16&&(_a.default.randomFillSync(on),nn=0),on.slice(nn,nn+=16)}var ce=[];for(let t=0;t<256;++t)ce.push((t+256).toString(16).slice(1));function va(t,e=0){return ce[t[e+0]]+ce[t[e+1]]+ce[t[e+2]]+ce[t[e+3]]+"-"+ce[t[e+4]]+ce[t[e+5]]+"-"+ce[t[e+6]]+ce[t[e+7]]+"-"+ce[t[e+8]]+ce[t[e+9]]+"-"+ce[t[e+10]]+ce[t[e+11]]+ce[t[e+12]]+ce[t[e+13]]+ce[t[e+14]]+ce[t[e+15]]}var Ea=Pe(require("crypto")),Ki={randomUUID:Ea.default.randomUUID};function Wm(t,e,r){if(Ki.randomUUID&&!e&&!t)return Ki.randomUUID();t=t||{};let n=t.random||(t.rng||Xi)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return va(n)}var Gi=Wm;var nr=class{static{this.TYPE="file.download"}#e;#t;#r;constructor(e,r,n=new _e){this.#e=e,this.#t=r,this.#r=n}async execute(e){let{remotePath:r}=e;if(!r)throw new Error("Missing required parameter: remotePath");let n=`downloaded-${Gi()}`;this.#r.debug(`Reading file from ${r} and writing to ${n}`);let i;try{i=await this.#e.read(r),await this.#t.write(n,i)}catch(o){throw this.#r.error(`Error reading file from ${r}: ${o instanceof Error?o.message:"Unknown error"}`),o}finally{i?.close()}return{pathDsn:this.#t.pathAsDsn(n),path:n}}};var Lm=Pe(Wu()),Cm=Pe(bc()),er=Pe(require("path"));var xe=Pe(require("node:process")),pe=Pe(Im()),Am=(o=>(o.error="error",o.warn="warn",o.info="info",o.http="http",o.debug="debug",o))(Am||{}),Gr=class t{#e;constructor(e="default",r="info"){this.logger=pe.createLogger({level:r,format:pe.format.combine(pe.format.label({label:e}),pe.format.timestamp(),pe.format.json())});let n=!1;(xe.default.env.NODE_ENV!=="production"||xe.default.env.LOG_TO_CONSOLE==="true")&&(n=!0,this.logger.add(new pe.transports.Console({format:pe.format.printf(({label:i,level:o,message:s})=>{let a=new Date().toLocaleString();return`[${i}] ${xe.default.pid} - ${a} ${o}: ${s}`})}))),xe.default.env.LOG_TO_FILE==="true"&&(n=!0,this.logger.add(new pe.transports.File({filename:"error.log",level:"error"})),this.logger.add(new pe.transports.File({filename:"combined.log"}))),n||this.logger.add(new pe.transports.Console({format:pe.format.printf(({label:i,level:o,message:s})=>`[${i}] ${o}: ${s}`)}))}static getInstance(e,r){return t.instance||(t.instance=new t(e??"default",t.#r(r))),t.instance}setDatadogTransport(e){let r=e?.apiKey??xe.default.env.DATADOG_API_KEY;if(!r)return this.debug("DATADOG_API_KEY is not set, cannot add Datadog transport"),this;let n=new URLSearchParams({"dd-api-key":r,ddsource:e?.source??xe.default.env.DD_SOURCE??"nodejs",service:e?.service??xe.default.env.DD_SERVICE??"unknown",env:e?.env??xe.default.env.DD_ENV??"prod"});e?.tags&&n.append("ddtags",Object.entries(e.tags).map(([o,s])=>`${o}:${s}`).join(","));let i={host:`http-intake.logs.${xe.default.env.DD_SITE??"datadoghq.eu"}`,path:`/api/v2/logs?${n.toString()}`,ssl:!0,batch:!0,format:pe.format.json(),level:"info"};return this.#e&&this.logger.remove(this.#e),this.#e=new pe.transports.Http(i),this.logger.add(this.#e),this}info(...e){this.#t(this.logger.info,...e)}debug(...e){this.#t(this.logger.debug,...e)}error(...e){this.#t(this.logger.error,...e)}warn(...e){this.#t(this.logger.warn,...e)}verbose(...e){this.#t(this.logger.verbose,...e)}#t(e,...r){try{let n=r.map(i=>typeof i=="object"?JSON.stringify(i):String(i));e(n.join(" "),...r)}catch(n){console.error("unknown error in log, function",n)}}static#r=e=>{if(e!==void 0)return e;let r=xe.default.env.LOG_LEVEL||"info",i=!Object.values(Am).includes(r);return i&&(r="info"),i&&console.error(`Invalid log level: ${r} only allow; 'error', 'warn', 'info', 'debug', 'trace'. Using info as default.`),r}};var qm=require("stream"),Dt=class t{#e;#t;constructor(e=void 0){this.#e=e,this.#t=Gr.getInstance(),this.#t.info(`FileHandler initialized with delimiter: ${e}`)}async handleBuffer(e,r,n,i){let o;switch(t.getExtension(e)){case".csv":o=await this.parseCSV(r,n,i);break;default:return this.handle(e,r.toString(),n,i)}return o}async handle(e,r,n,i){let o;switch(t.getExtension(e)){case".xml":o=await this.parseXML(r,n);break;case".json":o=JSON.parse(r);break;default:Gr.getInstance().error(`Unsupported file type: ${e}`)}return o}async parseXML(e,r){try{let n=await Lm.default.parseStringPromise(e,{explicitArray:!1});return this.xmlOptions(n,r)}catch(n){throw new Error(`Error parsing XML content: ${n.message}`)}}async parseCSV(e,r,n){try{let i=qm.Readable.from(e),o=!0;return Object.keys(n??{}).includes("noHeader")&&(o=(n??{}).noHeader===!0),(0,Cm.default)({delimiter:this.#e??",",noheader:o}).fromStream(i)}catch(i){throw this.#t.error(`Error parsing CSV: ${i.message}`),new Error(`Error parsing CSV content: ${i.message}`)}}xmlOptions(e,r){let n=i=>{if(typeof i=="object")for(let o of Object.keys(i)){let s=i[o];r.includes(o)?Array.isArray(s)||(i[o]=[s]):o!=="_text"&&(i[o]=n(s))}return i};return n(e)}csvOptions(e,r){let n;return Array.isArray(r)&&r.length>0?n={headers:r}:n=e.split(`
48
+ `))}_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 Xr(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Hi.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});xm.exports=Hi});var ga=S((zM,Pm)=>{"use strict";var{LEVEL:I2}=ne(),A2=Fi(),L2=Vi(),C2=$r()("winston:create-logger");function q2(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Pm.exports=function(t={}){t.levels=t.levels||A2.npm.levels;class e extends L2{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(C2('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[I2]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[q2(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Nm=S((QM,Mm)=>{"use strict";var F2=ga();Mm.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=F2(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 Im=S(G=>{"use strict";var Rm=$o(),{warn:Kr}=Uo();G.version=Bh().version;G.transports=nm();G.config=Fi();G.addColors=Rm.levels;G.format=Rm.format;G.createLogger=ga();G.Logger=Vi();G.ExceptionHandler=ca();G.RejectionHandler=da();G.Container=Nm();G.Transport=Ht();G.loggers=new G.Container;var qe=G.createLogger();Object.keys(G.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>G[t]=(...e)=>qe[t](...e));Object.defineProperty(G,"level",{get(){return qe.level},set(t){qe.level=t}});Object.defineProperty(G,"exceptions",{get(){return qe.exceptions}});Object.defineProperty(G,"rejections",{get(){return qe.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(G,t,{get(){return qe[t]},set(e){qe[t]=e}})});Object.defineProperty(G,"default",{get(){return{exceptionHandlers:qe.exceptionHandlers,rejectionHandlers:qe.rejectionHandlers,transports:qe.transports}}});Kr.deprecated(G,"setLevels");Kr.forFunctions(G,"useFormat",["cli"]);Kr.forProperties(G,"useFormat",["padLevels","stripColors"]);Kr.forFunctions(G,"deprecated",["addRewriter","addFilter","clone","extend"]);Kr.forProperties(G,"deprecated",["emitErrs","levelLength"])});var j2={};Vm(j2,{ConnectorRunnerFile:()=>ya});module.exports=Hm(j2);var lt=Pe(require("node:process")),rn=class{constructor(e,r){this.#e="connector-runtime";this.init=()=>Promise.resolve();this.start=()=>Promise.resolve();this.stop=()=>Promise.resolve();this.#t=r,lt.on?lt.on("message",n=>{n.cmd===this.#e&&r.logger.verbose(`${lt.pid} Received message from parent process:`,n)}):r.logger.warn("IPC channel is not available. process.on is undefined."),lt.send||r.logger.warn("IPC channel is not available. process.send is undefined."),e.actions?.forEach(n=>{if(n.config.templates===void 0)return;let i={};Object.entries(n.config.templates).forEach(([o,s])=>{try{i[o]=r.templating.compile(s)}catch(a){r.logger.error(`Error compiling template ${o} for action ${n.identifier}`,a)}}),n.config.parsedTemplates=i})}#e;#t;set callbackFunction(e){this.connectorSDK.receiver.registerCallback(this.#r(e))}get connectorSDK(){return this.#t}#r(e){return async r=>{let n=await this.#t.receiver.getActionConfig(r);return n?e(r,n):this.#t.receiver.responses.badRequest("Action not found")(r)}}};var _e=class{info(){}debug(){}error(){}warn(){}verbose(){}};var Fm=Pe(require("node:events"));var rr=class{static{this.TYPE="file.delete"}#e;#t;constructor(e,r=new _e){this.#e=e,this.#t=r}async execute(e){let{remotePath:r}=e;if(!r)throw new Error("Missing required parameter: remotePath");this.#t.debug(`Deleting file at ${r}`);try{await this.#e.delete(r)}catch(n){throw this.#t.error(`Error deleting file at ${r}: ${n instanceof Error?n.message:"Unknown error"}`),n}}};var _a=Pe(require("crypto")),on=new Uint8Array(256),nn=on.length;function Xi(){return nn>on.length-16&&(_a.default.randomFillSync(on),nn=0),on.slice(nn,nn+=16)}var ce=[];for(let t=0;t<256;++t)ce.push((t+256).toString(16).slice(1));function va(t,e=0){return ce[t[e+0]]+ce[t[e+1]]+ce[t[e+2]]+ce[t[e+3]]+"-"+ce[t[e+4]]+ce[t[e+5]]+"-"+ce[t[e+6]]+ce[t[e+7]]+"-"+ce[t[e+8]]+ce[t[e+9]]+"-"+ce[t[e+10]]+ce[t[e+11]]+ce[t[e+12]]+ce[t[e+13]]+ce[t[e+14]]+ce[t[e+15]]}var Ea=Pe(require("crypto")),Ki={randomUUID:Ea.default.randomUUID};function Wm(t,e,r){if(Ki.randomUUID&&!e&&!t)return Ki.randomUUID();t=t||{};let n=t.random||(t.rng||Xi)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return va(n)}var Gi=Wm;var nr=class{static{this.TYPE="file.download"}#e;#t;#r;constructor(e,r,n=new _e){this.#e=e,this.#t=r,this.#r=n}async execute(e){let{remotePath:r}=e;if(!r)throw new Error("Missing required parameter: remotePath");let n=`downloaded-${Gi()}`;this.#r.debug(`Reading file from ${r} and writing to ${n}`);let i;try{i=await this.#e.read(r),await this.#t.write(n,i)}catch(o){throw this.#r.error(`Error reading file from ${r}: ${o instanceof Error?o.message:"Unknown error"}`),o}finally{i?.close()}return{pathDsn:this.#t.pathAsDsn(n),path:n}}};var Lm=Pe(Wu()),Cm=Pe(bc()),er=Pe(require("path"));var xe=Pe(require("node:process")),de=Pe(Im()),Am=(o=>(o.error="error",o.warn="warn",o.info="info",o.http="http",o.debug="debug",o))(Am||{}),Gr=class t{#e;constructor(e="default",r="info"){this.logger=de.createLogger({level:r,format:de.format.combine(de.format.label({label:e}),de.format.timestamp(),de.format.json(),de.format.errors({stack:!0}))});let n=!1;(xe.default.env.NODE_ENV!=="production"||xe.default.env.LOG_TO_CONSOLE==="true")&&(n=!0,this.logger.add(new de.transports.Console({format:de.format.printf(({label:i,level:o,message:s})=>{let a=new Date().toLocaleString();return`[${i}] ${xe.default.pid} - ${a} ${o}: ${s}`})}))),xe.default.env.LOG_TO_FILE==="true"&&(n=!0,this.logger.add(new de.transports.File({filename:"error.log",level:"error"})),this.logger.add(new de.transports.File({filename:"combined.log"}))),n||this.logger.add(new de.transports.Console({format:de.format.printf(({label:i,level:o,message:s})=>`[${i}] ${o}: ${s}`)}))}static getInstance(e,r){return t.instance||(t.instance=new t(e??"default",t.#r(r))),t.instance}setDatadogTransport(e){let r=e?.apiKey??xe.default.env.DATADOG_API_KEY;if(!r)return this.debug("DATADOG_API_KEY is not set, cannot add Datadog transport"),this;let n=new URLSearchParams({"dd-api-key":r,ddsource:e?.source??xe.default.env.DD_SOURCE??"nodejs",service:e?.service??xe.default.env.DD_SERVICE??"unknown",env:e?.env??xe.default.env.DD_ENV??"prod"});e?.tags&&n.append("ddtags",Object.entries(e.tags).map(([o,s])=>`${o}:${s}`).join(","));let i={host:`http-intake.logs.${xe.default.env.DD_SITE??"datadoghq.eu"}`,path:`/api/v2/logs?${n.toString()}`,ssl:!0,batch:!0,format:de.format.json(),level:"info"};return this.#e&&this.logger.remove(this.#e),this.#e=new de.transports.Http(i),this.logger.add(this.#e),this}info(...e){this.#t(this.logger.info,...e)}debug(...e){this.#t(this.logger.debug,...e)}error(...e){this.#t(this.logger.error,...e)}warn(...e){this.#t(this.logger.warn,...e)}verbose(...e){this.#t(this.logger.verbose,...e)}#t(e,...r){try{let n=r.map(i=>typeof i=="object"?JSON.stringify(i):String(i));e(n.join(" "),...r)}catch(n){console.error("unknown error in log, function",n)}}static#r=e=>{if(e!==void 0)return e;let r=xe.default.env.LOG_LEVEL||"info",i=!Object.values(Am).includes(r);return i&&(r="info"),i&&console.error(`Invalid log level: ${r} only allow; 'error', 'warn', 'info', 'debug', 'trace'. Using info as default.`),r}};var qm=require("stream"),Dt=class t{#e;#t;constructor(e=void 0){this.#e=e,this.#t=Gr.getInstance(),this.#t.info(`FileHandler initialized with delimiter: ${e}`)}async handleBuffer(e,r,n,i){let o;switch(t.getExtension(e)){case".csv":o=await this.parseCSV(r,n,i);break;default:return this.handle(e,r.toString(),n,i)}return o}async handle(e,r,n,i){let o;switch(t.getExtension(e)){case".xml":o=await this.parseXML(r,n);break;case".json":o=JSON.parse(r);break;default:Gr.getInstance().error(`Unsupported file type: ${e}`)}return o}async parseXML(e,r){try{let n=await Lm.default.parseStringPromise(e,{explicitArray:!1});return this.xmlOptions(n,r)}catch(n){throw new Error(`Error parsing XML content: ${n.message}`)}}async parseCSV(e,r,n){try{let i=qm.Readable.from(e),o=!0;return Object.keys(n??{}).includes("noHeader")&&(o=(n??{}).noHeader===!0),(0,Cm.default)({delimiter:this.#e??",",noheader:o}).fromStream(i)}catch(i){throw this.#t.error(`Error parsing CSV: ${i.message}`),new Error(`Error parsing CSV content: ${i.message}`)}}xmlOptions(e,r){let n=i=>{if(typeof i=="object")for(let o of Object.keys(i)){let s=i[o];r.includes(o)?Array.isArray(s)||(i[o]=[s]):o!=="_text"&&(i[o]=n(s))}return i};return n(e)}csvOptions(e,r){let n;return Array.isArray(r)&&r.length>0?n={headers:r}:n=e.split(`
49
49
  `)[0].trim().split(",").length>1?{headers:!0}:{noheader:!0},n}stringify(e){return JSON.stringify(e,null,2)}static getPath(e){return er.dirname(e)}static getFileName(e){return er.basename(e)}static getExtension(e){return er.extname(e).toLowerCase()}};var Yr=class{static{this.TYPE="file.read"}#e;#t;#r;#n;constructor(e,r,n=new _e){this.#e=e,this.#t=r,this.#r=n,this.#n=new Dt}async execute(e){let{localPath:r,remotePath:n}=e;if(!r&&!n)throw new Error("Missing required parameter: localPath or remotePath");if(r&&n)throw new Error("Use either localPath or remotePath");this.#r.debug(`Reading file from ${r??n}`);let i,o;try{r?i=await this.#t.read(this.#i(r)):i=await this.#e.read(n);let s=i.get();e.raw!==!0&&e.raw!=="true"?o=await this.#n.handleBuffer(r??n,s,[]):o=s.toString()}catch(s){throw this.#r.error(`Error reading file from ${r??n}: ${s instanceof Error?s.message:"Unknown error"}`),s}finally{i?.close()}return{contents:o}}#i(e){if(!e.startsWith("file://"))return e;let r=this.#t.pathAsDsn("/");if(e.startsWith(r))return e.slice(r.length-1);throw new Error(`Local path must be of the right format matching the local file SDK, got: ${e}`)}};var zr=class{static{this.TYPE="file.upload"}#e;#t;#r;constructor(e,r,n=new _e){this.#e=e,this.#t=r,this.#r=n}async execute(e){let{localPath:r,remotePath:n}=e;if(!r)throw new Error("Missing required parameter: localPath");if(!n)throw new Error("Missing required parameter: remotePath");this.#r.debug(`Writing file from ${r} to ${n}`);let i;try{i=await this.#t.read(this.#n(r));let o=await this.#e.exists(n);if(o&&e.overwrite!==!0&&e.overwrite!=="true")throw new Error(`File already exists at ${n}. Set overwrite to true to replace it.`);o&&await this.#e.delete(n).catch(()=>{}),await this.#e.write(n,i)}catch(o){throw this.#r.error(`Error writing file from ${r} to ${n}: ${o instanceof Error?o.message:"Unknown error"}`),o}finally{i?.close()}}#n(e){if(!e.startsWith("file://"))return e;let r=this.#t.pathAsDsn("/");if(e.startsWith(r))return e.slice(r.length-1);throw new Error(`Local path must be of the right format matching the local file SDK, got: ${e}`)}};var Jr=class{static{this.TYPE="file.write"}#e;#t;constructor(e,r=new _e){this.#e=e,this.#t=r}async execute(e){let{contents:r,remotePath:n}=e;if(!r&&r!=="")throw new Error("Missing required parameter: contents");if(!n)throw new Error("Missing required parameter: remotePath");this.#t.debug(`Writing content to ${n}`);try{let i=await this.#e.exists(n);if(i&&e.overwrite!==!0&&e.overwrite!=="true")throw new Error(`File already exists at ${n}. Set overwrite to true to replace it.`);i&&await this.#e.delete(n).catch(()=>{}),await this.#e.write(n,r)}catch(i){throw this.#t.error(`Error writing content to ${n}: ${i instanceof Error?i.message:"Unknown error"}`),i}}};var Wi=class extends Fm.default{#e;#t;constructor(e,r,n){super(),this.#e=e,n=n??this.#e.files(`file://${process.env.TRANSAI_TMP_DIR??"/var/run/transai"}/connectors/${e.config.datasourceIdentifier??"file"}`),this.#t={[nr.TYPE]:new nr(r,n,this.#e.logger),[zr.TYPE]:new zr(r,n,this.#e.logger),[Jr.TYPE]:new Jr(r,this.#e.logger),[rr.TYPE]:new rr(r,this.#e.logger),[Yr.TYPE]:new Yr(r,n,this.#e.logger)}}get callbackFunctionChain(){return this.#r(this.#e.receiver.emitEventType(this.#e.receiver.responses.ok()))}#r(e){return async(r,n)=>{let i=n.identifier,o=this.#t[i];if(!o)return this.#e.receiver.responses.badRequest(`Action ${i} does not exist.`)(r);try{let s=await o.execute(r.payload);this.#e.logger.debug(`Action ${i} executed successfully with pathDsn: ${JSON.stringify(s)}`);let a=r;return typeof s<"u"&&(a={...r,payload:s}),e(a)}catch(s){return this.#e.logger.error(`Error executing action ${i}: ${s instanceof Error?s.message:"Unknown error"}`),this.#e.receiver.responses.internalServerError(s instanceof Error?s.message:"Unknown error occurred")(r)}}}};var ma=Pe(require("path"));var Qr=class{static{this.DEFAULT_INTERVAL_SECONDS=60}#e;#t;#r;#n;#i;#o;constructor(e,r,n){this.#e=e,this.#t=r,this.#r=n,this.#i=new Dt(r.delimiter);let{selector:i}=this.#t;if(this.#o=new RegExp(typeof i!="string"?i.pattern:i,typeof i!="string"&&i.flags?i.flags:"i"),this.#t.destinationDsn)this.#n=this.#e.files(this.#t.destinationDsn);else if(this.#t.action==="move")throw new Error(`Destination DSN must be provided for 'move' action in file selector: ${this.name}`)}get name(){let{selector:e}=this.#t;return`file-processor-${typeof e=="string"?e:e.pattern}`}async onRun(){let e=await this.#s();this.#e.telemetry.increment("files.processed.count",e)}async#s(e="/"){let r=await this.#r.list(e);return(await Promise.all(r.map(async i=>i.type==="FILE"?await this.#a(i,e)?1:0:this.#t.recursive===!0?this.#s(ma.default.join(e,i.name)):Promise.resolve(0)))).reduce((i,o)=>i+o,0)}async#a(e,r){let n=ma.default.join(r,e.name);if(!this.#o.test(n))return this.#e.logger.verbose(`Skipping file at path: ${n} as it does not match selector regex`),!1;this.#e.logger.debug(`Processing file at path: ${n}`);let i,o;try{if(i=await this.#r.read(n),o=await this.#i.handleBuffer(n,i.get(),this.#t.optionalHeaders??[],this.#t.optionalSettings),!o)return this.#e.logger.info(`Failed to parse file at path: ${n}`),i.close(),!1;this.#e.logger.debug(`Parsed file successfully at path: ${n}`)}catch(s){return this.#e.logger.error(`Error parsing file at path: ${n}, error: ${s}`),i?.close(),!1}try{let s={...o,_filename:Dt.getFileName(n)??e.name},a={keyField:"_filename",collection:`${this.#e.config.datasourceIdentifier??"file"}_${this.#t.identifier??this.#o.source??"default"}`};this.#t.action==="move"&&(s._fileDestination=this.#n?.pathAsDsn(e.name)),this.#t.type==="metric"?await this.#e.sender.metricsLegacy([s],a):await this.#e.sender.documents([s],a)}catch(s){return this.#e.logger.error(`Error sending parsed file from path: ${n}, error: ${s}`),i?.close(),!1}try{switch(this.#t.action){case"move":await this.#n?.write(e.name,i),await this.#r.delete(n),this.#e.logger.debug(`"Moved" file at path: ${n} to ${this.#n?.pathAsDsn(e.name)} after processing`);break;case"delete":await this.#r.delete(n),this.#e.logger.debug(`Deleted file at path: ${n} after processing`);break}}finally{i?.close()}return!0}};var ya=class extends rn{constructor(r,n){super(r,n);this.init=async()=>{let{config:r}=this.connectorSDK;await Promise.all((r.fileSelectors??[]).map(async n=>{let i=new Qr(this.connectorSDK,n,this.#e);await this.connectorSDK.processing.registerInterval(n.intervalSeconds??Qr.DEFAULT_INTERVAL_SECONDS,i)}))};let{config:i}=this.connectorSDK;this.#e=this.connectorSDK.files(i.dsn);let o=new Wi(this.connectorSDK,this.#e);this.callbackFunction=o.callbackFunctionChain}#e};0&&(module.exports={ConnectorRunnerFile});
50
50
  /*! Bundled license information:
51
51