UNPKG

snyk

Version:

snyk library and cli utility

47 lines 125 kB
"use strict";
exports.id = 284;
exports.ids = [284];
exports.modules = {

/***/ 13284:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oa=__webpack_require__(57310),Ee=__webpack_require__(57147),en=__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 ee=Ta(en);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}},Rr,Kn;function Ra(){if(Kn)return Rr;Kn=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;Rr=function(c,f){f=f||{};var m=typeof c;if(m==="string"&&c.length>0)return o(c);if(m==="number"&&isFinite(c))return f.long?a(c):u(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.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(c);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 u(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=t?Math.round(c/t)+"m":f>=e?Math.round(c/e)+"s":c+"ms"}function a(c){var f=Math.abs(c);return f>=n?h(c,f,n,"day"):f>=r?h(c,f,r,"hour"):f>=t?h(c,f,t,"minute"):f>=e?h(c,f,e,"second"):c+" ms"}function h(c,f,m,d){var A=f>=m*1.5;return Math.round(c/m)+" "+d+(A?"s":"")}return Rr}function Ia(e){r.debug=r,r.default=r,r.coerce=a,r.disable=o,r.enable=i,r.enabled=u,r.humanize=Ra(),r.destroy=h,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let m=0;m<c.length;m++)f=(f<<5)-f+c.charCodeAt(m),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(c){let f,m=null,d,A;function v(...b){if(!v.enabled)return;const j=v,W=Number(new Date),D=W-(f||W);j.diff=D,j.prev=f,j.curr=W,f=W,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let B=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(ae,Ue)=>{if(ae==="%%")return"%";B++;const we=r.formatters[Ue];if(typeof we=="function"){const Ge=b[B];ae=we.call(j,Ge),b.splice(B,1),B--}return ae}),r.formatArgs.call(j,b),(j.log||r.log).apply(j,b)}return v.namespace=c,v.useColors=r.useColors(),v.color=r.selectColor(c),v.extend=n,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==r.namespaces&&(d=r.namespaces,A=r.enabled(c)),A),set:b=>{m=b}}),typeof r.init=="function"&&r.init(v),v}function n(c,f){const m=r(this.namespace+(typeof f>"u"?":":f)+c);return m.log=this.log,m}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];const f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of f)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function s(c,f){let m=0,d=0,A=-1,v=0;for(;m<c.length;)if(d<f.length&&(f[d]===c[m]||f[d]==="*"))f[d]==="*"?(A=d,v=m,d++):(m++,d++);else if(A!==-1)d=A+1,v++,m=v;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}function o(){const c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function u(c){for(const f of r.skips)if(s(c,f))return!1;for(const f of r.names)if(s(c,f))return!0;return!1}function a(c){return c instanceof Error?c.stack||c.message:c}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 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 h="color: "+this.color;a.splice(1,0,h,"color: inherit");let c=0,f=0;a[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(c++,m==="%c"&&(f=c))}),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")||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:u}=e.exports;u.j=function(a){try{return JSON.stringify(a)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}})(qr,qr.exports);var lr=qr.exports;const be=ar(lr);var Xr={exports:{}};const La="2.0.0",zi=256,Na=Number.MAX_SAFE_INTEGER||9007199254740991,ja=16,Da=zi-6,Pa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var cr={MAX_LENGTH:zi,MAX_SAFE_COMPONENT_LENGTH:ja,MAX_SAFE_BUILD_LENGTH:Da,MAX_SAFE_INTEGER:Na,RELEASE_TYPES:Pa,SEMVER_SPEC_VERSION:La,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 ur=Ma;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=cr,s=ur;t=e.exports={};const o=t.re=[],u=t.safeRe=[],a=t.src=[],h=t.safeSrc=[],c=t.t={};let f=0;const m="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[m,n]],A=b=>{for(const[j,W]of d)b=b.split(`${j}*`).join(`${j}{0,${W}}`).split(`${j}+`).join(`${j}{1,${W}}`);return b},v=(b,j,W)=>{const D=A(j),B=f++;s(b,B,j),c[b]=B,a[B]=j,h[B]=D,o[B]=new RegExp(j,W?"g":void 0),u[B]=new RegExp(D,W?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),v("FULL",`^${a[c.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),v("LOOSE",`^${a[c.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),v("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[c.COERCE],!0),v("COERCERTLFULL",a[c.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Xr,Xr.exports);var bt=Xr.exports;const ka=Object.freeze({loose:!0}),Ua=Object.freeze({}),Ga=e=>e?typeof e!="object"?ka:e:Ua;var tn=Ga;const zn=/^[0-9]+$/,Ji=(e,t)=>{const r=zn.test(e),n=zn.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=ur,{MAX_LENGTH:Jn,MAX_SAFE_INTEGER:Yt}=cr,{safeRe:Vt,t:qt}=bt,Ba=tn,{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>Jn)throw new TypeError(`version is longer than ${Jn} characters`);Bt("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Vt[qt.LOOSE]:Vt[qt.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){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const i=`-${r}`.match(this.options.loose?Vt[qt.PRERELEASELOOSE]:Vt[qt.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}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"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(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 K=Ya;const Zn=K,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=K,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,u=s?n:r,a=!!o.prerelease.length;if(!!u.prerelease.length&&!a){if(!u.patch&&!u.minor)return"major";if(u.compareMain(o)===0)return u.minor&&!u.patch?"minor":"patch"}const c=a?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};var tl=el;const rl=K,nl=(e,t)=>new rl(e,t).major;var il=nl;const sl=K,ol=(e,t)=>new sl(e,t).minor;var al=ol;const ll=K,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=K,dl=(e,t,r)=>new ti(e,r).compare(new ti(t,r));var se=dl;const ml=se,gl=(e,t,r)=>ml(t,e,r);var vl=gl;const yl=se,El=(e,t)=>yl(e,t,!0);var xl=El;const ri=K,$l=(e,t,r)=>{const n=new ri(e,r),i=new ri(t,r);return n.compare(i)||n.compareBuild(i)};var rn=$l;const Al=rn,bl=(e,t)=>e.sort((r,n)=>Al(r,n,t));var wl=bl;const Cl=rn,Sl=(e,t)=>e.sort((r,n)=>Cl(n,r,t));var Ol=Sl;const _l=se,Tl=(e,t,r)=>_l(e,t,r)>0;var fr=Tl;const Rl=se,Il=(e,t,r)=>Rl(e,t,r)<0;var nn=Il;const Fl=se,Ll=(e,t,r)=>Fl(e,t,r)===0;var Qi=Ll;const Nl=se,jl=(e,t,r)=>Nl(e,t,r)!==0;var es=jl;const Dl=se,Pl=(e,t,r)=>Dl(e,t,r)>=0;var sn=Pl;const Ml=se,kl=(e,t,r)=>Ml(e,t,r)<=0;var on=kl;const Ul=Qi,Gl=es,Hl=fr,Bl=sn,Yl=nn,Vl=on,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=K,Wl=at,{safeRe:Xt,t:Wt}=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?Xt[Wt.COERCEFULL]:Xt[Wt.COERCE]);else{const a=t.includePrerelease?Xt[Wt.COERCERTLFULL]:Xt[Wt.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]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return Wl(`${n}.${i}.${s}${o}${u}`,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,Ir,ni;function oe(){if(ni)return Ir;ni=1;const e=/\s+/g;class t{constructor(y,O){if(O=i(O),y instanceof t)return y.loose===!!O.loose&&y.includePrerelease===!!O.includePrerelease?y:new t(y.raw,O);if(y instanceof s)return this.raw=y.value,this.set=[[y]],this.formatted=void 0,this;if(this.options=O,this.loose=!!O.loose,this.includePrerelease=!!O.includePrerelease,this.raw=y.trim().replace(e," "),this.set=this.raw.split("||").map(w=>this.parseRange(w.trim())).filter(w=>w.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const w=this.set[0];if(this.set=this.set.filter(_=>!v(_[0])),this.set.length===0)this.set=[w];else if(this.set.length>1){for(const _ of this.set)if(_.length===1&&b(_[0])){this.set=[_];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 O=this.set[y];for(let w=0;w<O.length;w++)w>0&&(this.formatted+=" "),this.formatted+=O[w].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(y){const w=((this.options.includePrerelease&&d)|(this.options.loose&&A))+":"+y,_=n.get(w);if(_)return _;const C=this.options.loose,E=C?a[h.HYPHENRANGELOOSE]:a[h.HYPHENRANGE];y=y.replace(E,Nt(this.options.includePrerelease)),o("hyphen replace",y),y=y.replace(a[h.COMPARATORTRIM],c),o("comparator trim",y),y=y.replace(a[h.TILDETRIM],f),o("tilde trim",y),y=y.replace(a[h.CARETTRIM],m),o("caret trim",y);let L=y.split(" ").map(P=>W(P,this.options)).join(" ").split(/\s+/).map(P=>Lt(P,this.options));C&&(L=L.filter(P=>(o("loose invalid filter",P,this.options),!!P.match(a[h.COMPARATORLOOSE])))),o("range list",L);const T=new Map,R=L.map(P=>new s(P,this.options));for(const P of R){if(v(P))return[P];T.set(P.value,P)}T.size>1&&T.has("")&&T.delete("");const q=[...T.values()];return n.set(w,q),q}intersects(y,O){if(!(y instanceof t))throw new TypeError("a Range is required");return this.set.some(w=>j(w,O)&&y.set.some(_=>j(_,O)&&w.every(C=>_.every(E=>C.intersects(E,O)))))}test(y){if(!y)return!1;if(typeof y=="string")try{y=new u(y,this.options)}catch{return!1}for(let O=0;O<this.set.length;O++)if(jt(this.set[O],y,this.options))return!0;return!1}}Ir=t;const r=Zl,n=new r,i=tn,s=hr(),o=ur,u=K,{safeRe:a,t:h,comparatorTrimReplace:c,tildeTrimReplace:f,caretTrimReplace:m}=bt,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:A}=cr,v=x=>x.value==="<0.0.0-0",b=x=>x.value==="",j=(x,y)=>{let O=!0;const w=x.slice();let _=w.pop();for(;O&&w.length;)O=w.every(C=>_.intersects(C,y)),_=w.pop();return O},W=(x,y)=>(o("comp",x,y),x=ae(x,y),o("caret",x),x=B(x,y),o("tildes",x),x=we(x,y),o("xrange",x),x=Ft(x,y),o("stars",x),x),D=x=>!x||x.toLowerCase()==="x"||x==="*",B=(x,y)=>x.trim().split(/\s+/).map(O=>ut(O,y)).join(" "),ut=(x,y)=>{const O=y.loose?a[h.TILDELOOSE]:a[h.TILDE];return x.replace(O,(w,_,C,E,L)=>{o("tilde",x,w,_,C,E,L);let T;return D(_)?T="":D(C)?T=`>=${_}.0.0 <${+_+1}.0.0-0`:D(E)?T=`>=${_}.${C}.0 <${_}.${+C+1}.0-0`:L?(o("replaceTilde pr",L),T=`>=${_}.${C}.${E}-${L} <${_}.${+C+1}.0-0`):T=`>=${_}.${C}.${E} <${_}.${+C+1}.0-0`,o("tilde return",T),T})},ae=(x,y)=>x.trim().split(/\s+/).map(O=>Ue(O,y)).join(" "),Ue=(x,y)=>{o("caret",x,y);const O=y.loose?a[h.CARETLOOSE]:a[h.CARET],w=y.includePrerelease?"-0":"";return x.replace(O,(_,C,E,L,T)=>{o("caret",x,_,C,E,L,T);let R;return D(C)?R="":D(E)?R=`>=${C}.0.0${w} <${+C+1}.0.0-0`:D(L)?C==="0"?R=`>=${C}.${E}.0${w} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.0${w} <${+C+1}.0.0-0`:T?(o("replaceCaret pr",T),C==="0"?E==="0"?R=`>=${C}.${E}.${L}-${T} <${C}.${E}.${+L+1}-0`:R=`>=${C}.${E}.${L}-${T} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${L}-${T} <${+C+1}.0.0-0`):(o("no pr"),C==="0"?E==="0"?R=`>=${C}.${E}.${L}${w} <${C}.${E}.${+L+1}-0`:R=`>=${C}.${E}.${L}${w} <${C}.${+E+1}.0-0`:R=`>=${C}.${E}.${L} <${+C+1}.0.0-0`),o("caret return",R),R})},we=(x,y)=>(o("replaceXRanges",x,y),x.split(/\s+/).map(O=>Ge(O,y)).join(" ")),Ge=(x,y)=>{x=x.trim();const O=y.loose?a[h.XRANGELOOSE]:a[h.XRANGE];return x.replace(O,(w,_,C,E,L,T)=>{o("xRange",x,w,_,C,E,L,T);const R=D(C),q=R||D(E),P=q||D(L),Ce=P;return _==="="&&Ce&&(_=""),T=y.includePrerelease?"-0":"",R?_===">"||_==="<"?w="<0.0.0-0":w="*":_&&Ce?(q&&(E=0),L=0,_===">"?(_=">=",q?(C=+C+1,E=0,L=0):(E=+E+1,L=0)):_==="<="&&(_="<",q?C=+C+1:E=+E+1),_==="<"&&(T="-0"),w=`${_+C}.${E}.${L}${T}`):q?w=`>=${C}.0.0${T} <${+C+1}.0.0-0`:P&&(w=`>=${C}.${E}.0${T} <${C}.${+E+1}.0-0`),o("xRange return",w),w})},Ft=(x,y)=>(o("replaceStars",x,y),x.trim().replace(a[h.STAR],"")),Lt=(x,y)=>(o("replaceGTE0",x,y),x.trim().replace(a[y.includePrerelease?h.GTE0PRE:h.GTE0],"")),Nt=x=>(y,O,w,_,C,E,L,T,R,q,P,Ce)=>(D(w)?O="":D(_)?O=`>=${w}.0.0${x?"-0":""}`:D(C)?O=`>=${w}.${_}.0${x?"-0":""}`:E?O=`>=${O}`:O=`>=${O}${x?"-0":""}`,D(R)?T="":D(q)?T=`<${+R+1}.0.0-0`:D(P)?T=`<${R}.${+q+1}.0-0`:Ce?T=`<=${R}.${q}.${P}-${Ce}`:x?T=`<${R}.${q}.${+P+1}-0`:T=`<=${T}`,`${O} ${T}`.trim()),jt=(x,y,O)=>{for(let w=0;w<x.length;w++)if(!x[w].test(y))return!1;if(y.prerelease.length&&!O.includePrerelease){for(let w=0;w<x.length;w++)if(o(x[w].semver),x[w].semver!==s.ANY&&x[w].semver.prerelease.length>0){const _=x[w].semver;if(_.major===y.major&&_.minor===y.minor&&_.patch===y.patch)return!0}return!1}return!0};return Ir}var Fr,ii;function hr(){if(ii)return Fr;ii=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,f){if(f=r(f),c instanceof t){if(c.loose===!!f.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,f),this.options=f,this.loose=!!f.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const f=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],m=c.match(f);if(!m)throw new TypeError(`Invalid comparator: ${c}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new u(m[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}return s(c,this.operator,this.semver,this.options)}intersects(c,f){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(c.value,f).test(this.value):c.operator===""?c.value===""?!0:new a(this.value,f).test(c.semver):(f=r(f),f.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||s(this.semver,"<",c.semver,f)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||s(this.semver,">",c.semver,f)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Fr=t;const r=tn,{safeRe:n,t:i}=bt,s=ts,o=ur,u=K,a=oe();return Fr}const Ql=oe(),ec=(e,t,r)=>{try{t=new Ql(t,r)}catch{return!1}return t.test(e)};var pr=ec;const tc=oe(),rc=(e,t)=>new tc(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var nc=rc;const ic=K,sc=oe(),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=K,cc=oe(),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 Lr=K,hc=oe(),si=fr,pc=(e,t)=>{e=new hc(e,t);let r=new Lr("0.0.0");if(e.test(r)||(r=new Lr("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 u=new Lr(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!s||si(u,s))&&(s=u);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=oe(),gc=(e,t)=>{try{return new mc(e,t).range||"*"}catch{return null}};var vc=gc;const yc=K,rs=hr(),{ANY:Ec}=rs,xc=oe(),$c=pr,oi=fr,ai=nn,Ac=on,bc=sn,wc=(e,t,r,n)=>{e=new yc(e,n),t=new xc(t,n);let i,s,o,u,a;switch(r){case">":i=oi,s=Ac,o=ai,u=">",a=">=";break;case"<":i=ai,s=bc,o=oi,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($c(e,t,n))return!1;for(let h=0;h<t.set.length;++h){const c=t.set[h];let f=null,m=null;if(c.forEach(d=>{d.semver===Ec&&(d=new rs(">=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===u||f.operator===a||(!m.operator||m.operator===u)&&s(e,m.semver))return!1;if(m.operator===a&&o(e,m.semver))return!1}return!0};var an=wc;const Cc=an,Sc=(e,t,r)=>Cc(e,t,">",r);var Oc=Sc;const _c=an,Tc=(e,t,r)=>_c(e,t,"<",r);var Rc=Tc;const li=oe(),Ic=(e,t,r)=>(e=new li(e,r),t=new li(t,r),e.intersects(t,r));var Fc=Ic;const Lc=pr,Nc=se;var jc=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((c,f)=>Nc(c,f,r));for(const c of o)Lc(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const u=[];for(const[c,f]of n)c===f?u.push(c):!f&&c===o[0]?u.push("*"):f?c===o[0]?u.push(`<=${f}`):u.push(`${c} - ${f}`):u.push(`>=${c}`);const a=u.join(" || "),h=typeof t.raw=="string"?t.raw:String(t);return a.length<h.length?a:t};const ci=oe(),ln=hr(),{ANY:Nr}=ln,pt=pr,cn=se,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 ln(">=0.0.0-0")],ui=[new ln(">=0.0.0")],Mc=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Nr){if(t.length===1&&t[0].semver===Nr)return!0;r.includePrerelease?e=Pc:e=ui}if(t.length===1&&t[0].semver===Nr){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=cn(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 A of t)if(!pt(d,String(A),r))return!1;return!0}let u,a,h,c,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(c=c||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(u=fi(i,d,r),u===d&&u!==i)return!1}else if(i.operator===">="&&!pt(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=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&&h&&!s&&o!==0||s&&c&&!i&&o!==0||m||f)},fi=(e,t,r)=>{if(!e)return t;const n=cn(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=cn(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var kc=Dc;const jr=bt,pi=cr,Uc=K,di=Zi,Gc=at,Hc=Wa,Bc=Ja,Yc=Qa,Vc=tl,qc=il,Xc=al,Wc=ul,Kc=pl,zc=se,Jc=vl,Zc=xl,Qc=rn,eu=wl,tu=Ol,ru=fr,nu=nn,iu=Qi,su=es,ou=sn,au=on,lu=ts,cu=zl,uu=hr(),fu=oe(),hu=pr,pu=nc,du=ac,mu=fc,gu=dc,vu=vc,yu=an,Eu=Oc,xu=Rc,$u=Fc,Au=jc,bu=kc;var Wr={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:jr.re,src:jr.src,tokens:jr.t,SEMVER_SPEC_VERSION:pi.SEMVER_SPEC_VERSION,RELEASE_TYPES:pi.RELEASE_TYPES,compareIdentifiers:di.compareIdentifiers,rcompareIdentifiers:di.rcompareIdentifiers},nt={},un={exports:{}};const N=(...e)=>e.every(t=>t)?e.join(""):"",V=e=>e?encodeURIComponent(e):"",wt={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:u})=>`https://${e}/${t}/${r}/${i}/${V(n||"master")}/${s}${N("#",u(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:ns},te={};te.github=Object.assign({},wt,{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}}});te.bitbucket=Object.assign({},wt,{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)}}});te.gitlab=Object.assign({},wt,{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)}}});te.gist=Object.assign({},wt,{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-"+ns(e)}});te.sourcehut=Object.assign({},wt,{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:u})=>`https://${e}/${t}/${r}/${i}/${V(n||"main")}/${s}${N("#",u(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 wu=Object.keys(te);te.byShortcut={};te.byDomain={};for(const e of wu)te.byShortcut[`${e}:`]=e,te.byDomain[te[e].domain]=e;function ns(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var is=te;const Cu=is;let Su=class{constructor(t,r,n,i,s,o,u={}){Object.assign(this,Cu[t]),this.type=t,this.user=r,this.auth=n,this.project=i,this.committish=s,this.default=o,this.opts=u}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,Dr,mi;function _u(){return mi||(mi=1,Dr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Dr}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 Lu=Tu,Ie=Symbol("max"),me=Symbol("length"),Xe=Symbol("lengthCalculator"),yt=Symbol("allowStale"),Le=Symbol("maxAge"),pe=Symbol("dispose"),gi=Symbol("noDisposeOnSet"),U=Symbol("lruList"),ne=Symbol("cache"),ss=Symbol("updateAgeOnGet"),Pr=()=>1;let Nu=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||Pr;if(this[Xe]=typeof r!="function"?Pr:r,this[yt]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Le]=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[Le]=t,dt(this)}get maxAge(){return this[Le]}set lengthCalculator(t){typeof t!="function"&&(t=Pr),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[ne]=new Map,this[U]=new Lu,this[me]=0}dump(){return this[U].map(t=>er(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[Le],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[Ie])return tt(this,this[ne].get(t)),!1;const a=this[ne].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[ne].set(t,this[U].head),dt(this),!0)}has(t){if(!this[ne].has(t))return!1;const r=this[ne].get(t).value;return!er(this,r)}get(t){return Mr(this,t,!0)}peek(t){return Mr(this,t,!1)}pop(){const t=this[U].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)=>Mr(this,r,!1))}};const Mr=(e,t,r)=>{const n=e[ne].get(t);if(n){const i=n.value;if(er(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}},er=(e,t)=>{if(!t||!t.maxAge&&!e[Le])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Le]&&r>e[Le]},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[ne].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;er(e,i)&&(tt(e,r),e[yt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Du=Nu;const yi=Oa,zt=is,Pu=un.exports=Ou,Mu=Du,kr=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(zt.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);un.exports.fromUrl=function(e,t){if(typeof e!="string")return;const r=e+JSON.stringify(t||{});return kr.has(r)||kr.set(r,Bu(e,t)),kr.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=zt.byShortcut[n.protocol],s=zt.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],o=i||s;if(!o)return;const u=zt[i||s];let a=null;Gu[n.protocol]&&(n.username||n.password)&&(a=`${n.username}${n.password?":"+n.password:""}`);let h=null,c=null,f=null,m=null;try{if(i){let d=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const A=d.indexOf("@");A>-1&&(d=d.slice(A+1));const v=d.lastIndexOf("/");v>-1?(c=decodeURIComponent(d.slice(0,v)),c||(c=null),f=decodeURIComponent(d.slice(v+1))):f=decodeURIComponent(d),f.endsWith(".git")&&(f=f.slice(0,-4)),n.hash&&(h=decodeURIComponent(n.hash.slice(1))),m="shortcut"}else{if(!u.protocols.includes(n.protocol))return;const d=u.extract(n);if(!d)return;c=d.user&&decodeURIComponent(d.user),f=decodeURIComponent(d.project),h=decodeURIComponent(d.committish),m=Uu(n.protocol)}}catch(d){if(d instanceof URIError)return;throw d}return new Pu(o,c,a,f,h,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("@"),u=!s||t>-1&&s.index>t,a=o===-1||t>-1&&o>t,h=i===-1||t>-1&&i>t,c=n===-1||t>-1&&n>t,f=r>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return u&&f&&m&&d&&a&&h&&c},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=un.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.encode=Je=nt.parsePackageString=void 0;const Et=lr("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 Kt(i,{name:i,version:"*"},r);n&&i.lastIndexOf("@")<1&&(Et("appending version onto string"),i+="@"+n);const s=Ei(i);if(s)return Kt(i,xi(s),r);let o=i.split("@");i.indexOf("@")===0&&(o=o.slice(1),o[0]="@"+o[0]);const u=o[1]&&Ei(o[1]);if(u)return Kt(i,xi(u),r);o.length===1&&o.push("*");const a={name:o[0],version:o.slice(1).join("@")};return Kt(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 Kt(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=be("snyk:policy");as.log=console.error.bind(console);const Z=be("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 u=e[o+n]?Je(e[o+n]):{};if(s==="*"){if(Z("star rule"),!r[o+1])return!0;const c=Je(r[o+1]);if(c){Z("next",c);for(let f=o;o<r.length;f++){if(!e[o+n])return!1;if(u=Je(e[o+n]),Z("fromPkg",u,c),c.name===u.name){n--,Z("next has a match");break}Z("pushing offset"),n++}}return!0}if(Z("next test",s,u),s===e[o+n])return Z("exact match"),!0;const a=Je(s);let h=a.version;if(h==="*"&&(h=u.version),a.name===u.name){if(u.version===h)return Z("exact version match"),!0;if(Wr.valid(u.version)&&Wr.satisfies(u.version,h))return Z("semver match"),!0}return Z("failed match"),!1});return Z("result of path test %s: %s",t,i),i}function Ct(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(Ct(t,s)){const o=Object.keys(s).pop();r={type:n,id:t.id,rule:t.from,...s[o]}}}});return r}var M={},St={},re={};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}re.isNothing=ls;re.isObject=rf;re.toArray=nf;re.repeat=of;re.isNegativeZero=af;re.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=re;function fn(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}fn.prototype.getSnippet=function(t,r){var n,i,s,o,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
…\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
…\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>r/2-1){s=" ... ",o-=5;break}return u=this.buffer.slice(i,o),$i.repeat(" ",t)+n+u+s+`
`+$i.repeat(" ",t+this.position-i+n.length)+"^"};fn.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+=`:
`+r)),n};var lf=fn,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=re,Jt=Ot,pf=H;function Kr(e,t,r){var n=[];return e.include.forEach(function(i){r=Kr(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 Jt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Kr(this,"implicit",[]),this.compiledExplicit=Kr(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 Jt("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 Jt("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 Jt("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,hn=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 wf(){return null}function Cf(e){return e===null}var Sf=new Af("tag:yaml.org,2002:null",{kind:"scalar",resolve:bf,construct:wf,predicate:Cf,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=re,Lf=H;function Nf(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(!Nf(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 Lf("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=re,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:[hn],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,u,a=0,h=null,c,f,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],u=+t[6],t[7]){for(a=t[7].slice(0,3);a.length<3;)a+="0";a=+a}return t[9]&&(c=+t[10],f=+(t[11]||0),h=(c*60+f)*6e4,t[9]==="-"&&(h=-h)),m=new Date(Date.UTC(r,n,i,s,o,u,a)),h&&m.setTime(m.getTime()-h),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 Ne;try{var sh=ds;Ne=sh("buffer").Buffer}catch{}var oh=H,pn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function ah(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=pn;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=pn,o=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),Ne?Ne.from?Ne.from(u):new Ne(u):u}function ch(e){var t="",r=0,n,i,s=e.length,o=pn;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 Ne&&Ne.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,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[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,wh=Object.prototype.hasOwnProperty;function Ch(e){if(e===null)return!0;var t,r=e;for(t in r)if(wh.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:Ch,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 Lh(e){return typeof e>"u"}var Nh=new Th("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Rh,construct:Ih,predicate:Lh,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}),tr;try{var Gh=ds;tr=Gh("esprima")}catch{typeof window<"u"&&(tr=window.esprima)}var Hh=H;function Bh(e){if(e===null)return!1;try{var t="("+e+")",r=tr.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=tr.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}),wi=lt,dr=wi.DEFAULT=new wi({include:[_t],explicit:[Nh,Uh,Xh]}),ve=re,ms=Ot,Wh=lf,gs=_t,Kh=dr,Ae=Object.prototype.hasOwnProperty,rr=1,vs=2,ys=3,nr=4,Ur=1,zh=2,Ci=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 Q(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?`
`: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 S(e,t){throw bs(e,t)}function ir(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&&S(t,"duplication of %YAML directive"),n.length!==1&&S(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&S(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&S(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&ir(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&S(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Es.test(i)||S(t,"ill-formed tag handle (first argument) of the TAG directive"),Ae.call(t.tagMap,i)&&S(t,'there is a previously declared suffix for "'+i+'" tag handle'),xs.test(s)||S(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s}};function $e(e,t,r,n){var i,s,o,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,s=u.length;i<s;i+=1)o=u.charCodeAt(i),o===9||32<=o&&o<=1114111||S(e,"expected valid JSON character");else Jh.test(u)&&S(e,"the stream contains non-printable characters");e.result+=u}}function Ti(e,t,r,n){var i,s,o,u;for(ve.isObject(r)||S(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,u=i.length;o<u;o+=1)s=i[o],Ae.call(t,s)||(t[s]=r[s],n[s]=!0)}function et(e,t,r,n,i,s,o,u){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])&&S(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,h=s.length;a<h;a+=1)Ti(e,t,s[a],r);else Ti(e,t,s,r);else!e.json&&!Ae.call(r,i)&&Ae.call(t,i)&&(e.line=o||e.line,e.position=u||e.position,S(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}function dn(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++):S(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(dn(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&&ir(e,"deficient indentation"),n}function mr(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||Q(r)))}function mn(e,t){t===1?e.result+=" ":t>1&&(e.result+=ve.repeat(`
`,t-1))}function sp(e,t,r){var n,i,s,o,u,a,h,c,f=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),Q(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),Q(i)||r&&Qe(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,u=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Q(i)||r&&Qe(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Q(n))break}else{if(e.position===e.lineStart&&mr(e)||r&&Qe(d))break;if(ue(d))if(a=e.line,h=e.lineStart,c=e.lineIndent,k(e,!1,-1),e.lineIndent>=t){u=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=h,e.lineIndent=c;break}}u&&($e(e,s,o,!1),mn(e,e.line-a),s=o=e.position,u=!1),De(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return $e(e,s,o,!1),e.result?!0:(e.kind=f,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($e(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)?($e(e,n,i,!0),mn(e,k(e,!1,t)),n=i=e.position):e.position===e.lineStart&&mr(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}function ap(e,t){var r,n,i,s,o,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return $e(e,r,e.position,!0),e.position++,!0;if(u===92){if($e(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),ue(u))k(e,!1,t);else if(u<256&&$s[u])e.result+=As[u],e.position++;else if((o=tp(u))>0){for(i=o,s=0;i>0;i--)u=e.input.charCodeAt(++e.position),(o=ep(u))>=0?s=(s<<4)+o:S(e,"expected hexadecimal character");e.result+=np(s),e.position++}else S(e,"unknown escape sequence");r=n=e.position}else ue(u)?($e(e,r,n,!0),mn(e,k(e,!1,t)),r=n=e.position):e.position===e.lineStart&&mr(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}S(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,u,a,h,c,f,m={},d,A,v,b;if(b=e.input.charCodeAt(e.position),b===91)a=93,f=!1,s=[];else if(b===123)a=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(k(e,!0,t),b=e.input.charCodeAt(e.position),b===a)return e.position++,e.tag=i,e.anchor=o,e.kind=f?"mapping":"sequence",e.result=s,!0;r||S(e,"missed comma between flow collection entries"),A=d=v=null,h=c=!1,b===63&&(u=e.input.charCodeAt(e.position+1),Q(u)&&(h=c=!0,e.position++,k(e,!0,t))),n=e.line,it(e,t,rr,!1,!0),A=e.tag,d=e.result,k(e,!0,t),b=e.input.charCodeAt(e.position),(c||e.line===n)&&b===58&&(h=!0,b=e.input.charCodeAt(++e.position),k(e,!0,t),it(e,t,rr,!1,!0),v=e.result),f?et(e,s,m,A,d,v):h?s.push(et(e,null,m,A,d,v)):s.push(d),k(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}S(e,"unexpected end of the stream within a flow collection")}function cp(e,t){var r,n,i=Ur,s=!1,o=!1,u=t,a=0,h=!1,c,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)Ur===i?i=f===43?Ci:zh:S(e,"repeat of a chomping mode identifier");else if((c=rp(f))>=0)c===0?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?S(e,"repeat of an indentation width identifier"):(u=t+c-1,o=!0);else break;if(De(f)){do f=e.input.charCodeAt(++e.position);while(De(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!ue(f)&&f!==0)}for(;f!==0;){for(dn(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>u&&(u=e.lineIndent),ue(f)){a++;continue}if(e.lineIndent<u){i===Ci?e.result+=ve.repeat(`
`,s?1+a:a):i===Ur&&s&&(e.result+=`
`);break}for(n?De(f)?(h=!0,e.result+=ve.repeat(`
`,s?1+a:a)):h?(h=!1,e.result+=ve.repeat(`
`,a+1)):a===0?s&&(e.result+=" "):e.result+=ve.repeat(`
`,a):e.result+=ve.repeat(`
`,s?1+a:a),s=!0,o=!0,a=0,r=e.position;!ue(f)&&f!==0;)f=e.input.charCodeAt(++e.position);$e(e,r,e.position,!1)}return!0}function Ri(e,t){var r,n=e.tag,i=e.anchor,s=[],o,u=!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),!Q(o)));){if(u=!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)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function up(e,t,r){var n,i,s,o,u=e.tag,a=e.anchor,h={},c={},f=null,m=null,d=null,A=!1,v=!1,b;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),b=e.input.charCodeAt(e.position);b!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,o=e.position,(b===63||b===58)&&Q(n))b===63?(A&&(et(e,h,c,f,m,null),f=m=d=null),v=!0,A=!0,i=!0):A?(A=!1,i=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=n;else if(it(e,r,vs,!1,!0))if(e.line===s){for(b=e.input.charCodeAt(e.position);De(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Q(b)||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(et(e,h,c,f,m,null),f=m=d=null),v=!0,A=!1,i=!1,f=e.tag,m=e.result;else if(v)S(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=a,!0}else if(v)S(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=a,!0;else break;if((e.line===s||e.lineIndent>t)&&(it(e,t,nr,!0,i)&&(A?m=e.result:d=e.result),A||(et(e,h,c,f,m,d,s,o),f=m=d=null),k(e,!0,-1),b=e.input.charCodeAt(e.position)),e.lineIndent>t&&b!==0)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&et(e,h,c,f,m,null),v&&(e.tag=u,e.anchor=a,e.kind="mapping",e.result=h),v}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&&S(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)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Q(o);)o===33&&(n?S(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Es.test(i)||S(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)&&S(e,"tag suffix cannot contain flow indicator characters")}return s&&!xs.test(s)&&S(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Ae.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:S(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&&S(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Q(r)&&!Qe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&S(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&&!Q(n)&&!Qe(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&S(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ae.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],k(e,!0,-1),!0}function it(e,t,r,n,i){var s,o,u,a=1,h=!1,c=!1,f,m,d,A,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=u=nr===r||ys===r,n&&k(e,!0,-1)&&(h=!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)?(h=!0,u=s,e.lineIndent>t?a=1:e.lineIndent===t?a=0:e.lineIndent<t&&(a=-1)):u=!1;if(u&&(u=h||i),(a===1||nr===r)&&(rr===r||vs===r?A=t:A=t+1,v=e.position-e.lineStart,a===1?u&&(Ri(e,v)||up(e,v,A))||lp(e,A)?c=!0:(o&&cp(e,A)||op(e,A)||ap(e,A)?c=!0:pp(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&S(e,"alias node should not have any properties")):sp(e,A,rr===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(c=u&&Ri(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&S(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 Ae.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&S(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)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):S(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}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&&!Q(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&S(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&&!Q(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&dn(e),Ae.call(_i,n)?_i[n](e,n,i):ir(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&&S(e,"directives end mark is expected"),it(e,e.lineIndent-1,nr,!1,!0),k(e,!0,-1),e.checkLineBreaks&&Zh.test(e.input.slice(t,e.position))&&ir(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,k(e,!0,-1));return}if(e.position<e.length-1)S(e,"end of the stream or a document separator is expected");else return}function ws(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new ip(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,S(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 Cs(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=ws(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=ws(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),Cs(e,t,ve.extend({schema:gs},r))}function gp(e,t){return Ss(e,ve.extend({schema:gs},t))}St.loadAll=Cs;St.load=Ss;St.safeLoadAll=mp;St.safeLoad=gp;var gn={},Tt=re,Rt=Ot,vp=dr,yp=_t,Os=Object.prototype.toString,_s=Object.prototype.hasOwnProperty,Ep=9,At=10,xp=13,$p=32,Ap=33,bp=34,Ts=35,wp=37,Cp=38,Sp=39,Op=42,Rs=44,_p=45,Is=58,Tp=61,Rp=62,Ip=63,Fp=64,Fs=91,Ls=93,Lp=96,Ns=123,Np=124,js=125,X={};X[0]="\\0";X[7]="\\a";X[8]="\\b";X[9]="\\t";X[10]="\\n";X[11]="\\v";X[12]="\\f";X[13]="\\r";X[27]="\\e";X[34]='\\"';X[92]="\\\\";X[133]="\\N";X[160]="\\_";X[8232]="\\L";X[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,u,a;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],u=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,u)&&(u=a.styleAliases[u]),r[o]=u;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,u=e.length;n<u;)i=e.indexOf(`
`,n),i===-1?(o=e.slice(n),n=u):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function zr(e,t){return`
`+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 vn(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)&&!vn(e)&&e!==65279&&e!==xp&&e!==At}function Li(e,t){return st(e)&&e!==65279&&e!==Rs&&e!==Fs&&e!==Ls&&e!==Ns&&e!==js&&e!==Is&&(e!==Ts||t&&kp(t))}function Up(e){return st(e)&&e!==65279&&!vn(e)&&e!==_p&&e!==Ip&&e!==Is&&e!==Rs&&e!==Fs&&e!==Ls&&e!==Ns&&e!==js&&e!==Ts&&e!==Cp&&e!==Op&&e!==Ap&&e!==Np&&e!==Tp&&e!==Rp&&e!==Sp&&e!==bp&&e!==wp&&e!==Fp&&e!==Lp}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,u,a=!1,h=!1,c=n!==-1,f=-1,m=Up(e.charCodeAt(0))&&!vn(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),!st(o))return Zt;u=s>0?e.charCodeAt(s-1):null,m=m&&Li(o,u)}else{for(s=0;s<e.length;s++){if(o=e.charCodeAt(s),o===At)a=!0,c&&(h=h||s-f-1>n&&e[f+1]!==" ",f=s);else if(!st(o))return Zt;u=s>0?e.charCodeAt(s-1):null,m=m&&Li(o,u)}h=h||c&&s-f-1>n&&e[f+1]!==" "}return!a&&!h?m&&!i(e)?Ps:Ms:r>9&&Ds(e)?Zt:h?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 u(a){return Mp(e,a)}switch(Gp(t,o,e.indent,s,u)){case Ps:return t;case Ms:return"'"+t.replace(/'/g,"''")+"'";case ks:return"|"+Ni(t,e.indent)+ji(Fi(t,i));case Us:return">"+Ni(t,e.indent)+ji(Fi(Bp(t,s),i));case Zt:return'"'+Yp(t)+'"';default:throw new Rt("impossible error: invalid scalar style")}}()}function Ni(e,t){var r=Ds(e)?String(t):"",n=e[e.length-1]===`
`,i=n&&(e[e.length-2]===`
`||e===`
`),s=i?"+":n?"":"-";return r+s+`
`}function ji(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function Bp(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var h=e.indexOf(`
`);return h=h!==-1?h:e.length,r.lastIndex=h,Di(e.slice(0,h),t)}(),i=e[0]===`
`||e[0]===" ",s,o;o=r.exec(e);){var u=o[1],a=o[2];s=a[0]===" ",n+=u+(!i&&!s&&a!==""?`
`:"")+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,u=0,a="";n=r.exec(e);)u=n.index,u-i>t&&(s=o>i?o:u,a+=`
`+e.slice(i,s),i=s+1),o=u;return a+=`
`,e.length-i>t&&o>i?a+=e.slice(i,o)+`
`+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=X[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,u;for(o=0,u=r.length;o<u;o+=1)Me(e,t+1,r[o],!0,!0)&&((!n||o!==0)&&(i+=zr(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,u,a,h,c;for(o=0,u=s.length;o<u;o+=1)c="",o!==0&&(c+=", "),e.condenseFlow&&(c+='"'),a=s[o],h=r[a],Me(e,t,a,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Me(e,t,h,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function Wp(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),u,a,h,c,f,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(u=0,a=o.length;u<a;u+=1)m="",(!n||u!==0)&&(m+=zr(e,t)),h=o[u],c=r[h],Me(e,t+1,h,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&At===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,f&&(m+=zr(e,t)),Me(e,t+1,c,!0,f)&&(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,u,a;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(u=i[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(a=e.styleMap[u.tag]||u.defaultStyle,Os.call(u.represent)==="[object Function]")n=u.represent(t,a);else if(_s.call(u.represent,a))n=u.represent[a](t,a);else throw new Rt("!<"+u.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 u=o==="[object Object]"||o==="[object Array]",a,h;if(u&&(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(u&&h&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(Wp(e,t,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Xp(e,t,e.dump),h&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(qp(e,c,e.dump,i),h&&(e.dump="&ref_"+a+e.dump)):(Vp(e,c,e.dump),h&&(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(Jr(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Jr(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)Jr(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Jr(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+`
`:""}function zp(e,t){return Gs(e,Tt.extend({schema:yp},t))}gn.dump=Gs;gn.safeDump=zp;var gr=St,Hs=gn;function vr(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}M.Type=H;M.Schema=lt;M.FAILSAFE_SCHEMA=hn;M.JSON_SCHEMA=us;M.CORE_SCHEMA=fs;M.DEFAULT_SAFE_SCHEMA=_t;M.DEFAULT_FULL_SCHEMA=dr;M.load=gr.load;M.loadAll=gr.loadAll;M.safeLoad=gr.safeLoad;M.safeLoadAll=gr.safeLoadAll;M.dump=Hs.dump;M.safeDump=Hs.safeDump;M.YAMLException=Ot;M.MINIMAL_SCHEMA=hn;M.SAFE_SCHEMA=_t;M.DEFAULT_SCHEMA=dr;M.scan=vr("scan");M.parse=vr("parse");M.compose=vr("compose");M.addConstructor=vr("addConstructor");var Jp=M,Bs=Jp,sr={exports:{}};sr.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",u="[object Boolean]",a="[object Date]",h="[object Error]",c="[object Function]",f="[object GeneratorFunction]",m="[object Map]",d="[object Number]",A="[object Object]",v="[object Promise]",b="[object RegExp]",j="[object Set]",W="[object String]",D="[object Symbol]",B="[object WeakMap]",ut="[object ArrayBuffer]",ae="[object DataView]",Ue="[object Float32Array]",we="[object Float64Array]",Ge="[object Int8Array]",Ft="[object Int16Array]",Lt="[object Int32Array]",Nt="[object Uint8Array]",jt="[object Uint8ClampedArray]",x="[object Uint16Array]",y="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,w=/\w*$/,_=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,E={};E[s]=E[o]=E[ut]=E[ae]=E[u]=E[a]=E[Ue]=E[we]=E[Ge]=E[Ft]=E[Lt]=E[m]=E[d]=E[A]=E[b]=E[j]=E[W]=E[D]=E[Nt]=E[jt]=E[x]=E[y]=!0,E[h]=E[c]=E[B]=!1;var L=typeof Ht=="object"&&Ht&&Ht.Object===Object&&Ht,T=typeof self=="object"&&self&&self.Object===Object&&self,R=L||T||Function("return this")(),q=t&&!t.nodeType&&t,P=q&&!0&&e&&!e.nodeType&&e,Ce=P&&P.exports===q;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,Y=l.length;++g<$;)l[Y+g]=p[g];return l}function Sn(l,p,g,$){for(var Y=-1,z=l?l.length:0;++Y<z;)g=p(g,l[Y],Y,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 On(l){var p=!1;if(l!=null&&typeof l.toString!="function")try{p=!!(l+"")}catch{}return p}function _n(l){var p=-1,g=Array(l.size);return l.forEach(function($,Y){g[++p]=[Y,$]}),g}function Er(l,p){return function(g){return l(p(g))}}function Tn(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,xr=R["__core-js_shared__"],Rn=function(){var l=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),In=vo.toString,xe=Dt.hasOwnProperty,Pt=Dt.toString,yo=RegExp("^"+In.call(xe).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=Ce?R.Buffer:void 0,Ln=R.Symbol,Nn=R.Uint8Array,Eo=Er(Object.getPrototypeOf,Object),xo=Object.create,$o=Dt.propertyIsEnumerable,Ao=go.splice,jn=Object.getOwnPropertySymbols,bo=Fn?Fn.isBuffer:void 0,wo=Er(Object.keys,Object),$r=Ye(R,"DataView"),ft=Ye(R,"Map"),Ar=Ye(R,"Promise"),br=Ye(R,"Set"),wr=Ye(R,"WeakMap"),ht=Ye(Object,"create"),Co=_e($r),So=_e(ft),Oo=_e(Ar),_o=_e(br),To=_e(wr),Dn=Ln?Ln.prototype:void 0,Pn=Dn?Dn.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 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 Lo(l){var p=this.__data__;return ht?p[l]!==void 0:xe.call(p,l)}function No(l,p){var g=this.__data__;return g[l]=ht&&p===void 0?n:p,this}Se.prototype.clear=Ro,Se.prototype.delete=Io,Se.prototype.get=Fo,Se.prototype.has=Lo,Se.prototype.set=No;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 Se,map:new(ft||fe),string:new Se}}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=Or(l)||xa(l)?po(l.length,String):[],$=g.length,Y=!!$;for(var z in l)xe.call(l,z)&&!(Y&&(z=="length"||ga(z,$)))&&g.push(z);return g}function Mn(l,p,g){var $=l[p];(!(xe.call(l,p)&&Hn($,g))||g===void 0&&!(p in l))&&(l[p]=g)}function Mt(l,p){for(var g=l.length;g--;)if(Hn(l[g][0],p))return g;return-1}function Jo(l,p){return l&&kn(p,_r(p),l)}function Cr(l,p,g,$,Y,z,he){var J;if($&&(J=z?$(l,Y,z,he):$(l)),J!==void 0)return J;if(!Ut(l))return l;var Vn=Or(l);if(Vn){if(J=pa(l),!p)return ua(l,J)}else{var Ve=Oe(l),qn=Ve==c||Ve==f;if(Aa(l))return na(l,p);if(Ve==A||Ve==s||qn&&!z){if(On(l))return z?l:{};if(J=da(qn?{}:l),!p)return fa(l,Jo(J,l))}else{if(!E[Ve])return z?l:{};J=ma(l,Ve,Cr,p)}}he||(he=new Be);var Xn=he.get(l);if(Xn)return Xn;if(he.set(l,J),!Vn)var Wn=g?ha(l):_r(l);return fo(Wn||l,function(Tr,Gt){Wn&&(Gt=Tr,Tr=l[Gt]),Mn(J,Gt,Cr(Tr,p,g,$,Gt,l,he))}),J}function Zo(l){return Ut(l)?xo(l):{}}function Qo(l,p,g){var $=p(l);return Or(l)?$:ho($,g(l))}function ea(l){return Pt.call(l)}function ta(l){if(!Ut(l)||ya(l))return!1;var p=Yn(l)||On(l)?yo:_;return p.test(_e(l))}function ra(l){if(!Gn(l))return wo(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 Sr(l){var p=new l.constructor(l.byteLength);return new Nn(p).set(new Nn(l)),p}function ia(l,p){var g=p?Sr(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function sa(l,p,g){var $=p?g(_n(l),!0):_n(l);return Sn($,co,new l.constructor)}function oa(l){var p=new l.constructor(l.source,w.exec(l));return p.lastIndex=l.lastIndex,p}function aa(l,p,g){var $=p?g(Tn(l),!0):Tn(l);return Sn($,uo,new l.constructor)}function la(l){return Pn?Object(Pn.call(l)):{}}function ca(l,p){var g=p?Sr(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 kn(l,p,g,$){g||(g={});for(var Y=-1,z=p.length;++Y<z;){var he=p[Y],J=void 0;Mn(g,he,J===void 0?l[he]:J)}return g}function fa(l,p){return kn(l,Un(l),p)}function ha(l){return Qo(l,_r,Un)}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 Un=jn?Er(jn,Object):Ca,Oe=ea;($r&&Oe(new $r(new ArrayBuffer(1)))!=ae||ft&&Oe(new ft)!=m||Ar&&Oe(Ar.resolve())!=v||br&&Oe(new br)!=j||wr&&Oe(new wr)!=B)&&(Oe=function(l){var p=Pt.call(l),g=p==A?l.constructor:void 0,$=g?_e(g):void 0;if($)switch($){case Co:return ae;case So:return m;case Oo:return v;case _o:return j;case To:return B}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"&&!Gn(l)?Zo(Eo(l)):{}}function ma(l,p,g,$){var Y=l.constructor;switch(p){case ut:return Sr(l);case u:case a:return new Y(+l);case ae:return ia(l,$);case Ue:case we:case Ge:case Ft:case Lt:case Nt:case jt:case x:case y:return ca(l,$);case m:return sa(l,$,g);case d:case W:return new Y(l);case b:return oa(l);case j:return aa(l,$,g);case D: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!!Rn&&Rn in l}function Gn(l){var p=l&&l.constructor,g=typeof p=="function"&&p.prototype||Dt;return l===g}function _e(l){if(l!=null){try{return In.call(l)}catch{}try{return l+""}catch{}}return""}function Ea(l){return Cr(l,!0,!0)}function Hn(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 Or=Array.isArray;function Bn(l){return l!=null&&ba(l.length)&&!Yn(l)}function $a(l){return wa(l)&&Bn(l)}var Aa=bo||Sa;function Yn(l){var p=Ut(l)?Pt.call(l):"";return p==c||p==f}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 wa(l){return!!l&&typeof l=="object"}function _r(l){return Bn(l)?zo(l):ra(l)}function Ca(){return[]}function Sa(){return!1}e.exports=Ea})(sr,sr.exports);var Ys=sr.exports;const yn=ar(Ys);var En={exports:{}},Gr,Mi;function Zp(){return Mi||(Mi=1,Gr=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),Gr}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"),ie=Symbol("cache"),Vs=Symbol("updateAgeOnGet"),Hr=()=>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||Hr;if(this[Ke]=typeof r!="function"?Hr: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=Hr),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[ie]=new Map,this[G]=new nd,this[ge]=0}dump(){return this[G].map(t=>or(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[ie].has(t)){if(s>this[Fe])return rt(this,this[ie].get(t)),!1;const a=this[ie].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[ie].set(t,this[G].head),mt(this),!0)}has(t){if(!this[ie].has(t))return!1;const r=this[ie].get(t).value;return!or(this,r)}get(t){return Br(this,t,!0)}peek(t){return Br(this,t,!1)}pop(){const t=this[G].tail;return t?(rt(this,t),t.value):null}del(t){rt(this,this[ie].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[ie].forEach((t,r)=>Br(this,r,!1))}}const Br=(e,t,r)=>{const n=e[ie].get(t);if(n){const i=n.value;if(or(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}},or=(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[ie].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;or(e,i)&&(rt(e,r),e[xt]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var od=id;En.exports=ud;const Gi=Ee,Hi=_a,gt=en,ad=lr("snyk:resolve:try-require"),Bi=Ys,ld=od,cd={max:100,maxAge:1e3*60*60},Zr=new ld(cd),Yr={readFile:Hi.promisify(Gi.readFile),stat:Hi.promisify(Gi.stat)};En.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 Yr.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=[Yr.stat(gt.resolve(n,".snyk")).catch(Yi),Yr.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=En.exports;const hd=ar(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 Vr(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 Te=be("snyk:policy");Te.log=console.error.bind(console);function yd(e,t,r=[],n="packageManager"){if(!e)return t;Te("filtering ignored");const i=new Date().toJSON();return t.map(s=>{const o=Ed(s),u=$d(s.id,e);if(u.length===0&&!o)return s;Te("%s has rules",s.id);let a=[];if(o){const h=s.securityPolicyMetaData.ignore,{created:c,disregardIfFixable:f,ignoredBy:m,path:d,reason:A="",reasonType:v,source:b}=h;a=[{[d[0]]:{reason:A,reasonType:v,source:b,ignoredBy:m,created:c,disregardIfFixable:f}}]}else for(const h of u){const c=e[h];if(c){const f=c.filter(m=>{const d=Object.keys(m)[0];let A=m[d].expires;A&&A instanceof Date&&(A=A.toJSON());const v=Ct(s,m,n);return v&&A&&A<i?(Te("%s vuln rule has expired (%s)",s.id,A),!1):v&&m[d].disregardIfFixable&&(s.isUpgradable||s.isPatchable)?(Te("%s vuln is fixable and rule is set to disregard if fixable",s.id),!1):v?(Te.enabled&&Te("ignoring based on path match: %s ~= %s",d,s.from.slice(1).join(" > ")),!0):!1});a.push(...f)}}return a.length&&(s.filtered={ignored:a.map(h=>{const c=Object.keys(h)[0],f=yn(h[c]);return f.path=c.split(" > "),f})},r.push(s)),a.length?null:s}).filter(xd)}const Ed=e=>!!(e.securityPolicyMetaData&&e.securityPolicyMetaData.ignore),xd=e=>e!==null;function $d(e,t){return Object.keys(t).filter(r=>r.toUpperCase()===e.toUpperCase())}const Re=be("snyk:policy");Re.log=console.error.bind(console);function Ad(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,h,c;const s=Object.keys(i)[0];let o=i[s].expires;const u=Ct(n,i);if(o&&o instanceof Date&&(o=o.toJSON()),u&&o&&o<r)return Re("%s vuln rule has expired (%s)",n.id,o),!1;if(u&&i[s].disregardIfFixable&&((a=n.upgradePath)!=null&&a.length||(h=n.patches)!=null&&h.length))return Re("%s vuln is fixable and rule is set to disregard if fixable",n.id),!1;if(u){const f=(c=i[s].reason)==null?void 0:c.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: "+f}return!1})),n))}var xn={exports:{}},$n={exports:{}},ct={exports:{}};const bd=Object.keys,wd=e=>Object.prototype.toString.call(e),An=e=>wd(e).slice(8,-1).toLowerCase(),Cd=e=>typeof e=="string"||An(e)==="string";function Sd(e){if(An(e)!=="object")return!1;const t=Object.getPrototypeOf(e);return t==null?!0:(t.constructor&&t.constructor.toString())===Object.toString()}function Od(e,t,r=null){for(const[n,i]of e.entries())if(t.call(r,i,n,e)===!1)return!1;return!0}function _d(e,t){const r={};for(const n of bd(e)){const i=e[n];r[n]=t(i,n,e)}return r}var Td={isArrayOf:Od,getType:An,isString:Cd,isPlainObject:Sd,map:_d};const{isString:qs,getType:ot,isPlainObject:bn,isArrayOf:Xs,map:wn}=Td,Ws=Array.isArray,Cn=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,u)=>o?i(o):n(u);e.call(t,...r,s)})}}function Rd(e,t){if(!bn(e))throw new TypeError(`Expected a plain object as targets. Received ${ot(e)}`);return wn(e,(r,n)=>Cn(n)?It(r,t):r)}function Id(e,t,r){if(!bn(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 wn(e,(n,i)=>Cn(i)&&t.includes(i)?It(n,r):n)}function Fd(e,t,r){if(!bn(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 wn(e,(n,i)=>Cn(i)&&!t.includes(i)?It(n,r):n)}ct.exports=It;ct.exports.default=It;ct.exports.all=Rd;ct.exports.some=Id;ct.exports.except=Fd;var Ld=ct.exports;const Vi=Ee,Nd=Ld,jd=e=>typeof e=="function",Dd=["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=Nd.some(Vi,Dd.filter(e=>jd(Vi[e])));$n.exports=Ks;$n.exports.default=Ks;var Pd=$n.exports;xn.exports=Js;xn.exports.sync=Zs;var zs=Pd,ce=en,ye=lr("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,Qr(t)),Qr(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(u){if(u&&u.code==="ENOENT")return!1}return o.isFile()||o.isFIFO()};if(n(r))return ye("%s: FOUND AT %s",e,r),ce.dirname(r);if(Qr(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 Qr(e){var t=Md(e);return t.root===t.dir&&!t.base}function Md(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 kd=xn.exports;const Ud=ar(kd),Qs=be("snyk:policy");Qs.log=console.error.bind(console);function Gd(e,t,r){var o;const n=e.from.slice(1).map(u=>Je(u).name),i=ee.resolve(t||process.cwd(),"node_modules",n.join("/node_modules/"));let s=e.__filename?ee.dirname(e.__filename):i;try{Ee.statSync(s)}catch{try{s=Ud.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=be("snyk:policy");vt.log=console.error.bind(console);function Hd(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 u=e[s.id].map(a=>{if(Ct(s,a)){const c=Object.keys(a)[0];return vt("(patch) ignoring based on path match: %s ~= %s",c,s.from.slice(1).join(" > ")),a}return null}).filter(qi).filter(()=>{if(n)return!0;const a=Gd(s,r),h=s.id.replace(/:/g,"-"),c=ee.resolve(a,".snyk-"+h+".flag"),f=ee.resolve(a,".snyk-"+s.id+".flag");let m=!1;try{m=Ee.statSync(c)}catch{try{m=Ee.statSync(f)}catch{}}return vt("flag found for %s? %s",s.id),!!m});return u.length&&(s.filtered={patches:u.map(a=>{const h=Object.keys(a)[0],c=yn(a[h])||{};return c.path=h.split(" > "),c})},i.push(s)),u.length?null:s}).filter(qi)):t}const qi=e=>e!==null,eo=be("snyk:policy");eo.log=console.error.bind(console);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=yd(t.ignore,i.vulnerabilities,s.ignore,n),i.vulnerabilities=Hd(t.patch,i.vulnerabilities,r,!!t.skipVerifyPatch,s.patch),t.suggest&&(i.vulnerabilities=Ad(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},u=o[t.failThreshold];i.ok=!0,i.vulnerabilities.some(a=>a.severity&&o[a.severity]>=u?(i.ok=!1,!0):!1)}return i}class yr extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,yr.prototype),this.code=r}}function to(e){return Object.prototype.toString.call(e)==="[object Object]"}function ro(e){return e instanceof Error}const ze=be("snyk:policy");ze.log=console.error.bind(console);const Yd=()=>"v1.25.1",Vd=()=>io("");function qd(){return ee.resolve(process.cwd(),".snyk")}function no(e){return e.filter=(t,r,n="packageManager")=>Bd(t,e,r||ee.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)=>Vr(e,t,r),e.addIgnore=t=>Vr(e,"ignore",t),e.addPatch=t=>Vr(e,"patch",t),e.addExclude=(t,r,n)=>gd(e,t,r,n),e}async function io(e=""){const t=await Qt(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=ee.resolve(e,".snyk")),n=e),n.indexOf(".snyk")===-1&&(n=ee.resolve(n,".snyk"));try{Ee.lstatSync(n).isDirectory()&&(n=ee.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(Qt());if(!r&&Array.isArray(e))return o(Xd(e,t).then(u=>(ze.enabled&&(ze("final policy:"),ze(JSON.stringify(u,null,2))),u)));o(Ee.promises.readFile(n,"utf8").then(Qt))}),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"),[Qt(),{}];throw o}).then(o=>{const u=o[0];return u.__modified=o[1].mtime,u.__created=o[1].birthtime||o[1].ctime,t!=null&&t.loose&&!u.__modified?u.__filename=null:u.__filename=ee.relative(process.cwd(),n),u}).then(no)}async function Xd(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=ee.dirname(s.__filename)+"/package.json",u=await hd(o),a=u.name+"@"+u.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 u=Object.keys(o).pop(),a={};return a[r+" > "+u]=o[u],o[u]=o[u]||{},o[u].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?ee.resolve(t,".snyk"):qd(),i="Saving .snyk policy file...";if(!r){const o=u=>Promise.resolve(u);o.clear=o,r=o}await r(i);const s=await lo(e);return await Ee.promises.writeFile(n,s),r.clear(i)}const Wd="# 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 Kd(e){const t=e.split(`
`);t.unshift(Wd);for(const r in Wi){const n=r,i=t.indexOf(n+":");i!==-1&&t.splice(i,0,Wi[n])}return t.join(`
`)}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),Ki(e.ignore),Ki(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 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=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 yr('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 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 u=s[o].map(a=>{if(i==="exclude"&&typeof a=="string")return{path:a};const h=a,c=Object.keys(h).pop(),f={path:c};if(i==="ignore"||i==="exclude"){const m=h[c].expires;f.reason=h[c].reason,f.expires=m?new Date(m):void 0,f.disregardIfFixable=h[c].disregardIfFixable}return f});return{id:o,url:r0(o,t)+"/vuln/"+o,paths:u}}):[],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 Qt(e=""){const t=Bs.load(e),r=to(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"+Wr.major(i.substr(1))];if(!s)throw new Error("unsupported version: "+r.version);return s(r)}function lo(e){const t=yn(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(Bs.dump(t))}exports.PolicyError=yr;exports.create=Vd;exports.demunge=ao;exports.getByVuln=tf;exports.isNodeError=ro;exports.isObject=to;exports.load=so;exports.loadFromText=io;exports.matchToRule=Ct;exports.save=oo;


/***/ })

};
;
//# sourceMappingURL=284.index.js.map