snyk 1.1294.0 → 1.1294.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,38 +6,38 @@ exports.modules = {
6
6
  /***/ 13284:
7
7
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
8
 
9
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const wa=__webpack_require__(57310),Ee=__webpack_require__(57147),Jr=__webpack_require__(71017),Ca=__webpack_require__(73837);function Sa(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 Q=Sa(Jr);var kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Br={exports:{}},Or,qn;function Oa(){if(qn)return Or;qn=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;Or=function(u,f){f=f||{};var m=typeof u;if(m==="string"&&u.length>0)return o(u);if(m==="number"&&isFinite(u))return f.long?a(u):c(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(f){var m=parseFloat(f[1]),d=(f[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(u){var f=Math.abs(u);return f>=n?Math.round(u/n)+"d":f>=r?Math.round(u/r)+"h":f>=t?Math.round(u/t)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function a(u){var f=Math.abs(u);return f>=n?h(u,f,n,"day"):f>=r?h(u,f,r,"hour"):f>=t?h(u,f,t,"minute"):f>=e?h(u,f,e,"second"):u+" ms"}function h(u,f,m,d){var v=f>=m*1.5;return Math.round(u/m)+" "+d+(v?"s":"")}return Or}function _a(e){r.debug=r,r.default=r,r.coerce=a,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Oa(),r.destroy=h,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let f=0;for(let m=0;m<u.length;m++)f=(f<<5)-f+u.charCodeAt(m),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(u){let f,m=null,d,v;function _(...x){if(!_.enabled)return;const k=_,L=Number(new Date),Z=L-(f||L);k.diff=Z,k.prev=f,k.curr=L,f=L,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let oe=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(ae,Me)=>{if(ae==="%%")return"%";oe++;const Ce=r.formatters[Me];if(typeof Ce=="function"){const ke=x[oe];ae=Ce.call(k,ke),x.splice(oe,1),oe--}return ae}),r.formatArgs.call(k,x),(k.log||r.log).apply(k,x)}return _.namespace=u,_.useColors=r.useColors(),_.color=r.selectColor(u),_.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(u)),v),set:x=>{m=x}}),typeof r.init=="function"&&r.init(_),_}function n(u,f){const m=r(this.namespace+(typeof f>"u"?":":f)+u);return m.log=this.log,m}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f;const m=(typeof u=="string"?u:"").split(/[\s,]+/),d=m.length;for(f=0;f<d;f++)m[f]&&(u=m[f].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function s(){const u=[...r.names.map(c),...r.skips.map(c).map(f=>"-"+f)].join(",");return r.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let f,m;for(f=0,m=r.skips.length;f<m;f++)if(r.skips[f].test(u))return!1;for(f=0,m=r.names.length;f<m;f++)if(r.names[f].test(u))return!0;return!1}function c(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function a(u){return u instanceof Error?u.stack||u.message:u}function h(){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 Ta=_a;(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(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$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 h="color: "+this.color;a.splice(1,0,h,"color: inherit");let u=0,f=0;a[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(f=u))}),a.splice(f,0,h)}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=Ta(t);const{formatters:c}=e.exports;c.j=function(a){try{return JSON.stringify(a)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}})(Br,Br.exports);var sr=Br.exports;const we=ir(sr);var Yr={exports:{}};const Ra="2.0.0",Ki=256,Ia=Number.MAX_SAFE_INTEGER||9007199254740991,Fa=16,Na=Ki-6,La=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var or={MAX_LENGTH:Ki,MAX_SAFE_COMPONENT_LENGTH:Fa,MAX_SAFE_BUILD_LENGTH:Na,MAX_SAFE_INTEGER:Ia,RELEASE_TYPES:La,SEMVER_SPEC_VERSION:Ra,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const ja=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var ar=ja;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=or,s=ar;t=e.exports={};const o=t.re=[],c=t.safeRe=[],a=t.src=[],h=t.t={};let u=0;const f="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[f,n]],d=_=>{for(const[x,k]of m)_=_.split(`${x}*`).join(`${x}{0,${k}}`).split(`${x}+`).join(`${x}{1,${k}}`);return _},v=(_,x,k)=>{const L=d(x),Z=u++;s(_,Z,x),h[_]=Z,a[Z]=x,o[Z]=new RegExp(x,k?"g":void 0),c[Z]=new RegExp(L,k?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),v("MAINVERSION",`(${a[h.NUMERICIDENTIFIER]})\\.(${a[h.NUMERICIDENTIFIER]})\\.(${a[h.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[h.NUMERICIDENTIFIERLOOSE]})\\.(${a[h.NUMERICIDENTIFIERLOOSE]})\\.(${a[h.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[h.NUMERICIDENTIFIER]}|${a[h.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[h.NUMERICIDENTIFIERLOOSE]}|${a[h.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${a[h.PRERELEASEIDENTIFIER]}(?:\\.${a[h.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[h.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${f}+`),v("BUILD",`(?:\\+(${a[h.BUILDIDENTIFIER]}(?:\\.${a[h.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[h.MAINVERSION]}${a[h.PRERELEASE]}?${a[h.BUILD]}?`),v("FULL",`^${a[h.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[h.MAINVERSIONLOOSE]}${a[h.PRERELEASELOOSE]}?${a[h.BUILD]}?`),v("LOOSE",`^${a[h.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[h.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[h.XRANGEIDENTIFIER]})(?:\\.(${a[h.XRANGEIDENTIFIER]})(?:\\.(${a[h.XRANGEIDENTIFIER]})(?:${a[h.PRERELEASE]})?${a[h.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[h.XRANGEIDENTIFIERLOOSE]})(?:${a[h.PRERELEASELOOSE]})?${a[h.BUILD]}?)?)?`),v("XRANGE",`^${a[h.GTLT]}\\s*${a[h.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[h.GTLT]}\\s*${a[h.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${a[h.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[h.COERCEPLAIN]+`(?:${a[h.PRERELEASE]})?(?:${a[h.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[h.COERCE],!0),v("COERCERTLFULL",a[h.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[h.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[h.LONETILDE]}${a[h.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[h.LONETILDE]}${a[h.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[h.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[h.LONECARET]}${a[h.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[h.LONECARET]}${a[h.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[h.GTLT]}\\s*(${a[h.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[h.GTLT]}\\s*(${a[h.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[h.GTLT]}\\s*(${a[h.LOOSEPLAIN]}|${a[h.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[h.XRANGEPLAIN]})\\s+-\\s+(${a[h.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[h.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Yr,Yr.exports);var $t=Yr.exports;const Da=Object.freeze({loose:!0}),Pa=Object.freeze({}),Ma=e=>e?typeof e!="object"?Da:e:Pa;var Zr=Ma;const Xn=/^[0-9]+$/,zi=(e,t)=>{const r=Xn.test(e),n=Xn.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},ka=(e,t)=>zi(t,e);var Ji={compareIdentifiers:zi,rcompareIdentifiers:ka};const Ut=ar,{MAX_LENGTH:Wn,MAX_SAFE_INTEGER:Gt}=or,{safeRe:Kn,t:zn}=$t,Ua=Zr,{compareIdentifiers:Ye}=Ji;let Ga=class le{constructor(t,r){if(r=Ua(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>Wn)throw new TypeError(`version is longer than ${Wn} characters`);Ut("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Kn[zn.LOOSE]:Kn[zn.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>Gt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Gt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Gt||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<Gt)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(Ut("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)),Ye(this.major,t.major)||Ye(this.minor,t.minor)||Ye(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(Ut("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 Ye(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(Ut("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 Ye(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]),Ye(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=Ga;const Jn=X,Ha=(e,t,r=!1)=>{if(e instanceof Jn)return e;try{return new Jn(e,t)}catch(n){if(!r)return null;throw n}};var ot=Ha;const Ba=ot,Ya=(e,t)=>{const r=Ba(e,t);return r?r.version:null};var Va=Ya;const qa=ot,Xa=(e,t)=>{const r=qa(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Wa=Xa;const Zn=X,Ka=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Zn(e instanceof Zn?e.version:e,r).inc(t,n,i).version}catch{return null}};var za=Ka;const Qn=ot,Ja=(e,t)=>{const r=Qn(e,null,!0),n=Qn(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 u=a?"pre":"";return r.major!==n.major?u+"major":r.minor!==n.minor?u+"minor":r.patch!==n.patch?u+"patch":"prerelease"};var Za=Ja;const Qa=X,el=(e,t)=>new Qa(e,t).major;var tl=el;const rl=X,nl=(e,t)=>new rl(e,t).minor;var il=nl;const sl=X,ol=(e,t)=>new sl(e,t).patch;var al=ol;const ll=ot,cl=(e,t)=>{const r=ll(e,t);return r&&r.prerelease.length?r.prerelease:null};var ul=cl;const ei=X,fl=(e,t,r)=>new ei(e,r).compare(new ei(t,r));var ie=fl;const hl=ie,pl=(e,t,r)=>hl(t,e,r);var dl=pl;const ml=ie,gl=(e,t)=>ml(e,t,!0);var vl=gl;const ti=X,yl=(e,t,r)=>{const n=new ti(e,r),i=new ti(t,r);return n.compare(i)||n.compareBuild(i)};var Qr=yl;const El=Qr,xl=(e,t)=>e.sort((r,n)=>El(r,n,t));var $l=xl;const Al=Qr,bl=(e,t)=>e.sort((r,n)=>Al(n,r,t));var wl=bl;const Cl=ie,Sl=(e,t,r)=>Cl(e,t,r)>0;var lr=Sl;const Ol=ie,_l=(e,t,r)=>Ol(e,t,r)<0;var en=_l;const Tl=ie,Rl=(e,t,r)=>Tl(e,t,r)===0;var Zi=Rl;const Il=ie,Fl=(e,t,r)=>Il(e,t,r)!==0;var Qi=Fl;const Nl=ie,Ll=(e,t,r)=>Nl(e,t,r)>=0;var tn=Ll;const jl=ie,Dl=(e,t,r)=>jl(e,t,r)<=0;var rn=Dl;const Pl=Zi,Ml=Qi,kl=lr,Ul=tn,Gl=en,Hl=rn,Bl=(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 Pl(e,r,n);case"!=":return Ml(e,r,n);case">":return kl(e,r,n);case">=":return Ul(e,r,n);case"<":return Gl(e,r,n);case"<=":return Hl(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var es=Bl;const Yl=X,Vl=ot,{safeRe:Ht,t:Bt}=$t,ql=(e,t)=>{if(e instanceof Yl)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?Ht[Bt.COERCEFULL]:Ht[Bt.COERCE]);else{const a=t.includePrerelease?Ht[Bt.COERCERTLFULL]:Ht[Bt.COERCERTL];let h;for(;(h=a.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||h.index+h[0].length!==r.index+r[0].length)&&(r=h),a.lastIndex=h.index+h[1].length+h[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 Vl(`${n}.${i}.${s}${o}${c}`,t)};var Xl=ql;let Wl=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 Kl=Wl,_r,ri;function se(){if(ri)return _r;ri=1;class e{constructor(y,O){if(O=n(O),y instanceof e)return y.loose===!!O.loose&&y.includePrerelease===!!O.includePrerelease?y:new e(y.raw,O);if(y instanceof i)return this.raw=y.value,this.set=[[y]],this.format(),this;if(this.options=O,this.loose=!!O.loose,this.includePrerelease=!!O.includePrerelease,this.raw=y.trim().split(/\s+/).join(" "),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){const C=this.set[0];if(this.set=this.set.filter(S=>!v(S[0])),this.set.length===0)this.set=[C];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&_(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(y=>y.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(y){const C=((this.options.includePrerelease&&m)|(this.options.loose&&d))+":"+y,S=r.get(C);if(S)return S;const A=this.options.loose,T=A?c[a.HYPHENRANGELOOSE]:c[a.HYPHENRANGE];y=y.replace(T,It(this.options.includePrerelease)),s("hyphen replace",y),y=y.replace(c[a.COMPARATORTRIM],h),s("comparator trim",y),y=y.replace(c[a.TILDETRIM],u),s("tilde trim",y),y=y.replace(c[a.CARETTRIM],f),s("caret trim",y);let b=y.split(" ").map(P=>k(P,this.options)).join(" ").split(/\s+/).map(P=>Rt(P,this.options));A&&(b=b.filter(P=>(s("loose invalid filter",P,this.options),!!P.match(c[a.COMPARATORLOOSE])))),s("range list",b);const R=new Map,j=b.map(P=>new i(P,this.options));for(const P of j){if(v(P))return[P];R.set(P.value,P)}R.size>1&&R.has("")&&R.delete("");const D=[...R.values()];return r.set(C,D),D}intersects(y,O){if(!(y instanceof e))throw new TypeError("a Range is required");return this.set.some(C=>x(C,O)&&y.set.some(S=>x(S,O)&&C.every(A=>S.every(T=>A.intersects(T,O)))))}test(y){if(!y)return!1;if(typeof y=="string")try{y=new o(y,this.options)}catch{return!1}for(let O=0;O<this.set.length;O++)if(Ft(this.set[O],y,this.options))return!0;return!1}}_r=e;const t=Kl,r=new t,n=Zr,i=cr(),s=ar,o=X,{safeRe:c,t:a,comparatorTrimReplace:h,tildeTrimReplace:u,caretTrimReplace:f}=$t,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:d}=or,v=E=>E.value==="<0.0.0-0",_=E=>E.value==="",x=(E,y)=>{let O=!0;const C=E.slice();let S=C.pop();for(;O&&C.length;)O=C.every(A=>S.intersects(A,y)),S=C.pop();return O},k=(E,y)=>(s("comp",E,y),E=ct(E,y),s("caret",E),E=Z(E,y),s("tildes",E),E=Me(E,y),s("xrange",E),E=ke(E,y),s("stars",E),E),L=E=>!E||E.toLowerCase()==="x"||E==="*",Z=(E,y)=>E.trim().split(/\s+/).map(O=>oe(O,y)).join(" "),oe=(E,y)=>{const O=y.loose?c[a.TILDELOOSE]:c[a.TILDE];return E.replace(O,(C,S,A,T,b)=>{s("tilde",E,C,S,A,T,b);let R;return L(S)?R="":L(A)?R=`>=${S}.0.0 <${+S+1}.0.0-0`:L(T)?R=`>=${S}.${A}.0 <${S}.${+A+1}.0-0`:b?(s("replaceTilde pr",b),R=`>=${S}.${A}.${T}-${b} <${S}.${+A+1}.0-0`):R=`>=${S}.${A}.${T} <${S}.${+A+1}.0-0`,s("tilde return",R),R})},ct=(E,y)=>E.trim().split(/\s+/).map(O=>ae(O,y)).join(" "),ae=(E,y)=>{s("caret",E,y);const O=y.loose?c[a.CARETLOOSE]:c[a.CARET],C=y.includePrerelease?"-0":"";return E.replace(O,(S,A,T,b,R)=>{s("caret",E,S,A,T,b,R);let j;return L(A)?j="":L(T)?j=`>=${A}.0.0${C} <${+A+1}.0.0-0`:L(b)?A==="0"?j=`>=${A}.${T}.0${C} <${A}.${+T+1}.0-0`:j=`>=${A}.${T}.0${C} <${+A+1}.0.0-0`:R?(s("replaceCaret pr",R),A==="0"?T==="0"?j=`>=${A}.${T}.${b}-${R} <${A}.${T}.${+b+1}-0`:j=`>=${A}.${T}.${b}-${R} <${A}.${+T+1}.0-0`:j=`>=${A}.${T}.${b}-${R} <${+A+1}.0.0-0`):(s("no pr"),A==="0"?T==="0"?j=`>=${A}.${T}.${b}${C} <${A}.${T}.${+b+1}-0`:j=`>=${A}.${T}.${b}${C} <${A}.${+T+1}.0-0`:j=`>=${A}.${T}.${b} <${+A+1}.0.0-0`),s("caret return",j),j})},Me=(E,y)=>(s("replaceXRanges",E,y),E.split(/\s+/).map(O=>Ce(O,y)).join(" ")),Ce=(E,y)=>{E=E.trim();const O=y.loose?c[a.XRANGELOOSE]:c[a.XRANGE];return E.replace(O,(C,S,A,T,b,R)=>{s("xRange",E,C,S,A,T,b,R);const j=L(A),D=j||L(T),P=D||L(b),xe=P;return S==="="&&xe&&(S=""),R=y.includePrerelease?"-0":"",j?S===">"||S==="<"?C="<0.0.0-0":C="*":S&&xe?(D&&(T=0),b=0,S===">"?(S=">=",D?(A=+A+1,T=0,b=0):(T=+T+1,b=0)):S==="<="&&(S="<",D?A=+A+1:T=+T+1),S==="<"&&(R="-0"),C=`${S+A}.${T}.${b}${R}`):D?C=`>=${A}.0.0${R} <${+A+1}.0.0-0`:P&&(C=`>=${A}.${T}.0${R} <${A}.${+T+1}.0-0`),s("xRange return",C),C})},ke=(E,y)=>(s("replaceStars",E,y),E.trim().replace(c[a.STAR],"")),Rt=(E,y)=>(s("replaceGTE0",E,y),E.trim().replace(c[y.includePrerelease?a.GTE0PRE:a.GTE0],"")),It=E=>(y,O,C,S,A,T,b,R,j,D,P,xe)=>(L(C)?O="":L(S)?O=`>=${C}.0.0${E?"-0":""}`:L(A)?O=`>=${C}.${S}.0${E?"-0":""}`:T?O=`>=${O}`:O=`>=${O}${E?"-0":""}`,L(j)?R="":L(D)?R=`<${+j+1}.0.0-0`:L(P)?R=`<${j}.${+D+1}.0-0`:xe?R=`<=${j}.${D}.${P}-${xe}`:E?R=`<${j}.${D}.${+P+1}-0`:R=`<=${R}`,`${O} ${R}`.trim()),Ft=(E,y,O)=>{for(let C=0;C<E.length;C++)if(!E[C].test(y))return!1;if(y.prerelease.length&&!O.includePrerelease){for(let C=0;C<E.length;C++)if(s(E[C].semver),E[C].semver!==i.ANY&&E[C].semver.prerelease.length>0){const S=E[C].semver;if(S.major===y.major&&S.minor===y.minor&&S.patch===y.patch)return!0}return!1}return!0};return _r}var Tr,ni;function cr(){if(ni)return Tr;ni=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,f){if(f=r(f),u instanceof t){if(u.loose===!!f.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,f),this.options=f,this.loose=!!f.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const f=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],m=u.match(f);if(!m)throw new TypeError(`Invalid comparator: ${u}`);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(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new c(u,this.options)}catch{return!1}return s(u,this.operator,this.semver,this.options)}intersects(u,f){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(u.value,f).test(this.value):u.operator===""?u.value===""?!0:new a(this.value,f).test(u.semver):(f=r(f),f.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||s(this.semver,"<",u.semver,f)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||s(this.semver,">",u.semver,f)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Tr=t;const r=Zr,{safeRe:n,t:i}=$t,s=es,o=ar,c=X,a=se();return Tr}const zl=se(),Jl=(e,t,r)=>{try{t=new zl(t,r)}catch{return!1}return t.test(e)};var ur=Jl;const Zl=se(),Ql=(e,t)=>new Zl(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var ec=Ql;const tc=X,rc=se(),nc=(e,t,r)=>{let n=null,i=null,s=null;try{s=new rc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new tc(n,r))}),n};var ic=nc;const sc=X,oc=se(),ac=(e,t,r)=>{let n=null,i=null,s=null;try{s=new oc(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new sc(n,r))}),n};var lc=ac;const Rr=X,cc=se(),ii=lr,uc=(e,t)=>{e=new cc(e,t);let r=new Rr("0.0.0");if(e.test(r)||(r=new Rr("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 Rr(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||ii(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||ii(r,s))&&(r=s)}return r&&e.test(r)?r:null};var fc=uc;const hc=se(),pc=(e,t)=>{try{return new hc(e,t).range||"*"}catch{return null}};var dc=pc;const mc=X,ts=cr(),{ANY:gc}=ts,vc=se(),yc=ur,si=lr,oi=en,Ec=rn,xc=tn,$c=(e,t,r,n)=>{e=new mc(e,n),t=new vc(t,n);let i,s,o,c,a;switch(r){case">":i=si,s=Ec,o=oi,c=">",a=">=";break;case"<":i=oi,s=xc,o=si,c="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yc(e,t,n))return!1;for(let h=0;h<t.set.length;++h){const u=t.set[h];let f=null,m=null;if(u.forEach(d=>{d.semver===gc&&(d=new ts(">=0.0.0")),f=f||d,m=m||d,i(d.semver,f.semver,n)?f=d:o(d.semver,m.semver,n)&&(m=d)}),f.operator===c||f.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 nn=$c;const Ac=nn,bc=(e,t,r)=>Ac(e,t,">",r);var wc=bc;const Cc=nn,Sc=(e,t,r)=>Cc(e,t,"<",r);var Oc=Sc;const ai=se(),_c=(e,t,r)=>(e=new ai(e,r),t=new ai(t,r),e.intersects(t,r));var Tc=_c;const Rc=ur,Ic=ie;var Fc=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((u,f)=>Ic(u,f,r));for(const u of o)Rc(u,t,r)?(s=u,i||(i=u)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const c=[];for(const[u,f]of n)u===f?c.push(u):!f&&u===o[0]?c.push("*"):f?u===o[0]?c.push(`<=${f}`):c.push(`${u} - ${f}`):c.push(`>=${u}`);const a=c.join(" || "),h=typeof t.raw=="string"?t.raw:String(t);return a.length<h.length?a:t};const li=se(),sn=cr(),{ANY:Ir}=sn,ht=ur,on=ie,Nc=(e,t,r={})=>{if(e===t)return!0;e=new li(e,r),t=new li(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=jc(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Lc=[new sn(">=0.0.0-0")],ci=[new sn(">=0.0.0")],jc=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Ir){if(t.length===1&&t[0].semver===Ir)return!0;r.includePrerelease?e=Lc:e=ci}if(t.length===1&&t[0].semver===Ir){if(r.includePrerelease)return!0;t=ci}const n=new Set;let i,s;for(const d of e)d.operator===">"||d.operator===">="?i=ui(i,d,r):d.operator==="<"||d.operator==="<="?s=fi(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=on(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&&!ht(d,String(i),r)||s&&!ht(d,String(s),r))return null;for(const v of t)if(!ht(d,String(v),r))return!1;return!0}let c,a,h,u,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(const d of t){if(u=u||d.operator===">"||d.operator===">=",h=h||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=ui(i,d,r),c===d&&c!==i)return!1}else if(i.operator===">="&&!ht(i.semver,String(d),r))return!1}if(s){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(a=fi(s,d,r),a===d&&a!==s)return!1}else if(s.operator==="<="&&!ht(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&h&&!s&&o!==0||s&&u&&!i&&o!==0||m||f)},ui=(e,t,r)=>{if(!e)return t;const n=on(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},fi=(e,t,r)=>{if(!e)return t;const n=on(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Dc=Nc;const Fr=$t,hi=or,Pc=X,pi=Ji,Mc=ot,kc=Va,Uc=Wa,Gc=za,Hc=Za,Bc=tl,Yc=il,Vc=al,qc=ul,Xc=ie,Wc=dl,Kc=vl,zc=Qr,Jc=$l,Zc=wl,Qc=lr,eu=en,tu=Zi,ru=Qi,nu=tn,iu=rn,su=es,ou=Xl,au=cr(),lu=se(),cu=ur,uu=ec,fu=ic,hu=lc,pu=fc,du=dc,mu=nn,gu=wc,vu=Oc,yu=Tc,Eu=Fc,xu=Dc;var Vr={parse:Mc,valid:kc,clean:Uc,inc:Gc,diff:Hc,major:Bc,minor:Yc,patch:Vc,prerelease:qc,compare:Xc,rcompare:Wc,compareLoose:Kc,compareBuild:zc,sort:Jc,rsort:Zc,gt:Qc,lt:eu,eq:tu,neq:ru,gte:nu,lte:iu,cmp:su,coerce:ou,Comparator:au,Range:lu,satisfies:cu,toComparators:uu,maxSatisfying:fu,minSatisfying:hu,minVersion:pu,validRange:du,outside:mu,gtr:gu,ltr:vu,intersects:yu,simplifyRange:Eu,subset:xu,SemVer:Pc,re:Fr.re,src:Fr.src,tokens:Fr.t,SEMVER_SPEC_VERSION:hi.SEMVER_SPEC_VERSION,RELEASE_TYPES:hi.RELEASE_TYPES,compareIdentifiers:pi.compareIdentifiers,rcompareIdentifiers:pi.rcompareIdentifiers},rt={},an={exports:{}};const N=(...e)=>e.every(t=>t)?e.join(""):"",V=e=>e?encodeURIComponent(e):"",At={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${N("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${N("#",n)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${N("/",i,"/",V(n))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:c})=>`https://${e}/${t}/${r}/${i}/${V(n||"master")}/${s}${N("#",c(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${N("/",n,"/",V(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${V(n)||"master"}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${N("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${N("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:rs},ee={};ee.github=Object.assign({},At,{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://${N(e,"@")}raw.githubusercontent.com/${t}/${r}/${V(n)||"master"}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${V(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}}});ee.bitbucket=Object.assign({},At,{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/${V(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)}}});ee.gitlab=Object.assign({},At,{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://${N(e,"@")}${t}/${r}/${n}.git${N("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${V(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)}}});ee.gist=Object.assign({},At,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${N("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${N("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",V(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${N("/",V(r))}${N("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${N("/",V(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${N("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${N("/",V(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${N("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${N("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${N("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${V(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-"+rs(e)}});ee.sourcehut=Object.assign({},At,{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}/${V(n||"main")}/${s}${N("#",c(o||""))}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${V(n)||"main"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${N("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${V(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}${N("/",n,"/",V(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 $u=Object.keys(ee);ee.byShortcut={};ee.byDomain={};for(const e of $u)ee.byShortcut[`${e}:`]=e,ee.byDomain[ee[e].domain]=e;function rs(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var ns=ee;const Au=ns;let bu=class{constructor(t,r,n,i,s,o,c={}){Object.assign(this,Au[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 wu=bu,Nr,di;function Cu(){return di||(di=1,Nr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Nr}var Su=I;I.Node=je;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++)_u(this,arguments[e]);return this.length};I.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Tu(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=Ou(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 Ou(e,t,r){var n=t===e.head?new je(r,null,t,e):new je(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function _u(e,t){e.tail=new je(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Tu(e,t){e.head=new je(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function je(e,t,r,n){if(!(this instanceof je))return new je(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{Cu()(I)}catch{}const Ru=Su,Te=Symbol("max"),me=Symbol("length"),Ve=Symbol("lengthCalculator"),vt=Symbol("allowStale"),Ie=Symbol("maxAge"),pe=Symbol("dispose"),mi=Symbol("noDisposeOnSet"),G=Symbol("lruList"),re=Symbol("cache"),is=Symbol("updateAgeOnGet"),Lr=()=>1;let Iu=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[Te]=t.max||1/0;const r=t.length||Lr;if(this[Ve]=typeof r!="function"?Lr:r,this[vt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ie]=t.maxAge||0,this[pe]=t.dispose,this[mi]=t.noDisposeOnSet||!1,this[is]=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[Te]=t||1/0,pt(this)}get max(){return this[Te]}set allowStale(t){this[vt]=!!t}get allowStale(){return this[vt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Ie]=t,pt(this)}get maxAge(){return this[Ie]}set lengthCalculator(t){typeof t!="function"&&(t=Lr),t!==this[Ve]&&(this[Ve]=t,this[me]=0,this[G].forEach(r=>{r.length=this[Ve](r.value,r.key),this[me]+=r.length})),pt(this)}get lengthCalculator(){return this[Ve]}get length(){return this[me]}get itemCount(){return this[G].length}rforEach(t,r){r=r||this;for(let n=this[G].tail;n!==null;){const i=n.prev;gi(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[G].head;n!==null;){const i=n.next;gi(this,t,n,r),n=i}}keys(){return this[G].toArray().map(t=>t.key)}values(){return this[G].toArray().map(t=>t.value)}reset(){this[pe]&&this[G]&&this[G].length&&this[G].forEach(t=>this[pe](t.key,t.value)),this[re]=new Map,this[G]=new Ru,this[me]=0}dump(){return this[G].map(t=>Jt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[G]}set(t,r,n){if(n=n||this[Ie],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Ve](r,t);if(this[re].has(t)){if(s>this[Te])return et(this,this[re].get(t)),!1;const a=this[re].get(t).value;return this[pe]&&(this[mi]||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),pt(this),!0}const o=new Fu(t,r,s,i,n);return o.length>this[Te]?(this[pe]&&this[pe](t,r),!1):(this[me]+=o.length,this[G].unshift(o),this[re].set(t,this[G].head),pt(this),!0)}has(t){if(!this[re].has(t))return!1;const r=this[re].get(t).value;return!Jt(this,r)}get(t){return jr(this,t,!0)}peek(t){return jr(this,t,!1)}pop(){const t=this[G].tail;return t?(et(this,t),t.value):null}del(t){et(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)=>jr(this,r,!1))}};const jr=(e,t,r)=>{const n=e[re].get(t);if(n){const i=n.value;if(Jt(e,i)){if(et(e,n),!e[vt])return}else r&&(e[is]&&(n.value.now=Date.now()),e[G].unshiftNode(n));return i.value}},Jt=(e,t)=>{if(!t||!t.maxAge&&!e[Ie])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Ie]&&r>e[Ie]},pt=e=>{if(e[me]>e[Te])for(let t=e[G].tail;e[me]>e[Te]&&t!==null;){const r=t.prev;et(e,t),t=r}},et=(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[G].removeNode(t)}};let Fu=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}};const gi=(e,t,r,n)=>{let i=r.value;Jt(e,i)&&(et(e,r),e[vt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Nu=Iu;const vi=wa,qt=ns,Lu=an.exports=wu,ju=Nu,Dr=new ju({max:1e3}),Du={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Pu(e){return Du[e]||e.slice(0,-1)}const Mu={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},ku=Object.keys(qt.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);an.exports.fromUrl=function(e,t){if(typeof e!="string")return;const r=e+JSON.stringify(t||{});return Dr.has(r)||Dr.set(r,Uu(e,t)),Dr.get(r)};function Uu(e,t){if(!e)return;const r=Hu(e)?"github:"+e:Gu(e),n=Yu(r);if(!n)return n;const i=qt.byShortcut[n.protocol],s=qt.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],o=i||s;if(!o)return;const c=qt[i||s];let a=null;Mu[n.protocol]&&(n.username||n.password)&&(a=`${n.username}${n.password?":"+n.password:""}`);let h=null,u=null,f=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?(u=decodeURIComponent(d.slice(0,_)),u||(u=null),f=decodeURIComponent(d.slice(_+1))):f=decodeURIComponent(d),f.endsWith(".git")&&(f=f.slice(0,-4)),n.hash&&(h=decodeURIComponent(n.hash.slice(1))),m="shortcut"}else{if(!c.protocols.includes(n.protocol))return;const d=c.extract(n);if(!d)return;u=d.user&&decodeURIComponent(d.user),f=decodeURIComponent(d.project),h=decodeURIComponent(d.committish),m=Pu(n.protocol)}}catch(d){if(d instanceof URIError)return;throw d}return new Lu(o,u,a,f,h,m,t)}const Gu=e=>{const t=e.indexOf(":"),r=e.slice(0,t+1);if(ku.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)},Hu=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,h=i===-1||t>-1&&i>t,u=n===-1||t>-1&&n>t,f=r>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return c&&f&&m&&d&&a&&h&&u},Bu=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},Yu=e=>{let t;try{t=new vi.URL(e)}catch{}if(t)return t;const r=Bu(e);try{t=new vi.URL(r)}catch{}return t};var Vu=an.exports;Object.defineProperty(rt,"__esModule",{value:!0});rt.encode=ze=rt.parsePackageString=void 0;const Xt=sr("snyk:module"),qu=Vu;rt.default=ss;function ss(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 Yt(i,{name:i,version:"*"},r);n&&i.lastIndexOf("@")<1&&(Xt("appending version onto string"),i+="@"+n);const s=yi(i);if(s)return Yt(i,Ei(s),r);let o=i.split("@");i.indexOf("@")===0&&(o=o.slice(1),o[0]="@"+o[0]);const c=o[1]&&yi(o[1]);if(c)return Yt(i,Ei(c),r);o.length===1&&o.push("*");const a={name:o[0],version:o.slice(1).join("@")};return Yt(i,a,r)}var ze=rt.parsePackageString=ss;function yi(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 qu.fromUrl(e)}function Ei(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 Xu(e){return e[0]+encodeURIComponent(e.slice(1))}rt.encode=Xu;function Yt(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)&&(Xt("not supported %s@%s (ext)",t.name,t.version),r.loose?delete t.version:Xt("external module: "+Wu(t))),(t.version==="latest"||!t.version)&&(t.version="*"),Xt('%s => { name: "%s", version: "%s" }',e,t.name,t.version),t}function Wu(e){return e.name+"@"+e.version}const Ku=we("snyk:policy"),J=we("snyk:protect");function zu(e,t){const r=t.split(" > ");J("checking path: %s vs. %s",t,e);let n=0;const i=r.every((s,o)=>{J("for %s...(against %s)",s,e[o+n]);let c=e[o+n]?ze(e[o+n]):{};if(s==="*"){if(J("star rule"),!r[o+1])return!0;const u=ze(r[o+1]);if(u){J("next",u);for(let f=o;o<r.length;f++){if(!e[o+n])return!1;if(c=ze(e[o+n]),J("fromPkg",c,u),u.name===c.name){n--,J("next has a match");break}J("pushing offset"),n++}}return!0}if(J("next test",s,c),s===e[o+n])return J("exact match"),!0;const a=ze(s);let h=a.version;if(h==="*"&&(h=c.version),a.name===c.name){if(c.version===h)return J("exact version match"),!0;if(Vr.valid(c.version)&&Vr.satisfies(c.version,h))return J("semver match"),!0}return J("failed match"),!1});return J("result of path test %s: %s",t,i),i}function bt(e,t,r="packageManager"){return Object.keys(t).some(n=>Ju(e,n,r))}function Ju(e,t,r){if(r==="exact")return Zu(e,t);let n=!1;const i=e.from.slice(1);return t.indexOf(i.join(" > "))!==-1?(Ku("%s exact match from %s",e.id,i),n=!0):zu(i,t)&&(n=!0),n}function Zu(e,t){const r=t.split(" > ");if(r[r.length-1]==="*"){const n=e.from.length-r.length;for(let i=0;i<n;i++)r.push("*")}if(r.length!==e.from.length)return!1;for(let n=0;n<r.length;n++)if(r[n]!==e.from[n]&&r[n]!=="*")return!1;return!0}function Qu(e,t){let r=null;if(!e||!t)return r;for(const n of["ignore","patch"])Object.keys(e[n]||[]).forEach(i=>{if(i===t.id){for(const s of e[n][i])if(bt(t,s)){const o=Object.keys(s).pop();r={type:n,id:t.id,rule:t.from,...s[o]}}}});return r}var M={},wt={},te={};function os(e){return typeof e>"u"||e===null}function ef(e){return typeof e=="object"&&e!==null}function tf(e){return Array.isArray(e)?e:os(e)?[]:[e]}function rf(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function nf(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function sf(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}te.isNothing=os;te.isObject=ef;te.toArray=tf;te.repeat=nf;te.isNegativeZero=sf;te.extend=rf;function Et(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Et.prototype=Object.create(Error.prototype);Et.prototype.constructor=Et;Et.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};var Ct=Et,xi=te;function ln(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}ln.prototype.getSnippet=function(t,r){var n,i,s,o,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
9
+ 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.version="*"),Et('%s => { name: "%s", version: "%s" }',e,t.name,t.version),t}function Ju(e){return e.name+"@"+e.version}const as=Ce("snyk:policy");as.log=console.error.bind(console);const z=Ce("snyk:protect");z.log=console.error.bind(console);function Zu(e,t){const r=t.split(" > ");z("checking path: %s vs. %s",t,e);let n=0;const i=r.every((s,o)=>{z("for %s...(against %s)",s,e[o+n]);let c=e[o+n]?Je(e[o+n]):{};if(s==="*"){if(z("star rule"),!r[o+1])return!0;const f=Je(r[o+1]);if(f){z("next",f);for(let h=o;o<r.length;h++){if(!e[o+n])return!1;if(c=Je(e[o+n]),z("fromPkg",c,f),f.name===c.name){n--,z("next has a match");break}z("pushing offset"),n++}}return!0}if(z("next test",s,c),s===e[o+n])return z("exact match"),!0;const a=Je(s);let u=a.version;if(u==="*"&&(u=c.version),a.name===c.name){if(c.version===u)return z("exact version match"),!0;if(qr.valid(c.version)&&qr.satisfies(c.version,u))return z("semver match"),!0}return z("failed match"),!1});return z("result of path test %s: %s",t,i),i}function wt(e,t,r="packageManager"){return Object.keys(t).some(n=>Qu(e,n,r))}function Qu(e,t,r){if(r==="exact")return ef(e,t);let n=!1;const i=e.from.slice(1);return t.indexOf(i.join(" > "))!==-1?(as("%s exact match from %s",e.id,i),n=!0):Zu(i,t)&&(n=!0),n}function ef(e,t){const r=t.split(" > ");if(r[r.length-1]==="*"){const n=e.from.length-r.length;for(let i=0;i<n;i++)r.push("*")}if(r.length!==e.from.length)return!1;for(let n=0;n<r.length;n++)if(r[n]!==e.from[n]&&r[n]!=="*")return!1;return!0}function tf(e,t){let r=null;if(!e||!t)return r;for(const n of["ignore","patch"])Object.keys(e[n]||[]).forEach(i=>{if(i===t.id){for(const s of e[n][i])if(wt(t,s)){const o=Object.keys(s).pop();r={type:n,id:t.id,rule:t.from,...s[o]}}}});return r}var P={},St={},ee={};function ls(e){return typeof e>"u"||e===null}function rf(e){return typeof e=="object"&&e!==null}function nf(e){return Array.isArray(e)?e:ls(e)?[]:[e]}function sf(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function of(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function af(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ee.isNothing=ls;ee.isObject=rf;ee.toArray=nf;ee.repeat=of;ee.isNegativeZero=af;ee.extend=sf;function $t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}$t.prototype=Object.create(Error.prototype);$t.prototype.constructor=$t;$t.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};var Ot=$t,$i=ee;function cn(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}cn.prototype.getSnippet=function(t,r){var n,i,s,o,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
10
10
  …\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",o=this.position;o<this.buffer.length&&`\0\r
11
- …\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return c=this.buffer.slice(i,o),xi.repeat(" ",t)+n+c+s+`
12
- `+xi.repeat(" ",t+this.position-i+n.length)+"^"};ln.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
13
- `+r)),n};var of=ln,$i=Ct,af=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],lf=["scalar","sequence","mapping"];function cf(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function uf(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(af.indexOf(r)===-1)throw new $i('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=cf(t.styleAliases||null),lf.indexOf(this.kind)===-1)throw new $i('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var B=uf,Ai=te,Wt=Ct,ff=B;function qr(e,t,r){var n=[];return e.include.forEach(function(i){r=qr(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&n.push(o)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}function hf(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Je(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Wt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=qr(this,"implicit",[]),this.compiledExplicit=qr(this,"explicit",[]),this.compiledTypeMap=hf(this.compiledImplicit,this.compiledExplicit)}Je.DEFAULT=null;Je.create=function(){var t,r;switch(arguments.length){case 1:t=Je.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Wt("Wrong number of arguments for Schema.create function")}if(t=Ai.toArray(t),r=Ai.toArray(r),!t.every(function(n){return n instanceof Je}))throw new Wt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof ff}))throw new Wt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Je({include:t,explicit:r})};var at=Je,pf=B,df=new pf("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),mf=B,gf=new mf("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),vf=B,yf=new vf("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Ef=at,cn=new Ef({explicit:[df,gf,yf]}),xf=B;function $f(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Af(){return null}function bf(e){return e===null}var wf=new xf("tag:yaml.org,2002:null",{kind:"scalar",resolve:$f,construct:Af,predicate:bf,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Cf=B;function Sf(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Of(e){return e==="true"||e==="True"||e==="TRUE"}function _f(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Tf=new Cf("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Sf,construct:Of,predicate:_f,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),Rf=te,If=B;function Ff(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Nf(e){return 48<=e&&e<=55}function Lf(e){return 48<=e&&e<=57}function jf(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Ff(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!Nf(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!Lf(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function Df(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(o){s.unshift(parseInt(o,10))}),t=0,i=1,s.forEach(function(o){t+=o*i,i*=60}),r*t):r*parseInt(t,10)}function Pf(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Rf.isNegativeZero(e)}var Mf=new If("tag:yaml.org,2002:int",{kind:"scalar",resolve:jf,construct:Df,predicate:Pf,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),as=te,kf=B,Uf=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Gf(e){return!(e===null||!Uf.test(e)||e[e.length-1]==="_")}function Hf(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}var Bf=/^[-+]?[0-9]+e/;function Yf(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(as.isNegativeZero(e))return"-0.0";return r=e.toString(10),Bf.test(r)?r.replace("e",".e"):r}function Vf(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||as.isNegativeZero(e))}var qf=new kf("tag:yaml.org,2002:float",{kind:"scalar",resolve:Gf,construct:Hf,predicate:Vf,represent:Yf,defaultStyle:"lowercase"}),Xf=at,ls=new Xf({include:[cn],implicit:[wf,Tf,Mf,qf]}),Wf=at,cs=new Wf({include:[ls]}),Kf=B,us=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function zf(e){return e===null?!1:us.exec(e)!==null||fs.exec(e)!==null}function Jf(e){var t,r,n,i,s,o,c,a=0,h=null,u,f,m;if(t=us.exec(e),t===null&&(t=fs.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],c=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(u=+t[10],f=+(t[11]||0),h=(u*60+f)*6e4,t[9]==="-"&&(h=-h)),m=new Date(Date.UTC(r,n,i,s,o,c,a)),h&&m.setTime(m.getTime()-h),m}function Zf(e){return e.toISOString()}var Qf=new Kf("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zf,construct:Jf,instanceOf:Date,represent:Zf}),eh=B;function th(e){return e==="<<"||e===null}var rh=new eh("tag:yaml.org,2002:merge",{kind:"scalar",resolve:th});function hs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fe;try{var nh=hs;Fe=nh("buffer").Buffer}catch{}var ih=B,un=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
14
- \r`;function sh(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=un;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function oh(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=un,o=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):r===18?(c.push(o>>10&255),c.push(o>>2&255)):r===12&&c.push(o>>4&255),Fe?Fe.from?Fe.from(c):new Fe(c):c}function ah(e){var t="",r=0,n,i,s=e.length,o=un;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function lh(e){return Fe&&Fe.isBuffer(e)}var ch=new ih("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sh,construct:oh,predicate:lh,represent:ah}),uh=B,fh=Object.prototype.hasOwnProperty,hh=Object.prototype.toString;function ph(e){if(e===null)return!0;var t=[],r,n,i,s,o,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],o=!1,hh.call(i)!=="[object Object]")return!1;for(s in i)if(fh.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function dh(e){return e!==null?e:[]}var mh=new uh("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ph,construct:dh}),gh=B,vh=Object.prototype.toString;function yh(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],vh.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function Eh(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var xh=new gh("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yh,construct:Eh}),$h=B,Ah=Object.prototype.hasOwnProperty;function bh(e){if(e===null)return!0;var t,r=e;for(t in r)if(Ah.call(r,t)&&r[t]!==null)return!1;return!0}function wh(e){return e!==null?e:{}}var Ch=new $h("tag:yaml.org,2002:set",{kind:"mapping",resolve:bh,construct:wh}),Sh=at,St=new Sh({include:[cs],implicit:[Qf,rh],explicit:[ch,mh,xh,Ch]}),Oh=B;function _h(){return!0}function Th(){}function Rh(){return""}function Ih(e){return typeof e>"u"}var Fh=new Oh("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:_h,construct:Th,predicate:Ih,represent:Rh}),Nh=B;function Lh(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function jh(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function Dh(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Ph(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Mh=new Nh("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Lh,construct:jh,predicate:Ph,represent:Dh}),Zt;try{var kh=hs;Zt=kh("esprima")}catch{typeof window<"u"&&(Zt=window.esprima)}var Uh=B;function Gh(e){if(e===null)return!1;try{var t="("+e+")",r=Zt.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Hh(e){var t="("+e+")",r=Zt.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function Bh(e){return e.toString()}function Yh(e){return Object.prototype.toString.call(e)==="[object Function]"}var Vh=new Uh("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Gh,construct:Hh,predicate:Yh,represent:Bh}),bi=at,fr=bi.DEFAULT=new bi({include:[St],explicit:[Fh,Mh,Vh]}),ve=te,ps=Ct,qh=of,ds=St,Xh=fr,be=Object.prototype.hasOwnProperty,Qt=1,ms=2,gs=3,er=4,Pr=1,Wh=2,wi=3,Kh=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zh=/[\x85\u2028\u2029]/,Jh=/[,\[\]\{\}]/,vs=/^(?:!|!!|![a-z\-]+!)$/i,ys=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ci(e){return Object.prototype.toString.call(e)}function ue(e){return e===10||e===13}function Le(e){return e===9||e===32}function z(e){return e===9||e===32||e===10||e===13}function Ze(e){return e===44||e===91||e===93||e===123||e===125}function Zh(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Qh(e){return e===120?2:e===117?4:e===85?8:0}function ep(e){return 48<=e&&e<=57?e-48:-1}function Si(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
15
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function tp(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Es=new Array(256),xs=new Array(256);for(var qe=0;qe<256;qe++)Es[qe]=Si(qe)?1:0,xs[qe]=Si(qe);function rp(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Xh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function $s(e,t){return new ps(t,new qh(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function w(e,t){throw $s(e,t)}function tr(e,t){e.onWarning&&e.onWarning.call(null,$s(e,t))}var Oi={YAML:function(t,r,n){var i,s,o;t.version!==null&&w(t,"duplication of %YAML directive"),n.length!==1&&w(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&w(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&w(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&tr(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&w(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],vs.test(i)||w(t,"ill-formed tag handle (first argument) of the TAG directive"),be.call(t.tagMap,i)&&w(t,'there is a previously declared suffix for "'+i+'" tag handle'),ys.test(s)||w(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s}};function Ae(e,t,r,n){var i,s,o,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)o=c.charCodeAt(i),o===9||32<=o&&o<=1114111||w(e,"expected valid JSON character");else Kh.test(c)&&w(e,"the stream contains non-printable characters");e.result+=c}}function _i(e,t,r,n){var i,s,o,c;for(ve.isObject(r)||w(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,c=i.length;o<c;o+=1)s=i[o],be.call(t,s)||(t[s]=r[s],n[s]=!0)}function Qe(e,t,r,n,i,s,o,c){var a,h;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),a=0,h=i.length;a<h;a+=1)Array.isArray(i[a])&&w(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ci(i[a])==="[object Object]"&&(i[a]="[object Object]");if(typeof i=="object"&&Ci(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(a=0,h=s.length;a<h;a+=1)_i(e,t,s[a],r);else _i(e,t,s,r);else!e.json&&!be.call(r,i)&&be.call(t,i)&&(e.line=o||e.line,e.position=c||e.position,w(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}function fn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):w(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function U(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Le(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ue(i))for(fn(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&tr(e,"deficient indentation"),n}function hr(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||z(r)))}function hn(e,t){t===1?e.result+=" ":t>1&&(e.result+=ve.repeat(`
16
- `,t-1))}function np(e,t,r){var n,i,s,o,c,a,h,u,f=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),z(d)||Ze(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),z(i)||r&&Ze(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),z(i)||r&&Ze(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),z(n))break}else{if(e.position===e.lineStart&&hr(e)||r&&Ze(d))break;if(ue(d))if(a=e.line,h=e.lineStart,u=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=h,e.lineIndent=u;break}}c&&(Ae(e,s,o,!1),hn(e,e.line-a),s=o=e.position,c=!1),Le(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ae(e,s,o,!1),e.result?!0:(e.kind=f,e.result=m,!1)}function ip(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ae(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else ue(r)?(Ae(e,n,i,!0),hn(e,U(e,!1,t)),n=i=e.position):e.position===e.lineStart&&hr(e)?w(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);w(e,"unexpected end of the stream within a single quoted scalar")}function sp(e,t){var r,n,i,s,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ae(e,r,e.position,!0),e.position++,!0;if(c===92){if(Ae(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),ue(c))U(e,!1,t);else if(c<256&&Es[c])e.result+=xs[c],e.position++;else if((o=Qh(c))>0){for(i=o,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(o=Zh(c))>=0?s=(s<<4)+o:w(e,"expected hexadecimal character");e.result+=tp(s),e.position++}else w(e,"unknown escape sequence");r=n=e.position}else ue(c)?(Ae(e,r,n,!0),hn(e,U(e,!1,t)),r=n=e.position):e.position===e.lineStart&&hr(e)?w(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}w(e,"unexpected end of the stream within a double quoted scalar")}function op(e,t){var r=!0,n,i=e.tag,s,o=e.anchor,c,a,h,u,f,m={},d,v,_,x;if(x=e.input.charCodeAt(e.position),x===91)a=93,f=!1,s=[];else if(x===123)a=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),x=e.input.charCodeAt(++e.position);x!==0;){if(U(e,!0,t),x=e.input.charCodeAt(e.position),x===a)return e.position++,e.tag=i,e.anchor=o,e.kind=f?"mapping":"sequence",e.result=s,!0;r||w(e,"missed comma between flow collection entries"),v=d=_=null,h=u=!1,x===63&&(c=e.input.charCodeAt(e.position+1),z(c)&&(h=u=!0,e.position++,U(e,!0,t))),n=e.line,nt(e,t,Qt,!1,!0),v=e.tag,d=e.result,U(e,!0,t),x=e.input.charCodeAt(e.position),(u||e.line===n)&&x===58&&(h=!0,x=e.input.charCodeAt(++e.position),U(e,!0,t),nt(e,t,Qt,!1,!0),_=e.result),f?Qe(e,s,m,v,d,_):h?s.push(Qe(e,null,m,v,d,_)):s.push(d),U(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}w(e,"unexpected end of the stream within a flow collection")}function ap(e,t){var r,n,i=Pr,s=!1,o=!1,c=t,a=0,h=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Pr===i?i=f===43?wi:Wh:w(e,"repeat of a chomping mode identifier");else if((u=ep(f))>=0)u===0?w(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?w(e,"repeat of an indentation width identifier"):(c=t+u-1,o=!0);else break;if(Le(f)){do f=e.input.charCodeAt(++e.position);while(Le(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!ue(f)&&f!==0)}for(;f!==0;){for(fn(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),ue(f)){a++;continue}if(e.lineIndent<c){i===wi?e.result+=ve.repeat(`
17
- `,s?1+a:a):i===Pr&&s&&(e.result+=`
18
- `);break}for(n?Le(f)?(h=!0,e.result+=ve.repeat(`
19
- `,s?1+a:a)):h?(h=!1,e.result+=ve.repeat(`
11
+ …\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return c=this.buffer.slice(i,o),$i.repeat(" ",t)+n+c+s+`
12
+ `+$i.repeat(" ",t+this.position-i+n.length)+"^"};cn.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
13
+ `+r)),n};var lf=cn,Ai=Ot,cf=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],uf=["scalar","sequence","mapping"];function ff(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function hf(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(cf.indexOf(r)===-1)throw new Ai('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=ff(t.styleAliases||null),uf.indexOf(this.kind)===-1)throw new Ai('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var H=hf,bi=ee,Kt=Ot,pf=H;function Xr(e,t,r){var n=[];return e.include.forEach(function(i){r=Xr(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&n.push(o)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}function df(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Ze(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Kt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Xr(this,"implicit",[]),this.compiledExplicit=Xr(this,"explicit",[]),this.compiledTypeMap=df(this.compiledImplicit,this.compiledExplicit)}Ze.DEFAULT=null;Ze.create=function(){var t,r;switch(arguments.length){case 1:t=Ze.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Kt("Wrong number of arguments for Schema.create function")}if(t=bi.toArray(t),r=bi.toArray(r),!t.every(function(n){return n instanceof Ze}))throw new Kt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof pf}))throw new Kt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ze({include:t,explicit:r})};var lt=Ze,mf=H,gf=new mf("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),vf=H,yf=new vf("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ef=H,xf=new Ef("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),$f=lt,un=new $f({explicit:[gf,yf,xf]}),Af=H;function bf(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Cf(){return null}function wf(e){return e===null}var Sf=new Af("tag:yaml.org,2002:null",{kind:"scalar",resolve:bf,construct:Cf,predicate:wf,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Of=H;function _f(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Tf(e){return e==="true"||e==="True"||e==="TRUE"}function Rf(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var If=new Of("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_f,construct:Tf,predicate:Rf,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),Ff=ee,Nf=H;function Lf(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function jf(e){return 48<=e&&e<=55}function Df(e){return 48<=e&&e<=57}function Pf(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Lf(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!jf(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!Df(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function Mf(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(o){s.unshift(parseInt(o,10))}),t=0,i=1,s.forEach(function(o){t+=o*i,i*=60}),r*t):r*parseInt(t,10)}function kf(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ff.isNegativeZero(e)}var Uf=new Nf("tag:yaml.org,2002:int",{kind:"scalar",resolve:Pf,construct:Mf,predicate:kf,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cs=ee,Gf=H,Hf=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bf(e){return!(e===null||!Hf.test(e)||e[e.length-1]==="_")}function Yf(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}var Vf=/^[-+]?[0-9]+e/;function qf(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(cs.isNegativeZero(e))return"-0.0";return r=e.toString(10),Vf.test(r)?r.replace("e",".e"):r}function Xf(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||cs.isNegativeZero(e))}var Wf=new Gf("tag:yaml.org,2002:float",{kind:"scalar",resolve:Bf,construct:Yf,predicate:Xf,represent:qf,defaultStyle:"lowercase"}),Kf=lt,us=new Kf({include:[un],implicit:[Sf,If,Uf,Wf]}),zf=lt,fs=new zf({include:[us]}),Jf=H,hs=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ps=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Zf(e){return e===null?!1:hs.exec(e)!==null||ps.exec(e)!==null}function Qf(e){var t,r,n,i,s,o,c,a=0,u=null,f,h,m;if(t=hs.exec(e),t===null&&(t=ps.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],c=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(f=+t[10],h=+(t[11]||0),u=(f*60+h)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,n,i,s,o,c,a)),u&&m.setTime(m.getTime()-u),m}function eh(e){return e.toISOString()}var th=new Jf("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zf,construct:Qf,instanceOf:Date,represent:eh}),rh=H;function nh(e){return e==="<<"||e===null}var ih=new rh("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nh});function ds(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Le;try{var sh=ds;Le=sh("buffer").Buffer}catch{}var oh=H,fn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
14
+ \r`;function ah(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=fn;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function lh(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=fn,o=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):r===18?(c.push(o>>10&255),c.push(o>>2&255)):r===12&&c.push(o>>4&255),Le?Le.from?Le.from(c):new Le(c):c}function ch(e){var t="",r=0,n,i,s=e.length,o=fn;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function uh(e){return Le&&Le.isBuffer(e)}var fh=new oh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ah,construct:lh,predicate:uh,represent:ch}),hh=H,ph=Object.prototype.hasOwnProperty,dh=Object.prototype.toString;function mh(e){if(e===null)return!0;var t=[],r,n,i,s,o,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],o=!1,dh.call(i)!=="[object Object]")return!1;for(s in i)if(ph.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function gh(e){return e!==null?e:[]}var vh=new hh("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mh,construct:gh}),yh=H,Eh=Object.prototype.toString;function xh(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],Eh.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function $h(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Ah=new yh("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:xh,construct:$h}),bh=H,Ch=Object.prototype.hasOwnProperty;function wh(e){if(e===null)return!0;var t,r=e;for(t in r)if(Ch.call(r,t)&&r[t]!==null)return!1;return!0}function Sh(e){return e!==null?e:{}}var Oh=new bh("tag:yaml.org,2002:set",{kind:"mapping",resolve:wh,construct:Sh}),_h=lt,_t=new _h({include:[fs],implicit:[th,ih],explicit:[fh,vh,Ah,Oh]}),Th=H;function Rh(){return!0}function Ih(){}function Fh(){return""}function Nh(e){return typeof e>"u"}var Lh=new Th("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Rh,construct:Ih,predicate:Nh,represent:Fh}),jh=H;function Dh(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function Ph(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function Mh(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function kh(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Uh=new jh("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Dh,construct:Ph,predicate:kh,represent:Mh}),Qt;try{var Gh=ds;Qt=Gh("esprima")}catch{typeof window<"u"&&(Qt=window.esprima)}var Hh=H;function Bh(e){if(e===null)return!1;try{var t="("+e+")",r=Qt.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Yh(e){var t="("+e+")",r=Qt.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function Vh(e){return e.toString()}function qh(e){return Object.prototype.toString.call(e)==="[object Function]"}var Xh=new Hh("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Bh,construct:Yh,predicate:qh,represent:Vh}),Ci=lt,hr=Ci.DEFAULT=new Ci({include:[_t],explicit:[Lh,Uh,Xh]}),ve=ee,ms=Ot,Wh=lf,gs=_t,Kh=hr,be=Object.prototype.hasOwnProperty,er=1,vs=2,ys=3,tr=4,Mr=1,zh=2,wi=3,Jh=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zh=/[\x85\u2028\u2029]/,Qh=/[,\[\]\{\}]/,Es=/^(?:!|!!|![a-z\-]+!)$/i,xs=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Si(e){return Object.prototype.toString.call(e)}function ue(e){return e===10||e===13}function De(e){return e===9||e===32}function J(e){return e===9||e===32||e===10||e===13}function Qe(e){return e===44||e===91||e===93||e===123||e===125}function ep(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function tp(e){return e===120?2:e===117?4:e===85?8:0}function rp(e){return 48<=e&&e<=57?e-48:-1}function Oi(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
15
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function np(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var $s=new Array(256),As=new Array(256);for(var We=0;We<256;We++)$s[We]=Oi(We)?1:0,As[We]=Oi(We);function ip(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Kh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function bs(e,t){return new ms(t,new Wh(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function w(e,t){throw bs(e,t)}function rr(e,t){e.onWarning&&e.onWarning.call(null,bs(e,t))}var _i={YAML:function(t,r,n){var i,s,o;t.version!==null&&w(t,"duplication of %YAML directive"),n.length!==1&&w(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&w(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&w(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&rr(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&w(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Es.test(i)||w(t,"ill-formed tag handle (first argument) of the TAG directive"),be.call(t.tagMap,i)&&w(t,'there is a previously declared suffix for "'+i+'" tag handle'),xs.test(s)||w(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s}};function Ae(e,t,r,n){var i,s,o,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)o=c.charCodeAt(i),o===9||32<=o&&o<=1114111||w(e,"expected valid JSON character");else Jh.test(c)&&w(e,"the stream contains non-printable characters");e.result+=c}}function Ti(e,t,r,n){var i,s,o,c;for(ve.isObject(r)||w(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,c=i.length;o<c;o+=1)s=i[o],be.call(t,s)||(t[s]=r[s],n[s]=!0)}function et(e,t,r,n,i,s,o,c){var a,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),a=0,u=i.length;a<u;a+=1)Array.isArray(i[a])&&w(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Si(i[a])==="[object Object]"&&(i[a]="[object Object]");if(typeof i=="object"&&Si(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(a=0,u=s.length;a<u;a+=1)Ti(e,t,s[a],r);else Ti(e,t,s,r);else!e.json&&!be.call(r,i)&&be.call(t,i)&&(e.line=o||e.line,e.position=c||e.position,w(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}function hn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):w(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function k(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;De(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ue(i))for(hn(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&rr(e,"deficient indentation"),n}function pr(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||J(r)))}function pn(e,t){t===1?e.result+=" ":t>1&&(e.result+=ve.repeat(`
16
+ `,t-1))}function sp(e,t,r){var n,i,s,o,c,a,u,f,h=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),J(d)||Qe(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),J(i)||r&&Qe(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),J(i)||r&&Qe(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),J(n))break}else{if(e.position===e.lineStart&&pr(e)||r&&Qe(d))break;if(ue(d))if(a=e.line,u=e.lineStart,f=e.lineIndent,k(e,!1,-1),e.lineIndent>=t){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=u,e.lineIndent=f;break}}c&&(Ae(e,s,o,!1),pn(e,e.line-a),s=o=e.position,c=!1),De(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ae(e,s,o,!1),e.result?!0:(e.kind=h,e.result=m,!1)}function op(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ae(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else ue(r)?(Ae(e,n,i,!0),pn(e,k(e,!1,t)),n=i=e.position):e.position===e.lineStart&&pr(e)?w(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);w(e,"unexpected end of the stream within a single quoted scalar")}function ap(e,t){var r,n,i,s,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ae(e,r,e.position,!0),e.position++,!0;if(c===92){if(Ae(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),ue(c))k(e,!1,t);else if(c<256&&$s[c])e.result+=As[c],e.position++;else if((o=tp(c))>0){for(i=o,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(o=ep(c))>=0?s=(s<<4)+o:w(e,"expected hexadecimal character");e.result+=np(s),e.position++}else w(e,"unknown escape sequence");r=n=e.position}else ue(c)?(Ae(e,r,n,!0),pn(e,k(e,!1,t)),r=n=e.position):e.position===e.lineStart&&pr(e)?w(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}w(e,"unexpected end of the stream within a double quoted scalar")}function lp(e,t){var r=!0,n,i=e.tag,s,o=e.anchor,c,a,u,f,h,m={},d,v,_,A;if(A=e.input.charCodeAt(e.position),A===91)a=93,h=!1,s=[];else if(A===123)a=125,h=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),A=e.input.charCodeAt(++e.position);A!==0;){if(k(e,!0,t),A=e.input.charCodeAt(e.position),A===a)return e.position++,e.tag=i,e.anchor=o,e.kind=h?"mapping":"sequence",e.result=s,!0;r||w(e,"missed comma between flow collection entries"),v=d=_=null,u=f=!1,A===63&&(c=e.input.charCodeAt(e.position+1),J(c)&&(u=f=!0,e.position++,k(e,!0,t))),n=e.line,it(e,t,er,!1,!0),v=e.tag,d=e.result,k(e,!0,t),A=e.input.charCodeAt(e.position),(f||e.line===n)&&A===58&&(u=!0,A=e.input.charCodeAt(++e.position),k(e,!0,t),it(e,t,er,!1,!0),_=e.result),h?et(e,s,m,v,d,_):u?s.push(et(e,null,m,v,d,_)):s.push(d),k(e,!0,t),A=e.input.charCodeAt(e.position),A===44?(r=!0,A=e.input.charCodeAt(++e.position)):r=!1}w(e,"unexpected end of the stream within a flow collection")}function cp(e,t){var r,n,i=Mr,s=!1,o=!1,c=t,a=0,u=!1,f,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Mr===i?i=h===43?wi:zh:w(e,"repeat of a chomping mode identifier");else if((f=rp(h))>=0)f===0?w(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?w(e,"repeat of an indentation width identifier"):(c=t+f-1,o=!0);else break;if(De(h)){do h=e.input.charCodeAt(++e.position);while(De(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!ue(h)&&h!==0)}for(;h!==0;){for(hn(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),ue(h)){a++;continue}if(e.lineIndent<c){i===wi?e.result+=ve.repeat(`
17
+ `,s?1+a:a):i===Mr&&s&&(e.result+=`
18
+ `);break}for(n?De(h)?(u=!0,e.result+=ve.repeat(`
19
+ `,s?1+a:a)):u?(u=!1,e.result+=ve.repeat(`
20
20
  `,a+1)):a===0?s&&(e.result+=" "):e.result+=ve.repeat(`
21
21
  `,a):e.result+=ve.repeat(`
22
- `,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!ue(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Ae(e,r,e.position,!1)}return!0}function Ti(e,t){var r,n=e.tag,i=e.anchor,s=[],o,c=!1,a;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);a!==0&&!(a!==45||(o=e.input.charCodeAt(e.position+1),!z(o)));){if(c=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t){s.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,nt(e,t,gs,!1,!0),s.push(e.result),U(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)w(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function lp(e,t,r){var n,i,s,o,c=e.tag,a=e.anchor,h={},u={},f=null,m=null,d=null,v=!1,_=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),x=e.input.charCodeAt(e.position);x!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(x===63||x===58)&&z(n))x===63?(v&&(Qe(e,h,u,f,m,null),f=m=d=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):w(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=n;else if(nt(e,r,ms,!1,!0))if(e.line===s){for(x=e.input.charCodeAt(e.position);Le(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),z(x)||w(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Qe(e,h,u,f,m,null),f=m=d=null),_=!0,v=!1,i=!1,f=e.tag,m=e.result;else if(_)w(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=a,!0}else if(_)w(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=a,!0;else break;if((e.line===s||e.lineIndent>t)&&(nt(e,t,er,!0,i)&&(v?m=e.result:d=e.result),v||(Qe(e,h,u,f,m,d,s,o),f=m=d=null),U(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)w(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Qe(e,h,u,f,m,null),_&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=h),_}function cp(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&w(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):w(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!z(o);)o===33&&(n?w(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),vs.test(i)||w(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Jh.test(s)&&w(e,"tag suffix cannot contain flow indicator characters")}return s&&!ys.test(s)&&w(e,"tag name cannot contain such characters: "+s),r?e.tag=s:be.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:w(e,'undeclared tag handle "'+i+'"'),!0}function up(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&w(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!z(r)&&!Ze(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function fp(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!z(n)&&!Ze(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),be.call(e.anchorMap,r)||w(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],U(e,!0,-1),!0}function nt(e,t,r,n,i){var s,o,c,a=1,h=!1,u=!1,f,m,d,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=c=er===r||gs===r,n&&U(e,!0,-1)&&(h=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;cp(e)||up(e);)U(e,!0,-1)?(h=!0,c=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):c=!1;if(c&&(c=h||i),(a===1||er===r)&&(Qt===r||ms===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?c&&(Ti(e,_)||lp(e,_,v))||op(e,v)?u=!0:(o&&ap(e,v)||ip(e,v)||sp(e,v)?u=!0:fp(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&w(e,"alias node should not have any properties")):np(e,v,Qt===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(u=c&&Ti(e,_))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&w(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,m=e.implicitTypes.length;f<m;f+=1)if(d=e.implicitTypes[f],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else be.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&w(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):w(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):w(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function hp(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(U(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!z(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&w(e,"directive name must not be less than one character in length");o!==0;){for(;Le(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ue(o));break}if(ue(o))break;for(r=e.position;o!==0&&!z(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&fn(e),be.call(Oi,n)?Oi[n](e,n,i):tr(e,'unknown document directive "'+n+'"')}if(U(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,U(e,!0,-1)):s&&w(e,"directives end mark is expected"),nt(e,e.lineIndent-1,er,!1,!0),U(e,!0,-1),e.checkLineBreaks&&zh.test(e.input.slice(t,e.position))&&tr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,U(e,!0,-1));return}if(e.position<e.length-1)w(e,"end of the stream or a document separator is expected");else return}function As(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
23
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new rp(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,w(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)hp(r);return r.documents}function bs(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=As(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function ws(e,t){var r=As(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ps("expected a single document in the stream, but found more")}}function pp(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),bs(e,t,ve.extend({schema:ds},r))}function dp(e,t){return ws(e,ve.extend({schema:ds},t))}wt.loadAll=bs;wt.load=ws;wt.safeLoadAll=pp;wt.safeLoad=dp;var pn={},Ot=te,_t=Ct,mp=fr,gp=St,Cs=Object.prototype.toString,Ss=Object.prototype.hasOwnProperty,vp=9,xt=10,yp=13,Ep=32,xp=33,$p=34,Os=35,Ap=37,bp=38,wp=39,Cp=42,_s=44,Sp=45,Ts=58,Op=61,_p=62,Tp=63,Rp=64,Rs=91,Is=93,Ip=96,Fs=123,Fp=124,Ns=125,q={};q[0]="\\0";q[7]="\\a";q[8]="\\b";q[9]="\\t";q[10]="\\n";q[11]="\\v";q[12]="\\f";q[13]="\\r";q[27]="\\e";q[34]='\\"';q[92]="\\\\";q[133]="\\N";q[160]="\\_";q[8232]="\\L";q[8233]="\\P";var Np=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Lp(e,t){var r,n,i,s,o,c,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],c=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&Ss.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c;return r}function Ri(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new _t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ot.repeat("0",n-t.length)+t}function jp(e){this.schema=e.schema||mp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Lp(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ii(e,t){for(var r=Ot.repeat(" ",t),n=0,i=-1,s="",o,c=e.length;n<c;)i=e.indexOf(`
22
+ `,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!ue(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Ae(e,r,e.position,!1)}return!0}function Ri(e,t){var r,n=e.tag,i=e.anchor,s=[],o,c=!1,a;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);a!==0&&!(a!==45||(o=e.input.charCodeAt(e.position+1),!J(o)));){if(c=!0,e.position++,k(e,!0,-1)&&e.lineIndent<=t){s.push(null),a=e.input.charCodeAt(e.position);continue}if(r=e.line,it(e,t,ys,!1,!0),s.push(e.result),k(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&a!==0)w(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function up(e,t,r){var n,i,s,o,c=e.tag,a=e.anchor,u={},f={},h=null,m=null,d=null,v=!1,_=!1,A;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),A=e.input.charCodeAt(e.position);A!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(A===63||A===58)&&J(n))A===63?(v&&(et(e,u,f,h,m,null),h=m=d=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):w(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=n;else if(it(e,r,vs,!1,!0))if(e.line===s){for(A=e.input.charCodeAt(e.position);De(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),J(A)||w(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(et(e,u,f,h,m,null),h=m=d=null),_=!0,v=!1,i=!1,h=e.tag,m=e.result;else if(_)w(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=a,!0}else if(_)w(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=a,!0;else break;if((e.line===s||e.lineIndent>t)&&(it(e,t,tr,!0,i)&&(v?m=e.result:d=e.result),v||(et(e,u,f,h,m,d,s,o),h=m=d=null),k(e,!0,-1),A=e.input.charCodeAt(e.position)),e.lineIndent>t&&A!==0)w(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&et(e,u,f,h,m,null),_&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=u),_}function fp(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&w(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):w(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!J(o);)o===33&&(n?w(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Es.test(i)||w(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Qh.test(s)&&w(e,"tag suffix cannot contain flow indicator characters")}return s&&!xs.test(s)&&w(e,"tag name cannot contain such characters: "+s),r?e.tag=s:be.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:w(e,'undeclared tag handle "'+i+'"'),!0}function hp(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&w(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!J(r)&&!Qe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function pp(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!J(n)&&!Qe(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),be.call(e.anchorMap,r)||w(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],k(e,!0,-1),!0}function it(e,t,r,n,i){var s,o,c,a=1,u=!1,f=!1,h,m,d,v,_;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=c=tr===r||ys===r,n&&k(e,!0,-1)&&(u=!0,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)),a===1)for(;fp(e)||hp(e);)k(e,!0,-1)?(u=!0,c=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):c=!1;if(c&&(c=u||i),(a===1||tr===r)&&(er===r||vs===r?v=t:v=t+1,_=e.position-e.lineStart,a===1?c&&(Ri(e,_)||up(e,_,v))||lp(e,v)?f=!0:(o&&cp(e,v)||op(e,v)||ap(e,v)?f=!0:pp(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&w(e,"alias node should not have any properties")):sp(e,v,er===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(f=c&&Ri(e,_))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&w(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,m=e.implicitTypes.length;h<m;h+=1)if(d=e.implicitTypes[h],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else be.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&w(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):w(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):w(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function dp(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(o=e.input.charCodeAt(e.position))!==0&&(k(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!J(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&w(e,"directive name must not be less than one character in length");o!==0;){for(;De(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ue(o));break}if(ue(o))break;for(r=e.position;o!==0&&!J(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&hn(e),be.call(_i,n)?_i[n](e,n,i):rr(e,'unknown document directive "'+n+'"')}if(k(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,k(e,!0,-1)):s&&w(e,"directives end mark is expected"),it(e,e.lineIndent-1,tr,!1,!0),k(e,!0,-1),e.checkLineBreaks&&Zh.test(e.input.slice(t,e.position))&&rr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,k(e,!0,-1));return}if(e.position<e.length-1)w(e,"end of the stream or a document separator is expected");else return}function Cs(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
23
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new ip(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,w(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dp(r);return r.documents}function ws(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Cs(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Ss(e,t){var r=Cs(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ms("expected a single document in the stream, but found more")}}function mp(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),ws(e,t,ve.extend({schema:gs},r))}function gp(e,t){return Ss(e,ve.extend({schema:gs},t))}St.loadAll=ws;St.load=Ss;St.safeLoadAll=mp;St.safeLoad=gp;var dn={},Tt=ee,Rt=Ot,vp=hr,yp=_t,Os=Object.prototype.toString,_s=Object.prototype.hasOwnProperty,Ep=9,At=10,xp=13,$p=32,Ap=33,bp=34,Ts=35,Cp=37,wp=38,Sp=39,Op=42,Rs=44,_p=45,Is=58,Tp=61,Rp=62,Ip=63,Fp=64,Fs=91,Ns=93,Np=96,Ls=123,Lp=124,js=125,q={};q[0]="\\0";q[7]="\\a";q[8]="\\b";q[9]="\\t";q[10]="\\n";q[11]="\\v";q[12]="\\f";q[13]="\\r";q[27]="\\e";q[34]='\\"';q[92]="\\\\";q[133]="\\N";q[160]="\\_";q[8232]="\\L";q[8233]="\\P";var jp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Dp(e,t){var r,n,i,s,o,c,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],c=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&_s.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c;return r}function Ii(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Rt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Tt.repeat("0",n-t.length)+t}function Pp(e){this.schema=e.schema||vp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Dp(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Fi(e,t){for(var r=Tt.repeat(" ",t),n=0,i=-1,s="",o,c=e.length;n<c;)i=e.indexOf(`
24
24
  `,n),i===-1?(o=e.slice(n),n=c):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
25
- `&&(s+=r),s+=o;return s}function Xr(e,t){return`
26
- `+Ot.repeat(" ",e.indent*t)}function Dp(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function dn(e){return e===Ep||e===vp}function it(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function Pp(e){return it(e)&&!dn(e)&&e!==65279&&e!==yp&&e!==xt}function Fi(e,t){return it(e)&&e!==65279&&e!==_s&&e!==Rs&&e!==Is&&e!==Fs&&e!==Ns&&e!==Ts&&(e!==Os||t&&Pp(t))}function Mp(e){return it(e)&&e!==65279&&!dn(e)&&e!==Sp&&e!==Tp&&e!==Ts&&e!==_s&&e!==Rs&&e!==Is&&e!==Fs&&e!==Ns&&e!==Os&&e!==bp&&e!==Cp&&e!==xp&&e!==Fp&&e!==Op&&e!==_p&&e!==wp&&e!==$p&&e!==Ap&&e!==Rp&&e!==Ip}function Ls(e){var t=/^\n* /;return t.test(e)}var js=1,Ds=2,Ps=3,Ms=4,Kt=5;function kp(e,t,r,n,i){var s,o,c,a=!1,h=!1,u=n!==-1,f=-1,m=Mp(e.charCodeAt(0))&&!dn(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!it(o))return Kt;c=s>0?e.charCodeAt(s-1):null,m=m&&Fi(o,c)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===xt)a=!0,u&&(h=h||s-f-1>n&&e[f+1]!==" ",f=s);else if(!it(o))return Kt;c=s>0?e.charCodeAt(s-1):null,m=m&&Fi(o,c)}h=h||u&&s-f-1>n&&e[f+1]!==" "}return!a&&!h?m&&!i(e)?js:Ds:r>9&&Ls(e)?Kt:h?Ms:Ps}function Up(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&Np.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=n||e.flowLevel>-1&&r>=e.flowLevel;function c(a){return Dp(e,a)}switch(kp(t,o,e.indent,s,c)){case js:return t;case Ds:return"'"+t.replace(/'/g,"''")+"'";case Ps:return"|"+Ni(t,e.indent)+Li(Ii(t,i));case Ms:return">"+Ni(t,e.indent)+Li(Ii(Gp(t,s),i));case Kt:return'"'+Hp(t)+'"';default:throw new _t("impossible error: invalid scalar style")}}()}function Ni(e,t){var r=Ls(e)?String(t):"",n=e[e.length-1]===`
25
+ `&&(s+=r),s+=o;return s}function Wr(e,t){return`
26
+ `+Tt.repeat(" ",e.indent*t)}function Mp(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function mn(e){return e===$p||e===Ep}function st(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function kp(e){return st(e)&&!mn(e)&&e!==65279&&e!==xp&&e!==At}function Ni(e,t){return st(e)&&e!==65279&&e!==Rs&&e!==Fs&&e!==Ns&&e!==Ls&&e!==js&&e!==Is&&(e!==Ts||t&&kp(t))}function Up(e){return st(e)&&e!==65279&&!mn(e)&&e!==_p&&e!==Ip&&e!==Is&&e!==Rs&&e!==Fs&&e!==Ns&&e!==Ls&&e!==js&&e!==Ts&&e!==wp&&e!==Op&&e!==Ap&&e!==Lp&&e!==Tp&&e!==Rp&&e!==Sp&&e!==bp&&e!==Cp&&e!==Fp&&e!==Np}function Ds(e){var t=/^\n* /;return t.test(e)}var Ps=1,Ms=2,ks=3,Us=4,zt=5;function Gp(e,t,r,n,i){var s,o,c,a=!1,u=!1,f=n!==-1,h=-1,m=Up(e.charCodeAt(0))&&!mn(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!st(o))return zt;c=s>0?e.charCodeAt(s-1):null,m=m&&Ni(o,c)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===At)a=!0,f&&(u=u||s-h-1>n&&e[h+1]!==" ",h=s);else if(!st(o))return zt;c=s>0?e.charCodeAt(s-1):null,m=m&&Ni(o,c)}u=u||f&&s-h-1>n&&e[h+1]!==" "}return!a&&!u?m&&!i(e)?Ps:Ms:r>9&&Ds(e)?zt:u?Us:ks}function Hp(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&jp.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=n||e.flowLevel>-1&&r>=e.flowLevel;function c(a){return Mp(e,a)}switch(Gp(t,o,e.indent,s,c)){case Ps:return t;case Ms:return"'"+t.replace(/'/g,"''")+"'";case ks:return"|"+Li(t,e.indent)+ji(Fi(t,i));case Us:return">"+Li(t,e.indent)+ji(Fi(Bp(t,s),i));case zt:return'"'+Yp(t)+'"';default:throw new Rt("impossible error: invalid scalar style")}}()}function Li(e,t){var r=Ds(e)?String(t):"",n=e[e.length-1]===`
27
27
  `,i=n&&(e[e.length-2]===`
28
28
  `||e===`
29
29
  `),s=i?"+":n?"":"-";return r+s+`
30
- `}function Li(e){return e[e.length-1]===`
31
- `?e.slice(0,-1):e}function Gp(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var h=e.indexOf(`
32
- `);return h=h!==-1?h:e.length,r.lastIndex=h,ji(e.slice(0,h),t)}(),i=e[0]===`
30
+ `}function ji(e){return e[e.length-1]===`
31
+ `?e.slice(0,-1):e}function Bp(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
32
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,Di(e.slice(0,u),t)}(),i=e[0]===`
33
33
  `||e[0]===" ",s,o;o=r.exec(e);){var c=o[1],a=o[2];s=a[0]===" ",n+=c+(!i&&!s&&a!==""?`
34
- `:"")+ji(a,t),i=s}return n}function ji(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,c=0,a="";n=r.exec(e);)c=n.index,c-i>t&&(s=o>i?o:c,a+=`
34
+ `:"")+Di(a,t),i=s}return n}function Di(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,c=0,a="";n=r.exec(e);)c=n.index,c-i>t&&(s=o>i?o:c,a+=`
35
35
  `+e.slice(i,s),i=s+1),o=c;return a+=`
36
36
  `,e.length-i>t&&o>i?a+=e.slice(i,o)+`
37
- `+e.slice(o+1):a+=e.slice(i),a.slice(1)}function Hp(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=Ri((r-55296)*1024+n-56320+65536),s++;continue}i=q[r],t+=!i&&it(r)?e[s]:i||Ri(r)}return t}function Bp(e,t,r){var n="",i=e.tag,s,o;for(s=0,o=r.length;s<o;s+=1)De(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Yp(e,t,r,n){var i="",s=e.tag,o,c;for(o=0,c=r.length;o<c;o+=1)De(e,t+1,r[o],!0,!0)&&((!n||o!==0)&&(i+=Xr(e,t)),e.dump&&xt===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Vp(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,c,a,h,u;for(o=0,c=s.length;o<c;o+=1)u="",o!==0&&(u+=", "),e.condenseFlow&&(u+='"'),a=s[o],h=r[a],De(e,t,a,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),De(e,t,h,!1,!1)&&(u+=e.dump,n+=u));e.tag=i,e.dump="{"+n+"}"}function qp(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),c,a,h,u,f,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new _t("sortKeys must be a boolean or a function");for(c=0,a=o.length;c<a;c+=1)m="",(!n||c!==0)&&(m+=Xr(e,t)),h=o[c],u=r[h],De(e,t+1,h,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&xt===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,f&&(m+=Xr(e,t)),De(e,t+1,u,!0,f)&&(e.dump&&xt===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function Di(e,t,r){var n,i,s,o,c,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,Cs.call(c.represent)==="[object Function]")n=c.represent(t,a);else if(Ss.call(c.represent,a))n=c.represent[a](t,a);else throw new _t("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function De(e,t,r,n,i,s){e.tag=null,e.dump=r,Di(e,r,!1)||Di(e,r,!0);var o=Cs.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",a,h;if(c&&(a=e.duplicates.indexOf(r),h=a!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(c&&h&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(qp(e,t,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Vp(e,t,e.dump),h&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]"){var u=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(Yp(e,u,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Bp(e,u,e.dump),h&&(e.dump="&ref_"+a+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&Up(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _t("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Xp(e,t){var r=[],n=[],i,s;for(Wr(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Wr(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Wr(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Wr(e[n[i]],t,r)}function ks(e,t){t=t||{};var r=new jp(t);return r.noRefs||Xp(e,r),De(r,0,e,!0,!0)?r.dump+`
38
- `:""}function Wp(e,t){return ks(e,Ot.extend({schema:gp},t))}pn.dump=ks;pn.safeDump=Wp;var pr=wt,Us=pn;function dr(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}M.Type=B;M.Schema=at;M.FAILSAFE_SCHEMA=cn;M.JSON_SCHEMA=ls;M.CORE_SCHEMA=cs;M.DEFAULT_SAFE_SCHEMA=St;M.DEFAULT_FULL_SCHEMA=fr;M.load=pr.load;M.loadAll=pr.loadAll;M.safeLoad=pr.safeLoad;M.safeLoadAll=pr.safeLoadAll;M.dump=Us.dump;M.safeDump=Us.safeDump;M.YAMLException=Ct;M.MINIMAL_SCHEMA=cn;M.SAFE_SCHEMA=St;M.DEFAULT_SCHEMA=fr;M.scan=dr("scan");M.parse=dr("parse");M.compose=dr("compose");M.addConstructor=dr("addConstructor");var Kp=M,Gs=Kp,rr={exports:{}};rr.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",c="[object Boolean]",a="[object Date]",h="[object Error]",u="[object Function]",f="[object GeneratorFunction]",m="[object Map]",d="[object Number]",v="[object Object]",_="[object Promise]",x="[object RegExp]",k="[object Set]",L="[object String]",Z="[object Symbol]",oe="[object WeakMap]",ct="[object ArrayBuffer]",ae="[object DataView]",Me="[object Float32Array]",Ce="[object Float64Array]",ke="[object Int8Array]",Rt="[object Int16Array]",It="[object Int32Array]",Ft="[object Uint8Array]",E="[object Uint8ClampedArray]",y="[object Uint16Array]",O="[object Uint32Array]",C=/[\\^$.*+?()[\]{}|]/g,S=/\w*$/,A=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,b={};b[s]=b[o]=b[ct]=b[ae]=b[c]=b[a]=b[Me]=b[Ce]=b[ke]=b[Rt]=b[It]=b[m]=b[d]=b[v]=b[x]=b[k]=b[L]=b[Z]=b[Ft]=b[E]=b[y]=b[O]=!0,b[h]=b[u]=b[oe]=!1;var R=typeof kt=="object"&&kt&&kt.Object===Object&&kt,j=typeof self=="object"&&self&&self.Object===Object&&self,D=R||j||Function("return this")(),P=t&&!t.nodeType&&t,xe=P&&!0&&e&&!e.nodeType&&e,so=xe&&xe.exports===P;function oo(l,p){return l.set(p[0],p[1]),l}function ao(l,p){return l.add(p),l}function lo(l,p){for(var g=-1,$=l?l.length:0;++g<$&&p(l[g],g,l)!==!1;);return l}function co(l,p){for(var g=-1,$=p.length,Y=l.length;++g<$;)l[Y+g]=p[g];return l}function bn(l,p,g,$){for(var Y=-1,W=l?l.length:0;++Y<W;)g=p(g,l[Y],Y,l);return g}function uo(l,p){for(var g=-1,$=Array(l);++g<l;)$[g]=p(g);return $}function fo(l,p){return l==null?void 0:l[p]}function wn(l){var p=!1;if(l!=null&&typeof l.toString!="function")try{p=!!(l+"")}catch{}return p}function Cn(l){var p=-1,g=Array(l.size);return l.forEach(function($,Y){g[++p]=[Y,$]}),g}function gr(l,p){return function(g){return l(p(g))}}function Sn(l){var p=-1,g=Array(l.size);return l.forEach(function($){g[++p]=$}),g}var ho=Array.prototype,po=Function.prototype,Nt=Object.prototype,vr=D["__core-js_shared__"],On=function(){var l=/[^.]+$/.exec(vr&&vr.keys&&vr.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),_n=po.toString,$e=Nt.hasOwnProperty,Lt=Nt.toString,mo=RegExp("^"+_n.call($e).replace(C,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=so?D.Buffer:void 0,Rn=D.Symbol,In=D.Uint8Array,go=gr(Object.getPrototypeOf,Object),vo=Object.create,yo=Nt.propertyIsEnumerable,Eo=ho.splice,Fn=Object.getOwnPropertySymbols,xo=Tn?Tn.isBuffer:void 0,$o=gr(Object.keys,Object),yr=He(D,"DataView"),ut=He(D,"Map"),Er=He(D,"Promise"),xr=He(D,"Set"),$r=He(D,"WeakMap"),ft=He(Object,"create"),Ao=_e(yr),bo=_e(ut),wo=_e(Er),Co=_e(xr),So=_e($r),Nn=Rn?Rn.prototype:void 0,Ln=Nn?Nn.valueOf:void 0;function Se(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Oo(){this.__data__=ft?ft(null):{}}function _o(l){return this.has(l)&&delete this.__data__[l]}function To(l){var p=this.__data__;if(ft){var g=p[l];return g===n?void 0:g}return $e.call(p,l)?p[l]:void 0}function Ro(l){var p=this.__data__;return ft?p[l]!==void 0:$e.call(p,l)}function Io(l,p){var g=this.__data__;return g[l]=ft&&p===void 0?n:p,this}Se.prototype.clear=Oo,Se.prototype.delete=_o,Se.prototype.get=To,Se.prototype.has=Ro,Se.prototype.set=Io;function fe(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Fo(){this.__data__=[]}function No(l){var p=this.__data__,g=jt(p,l);if(g<0)return!1;var $=p.length-1;return g==$?p.pop():Eo.call(p,g,1),!0}function Lo(l){var p=this.__data__,g=jt(p,l);return g<0?void 0:p[g][1]}function jo(l){return jt(this.__data__,l)>-1}function Do(l,p){var g=this.__data__,$=jt(g,l);return $<0?g.push([l,p]):g[$][1]=p,this}fe.prototype.clear=Fo,fe.prototype.delete=No,fe.prototype.get=Lo,fe.prototype.has=jo,fe.prototype.set=Do;function Ue(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Po(){this.__data__={hash:new Se,map:new(ut||fe),string:new Se}}function Mo(l){return Dt(this,l).delete(l)}function ko(l){return Dt(this,l).get(l)}function Uo(l){return Dt(this,l).has(l)}function Go(l,p){return Dt(this,l).set(l,p),this}Ue.prototype.clear=Po,Ue.prototype.delete=Mo,Ue.prototype.get=ko,Ue.prototype.has=Uo,Ue.prototype.set=Go;function Ge(l){this.__data__=new fe(l)}function Ho(){this.__data__=new fe}function Bo(l){return this.__data__.delete(l)}function Yo(l){return this.__data__.get(l)}function Vo(l){return this.__data__.has(l)}function qo(l,p){var g=this.__data__;if(g instanceof fe){var $=g.__data__;if(!ut||$.length<r-1)return $.push([l,p]),this;g=this.__data__=new Ue($)}return g.set(l,p),this}Ge.prototype.clear=Ho,Ge.prototype.delete=Bo,Ge.prototype.get=Yo,Ge.prototype.has=Vo,Ge.prototype.set=qo;function Xo(l,p){var g=wr(l)||va(l)?uo(l.length,String):[],$=g.length,Y=!!$;for(var W in l)$e.call(l,W)&&!(Y&&(W=="length"||pa(W,$)))&&g.push(W);return g}function jn(l,p,g){var $=l[p];(!($e.call(l,p)&&kn($,g))||g===void 0&&!(p in l))&&(l[p]=g)}function jt(l,p){for(var g=l.length;g--;)if(kn(l[g][0],p))return g;return-1}function Wo(l,p){return l&&Dn(p,Cr(p),l)}function Ar(l,p,g,$,Y,W,he){var K;if($&&(K=W?$(l,Y,W,he):$(l)),K!==void 0)return K;if(!Pt(l))return l;var Hn=wr(l);if(Hn){if(K=ua(l),!p)return aa(l,K)}else{var Be=Oe(l),Bn=Be==u||Be==f;if(Ea(l))return ea(l,p);if(Be==v||Be==s||Bn&&!W){if(wn(l))return W?l:{};if(K=fa(Bn?{}:l),!p)return la(l,Wo(K,l))}else{if(!b[Be])return W?l:{};K=ha(l,Be,Ar,p)}}he||(he=new Ge);var Yn=he.get(l);if(Yn)return Yn;if(he.set(l,K),!Hn)var Vn=g?ca(l):Cr(l);return lo(Vn||l,function(Sr,Mt){Vn&&(Mt=Sr,Sr=l[Mt]),jn(K,Mt,Ar(Sr,p,g,$,Mt,l,he))}),K}function Ko(l){return Pt(l)?vo(l):{}}function zo(l,p,g){var $=p(l);return wr(l)?$:co($,g(l))}function Jo(l){return Lt.call(l)}function Zo(l){if(!Pt(l)||ma(l))return!1;var p=Gn(l)||wn(l)?mo:A;return p.test(_e(l))}function Qo(l){if(!Mn(l))return $o(l);var p=[];for(var g in Object(l))$e.call(l,g)&&g!="constructor"&&p.push(g);return p}function ea(l,p){if(p)return l.slice();var g=new l.constructor(l.length);return l.copy(g),g}function br(l){var p=new l.constructor(l.byteLength);return new In(p).set(new In(l)),p}function ta(l,p){var g=p?br(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function ra(l,p,g){var $=p?g(Cn(l),!0):Cn(l);return bn($,oo,new l.constructor)}function na(l){var p=new l.constructor(l.source,S.exec(l));return p.lastIndex=l.lastIndex,p}function ia(l,p,g){var $=p?g(Sn(l),!0):Sn(l);return bn($,ao,new l.constructor)}function sa(l){return Ln?Object(Ln.call(l)):{}}function oa(l,p){var g=p?br(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function aa(l,p){var g=-1,$=l.length;for(p||(p=Array($));++g<$;)p[g]=l[g];return p}function Dn(l,p,g,$){g||(g={});for(var Y=-1,W=p.length;++Y<W;){var he=p[Y],K=void 0;jn(g,he,K===void 0?l[he]:K)}return g}function la(l,p){return Dn(l,Pn(l),p)}function ca(l){return zo(l,Cr,Pn)}function Dt(l,p){var g=l.__data__;return da(p)?g[typeof p=="string"?"string":"hash"]:g.map}function He(l,p){var g=fo(l,p);return Zo(g)?g:void 0}var Pn=Fn?gr(Fn,Object):Aa,Oe=Jo;(yr&&Oe(new yr(new ArrayBuffer(1)))!=ae||ut&&Oe(new ut)!=m||Er&&Oe(Er.resolve())!=_||xr&&Oe(new xr)!=k||$r&&Oe(new $r)!=oe)&&(Oe=function(l){var p=Lt.call(l),g=p==v?l.constructor:void 0,$=g?_e(g):void 0;if($)switch($){case Ao:return ae;case bo:return m;case wo:return _;case Co:return k;case So:return oe}return p});function ua(l){var p=l.length,g=l.constructor(p);return p&&typeof l[0]=="string"&&$e.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function fa(l){return typeof l.constructor=="function"&&!Mn(l)?Ko(go(l)):{}}function ha(l,p,g,$){var Y=l.constructor;switch(p){case ct:return br(l);case c:case a:return new Y(+l);case ae:return ta(l,$);case Me:case Ce:case ke:case Rt:case It:case Ft:case E:case y:case O:return oa(l,$);case m:return ra(l,$,g);case d:case L:return new Y(l);case x:return na(l);case k:return ia(l,$,g);case Z:return sa(l)}}function pa(l,p){return p=p??i,!!p&&(typeof l=="number"||T.test(l))&&l>-1&&l%1==0&&l<p}function da(l){var p=typeof l;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?l!=="__proto__":l===null}function ma(l){return!!On&&On in l}function Mn(l){var p=l&&l.constructor,g=typeof p=="function"&&p.prototype||Nt;return l===g}function _e(l){if(l!=null){try{return _n.call(l)}catch{}try{return l+""}catch{}}return""}function ga(l){return Ar(l,!0,!0)}function kn(l,p){return l===p||l!==l&&p!==p}function va(l){return ya(l)&&$e.call(l,"callee")&&(!yo.call(l,"callee")||Lt.call(l)==s)}var wr=Array.isArray;function Un(l){return l!=null&&xa(l.length)&&!Gn(l)}function ya(l){return $a(l)&&Un(l)}var Ea=xo||ba;function Gn(l){var p=Pt(l)?Lt.call(l):"";return p==u||p==f}function xa(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=i}function Pt(l){var p=typeof l;return!!l&&(p=="object"||p=="function")}function $a(l){return!!l&&typeof l=="object"}function Cr(l){return Un(l)?Xo(l):Qo(l)}function Aa(){return[]}function ba(){return!1}e.exports=ga})(rr,rr.exports);var Hs=rr.exports;const mn=ir(Hs);var gn={exports:{}},Mr,Pi;function zp(){return Pi||(Pi=1,Mr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Mr}var Jp=F;F.Node=Pe;F.create=F;function F(e){var t=this;if(t instanceof F||(t=new F),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}F.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};F.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++}};F.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++}};F.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Qp(this,arguments[e]);return this.length};F.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ed(this,arguments[e]);return this.length};F.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}};F.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}};F.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};F.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};F.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};F.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};F.prototype.map=function(e,t){t=t||this;for(var r=new F,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};F.prototype.mapReverse=function(e,t){t=t||this;for(var r=new F,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};F.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};F.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};F.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};F.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};F.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 F;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};F.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 F;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};F.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;n!==null&&r<e;r++)n=n.next;for(var i=[],r=0;n&&r<t;r++)i.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var r=2;r<arguments.length;r++)n=Zp(this,n,arguments[r]);return i};F.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 Zp(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 Qp(e,t){e.tail=new Pe(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ed(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{zp()(F)}catch{}const td=Jp,Re=Symbol("max"),ge=Symbol("length"),Xe=Symbol("lengthCalculator"),yt=Symbol("allowStale"),Ne=Symbol("maxAge"),de=Symbol("dispose"),Mi=Symbol("noDisposeOnSet"),H=Symbol("lruList"),ne=Symbol("cache"),Bs=Symbol("updateAgeOnGet"),kr=()=>1;class rd{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[Re]=t.max||1/0;const r=t.length||kr;if(this[Xe]=typeof r!="function"?kr: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[de]=t.dispose,this[Mi]=t.noDisposeOnSet||!1,this[Bs]=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[Re]=t||1/0,dt(this)}get max(){return this[Re]}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=kr),t!==this[Xe]&&(this[Xe]=t,this[ge]=0,this[H].forEach(r=>{r.length=this[Xe](r.value,r.key),this[ge]+=r.length})),dt(this)}get lengthCalculator(){return this[Xe]}get length(){return this[ge]}get itemCount(){return this[H].length}rforEach(t,r){r=r||this;for(let n=this[H].tail;n!==null;){const i=n.prev;ki(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[H].head;n!==null;){const i=n.next;ki(this,t,n,r),n=i}}keys(){return this[H].toArray().map(t=>t.key)}values(){return this[H].toArray().map(t=>t.value)}reset(){this[de]&&this[H]&&this[H].length&&this[H].forEach(t=>this[de](t.key,t.value)),this[ne]=new Map,this[H]=new td,this[ge]=0}dump(){return this[H].map(t=>nr(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[H]}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[ne].has(t)){if(s>this[Re])return tt(this,this[ne].get(t)),!1;const a=this[ne].get(t).value;return this[de]&&(this[Mi]||this[de](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[ge]+=s-a.length,a.length=s,this.get(t),dt(this),!0}const o=new nd(t,r,s,i,n);return o.length>this[Re]?(this[de]&&this[de](t,r),!1):(this[ge]+=o.length,this[H].unshift(o),this[ne].set(t,this[H].head),dt(this),!0)}has(t){if(!this[ne].has(t))return!1;const r=this[ne].get(t).value;return!nr(this,r)}get(t){return Ur(this,t,!0)}peek(t){return Ur(this,t,!1)}pop(){const t=this[H].tail;return t?(tt(this,t),t.value):null}del(t){tt(this,this[ne].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[ne].forEach((t,r)=>Ur(this,r,!1))}}const Ur=(e,t,r)=>{const n=e[ne].get(t);if(n){const i=n.value;if(nr(e,i)){if(tt(e,n),!e[yt])return}else r&&(e[Bs]&&(n.value.now=Date.now()),e[H].unshiftNode(n));return i.value}},nr=(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[ge]>e[Re])for(let t=e[H].tail;e[ge]>e[Re]&&t!==null;){const r=t.prev;tt(e,t),t=r}},tt=(e,t)=>{if(t){const r=t.value;e[de]&&e[de](r.key,r.value),e[ge]-=r.length,e[ne].delete(r.key),e[H].removeNode(t)}};class nd{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const ki=(e,t,r,n)=>{let i=r.value;nr(e,i)&&(tt(e,r),e[yt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var id=rd;gn.exports=ld;const Ui=Ee,Gi=Ca,mt=Jr,sd=sr("snyk:resolve:try-require"),Hi=Hs,od=id,ad={max:100,maxAge:1e3*60*60},Kr=new od(ad),Gr={readFile:Gi.promisify(Ui.readFile),stat:Gi.promisify(Ui.stat)};gn.exports.cache=Kr;function ld(e){const t=Kr.get(e);if(t){const r=Hi(t);return process.env.TAP&&(r.__cached=!0),Promise.resolve(r)}return Gr.readFile(e,"utf8").then(function(r){let n="";r&&r[0]==="\uFEFF"&&(r=r.slice(1),n="\uFEFF");const i=JSON.parse(r);return i.leading=n+r.match(/^(\s*){/)[1],i.trailing=r.match(/}(\s*)$/)[1],i}).catch(function(r){return sd("tryRequire silently failing on %s",r.message),null}).then(function(r){if(!r)return r;r.devDependencies||(r.devDependencies={}),r.dependencies||(r.dependencies={}),r.name||(r.name=mt.basename(mt.dirname(e))),r.__filename=e;const n=mt.dirname(e),i=[Gr.stat(mt.resolve(n,".snyk")).catch(Bi),Gr.stat(mt.resolve(n,"npm-shrinkwrap.json")).catch(Bi)];return Promise.all(i).then(function(s){return r.snyk||(r.snyk=s[0].isFile()),r.snyk&&(r.snyk=n),s[1].isFile()&&(r.shrinkwrap=!0),r})}).then(function(r){return Kr.set(e,r),Hi(r)})}const Bi=function(){return{isFile:function(){return!1}}};var cd=gn.exports;const ud=ir(cd);var fd=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,hd=function(e){if(!e||e.length>254)return!1;var t=fd.test(e);if(!t)return!1;var r=e.split("@");if(r[0].length>64)return!1;var n=r[1].split(".");return!n.some(function(i){return i.length>63})};const pd=["not-vulnerable","wont-fix","temporary-ignore"];function Hr(e,t,r){if(t!=="ignore"&&t!=="patch")throw new Error('policy.add: unknown type "'+t+'" to add to');if(!r||!r.id||!r.path)throw new Error("policy.add: required option props { id, path }");const n=r.id,i=r.path;if(r.reasonType&&pd.indexOf(r.reasonType)===-1)throw new Error("invalid reasonType "+r.reasonType);if(r.ignoredBy){if(typeof r.ignoredBy!="object")throw new Error("ignoredBy must be an object");if(!hd(r.ignoredBy.email))throw new Error("ignoredBy.email must be a valid email address")}const s={...r};e[t][n]||(e[t][n]=[]);const o={};return o[i]=s,e[t][n].push(o),e}function dd(e,t,r="global",n={}){if(!md(r))throw new Error("invalid file pattern-group");e.exclude=e.exclude??{};let i=e.exclude[r]??[];i=i.filter(o=>typeof o=="string"?o!==t:!o[t]),n.created=new Date;const s=!n.expires&&!n.reason?t:{[t]:n};e.exclude[r]=[...i,s]}function md(e){return["global","code","iac-drift"].includes(e)}const We=we("snyk:policy");function gd(e,t,r=[],n="packageManager"){if(!e)return t;We("filtering ignored");const i=new Date().toJSON();return t.map(s=>{const o=vd(s),c=Ed(s.id,e);if(!e[c]&&!o)return s;We("%s has rules",s.id);let a=[];if(o){const h=s.securityPolicyMetaData.ignore,{created:u,disregardIfFixable:f,ignoredBy:m,path:d,reason:v="",reasonType:_,source:x}=h;a=[{[d[0]]:{reason:v,reasonType:_,source:x,ignoredBy:m,created:u,disregardIfFixable:f}}]}else a=e[c].filter(h=>{const u=Object.keys(h)[0];let f=h[u].expires;f&&f instanceof Date&&(f=f.toJSON());const m=bt(s,h,n);return m&&f&&f<i?(We("%s vuln rule has expired (%s)",s.id,f),!1):m&&h[u].disregardIfFixable&&(s.isUpgradable||s.isPatchable)?(We("%s vuln is fixable and rule is set to disregard if fixable",s.id),!1):m?(We.enabled&&We("ignoring based on path match: %s ~= %s",u,s.from.slice(1).join(" > ")),!0):!1});return a.length&&(s.filtered={ignored:a.map(h=>{const u=Object.keys(h)[0],f=mn(h[u]);return f.path=u.split(" > "),f})},r.push(s)),a.length?null:s}).filter(yd)}const vd=e=>!!(e.securityPolicyMetaData&&e.securityPolicyMetaData.ignore),yd=e=>e!==null;function Ed(e,t){const r=Object.keys(t).find(n=>n.toUpperCase()===e.toUpperCase());return r||e}const Ke=we("snyk:policy");function xd(e,t){if(!e)return t;Ke("attaching notes");const r=new Date().toJSON();return t.map(n=>(e[n.id]&&(Ke("%s has rules",n.id),e[n.id].forEach(i=>{var a,h,u;const s=Object.keys(i)[0];let o=i[s].expires;const c=bt(n,i);if(o&&o instanceof Date&&(o=o.toJSON()),c&&o&&o<r)return Ke("%s vuln rule has expired (%s)",n.id,o),!1;if(c&&i[s].disregardIfFixable&&((a=n.upgradePath)!=null&&a.length||(h=n.patches)!=null&&h.length))return Ke("%s vuln is fixable and rule is set to disregard if fixable",n.id),!1;if(c){const f=(u=i[s].reason)==null?void 0:u.replace("/[\0--Ÿ]/u","");Ke.enabled&&Ke("adding note based on path match: %s ~= %s",s,n.from.slice(1).join(" > ")),n.note="Snyk policy in "+i[s].from+" suggests ignoring this issue, with reason: "+f}return!1})),n))}var vn={exports:{}},yn={exports:{}},lt={exports:{}};const $d=Object.keys,Ad=e=>Object.prototype.toString.call(e),En=e=>Ad(e).slice(8,-1).toLowerCase(),bd=e=>typeof e=="string"||En(e)==="string";function wd(e){if(En(e)!=="object")return!1;const t=Object.getPrototypeOf(e);return t==null?!0:(t.constructor&&t.constructor.toString())===Object.toString()}function Cd(e,t,r=null){for(const[n,i]of e.entries())if(t.call(r,i,n,e)===!1)return!1;return!0}function Sd(e,t){const r={};for(const n of $d(e)){const i=e[n];r[n]=t(i,n,e)}return r}var Od={isArrayOf:Cd,getType:En,isString:bd,isPlainObject:wd,map:Sd};const{isString:Ys,getType:st,isPlainObject:xn,isArrayOf:Vs,map:$n}=Od,qs=Array.isArray,An=e=>!/.+(Sync|Stream|Promise)$/.test(e);function Tt(e,t=null){if(typeof e!="function")throw TypeError(`Expected target function. Received ${st(e)}`);return function(...r){return t||(t=this),new Promise((n,i)=>{const s=(o,c)=>o?i(o):n(c);e.call(t,...r,s)})}}function _d(e,t){if(!xn(e))throw new TypeError(`Expected a plain object as targets. Received ${st(e)}`);return $n(e,(r,n)=>An(n)?Tt(r,t):r)}function Td(e,t,r){if(!xn(e))throw new TypeError(`Expected a plain object as targets. Received ${st(e)}`);if(!qs(t))throw new TypeError(`Expected list as an array. Received ${st(t)}`);if(!Vs(t,Ys))throw new TypeError("Each element in the list should be a string.");return $n(e,(n,i)=>An(i)&&t.includes(i)?Tt(n,r):n)}function Rd(e,t,r){if(!xn(e))throw new TypeError(`Expected a plain object as targets. Received ${st(e)}`);if(!qs(t))throw new TypeError(`Expected list as an array. Received ${st(t)}`);if(!Vs(t,Ys))throw new TypeError("Each element in the list should be a string.");return $n(e,(n,i)=>An(i)&&!t.includes(i)?Tt(n,r):n)}lt.exports=Tt;lt.exports.default=Tt;lt.exports.all=_d;lt.exports.some=Td;lt.exports.except=Rd;var Id=lt.exports;const Yi=Ee,Fd=Id,Nd=e=>typeof e=="function",Ld=["access","readFile","writeFile","copyFile","close","open","read","write","rename","rmdir","mkdir","readdir","stat","lstat","fstat","appendFile","realpath","link","unlink","readlink","chmod","fchmod","chown","fchown","lchown","fsync","utimes","futimes","ftruncate"],Xs=Fd.some(Yi,Ld.filter(e=>Nd(Yi[e])));yn.exports=Xs;yn.exports.default=Xs;var jd=yn.exports;vn.exports=Ks;vn.exports.sync=zs;var Ws=jd,ce=Jr,ye=sr("snyk:resolve");function Ks(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");return ye("%s: %s",e,r),Ws.stat(r).then(function(n){if(n.isFile())return ce.dirname(r)}).catch(function(n){if(ye("%s: not found on %s (root? %s)",e,t,zr(t)),zr(t))throw ye("at root"),n=new Error("package not found "+e),n.code="NO_PACKAGE_FOUND",n}).then(function(n){return n?(ye("%s: FOUND AT %s",e,n),n):(ye("%s: cycling down",e),Ks(e,ce.resolve(t,"..")))})}function zs(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");ye("%s: %s",e,r);var n=function(s){var o;try{o=Ws.statSync(s)}catch(c){if(c&&c.code==="ENOENT")return!1}return o.isFile()||o.isFIFO()};if(n(r))return ye("%s: FOUND AT %s",e,r),ce.dirname(r);if(zr(t)){ye("%s: not found on %s (now at root)",e,r);var i=new Error("package not found "+e);throw i.code="NO_PACKAGE_FOUND",i}return ye("%s: cycling down",e),zs(e,ce.resolve(t,".."))}function zr(e){var t=Dd(e);return t.root===t.dir&&!t.base}function Dd(e){if(ce.parse)return ce.parse(e);var t=e.split(ce.sep),r=t[0]+ce.sep;return{base:t[1],root:r,dir:e}}var Pd=vn.exports;const Md=ir(Pd),kd=we("snyk:policy");function Ud(e,t,r){var o;const n=e.from.slice(1).map(c=>ze(c).name),i=Q.resolve(t||process.cwd(),"node_modules",n.join("/node_modules/"));let s=e.__filename?Q.dirname(e.__filename):i;try{Ee.statSync(s)}catch{try{s=Md.sync((o=n.slice(-1))==null?void 0:o.pop(),i)}catch(a){throw a}kd("found better source for package: %s",s)}return s}const Vt=we("snyk:policy");function Gd(e,t,r,n,i=[]){return e?(Vt("filtering patched"),t.map(s=>{if(!e[s.id])return s;Vt("%s has rules",s.id);const c=e[s.id].map(a=>{if(bt(s,a)){const u=Object.keys(a)[0];return Vt("(patch) ignoring based on path match: %s ~= %s",u,s.from.slice(1).join(" > ")),a}return null}).filter(Vi).filter(()=>{if(n)return!0;const a=Ud(s,r),h=s.id.replace(/:/g,"-"),u=Q.resolve(a,".snyk-"+h+".flag"),f=Q.resolve(a,".snyk-"+s.id+".flag");let m=!1;try{m=Ee.statSync(u)}catch{try{m=Ee.statSync(f)}catch{}}return Vt("flag found for %s? %s",s.id),!!m});return c.length&&(s.filtered={patches:c.map(a=>{const h=Object.keys(a)[0],u=mn(a[h])||{};return u.path=h.split(" > "),u})},i.push(s)),c.length?null:s}).filter(Vi)):t}const Vi=e=>e!==null,Hd=we("snyk:policy");function Bd(e,t,r,n="packageManager"){r||(r=process.cwd());const i=e;if(e.ok)return i;const s={ignore:[],patch:[]};if(i.vulnerabilities=gd(t.ignore,i.vulnerabilities,s.ignore,n),i.vulnerabilities=Gd(t.patch,i.vulnerabilities,r,!!t.skipVerifyPatch,s.patch),t.suggest&&(i.vulnerabilities=xd(t.suggest,i.vulnerabilities)),i.vulnerabilities.length===0&&(i.ok=!0,i.vulnerabilities=[]),i.filtered=s,Hd("> has threshold? %s",t.failThreshold),t.failThreshold&&e.ok===!1){const o={critical:4,high:3,medium:2,low:1},c=o[t.failThreshold];i.ok=!0,i.vulnerabilities.some(a=>a.severity&&o[a.severity]>=c?(i.ok=!1,!0):!1)}return i}class mr extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,mr.prototype),this.code=r}}function Js(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zs(e){return e instanceof Error}const gt=we("snyk:policy"),Yd=()=>"v1.25.1",Vd=()=>eo("");function qd(){return Q.resolve(process.cwd(),".snyk")}function Qs(e){return e.filter=(t,r,n="packageManager")=>Bd(t,e,r||Q.dirname(e.__filename),n),e.save=(t,r)=>ro(e,t,r),e.toString=()=>io(e),e.demunge=t=>no(e,t),e.add=(t,r)=>Hr(e,t,r),e.addIgnore=t=>Hr(e,"ignore",t),e.addPatch=t=>Hr(e,"patch",t),e.addExclude=(t,r,n)=>dd(e,t,r,n),e}async function eo(e=""){const t=await zt(e),r=Date.now();return t.__filename="",t.__modified=r,t.__created=r,Qs(t)}function to(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=void 0),e||(e=process.cwd()),t||(t={});const r=!!t["ignore-policy"];let n="";Array.isArray(e)?n=e[0]:(e.indexOf(".snyk")===-1&&(e=Q.resolve(e,".snyk")),n=e),n.indexOf(".snyk")===-1&&(n=Q.resolve(n,".snyk"));try{Ee.lstatSync(n).isDirectory()&&(n=Q.join(n,"/.snyk"))}catch(o){if(Zs(o)&&o.code==="ENOENT")gt("ENOENT on file, while checking if directory");else throw o}const s=[new Promise(o=>{if(r)return o(zt());if(!r&&Array.isArray(e))return o(Xd(e,t).then(c=>(gt.enabled&&(gt("final policy:"),gt(JSON.stringify(c,null,2))),c)));o(Ee.promises.readFile(n,"utf8").then(zt))}),Ee.promises.stat(n).catch(()=>({}))];return Promise.all(s).catch(o=>{if(t!=null&&t.loose&&o.code==="ENOENT")return gt("ENOENT on file, but running loose"),[zt(),{}];throw o}).then(o=>{const c=o[0];return c.__modified=o[1].mtime,c.__created=o[1].birthtime||o[1].ctime,t!=null&&t.loose&&!c.__modified?c.__filename=null:c.__filename=Q.relative(process.cwd(),n),c}).then(Qs)}async function Xd(e,t){const r=t&&t["trust-policies"]?"ignore":"suggest",[n,...i]=await Promise.all(e.map(s=>to(s,t)));return await Promise.all(i.filter(s=>s.__filename).map(async s=>{const o=Q.dirname(s.__filename)+"/package.json",c=await ud(o),a=c.name+"@"+c.version;qi("ignore",r,a,n,s),qi("patch","patch",a,n,s)})),n}function qi(e,t,r,n,i){n[t]||(n[t]={}),Object.keys(i[e]).forEach(s=>{if(i[e][s]=i[e][s].map(o=>{const c=Object.keys(o).pop(),a={};return a[r+" > "+c]=o[c],o[c]=o[c]||{},o[c].from=r,a}),!n[t][s]){n[t][s]=i[e][s];return}n[t][s]=n[t][s].concat(i[e][s])})}async function ro(e,t,r){const n=t?Q.resolve(t,".snyk"):qd(),i="Saving .snyk policy file...";if(!r){const o=c=>Promise.resolve(c);o.clear=o,r=o}await r(i);const s=await io(e);return await Ee.promises.writeFile(n,s),r.clear(i)}const Wd="# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.",Xi={ignore:"# ignores vulnerabilities until expiry date; change duration by modifying expiry date",patch:"# patches apply the minimum changes required to fix a vulnerability"};function Kd(e){const t=e.split(`
39
- `);t.unshift(Wd);for(const r in Xi){const n=r,i=t.indexOf(n+":");i!==-1&&t.splice(i,0,Xi[n])}return t.join(`
40
- `)}function zd(e){if(e.ignore||(e.ignore={}),e.patch||(e.patch={}),(r=>Object.prototype.toString.call(r)==="[object Object]")(e.patch))for(const r in e.patch)Array.isArray(e.patch[r])||delete e.patch[r];return Jd(e.ignore),Wi(e.ignore),Wi(e.patch),e.failThreshold=Qd(e),e.failThreshold||delete e.failThreshold,e}function Jd(e){if(e0(e)){for(const t in e)if(e[t]&&!Array.isArray(e[t])){const r=new Error("old, unsupported .snyk format detected");throw r.code="OLD_DOTFILE_FORMAT",r}}}function Wi(e){for(const[r,n]of Object.entries(e)){e[r]=n??[];for(const i of e[r])for(const s in i)i[s]=i[s]??{}}const t=Zd(e);t&&t.forEach(r=>{const n={};n[r.key]=r.rule,e[r.id].push(n)})}function Zd(e){const t=[];for(const r in e)for(const n of e[r]){const i=Object.keys(n);if(i.shift(),i===0)return;i.forEach(s=>{t.push({id:r,key:s,rule:n[s]}),delete n[s]})}return t.length?t:!1}function Qd(e){const t=["failThreshold","fail_threshold","failthreshold","threshold","fail_threshhold"].map(n=>e[n]).find(n=>n);if(!t||typeof t!="string")return null;const r=t.toLowerCase().trim();if(!t0(r))throw new mr('unknown threshold value "'+r+'"',"POLICY_BAD_THRESHOLD");return r}const e0=e=>Object.prototype.toString.call(e)==="[object Object]";function t0(e){return["high","medium","low"].indexOf(e)>-1}function no(e,t){const r=["ignore","patch","exclude"].reduce((n,i)=>{const s=e[i];return n[i]=s?Object.keys(s).map(o=>{const c=s[o].map(a=>{if(i==="exclude"&&typeof a=="string")return{path:a};const h=a,u=Object.keys(h).pop(),f={path:u};if(i==="ignore"||i==="exclude"){const m=h[u].expires;f.reason=h[u].reason,f.expires=m?new Date(m):void 0,f.disregardIfFixable=h[u].disregardIfFixable}return f});return{id:o,url:r0(o,t)+"/vuln/"+o,paths:c}}):[],n},{});return r.version=e.version,r}function r0(e,t){return t==null?"":typeof t=="function"?t(e):t}const n0="v1",i0={v1:zd};function zt(e=""){const t=Gs.load(e),r=Js(t)?t:{};let i=(o=>typeof o.version=="string")(r)?r.version:n0;i==="v1"&&(i="v1.0.0"),r.version=i;const s=i0["v"+Vr.major(i.substr(1))];if(!s)throw new Error("unsupported version: "+r.version);return s(r)}function io(e){const t=mn(e);for(const r in t){const n=r;n.indexOf("__")===0&&delete t[n],t[n]==null&&delete t[n],typeof t[n]=="function"&&delete t[n]}return t.version=Yd(),Kd(Gs.dump(t))}exports.PolicyError=mr;exports.create=Vd;exports.demunge=no;exports.getByVuln=Qu;exports.isNodeError=Zs;exports.isObject=Js;exports.load=to;exports.loadFromText=eo;exports.matchToRule=bt;exports.save=ro;
37
+ `+e.slice(o+1):a+=e.slice(i),a.slice(1)}function Yp(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=Ii((r-55296)*1024+n-56320+65536),s++;continue}i=q[r],t+=!i&&st(r)?e[s]:i||Ii(r)}return t}function Vp(e,t,r){var n="",i=e.tag,s,o;for(s=0,o=r.length;s<o;s+=1)Me(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function qp(e,t,r,n){var i="",s=e.tag,o,c;for(o=0,c=r.length;o<c;o+=1)Me(e,t+1,r[o],!0,!0)&&((!n||o!==0)&&(i+=Wr(e,t)),e.dump&&At===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Xp(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,c,a,u,f;for(o=0,c=s.length;o<c;o+=1)f="",o!==0&&(f+=", "),e.condenseFlow&&(f+='"'),a=s[o],u=r[a],Me(e,t,a,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Me(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function Wp(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),c,a,u,f,h,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Rt("sortKeys must be a boolean or a function");for(c=0,a=o.length;c<a;c+=1)m="",(!n||c!==0)&&(m+=Wr(e,t)),u=o[c],f=r[u],Me(e,t+1,u,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&At===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,h&&(m+=Wr(e,t)),Me(e,t+1,f,!0,h)&&(e.dump&&At===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function Pi(e,t,r){var n,i,s,o,c,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,Os.call(c.represent)==="[object Function]")n=c.represent(t,a);else if(_s.call(c.represent,a))n=c.represent[a](t,a);else throw new Rt("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');e.dump=n}return!0}return!1}function Me(e,t,r,n,i,s){e.tag=null,e.dump=r,Pi(e,r,!1)||Pi(e,r,!0);var o=Os.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",a,u;if(c&&(a=e.duplicates.indexOf(r),u=a!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(c&&u&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(Wp(e,t,e.dump,i),u&&(e.dump="&ref_"+a+e.dump)):(Xp(e,t,e.dump),u&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(qp(e,f,e.dump,i),u&&(e.dump="&ref_"+a+e.dump)):(Vp(e,f,e.dump),u&&(e.dump="&ref_"+a+" "+e.dump))}else if(o==="[object String]")e.tag!=="?"&&Hp(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Rt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Kp(e,t){var r=[],n=[],i,s;for(Kr(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Kr(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Kr(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Kr(e[n[i]],t,r)}function Gs(e,t){t=t||{};var r=new Pp(t);return r.noRefs||Kp(e,r),Me(r,0,e,!0,!0)?r.dump+`
38
+ `:""}function zp(e,t){return Gs(e,Tt.extend({schema:yp},t))}dn.dump=Gs;dn.safeDump=zp;var dr=St,Hs=dn;function mr(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}P.Type=H;P.Schema=lt;P.FAILSAFE_SCHEMA=un;P.JSON_SCHEMA=us;P.CORE_SCHEMA=fs;P.DEFAULT_SAFE_SCHEMA=_t;P.DEFAULT_FULL_SCHEMA=hr;P.load=dr.load;P.loadAll=dr.loadAll;P.safeLoad=dr.safeLoad;P.safeLoadAll=dr.safeLoadAll;P.dump=Hs.dump;P.safeDump=Hs.safeDump;P.YAMLException=Ot;P.MINIMAL_SCHEMA=un;P.SAFE_SCHEMA=_t;P.DEFAULT_SCHEMA=hr;P.scan=mr("scan");P.parse=mr("parse");P.compose=mr("compose");P.addConstructor=mr("addConstructor");var Jp=P,Bs=Jp,nr={exports:{}};nr.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",c="[object Boolean]",a="[object Date]",u="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",d="[object Number]",v="[object Object]",_="[object Promise]",A="[object RegExp]",M="[object Set]",te="[object String]",j="[object Symbol]",oe="[object WeakMap]",ut="[object ArrayBuffer]",ae="[object DataView]",Ue="[object Float32Array]",we="[object Float64Array]",Ge="[object Int8Array]",Ft="[object Int16Array]",Nt="[object Int32Array]",Lt="[object Uint8Array]",jt="[object Uint8ClampedArray]",x="[object Uint16Array]",y="[object Uint32Array]",S=/[\\^$.*+?()[\]{}|]/g,b=/\w*$/,O=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,E={};E[s]=E[o]=E[ut]=E[ae]=E[c]=E[a]=E[Ue]=E[we]=E[Ge]=E[Ft]=E[Nt]=E[m]=E[d]=E[v]=E[A]=E[M]=E[te]=E[j]=E[Lt]=E[jt]=E[x]=E[y]=!0,E[u]=E[f]=E[oe]=!1;var N=typeof Ht=="object"&&Ht&&Ht.Object===Object&&Ht,T=typeof self=="object"&&self&&self.Object===Object&&self,R=N||T||Function("return this")(),V=t&&!t.nodeType&&t,D=V&&!0&&e&&!e.nodeType&&e,Se=D&&D.exports===V;function co(l,p){return l.set(p[0],p[1]),l}function uo(l,p){return l.add(p),l}function fo(l,p){for(var g=-1,$=l?l.length:0;++g<$&&p(l[g],g,l)!==!1;);return l}function ho(l,p){for(var g=-1,$=p.length,B=l.length;++g<$;)l[B+g]=p[g];return l}function Cn(l,p,g,$){for(var B=-1,W=l?l.length:0;++B<W;)g=p(g,l[B],B,l);return g}function po(l,p){for(var g=-1,$=Array(l);++g<l;)$[g]=p(g);return $}function mo(l,p){return l==null?void 0:l[p]}function wn(l){var p=!1;if(l!=null&&typeof l.toString!="function")try{p=!!(l+"")}catch{}return p}function Sn(l){var p=-1,g=Array(l.size);return l.forEach(function($,B){g[++p]=[B,$]}),g}function vr(l,p){return function(g){return l(p(g))}}function On(l){var p=-1,g=Array(l.size);return l.forEach(function($){g[++p]=$}),g}var go=Array.prototype,vo=Function.prototype,Dt=Object.prototype,yr=R["__core-js_shared__"],_n=function(){var l=/[^.]+$/.exec(yr&&yr.keys&&yr.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Tn=vo.toString,xe=Dt.hasOwnProperty,Pt=Dt.toString,yo=RegExp("^"+Tn.call(xe).replace(S,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rn=Se?R.Buffer:void 0,In=R.Symbol,Fn=R.Uint8Array,Eo=vr(Object.getPrototypeOf,Object),xo=Object.create,$o=Dt.propertyIsEnumerable,Ao=go.splice,Nn=Object.getOwnPropertySymbols,bo=Rn?Rn.isBuffer:void 0,Co=vr(Object.keys,Object),Er=Ye(R,"DataView"),ft=Ye(R,"Map"),xr=Ye(R,"Promise"),$r=Ye(R,"Set"),Ar=Ye(R,"WeakMap"),ht=Ye(Object,"create"),wo=Te(Er),So=Te(ft),Oo=Te(xr),_o=Te($r),To=Te(Ar),Ln=In?In.prototype:void 0,jn=Ln?Ln.valueOf:void 0;function Oe(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Ro(){this.__data__=ht?ht(null):{}}function Io(l){return this.has(l)&&delete this.__data__[l]}function Fo(l){var p=this.__data__;if(ht){var g=p[l];return g===n?void 0:g}return xe.call(p,l)?p[l]:void 0}function No(l){var p=this.__data__;return ht?p[l]!==void 0:xe.call(p,l)}function Lo(l,p){var g=this.__data__;return g[l]=ht&&p===void 0?n:p,this}Oe.prototype.clear=Ro,Oe.prototype.delete=Io,Oe.prototype.get=Fo,Oe.prototype.has=No,Oe.prototype.set=Lo;function fe(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function jo(){this.__data__=[]}function Do(l){var p=this.__data__,g=Mt(p,l);if(g<0)return!1;var $=p.length-1;return g==$?p.pop():Ao.call(p,g,1),!0}function Po(l){var p=this.__data__,g=Mt(p,l);return g<0?void 0:p[g][1]}function Mo(l){return Mt(this.__data__,l)>-1}function ko(l,p){var g=this.__data__,$=Mt(g,l);return $<0?g.push([l,p]):g[$][1]=p,this}fe.prototype.clear=jo,fe.prototype.delete=Do,fe.prototype.get=Po,fe.prototype.has=Mo,fe.prototype.set=ko;function He(l){var p=-1,g=l?l.length:0;for(this.clear();++p<g;){var $=l[p];this.set($[0],$[1])}}function Uo(){this.__data__={hash:new Oe,map:new(ft||fe),string:new Oe}}function Go(l){return kt(this,l).delete(l)}function Ho(l){return kt(this,l).get(l)}function Bo(l){return kt(this,l).has(l)}function Yo(l,p){return kt(this,l).set(l,p),this}He.prototype.clear=Uo,He.prototype.delete=Go,He.prototype.get=Ho,He.prototype.has=Bo,He.prototype.set=Yo;function Be(l){this.__data__=new fe(l)}function Vo(){this.__data__=new fe}function qo(l){return this.__data__.delete(l)}function Xo(l){return this.__data__.get(l)}function Wo(l){return this.__data__.has(l)}function Ko(l,p){var g=this.__data__;if(g instanceof fe){var $=g.__data__;if(!ft||$.length<r-1)return $.push([l,p]),this;g=this.__data__=new He($)}return g.set(l,p),this}Be.prototype.clear=Vo,Be.prototype.delete=qo,Be.prototype.get=Xo,Be.prototype.has=Wo,Be.prototype.set=Ko;function zo(l,p){var g=wr(l)||xa(l)?po(l.length,String):[],$=g.length,B=!!$;for(var W in l)xe.call(l,W)&&!(B&&(W=="length"||ga(W,$)))&&g.push(W);return g}function Dn(l,p,g){var $=l[p];(!(xe.call(l,p)&&Un($,g))||g===void 0&&!(p in l))&&(l[p]=g)}function Mt(l,p){for(var g=l.length;g--;)if(Un(l[g][0],p))return g;return-1}function Jo(l,p){return l&&Pn(p,Sr(p),l)}function br(l,p,g,$,B,W,he){var K;if($&&(K=W?$(l,B,W,he):$(l)),K!==void 0)return K;if(!Ut(l))return l;var Bn=wr(l);if(Bn){if(K=pa(l),!p)return ua(l,K)}else{var Ve=_e(l),Yn=Ve==f||Ve==h;if(Aa(l))return na(l,p);if(Ve==v||Ve==s||Yn&&!W){if(wn(l))return W?l:{};if(K=da(Yn?{}:l),!p)return fa(l,Jo(K,l))}else{if(!E[Ve])return W?l:{};K=ma(l,Ve,br,p)}}he||(he=new Be);var Vn=he.get(l);if(Vn)return Vn;if(he.set(l,K),!Bn)var qn=g?ha(l):Sr(l);return fo(qn||l,function(Or,Gt){qn&&(Gt=Or,Or=l[Gt]),Dn(K,Gt,br(Or,p,g,$,Gt,l,he))}),K}function Zo(l){return Ut(l)?xo(l):{}}function Qo(l,p,g){var $=p(l);return wr(l)?$:ho($,g(l))}function ea(l){return Pt.call(l)}function ta(l){if(!Ut(l)||ya(l))return!1;var p=Hn(l)||wn(l)?yo:O;return p.test(Te(l))}function ra(l){if(!kn(l))return Co(l);var p=[];for(var g in Object(l))xe.call(l,g)&&g!="constructor"&&p.push(g);return p}function na(l,p){if(p)return l.slice();var g=new l.constructor(l.length);return l.copy(g),g}function Cr(l){var p=new l.constructor(l.byteLength);return new Fn(p).set(new Fn(l)),p}function ia(l,p){var g=p?Cr(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function sa(l,p,g){var $=p?g(Sn(l),!0):Sn(l);return Cn($,co,new l.constructor)}function oa(l){var p=new l.constructor(l.source,b.exec(l));return p.lastIndex=l.lastIndex,p}function aa(l,p,g){var $=p?g(On(l),!0):On(l);return Cn($,uo,new l.constructor)}function la(l){return jn?Object(jn.call(l)):{}}function ca(l,p){var g=p?Cr(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function ua(l,p){var g=-1,$=l.length;for(p||(p=Array($));++g<$;)p[g]=l[g];return p}function Pn(l,p,g,$){g||(g={});for(var B=-1,W=p.length;++B<W;){var he=p[B],K=void 0;Dn(g,he,K===void 0?l[he]:K)}return g}function fa(l,p){return Pn(l,Mn(l),p)}function ha(l){return Qo(l,Sr,Mn)}function kt(l,p){var g=l.__data__;return va(p)?g[typeof p=="string"?"string":"hash"]:g.map}function Ye(l,p){var g=mo(l,p);return ta(g)?g:void 0}var Mn=Nn?vr(Nn,Object):wa,_e=ea;(Er&&_e(new Er(new ArrayBuffer(1)))!=ae||ft&&_e(new ft)!=m||xr&&_e(xr.resolve())!=_||$r&&_e(new $r)!=M||Ar&&_e(new Ar)!=oe)&&(_e=function(l){var p=Pt.call(l),g=p==v?l.constructor:void 0,$=g?Te(g):void 0;if($)switch($){case wo:return ae;case So:return m;case Oo:return _;case _o:return M;case To:return oe}return p});function pa(l){var p=l.length,g=l.constructor(p);return p&&typeof l[0]=="string"&&xe.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function da(l){return typeof l.constructor=="function"&&!kn(l)?Zo(Eo(l)):{}}function ma(l,p,g,$){var B=l.constructor;switch(p){case ut:return Cr(l);case c:case a:return new B(+l);case ae:return ia(l,$);case Ue:case we:case Ge:case Ft:case Nt:case Lt:case jt:case x:case y:return ca(l,$);case m:return sa(l,$,g);case d:case te:return new B(l);case A:return oa(l);case M:return aa(l,$,g);case j:return la(l)}}function ga(l,p){return p=p??i,!!p&&(typeof l=="number"||C.test(l))&&l>-1&&l%1==0&&l<p}function va(l){var p=typeof l;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?l!=="__proto__":l===null}function ya(l){return!!_n&&_n in l}function kn(l){var p=l&&l.constructor,g=typeof p=="function"&&p.prototype||Dt;return l===g}function Te(l){if(l!=null){try{return Tn.call(l)}catch{}try{return l+""}catch{}}return""}function Ea(l){return br(l,!0,!0)}function Un(l,p){return l===p||l!==l&&p!==p}function xa(l){return $a(l)&&xe.call(l,"callee")&&(!$o.call(l,"callee")||Pt.call(l)==s)}var wr=Array.isArray;function Gn(l){return l!=null&&ba(l.length)&&!Hn(l)}function $a(l){return Ca(l)&&Gn(l)}var Aa=bo||Sa;function Hn(l){var p=Ut(l)?Pt.call(l):"";return p==f||p==h}function ba(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=i}function Ut(l){var p=typeof l;return!!l&&(p=="object"||p=="function")}function Ca(l){return!!l&&typeof l=="object"}function Sr(l){return Gn(l)?zo(l):ra(l)}function wa(){return[]}function Sa(){return!1}e.exports=Ea})(nr,nr.exports);var Ys=nr.exports;const gn=sr(Ys);var vn={exports:{}},kr,Mi;function Zp(){return Mi||(Mi=1,kr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),kr}var Qp=F;F.Node=ke;F.create=F;function F(e){var t=this;if(t instanceof F||(t=new F),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}F.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};F.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++}};F.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++}};F.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)td(this,arguments[e]);return this.length};F.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)rd(this,arguments[e]);return this.length};F.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}};F.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}};F.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};F.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};F.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};F.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};F.prototype.map=function(e,t){t=t||this;for(var r=new F,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};F.prototype.mapReverse=function(e,t){t=t||this;for(var r=new F,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};F.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};F.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};F.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};F.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};F.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 F;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};F.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 F;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};F.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;n!==null&&r<e;r++)n=n.next;for(var i=[],r=0;n&&r<t;r++)i.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var r=2;r<arguments.length;r++)n=ed(this,n,arguments[r]);return i};F.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 ed(e,t,r){var n=t===e.head?new ke(r,null,t,e):new ke(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function td(e,t){e.tail=new ke(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function rd(e,t){e.head=new ke(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function ke(e,t,r,n){if(!(this instanceof ke))return new ke(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{Zp()(F)}catch{}const nd=Qp,Fe=Symbol("max"),ge=Symbol("length"),Ke=Symbol("lengthCalculator"),xt=Symbol("allowStale"),je=Symbol("maxAge"),de=Symbol("dispose"),ki=Symbol("noDisposeOnSet"),G=Symbol("lruList"),ne=Symbol("cache"),Vs=Symbol("updateAgeOnGet"),Ur=()=>1;class id{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[Fe]=t.max||1/0;const r=t.length||Ur;if(this[Ke]=typeof r!="function"?Ur:r,this[xt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[je]=t.maxAge||0,this[de]=t.dispose,this[ki]=t.noDisposeOnSet||!1,this[Vs]=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[Fe]=t||1/0,mt(this)}get max(){return this[Fe]}set allowStale(t){this[xt]=!!t}get allowStale(){return this[xt]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[je]=t,mt(this)}get maxAge(){return this[je]}set lengthCalculator(t){typeof t!="function"&&(t=Ur),t!==this[Ke]&&(this[Ke]=t,this[ge]=0,this[G].forEach(r=>{r.length=this[Ke](r.value,r.key),this[ge]+=r.length})),mt(this)}get lengthCalculator(){return this[Ke]}get length(){return this[ge]}get itemCount(){return this[G].length}rforEach(t,r){r=r||this;for(let n=this[G].tail;n!==null;){const i=n.prev;Ui(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[G].head;n!==null;){const i=n.next;Ui(this,t,n,r),n=i}}keys(){return this[G].toArray().map(t=>t.key)}values(){return this[G].toArray().map(t=>t.value)}reset(){this[de]&&this[G]&&this[G].length&&this[G].forEach(t=>this[de](t.key,t.value)),this[ne]=new Map,this[G]=new nd,this[ge]=0}dump(){return this[G].map(t=>ir(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[G]}set(t,r,n){if(n=n||this[je],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Ke](r,t);if(this[ne].has(t)){if(s>this[Fe])return rt(this,this[ne].get(t)),!1;const a=this[ne].get(t).value;return this[de]&&(this[ki]||this[de](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[ge]+=s-a.length,a.length=s,this.get(t),mt(this),!0}const o=new sd(t,r,s,i,n);return o.length>this[Fe]?(this[de]&&this[de](t,r),!1):(this[ge]+=o.length,this[G].unshift(o),this[ne].set(t,this[G].head),mt(this),!0)}has(t){if(!this[ne].has(t))return!1;const r=this[ne].get(t).value;return!ir(this,r)}get(t){return Gr(this,t,!0)}peek(t){return Gr(this,t,!1)}pop(){const t=this[G].tail;return t?(rt(this,t),t.value):null}del(t){rt(this,this[ne].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[ne].forEach((t,r)=>Gr(this,r,!1))}}const Gr=(e,t,r)=>{const n=e[ne].get(t);if(n){const i=n.value;if(ir(e,i)){if(rt(e,n),!e[xt])return}else r&&(e[Vs]&&(n.value.now=Date.now()),e[G].unshiftNode(n));return i.value}},ir=(e,t)=>{if(!t||!t.maxAge&&!e[je])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[je]&&r>e[je]},mt=e=>{if(e[ge]>e[Fe])for(let t=e[G].tail;e[ge]>e[Fe]&&t!==null;){const r=t.prev;rt(e,t),t=r}},rt=(e,t)=>{if(t){const r=t.value;e[de]&&e[de](r.key,r.value),e[ge]-=r.length,e[ne].delete(r.key),e[G].removeNode(t)}};class sd{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Ui=(e,t,r,n)=>{let i=r.value;ir(e,i)&&(rt(e,r),e[xt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var od=id;vn.exports=ud;const Gi=Ee,Hi=_a,gt=Zr,ad=or("snyk:resolve:try-require"),Bi=Ys,ld=od,cd={max:100,maxAge:1e3*60*60},zr=new ld(cd),Hr={readFile:Hi.promisify(Gi.readFile),stat:Hi.promisify(Gi.stat)};vn.exports.cache=zr;function ud(e){const t=zr.get(e);if(t){const r=Bi(t);return process.env.TAP&&(r.__cached=!0),Promise.resolve(r)}return Hr.readFile(e,"utf8").then(function(r){let n="";r&&r[0]==="\uFEFF"&&(r=r.slice(1),n="\uFEFF");const i=JSON.parse(r);return i.leading=n+r.match(/^(\s*){/)[1],i.trailing=r.match(/}(\s*)$/)[1],i}).catch(function(r){return ad("tryRequire silently failing on %s",r.message),null}).then(function(r){if(!r)return r;r.devDependencies||(r.devDependencies={}),r.dependencies||(r.dependencies={}),r.name||(r.name=gt.basename(gt.dirname(e))),r.__filename=e;const n=gt.dirname(e),i=[Hr.stat(gt.resolve(n,".snyk")).catch(Yi),Hr.stat(gt.resolve(n,"npm-shrinkwrap.json")).catch(Yi)];return Promise.all(i).then(function(s){return r.snyk||(r.snyk=s[0].isFile()),r.snyk&&(r.snyk=n),s[1].isFile()&&(r.shrinkwrap=!0),r})}).then(function(r){return zr.set(e,r),Bi(r)})}const Yi=function(){return{isFile:function(){return!1}}};var fd=vn.exports;const hd=sr(fd);var pd=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,dd=function(e){if(!e||e.length>254)return!1;var t=pd.test(e);if(!t)return!1;var r=e.split("@");if(r[0].length>64)return!1;var n=r[1].split(".");return!n.some(function(i){return i.length>63})};const md=["not-vulnerable","wont-fix","temporary-ignore"];function Br(e,t,r){if(t!=="ignore"&&t!=="patch")throw new Error('policy.add: unknown type "'+t+'" to add to');if(!r||!r.id||!r.path)throw new Error("policy.add: required option props { id, path }");const n=r.id,i=r.path;if(r.reasonType&&md.indexOf(r.reasonType)===-1)throw new Error("invalid reasonType "+r.reasonType);if(r.ignoredBy){if(typeof r.ignoredBy!="object")throw new Error("ignoredBy must be an object");if(!dd(r.ignoredBy.email))throw new Error("ignoredBy.email must be a valid email address")}const s={...r};e[t][n]||(e[t][n]=[]);const o={};return o[i]=s,e[t][n].push(o),e}function gd(e,t,r="global",n={}){if(!vd(r))throw new Error("invalid file pattern-group");e.exclude=e.exclude??{};let i=e.exclude[r]??[];i=i.filter(o=>typeof o=="string"?o!==t:!o[t]),n.created=new Date;const s=!n.expires&&!n.reason?t:{[t]:n};e.exclude[r]=[...i,s]}function vd(e){return["global","code","iac-drift"].includes(e)}const $e=Ce("snyk:policy");$e.log=console.error.bind(console);function yd(e,t,r=[],n="packageManager"){return e?($e("filtering ignored"),new Date().toJSON(),t.map(i=>{const s=Ed(i),o=$d(i.id,e);if(!e[o]&&!s)return i;$e("%s has rules",i.id);let c=[];if(s){const a=i.securityPolicyMetaData.ignore,{created:u,disregardIfFixable:f,ignoredBy:h,path:m,reason:d="",reasonType:v,source:_}=a;c=[{[m[0]]:{reason:d,reasonType:v,source:_,ignoredBy:h,created:u,disregardIfFixable:f}}]}else c=e[o].filter(a=>{const u=Object.keys(a)[0];if(!wt(i,a,n))return!1;const h=a[u].expires;return h&&!Ad(h,i.id)?!1:a[u].disregardIfFixable&&(i.isUpgradable||i.isPatchable)?($e("%s vuln is fixable and rule is set to disregard if fixable",i.id),!1):($e.enabled&&$e("ignoring based on path match: %s ~= %s",u,i.from.slice(1).join(" > ")),!0)});return c.length&&(i.filtered={ignored:c.map(a=>{const u=Object.keys(a)[0],f=gn(a[u]);return f.path=u.split(" > "),f})},r.push(i)),c.length?null:i}).filter(xd)):t}const Ed=e=>!!(e.securityPolicyMetaData&&e.securityPolicyMetaData.ignore),xd=e=>e!==null;function $d(e,t){const r=Object.keys(t).find(n=>n.toUpperCase()===e.toUpperCase());return r||e}function Ad(e,t){return typeof e=="string"&&(e=new Date(e)),isNaN(e.getTime())?($e("%s vuln rule has invalid expiry date (%s)",t,e),!1):e<new Date?($e("%s vuln rule has expired (%s)",t,e),!1):!0}const Re=Ce("snyk:policy");Re.log=console.error.bind(console);function bd(e,t){if(!e)return t;Re("attaching notes");const r=new Date().toJSON();return t.map(n=>(e[n.id]&&(Re("%s has rules",n.id),e[n.id].forEach(i=>{var a,u,f;const s=Object.keys(i)[0];let o=i[s].expires;const c=wt(n,i);if(o&&o instanceof Date&&(o=o.toJSON()),c&&o&&o<r)return Re("%s vuln rule has expired (%s)",n.id,o),!1;if(c&&i[s].disregardIfFixable&&((a=n.upgradePath)!=null&&a.length||(u=n.patches)!=null&&u.length))return Re("%s vuln is fixable and rule is set to disregard if fixable",n.id),!1;if(c){const h=(f=i[s].reason)==null?void 0:f.replace("/[\0--Ÿ]/u","");Re.enabled&&Re("adding note based on path match: %s ~= %s",s,n.from.slice(1).join(" > ")),n.note="Snyk policy in "+i[s].from+" suggests ignoring this issue, with reason: "+h}return!1})),n))}var yn={exports:{}},En={exports:{}},ct={exports:{}};const Cd=Object.keys,wd=e=>Object.prototype.toString.call(e),xn=e=>wd(e).slice(8,-1).toLowerCase(),Sd=e=>typeof e=="string"||xn(e)==="string";function Od(e){if(xn(e)!=="object")return!1;const t=Object.getPrototypeOf(e);return t==null?!0:(t.constructor&&t.constructor.toString())===Object.toString()}function _d(e,t,r=null){for(const[n,i]of e.entries())if(t.call(r,i,n,e)===!1)return!1;return!0}function Td(e,t){const r={};for(const n of Cd(e)){const i=e[n];r[n]=t(i,n,e)}return r}var Rd={isArrayOf:_d,getType:xn,isString:Sd,isPlainObject:Od,map:Td};const{isString:qs,getType:ot,isPlainObject:$n,isArrayOf:Xs,map:An}=Rd,Ws=Array.isArray,bn=e=>!/.+(Sync|Stream|Promise)$/.test(e);function It(e,t=null){if(typeof e!="function")throw TypeError(`Expected target function. Received ${ot(e)}`);return function(...r){return t||(t=this),new Promise((n,i)=>{const s=(o,c)=>o?i(o):n(c);e.call(t,...r,s)})}}function Id(e,t){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);return An(e,(r,n)=>bn(n)?It(r,t):r)}function Fd(e,t,r){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);if(!Ws(t))throw new TypeError(`Expected list as an array. Received ${ot(t)}`);if(!Xs(t,qs))throw new TypeError("Each element in the list should be a string.");return An(e,(n,i)=>bn(i)&&t.includes(i)?It(n,r):n)}function Nd(e,t,r){if(!$n(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);if(!Ws(t))throw new TypeError(`Expected list as an array. Received ${ot(t)}`);if(!Xs(t,qs))throw new TypeError("Each element in the list should be a string.");return An(e,(n,i)=>bn(i)&&!t.includes(i)?It(n,r):n)}ct.exports=It;ct.exports.default=It;ct.exports.all=Id;ct.exports.some=Fd;ct.exports.except=Nd;var Ld=ct.exports;const Vi=Ee,jd=Ld,Dd=e=>typeof e=="function",Pd=["access","readFile","writeFile","copyFile","close","open","read","write","rename","rmdir","mkdir","readdir","stat","lstat","fstat","appendFile","realpath","link","unlink","readlink","chmod","fchmod","chown","fchown","lchown","fsync","utimes","futimes","ftruncate"],Ks=jd.some(Vi,Pd.filter(e=>Dd(Vi[e])));En.exports=Ks;En.exports.default=Ks;var Md=En.exports;yn.exports=Js;yn.exports.sync=Zs;var zs=Md,ce=Zr,ye=or("snyk:resolve");function Js(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");return ye("%s: %s",e,r),zs.stat(r).then(function(n){if(n.isFile())return ce.dirname(r)}).catch(function(n){if(ye("%s: not found on %s (root? %s)",e,t,Jr(t)),Jr(t))throw ye("at root"),n=new Error("package not found "+e),n.code="NO_PACKAGE_FOUND",n}).then(function(n){return n?(ye("%s: FOUND AT %s",e,n),n):(ye("%s: cycling down",e),Js(e,ce.resolve(t,"..")))})}function Zs(e,t){t||(t=process.cwd());var r=ce.resolve(t,"node_modules",e,"package.json");ye("%s: %s",e,r);var n=function(s){var o;try{o=zs.statSync(s)}catch(c){if(c&&c.code==="ENOENT")return!1}return o.isFile()||o.isFIFO()};if(n(r))return ye("%s: FOUND AT %s",e,r),ce.dirname(r);if(Jr(t)){ye("%s: not found on %s (now at root)",e,r);var i=new Error("package not found "+e);throw i.code="NO_PACKAGE_FOUND",i}return ye("%s: cycling down",e),Zs(e,ce.resolve(t,".."))}function Jr(e){var t=kd(e);return t.root===t.dir&&!t.base}function kd(e){if(ce.parse)return ce.parse(e);var t=e.split(ce.sep),r=t[0]+ce.sep;return{base:t[1],root:r,dir:e}}var Ud=yn.exports;const Gd=sr(Ud),Qs=Ce("snyk:policy");Qs.log=console.error.bind(console);function Hd(e,t,r){var o;const n=e.from.slice(1).map(c=>Je(c).name),i=Z.resolve(t||process.cwd(),"node_modules",n.join("/node_modules/"));let s=e.__filename?Z.dirname(e.__filename):i;try{Ee.statSync(s)}catch{try{s=Gd.sync((o=n.slice(-1))==null?void 0:o.pop(),i)}catch(a){throw a}Qs("found better source for package: %s",s)}return s}const vt=Ce("snyk:policy");vt.log=console.error.bind(console);function Bd(e,t,r,n,i=[]){return e?(vt("filtering patched"),t.map(s=>{if(!e[s.id])return s;vt("%s has rules",s.id);const c=e[s.id].map(a=>{if(wt(s,a)){const f=Object.keys(a)[0];return vt("(patch) ignoring based on path match: %s ~= %s",f,s.from.slice(1).join(" > ")),a}return null}).filter(qi).filter(()=>{if(n)return!0;const a=Hd(s,r),u=s.id.replace(/:/g,"-"),f=Z.resolve(a,".snyk-"+u+".flag"),h=Z.resolve(a,".snyk-"+s.id+".flag");let m=!1;try{m=Ee.statSync(f)}catch{try{m=Ee.statSync(h)}catch{}}return vt("flag found for %s? %s",s.id),!!m});return c.length&&(s.filtered={patches:c.map(a=>{const u=Object.keys(a)[0],f=gn(a[u])||{};return f.path=u.split(" > "),f})},i.push(s)),c.length?null:s}).filter(qi)):t}const qi=e=>e!==null,eo=Ce("snyk:policy");eo.log=console.error.bind(console);function Yd(e,t,r,n="packageManager"){r||(r=process.cwd());const i=e;if(e.ok)return i;const s={ignore:[],patch:[]};if(i.vulnerabilities=yd(t.ignore,i.vulnerabilities,s.ignore,n),i.vulnerabilities=Bd(t.patch,i.vulnerabilities,r,!!t.skipVerifyPatch,s.patch),t.suggest&&(i.vulnerabilities=bd(t.suggest,i.vulnerabilities)),i.vulnerabilities.length===0&&(i.ok=!0,i.vulnerabilities=[]),i.filtered=s,eo("> has threshold? %s",t.failThreshold),t.failThreshold&&e.ok===!1){const o={critical:4,high:3,medium:2,low:1},c=o[t.failThreshold];i.ok=!0,i.vulnerabilities.some(a=>a.severity&&o[a.severity]>=c?(i.ok=!1,!0):!1)}return i}class gr extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,gr.prototype),this.code=r}}function to(e){return Object.prototype.toString.call(e)==="[object Object]"}function ro(e){return e instanceof Error}const ze=Ce("snyk:policy");ze.log=console.error.bind(console);const Vd=()=>"v1.25.1",qd=()=>io("");function Xd(){return Z.resolve(process.cwd(),".snyk")}function no(e){return e.filter=(t,r,n="packageManager")=>Yd(t,e,r||Z.dirname(e.__filename),n),e.save=(t,r)=>oo(e,t,r),e.toString=()=>lo(e),e.demunge=t=>ao(e,t),e.add=(t,r)=>Br(e,t,r),e.addIgnore=t=>Br(e,"ignore",t),e.addPatch=t=>Br(e,"patch",t),e.addExclude=(t,r,n)=>gd(e,t,r,n),e}async function io(e=""){const t=await Jt(e),r=Date.now();return t.__filename="",t.__modified=r,t.__created=r,no(t)}function so(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=void 0),e||(e=process.cwd()),t||(t={});const r=!!t["ignore-policy"];let n="";Array.isArray(e)?n=e[0]:(e.indexOf(".snyk")===-1&&(e=Z.resolve(e,".snyk")),n=e),n.indexOf(".snyk")===-1&&(n=Z.resolve(n,".snyk"));try{Ee.lstatSync(n).isDirectory()&&(n=Z.join(n,"/.snyk"))}catch(o){if(ro(o)&&o.code==="ENOENT")ze("ENOENT on file, while checking if directory");else throw o}const s=[new Promise(o=>{if(r)return o(Jt());if(!r&&Array.isArray(e))return o(Wd(e,t).then(c=>(ze.enabled&&(ze("final policy:"),ze(JSON.stringify(c,null,2))),c)));o(Ee.promises.readFile(n,"utf8").then(Jt))}),Ee.promises.stat(n).catch(()=>({}))];return Promise.all(s).catch(o=>{if(t!=null&&t.loose&&o.code==="ENOENT")return ze("ENOENT on file, but running loose"),[Jt(),{}];throw o}).then(o=>{const c=o[0];return c.__modified=o[1].mtime,c.__created=o[1].birthtime||o[1].ctime,t!=null&&t.loose&&!c.__modified?c.__filename=null:c.__filename=Z.relative(process.cwd(),n),c}).then(no)}async function Wd(e,t){const r=t&&t["trust-policies"]?"ignore":"suggest",[n,...i]=await Promise.all(e.map(s=>so(s,t)));return await Promise.all(i.filter(s=>s.__filename).map(async s=>{const o=Z.dirname(s.__filename)+"/package.json",c=await hd(o),a=c.name+"@"+c.version;Xi("ignore",r,a,n,s),Xi("patch","patch",a,n,s)})),n}function Xi(e,t,r,n,i){n[t]||(n[t]={}),Object.keys(i[e]).forEach(s=>{if(i[e][s]=i[e][s].map(o=>{const c=Object.keys(o).pop(),a={};return a[r+" > "+c]=o[c],o[c]=o[c]||{},o[c].from=r,a}),!n[t][s]){n[t][s]=i[e][s];return}n[t][s]=n[t][s].concat(i[e][s])})}async function oo(e,t,r){const n=t?Z.resolve(t,".snyk"):Xd(),i="Saving .snyk policy file...";if(!r){const o=c=>Promise.resolve(c);o.clear=o,r=o}await r(i);const s=await lo(e);return await Ee.promises.writeFile(n,s),r.clear(i)}const Kd="# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.",Wi={ignore:"# ignores vulnerabilities until expiry date; change duration by modifying expiry date",patch:"# patches apply the minimum changes required to fix a vulnerability"};function zd(e){const t=e.split(`
39
+ `);t.unshift(Kd);for(const r in Wi){const n=r,i=t.indexOf(n+":");i!==-1&&t.splice(i,0,Wi[n])}return t.join(`
40
+ `)}function Jd(e){if(e.ignore||(e.ignore={}),e.patch||(e.patch={}),(r=>Object.prototype.toString.call(r)==="[object Object]")(e.patch))for(const r in e.patch)Array.isArray(e.patch[r])||delete e.patch[r];return Zd(e.ignore),Ki(e.ignore),Ki(e.patch),e.failThreshold=e0(e),e.failThreshold||delete e.failThreshold,e}function Zd(e){if(t0(e)){for(const t in e)if(e[t]&&!Array.isArray(e[t])){const r=new Error("old, unsupported .snyk format detected");throw r.code="OLD_DOTFILE_FORMAT",r}}}function Ki(e){for(const[r,n]of Object.entries(e)){e[r]=n??[];for(const i of e[r])for(const s in i)i[s]=i[s]??{}}const t=Qd(e);t&&t.forEach(r=>{const n={};n[r.key]=r.rule,e[r.id].push(n)})}function Qd(e){const t=[];for(const r in e)for(const n of e[r]){const i=Object.keys(n);if(i.shift(),i===0)return;i.forEach(s=>{t.push({id:r,key:s,rule:n[s]}),delete n[s]})}return t.length?t:!1}function e0(e){const t=["failThreshold","fail_threshold","failthreshold","threshold","fail_threshhold"].map(n=>e[n]).find(n=>n);if(!t||typeof t!="string")return null;const r=t.toLowerCase().trim();if(!r0(r))throw new gr('unknown threshold value "'+r+'"',"POLICY_BAD_THRESHOLD");return r}const t0=e=>Object.prototype.toString.call(e)==="[object Object]";function r0(e){return["high","medium","low"].indexOf(e)>-1}function ao(e,t){const r=["ignore","patch","exclude"].reduce((n,i)=>{const s=e[i];return n[i]=s?Object.keys(s).map(o=>{const c=s[o].map(a=>{if(i==="exclude"&&typeof a=="string")return{path:a};const u=a,f=Object.keys(u).pop(),h={path:f};if(i==="ignore"||i==="exclude"){const m=u[f].expires;h.reason=u[f].reason,h.expires=m?new Date(m):void 0,h.disregardIfFixable=u[f].disregardIfFixable}return h});return{id:o,url:n0(o,t)+"/vuln/"+o,paths:c}}):[],n},{});return r.version=e.version,r}function n0(e,t){return t==null?"":typeof t=="function"?t(e):t}const i0="v1",s0={v1:Jd};function Jt(e=""){const t=Bs.load(e),r=to(t)?t:{};let i=(o=>typeof o.version=="string")(r)?r.version:i0;i==="v1"&&(i="v1.0.0"),r.version=i;const s=s0["v"+qr.major(i.substr(1))];if(!s)throw new Error("unsupported version: "+r.version);return s(r)}function lo(e){const t=gn(e);for(const r in t){const n=r;n.indexOf("__")===0&&delete t[n],t[n]==null&&delete t[n],typeof t[n]=="function"&&delete t[n]}return t.version=Vd(),zd(Bs.dump(t))}exports.PolicyError=gr;exports.create=qd;exports.demunge=ao;exports.getByVuln=tf;exports.isNodeError=ro;exports.isObject=to;exports.load=so;exports.loadFromText=io;exports.matchToRule=wt;exports.save=oo;
41
41
 
42
42
 
43
43
  /***/ })