@getontime/cli
Version:
Time keeping for live events
14 lines • 3.28 MB
JavaScript
"use strict";var Ape=Object.create;var Y2=Object.defineProperty;var oL=Object.getOwnPropertyDescriptor;var Tpe=Object.getOwnPropertyNames;var Fpe=Object.getPrototypeOf,Cpe=Object.prototype.hasOwnProperty;var Ci=(e,t)=>()=>(e&&(t=e(e=0)),t);var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cL=(e,t)=>{for(var a in t)Y2(e,a,{get:t[a],enumerable:!0})},lL=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Tpe(t))!Cpe.call(e,i)&&i!==a&&Y2(e,i,{get:()=>t[i],enumerable:!(r=oL(t,i))||r.enumerable});return e};var qt=(e,t,a)=>(a=e!=null?Ape(Fpe(e)):{},lL(t||!e||!e.__esModule?Y2(a,"default",{value:e,enumerable:!0}):a,e)),uL=e=>lL(Y2({},"__esModule",{value:!0}),e),va=(e,t,a,r)=>{for(var i=r>1?void 0:r?oL(t,a):t,c=e.length-1,p;c>=0;c--)(p=e[c])&&(i=(r?p(t,a,i):p(i))||i);return r&&i&&Y2(t,a,i),i};var pL=N((Zje,Dpe)=>{Dpe.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var vL=N((Yje,Yl)=>{var LA=require("fs"),K8=require("path"),Ppe=require("os"),Ipe=require("crypto"),Npe=pL(),BA=Npe.version,Mpe=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Lpe(e){let t={},a=e.toString();a=a.replace(/\r\n?/mg,`
`);let r;for(;(r=Mpe.exec(a))!=null;){let i=r[1],c=r[2]||"";c=c.trim();let p=c[0];c=c.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),p==='"'&&(c=c.replace(/\\n/g,`
`),c=c.replace(/\\r/g,"\r")),t[i]=c}return t}function Bpe(e){e=e||{};let t=hL(e);e.path=t;let a=Sn.configDotenv(e);if(!a.parsed){let p=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw p.code="MISSING_DATA",p}let r=mL(e).split(","),i=r.length,c;for(let p=0;p<i;p++)try{let f=r[p].trim(),v=jpe(a,f);c=Sn.decrypt(v.ciphertext,v.key);break}catch(f){if(p+1>=i)throw f}return Sn.parse(c)}function Upe(e){console.log(`[dotenv@${BA}][WARN] ${e}`)}function e4(e){console.log(`[dotenv@${BA}][DEBUG] ${e}`)}function fL(e){console.log(`[dotenv@${BA}] ${e}`)}function mL(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function jpe(e,t){let a;try{a=new URL(t)}catch(f){if(f.code==="ERR_INVALID_URL"){let v=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw v.code="INVALID_DOTENV_KEY",v}throw f}let r=a.password;if(!r){let f=new Error("INVALID_DOTENV_KEY: Missing key part");throw f.code="INVALID_DOTENV_KEY",f}let i=a.searchParams.get("environment");if(!i){let f=new Error("INVALID_DOTENV_KEY: Missing environment part");throw f.code="INVALID_DOTENV_KEY",f}let c=`DOTENV_VAULT_${i.toUpperCase()}`,p=e.parsed[c];if(!p){let f=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${c} in your .env.vault file.`);throw f.code="NOT_FOUND_DOTENV_ENVIRONMENT",f}return{ciphertext:p,key:r}}function hL(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let a of e.path)LA.existsSync(a)&&(t=a.endsWith(".vault")?a:`${a}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=K8.resolve(process.cwd(),".env.vault");return LA.existsSync(t)?t:null}function dL(e){return e[0]==="~"?K8.join(Ppe.homedir(),e.slice(1)):e}function qpe(e){let t=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;(t||!a)&&fL("Loading env from encrypted .env.vault");let r=Sn._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),Sn.populate(i,r,e),{parsed:r}}function $pe(e){let t=K8.resolve(process.cwd(),".env"),a="utf8",r=!!(e&&e.debug),i=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?a=e.encoding:r&&e4("No encoding is specified. UTF-8 is used by default");let c=[t];if(e&&e.path)if(!Array.isArray(e.path))c=[dL(e.path)];else{c=[];for(let y of e.path)c.push(dL(y))}let p,f={};for(let y of c)try{let b=Sn.parse(LA.readFileSync(y,{encoding:a}));Sn.populate(f,b,e)}catch(b){r&&e4(`Failed to load ${y} ${b.message}`),p=b}let v=process.env;if(e&&e.processEnv!=null&&(v=e.processEnv),Sn.populate(v,f,e),r||!i){let y=Object.keys(f).length,b=[];for(let E of c)try{let T=K8.relative(process.cwd(),E);b.push(T)}catch(T){r&&e4(`Failed to load ${E} ${T.message}`),p=T}fL(`injecting env (${y}) from ${b.join(",")}`)}return p?{parsed:f,error:p}:{parsed:f}}function Vpe(e){if(mL(e).length===0)return Sn.configDotenv(e);let t=hL(e);return t?Sn._configVault(e):(Upe(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Sn.configDotenv(e))}function Hpe(e,t){let a=Buffer.from(t.slice(-64),"hex"),r=Buffer.from(e,"base64"),i=r.subarray(0,12),c=r.subarray(-16);r=r.subarray(12,-16);try{let p=Ipe.createDecipheriv("aes-256-gcm",a,i);return p.setAuthTag(c),`${p.update(r)}${p.final()}`}catch(p){let f=p instanceof RangeError,v=p.message==="Invalid key length",y=p.message==="Unsupported state or unable to authenticate data";if(f||v){let b=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw b.code="INVALID_DOTENV_KEY",b}else if(y){let b=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw b.code="DECRYPTION_FAILED",b}else throw p}}function Wpe(e,t,a={}){let r=!!(a&&a.debug),i=!!(a&&a.override);if(typeof t!="object"){let c=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw c.code="OBJECT_REQUIRED",c}for(let c of Object.keys(t))Object.prototype.hasOwnProperty.call(e,c)?(i===!0&&(e[c]=t[c]),r&&e4(i===!0?`"${c}" is already defined and WAS overwritten`:`"${c}" is already defined and was NOT overwritten`)):e[c]=t[c]}var Sn={configDotenv:$pe,_configVault:qpe,_parseVault:Bpe,config:Vpe,decrypt:Hpe,parse:Lpe,populate:Wpe};Yl.exports.configDotenv=Sn.configDotenv;Yl.exports._configVault=Sn._configVault;Yl.exports._parseVault=Sn._parseVault;Yl.exports.config=Sn.config;Yl.exports.decrypt=Sn.decrypt;Yl.exports.parse=Sn.parse;Yl.exports.populate=Sn.populate;Yl.exports=Sn});var xL=N((Xje,gL)=>{var Gd={};process.env.DOTENV_CONFIG_ENCODING!=null&&(Gd.encoding=process.env.DOTENV_CONFIG_ENCODING);process.env.DOTENV_CONFIG_PATH!=null&&(Gd.path=process.env.DOTENV_CONFIG_PATH);process.env.DOTENV_CONFIG_QUIET!=null&&(Gd.quiet=process.env.DOTENV_CONFIG_QUIET);process.env.DOTENV_CONFIG_DEBUG!=null&&(Gd.debug=process.env.DOTENV_CONFIG_DEBUG);process.env.DOTENV_CONFIG_OVERRIDE!=null&&(Gd.override=process.env.DOTENV_CONFIG_OVERRIDE);process.env.DOTENV_CONFIG_DOTENV_KEY!=null&&(Gd.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY);gL.exports=Gd});var wL=N((Jje,yL)=>{var Gpe=/^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/;yL.exports=function(t){let a=t.reduce(function(r,i){let c=i.match(Gpe);return c&&(r[c[1]]=c[2]),r},{});return"quiet"in a||(a.quiet="true"),a}});var X8=N((Qje,SL)=>{var zpe=require("path").relative;SL.exports=Jpe;var Kpe=process.cwd();function _L(e,t){for(var a=e.split(/[ ,]+/),r=String(t).toLowerCase(),i=0;i<a.length;i++){var c=a[i];if(c&&(c==="*"||c.toLowerCase()===r))return!0}return!1}function Zpe(e,t,a){var r=Object.getOwnPropertyDescriptor(e,t),i=r.value;return r.get=function(){return i},r.writable&&(r.set=function(p){return i=p}),delete r.value,delete r.writable,Object.defineProperty(e,t,r),r}function Ype(e){for(var t="",a=0;a<e;a++)t+=", arg"+a;return t.substr(2)}function Xpe(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var a=0;a<e.length;a++)t+=`
at `+e[a].toString();return t}function Jpe(e){if(!e)throw new TypeError("argument namespace is required");var t=Y8(),a=Kf(t[1]),r=a[0];function i(c){Z8.call(i,c)}return i._file=r,i._ignored=ede(e),i._namespace=e,i._traced=tde(e),i._warned=Object.create(null),i.function=ide,i.property=sde,i}function Qpe(e,t){var a=typeof e.listenerCount!="function"?e.listeners(t).length:e.listenerCount(t);return a>0}function ede(e){if(process.noDeprecation)return!0;var t=process.env.NO_DEPRECATION||"";return _L(t,e)}function tde(e){if(process.traceDeprecation)return!0;var t=process.env.TRACE_DEPRECATION||"";return _L(t,e)}function Z8(e,t){var a=Qpe(process,"deprecation");if(!(!a&&this._ignored)){var r,i,c,p,f=0,v=!1,y=Y8(),b=this._file;for(t?(p=t,c=Kf(y[1]),c.name=p.name,b=c[0]):(f=2,p=Kf(y[f]),c=p);f<y.length;f++)if(r=Kf(y[f]),i=r[0],i===b)v=!0;else if(i===this._file)b=this._file;else if(v)break;var E=r?p.join(":")+"__"+r.join(":"):void 0;if(!(E!==void 0&&E in this._warned)){this._warned[E]=!0;var T=e;if(T||(T=c===p||!c.name?bL(p):bL(c)),a){var C=EL(this._namespace,T,y.slice(f));process.emit("deprecation",C);return}var k=process.stderr.isTTY?ade:rde,D=k.call(this,T,r,y.slice(f));process.stderr.write(D+`
`,"utf8")}}}function Kf(e){var t=e.getFileName()||"<anonymous>",a=e.getLineNumber(),r=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var i=[t,a,r];return i.callSite=e,i.name=e.getFunctionName(),i}function bL(e){var t=e.callSite,a=e.name;a||(a="<anonymous@"+UA(e)+">");var r=t.getThis(),i=r&&t.getTypeName();return i==="Object"&&(i=void 0),i==="Function"&&(i=r.name||i),i&&t.getMethodName()?i+"."+a:a}function rde(e,t,a){var r=new Date().toUTCString(),i=r+" "+this._namespace+" deprecated "+e;if(this._traced){for(var c=0;c<a.length;c++)i+=`
at `+a[c].toString();return i}return t&&(i+=" at "+UA(t)),i}function ade(e,t,a){var r="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var i=0;i<a.length;i++)r+=`
\x1B[36mat `+a[i].toString()+"\x1B[39m";return r}return t&&(r+=" \x1B[36m"+UA(t)+"\x1B[39m"),r}function UA(e){return zpe(Kpe,e[0])+":"+e[1]+":"+e[2]}function Y8(){var e=Error.stackTraceLimit,t={},a=Error.prepareStackTrace;Error.prepareStackTrace=nde,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var r=t.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,r}function nde(e,t){return t}function ide(e,t){if(typeof e!="function")throw new TypeError("argument fn must be a function");var a=Ype(e.length),r=Y8(),i=Kf(r[1]);i.name=e.name;var c=new Function("fn","log","deprecate","message","site",`"use strict"
return function (`+a+`) {log.call(deprecate, message, site)
return fn.apply(this, arguments)
}`)(e,Z8,this,t,i);return c}function sde(e,t,a){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("argument obj must be object");var r=Object.getOwnPropertyDescriptor(e,t);if(!r)throw new TypeError("must call property on owner object");if(!r.configurable)throw new TypeError("property must be configurable");var i=this,c=Y8(),p=Kf(c[1]);p.name=t,"value"in r&&(r=Zpe(e,t,a));var f=r.get,v=r.set;typeof f=="function"&&(r.get=function(){return Z8.call(i,a,p),f.apply(this,arguments)}),typeof v=="function"&&(r.set=function(){return Z8.call(i,a,p),v.apply(this,arguments)}),Object.defineProperty(e,t,r)}function EL(e,t,a){var r=new Error,i;return Object.defineProperty(r,"constructor",{value:EL}),Object.defineProperty(r,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(r,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(r,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(r,"stack",{configurable:!0,enumerable:!1,get:function(){return i!==void 0?i:i=Xpe.call(this,a)},set:function(p){i=p}}),r}});var TL=N((eqe,AL)=>{"use strict";AL.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?ode:cde);function ode(e,t){return e.__proto__=t,e}function cde(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=t[a]);return e}});var FL=N((tqe,lde)=>{lde.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var t4=N((rqe,kL)=>{"use strict";var jA=FL();kL.exports=sc;sc.message=jA;sc.code=ude(jA);sc.codes=pde(jA);sc.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};sc.empty={204:!0,205:!0,304:!0};sc.retry={502:!0,503:!0,504:!0};function ude(e){var t={};return Object.keys(e).forEach(function(r){var i=e[r],c=Number(r);t[i.toLowerCase()]=c}),t}function pde(e){return Object.keys(e).map(function(a){return Number(a)})}function dde(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(sc.code,t))throw new Error('invalid status message: "'+e+'"');return sc.code[t]}function CL(e){if(!Object.prototype.hasOwnProperty.call(sc.message,e))throw new Error("invalid status code: "+e);return sc.message[e]}function sc(e){if(typeof e=="number")return CL(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?dde(e):CL(t)}});var OL=N((aqe,qA)=>{typeof Object.create=="function"?qA.exports=function(t,a){a&&(t.super_=a,t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:qA.exports=function(t,a){if(a){t.super_=a;var r=function(){};r.prototype=a.prototype,t.prototype=new r,t.prototype.constructor=t}}});var ip=N((nqe,VA)=>{try{if($A=require("util"),typeof $A.inherits!="function")throw"";VA.exports=$A.inherits}catch{VA.exports=OL()}var $A});var DL=N((iqe,RL)=>{"use strict";RL.exports=fde;function fde(e){return e.split(" ").map(function(t){return t.slice(0,1).toUpperCase()+t.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var Kd=N((sqe,zd)=>{"use strict";var mde=X8()("http-errors"),PL=TL(),Zf=t4(),HA=ip(),hde=DL();zd.exports=J8;zd.exports.HttpError=vde();zd.exports.isHttpError=xde(zd.exports.HttpError);wde(zd.exports,Zf.codes,zd.exports.HttpError);function IL(e){return+(String(e).charAt(0)+"00")}function J8(){for(var e,t,a=500,r={},i=0;i<arguments.length;i++){var c=arguments[i],p=typeof c;if(p==="object"&&c instanceof Error)e=c,a=e.status||e.statusCode||a;else if(p==="number"&&i===0)a=c;else if(p==="string")t=c;else if(p==="object")r=c;else throw new TypeError("argument #"+(i+1)+" unsupported type "+p)}typeof a=="number"&&(a<400||a>=600)&&mde("non-error status code; use only 4xx or 5xx status codes"),(typeof a!="number"||!Zf.message[a]&&(a<400||a>=600))&&(a=500);var f=J8[a]||J8[IL(a)];e||(e=f?new f(t):new Error(t||Zf.message[a]),Error.captureStackTrace(e,J8)),(!f||!(e instanceof f)||e.status!==a)&&(e.expose=a<500,e.status=e.statusCode=a);for(var v in r)v!=="status"&&v!=="statusCode"&&(e[v]=r[v]);return e}function vde(){function e(){throw new TypeError("cannot construct abstract class")}return HA(e,Error),e}function gde(e,t,a){var r=ML(t);function i(c){var p=c??Zf.message[a],f=new Error(p);return Error.captureStackTrace(f,i),PL(f,i.prototype),Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,value:p,writable:!0}),Object.defineProperty(f,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),f}return HA(i,e),NL(i,r),i.prototype.status=a,i.prototype.statusCode=a,i.prototype.expose=!0,i}function xde(e){return function(a){return!a||typeof a!="object"?!1:a instanceof e?!0:a instanceof Error&&typeof a.expose=="boolean"&&typeof a.statusCode=="number"&&a.status===a.statusCode}}function yde(e,t,a){var r=ML(t);function i(c){var p=c??Zf.message[a],f=new Error(p);return Error.captureStackTrace(f,i),PL(f,i.prototype),Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,value:p,writable:!0}),Object.defineProperty(f,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),f}return HA(i,e),NL(i,r),i.prototype.status=a,i.prototype.statusCode=a,i.prototype.expose=!1,i}function NL(e,t){var a=Object.getOwnPropertyDescriptor(e,"name");a&&a.configurable&&(a.value=t,Object.defineProperty(e,"name",a))}function wde(e,t,a){t.forEach(function(i){var c,p=hde(Zf.message[i]);switch(IL(i)){case 400:c=gde(a,p,i);break;case 500:c=yde(a,p,i);break}c&&(e[i]=c,e[p]=c)})}function ML(e){return e.substr(-5)!=="Error"?e+"Error":e}});var WA=N((oqe,LL)=>{var Yf=1e3,Xf=Yf*60,Jf=Xf*60,Zd=Jf*24,bde=Zd*7,_de=Zd*365.25;LL.exports=function(e,t){t=t||{};var a=typeof e;if(a==="string"&&e.length>0)return Ede(e);if(a==="number"&&isFinite(e))return t.long?Ade(e):Sde(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ede(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return a*_de;case"weeks":case"week":case"w":return a*bde;case"days":case"day":case"d":return a*Zd;case"hours":case"hour":case"hrs":case"hr":case"h":return a*Jf;case"minutes":case"minute":case"mins":case"min":case"m":return a*Xf;case"seconds":case"second":case"secs":case"sec":case"s":return a*Yf;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function Sde(e){var t=Math.abs(e);return t>=Zd?Math.round(e/Zd)+"d":t>=Jf?Math.round(e/Jf)+"h":t>=Xf?Math.round(e/Xf)+"m":t>=Yf?Math.round(e/Yf)+"s":e+"ms"}function Ade(e){var t=Math.abs(e);return t>=Zd?Q8(e,t,Zd,"day"):t>=Jf?Q8(e,t,Jf,"hour"):t>=Xf?Q8(e,t,Xf,"minute"):t>=Yf?Q8(e,t,Yf,"second"):e+" ms"}function Q8(e,t,a,r){var i=t>=a*1.5;return Math.round(e/a)+" "+r+(i?"s":"")}});var GA=N((cqe,BL)=>{function Tde(e){a.debug=a,a.default=a,a.coerce=v,a.disable=p,a.enable=i,a.enabled=f,a.humanize=WA(),a.destroy=y,Object.keys(e).forEach(b=>{a[b]=e[b]}),a.names=[],a.skips=[],a.formatters={};function t(b){let E=0;for(let T=0;T<b.length;T++)E=(E<<5)-E+b.charCodeAt(T),E|=0;return a.colors[Math.abs(E)%a.colors.length]}a.selectColor=t;function a(b){let E,T=null,C,k;function D(...U){if(!D.enabled)return;let z=D,oe=Number(new Date),me=oe-(E||oe);z.diff=me,z.prev=E,z.curr=oe,E=oe,U[0]=a.coerce(U[0]),typeof U[0]!="string"&&U.unshift("%O");let Ae=0;U[0]=U[0].replace(/%([a-zA-Z%])/g,(we,Ge)=>{if(we==="%%")return"%";Ae++;let At=a.formatters[Ge];if(typeof At=="function"){let Ve=U[Ae];we=At.call(z,Ve),U.splice(Ae,1),Ae--}return we}),a.formatArgs.call(z,U),(z.log||a.log).apply(z,U)}return D.namespace=b,D.useColors=a.useColors(),D.color=a.selectColor(b),D.extend=r,D.destroy=a.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:(C!==a.namespaces&&(C=a.namespaces,k=a.enabled(b)),k),set:U=>{T=U}}),typeof a.init=="function"&&a.init(D),D}function r(b,E){let T=a(this.namespace+(typeof E>"u"?":":E)+b);return T.log=this.log,T}function i(b){a.save(b),a.namespaces=b,a.names=[],a.skips=[];let E=(typeof b=="string"?b:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let T of E)T[0]==="-"?a.skips.push(T.slice(1)):a.names.push(T)}function c(b,E){let T=0,C=0,k=-1,D=0;for(;T<b.length;)if(C<E.length&&(E[C]===b[T]||E[C]==="*"))E[C]==="*"?(k=C,D=T,C++):(T++,C++);else if(k!==-1)C=k+1,D++,T=D;else return!1;for(;C<E.length&&E[C]==="*";)C++;return C===E.length}function p(){let b=[...a.names,...a.skips.map(E=>"-"+E)].join(",");return a.enable(""),b}function f(b){for(let E of a.skips)if(c(b,E))return!1;for(let E of a.names)if(c(b,E))return!0;return!1}function v(b){return b instanceof Error?b.stack||b.message:b}function y(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}BL.exports=Tde});var UL=N((ms,e9)=>{ms.formatArgs=Cde;ms.save=kde;ms.load=Ode;ms.useColors=Fde;ms.storage=Rde();ms.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ms.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Fde(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Cde(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+e9.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let a=0,r=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(a++,i==="%c"&&(r=a))}),e.splice(r,0,t)}ms.log=console.debug||console.log||(()=>{});function kde(e){try{e?ms.storage.setItem("debug",e):ms.storage.removeItem("debug")}catch{}}function Ode(){let e;try{e=ms.storage.getItem("debug")||ms.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Rde(){try{return localStorage}catch{}}e9.exports=GA()(ms);var{formatters:Dde}=e9.exports;Dde.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var qL=N((lqe,jL)=>{"use strict";jL.exports=(e,t=process.argv)=>{let a=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(a+e),i=t.indexOf("--");return r!==-1&&(i===-1||r<i)}});var HL=N((uqe,VL)=>{"use strict";var Pde=require("os"),$L=require("tty"),ho=qL(),{env:Hn}=process,sp;ho("no-color")||ho("no-colors")||ho("color=false")||ho("color=never")?sp=0:(ho("color")||ho("colors")||ho("color=true")||ho("color=always"))&&(sp=1);"FORCE_COLOR"in Hn&&(Hn.FORCE_COLOR==="true"?sp=1:Hn.FORCE_COLOR==="false"?sp=0:sp=Hn.FORCE_COLOR.length===0?1:Math.min(parseInt(Hn.FORCE_COLOR,10),3));function zA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function KA(e,t){if(sp===0)return 0;if(ho("color=16m")||ho("color=full")||ho("color=truecolor"))return 3;if(ho("color=256"))return 2;if(e&&!t&&sp===void 0)return 0;let a=sp||0;if(Hn.TERM==="dumb")return a;if(process.platform==="win32"){let r=Pde.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Hn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in Hn)||Hn.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in Hn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Hn.TEAMCITY_VERSION)?1:0;if(Hn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Hn){let r=parseInt((Hn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Hn.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Hn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Hn.TERM)||"COLORTERM"in Hn?1:a}function Ide(e){let t=KA(e,e&&e.isTTY);return zA(t)}VL.exports={supportsColor:Ide,stdout:zA(KA(!0,$L.isatty(1))),stderr:zA(KA(!0,$L.isatty(2)))}});var GL=N((Wn,r9)=>{var Nde=require("tty"),t9=require("util");Wn.init=$de;Wn.log=Ude;Wn.formatArgs=Lde;Wn.save=jde;Wn.load=qde;Wn.useColors=Mde;Wn.destroy=t9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Wn.colors=[6,2,3,4,5,1];try{let e=HL();e&&(e.stderr||e).level>=2&&(Wn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Wn.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let a=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,c)=>c.toUpperCase()),r=process.env[t];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),e[a]=r,e},{});function Mde(){return"colors"in Wn.inspectOpts?!!Wn.inspectOpts.colors:Nde.isatty(process.stderr.fd)}function Lde(e){let{namespace:t,useColors:a}=this;if(a){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),c=` ${i};1m${t} \x1B[0m`;e[0]=c+e[0].split(`
`).join(`
`+c),e.push(i+"m+"+r9.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Bde()+t+" "+e[0]}function Bde(){return Wn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ude(...e){return process.stderr.write(t9.formatWithOptions(Wn.inspectOpts,...e)+`
`)}function jde(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function qde(){return process.env.DEBUG}function $de(e){e.inspectOpts={};let t=Object.keys(Wn.inspectOpts);for(let a=0;a<t.length;a++)e.inspectOpts[t[a]]=Wn.inspectOpts[t[a]]}r9.exports=GA()(Wn);var{formatters:WL}=r9.exports;WL.o=function(e){return this.inspectOpts.colors=this.useColors,t9.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};WL.O=function(e){return this.inspectOpts.colors=this.useColors,t9.inspect(e,this.inspectOpts)}});var hs=N((pqe,ZA)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ZA.exports=UL():ZA.exports=GL()});var KL=N((dqe,zL)=>{"use strict";zL.exports=Vde;function Vde(e,t){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var a=[],r=0;r<e.length;r++){var i=e[r];if(!Array.isArray(i)||i.length<2)throw new TypeError("each array member must be [ee, events...]");for(var c=i[0],p=1;p<i.length;p++){var f=i[p],v=Hde(f,y);c.on(f,v),a.push({ee:c,event:f,fn:v})}}function y(){b(),t.apply(null,arguments)}function b(){for(var T,C=0;C<a.length;C++)T=a[C],T.ee.removeListener(T.event,T.fn)}function E(T){t=T}return E.cancel=b,E}function Hde(e,t){return function(r){for(var i=new Array(arguments.length),c=this,p=e==="error"?r:null,f=0;f<i.length;f++)i[f]=arguments[f];t(p,c,e,i)}}});var Xl=N((fqe,YA)=>{"use strict";YA.exports=Gde;YA.exports.isFinished=XL;var ZL=Xde(),YL=KL(),Wde=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function Gde(e,t){return XL(e)!==!1?(Wde(t,null,e),e):(Kde(e,Jde(t)),e)}function XL(e){var t=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||t&&!t.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable)}function zde(e,t){var a,r,i=!1;function c(f){a.cancel(),r.cancel(),i=!0,t(f)}a=r=YL([[e,"end","finish"]],c);function p(f){e.removeListener("socket",p),!i&&a===r&&(r=YL([[f,"error","close"]],c))}if(e.socket){p(e.socket);return}e.on("socket",p),e.socket===void 0&&Yde(e,p)}function Kde(e,t){var a=e.__onFinished;(!a||!a.queue)&&(a=e.__onFinished=Zde(e),zde(e,a)),a.queue.push(t)}function Zde(e){function t(a){if(e.__onFinished===t&&(e.__onFinished=null),!!t.queue){var r=t.queue;t.queue=null;for(var i=0;i<r.length;i++)r[i](a,e)}}return t.queue=[],t}function Yde(e,t){var a=e.assignSocket;typeof a=="function"&&(e.assignSocket=function(i){a.call(this,i),t(i)})}function Xde(){try{return require("async_hooks")}catch{return{}}}function Jde(e){var t;return ZL.AsyncResource&&(t=new ZL.AsyncResource(e.name||"bound-anonymous-fn")),!t||!t.runInAsyncScope?e:t.runInAsyncScope.bind(t,e,null)}});var XA=N((mqe,a9)=>{"use strict";a9.exports=r0e;a9.exports.format=JL;a9.exports.parse=QL;var Qde=/\B(?=(\d{3})+(?!\d))/g,e0e=/(?:\.0*|(\.[^0]+)0+)$/,op={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},t0e=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function r0e(e,t){return typeof e=="string"?QL(e):typeof e=="number"?JL(e,t):null}function JL(e,t){if(!Number.isFinite(e))return null;var a=Math.abs(e),r=t&&t.thousandsSeparator||"",i=t&&t.unitSeparator||"",c=t&&t.decimalPlaces!==void 0?t.decimalPlaces:2,p=!!(t&&t.fixedDecimals),f=t&&t.unit||"";(!f||!op[f.toLowerCase()])&&(a>=op.pb?f="PB":a>=op.tb?f="TB":a>=op.gb?f="GB":a>=op.mb?f="MB":a>=op.kb?f="KB":f="B");var v=e/op[f.toLowerCase()],y=v.toFixed(c);return p||(y=y.replace(e0e,"$1")),r&&(y=y.split(".").map(function(b,E){return E===0?b.replace(Qde,r):b}).join(".")),y+i+f}function QL(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var t=t0e.exec(e),a,r="b";return t?(a=parseFloat(t[1]),r=t[4].toLowerCase()):(a=parseInt(e,10),r="b"),isNaN(a)?null:Math.floor(op[r]*a)}});var Jl=N((hqe,eB)=>{"use strict";var n9=require("buffer"),Qf=n9.Buffer,vo={},go;for(go in n9)n9.hasOwnProperty(go)&&(go==="SlowBuffer"||go==="Buffer"||(vo[go]=n9[go]));var e1=vo.Buffer={};for(go in Qf)Qf.hasOwnProperty(go)&&(go==="allocUnsafe"||go==="allocUnsafeSlow"||(e1[go]=Qf[go]));vo.Buffer.prototype=Qf.prototype;(!e1.from||e1.from===Uint8Array.from)&&(e1.from=function(e,t,a){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Qf(e,t,a)});e1.alloc||(e1.alloc=function(e,t,a){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=Qf(e);return!t||t.length===0?r.fill(0):typeof a=="string"?r.fill(t,a):r.fill(t),r});if(!vo.kStringMaxLength)try{vo.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}vo.constants||(vo.constants={MAX_LENGTH:vo.kMaxLength},vo.kStringMaxLength&&(vo.constants.MAX_STRING_LENGTH=vo.kStringMaxLength));eB.exports=vo});var rB=N(eT=>{"use strict";var tB="\uFEFF";eT.PrependBOM=JA;function JA(e,t){this.encoder=e,this.addBOM=!0}JA.prototype.write=function(e){return this.addBOM&&(e=tB+e,this.addBOM=!1),this.encoder.write(e)};JA.prototype.end=function(){return this.encoder.end()};eT.StripBOM=QA;function QA(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}QA.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||(t[0]===tB&&(t=t.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),t};QA.prototype.end=function(){return this.decoder.end()}});var nB=N((gqe,aB)=>{"use strict";var Yd=Jl().Buffer;aB.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:rT};function rT(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc==="base64"?this.encoder=iT:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=sT,Yd.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=oT,this.defaultCharUnicode=t.defaultCharUnicode))}rT.prototype.encoder=nT;rT.prototype.decoder=aT;var tT=require("string_decoder").StringDecoder;tT.prototype.end||(tT.prototype.end=function(){});function aT(e,t){this.decoder=new tT(t.enc)}aT.prototype.write=function(e){return Yd.isBuffer(e)||(e=Yd.from(e)),this.decoder.write(e)};aT.prototype.end=function(){return this.decoder.end()};function nT(e,t){this.enc=t.enc}nT.prototype.write=function(e){return Yd.from(e,this.enc)};nT.prototype.end=function(){};function iT(e,t){this.prevStr=""}iT.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),Yd.from(e,"base64")};iT.prototype.end=function(){return Yd.from(this.prevStr,"base64")};function sT(e,t){}sT.prototype.write=function(e){for(var t=Yd.alloc(e.length*3),a=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[a++]=i:i<2048?(t[a++]=192+(i>>>6),t[a++]=128+(i&63)):(t[a++]=224+(i>>>12),t[a++]=128+(i>>>6&63),t[a++]=128+(i&63))}return t.slice(0,a)};sT.prototype.end=function(){};function oT(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}oT.prototype.write=function(e){for(var t=this.acc,a=this.contBytes,r=this.accBytes,i="",c=0;c<e.length;c++){var p=e[c];(p&192)!==128?(a>0&&(i+=this.defaultCharUnicode,a=0),p<128?i+=String.fromCharCode(p):p<224?(t=p&31,a=1,r=1):p<240?(t=p&15,a=2,r=1):i+=this.defaultCharUnicode):a>0?(t=t<<6|p&63,a--,r++,a===0&&(r===2&&t<128&&t>0?i+=this.defaultCharUnicode:r===3&&t<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(t))):i+=this.defaultCharUnicode}return this.acc=t,this.contBytes=a,this.accBytes=r,i};oT.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}});var oB=N(cp=>{"use strict";var i9=Jl().Buffer;cp._utf32=cT;function cT(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}cp.utf32le={type:"_utf32",isLE:!0};cp.utf32be={type:"_utf32",isLE:!1};cp.ucs4le="utf32le";cp.ucs4be="utf32be";cT.prototype.encoder=lT;cT.prototype.decoder=uT;function lT(e,t){this.isLE=t.isLE,this.highSurrogate=0}lT.prototype.write=function(e){for(var t=i9.from(e,"ucs2"),a=i9.alloc(t.length*2),r=this.isLE?a.writeUInt32LE:a.writeUInt32BE,i=0,c=0;c<t.length;c+=2){var p=t.readUInt16LE(c),f=55296<=p&&p<56320,v=56320<=p&&p<57344;if(this.highSurrogate)if(f||!v)r.call(a,this.highSurrogate,i),i+=4;else{var y=(this.highSurrogate-55296<<10|p-56320)+65536;r.call(a,y,i),i+=4,this.highSurrogate=0;continue}f?this.highSurrogate=p:(r.call(a,p,i),i+=4,this.highSurrogate=0)}return i<a.length&&(a=a.slice(0,i)),a};lT.prototype.end=function(){if(this.highSurrogate){var e=i9.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function uT(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}uT.prototype.write=function(e){if(e.length===0)return"";var t=0,a=0,r=i9.alloc(e.length+4),i=0,c=this.isLE,p=this.overflow,f=this.badChar;if(p.length>0){for(;t<e.length&&p.length<4;t++)p.push(e[t]);p.length===4&&(c?a=p[t]|p[t+1]<<8|p[t+2]<<16|p[t+3]<<24:a=p[t+3]|p[t+2]<<8|p[t+1]<<16|p[t]<<24,p.length=0,i=iB(r,i,a,f))}for(;t<e.length-3;t+=4)c?a=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:a=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,i=iB(r,i,a,f);for(;t<e.length;t++)p.push(e[t]);return r.slice(0,i).toString("ucs2")};function iB(e,t,a,r){if((a<0||a>1114111)&&(a=r),a>=65536){a-=65536;var i=55296|a>>10;e[t++]=i&255,e[t++]=i>>8;var a=56320|a&1023}return e[t++]=a&255,e[t++]=a>>8,t}uT.prototype.end=function(){this.overflow.length=0};cp.utf32=pT;cp.ucs4="utf32";function pT(e,t){this.iconv=t}pT.prototype.encoder=dT;pT.prototype.decoder=fT;function dT(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}dT.prototype.write=function(e){return this.encoder.write(e)};dT.prototype.end=function(){return this.encoder.end()};function fT(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}fT.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=sB(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",r=0;r<this.initialBufs.length;r++)a+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)};fT.prototype.end=function(){if(!this.decoder){var e=sB(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function sB(e,t){var a=[],r=0,i=0,c=0,p=0,f=0;e:for(var v=0;v<e.length;v++)for(var y=e[v],b=0;b<y.length;b++)if(a.push(y[b]),a.length===4){if(r===0){if(a[0]===255&&a[1]===254&&a[2]===0&&a[3]===0)return"utf-32le";if(a[0]===0&&a[1]===0&&a[2]===254&&a[3]===255)return"utf-32be"}if((a[0]!==0||a[1]>16)&&c++,(a[3]!==0||a[2]>16)&&i++,a[0]===0&&a[1]===0&&(a[2]!==0||a[3]!==0)&&f++,(a[0]!==0||a[1]!==0)&&a[2]===0&&a[3]===0&&p++,a.length=0,r++,r>=100)break e}return f-c>p-i?"utf-32be":f-c<p-i?"utf-32le":t||"utf-32le"}});var uB=N(yT=>{"use strict";var cB=Jl().Buffer;yT.utf16be=s9;function s9(){}s9.prototype.encoder=mT;s9.prototype.decoder=hT;s9.prototype.bomAware=!0;function mT(){}mT.prototype.write=function(e){for(var t=cB.from(e,"ucs2"),a=0;a<t.length;a+=2){var r=t[a];t[a]=t[a+1],t[a+1]=r}return t};mT.prototype.end=function(){};function hT(){this.overflowByte=-1}hT.prototype.write=function(e){if(e.length==0)return"";var t=cB.alloc(e.length+1),a=0,r=0;for(this.overflowByte!==-1&&(t[0]=e[0],t[1]=this.overflowByte,a=1,r=2);a<e.length-1;a+=2,r+=2)t[r]=e[a+1],t[r+1]=e[a];return this.overflowByte=a==e.length-1?e[e.length-1]:-1,t.slice(0,r).toString("ucs2")};hT.prototype.end=function(){this.overflowByte=-1};yT.utf16=vT;function vT(e,t){this.iconv=t}vT.prototype.encoder=gT;vT.prototype.decoder=xT;function gT(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}gT.prototype.write=function(e){return this.encoder.write(e)};gT.prototype.end=function(){return this.encoder.end()};function xT(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}xT.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=lB(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",r=0;r<this.initialBufs.length;r++)a+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)};xT.prototype.end=function(){if(!this.decoder){var e=lB(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function lB(e,t){var a=[],r=0,i=0,c=0;e:for(var p=0;p<e.length;p++)for(var f=e[p],v=0;v<f.length;v++)if(a.push(f[v]),a.length===2){if(r===0){if(a[0]===255&&a[1]===254)return"utf-16le";if(a[0]===254&&a[1]===255)return"utf-16be"}if(a[0]===0&&a[1]!==0&&c++,a[0]!==0&&a[1]===0&&i++,a.length=0,r++,r>=100)break e}return c>i?"utf-16be":c<i?"utf-16le":t||"utf-16le"}});var dB=N(l9=>{"use strict";var tl=Jl().Buffer;l9.utf7=o9;l9.unicode11utf7="utf7";function o9(e,t){this.iconv=t}o9.prototype.encoder=bT;o9.prototype.decoder=_T;o9.prototype.bomAware=!0;var a0e=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function bT(e,t){this.iconv=t.iconv}bT.prototype.write=function(e){return tl.from(e.replace(a0e,function(t){return"+"+(t==="+"?"":this.iconv.encode(t,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};bT.prototype.end=function(){};function _T(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var n0e=/[A-Za-z0-9\/+]/,ET=[];for(r4=0;r4<256;r4++)ET[r4]=n0e.test(String.fromCharCode(r4));var r4,i0e=43,Xd=45,wT=38;_T.prototype.write=function(e){for(var t="",a=0,r=this.inBase64,i=this.base64Accum,c=0;c<e.length;c++)if(!r)e[c]==i0e&&(t+=this.iconv.decode(e.slice(a,c),"ascii"),a=c+1,r=!0);else if(!ET[e[c]]){if(c==a&&e[c]==Xd)t+="+";else{var p=i+this.iconv.decode(e.slice(a,c),"ascii");t+=this.iconv.decode(tl.from(p,"base64"),"utf16-be")}e[c]!=Xd&&c--,a=c+1,r=!1,i=""}if(!r)t+=this.iconv.decode(e.slice(a),"ascii");else{var p=i+this.iconv.decode(e.slice(a),"ascii"),f=p.length-p.length%8;i=p.slice(f),p=p.slice(0,f),t+=this.iconv.decode(tl.from(p,"base64"),"utf16-be")}return this.inBase64=r,this.base64Accum=i,t};_T.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(tl.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e};l9.utf7imap=c9;function c9(e,t){this.iconv=t}c9.prototype.encoder=ST;c9.prototype.decoder=AT;c9.prototype.bomAware=!0;function ST(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=tl.alloc(6),this.base64AccumIdx=0}ST.prototype.write=function(e){for(var t=this.inBase64,a=this.base64Accum,r=this.base64AccumIdx,i=tl.alloc(e.length*5+10),c=0,p=0;p<e.length;p++){var f=e.charCodeAt(p);32<=f&&f<=126?(t&&(r>0&&(c+=i.write(a.slice(0,r).toString("base64").replace(/\//g,",").replace(/=+$/,""),c),r=0),i[c++]=Xd,t=!1),t||(i[c++]=f,f===wT&&(i[c++]=Xd))):(t||(i[c++]=wT,t=!0),t&&(a[r++]=f>>8,a[r++]=f&255,r==a.length&&(c+=i.write(a.toString("base64").replace(/\//g,","),c),r=0)))}return this.inBase64=t,this.base64AccumIdx=r,i.slice(0,c)};ST.prototype.end=function(){var e=tl.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=Xd,this.inBase64=!1),e.slice(0,t)};function AT(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var pB=ET.slice();pB[44]=!0;AT.prototype.write=function(e){for(var t="",a=0,r=this.inBase64,i=this.base64Accum,c=0;c<e.length;c++)if(!r)e[c]==wT&&(t+=this.iconv.decode(e.slice(a,c),"ascii"),a=c+1,r=!0);else if(!pB[e[c]]){if(c==a&&e[c]==Xd)t+="&";else{var p=i+this.iconv.decode(e.slice(a,c),"ascii").replace(/,/g,"/");t+=this.iconv.decode(tl.from(p,"base64"),"utf16-be")}e[c]!=Xd&&c--,a=c+1,r=!1,i=""}if(!r)t+=this.iconv.decode(e.slice(a),"ascii");else{var p=i+this.iconv.decode(e.slice(a),"ascii").replace(/,/g,"/"),f=p.length-p.length%8;i=p.slice(f),p=p.slice(0,f),t+=this.iconv.decode(tl.from(p,"base64"),"utf16-be")}return this.inBase64=r,this.base64Accum=i,t};AT.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(tl.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}});var mB=N(fB=>{"use strict";var u9=Jl().Buffer;fB._sbcs=TT;function TT(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){for(var a="",r=0;r<128;r++)a+=String.fromCharCode(r);e.chars=a+e.chars}this.decodeBuf=u9.from(e.chars,"ucs2");for(var i=u9.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),r=0;r<e.chars.length;r++)i[e.chars.charCodeAt(r)]=r;this.encodeBuf=i}TT.prototype.encoder=FT;TT.prototype.decoder=CT;function FT(e,t){this.encodeBuf=t.encodeBuf}FT.prototype.write=function(e){for(var t=u9.alloc(e.length),a=0;a<e.length;a++)t[a]=this.encodeBuf[e.charCodeAt(a)];return t};FT.prototype.end=function(){};function CT(e,t){this.decodeBuf=t.decodeBuf}CT.prototype.write=function(e){for(var t=this.decodeBuf,a=u9.alloc(e.length*2),r=0,i=0,c=0;c<e.length;c++)r=e[c]*2,i=c*2,a[i]=t[r],a[i+1]=t[r+1];return a.toString("ucs2")};CT.prototype.end=function(){}});var vB=N((_qe,hB)=>{"use strict";hB.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110