UNPKG

sml-cli

Version:
46 lines (44 loc) 4.96 MB
"use strict";var Dfr=Object.create;var f1e=Object.defineProperty;var xfr=Object.getOwnPropertyDescriptor;var Tfr=Object.getOwnPropertyNames;var Cfr=Object.getPrototypeOf,Ifr=Object.prototype.hasOwnProperty;var og=(n,r)=>()=>(n&&(r=n(n=0)),r);var Le=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),Qne=(n,r)=>{for(var i in r)f1e(n,i,{get:r[i],enumerable:!0})},wmt=(n,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Tfr(r))!Ifr.call(n,u)&&u!==i&&f1e(n,u,{get:()=>r[u],enumerable:!(c=xfr(r,u))||c.enumerable});return n};var ru=(n,r,i)=>(i=n!=null?Dfr(Cfr(n)):{},wmt(r||!n||!n.__esModule?f1e(i,"default",{value:n,enumerable:!0}):i,n)),Efr=n=>wmt(f1e({},"__esModule",{value:!0}),n);var kmt=Le((xQr,Afr)=>{Afr.exports={name:"dotenv",version:"16.3.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","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var u5e=Le((TQr,k6)=>{var Pmt=require("fs"),c5e=require("path"),wfr=require("os"),kfr=require("crypto"),Pfr=kmt(),l5e=Pfr.version,Nfr=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Ofr(n){let r={},i=n.toString();i=i.replace(/\r\n?/mg,` `);let c;for(;(c=Nfr.exec(i))!=null;){let u=c[1],_=c[2]||"";_=_.trim();let h=_[0];_=_.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),h==='"'&&(_=_.replace(/\\n/g,` `),_=_.replace(/\\r/g,"\r")),r[u]=_}return r}function Ffr(n){let r=Omt(n),i=hv.configDotenv({path:r});if(!i.parsed)throw new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);let c=Nmt(n).split(","),u=c.length,_;for(let h=0;h<u;h++)try{let b=c[h].trim(),C=Lfr(i,b);_=hv.decrypt(C.ciphertext,C.key);break}catch(b){if(h+1>=u)throw b}return hv.parse(_)}function Rfr(n){console.log(`[dotenv@${l5e}][INFO] ${n}`)}function Mfr(n){console.log(`[dotenv@${l5e}][WARN] ${n}`)}function o5e(n){console.log(`[dotenv@${l5e}][DEBUG] ${n}`)}function Nmt(n){return n&&n.DOTENV_KEY&&n.DOTENV_KEY.length>0?n.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function Lfr(n,r){let i;try{i=new URL(r)}catch(b){throw b.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):b}let c=i.password;if(!c)throw new Error("INVALID_DOTENV_KEY: Missing key part");let u=i.searchParams.get("environment");if(!u)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let _=`DOTENV_VAULT_${u.toUpperCase()}`,h=n.parsed[_];if(!h)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${_} in your .env.vault file.`);return{ciphertext:h,key:c}}function Omt(n){let r=c5e.resolve(process.cwd(),".env");return n&&n.path&&n.path.length>0&&(r=n.path),r.endsWith(".vault")?r:`${r}.vault`}function jfr(n){return n[0]==="~"?c5e.join(wfr.homedir(),n.slice(1)):n}function Bfr(n){Rfr("Loading env from encrypted .env.vault");let r=hv._parseVault(n),i=process.env;return n&&n.processEnv!=null&&(i=n.processEnv),hv.populate(i,r,n),{parsed:r}}function qfr(n){let r=c5e.resolve(process.cwd(),".env"),i="utf8",c=!!(n&&n.debug);n&&(n.path!=null&&(r=jfr(n.path)),n.encoding!=null&&(i=n.encoding));try{let u=hv.parse(Pmt.readFileSync(r,{encoding:i})),_=process.env;return n&&n.processEnv!=null&&(_=n.processEnv),hv.populate(_,u,n),{parsed:u}}catch(u){return c&&o5e(`Failed to load ${r} ${u.message}`),{error:u}}}function Jfr(n){let r=Omt(n);return Nmt(n).length===0?hv.configDotenv(n):Pmt.existsSync(r)?hv._configVault(n):(Mfr(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),hv.configDotenv(n))}function $fr(n,r){let i=Buffer.from(r.slice(-64),"hex"),c=Buffer.from(n,"base64"),u=c.slice(0,12),_=c.slice(-16);c=c.slice(12,-16);try{let h=kfr.createDecipheriv("aes-256-gcm",i,u);return h.setAuthTag(_),`${h.update(c)}${h.final()}`}catch(h){let b=h instanceof RangeError,C=h.message==="Invalid key length",A=h.message==="Unsupported state or unable to authenticate data";if(b||C){let M="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(M)}else if(A){let M="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(M)}else throw console.error("Error: ",h.code),console.error("Error: ",h.message),h}}function Vfr(n,r,i={}){let c=!!(i&&i.debug),u=!!(i&&i.override);if(typeof r!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let _ of Object.keys(r))Object.prototype.hasOwnProperty.call(n,_)?(u===!0&&(n[_]=r[_]),c&&o5e(u===!0?`"${_}" is already defined and WAS overwritten`:`"${_}" is already defined and was NOT overwritten`)):n[_]=r[_]}var hv={configDotenv:qfr,_configVault:Bfr,_parseVault:Ffr,config:Jfr,decrypt:$fr,parse:Ofr,populate:Vfr};k6.exports.configDotenv=hv.configDotenv;k6.exports._configVault=hv._configVault;k6.exports._parseVault=hv._parseVault;k6.exports.config=hv.config;k6.exports.decrypt=hv.decrypt;k6.exports.parse=hv.parse;k6.exports.populate=hv.populate;k6.exports=hv});var Rmt=Le((CQr,Fmt)=>{var Tz={};process.env.DOTENV_CONFIG_ENCODING!=null&&(Tz.encoding=process.env.DOTENV_CONFIG_ENCODING);process.env.DOTENV_CONFIG_PATH!=null&&(Tz.path=process.env.DOTENV_CONFIG_PATH);process.env.DOTENV_CONFIG_DEBUG!=null&&(Tz.debug=process.env.DOTENV_CONFIG_DEBUG);process.env.DOTENV_CONFIG_OVERRIDE!=null&&(Tz.override=process.env.DOTENV_CONFIG_OVERRIDE);process.env.DOTENV_CONFIG_DOTENV_KEY!=null&&(Tz.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY);Fmt.exports=Tz});var Lmt=Le((IQr,Mmt)=>{var Ufr=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;Mmt.exports=function(r){return r.reduce(function(i,c){let u=c.match(Ufr);return u&&(i[u[1]]=u[2]),i},{})}});var Cy=Le(p1=>{"use strict";Object.defineProperty(p1,"__esModule",{value:!0});p1.pickBy=Wfr;p1.compact=zfr;p1.uniqBy=Gfr;p1.last=Hfr;p1.sortBy=Yfr;p1.castArray=Xfr;p1.isProd=Qfr;p1.maxBy=Kfr;p1.sumBy=Zfr;p1.capitalize=epr;p1.isTruthy=tpr;p1.isNotFalsy=rpr;p1.uniq=npr;p1.mapValues=ipr;p1.mergeNestedObjects=apr;function Wfr(n,r){return Object.entries(n).reduce((i,[c,u])=>(r(u)&&(i[c]=u),i),{})}function zfr(n){return n.filter(r=>!!r)}function Gfr(n,r){return n.filter((i,c)=>{let u=r(i);return!n.some((_,h)=>h>c&&r(_)===u)})}function Hfr(n){if(n)return n.at(-1)}function f5e(n,r){if(n=n===void 0?0:n,r=r===void 0?0:r,Array.isArray(n)&&Array.isArray(r)){if(n.length===0&&r.length===0)return 0;let i=f5e(n[0],r[0]);return i!==0?i:f5e(n.slice(1),r.slice(1))}return n<r?-1:n>r?1:0}function Yfr(n,r){return n.sort((i,c)=>f5e(r(i),r(c)))}function Xfr(n){return n===void 0?[]:Array.isArray(n)?n:[n]}function Qfr(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Kfr(n,r){if(n.length!==0)return n.reduce((i,c)=>{let u=r(c),_=r(i);return u>_?c:i})}function Zfr(n,r){return n.reduce((i,c)=>i+r(c),0)}function epr(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function tpr(n){return["1","true","y","yes"].includes(n.toLowerCase())}function rpr(n){return!["0","false","n","no"].includes(n.toLowerCase())}function npr(n){return[...new Set(n)].sort()}function ipr(n,r){return Object.entries(n).reduce((i,[c,u])=>(i[c]=r(u,c),i),{})}function spr(n,r){return r.split(".").reduce((i,c)=>i?.[c],n)}function apr(n,r){return Object.fromEntries(n.flatMap(i=>Object.entries(spr(i,r)??{})).reverse())}});var Kne=Le((AQr,jmt)=>{var opr="2.0.0",cpr=Number.MAX_SAFE_INTEGER||9007199254740991,lpr=16,upr=250,fpr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jmt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lpr,MAX_SAFE_BUILD_LENGTH:upr,MAX_SAFE_INTEGER:cpr,RELEASE_TYPES:fpr,SEMVER_SPEC_VERSION:opr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Zne=Le((wQr,Bmt)=>{var ppr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};Bmt.exports=ppr});var Cz=Le((P6,qmt)=>{var{MAX_SAFE_COMPONENT_LENGTH:p5e,MAX_SAFE_BUILD_LENGTH:_pr,MAX_LENGTH:dpr}=Kne(),mpr=Zne();P6=qmt.exports={};var hpr=P6.re=[],gpr=P6.safeRe=[],yo=P6.src=[],vo=P6.t={},ypr=0,_5e="[a-zA-Z0-9-]",vpr=[["\\s",1],["\\d",dpr],[_5e,_pr]],bpr=n=>{for(let[r,i]of vpr)n=n.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`);return n},nu=(n,r,i)=>{let c=bpr(r),u=ypr++;mpr(n,u,r),vo[n]=u,yo[u]=r,hpr[u]=new RegExp(r,i?"g":void 0),gpr[u]=new RegExp(c,i?"g":void 0)};nu("NUMERICIDENTIFIER","0|[1-9]\\d*");nu("NUMERICIDENTIFIERLOOSE","\\d+");nu("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_5e}*`);nu("MAINVERSION",`(${yo[vo.NUMERICIDENTIFIER]})\\.(${yo[vo.NUMERICIDENTIFIER]})\\.(${yo[vo.NUMERICIDENTIFIER]})`);nu("MAINVERSIONLOOSE",`(${yo[vo.NUMERICIDENTIFIERLOOSE]})\\.(${yo[vo.NUMERICIDENTIFIERLOOSE]})\\.(${yo[vo.NUMERICIDENTIFIERLOOSE]})`);nu("PRERELEASEIDENTIFIER",`(?:${yo[vo.NUMERICIDENTIFIER]}|${yo[vo.NONNUMERICIDENTIFIER]})`);nu("PRERELEASEIDENTIFIERLOOSE",`(?:${yo[vo.NUMERICIDENTIFIERLOOSE]}|${yo[vo.NONNUMERICIDENTIFIER]})`);nu("PRERELEASE",`(?:-(${yo[vo.PRERELEASEIDENTIFIER]}(?:\\.${yo[vo.PRERELEASEIDENTIFIER]})*))`);nu("PRERELEASELOOSE",`(?:-?(${yo[vo.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${yo[vo.PRERELEASEIDENTIFIERLOOSE]})*))`);nu("BUILDIDENTIFIER",`${_5e}+`);nu("BUILD",`(?:\\+(${yo[vo.BUILDIDENTIFIER]}(?:\\.${yo[vo.BUILDIDENTIFIER]})*))`);nu("FULLPLAIN",`v?${yo[vo.MAINVERSION]}${yo[vo.PRERELEASE]}?${yo[vo.BUILD]}?`);nu("FULL",`^${yo[vo.FULLPLAIN]}$`);nu("LOOSEPLAIN",`[v=\\s]*${yo[vo.MAINVERSIONLOOSE]}${yo[vo.PRERELEASELOOSE]}?${yo[vo.BUILD]}?`);nu("LOOSE",`^${yo[vo.LOOSEPLAIN]}$`);nu("GTLT","((?:<|>)?=?)");nu("XRANGEIDENTIFIERLOOSE",`${yo[vo.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);nu("XRANGEIDENTIFIER",`${yo[vo.NUMERICIDENTIFIER]}|x|X|\\*`);nu("XRANGEPLAIN",`[v=\\s]*(${yo[vo.XRANGEIDENTIFIER]})(?:\\.(${yo[vo.XRANGEIDENTIFIER]})(?:\\.(${yo[vo.XRANGEIDENTIFIER]})(?:${yo[vo.PRERELEASE]})?${yo[vo.BUILD]}?)?)?`);nu("XRANGEPLAINLOOSE",`[v=\\s]*(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:${yo[vo.PRERELEASELOOSE]})?${yo[vo.BUILD]}?)?)?`);nu("XRANGE",`^${yo[vo.GTLT]}\\s*${yo[vo.XRANGEPLAIN]}$`);nu("XRANGELOOSE",`^${yo[vo.GTLT]}\\s*${yo[vo.XRANGEPLAINLOOSE]}$`);nu("COERCEPLAIN",`(^|[^\\d])(\\d{1,${p5e}})(?:\\.(\\d{1,${p5e}}))?(?:\\.(\\d{1,${p5e}}))?`);nu("COERCE",`${yo[vo.COERCEPLAIN]}(?:$|[^\\d])`);nu("COERCEFULL",yo[vo.COERCEPLAIN]+`(?:${yo[vo.PRERELEASE]})?(?:${yo[vo.BUILD]})?(?:$|[^\\d])`);nu("COERCERTL",yo[vo.COERCE],!0);nu("COERCERTLFULL",yo[vo.COERCEFULL],!0);nu("LONETILDE","(?:~>?)");nu("TILDETRIM",`(\\s*)${yo[vo.LONETILDE]}\\s+`,!0);P6.tildeTrimReplace="$1~";nu("TILDE",`^${yo[vo.LONETILDE]}${yo[vo.XRANGEPLAIN]}$`);nu("TILDELOOSE",`^${yo[vo.LONETILDE]}${yo[vo.XRANGEPLAINLOOSE]}$`);nu("LONECARET","(?:\\^)");nu("CARETTRIM",`(\\s*)${yo[vo.LONECARET]}\\s+`,!0);P6.caretTrimReplace="$1^";nu("CARET",`^${yo[vo.LONECARET]}${yo[vo.XRANGEPLAIN]}$`);nu("CARETLOOSE",`^${yo[vo.LONECARET]}${yo[vo.XRANGEPLAINLOOSE]}$`);nu("COMPARATORLOOSE",`^${yo[vo.GTLT]}\\s*(${yo[vo.LOOSEPLAIN]})$|^$`);nu("COMPARATOR",`^${yo[vo.GTLT]}\\s*(${yo[vo.FULLPLAIN]})$|^$`);nu("COMPARATORTRIM",`(\\s*)${yo[vo.GTLT]}\\s*(${yo[vo.LOOSEPLAIN]}|${yo[vo.XRANGEPLAIN]})`,!0);P6.comparatorTrimReplace="$1$2$3";nu("HYPHENRANGE",`^\\s*(${yo[vo.XRANGEPLAIN]})\\s+-\\s+(${yo[vo.XRANGEPLAIN]})\\s*$`);nu("HYPHENRANGELOOSE",`^\\s*(${yo[vo.XRANGEPLAINLOOSE]})\\s+-\\s+(${yo[vo.XRANGEPLAINLOOSE]})\\s*$`);nu("STAR","(<|>)?=?\\s*\\*");nu("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");nu("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var p1e=Le((kQr,Jmt)=>{var Spr=Object.freeze({loose:!0}),Dpr=Object.freeze({}),xpr=n=>n?typeof n!="object"?Spr:n:Dpr;Jmt.exports=xpr});var d5e=Le((PQr,Umt)=>{var $mt=/^[0-9]+$/,Vmt=(n,r)=>{let i=$mt.test(n),c=$mt.test(r);return i&&c&&(n=+n,r=+r),n===r?0:i&&!c?-1:c&&!i?1:n<r?-1:1},Tpr=(n,r)=>Vmt(r,n);Umt.exports={compareIdentifiers:Vmt,rcompareIdentifiers:Tpr}});var Sb=Le((NQr,Hmt)=>{var _1e=Zne(),{MAX_LENGTH:Wmt,MAX_SAFE_INTEGER:d1e}=Kne(),{safeRe:zmt,t:Gmt}=Cz(),Cpr=p1e(),{compareIdentifiers:Iz}=d5e(),m5e=class n{constructor(r,i){if(i=Cpr(i),r instanceof n){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>Wmt)throw new TypeError(`version is longer than ${Wmt} characters`);_1e("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;let c=r.trim().match(i.loose?zmt[Gmt.LOOSE]:zmt[Gmt.FULL]);if(!c)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>d1e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d1e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d1e||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){let _=+u;if(_>=0&&_<d1e)return _}return u}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(_1e("SemVer.compare",this.version,this.options,r),!(r instanceof n)){if(typeof r=="string"&&r===this.version)return 0;r=new n(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof n||(r=new n(r,this.options)),Iz(this.major,r.major)||Iz(this.minor,r.minor)||Iz(this.patch,r.patch)}comparePre(r){if(r instanceof n||(r=new n(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let i=0;do{let c=this.prerelease[i],u=r.prerelease[i];if(_1e("prerelease compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return Iz(c,u)}while(++i)}compareBuild(r){r instanceof n||(r=new n(r,this.options));let i=0;do{let c=this.build[i],u=r.build[i];if(_1e("build compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return Iz(c,u)}while(++i)}inc(r,i,c){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,c),this.inc("pre",i,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,c),this.inc("pre",i,c);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let u=Number(c)?1:0;if(!i&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[u];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(i===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(u)}}if(i){let _=[i,u];c===!1&&(_=[i]),Iz(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Hmt.exports=m5e});var W9=Le((OQr,Xmt)=>{var Ymt=Sb(),Ipr=(n,r,i=!1)=>{if(n instanceof Ymt)return n;try{return new Ymt(n,r)}catch(c){if(!i)return null;throw c}};Xmt.exports=Ipr});var Kmt=Le((FQr,Qmt)=>{var Epr=W9(),Apr=(n,r)=>{let i=Epr(n,r);return i?i.version:null};Qmt.exports=Apr});var eht=Le((RQr,Zmt)=>{var wpr=W9(),kpr=(n,r)=>{let i=wpr(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null};Zmt.exports=kpr});var nht=Le((MQr,rht)=>{var tht=Sb(),Ppr=(n,r,i,c,u)=>{typeof i=="string"&&(u=c,c=i,i=void 0);try{return new tht(n instanceof tht?n.version:n,i).inc(r,c,u).version}catch{return null}};rht.exports=Ppr});var aht=Le((LQr,sht)=>{var iht=W9(),Npr=(n,r)=>{let i=iht(n,null,!0),c=iht(r,null,!0),u=i.compare(c);if(u===0)return null;let _=u>0,h=_?i:c,b=_?c:i,C=!!h.prerelease.length;if(!!b.prerelease.length&&!C)return!b.patch&&!b.minor?"major":h.patch?"patch":h.minor?"minor":"major";let M=C?"pre":"";return i.major!==c.major?M+"major":i.minor!==c.minor?M+"minor":i.patch!==c.patch?M+"patch":"prerelease"};sht.exports=Npr});var cht=Le((jQr,oht)=>{var Opr=Sb(),Fpr=(n,r)=>new Opr(n,r).major;oht.exports=Fpr});var uht=Le((BQr,lht)=>{var Rpr=Sb(),Mpr=(n,r)=>new Rpr(n,r).minor;lht.exports=Mpr});var pht=Le((qQr,fht)=>{var Lpr=Sb(),jpr=(n,r)=>new Lpr(n,r).patch;fht.exports=jpr});var dht=Le((JQr,_ht)=>{var Bpr=W9(),qpr=(n,r)=>{let i=Bpr(n,r);return i&&i.prerelease.length?i.prerelease:null};_ht.exports=qpr});var ZC=Le(($Qr,hht)=>{var mht=Sb(),Jpr=(n,r,i)=>new mht(n,i).compare(new mht(r,i));hht.exports=Jpr});var yht=Le((VQr,ght)=>{var $pr=ZC(),Vpr=(n,r,i)=>$pr(r,n,i);ght.exports=Vpr});var bht=Le((UQr,vht)=>{var Upr=ZC(),Wpr=(n,r)=>Upr(n,r,!0);vht.exports=Wpr});var m1e=Le((WQr,Dht)=>{var Sht=Sb(),zpr=(n,r,i)=>{let c=new Sht(n,i),u=new Sht(r,i);return c.compare(u)||c.compareBuild(u)};Dht.exports=zpr});var Tht=Le((zQr,xht)=>{var Gpr=m1e(),Hpr=(n,r)=>n.sort((i,c)=>Gpr(i,c,r));xht.exports=Hpr});var Iht=Le((GQr,Cht)=>{var Ypr=m1e(),Xpr=(n,r)=>n.sort((i,c)=>Ypr(c,i,r));Cht.exports=Xpr});var eie=Le((HQr,Eht)=>{var Qpr=ZC(),Kpr=(n,r,i)=>Qpr(n,r,i)>0;Eht.exports=Kpr});var h1e=Le((YQr,Aht)=>{var Zpr=ZC(),e_r=(n,r,i)=>Zpr(n,r,i)<0;Aht.exports=e_r});var h5e=Le((XQr,wht)=>{var t_r=ZC(),r_r=(n,r,i)=>t_r(n,r,i)===0;wht.exports=r_r});var g5e=Le((QQr,kht)=>{var n_r=ZC(),i_r=(n,r,i)=>n_r(n,r,i)!==0;kht.exports=i_r});var g1e=Le((KQr,Pht)=>{var s_r=ZC(),a_r=(n,r,i)=>s_r(n,r,i)>=0;Pht.exports=a_r});var y1e=Le((ZQr,Nht)=>{var o_r=ZC(),c_r=(n,r,i)=>o_r(n,r,i)<=0;Nht.exports=c_r});var y5e=Le((eKr,Oht)=>{var l_r=h5e(),u_r=g5e(),f_r=eie(),p_r=g1e(),__r=h1e(),d_r=y1e(),m_r=(n,r,i,c)=>{switch(r){case"===":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n===i;case"!==":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n!==i;case"":case"=":case"==":return l_r(n,i,c);case"!=":return u_r(n,i,c);case">":return f_r(n,i,c);case">=":return p_r(n,i,c);case"<":return __r(n,i,c);case"<=":return d_r(n,i,c);default:throw new TypeError(`Invalid operator: ${r}`)}};Oht.exports=m_r});var Rht=Le((tKr,Fht)=>{var h_r=Sb(),g_r=W9(),{safeRe:v1e,t:b1e}=Cz(),y_r=(n,r)=>{if(n instanceof h_r)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;r=r||{};let i=null;if(!r.rtl)i=n.match(r.includePrerelease?v1e[b1e.COERCEFULL]:v1e[b1e.COERCE]);else{let C=r.includePrerelease?v1e[b1e.COERCERTLFULL]:v1e[b1e.COERCERTL],A;for(;(A=C.exec(n))&&(!i||i.index+i[0].length!==n.length);)(!i||A.index+A[0].length!==i.index+i[0].length)&&(i=A),C.lastIndex=A.index+A[1].length+A[2].length;C.lastIndex=-1}if(i===null)return null;let c=i[2],u=i[3]||"0",_=i[4]||"0",h=r.includePrerelease&&i[5]?`-${i[5]}`:"",b=r.includePrerelease&&i[6]?`+${i[6]}`:"";return g_r(`${c}.${u}.${_}${h}${b}`,r)};Fht.exports=y_r});var Lht=Le((rKr,Mht)=>{var v5e=class{constructor(){this.max=1e3,this.map=new Map}get(r){let i=this.map.get(r);if(i!==void 0)return this.map.delete(r),this.map.set(r,i),i}delete(r){return this.map.delete(r)}set(r,i){if(!this.delete(r)&&i!==void 0){if(this.map.size>=this.max){let u=this.map.keys().next().value;this.delete(u)}this.map.set(r,i)}return this}};Mht.exports=v5e});var eI=Le((nKr,Jht)=>{var v_r=/\s+/g,b5e=class n{constructor(r,i){if(i=S_r(i),r instanceof n)return r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease?r:new n(r.raw,i);if(r instanceof S5e)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=r.trim().replace(v_r," "),this.set=this.raw.split("||").map(c=>this.parseRange(c.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let c=this.set[0];if(this.set=this.set.filter(u=>!Bht(u[0])),this.set.length===0)this.set=[c];else if(this.set.length>1){for(let u of this.set)if(u.length===1&&A_r(u[0])){this.set=[u];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){r>0&&(this.formatted+="||");let i=this.set[r];for(let c=0;c<i.length;c++)c>0&&(this.formatted+=" "),this.formatted+=i[c].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){let c=((this.options.includePrerelease&&I_r)|(this.options.loose&&E_r))+":"+r,u=jht.get(c);if(u)return u;let _=this.options.loose,h=_?S2[zS.HYPHENRANGELOOSE]:S2[zS.HYPHENRANGE];r=r.replace(h,j_r(this.options.includePrerelease)),mm("hyphen replace",r),r=r.replace(S2[zS.COMPARATORTRIM],x_r),mm("comparator trim",r),r=r.replace(S2[zS.TILDETRIM],T_r),mm("tilde trim",r),r=r.replace(S2[zS.CARETTRIM],C_r),mm("caret trim",r);let b=r.split(" ").map(B=>w_r(B,this.options)).join(" ").split(/\s+/).map(B=>L_r(B,this.options));_&&(b=b.filter(B=>(mm("loose invalid filter",B,this.options),!!B.match(S2[zS.COMPARATORLOOSE])))),mm("range list",b);let C=new Map,A=b.map(B=>new S5e(B,this.options));for(let B of A){if(Bht(B))return[B];C.set(B.value,B)}C.size>1&&C.has("")&&C.delete("");let M=[...C.values()];return jht.set(c,M),M}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Range is required");return this.set.some(c=>qht(c,i)&&r.set.some(u=>qht(u,i)&&c.every(_=>u.every(h=>_.intersects(h,i)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new D_r(r,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(B_r(this.set[i],r,this.options))return!0;return!1}};Jht.exports=b5e;var b_r=Lht(),jht=new b_r,S_r=p1e(),S5e=tie(),mm=Zne(),D_r=Sb(),{safeRe:S2,t:zS,comparatorTrimReplace:x_r,tildeTrimReplace:T_r,caretTrimReplace:C_r}=Cz(),{FLAG_INCLUDE_PRERELEASE:I_r,FLAG_LOOSE:E_r}=Kne(),Bht=n=>n.value==="<0.0.0-0",A_r=n=>n.value==="",qht=(n,r)=>{let i=!0,c=n.slice(),u=c.pop();for(;i&&c.length;)i=c.every(_=>u.intersects(_,r)),u=c.pop();return i},w_r=(n,r)=>(mm("comp",n,r),n=N_r(n,r),mm("caret",n),n=k_r(n,r),mm("tildes",n),n=F_r(n,r),mm("xrange",n),n=M_r(n,r),mm("stars",n),n),GS=n=>!n||n.toLowerCase()==="x"||n==="*",k_r=(n,r)=>n.trim().split(/\s+/).map(i=>P_r(i,r)).join(" "),P_r=(n,r)=>{let i=r.loose?S2[zS.TILDELOOSE]:S2[zS.TILDE];return n.replace(i,(c,u,_,h,b)=>{mm("tilde",n,c,u,_,h,b);let C;return GS(u)?C="":GS(_)?C=`>=${u}.0.0 <${+u+1}.0.0-0`:GS(h)?C=`>=${u}.${_}.0 <${u}.${+_+1}.0-0`:b?(mm("replaceTilde pr",b),C=`>=${u}.${_}.${h}-${b} <${u}.${+_+1}.0-0`):C=`>=${u}.${_}.${h} <${u}.${+_+1}.0-0`,mm("tilde return",C),C})},N_r=(n,r)=>n.trim().split(/\s+/).map(i=>O_r(i,r)).join(" "),O_r=(n,r)=>{mm("caret",n,r);let i=r.loose?S2[zS.CARETLOOSE]:S2[zS.CARET],c=r.includePrerelease?"-0":"";return n.replace(i,(u,_,h,b,C)=>{mm("caret",n,u,_,h,b,C);let A;return GS(_)?A="":GS(h)?A=`>=${_}.0.0${c} <${+_+1}.0.0-0`:GS(b)?_==="0"?A=`>=${_}.${h}.0${c} <${_}.${+h+1}.0-0`:A=`>=${_}.${h}.0${c} <${+_+1}.0.0-0`:C?(mm("replaceCaret pr",C),_==="0"?h==="0"?A=`>=${_}.${h}.${b}-${C} <${_}.${h}.${+b+1}-0`:A=`>=${_}.${h}.${b}-${C} <${_}.${+h+1}.0-0`:A=`>=${_}.${h}.${b}-${C} <${+_+1}.0.0-0`):(mm("no pr"),_==="0"?h==="0"?A=`>=${_}.${h}.${b}${c} <${_}.${h}.${+b+1}-0`:A=`>=${_}.${h}.${b}${c} <${_}.${+h+1}.0-0`:A=`>=${_}.${h}.${b} <${+_+1}.0.0-0`),mm("caret return",A),A})},F_r=(n,r)=>(mm("replaceXRanges",n,r),n.split(/\s+/).map(i=>R_r(i,r)).join(" ")),R_r=(n,r)=>{n=n.trim();let i=r.loose?S2[zS.XRANGELOOSE]:S2[zS.XRANGE];return n.replace(i,(c,u,_,h,b,C)=>{mm("xRange",n,c,u,_,h,b,C);let A=GS(_),M=A||GS(h),B=M||GS(b),X=B;return u==="="&&X&&(u=""),C=r.includePrerelease?"-0":"",A?u===">"||u==="<"?c="<0.0.0-0":c="*":u&&X?(M&&(h=0),b=0,u===">"?(u=">=",M?(_=+_+1,h=0,b=0):(h=+h+1,b=0)):u==="<="&&(u="<",M?_=+_+1:h=+h+1),u==="<"&&(C="-0"),c=`${u+_}.${h}.${b}${C}`):M?c=`>=${_}.0.0${C} <${+_+1}.0.0-0`:B&&(c=`>=${_}.${h}.0${C} <${_}.${+h+1}.0-0`),mm("xRange return",c),c})},M_r=(n,r)=>(mm("replaceStars",n,r),n.trim().replace(S2[zS.STAR],"")),L_r=(n,r)=>(mm("replaceGTE0",n,r),n.trim().replace(S2[r.includePrerelease?zS.GTE0PRE:zS.GTE0],"")),j_r=n=>(r,i,c,u,_,h,b,C,A,M,B,X)=>(GS(c)?i="":GS(u)?i=`>=${c}.0.0${n?"-0":""}`:GS(_)?i=`>=${c}.${u}.0${n?"-0":""}`:h?i=`>=${i}`:i=`>=${i}${n?"-0":""}`,GS(A)?C="":GS(M)?C=`<${+A+1}.0.0-0`:GS(B)?C=`<${A}.${+M+1}.0-0`:X?C=`<=${A}.${M}.${B}-${X}`:n?C=`<${A}.${M}.${+B+1}-0`:C=`<=${C}`,`${i} ${C}`.trim()),B_r=(n,r,i)=>{for(let c=0;c<n.length;c++)if(!n[c].test(r))return!1;if(r.prerelease.length&&!i.includePrerelease){for(let c=0;c<n.length;c++)if(mm(n[c].semver),n[c].semver!==S5e.ANY&&n[c].semver.prerelease.length>0){let u=n[c].semver;if(u.major===r.major&&u.minor===r.minor&&u.patch===r.patch)return!0}return!1}return!0}});var tie=Le((iKr,Ght)=>{var rie=Symbol("SemVer ANY"),T5e=class n{static get ANY(){return rie}constructor(r,i){if(i=$ht(i),r instanceof n){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),x5e("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===rie?this.value="":this.value=this.operator+this.semver.version,x5e("comp",this)}parse(r){let i=this.options.loose?Vht[Uht.COMPARATORLOOSE]:Vht[Uht.COMPARATOR],c=r.match(i);if(!c)throw new TypeError(`Invalid comparator: ${r}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new Wht(c[2],this.options.loose):this.semver=rie}toString(){return this.value}test(r){if(x5e("Comparator.test",r,this.options.loose),this.semver===rie||r===rie)return!0;if(typeof r=="string")try{r=new Wht(r,this.options)}catch{return!1}return D5e(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new zht(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new zht(this.value,i).test(r.semver):(i=$ht(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||D5e(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||D5e(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}};Ght.exports=T5e;var $ht=p1e(),{safeRe:Vht,t:Uht}=Cz(),D5e=y5e(),x5e=Zne(),Wht=Sb(),zht=eI()});var nie=Le((sKr,Hht)=>{var q_r=eI(),J_r=(n,r,i)=>{try{r=new q_r(r,i)}catch{return!1}return r.test(n)};Hht.exports=J_r});var Xht=Le((aKr,Yht)=>{var $_r=eI(),V_r=(n,r)=>new $_r(n,r).set.map(i=>i.map(c=>c.value).join(" ").trim().split(" "));Yht.exports=V_r});var Kht=Le((oKr,Qht)=>{var U_r=Sb(),W_r=eI(),z_r=(n,r,i)=>{let c=null,u=null,_=null;try{_=new W_r(r,i)}catch{return null}return n.forEach(h=>{_.test(h)&&(!c||u.compare(h)===-1)&&(c=h,u=new U_r(c,i))}),c};Qht.exports=z_r});var egt=Le((cKr,Zht)=>{var G_r=Sb(),H_r=eI(),Y_r=(n,r,i)=>{let c=null,u=null,_=null;try{_=new H_r(r,i)}catch{return null}return n.forEach(h=>{_.test(h)&&(!c||u.compare(h)===1)&&(c=h,u=new G_r(c,i))}),c};Zht.exports=Y_r});var ngt=Le((lKr,rgt)=>{var C5e=Sb(),X_r=eI(),tgt=eie(),Q_r=(n,r)=>{n=new X_r(n,r);let i=new C5e("0.0.0");if(n.test(i)||(i=new C5e("0.0.0-0"),n.test(i)))return i;i=null;for(let c=0;c<n.set.length;++c){let u=n.set[c],_=null;u.forEach(h=>{let b=new C5e(h.semver.version);switch(h.operator){case">":b.prerelease.length===0?b.patch++:b.prerelease.push(0),b.raw=b.format();case"":case">=":(!_||tgt(b,_))&&(_=b);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),_&&(!i||tgt(i,_))&&(i=_)}return i&&n.test(i)?i:null};rgt.exports=Q_r});var sgt=Le((uKr,igt)=>{var K_r=eI(),Z_r=(n,r)=>{try{return new K_r(n,r).range||"*"}catch{return null}};igt.exports=Z_r});var S1e=Le((fKr,lgt)=>{var edr=Sb(),cgt=tie(),{ANY:tdr}=cgt,rdr=eI(),ndr=nie(),agt=eie(),ogt=h1e(),idr=y1e(),sdr=g1e(),adr=(n,r,i,c)=>{n=new edr(n,c),r=new rdr(r,c);let u,_,h,b,C;switch(i){case">":u=agt,_=idr,h=ogt,b=">",C=">=";break;case"<":u=ogt,_=sdr,h=agt,b="<",C="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ndr(n,r,c))return!1;for(let A=0;A<r.set.length;++A){let M=r.set[A],B=null,X=null;if(M.forEach(se=>{se.semver===tdr&&(se=new cgt(">=0.0.0")),B=B||se,X=X||se,u(se.semver,B.semver,c)?B=se:h(se.semver,X.semver,c)&&(X=se)}),B.operator===b||B.operator===C||(!X.operator||X.operator===b)&&_(n,X.semver))return!1;if(X.operator===C&&h(n,X.semver))return!1}return!0};lgt.exports=adr});var fgt=Le((pKr,ugt)=>{var odr=S1e(),cdr=(n,r,i)=>odr(n,r,">",i);ugt.exports=cdr});var _gt=Le((_Kr,pgt)=>{var ldr=S1e(),udr=(n,r,i)=>ldr(n,r,"<",i);pgt.exports=udr});var hgt=Le((dKr,mgt)=>{var dgt=eI(),fdr=(n,r,i)=>(n=new dgt(n,i),r=new dgt(r,i),n.intersects(r,i));mgt.exports=fdr});var ygt=Le((mKr,ggt)=>{var pdr=nie(),_dr=ZC();ggt.exports=(n,r,i)=>{let c=[],u=null,_=null,h=n.sort((M,B)=>_dr(M,B,i));for(let M of h)pdr(M,r,i)?(_=M,u||(u=M)):(_&&c.push([u,_]),_=null,u=null);u&&c.push([u,null]);let b=[];for(let[M,B]of c)M===B?b.push(M):!B&&M===h[0]?b.push("*"):B?M===h[0]?b.push(`<=${B}`):b.push(`${M} - ${B}`):b.push(`>=${M}`);let C=b.join(" || "),A=typeof r.raw=="string"?r.raw:String(r);return C.length<A.length?C:r}});var Tgt=Le((hKr,xgt)=>{var vgt=eI(),E5e=tie(),{ANY:I5e}=E5e,iie=nie(),A5e=ZC(),ddr=(n,r,i={})=>{if(n===r)return!0;n=new vgt(n,i),r=new vgt(r,i);let c=!1;e:for(let u of n.set){for(let _ of r.set){let h=hdr(u,_,i);if(c=c||h!==null,h)continue e}if(c)return!1}return!0},mdr=[new E5e(">=0.0.0-0")],bgt=[new E5e(">=0.0.0")],hdr=(n,r,i)=>{if(n===r)return!0;if(n.length===1&&n[0].semver===I5e){if(r.length===1&&r[0].semver===I5e)return!0;i.includePrerelease?n=mdr:n=bgt}if(r.length===1&&r[0].semver===I5e){if(i.includePrerelease)return!0;r=bgt}let c=new Set,u,_;for(let se of n)se.operator===">"||se.operator===">="?u=Sgt(u,se,i):se.operator==="<"||se.operator==="<="?_=Dgt(_,se,i):c.add(se.semver);if(c.size>1)return null;let h;if(u&&_){if(h=A5e(u.semver,_.semver,i),h>0)return null;if(h===0&&(u.operator!==">="||_.operator!=="<="))return null}for(let se of c){if(u&&!iie(se,String(u),i)||_&&!iie(se,String(_),i))return null;for(let de of r)if(!iie(se,String(de),i))return!1;return!0}let b,C,A,M,B=_&&!i.includePrerelease&&_.semver.prerelease.length?_.semver:!1,X=u&&!i.includePrerelease&&u.semver.prerelease.length?u.semver:!1;B&&B.prerelease.length===1&&_.operator==="<"&&B.prerelease[0]===0&&(B=!1);for(let se of r){if(M=M||se.operator===">"||se.operator===">=",A=A||se.operator==="<"||se.operator==="<=",u){if(X&&se.semver.prerelease&&se.semver.prerelease.length&&se.semver.major===X.major&&se.semver.minor===X.minor&&se.semver.patch===X.patch&&(X=!1),se.operator===">"||se.operator===">="){if(b=Sgt(u,se,i),b===se&&b!==u)return!1}else if(u.operator===">="&&!iie(u.semver,String(se),i))return!1}if(_){if(B&&se.semver.prerelease&&se.semver.prerelease.length&&se.semver.major===B.major&&se.semver.minor===B.minor&&se.semver.patch===B.patch&&(B=!1),se.operator==="<"||se.operator==="<="){if(C=Dgt(_,se,i),C===se&&C!==_)return!1}else if(_.operator==="<="&&!iie(_.semver,String(se),i))return!1}if(!se.operator&&(_||u)&&h!==0)return!1}return!(u&&A&&!_&&h!==0||_&&M&&!u&&h!==0||X||B)},Sgt=(n,r,i)=>{if(!n)return r;let c=A5e(n.semver,r.semver,i);return c>0?n:c<0||r.operator===">"&&n.operator===">="?r:n},Dgt=(n,r,i)=>{if(!n)return r;let c=A5e(n.semver,r.semver,i);return c<0?n:c>0||r.operator==="<"&&n.operator==="<="?r:n};xgt.exports=ddr});var Agt=Le((gKr,Egt)=>{var w5e=Cz(),Cgt=Kne(),gdr=Sb(),Igt=d5e(),ydr=W9(),vdr=Kmt(),bdr=eht(),Sdr=nht(),Ddr=aht(),xdr=cht(),Tdr=uht(),Cdr=pht(),Idr=dht(),Edr=ZC(),Adr=yht(),wdr=bht(),kdr=m1e(),Pdr=Tht(),Ndr=Iht(),Odr=eie(),Fdr=h1e(),Rdr=h5e(),Mdr=g5e(),Ldr=g1e(),jdr=y1e(),Bdr=y5e(),qdr=Rht(),Jdr=tie(),$dr=eI(),Vdr=nie(),Udr=Xht(),Wdr=Kht(),zdr=egt(),Gdr=ngt(),Hdr=sgt(),Ydr=S1e(),Xdr=fgt(),Qdr=_gt(),Kdr=hgt(),Zdr=ygt(),emr=Tgt();Egt.exports={parse:ydr,valid:vdr,clean:bdr,inc:Sdr,diff:Ddr,major:xdr,minor:Tdr,patch:Cdr,prerelease:Idr,compare:Edr,rcompare:Adr,compareLoose:wdr,compareBuild:kdr,sort:Pdr,rsort:Ndr,gt:Odr,lt:Fdr,eq:Rdr,neq:Mdr,gte:Ldr,lte:jdr,cmp:Bdr,coerce:qdr,Comparator:Jdr,Range:$dr,satisfies:Vdr,toComparators:Udr,maxSatisfying:Wdr,minSatisfying:zdr,minVersion:Gdr,validRange:Hdr,outside:Ydr,gtr:Xdr,ltr:Qdr,intersects:Kdr,simplifyRange:Zdr,subset:emr,SemVer:gdr,re:w5e.re,src:w5e.src,tokens:w5e.t,SEMVER_SPEC_VERSION:Cgt.SEMVER_SPEC_VERSION,RELEASE_TYPES:Cgt.RELEASE_TYPES,compareIdentifiers:Igt.compareIdentifiers,rcompareIdentifiers:Igt.rcompareIdentifiers}});var yP=Le(N6=>{"use strict";Object.defineProperty(N6,"__esModule",{value:!0});N6.fileExists=N6.dirExists=void 0;N6.readJson=wgt;N6.safeReadJson=smr;N6.existsSync=amr;var tmr=require("node:fs"),N5e=require("node:fs/promises"),rmr=Cy(),nmr=async n=>{let r;try{r=await(0,N5e.stat)(n)}catch{throw new Error(`No directory found at ${n}`)}if(!r.isDirectory())throw new Error(`${n} exists but is not a directory`);return n};N6.dirExists=nmr;var imr=async n=>{let r;try{r=await(0,N5e.stat)(n)}catch{throw new Error(`No file found at ${n}`)}if(!r.isFile())throw new Error(`${n} exists but is not a file`);return n};N6.fileExists=imr;var P5e=class extends Map{set(r,i){return((0,rmr.isProd)()??!1)&&super.set(r,i),this}},k5e=new P5e;async function wgt(n,r=!0){if(r&&k5e.has(n))return JSON.parse(k5e.get(n));let i=await(0,N5e.readFile)(n,"utf8");return k5e.set(n,i),JSON.parse(i)}async function smr(n,r=!0){try{return await wgt(n,r)}catch{}}function amr(n){return(0,tmr.existsSync)(n)}});var Pgt=Le(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.string=HS.url=HS.file=HS.directory=HS.integer=HS.boolean=void 0;HS.custom=z9;var omr=require("node:url"),kgt=yP(),cmr=Cy();function z9(n){return(r={})=>({parse:async(i,c,u)=>i,...n,...r,input:[],type:"option"})}HS.boolean=z9({parse:async n=>!!n&&(0,cmr.isNotFalsy)(n)});HS.integer=z9({async parse(n,r,i){if(!/^-?\d+$/.test(n))throw new Error(`Expected an integer but received: ${n}`);let c=Number.parseInt(n,10);if(i.min!==void 0&&c<i.min)throw new Error(`Expected an integer greater than or equal to ${i.min} but received: ${n}`);if(i.max!==void 0&&c>i.max)throw new Error(`Expected an integer less than or equal to ${i.max} but received: ${n}`);return c}});HS.directory=z9({async parse(n,r,i){return i.exists?(0,kgt.dirExists)(n):n}});HS.file=z9({async parse(n,r,i){return i.exists?(0,kgt.fileExists)(n):n}});HS.url=z9({async parse(n){try{return new omr.URL(n)}catch{throw new Error(`Expected a valid url but received: ${n}`)}}});var lmr=z9({});HS.string=lmr});var Ngt=Le((bKr,umr)=>{umr.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.2.6",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.10.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.0",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^9.0.5",semver:"^7.6.3","string-width":"^4.2.3","supports-color":"^8","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.2.5","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^10.8.2",nyc:"^15.1.0",prettier:"^3.4.2",shx:"^0.3.4",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.31.2",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var bA=Le(F5e=>{"use strict";Object.defineProperty(F5e,"__esModule",{value:!0});var fmr=require("node:fs"),pmr=require("node:path"),O5e=class n extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return n.instance||(n.instance=new n),n.instance}get(r){return super.get(r)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Ngt().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,fmr.readFileSync)((0,pmr.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};F5e.default=O5e});var Fgt=Le(tI=>{"use strict";var _mr=/[|\\{}()[\]^$+*?.]/g,dmr=Object.prototype.hasOwnProperty,R5e=function(n,r){return dmr.apply(n,[r])};tI.escapeRegExpChars=function(n){return n?String(n).replace(_mr,"\\$&"):""};var mmr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},hmr=/[&<>'"]/g;function gmr(n){return mmr[n]||n}var ymr=`var _ENCODE_HTML_RULES = { "&": "&amp;" , "<": "&lt;" , ">": "&gt;" , '"': "&#34;" , "'": "&#39;" } , _MATCH_HTML = /[&<>'"]/g; function encode_char(c) { return _ENCODE_HTML_RULES[c] || c; }; `;tI.escapeXML=function(n){return n==null?"":String(n).replace(hmr,gmr)};function Ogt(){return Function.prototype.toString.call(this)+`; `+ymr}try{typeof Object.defineProperty=="function"?Object.defineProperty(tI.escapeXML,"toString",{value:Ogt}):tI.escapeXML.toString=Ogt}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}tI.shallowCopy=function(n,r){if(r=r||{},n!=null)for(var i in r)R5e(r,i)&&(i==="__proto__"||i==="constructor"||(n[i]=r[i]));return n};tI.shallowCopyFromList=function(n,r,i){if(i=i||[],r=r||{},n!=null)for(var c=0;c<i.length;c++){var u=i[c];if(typeof r[u]<"u"){if(!R5e(r,u)||u==="__proto__"||u==="constructor")continue;n[u]=r[u]}}return n};tI.cache={_data:{},set:function(n,r){this._data[n]=r},get:function(n){return this._data[n]},remove:function(n){delete this._data[n]},reset:function(){this._data={}}};tI.hyphenToCamel=function(n){return n.replace(/-[a-z]/g,function(r){return r[1].toUpperCase()})};tI.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();tI.hasOwnOnlyObject=function(n){var r=tI.createNullProtoObjWherePossible();for(var i in n)R5e(n,i)&&(r[i]=n[i]);return r}});var Rgt=Le((xKr,vmr)=>{vmr.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var j5e=Le(e_=>{"use strict";var L5e=require("fs"),sie=require("path"),Gg=Fgt(),Mgt=!1,bmr=Rgt().version,Smr="<",Dmr=">",xmr="%",$gt="locals",Tmr="ejs",Cmr="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Vgt=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Imr=Vgt.concat("cache"),Lgt=/^\uFEFF/,M5e=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;e_.cache=Gg.cache;e_.fileLoader=L5e.readFileSync;e_.localsName=$gt;e_.promiseImpl=new Function("return this;")().Promise;e_.resolveInclude=function(n,r,i){var c=sie.dirname,u=sie.extname,_=sie.resolve,h=_(i?r:c(r),n),b=u(n);return b||(h+=".ejs"),h};function jgt(n,r){var i;if(r.some(function(c){return i=e_.resolveInclude(n,c,!0),L5e.existsSync(i)}))return i}function Emr(n,r){var i,c,u=r.views,_=/^[A-Za-z]+:\\|^\//.exec(n);if(_&&_.length)n=n.replace(/^\/*/,""),Array.isArray(r.root)?i=jgt(n,r.root):i=e_.resolveInclude(n,r.root||"/",!0);else if(r.filename&&(c=e_.resolveInclude(n,r.filename),L5e.existsSync(c)&&(i=c)),!i&&Array.isArray(u)&&(i=jgt(n,u)),!i&&typeof r.includer!="function")throw new Error('Could not find the include file "'+r.escapeFunction(n)+'"');return i}function aie(n,r){var i,c=n.filename,u=arguments.length>1;if(n.cache){if(!c)throw new Error("cache option requires a filename");if(i=e_.cache.get(c),i)return i;u||(r=Bgt(c).toString().replace(Lgt,""))}else if(!u){if(!c)throw new Error("Internal EJS error: no file name or template provided");r=Bgt(c).toString().replace(Lgt,"")}return i=e_.compile(r,n),n.cache&&e_.cache.set(c,i),i}function Amr(n,r,i){var c;if(i){try{c=aie(n)(r)}catch(u){return i(u)}i(null,c)}else{if(typeof e_.promiseImpl=="function")return new e_.promiseImpl(function(u,_){try{c=aie(n)(r),u(c)}catch(h){_(h)}});throw new Error("Please provide a callback function")}}function Bgt(n){return e_.fileLoader(n)}function wmr(n,r){var i=Gg.shallowCopy(Gg.createNullProtoObjWherePossible(),r);if(i.filename=Emr(n,i),typeof r.includer=="function"){var c=r.includer(n,i.filename);if(c&&(c.filename&&(i.filename=c.filename),c.template))return aie(i,c.template)}return aie(i)}function qgt(n,r,i,c,u){var _=r.split(` `),h=Math.max(c-3,0),b=Math.min(_.length,c+3),C=u(i),A=_.slice(h,b).map(function(M,B){var X=B+h+1;return(X==c?" >> ":" ")+X+"| "+M}).join(` `);throw n.path=C,n.message=(C||"ejs")+":"+c+` `+A+` `+n.message,n}function Jgt(n){return n.replace(/;(\s*$)/,"$1")}e_.compile=function(r,i){var c;return i&&i.scope&&(Mgt||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Mgt=!0),i.context||(i.context=i.scope),delete i.scope),c=new d0(r,i),c.compile()};e_.render=function(n,r,i){var c=r||Gg.createNullProtoObjWherePossible(),u=i||Gg.createNullProtoObjWherePossible();return arguments.length==2&&Gg.shallowCopyFromList(u,c,Vgt),aie(u,n)(c)};e_.renderFile=function(){var n=Array.prototype.slice.call(arguments),r=n.shift(),i,c={filename:r},u,_;return typeof arguments[arguments.length-1]=="function"&&(i=n.pop()),n.length?(u=n.shift(),n.length?Gg.shallowCopy(c,n.pop()):(u.settings&&(u.settings.views&&(c.views=u.settings.views),u.settings["view cache"]&&(c.cache=!0),_=u.settings["view options"],_&&Gg.shallowCopy(c,_)),Gg.shallowCopyFromList(c,u,Imr)),c.filename=r):u=Gg.createNullProtoObjWherePossible(),Amr(c,u,i)};e_.Template=d0;e_.clearCache=function(){e_.cache.reset()};function d0(n,r){var i=Gg.hasOwnOnlyObject(r),c=Gg.createNullProtoObjWherePossible();this.templateText=n,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",c.client=i.client||!1,c.escapeFunction=i.escape||i.escapeFunction||Gg.escapeXML,c.compileDebug=i.compileDebug!==!1,c.debug=!!i.debug,c.filename=i.filename,c.openDelimiter=i.openDelimiter||e_.openDelimiter||Smr,c.closeDelimiter=i.closeDelimiter||e_.closeDelimiter||Dmr,c.delimiter=i.delimiter||e_.delimiter||xmr,c.strict=i.strict||!1,c.context=i.context,c.cache=i.cache||!1,c.rmWhitespace=i.rmWhitespace,c.root=i.root,c.includer=i.includer,c.outputFunctionName=i.outputFunctionName,c.localsName=i.localsName||e_.localsName||$gt,c.views=i.views,c.async=i.async,c.destructuredLocals=i.destructuredLocals,c.legacyInclude=typeof i.legacyInclude<"u"?!!i.legacyInclude:!0,c.strict?c._with=!1:c._with=typeof i._with<"u"?i._with:!0,this.opts=c,this.regex=this.createRegex()}d0.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};d0.prototype={createRegex:function(){var n=Cmr,r=Gg.escapeRegExpChars(this.opts.delimiter),i=Gg.escapeRegExpChars(this.opts.openDelimiter),c=Gg.escapeRegExpChars(this.opts.closeDelimiter);return n=n.replace(/%/g,r).replace(/</g,i).replace(/>/g,c),new RegExp(n)},compile:function(){var n,r,i=this.opts,c="",u="",_=i.escapeFunction,h,b=i.filename?JSON.stringify(i.filename):"undefined";if(!this.source){if(this.generateSource(),c+=` var __output = ""; function __append(s) { if (s !== undefined && s !== null) __output += s } `,i.outputFunctionName){if(!M5e.test(i.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");c+=" var "+i.outputFunctionName+` = __append; `}if(i.localsName&&!M5e.test(i.localsName))throw new Error("localsName is not a valid JS identifier.");if(i.destructuredLocals&&i.destructuredLocals.length){for(var C=" var __locals = ("+i.localsName+` || {}), `,A=0;A<i.destructuredLocals.length;A++){var M=i.destructuredLocals[A];if(!M5e.test(M))throw new Error("destructuredLocals["+A+"] is not a valid JS identifier.");A>0&&(C+=`, `),C+=M+" = __locals."+M}c+=C+`; `}i._with!==!1&&(c+=" with ("+i.localsName+` || {}) { `,u+=` } `),u+=` return __output; `,this.source=c+this.source+u}i.compileDebug?n=`var __line = 1 , __lines = `+JSON.stringify(this.templateText)+` , __filename = `+b+`; try { `+this.source+`} catch (e) { rethrow(e, __lines, __filename, __line, escapeFn); } `:n=this.source,i.client&&(n="escapeFn = escapeFn || "+_.toString()+`; `+n,i.compileDebug&&(n="rethrow = rethrow || "+qgt.toString()+`; `+n)),i.strict&&(n=`"use strict"; `+n),i.debug&&console.log(n),i.compileDebug&&i.filename&&(n=n+` //# sourceURL=`+b+` `);try{if(i.async)try{h=new Function("return (async function(){}).constructor;")()}catch(de){throw de instanceof SyntaxError?new Error("This environment does not support async/await"):de}else h=Function;r=new h(i.localsName+", escapeFn, include, rethrow",n)}catch(de){throw de instanceof SyntaxError&&(i.filename&&(de.message+=" in "+i.filename),de.message+=` while compiling ejs `,de.message+=`If the above error is not helpful, you may want to try EJS-Lint: `,de.message+="https://github.com/RyanZim/EJS-Lint",i.async||(de.message+=` `,de.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),de}var B=i.client?r:function(Ae){var Ge=function(Ye,nt){var vt=Gg.shallowCopy(Gg.createNullProtoObjWherePossible(),Ae);return nt&&(vt=Gg.shallowCopy(vt,nt)),wmr(Ye,i)(vt)};return r.apply(i.context,[Ae||Gg.createNullProtoObjWherePossible(),_,Ge,qgt])};if(i.filename&&typeof Object.defineProperty=="function"){var X=i.filename,se=sie.basename(X,sie.extname(X));try{Object.defineProperty(B,"name",{value:se,writable:!1,enumerable:!1,configurable:!0})}catch{}}return B},generateSource:function(){var n=this.opts;n.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,` `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(