snyk
Version:
snyk library and cli utility
9 lines (7 loc) • 124 kB
JavaScript
"use strict";
exports.id = 284;
exports.ids = [284];
exports.modules = {
/***/ 13284:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oa=__webpack_require__(57310),Ee=__webpack_require__(57147),Zr=__webpack_require__(71017),_a=__webpack_require__(73837);function Ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=Ta(Zr);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yr={exports:{}},_r,Xn;function Ra(){if(Xn)return _r;Xn=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;_r=function(f,h){h=h||{};var m=typeof f;if(m==="string"&&f.length>0)return o(f);if(m==="number"&&isFinite(f))return h.long?a(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function o(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var m=parseFloat(h[1]),d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*i;case"days":case"day":case"d":return m*n;case"hours":case"hour":case"hrs":case"hr":case"h":return m*r;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(f){var h=Math.abs(f);return h>=n?Math.round(f/n)+"d":h>=r?Math.round(f/r)+"h":h>=t?Math.round(f/t)+"m":h>=e?Math.round(f/e)+"s":f+"ms"}function a(f){var h=Math.abs(f);return h>=n?u(f,h,n,"day"):h>=r?u(f,h,r,"hour"):h>=t?u(f,h,t,"minute"):h>=e?u(f,h,e,"second"):f+" ms"}function u(f,h,m,d){var v=h>=m*1.5;return Math.round(f/m)+" "+d+(v?"s":"")}return _r}function Ia(e){r.debug=r,r.default=r,r.coerce=a,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Ra(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,m=null,d,v;function _(...A){if(!_.enabled)return;const M=_,te=Number(new Date),j=te-(h||te);M.diff=j,M.prev=h,M.curr=te,h=te,A[0]=r.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let oe=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(ae,Ue)=>{if(ae==="%%")return"%";oe++;const we=r.formatters[Ue];if(typeof we=="function"){const Ge=A[oe];ae=we.call(M,Ge),A.splice(oe,1),oe--}return ae}),r.formatArgs.call(M,A),(M.log||r.log).apply(M,A)}return _.namespace=f,_.useColors=r.useColors(),_.color=r.selectColor(f),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==r.namespaces&&(d=r.namespaces,v=r.enabled(f)),v),set:A=>{m=A}}),typeof r.init=="function"&&r.init(_),_}function n(f,h){const m=r(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h;const m=(typeof f=="string"?f:"").split(/[\s,]+/),d=m.length;for(h=0;h<d;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function s(){const f=[...r.names.map(c),...r.skips.map(c).map(h=>"-"+h)].join(",");return r.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(f))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(f))return!0;return!1}function c(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function a(f){return f instanceof Error?f.stack||f.message:f}function u(){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 r.enable(r.load()),r}var Fa=Ia;(function(e,t){t.formatArgs=n,t.save=i,t.load=s,t.useColors=r,t.storage=o(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!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`."))}})(),t.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 r(){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 a;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&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;a.splice(1,0,u,"color: inherit");let f=0,h=0;a[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(h=f))}),a.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function i(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function s(){let a;try{a=t.storage.getItem("debug")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function o(){try{return localStorage}catch{}}e.exports=Fa(t);const{formatters:c}=e.exports;c.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(Yr,Yr.exports);var or=Yr.exports;const Ce=sr(or);var Vr={exports:{}};const Na="2.0.0",zi=256,La=Number.MAX_SAFE_INTEGER||9007199254740991,ja=16,Da=zi-6,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ar={MAX_LENGTH:zi,MAX_SAFE_COMPONENT_LENGTH:ja,MAX_SAFE_BUILD_LENGTH:Da,MAX_SAFE_INTEGER:La,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:Na,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Ma=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var lr=Ma;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=ar,s=lr;t=e.exports={};const o=t.re=[],c=t.safeRe=[],a=t.src=[],u=t.t={};let f=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[h,n]],d=_=>{for(const[A,M]of m)_=_.split(`${A}*`).join(`${A}{0,${M}}`).split(`${A}+`).join(`${A}{1,${M}}`);return _},v=(_,A,M)=>{const te=d(A),j=f++;s(_,j,A),u[_]=j,a[j]=A,o[j]=new RegExp(A,M?"g":void 0),c[j]=new RegExp(te,M?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),v("MAINVERSION",`(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[u.NUMERICIDENTIFIER]}|${a[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[u.NUMERICIDENTIFIERLOOSE]}|${a[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${a[u.PRERELEASEIDENTIFIER]}(?:\\.${a[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${h}+`),v("BUILD",`(?:\\+(${a[u.BUILDIDENTIFIER]}(?:\\.${a[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[u.MAINVERSION]}${a[u.PRERELEASE]}?${a[u.BUILD]}?`),v("FULL",`^${a[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[u.MAINVERSIONLOOSE]}${a[u.PRERELEASELOOSE]}?${a[u.BUILD]}?`),v("LOOSE",`^${a[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:${a[u.PRERELEASE]})?${a[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:${a[u.PRERELEASELOOSE]})?${a[u.BUILD]}?)?)?`),v("XRANGE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${a[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[u.COERCEPLAIN]+`(?:${a[u.PRERELEASE]})?(?:${a[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[u.COERCE],!0),v("COERCERTLFULL",a[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[u.LONECARET]}${a[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[u.LONECARET]}${a[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[u.GTLT]}\\s*(${a[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]}|${a[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[u.XRANGEPLAIN]})\\s+-\\s+(${a[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Vr,Vr.exports);var bt=Vr.exports;const ka=Object.freeze({loose:!0}),Ua=Object.freeze({}),Ga=e=>e?typeof e!="object"?ka:e:Ua;var Qr=Ga;const Wn=/^[0-9]+$/,Ji=(e,t)=>{const r=Wn.test(e),n=Wn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Ha=(e,t)=>Ji(t,e);var Zi={compareIdentifiers:Ji,rcompareIdentifiers:Ha};const Bt=lr,{MAX_LENGTH:Kn,MAX_SAFE_INTEGER:Yt}=ar,{safeRe:zn,t:Jn}=bt,Ba=Qr,{compareIdentifiers:qe}=Zi;let Ya=class le{constructor(t,r){if(r=Ba(r),t instanceof le){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Kn)throw new TypeError(`version is longer than ${Kn} characters`);Bt("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?zn[Jn.LOOSE]:zn[Jn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Yt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Yt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Yt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<Yt)return s}return i}):this.prerelease=[],this.build=n[5]?n[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(t){if(Bt("SemVer.compare",this.version,this.options,t),!(t instanceof le)){if(typeof t=="string"&&t===this.version)return 0;t=new le(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof le||(t=new le(t,this.options)),qe(this.major,t.major)||qe(this.minor,t.minor)||qe(this.patch,t.patch)}comparePre(t){if(t instanceof le||(t=new le(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(Bt("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}compareBuild(t){t instanceof le||(t=new le(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(Bt("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return qe(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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":{const i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),qe(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var X=Ya;const Zn=X,Va=(e,t,r=!1)=>{if(e instanceof Zn)return e;try{return new Zn(e,t)}catch(n){if(!r)return null;throw n}};var at=Va;const qa=at,Xa=(e,t)=>{const r=qa(e,t);return r?r.version:null};var Wa=Xa;const Ka=at,za=(e,t)=>{const r=Ka(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Ja=za;const Qn=X,Za=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Qn(e instanceof Qn?e.version:e,r).inc(t,n,i).version}catch{return null}};var Qa=Za;const ei=at,el=(e,t)=>{const r=ei(e,null,!0),n=ei(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,c=s?n:r,a=!!o.prerelease.length;if(!!c.prerelease.length&&!a)return!c.patch&&!c.minor?"major":o.patch?"patch":o.minor?"minor":"major";const f=a?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var tl=el;const rl=X,nl=(e,t)=>new rl(e,t).major;var il=nl;const sl=X,ol=(e,t)=>new sl(e,t).minor;var al=ol;const ll=X,cl=(e,t)=>new ll(e,t).patch;var ul=cl;const fl=at,hl=(e,t)=>{const r=fl(e,t);return r&&r.prerelease.length?r.prerelease:null};var pl=hl;const ti=X,dl=(e,t,r)=>new ti(e,r).compare(new ti(t,r));var ie=dl;const ml=ie,gl=(e,t,r)=>ml(t,e,r);var vl=gl;const yl=ie,El=(e,t)=>yl(e,t,!0);var xl=El;const ri=X,$l=(e,t,r)=>{const n=new ri(e,r),i=new ri(t,r);return n.compare(i)||n.compareBuild(i)};var en=$l;const Al=en,bl=(e,t)=>e.sort((r,n)=>Al(r,n,t));var Cl=bl;const wl=en,Sl=(e,t)=>e.sort((r,n)=>wl(n,r,t));var Ol=Sl;const _l=ie,Tl=(e,t,r)=>_l(e,t,r)>0;var cr=Tl;const Rl=ie,Il=(e,t,r)=>Rl(e,t,r)<0;var tn=Il;const Fl=ie,Nl=(e,t,r)=>Fl(e,t,r)===0;var Qi=Nl;const Ll=ie,jl=(e,t,r)=>Ll(e,t,r)!==0;var es=jl;const Dl=ie,Pl=(e,t,r)=>Dl(e,t,r)>=0;var rn=Pl;const Ml=ie,kl=(e,t,r)=>Ml(e,t,r)<=0;var nn=kl;const Ul=Qi,Gl=es,Hl=cr,Bl=rn,Yl=tn,Vl=nn,ql=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Ul(e,r,n);case"!=":return Gl(e,r,n);case">":return Hl(e,r,n);case">=":return Bl(e,r,n);case"<":return Yl(e,r,n);case"<=":return Vl(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var ts=ql;const Xl=X,Wl=at,{safeRe:Vt,t:qt}=bt,Kl=(e,t)=>{if(e instanceof Xl)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Vt[qt.COERCEFULL]:Vt[qt.COERCE]);else{const a=t.includePrerelease?Vt[qt.COERCERTLFULL]:Vt[qt.COERCERTL];let u;for(;(u=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),a.lastIndex=u.index+u[1].length+u[2].length;a.lastIndex=-1}if(r===null)return null;const n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",c=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Wl(`${n}.${i}.${s}${o}${c}`,t)};var zl=Kl;let Jl=class{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};var Zl=Jl,Tr,ni;function se(){if(ni)return Tr;ni=1;const e=/\s+/g;class t{constructor(y,S){if(S=i(S),y instanceof t)return y.loose===!!S.loose&&y.includePrerelease===!!S.includePrerelease?y:new t(y.raw,S);if(y instanceof s)return this.raw=y.value,this.set=[[y]],this.formatted=void 0,this;if(this.options=S,this.loose=!!S.loose,this.includePrerelease=!!S.includePrerelease,this.raw=y.trim().replace(e," "),this.set=this.raw.split("||").map(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(O=>!_(O[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const O of this.set)if(O.length===1&&A(O[0])){this.set=[O];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let y=0;y<this.set.length;y++){y>0&&(this.formatted+="||");const S=this.set[y];for(let b=0;b<S.length;b++)b>0&&(this.formatted+=" "),this.formatted+=S[b].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(y){const b=((this.options.includePrerelease&&d)|(this.options.loose&&v))+":"+y,O=n.get(b);if(O)return O;const C=this.options.loose,E=C?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];y=y.replace(E,Lt(this.options.includePrerelease)),o("hyphen replace",y),y=y.replace(a[u.COMPARATORTRIM],f),o("comparator trim",y),y=y.replace(a[u.TILDETRIM],h),o("tilde trim",y),y=y.replace(a[u.CARETTRIM],m),o("caret trim",y);let N=y.split(" ").map(D=>te(D,this.options)).join(" ").split(/\s+/).map(D=>Nt(D,this.options));C&&(N=N.filter(D=>(o("loose invalid filter",D,this.options),!!D.match(a[u.COMPARATORLOOSE])))),o("range list",N);const T=new Map,R=N.map(D=>new s(D,this.options));for(const D of R){if(_(D))return[D];T.set(D.value,D)}T.size>1&&T.has("")&&T.delete("");const V=[...T.values()];return n.set(b,V),V}intersects(y,S){if(!(y instanceof t))throw new TypeError("a Range is required");return this.set.some(b=>M(b,S)&&y.set.some(O=>M(O,S)&&b.every(C=>O.every(E=>C.intersects(E,S)))))}test(y){if(!y)return!1;if(typeof y=="string")try{y=new c(y,this.options)}catch{return!1}for(let S=0;S<this.set.length;S++)if(jt(this.set[S],y,this.options))return!0;return!1}}Tr=t;const r=Zl,n=new r,i=Qr,s=ur(),o=lr,c=X,{safeRe:a,t:u,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:m}=bt,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:v}=ar,_=x=>x.value==="<0.0.0-0",A=x=>x.value==="",M=(x,y)=>{let S=!0;const b=x.slice();let O=b.pop();for(;S&&b.length;)S=b.every(C=>O.intersects(C,y)),O=b.pop();return S},te=(x,y)=>(o("comp",x,y),x=ae(x,y),o("caret",x),x=oe(x,y),o("tildes",x),x=we(x,y),o("xrange",x),x=Ft(x,y),o("stars",x),x),j=x=>!x||x.toLowerCase()==="x"||x==="*",oe=(x,y)=>x.trim().split(/\s+/).map(S=>ut(S,y)).join(" "),ut=(x,y)=>{const S=y.loose?a[u.TILDELOOSE]:a[u.TILDE];return x.replace(S,(b,O,C,E,N)=>{o("tilde",x,b,O,C,E,N);let T;return j(O)?T="":j(C)?T=`>=${O}.0.0 <${+O+1}.0.0-0`:j(E)?T=`>=${O}.${C}.0 <${O}.${+C+1}.0-0`:N?(o("replaceTilde pr",N),T=`>=${O}.${C}.${E}-${N} <${O}.${+C+1}.0-0`):T=`>=${O}.${C}.${E} <${O}.${+C+1}.0-0`,o("tilde return",T),T})},ae=(x,y)=>x.trim().split(/\s+/).map(S=>Ue(S,y)).join(" "),Ue=(x,y)=>{o("caret",x,y);const S=y.loose?a[u.CARETLOOSE]:a[u.CARET],b=y.includePrerelease?"-0":"";return x.replace(S,(O,C,E,N,T)=>{o("caret",x,O,C,E,N,T);let R;return j(C)?R="":j(E)?R=`>=${C}.0.0${b} <${+C+1}.0.0-0`:j(N)?C==="0"?R=`>=${C}.${E}.0${b} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.0${b} <${+C+1}.0.0-0`:T?(o("replaceCaret pr",T),C==="0"?E==="0"?R=`>=${C}.${E}.${N}-${T} <${C}.${E}.${+N+1}-0`:R=`>=${C}.${E}.${N}-${T} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${N}-${T} <${+C+1}.0.0-0`):(o("no pr"),C==="0"?E==="0"?R=`>=${C}.${E}.${N}${b} <${C}.${E}.${+N+1}-0`:R=`>=${C}.${E}.${N}${b} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${N} <${+C+1}.0.0-0`),o("caret return",R),R})},we=(x,y)=>(o("replaceXRanges",x,y),x.split(/\s+/).map(S=>Ge(S,y)).join(" ")),Ge=(x,y)=>{x=x.trim();const S=y.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return x.replace(S,(b,O,C,E,N,T)=>{o("xRange",x,b,O,C,E,N,T);const R=j(C),V=R||j(E),D=V||j(N),Se=D;return O==="="&&Se&&(O=""),T=y.includePrerelease?"-0":"",R?O===">"||O==="<"?b="<0.0.0-0":b="*":O&&Se?(V&&(E=0),N=0,O===">"?(O=">=",V?(C=+C+1,E=0,N=0):(E=+E+1,N=0)):O==="<="&&(O="<",V?C=+C+1:E=+E+1),O==="<"&&(T="-0"),b=`${O+C}.${E}.${N}${T}`):V?b=`>=${C}.0.0${T} <${+C+1}.0.0-0`:D&&(b=`>=${C}.${E}.0${T} <${C}.${+E+1}.0-0`),o("xRange return",b),b})},Ft=(x,y)=>(o("replaceStars",x,y),x.trim().replace(a[u.STAR],"")),Nt=(x,y)=>(o("replaceGTE0",x,y),x.trim().replace(a[y.includePrerelease?u.GTE0PRE:u.GTE0],"")),Lt=x=>(y,S,b,O,C,E,N,T,R,V,D,Se)=>(j(b)?S="":j(O)?S=`>=${b}.0.0${x?"-0":""}`:j(C)?S=`>=${b}.${O}.0${x?"-0":""}`:E?S=`>=${S}`:S=`>=${S}${x?"-0":""}`,j(R)?T="":j(V)?T=`<${+R+1}.0.0-0`:j(D)?T=`<${R}.${+V+1}.0-0`:Se?T=`<=${R}.${V}.${D}-${Se}`:x?T=`<${R}.${V}.${+D+1}-0`:T=`<=${T}`,`${S} ${T}`.trim()),jt=(x,y,S)=>{for(let b=0;b<x.length;b++)if(!x[b].test(y))return!1;if(y.prerelease.length&&!S.includePrerelease){for(let b=0;b<x.length;b++)if(o(x[b].semver),x[b].semver!==s.ANY&&x[b].semver.prerelease.length>0){const O=x[b].semver;if(O.major===y.major&&O.minor===y.minor&&O.patch===y.patch)return!0}return!1}return!0};return Tr}var Rr,ii;function ur(){if(ii)return Rr;ii=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,h){if(h=r(h),f instanceof t){if(f.loose===!!h.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),o("comparator",f,h),this.options=h,this.loose=!!h.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(f){const h=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],m=f.match(h);if(!m)throw new TypeError(`Invalid comparator: ${f}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new c(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(o("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new c(f,this.options)}catch{return!1}return s(f,this.operator,this.semver,this.options)}intersects(f,h){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(f.value,h).test(this.value):f.operator===""?f.value===""?!0:new a(this.value,h).test(f.semver):(h=r(h),h.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||s(this.semver,"<",f.semver,h)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||s(this.semver,">",f.semver,h)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}Rr=t;const r=Qr,{safeRe:n,t:i}=bt,s=ts,o=lr,c=X,a=se();return Rr}const Ql=se(),ec=(e,t,r)=>{try{t=new Ql(t,r)}catch{return!1}return t.test(e)};var fr=ec;const tc=se(),rc=(e,t)=>new tc(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var nc=rc;const ic=X,sc=se(),oc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new ic(n,r))}),n};var ac=oc;const lc=X,cc=se(),uc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new cc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new lc(n,r))}),n};var fc=uc;const Ir=X,hc=se(),si=cr,pc=(e,t)=>{e=new hc(e,t);let r=new Ir("0.0.0");if(e.test(r)||(r=new Ir("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const c=new Ir(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||si(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||si(r,s))&&(r=s)}return r&&e.test(r)?r:null};var dc=pc;const mc=se(),gc=(e,t)=>{try{return new mc(e,t).range||"*"}catch{return null}};var vc=gc;const yc=X,rs=ur(),{ANY:Ec}=rs,xc=se(),$c=fr,oi=cr,ai=tn,Ac=nn,bc=rn,Cc=(e,t,r,n)=>{e=new yc(e,n),t=new xc(t,n);let i,s,o,c,a;switch(r){case">":i=oi,s=Ac,o=ai,c=">",a=">=";break;case"<":i=ai,s=bc,o=oi,c="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($c(e,t,n))return!1;for(let u=0;u<t.set.length;++u){const f=t.set[u];let h=null,m=null;if(f.forEach(d=>{d.semver===Ec&&(d=new rs(">=0.0.0")),h=h||d,m=m||d,i(d.semver,h.semver,n)?h=d:o(d.semver,m.semver,n)&&(m=d)}),h.operator===c||h.operator===a||(!m.operator||m.operator===c)&&s(e,m.semver))return!1;if(m.operator===a&&o(e,m.semver))return!1}return!0};var sn=Cc;const wc=sn,Sc=(e,t,r)=>wc(e,t,">",r);var Oc=Sc;const _c=sn,Tc=(e,t,r)=>_c(e,t,"<",r);var Rc=Tc;const li=se(),Ic=(e,t,r)=>(e=new li(e,r),t=new li(t,r),e.intersects(t,r));var Fc=Ic;const Nc=fr,Lc=ie;var jc=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((f,h)=>Lc(f,h,r));for(const f of o)Nc(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[f,h]of n)f===h?c.push(f):!h&&f===o[0]?c.push("*"):h?f===o[0]?c.push(`<=${h}`):c.push(`${f} - ${h}`):c.push(`>=${f}`);const a=c.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return a.length<u.length?a:t};const ci=se(),on=ur(),{ANY:Fr}=on,pt=fr,an=ie,Dc=(e,t,r={})=>{if(e===t)return!0;e=new ci(e,r),t=new ci(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=Mc(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Pc=[new on(">=0.0.0-0")],ui=[new on(">=0.0.0")],Mc=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Fr){if(t.length===1&&t[0].semver===Fr)return!0;r.includePrerelease?e=Pc:e=ui}if(t.length===1&&t[0].semver===Fr){if(r.includePrerelease)return!0;t=ui}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=fi(i,d,r):d.operator==="<"||d.operator==="<="?s=hi(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=an(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const d of n){if(i&&!pt(d,String(i),r)||s&&!pt(d,String(s),r))return null;for(const v of t)if(!pt(d,String(v),r))return!1;return!0}let c,a,u,f,h=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;h&&h.prerelease.length===1&&s.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",i){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(c=fi(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!pt(i.semver,String(d),r))return!1}if(s){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator==="<"||d.operator==="<="){if(a=hi(s,d,r),a===d&&a!==s)return!1}else if(s.operator==="<="&&!pt(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||m||h)},fi=(e,t,r)=>{if(!e)return t;const n=an(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},hi=(e,t,r)=>{if(!e)return t;const n=an(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var kc=Dc;const Nr=bt,pi=ar,Uc=X,di=Zi,Gc=at,Hc=Wa,Bc=Ja,Yc=Qa,Vc=tl,qc=il,Xc=al,Wc=ul,Kc=pl,zc=ie,Jc=vl,Zc=xl,Qc=en,eu=Cl,tu=Ol,ru=cr,nu=tn,iu=Qi,su=es,ou=rn,au=nn,lu=ts,cu=zl,uu=ur(),fu=se(),hu=fr,pu=nc,du=ac,mu=fc,gu=dc,vu=vc,yu=sn,Eu=Oc,xu=Rc,$u=Fc,Au=jc,bu=kc;var qr={parse:Gc,valid:Hc,clean:Bc,inc:Yc,diff:Vc,major:qc,minor:Xc,patch:Wc,prerelease:Kc,compare:zc,rcompare:Jc,compareLoose:Zc,compareBuild:Qc,sort:eu,rsort:tu,gt:ru,lt:nu,eq:iu,neq:su,gte:ou,lte:au,cmp:lu,coerce:cu,Comparator:uu,Range:fu,satisfies:hu,toComparators:pu,maxSatisfying:du,minSatisfying:mu,minVersion:gu,validRange:vu,outside:yu,gtr:Eu,ltr:xu,intersects:$u,simplifyRange:Au,subset:bu,SemVer:Uc,re:Nr.re,src:Nr.src,tokens:Nr.t,SEMVER_SPEC_VERSION:pi.SEMVER_SPEC_VERSION,RELEASE_TYPES:pi.RELEASE_TYPES,compareIdentifiers:di.compareIdentifiers,rcompareIdentifiers:di.rcompareIdentifiers},nt={},ln={exports:{}};const L=(...e)=>e.every(t=>t)?e.join(""):"",Y=e=>e?encodeURIComponent(e):"",Ct={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${L("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${L("#",n)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${L("/",i,"/",Y(n))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:c})=>`https://${e}/${t}/${r}/${i}/${Y(n||"master")}/${s}${L("#",c(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${L("/",n,"/",Y(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Y(n)||"master"}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${L("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${L("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:ns},Q={};Q.github=Object.assign({},Ct,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${L(e,"@")}raw.githubusercontent.com/${t}/${r}/${Y(n)||"master"}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Y(n)||"master"}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}});Q.bitbucket=Object.assign({},Ct,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Y(n)||"master"}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});Q.gitlab=Object.assign({},Ct,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${L(e,"@")}${t}/${r}/${n}.git${L("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Y(n)||"master"}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;const r=t.split("/");let n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));const i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}});Q.gist=Object.assign({},Ct,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${L("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${L("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${L("/",Y(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${L("/",Y(r))}${L("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${L("/",Y(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${L("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${L("/",Y(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${L("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${L("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${L("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Y(t)||"master"}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+ns(e)}});Q.sourcehut=Object.assign({},Ct,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:c})=>`https://${e}/${t}/${r}/${i}/${Y(n||"main")}/${s}${L("#",c(o||""))}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Y(n)||"main"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${L("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Y(n)||"main"}.tar.gz`,bugstemplate:({domain:e,user:t,project:r})=>`https://todo.sr.ht/${t}/${r}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${L("/",n,"/",Y(i))}#readme`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});const Cu=Object.keys(Q);Q.byShortcut={};Q.byDomain={};for(const e of Cu)Q.byShortcut[`${e}:`]=e,Q.byDomain[Q[e].domain]=e;function ns(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var is=Q;const wu=is;let Su=class{constructor(t,r,n,i,s,o,c={}){Object.assign(this,wu[t]),this.type=t,this.user=r,this.auth=n,this.project=i,this.committish=s,this.default=o,this.opts=c}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this._fill(this.sshtemplate,t)}_fill(t,r){if(typeof t=="function"){const n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);const i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}return null}sshurl(t){return this._fill(this.sshurltemplate,t)}browse(t,r,n){return typeof t!="string"?this._fill(this.browsetemplate,t):(typeof r!="string"&&(n=r,r=null),this._fill(this.browsefiletemplate,{...n,fragment:r,path:t}))}docs(t){return this._fill(this.docstemplate,t)}bugs(t){return this._fill(this.bugstemplate,t)}https(t){return this._fill(this.httpstemplate,t)}git(t){return this._fill(this.gittemplate,t)}shortcut(t){return this._fill(this.shortcuttemplate,t)}path(t){return this._fill(this.pathtemplate,t)}tarball(t){return this._fill(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this._fill(this.filetemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};var Ou=Su,Lr,mi;function _u(){return mi||(mi=1,Lr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Lr}var Tu=I;I.Node=Pe;I.create=I;function I(e){var t=this;if(t instanceof I||(t=new I),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}I.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};I.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};I.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};I.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Iu(this,arguments[e]);return this.length};I.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Fu(this,arguments[e]);return this.length};I.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};I.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};I.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};I.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};I.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};I.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};I.prototype.map=function(e,t){t=t||this;for(var r=new I,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};I.prototype.mapReverse=function(e,t){t=t||this;for(var r=new I,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};I.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};I.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};I.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};I.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};I.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};I.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new I;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};I.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=Ru(this,i,r[n]);return s};I.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function Ru(e,t,r){var n=t===e.head?new Pe(r,null,t,e):new Pe(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Iu(e,t){e.tail=new Pe(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Fu(e,t){e.head=new Pe(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Pe(e,t,r,n){if(!(this instanceof Pe))return new Pe(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{_u()(I)}catch{}const Nu=Tu,Ie=Symbol("max"),me=Symbol("length"),Xe=Symbol("lengthCalculator"),yt=Symbol("allowStale"),Ne=Symbol("maxAge"),pe=Symbol("dispose"),gi=Symbol("noDisposeOnSet"),U=Symbol("lruList"),re=Symbol("cache"),ss=Symbol("updateAgeOnGet"),jr=()=>1;let Lu=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Ie]=t.max||1/0;const r=t.length||jr;if(this[Xe]=typeof r!="function"?jr:r,this[yt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ne]=t.maxAge||0,this[pe]=t.dispose,this[gi]=t.noDisposeOnSet||!1,this[ss]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Ie]=t||1/0,dt(this)}get max(){return this[Ie]}set allowStale(t){this[yt]=!!t}get allowStale(){return this[yt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Ne]=t,dt(this)}get maxAge(){return this[Ne]}set lengthCalculator(t){typeof t!="function"&&(t=jr),t!==this[Xe]&&(this[Xe]=t,this[me]=0,this[U].forEach(r=>{r.length=this[Xe](r.value,r.key),this[me]+=r.length})),dt(this)}get lengthCalculator(){return this[Xe]}get length(){return this[me]}get itemCount(){return this[U].length}rforEach(t,r){r=r||this;for(let n=this[U].tail;n!==null;){const i=n.prev;vi(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[U].head;n!==null;){const i=n.next;vi(this,t,n,r),n=i}}keys(){return this[U].toArray().map(t=>t.key)}values(){return this[U].toArray().map(t=>t.value)}reset(){this[pe]&&this[U]&&this[U].length&&this[U].forEach(t=>this[pe](t.key,t.value)),this[re]=new Map,this[U]=new Nu,this[me]=0}dump(){return this[U].map(t=>Zt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[U]}set(t,r,n){if(n=n||this[Ne],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Xe](r,t);if(this[re].has(t)){if(s>this[Ie])return tt(this,this[re].get(t)),!1;const a=this[re].get(t).value;return this[pe]&&(this[gi]||this[pe](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[me]+=s-a.length,a.length=s,this.get(t),dt(this),!0}const o=new ju(t,r,s,i,n);return o.length>this[Ie]?(this[pe]&&this[pe](t,r),!1):(this[me]+=o.length,this[U].unshift(o),this[re].set(t,this[U].head),dt(this),!0)}has(t){if(!this[re].has(t))return!1;const r=this[re].get(t).value;return!Zt(this,r)}get(t){return Dr(this,t,!0)}peek(t){return Dr(this,t,!1)}pop(){const t=this[U].tail;return t?(tt(this,t),t.value):null}del(t){tt(this,this[re].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[re].forEach((t,r)=>Dr(this,r,!1))}};const Dr=(e,t,r)=>{const n=e[re].get(t);if(n){const i=n.value;if(Zt(e,i)){if(tt(e,n),!e[yt])return}else r&&(e[ss]&&(n.value.now=Date.now()),e[U].unshiftNode(n));return i.value}},Zt=(e,t)=>{if(!t||!t.maxAge&&!e[Ne])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Ne]&&r>e[Ne]},dt=e=>{if(e[me]>e[Ie])for(let t=e[U].tail;e[me]>e[Ie]&&t!==null;){const r=t.prev;tt(e,t),t=r}},tt=(e,t)=>{if(t){const r=t.value;e[pe]&&e[pe](r.key,r.value),e[me]-=r.length,e[re].delete(r.key),e[U].removeNode(t)}};let ju=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}};const vi=(e,t,r,n)=>{let i=r.value;Zt(e,i)&&(tt(e,r),e[yt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Du=Lu;const yi=Oa,Wt=is,Pu=ln.exports=Ou,Mu=Du,Pr=new Mu({max:1e3}),ku={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Uu(e){return ku[e]||e.slice(0,-1)}const Gu={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Hu=Object.keys(Wt.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);ln.exports.fromUrl=function(e,t){if(typeof e!="string")return;const r=e+JSON.stringify(t||{});return Pr.has(r)||Pr.set(r,Bu(e,t)),Pr.get(r)};function Bu(e,t){if(!e)return;const r=Vu(e)?"github:"+e:Yu(e),n=Xu(r);if(!n)return n;const i=Wt.byShortcut[n.protocol],s=Wt.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],o=i||s;if(!o)return;const c=Wt[i||s];let a=null;Gu[n.protocol]&&(n.username||n.password)&&(a=`${n.username}${n.password?":"+n.password:""}`);let u=null,f=null,h=null,m=null;try{if(i){let d=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const v=d.indexOf("@");v>-1&&(d=d.slice(v+1));const _=d.lastIndexOf("/");_>-1?(f=decodeURIComponent(d.slice(0,_)),f||(f=null),h=decodeURIComponent(d.slice(_+1))):h=decodeURIComponent(d),h.endsWith(".git")&&(h=h.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),m="shortcut"}else{if(!c.protocols.includes(n.protocol))return;const d=c.extract(n);if(!d)return;f=d.user&&decodeURIComponent(d.user),h=decodeURIComponent(d.project),u=decodeURIComponent(d.committish),m=Uu(n.protocol)}}catch(d){if(d instanceof URIError)return;throw d}return new Pu(o,f,a,h,u,m,t)}const Yu=e=>{const t=e.indexOf(":"),r=e.slice(0,t+1);if(Hu.includes(r))return e;const n=e.indexOf("@");return n>-1?n>t?`git+ssh://${e}`:e:e.indexOf("//")===t+1?e:e.slice(0,t+1)+"//"+e.slice(t+1)},Vu=e=>{const t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),c=!s||t>-1&&s.index>t,a=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,h=r>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return c&&h&&m&&d&&a&&u&&f},qu=e=>{const t=e.indexOf("@"),r=e.lastIndexOf("#");let n=e.indexOf(":"),i=e.lastIndexOf(":",r>-1?r:1/0),s;return i>t&&(s=e.slice(0,i)+"/"+e.slice(i+1),n=s.indexOf(":"),i=s.lastIndexOf(":")),n===-1&&e.indexOf("//")===-1&&(s=`git+ssh://${s}`),s},Xu=e=>{let t;try{t=new yi.URL(e)}catch{}if(t)return t;const r=qu(e);try{t=new yi.URL(r)}catch{}return t};var Wu=ln.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.encode=Je=nt.parsePackageString=void 0;const Et=or("snyk:module"),Ku=Wu;Et.log=console.error.bind(console);nt.default=os;function os(e,t,r){if(!e)throw new Error("requires string to parse into module");let n;t&&!r&&typeof t=="object"?r=t:n=t;let i=e;if(!n&&/^(?:(?:[a-z-]+)|(?:@[a-z-]+\/[a-z-]+)|(?:[a-z-]+\.[.a-z-]+:[a-z-]+))$/.test(i))return Xt(i,{name:i,version:"*"},r);n&&i.lastIndexOf("@")<1&&(Et("appending version onto string"),i+="@"+n);const s=Ei(i);if(s)return Xt(i,xi(s),r);let o=i.split("@");i.indexOf("@")===0&&(o=o.slice(1),o[0]="@"+o[0]);const c=o[1]&&Ei(o[1]);if(c)return Xt(i,xi(c),r);o.length===1&&o.push("*");const a={name:o[0],version:o.slice(1).join("@")};return Xt(i,a,r)}var Je=nt.parsePackageString=os;function Ei(e){if(e.slice(-1)==="/"&&(e=e.slice(0,-1)),e.toLowerCase().indexOf("://github.com/")!==-1&&e.indexOf("http")===0){const r=e.replace(/https?:\/\/github.com\//,"").split("/");e=r.shift()+"/"+r.shift(),r.length&&(e+="#"+r.pop())}return Ku.fromUrl(e)}function xi(e){if(!e.project||!e.user){const r=new Error("not supported: failed to fully parse");throw r.code=501,r}const t={name:e.project,version:e.user+"/"+e.project};return e.committish&&(t.version+="#"+e.committish),t}function zu(e){return e[0]+encodeURIComponent(e.slice(1))}nt.encode=zu;function Xt(e,t,r){if(r||(r={}),r.packageManager==="maven"){if(e.indexOf(":")===-1)throw new Error("invalid Maven package name: "+e);return t}return(t.version.match(/^(https?:)|(git[:+])/i)||t.name.indexOf("://")!==-1)&&(Et("not supported %s@%s (ext)",t.name,t.version),r.loose?delete t.version:Et("external module: "+Ju(t))),(t.version==="latest"||!t.version)&&(t.v